/*
 * Generated pages (features/, machines/, industries/, guides/, compare/, faq): small additions on
 * top of site.css. Linked only from pages written by scripts/build-pages.mjs.
 */

/* Page header: a smaller H1 than the home hero, with breadcrumbs above it. */
.pg-hero {
  padding: 40px 0 56px;
}
.pg-hero h1 {
  max-width: 900px;
  font-size: clamp(36px, 5.4vw, 66px) !important;
  line-height: 1.04;
}
.pg-hero .kicker {
  margin-top: 28px;
  margin-bottom: 12px;
}
.pg-answer {
  max-width: 780px;
  margin-top: 22px;
  color: var(--ink-2);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
}
.pg-answer p + p {
  margin-top: 12px;
}
.pg-meta {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
}

.pg-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pg-crumbs li {
  display: inline-flex;
  align-items: center;
}
.pg-crumbs li + li::before {
  margin: 0 10px;
  color: #b3ada0;
  content: '/';
}
.pg-crumbs li[aria-current='page'] {
  color: var(--ink);
}

/* Section menu link on pages below it (machines/essl marks "Machines"). */
.nav-link[aria-current='true'] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

/* Section bodies. */
.pg-section h2 {
  font-size: clamp(30px, 4vw, 50px) !important;
}
.pg-body {
  display: grid;
  gap: 22px;
}
.pg-body > p,
.pg-body > ul:not(.pg-cards):not(.ticks),
.pg-body > ol:not(.pg-steps),
.pg-body > h3,
.pg-body > .ticks,
.pg-body > .pg-note,
.pg-body > .pg-formula {
  max-width: 780px;
}
.pg-body > p,
.pg-body > ul,
.pg-body > ol {
  margin: 0;
  color: var(--ink-2);
}
.pg-body > ul:not(.pg-cards):not(.ticks),
.pg-body > ol:not(.pg-steps) {
  padding-left: 22px;
}
.pg-body li + li {
  margin-top: 6px;
}
.pg-body > h3 {
  margin-top: 10px;
}
.pg-body .ticks {
  margin: 0;
}
.pg-spec {
  margin-top: 6px;
}

/* Link cards. */
.pg-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pg-cards li {
  margin: 0 !important;
}
.pg-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}
.pg-card:hover {
  border-color: #0a0a0a;
  color: var(--ink);
}
.pg-card h3 {
  font-size: 21px;
}
.pg-card p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
}
.pg-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 15px;
  font-weight: 700;
}
.pg-go .btn-icon {
  width: 18px;
  height: 18px;
  transition: transform 150ms;
}
.pg-card:hover .pg-go .btn-icon {
  transform: translateX(3px);
}
.pg-tag {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: #0a0a0a;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Numbered steps (HowTo). */
.pg-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pgstep;
}
.pg-steps > li {
  position: relative;
  max-width: 860px;
  padding: 22px 24px 22px 76px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  counter-increment: pgstep;
  scroll-margin-top: 100px;
}
.pg-steps > li::before {
  position: absolute;
  top: 20px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0a0a0a;
  color: #fff;
  font: 800 16px/1 var(--font);
  content: counter(pgstep);
}
.pg-steps h3 {
  font-size: 20px;
}
.pg-steps > li > div {
  margin-top: 6px;
  color: var(--ink-2);
}
.pg-steps > li > div > * + * {
  margin-top: 8px;
}
.pg-steps ul,
.pg-steps ol {
  margin: 8px 0 0;
  padding-left: 20px;
}

/* Notes and formulas. */
.pg-note {
  padding: 20px 24px;
  border-left: 4px solid #0a0a0a;
  border-radius: 0 12px 12px 0;
  background: var(--paper);
  color: var(--ink-2);
}
.pg-note p + p {
  margin-top: 8px;
}
.pg-formula {
  padding: 20px 24px;
  border-radius: 12px;
  background: #0a0a0a;
  color: #f2f2f2;
  font: 15px/1.7 var(--font-mono);
  overflow-x: auto;
}
.pg-formula b {
  color: #fff;
}

/* Tables and media. */
.pg-table {
  background: #fff;
}
.pg-table .compat td,
.pg-table .compat th {
  font-size: 15.5px;
}
.pg-frame,
.pg-art {
  margin: 8px 0 0;
}
.pg-art img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.pg-phone {
  width: min(100%, 300px);
}

/* Article layout (guides). */
.pg-article-wrap {
  padding-top: 56px;
}
.prose {
  max-width: 780px;
}
.prose h2 {
  margin-top: 56px;
  font-size: clamp(26px, 3vw, 38px) !important;
  line-height: 1.12;
}
.prose > section:first-child h2 {
  margin-top: 0;
}
.prose h3 {
  margin-top: 28px;
}
.prose p,
.prose ul,
.prose ol {
  margin: 16px 0 0;
  color: var(--ink-2);
}
.prose ul:not(.ticks):not(.pg-cards),
.prose ol:not(.pg-steps) {
  padding-left: 22px;
}
.prose li + li {
  margin-top: 6px;
}
.prose .ticks,
.prose .pg-steps,
.prose .pg-note,
.prose .pg-formula,
.prose .pg-table,
.prose .pg-spec,
.prose .pg-cards {
  margin-top: 20px;
}
.prose .pg-steps > li {
  padding-left: 70px;
}
.prose .spec {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 640px) {
  .pg-hero {
    padding: 28px 0 40px;
  }
  .pg-steps > li,
  .prose .pg-steps > li {
    padding: 66px 18px 18px;
  }
  .pg-steps > li::before {
    top: 18px;
    left: 18px;
  }
  .pg-card {
    padding: 22px;
  }
  .pg-formula {
    font-size: 13.5px;
  }
}

/* "Which plan includes this" line under a feature page's answer, and plan badges in tables. */
.pg-plan {
  max-width: 780px;
  margin-top: 16px;
  padding: 10px 14px;
  border-left: 3px solid #0a0a0a;
  background: rgba(10, 10, 10, 0.04);
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.5;
}
.pg-plan a {
  font-weight: 600;
  white-space: nowrap;
}
.pg-plan-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* "Also see" links under a feature page's related cards: machine, guide, industry and plan. */
.pg-also {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15.5px;
}
.pg-also li {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.pg-also span {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pg-also a {
  font-weight: 600;
}
