/* Passage — guides and comparisons.
   Long-form reading pages. Loads after site.css and reuses its tokens. */

.article { padding-top: clamp(28px, 5vw, 64px); }
.article > .cta { margin-top: clamp(72px, 9vw, 120px); }
.article__head, .prose, .article__foot { width: min(100% - var(--gutter) * 2, 720px); margin-inline: auto; }

/* ---------- Breadcrumbs ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; font: 500 13px/1.4 var(--sans); color: var(--ink-3); }
.crumbs li { display: flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: "/"; color: var(--ink-3); opacity: .6; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-3); }

/* ---------- Head ---------- */
.article__head-in { margin-top: clamp(32px, 5vw, 56px); }
.article__head .kicker { margin-bottom: 18px; }
.article__title {
  font-weight: 450;
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.02;
  letter-spacing: -.022em;
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
}
.answer {
  margin-top: 28px;
  padding-left: 20px;
  border-left: 3px solid var(--orange);
  font-size: clamp(19px, 1.2vw + 12px, 22px);
  line-height: 1.5;
  color: var(--ink);
  text-wrap: pretty;
}
.byline {
  display: flex; flex-wrap: wrap; gap: 4px 16px;
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line);
  font: 500 13px/1.4 var(--sans); color: var(--ink-3);
}
.byline b { font-weight: 600; color: var(--ink-2); }

/* ---------- On this page ---------- */
.toc { margin-top: 36px; padding: 22px 24px; border-radius: 18px; background: var(--paper-2); }
.toc h2 { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.toc ol { counter-reset: toc; display: grid; gap: 6px; }
.toc li { counter-increment: toc; display: flex; gap: 12px; font-size: 17px; line-height: 1.4; }
.toc li::before { content: counter(toc, decimal-leading-zero); flex: none; padding-top: 3px; font: 600 11px/1.4 var(--sans); color: var(--orange-ink); }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Prose ---------- */
.prose { margin-top: clamp(32px, 4vw, 48px); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 {
  margin-top: 2.2em;
  font-weight: 450; font-size: clamp(27px, 2.4vw, 34px); line-height: 1.12; letter-spacing: -.015em;
  font-variation-settings: "opsz" 48; text-wrap: balance;
}
.prose h3 { margin-top: 1.7em; font: 500 22px/1.25 var(--serif); letter-spacing: -.01em; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose p, .prose li { text-wrap: pretty; }
.prose a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--orange-ink); }
.prose strong { font-weight: 600; }
.prose em[lang], .prose i[lang] { font-style: italic; }
.prose [id] { scroll-margin-top: 96px; }

/* A quoted line from a book, with its translation under it */
.excerpt { margin: 1.6em 0; padding: 22px 24px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.excerpt p { margin: 0; }
.excerpt .orig { font-size: 20px; line-height: 1.5; font-style: italic; }
.excerpt .tr { margin-top: 10px; color: var(--ink-2); font-size: 17px; }
.excerpt .src { margin-top: 12px; font: 500 12px/1.4 var(--sans); letter-spacing: .02em; color: var(--ink-3); }

/* "In Passage" asides */
.note { padding: 20px 22px; border-radius: 16px; background: var(--paper-2); font-size: 17px; }
.note > * + * { margin-top: .6em; }
.note__label { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); }

/* Book lists: title, author and year, level, one line on why */
.books { list-style: none !important; padding-left: 0 !important; border-top: 1px solid var(--line); }
.books li { margin: 0 !important; padding: 16px 0; border-bottom: 1px solid var(--line); }
.books .book { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.books .book b { font-weight: 550; font-size: 20px; }
.books .book span { font: 500 13px/1.3 var(--sans); color: var(--ink-3); }
.books p { margin-top: 6px; color: var(--ink-2); font-size: 17px; }
.lvl { display: inline-block; padding: 4px 9px; border-radius: 999px; font: 600 11px/1 var(--sans) !important; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-ink) !important; background: var(--orange-wash); }

/* Tables */
.table { overflow-x: auto; margin: 1.6em 0; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.table table { width: 100%; min-width: 560px; border-collapse: collapse; font: 500 14px/1.45 var(--sans); }
.table th, .table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-2); }
.table tbody th { font-weight: 600; color: var(--ink); }
.table td { color: var(--ink-2); }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
.table caption { caption-side: bottom; padding: 10px 14px 12px; text-align: left; font: 500 12px/1.4 var(--sans); color: var(--ink-3); }

/* Sources */
.sources { font-size: 15px; color: var(--ink-2); }
.sources li + li { margin-top: .3em; }

/* Inline call to action */
.cta-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px;
  margin: 2.4em 0 !important; padding: 24px 26px; border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
}
.cta-card p { margin: 0; max-width: 26em; font-size: 18px; }
.cta-card p b { display: block; font: 500 22px/1.2 var(--serif); margin-bottom: 4px; }
.cta-card .store { height: 52px; font-size: 18px; background: var(--paper); color: var(--ink); }
.cta-card .store:hover { background: #FFD7BF; color: #111; }

/* ---------- FAQ ---------- */
.qa { border-top: 1px solid var(--line); margin-top: .8em !important; }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px 0; font: 500 20px/1.3 var(--serif); letter-spacing: -.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 1.8px solid var(--ink-2); border-bottom: 1.8px solid var(--ink-2); transform: translateY(-3px) rotate(45deg); transition: transform .3s var(--ease); }
.qa details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.qa details > div { padding: 0 0 20px; color: var(--ink-2); }
.qa details > div > * + * { margin-top: .7em; }

/* ---------- Related ---------- */
.article__foot { margin-top: clamp(56px, 7vw, 88px); }
.related h2 { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.related ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.card-link {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 18px 20px; border-radius: 16px; text-decoration: none;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s, transform .2s var(--ease);
}
.card-link:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.card-link small { font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); }
.card-link b { font: 500 19px/1.25 var(--serif); letter-spacing: -.01em; }
.card-link span { font-size: 15px; line-height: 1.45; color: var(--ink-2); }

/* ---------- Guides index ---------- */
.hub { width: min(100% - var(--gutter) * 2, 1000px); margin-inline: auto; }
.hub section { margin-top: clamp(40px, 5vw, 64px); }
.hub h2 { font: 450 clamp(26px, 2.4vw, 32px)/1.1 var(--serif); letter-spacing: -.015em; margin-bottom: 18px; }
.hub ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.hub .card-link { padding: 22px 24px; }
.hub .card-link b { font-size: 22px; }
.article__head--wide { width: min(100% - var(--gutter) * 2, 1000px); }
.article__head--wide .answer { max-width: 40em; }

/* ---------- Blog index ---------- */
.hub .posts { grid-template-columns: 1fr; gap: 12px; }
.hub .posts .card-link { padding: 22px 26px; }
.hub .posts .card-link b { font-size: 24px; }
.feed-link { margin-top: 40px; font: 500 14px/1.4 var(--sans); }
.feed-link a { color: var(--accent-text); text-underline-offset: 3px; }
