/* Popmelon v2 — long-form pages (guides, help, privacy, terms, 404).
   Loaded after /css/site.css and built from its tokens. */

.page-hero {
  padding-block: clamp(40px, 6vw, 80px) clamp(36px, 4vw, 56px);
  background: var(--warm);
}
.page-hero-glow {
  display: none;
}
.page-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 720px);
  justify-content: center;
  gap: 72px;
  width: min(100% - var(--gutter) * 2, 1040px);
  margin-inline: auto;
}
.page-hero-inner {
  grid-column: 2;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}
.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: #c9c2b8;
}
.crumbs a {
  color: var(--muted);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page .eyebrow {
  display: block;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-hero h1 {
  font-family: var(--display);
  font-weight: 750;
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.page h1 .serif,
.page h2 .serif {
  font: inherit;
  font-style: normal;
  color: inherit;
}
.byline {
  display: block;
  margin-top: 24px;
  color: var(--muted);
  font-size: 15px;
}
.byline img {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  vertical-align: -6px;
}
.page-hero .lede {
  margin-top: 22px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.page-body {
  padding-block: clamp(40px, 5vw, 64px) 0;
}

/* Contents */
.toc {
  position: sticky;
  top: 100px;
  align-self: start;
  font-size: 14px;
}
.toc-title {
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--ink);
}
.toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line);
}
.toc a {
  display: block;
  margin-left: -1px;
  padding: 6px 0 6px 14px;
  border-left: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.35;
}
.toc a:hover,
.toc a.is-current {
  color: var(--ink);
  border-left-color: var(--melon);
}

/* Reading column */
.prose {
  min-width: 0;
  font-size: 18px;
  line-height: 1.75;
}
.prose > * + * {
  margin-top: 20px;
}
.prose .lede {
  font-size: 21px;
  line-height: 1.6;
  color: var(--ink-2);
}
.prose h2 {
  margin-top: 64px;
  font-family: var(--display);
  font-weight: 750;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  scroll-margin-top: 96px;
}
.prose h2 + * {
  margin-top: 18px;
}
.prose h3 {
  margin-top: 36px;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.prose h3 + p {
  margin-top: 8px;
}
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(21, 60, 50, 0.35);
}
.prose a:hover {
  text-decoration-color: currentColor;
}
.prose strong {
  font-weight: 650;
}
.prose ul,
.prose ol {
  padding-left: 1.2em;
}
.prose li + li {
  margin-top: 10px;
}
.prose li::marker {
  color: var(--muted);
}

/* At a glance */
.glance {
  padding: 24px 28px;
  border-radius: var(--r);
  background: var(--warm);
  font-size: 16px;
  line-height: 1.6;
}
.glance > p:first-child {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.glance ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.glance li {
  position: relative;
  margin: 0 !important;
  padding-left: 26px;
}
.glance li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 11px;
  height: 6px;
  border-left: 1.8px solid var(--leaf);
  border-bottom: 1.8px solid var(--leaf);
  transform: rotate(-45deg);
}

/* Numbered steps */
.prose ol.steps {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
  counter-reset: s;
}
.prose ol.steps > li {
  counter-increment: s;
  position: relative;
  margin: 0;
  padding: 18px 22px 18px 64px;
  border-radius: 16px;
  background: var(--warm);
  font-size: 17px;
  line-height: 1.6;
}
.prose ol.steps > li::before {
  content: counter(s);
  position: absolute;
  left: 20px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--butter);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

/* Figures */
.prose figure {
  margin: 36px 0;
}
.prose figure img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}
.prose figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
  -webkit-overflow-scrolling: touch;
}
.prose table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.prose th,
.prose td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose thead th {
  background: var(--warm);
  font-size: 13px;
  font-weight: 700;
}
.prose tbody tr:last-child > * {
  border-bottom: 0;
}
.prose sup a {
  text-decoration: none;
  font-size: 0.75em;
}

/* FAQ */
.prose .faq h3:first-of-type {
  margin-top: 20px;
}

/* Call to action */
.prose .cta {
  margin-top: 64px;
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--r-lg);
  background: var(--butter);
}
.prose .cta h2 {
  margin-top: 0;
  font-size: clamp(28px, 2.6vw, 34px);
}
.prose .cta p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
}
.prose .cta .button {
  margin-top: 24px;
  white-space: normal;
  text-align: left;
}
.prose .cta .cta-note {
  margin-top: 14px;
  font-size: 14px;
}

/* Related and notes */
.prose ul.related {
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.prose ul.related li {
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.prose ul.related a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}
.prose ul.related a::after {
  content: "→";
  color: var(--muted);
  transition: transform 0.2s;
}
.prose ul.related a:hover::after {
  transform: translateX(3px);
}
.how-made,
.disclosure {
  padding: 16px 20px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.how-made strong,
.disclosure strong {
  color: var(--ink);
}
.prose .sources {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.prose .sources li + li {
  margin-top: 8px;
}
.meta,
.trademark {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Legal */
.legal .prose h2 {
  font-size: clamp(26px, 2.4vw, 32px);
}

/* Halloween */
.is-halloween .eyebrow {
  color: #a24a14;
}

/* 404 */
.is-centered .page-grid {
  grid-template-columns: minmax(0, 720px);
}
.is-centered .page-hero-inner {
  grid-column: 1;
  padding-block: 40px 80px;
  text-align: center;
}
.notfound-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.notfound-links a {
  font-weight: 600;
  text-underline-offset: 3px;
}
.notfound-note {
  margin-top: 24px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .page-grid {
    grid-template-columns: minmax(0, 720px);
    gap: 0;
  }
  .page-hero-inner {
    grid-column: 1;
  }
  .toc {
    display: none;
  }
}
@media (max-width: 680px) {
  .prose {
    font-size: 17px;
  }
  .prose .lede {
    font-size: 19px;
  }
  .prose ol.steps > li {
    padding: 16px 16px 16px 56px;
  }
  .prose ol.steps > li::before {
    left: 16px;
  }
}
@media print {
  .site-header,
  .site-footer,
  .toc,
  .announce,
  .cta {
    display: none !important;
  }
  body {
    background: #fff;
  }
}

/* Pages without a contents list read in one column. */
.page:has(.is-single) .page-grid {
  grid-template-columns: minmax(0, 720px);
}
.page:has(.is-single) .page-hero-inner {
  grid-column: 1;
}

/* Services list (generated by scripts/build-site-services.mjs) */
.prose .service-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.prose .service-list li {
  margin: 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--gray);
  font-size: 16px;
  line-height: 1.55;
}
.prose .service-list strong {
  font-weight: 700;
}
.service-level {
  color: var(--muted);
  font-size: 14px;
}
.prose .service-level.service-pill {
  color: #7a4b00;
}
.prose .meta {
  color: var(--muted);
  font-size: 14px;
}
.page-hero .meta {
  margin-top: 14px;
}
