/* ============================================================
   Article template (SEO pages, guides, legal pages)
   Loads after /css/site.css. Optional: /js/pages/article.js for the
   "On this page" highlight. FAQ (.faq-wrap) and the Hamburg CTA panel
   (.cta-panel) come from site.css unchanged; so do .kicker, .hero-meta,
   .hero-cta, .creds, .intro-card, .btn and .reveal.
   Prefix: art- (plus a few plain names used inside .prose).

   Page skeleton
     <section class="art-hero [art-hero--photo]">
       .container.art-hero-grid > .art-hero-text (.kicker, h1, .art-lede,
       optional .art-lang-note, .art-byline, .hero-meta, .hero-cta)
       + optional figure.art-hero-photo (.art-hero-img, optional .intro-card)
     <section class="art-body">
       .container.art-layout [.art-layout--toc] > article.prose
       + optional nav.art-toc (sticky on desktop, a box above the text on
       smaller screens; place it before the article in the markup)
     then .section--cream with .related-grid, the FAQ section, the CTA panel

   Classes
     .art-hero            hero section; add .art-hero--photo for text + photo
     .art-hero-text       left column: kicker, h1, lede, meta
     .art-lede            the intro paragraph under the h1
     .art-lang-note       one line with a flag linking the other language
     .art-byline          avatar + author + "updated, read time" line
     .art-hero-photo      figure with .art-hero-img (picture/img), may hold
                          an .intro-card on its edge like the in-person page
     .art-body            the section that holds the article
     .art-layout          prose column; --toc adds the sticky contents column
     .art-toc             nav: .art-toc-title + ol of links (a[aria-current]
                          marks the section in view; set by article.js)
     .prose               reading column (~68ch): h2 (give it an id), h3, p,
                          plain ul/ol, strong, links, blockquote, hr
     .art-table-wrap      scroll box around table.art-table; add
                          .art-table--stack and data-label on each td to turn
                          rows into small cards under 600px
     .art-nowrap          on a td that must stay on one line (prices)
     .art-table-note      small note under a table
     .callout             icon + text box (.tile, .callout-title, p)
     .art-figure          image with figcaption
     .price-list          list of .price-row (.price-row-name, .price-badge,
                          .price-row-sub, .price-row-amount > .num + span)
     .art-checks          list with a check icon per item (svg.ic + span)
     .art-numbered        ordered list of h3 + p with large serif numbers
     .art-points          list of .tile + div(h3, p), for a few named points
     .art-cta             in-article call to action (.art-cta-title, p,
                          .art-cta-actions with one or two .btn)
     .art-out             a .btn that leaves the site (map pin, arrow up-right)
     .related-grid        grid of a.related-card (.tile, h3, p, .more)
============================================================ */

/* ---- Hover easing for this file's triggers (same pattern as site.css) ---- */
.related-card, .art-toc a, .prose li a, .prose td a, .faq-body a, .art-numbered li, .art-points li {
    --e: var(--ease-in-out);
    --e-spring: var(--ease-in-out);
}
.related-card:hover, .related-card:focus-visible, .art-toc a:hover, .art-toc a:focus-visible,
.prose li a:hover, .prose li a:focus-visible, .prose td a:hover, .prose td a:focus-visible,
.faq-body a:hover, .faq-body a:focus-visible, .art-numbered li:hover, .art-points li:hover {
    --e: var(--ease-out);
    --e-spring: var(--ease-spring);
}

/* ---- Hero ---- */
.art-hero { padding: 64px 0 56px; }
.art-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 64px; align-items: center; }
.art-hero--photo .art-hero-grid { grid-template-columns: 1.1fr 0.9fr; }
.art-hero-text { max-width: 760px; }
.art-hero-text h1 { font-size: clamp(38px, 4.6vw, 58px); line-height: 1.06; max-width: 18ch; margin-bottom: 24px; }
.art-lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 40rem; margin-bottom: 28px; }
.art-hero-text .hero-cta { margin-bottom: 40px; }
.art-hero-text > :last-child { margin-bottom: 0; }

.art-lang-note {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    font-size: 15px; color: var(--ink-3); margin: -8px 0 32px;
}

.art-byline { display: flex; align-items: center; gap: 14px; margin: 0 0 8px; }
.art-byline img {
    width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%;
    object-fit: cover; object-position: 50% 22%; background: var(--bg-2);
    box-shadow: 0 0 0 1px var(--line);
}
.art-byline strong { display: block; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.art-byline-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--ink-3); line-height: 1.45; }
.art-byline-meta span { display: inline-flex; align-items: center; gap: 6px; }
.art-byline-meta .ic { width: 14px; height: 14px; flex-basis: 14px; }

.art-hero-photo { position: relative; padding-bottom: 32px; }
.art-hero-img { border-radius: var(--r-panel); overflow: hidden; background: var(--bg-2); }
.art-hero-img picture { display: block; }
.art-hero-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.art-hero-photo .intro-card { max-width: 320px; }
/* site.css turns nested spans in these into blocks; keep numbers inline */
.intro-card .num, .creds strong .num { display: inline; font-size: inherit; color: inherit; }

/* ---- Body and contents ---- */
.art-body { padding: 24px 0 112px; }
.art-layout { display: grid; grid-template-columns: minmax(0, 68ch); }
.art-layout--toc { grid-template-columns: minmax(0, 68ch) 232px; justify-content: space-between; column-gap: 64px; }
.art-layout--toc .art-toc { grid-column: 2; grid-row: 1; }
.art-layout--toc .prose { grid-column: 1; grid-row: 1; }

.art-toc { position: sticky; top: 104px; align-self: start; font-size: 14.5px; }
.art-toc-title { font-size: 14px; font-weight: 500; color: var(--ink-3); margin: 0 0 12px; }
.art-toc ol { display: flex; flex-direction: column; border-left: 1px solid var(--line-2); }
.art-toc a {
    position: relative; display: block; padding: 7px 0 7px 16px; margin-left: -1px;
    color: var(--ink-2); line-height: 1.4;
    transition: color var(--dur-1) var(--e);
}
/* Marker for the section in view: a honey bar that scales in on the track */
.art-toc a::before {
    content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px;
    background: var(--honey); transform: scaleY(0); transform-origin: 50% 50%;
    transition: transform var(--dur-2) var(--e);
}
.art-toc a:hover { color: var(--ink); }
.art-toc a[aria-current="true"] { color: var(--ink); font-weight: 500; }
.art-toc a[aria-current="true"]::before { transform: scaleY(1); }

/* ---- Prose ---- */
.prose { font-size: 17px; line-height: 1.7; color: var(--ink-2); min-width: 0; }
.prose > * { margin-top: 0; }
.prose p { margin-bottom: 1.15em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose h2 {
    font-size: clamp(28px, 2.6vw, 36px); line-height: 1.15;
    margin: 72px 0 20px; scroll-margin-top: 104px;
}
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 22px; line-height: 1.25; margin: 40px 0 12px; scroll-margin-top: 104px; }
.prose h2 + h3 { margin-top: 24px; }
.prose hr { border: 0; height: 1px; background: var(--line-2); margin: 48px 0; }

/* Links in lists, tables and FAQ answers get the same rule as links in paragraphs (site.css: p a) */
.prose li a, .prose td a, .faq-body a {
    position: relative;
    background-image: linear-gradient(var(--line-2), var(--line-2));
    background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
    padding-bottom: 1px;
}
.prose li a::after, .prose td a::after, .faq-body a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: currentColor; pointer-events: none;
    transform: scaleX(0); transform-origin: left center;
    transition: transform var(--dur-2) var(--e);
}
.prose li a:hover::after, .prose li a:focus-visible::after, .prose td a:hover::after,
.prose td a:focus-visible::after, .faq-body a:hover::after, .faq-body a:focus-visible::after { transform: scaleX(1); }

/* Plain lists only; lists with a class are components */
.prose ul:not([class]), .prose ol:not([class]) { margin: 0 0 1.4em; display: flex; flex-direction: column; gap: 10px; }
.prose ul:not([class]) > li, .prose ol:not([class]) > li { position: relative; padding-left: 28px; }
.prose ul:not([class]) > li::before {
    content: ""; position: absolute; left: 6px; top: .72em; width: 6px; height: 6px; border-radius: 50%;
    background: var(--honey);
}
.prose ol:not([class]) { counter-reset: art-ol; }
.prose ol:not([class]) > li { counter-increment: art-ol; }
.prose ol:not([class]) > li::before {
    content: counter(art-ol) "."; position: absolute; left: 0; top: 0;
    font-weight: 600; color: var(--honey-ink); font-variant-numeric: tabular-nums;
}

.prose blockquote {
    margin: 40px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--honey);
    font-family: var(--serif); font-variation-settings: "SOFT" 50;
    font-size: 24px; line-height: 1.4; color: var(--ink); letter-spacing: -0.01em;
}
.prose blockquote p { margin-bottom: .5em; }
.prose blockquote cite { display: block; font-family: var(--sans); font-style: normal; font-size: 15px; color: var(--ink-3); letter-spacing: 0; }

/* Component spacing inside the column */
.prose > .creds, .prose > .art-table-wrap, .prose > .callout, .prose > .art-figure, .prose > .price-list,
.prose > .art-checks, .prose > .art-numbered, .prose > .art-points, .prose > .art-cta { margin: 32px 0; }
.prose > .art-cta { margin: 56px 0; }
.prose > .art-cta-actions { margin: 24px 0 32px; }
.prose > :last-child { margin-bottom: 0; }
.prose > .art-table-wrap + .art-table-note { margin-top: -20px; }

/* ---- Tables ---- */
.art-table-wrap {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
}
.art-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.art-table th, .art-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.art-table th { font-size: 13px; font-weight: 600; color: var(--ink); background: var(--bg-2); white-space: nowrap; }
.art-table tbody tr:last-child td { border-bottom: 0; }
.art-table td { color: var(--ink-2); }
.art-table td strong { color: var(--ink); font-weight: 600; }
.art-table td small { display: block; font-size: 13px; color: var(--ink-3); }
.art-table .num { font-variant-numeric: tabular-nums; }
.art-table .art-nowrap, .art-table small.num { white-space: nowrap; }
.art-table-note { font-size: 14px; color: var(--ink-3); }

/* ---- Callout ---- */
.callout {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 20px 24px; border-radius: var(--r-card);
    background: var(--surface); border: 1px solid var(--line);
    font-size: 16px; line-height: 1.6;
}
.callout .tile { color: var(--ink); padding-top: 2px; }
.callout > div { min-width: 0; }
.callout-title, .prose .callout-title {
    font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: 0;
    color: var(--ink); line-height: 1.4; margin: 0 0 6px;
}
.callout p { margin-bottom: .6em; }
.callout > div > :last-child { margin-bottom: 0; }
.callout ul:not([class]) { margin: 8px 0 0; gap: 6px; }

/* ---- Figure ---- */
.art-figure img { width: 100%; border-radius: var(--r-panel); background: var(--bg-2); }
.art-figure picture { display: block; }
.art-figure figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }

/* ---- Price list ---- */
.price-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 0 24px; }
.price-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; align-items: baseline;
    padding: 20px 0;
}
.price-row + .price-row { border-top: 1px solid var(--line); }
.price-list .price-row-name { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.price-badge {
    display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px;
    background: var(--honey); color: var(--ink); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.price-list .price-row-sub { grid-column: 1; font-size: 15px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.price-row-sub .num { color: var(--honey-ink); font-weight: 500; }
.price-list .price-row-amount { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; white-space: nowrap; margin: 0; }
.price-row-amount .num {
    display: block; font-family: var(--serif); font-variation-settings: "SOFT" 50;
    font-size: 32px; line-height: 1; letter-spacing: -0.02em; color: var(--ink);
}
.price-row-amount span:not(.num) { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-3); }

/* ---- Lists with icons, numbers, named points ---- */
.art-checks { display: flex; flex-direction: column; gap: 12px; }
.art-checks li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; }
.art-checks .ic { margin-top: 4px; color: var(--honey-ink); }

.art-numbered { counter-reset: art-n; border-top: 1px solid var(--line-2); }
.art-numbered > li {
    counter-increment: art-n;
    display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px;
    padding: 28px 0; border-bottom: 1px solid var(--line-2);
}
.art-numbered > li::before {
    content: counter(art-n, decimal-leading-zero);
    font-family: var(--serif); font-variation-settings: "SOFT" 100;
    font-size: 36px; line-height: 1; color: var(--ink-3); opacity: .75;
    font-variant-numeric: tabular-nums;
    transition: color var(--dur-2) var(--e), translate var(--dur-2) var(--e);
}
.art-numbered h3 { margin: 4px 0 8px; font-size: 21px; }
.art-numbered p { margin: 0; font-size: 16px; }

.art-points { display: flex; flex-direction: column; gap: 24px; }
.art-points > li { display: flex; gap: 16px; align-items: flex-start; }
.art-points .tile { padding-top: 3px; transition: color var(--dur-2) var(--e), translate var(--dur-2) var(--e); }
.art-points h3 { margin: 0 0 4px; font-size: 20px; }
.art-points p { margin: 0; font-size: 16px; }
@media (hover: hover) {
    .art-numbered > li:hover::before { color: var(--honey-ink); translate: 0 var(--lift-sm); }
    .art-points > li:hover .tile { color: var(--honey-ink); translate: 0 var(--lift-sm); }
}

/* ---- In-article call to action (same honey tint as the in-person trial box) ---- */
.art-cta {
    padding: 28px 32px; border-radius: var(--r-card);
    background: color-mix(in srgb, var(--honey-soft) 38%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--honey) 30%, transparent);
}
.art-cta-title, .prose .art-cta-title {
    font-family: var(--serif); font-variation-settings: "SOFT" 50;
    font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 8px;
}
.art-cta p { font-size: 16px; margin-bottom: 20px; }
.art-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }   /* also usable on its own in .prose for a row of buttons */

/* Outbound button: real map pin pops, the small arrow points up and out */
.art-out .logo { transition: scale var(--dur-2) var(--e-spring); }
.art-out .ic { width: 16px; height: 16px; flex-basis: 16px; color: var(--ink-3); }
.art-out:focus-visible .ic { translate: calc(var(--nudge) * .7) calc(var(--nudge) * -.7); }
@media (hover: hover) {
    .art-out:hover .logo { scale: var(--pop); }
    .art-out:hover .ic { translate: calc(var(--nudge) * .7) calc(var(--nudge) * -.7); }
}

/* ---- Related pages ---- */
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.related-card {
    position: relative; display: flex; flex-direction: column; gap: 12px;
    padding: 28px 28px 24px; color: inherit;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
    box-shadow: var(--shadow-rest);
    transition: border-color var(--dur-2) var(--e), background-color var(--dur-2) var(--e), translate var(--dur-2) var(--e);
}
.related-card::after {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
    box-shadow: var(--shadow-lift); opacity: 0;
    transition: opacity var(--dur-2) var(--e);
}
.related-card:hover { color: inherit; }
.related-card .tile { margin-bottom: 4px; transition: color var(--dur-2) var(--e), translate var(--dur-2) var(--e); }
.related-card h3 { font-size: 21px; margin: 0; }
.related-card p { font-size: 15px; margin: 0; }
.related-card .more {
    margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    font-size: 15px; font-weight: 500; color: var(--ink);
}
.related-card .more .ic { color: var(--honey-ink); transition: translate var(--dur-2) var(--e); }
.related-card:focus-visible .more .ic { translate: var(--nudge) 0; }
@media (hover: hover) {
    .related-card:hover { border-color: var(--line-2); background: #fff; translate: 0 var(--lift-md); }
    .related-card:hover::after { opacity: 1; }
    .related-card:hover .tile { color: var(--honey-ink); translate: 0 var(--lift-sm); }
    .related-card:hover .more { color: var(--honey-ink); }
    .related-card:hover .more .ic { translate: var(--nudge) 0; }
}
.related-card:active { translate: 0 var(--lift-sm); transition-duration: var(--dur-press); }

/* ---- Responsive ---- */
@media (max-width: 1080px) {
    /* The contents list leaves the side and sits above the text as a small box */
    .art-layout--toc { grid-template-columns: minmax(0, 68ch); }
    .art-layout--toc .art-toc, .art-layout--toc .prose { grid-column: 1; grid-row: auto; }
    .art-toc {
        position: static; margin-bottom: 48px; padding: 20px 24px;
        background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
    }
    .art-toc ol { border-left: 0; }
    .art-toc a { padding: 6px 0; margin-left: 0; }
    .art-toc a::before { display: none; }
    .art-hero--photo .art-hero-grid { gap: 48px; }
}

@media (max-width: 900px) {
    .art-hero { padding: 32px 0 48px; }
    .art-hero--photo .art-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .art-hero-photo { max-width: 560px; }
    .art-body { padding-bottom: 80px; }
    .related-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}

@media (max-width: 600px) {
    .art-hero-text h1 { font-size: 36px; }
    .art-lede { font-size: 17px; }
    .art-hero-photo { padding-bottom: 0; }
    .prose { font-size: 16.5px; }
    .prose h2 { font-size: 28px; margin-top: 56px; }
    .prose h3 { font-size: 20px; }
    .prose blockquote { font-size: 21px; padding-left: 18px; }
    .art-toc { padding: 16px 20px; }
    .callout { padding: 18px 20px; gap: 12px; }
    .price-list { padding: 0 20px; }
    .price-row { gap: 4px 16px; }
    .price-row-amount .num { font-size: 26px; }
    .art-numbered > li { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 24px 0; }
    .art-numbered > li::before { font-size: 28px; }
    .art-cta { padding: 24px 20px; }
    .art-cta-actions .btn { width: 100%; justify-content: center; }
    .art-out { width: 100%; justify-content: center; }
    .related-card { padding: 24px 20px 20px; }

    /* Stacked table: each row becomes a small card, each cell a label and a value */
    .art-table-wrap:has(.art-table--stack) { overflow: visible; background: transparent; border: 0; border-radius: 0; }
    .art-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .art-table--stack, .art-table--stack tbody, .art-table--stack tr, .art-table--stack td { display: block; }
    .art-table--stack tr {
        background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
        padding: 6px 18px;
    }
    .art-table--stack tr + tr { margin-top: 12px; }
    .art-table--stack td {
        display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
        padding: 10px 0; text-align: right;
    }
    .art-table.art-table--stack tbody tr td { border-bottom: 1px solid var(--line); }
    .art-table.art-table--stack tbody tr td:last-child { border-bottom: 0; }
    .art-table--stack td::before {
        content: attr(data-label); flex: 0 0 auto; text-align: left;
        font-size: 13px; font-weight: 600; color: var(--ink-3);
    }
    .art-table--stack td:first-child { display: block; text-align: left; }
    .art-table--stack td:first-child::before { display: none; }
    .art-table--stack td small { display: block; }
}

@media (prefers-reduced-motion: reduce) {
    .art-toc a::before, .prose li a::after, .prose td a::after, .faq-body a::after { transition-duration: .01ms !important; }
}
