/* ------------------------------------------------------------
   synappro design system — component patterns
   Buttons, cards, bands, accordion, pills. Requires tokens.css.
   ------------------------------------------------------------ */

/* ===== Buttons ===== */
/* Labels are lower-case verbs: "book a workshop", "learn more". */

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    padding: 16px 28px;
    border-radius: var(--r-btn);
    border: none;
    cursor: pointer;
    transition: background var(--dur-control) var(--ease-breath), border-color var(--dur-control) var(--ease-breath), transform var(--dur-control) var(--ease-breath);
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--terracotta-500);
    color: #FFFFFF;
    box-shadow: 0 10px 30px rgba(227, 83, 54, 0.28);
}
.btn-primary:hover { background: var(--terracotta-600); }

.btn-secondary {
    background: var(--sky-50);
    color: var(--sky-700);
    border: 1.5px solid var(--sky-200);
}
.btn-secondary:hover { background: var(--sky-100); border-color: var(--sky-300); }

.btn-ghost {
    background: var(--surface-card);
    color: var(--ink-900);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: var(--neutral-100); }

.btn-on-dark {
    background: #FFFFFF;
    color: var(--sky-800);
    font-weight: 600;
}
.btn-on-dark:hover { background: var(--sky-100); }

.btn-outline-on-dark {
    background: transparent;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.5);
}
.btn-outline-on-dark:hover { background: rgba(255, 255, 255, 0.12); }

.btn-sm { font-size: 15px; padding: 10px 18px; }
.btn-md { font-size: 15px; padding: 14px 26px; }

.link-inline {
    color: var(--sky-600);
    font-weight: 600;
    text-decoration: none;
}
.link-inline:hover { color: var(--sky-700); }

/* ===== Paper card ===== */

.card-paper {
    background: var(--surface-card);
    border-radius: var(--r-card);
    padding: 48px;
    box-shadow: var(--shadow-md);
}
.card-paper.is-standard { padding: 40px; }
.card-paper.is-compact { padding: 32px; }
/* A .split-card-grid card with its media column removed — caps the reading
   width so text/timeline rows don't stretch full-bleed across the section. */
.card-paper.info-card-solo { max-width: 780px; }

@media (max-width: 1039px) {
    .card-paper { padding: 28px; }
    .card-paper.is-standard { padding: 28px; }
}

/* ===== Neumorphic panel ===== */
/* Canvas-coloured only. One or two per screen, maximum. */

.panel-neu {
    background: var(--canvas);
    border-radius: var(--r-card);
    padding: 32px;
    box-shadow:
        -9px -9px 20px rgba(255, 255, 255, 1),
        9px 9px 22px hsl(220 18% 55% / 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

@media (max-width: 1039px) {
    .panel-neu { padding: 28px; }
}

/* ===== Neumorphic segmented control ===== */

.seg-track {
    display: flex;
    gap: 6px;
    padding: 6px;
    border-radius: 18px;
    background: var(--canvas);
    box-shadow:
        inset -7px -7px 14px rgba(255, 255, 255, 1),
        inset 7px 7px 15px hsl(220 18% 55% / 0.45);
}
.seg-tab {
    flex: 1;
    font-family: var(--font-body);
    font-size: 15px;
    padding: 12px 8px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    background: transparent;
    color: var(--ink-700);
    transition: background var(--dur-control) var(--ease-breath), color var(--dur-control) var(--ease-breath);
}
.seg-tab.is-active {
    background: #FFFFFF;
    color: var(--ink-900);
    font-weight: 600;
    box-shadow:
        -4px -4px 10px rgba(255, 255, 255, 1),
        4px 4px 11px hsl(220 18% 55% / 0.24);
}

/* Panels stacked on the same grid cell so switching tabs never reflows
   the card — the tallest panel (even hidden ones, via visibility not
   display) sets the height. */
.seg-panels { display: grid; }
.seg-panel { grid-area: 1 / 1; visibility: hidden; pointer-events: none; }
.seg-panel.is-active { visibility: visible; pointer-events: auto; }

/* ===== Dark band ===== */

.band-dark {
    position: relative;
    border-radius: var(--r-band);
    overflow: hidden;
    background: var(--ink-950);
    padding: 72px 64px;
}
.band-dark .t-eyebrow { color: rgba(250, 251, 252, 0.6); }
.band-dark .t-h2, .band-dark .t-h3 { color: #FAFBFC; }
.band-dark .t-lead, .band-dark .t-body { color: rgba(250, 251, 252, 0.86); }
.band-dark .band-numeral { color: var(--terracotta-300); }
.band-dark .band-divider { border-top: 1px solid rgba(255, 255, 255, 0.15); }

/* ===== Closing CTA band ===== */

.band-cta {
    position: relative;
    border-radius: var(--r-band);
    overflow: hidden;
    background: var(--sky-800);
    padding: 80px 64px;
}
.band-cta .t-eyebrow { color: rgba(255, 255, 255, 0.75); }
.band-cta .t-h2 { color: #FFFFFF; }
.band-cta .t-lead, .band-cta .t-body { color: rgba(255, 255, 255, 0.9); }

.band-grain {
    position: absolute;
    inset: 0;
    background-image: var(--grain);
    opacity: 0.12;
    mix-blend-mode: overlay;
    pointer-events: none;
}

@media (max-width: 1039px) {
    .band-dark, .band-cta { padding: 40px 24px; }
}

/* ===== Glass capsule over imagery ===== */

.capsule-dark {
    background: rgba(57, 57, 58, 0.46);
    backdrop-filter: blur(24px) saturate(110%);
    -webkit-backdrop-filter: blur(24px) saturate(110%);
    border-radius: 24px;
    padding: 24px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(255, 255, 255, 0.10);
}
.capsule-dark .t-metadata { color: rgba(255, 255, 255, 0.72); }
.capsule-dark p:last-child { color: #FAFBFC; }

.capsule-light {
    background: rgba(245, 246, 249, 0.76);
    backdrop-filter: blur(24px) saturate(110%);
    -webkit-backdrop-filter: blur(24px) saturate(110%);
    border-radius: 24px;
    padding: 24px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(255, 255, 255, 0.42);
}

/* ===== Media well ===== */

.media-well {
    position: relative;
    border-radius: var(--r-card);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.media-well img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-well-grain {
    position: absolute;
    inset: 0;
    background-image: var(--grain);
    opacity: 0.10;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* ===== Accordion ===== */

.accordion-item {
    background: var(--surface-card);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.accordion-item + .accordion-item { margin-top: 12px; }
.accordion-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 36px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 21px;
    color: var(--ink-900);
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after {
    /* Drawn from two exactly-centered bars rather than a "+" glyph — font
       metrics don't optically center a plus character in its box, so a
       text-based icon always reads a few px off from true-center. */
    content: '';
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--r-btn);
    background-color: var(--sky-50);
    background-image:
        linear-gradient(var(--sky-700), var(--sky-700)),
        linear-gradient(var(--sky-700), var(--sky-700));
    background-size: 14px 2px, 2px 14px;
    background-position: center, center;
    background-repeat: no-repeat;
    transition: transform var(--dur-control) var(--ease-breath);
}
.accordion-item[open] summary::after { transform: rotate(45deg); }
.accordion-item-body {
    padding: 0 36px 32px;
    font-size: 18px;
    line-height: 1.65;
    color: var(--ink-700);
}

/* ===== Accordion group ===== */
/* A labelled cluster of accordion items (science references, FAQ topics). */

.accordion-group .t-eyebrow { margin-bottom: 20px; }
.accordion-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }

/* A section that's followed by another section rather than being the last
   one before a band — tighter bottom padding (72px vs the default 96px). */
.section.is-tight { padding-bottom: 72px; }

/* ===== Media hero (full-bleed image, capped-width capsule) ===== */
/* The product-detail-page hero — a big image with a card-shaped glass
   capsule anchored bottom-left, capped to 640px so it never spans the
   whole image. */

.media-hero-section {
    position: relative;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 132px var(--side-pad) 96px;
}
.media-hero {
    position: relative;
    border-radius: var(--r-band);
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow-xl);
}
.media-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-hero-overlay {
    position: relative;
    margin: 28px;
    padding: 40px;
    max-width: 640px;
    border-radius: var(--r-card);
    background: rgba(57, 57, 58, 0.46);
    backdrop-filter: blur(24px) saturate(110%);
    -webkit-backdrop-filter: blur(24px) saturate(110%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(255, 255, 255, 0.10);
}
.media-hero-overlay .t-metadata { color: rgba(255, 255, 255, 0.72); margin-bottom: 16px; }
.media-hero-overlay .t-h2 { color: #FAFBFC; margin-bottom: 16px; }
.media-hero-overlay .t-body { color: rgba(250, 251, 252, 0.9); margin-bottom: 28px; }
.media-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.media-hero-actions .btn { padding: 12px 22px; font-size: 16px; }

@media (max-width: 1039px) {
    .media-hero-section { padding-left: var(--side-pad-mobile); padding-right: var(--side-pad-mobile); }
    .media-hero { min-height: 420px; }
}
@media (max-width: 559px) {
    /* The overlay's own 28px margin + 40px padding (unchanged from desktop)
       eats 68px off each side of an already-narrow screen, squeezing the
       headline into 2-3 words per line. Both shrink here so the text gets
       real width to work with. */
    .media-hero-overlay { margin: 14px; padding: 24px; }
}

.split-card-grid.is-wide-left { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }

/* ===== Pull-quote panel ===== */

.quote-panel { padding: 64px; }
.quote-panel blockquote {
    font-family: var(--font-heading);
    font-size: var(--fs-33);
    line-height: 1.35;
    color: var(--ink-900);
    margin: 0;
    max-width: 56ch;
}
.quote-panel .t-metadata { margin: 24px 0 0; }
@media (max-width: 1039px) {
    .quote-panel { padding: 28px; }
}

/* ===== Full-bleed image band (no overlay) ===== */

.image-band { position: relative; border-radius: var(--r-band); overflow: hidden; min-height: 420px; box-shadow: var(--shadow-lg); }
.image-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ===== Stats strip (bordered row of big mono numerals) ===== */

.stats-strip {
    border-top: 1px solid var(--border-hairline);
    border-bottom: 1px solid var(--border-hairline);
    padding: 40px 0;
}
.stats-strip-grid { gap: 32px; }
.stats-strip-grid .t-numeral-sm { margin: 0 0 8px; }
.stats-strip-grid p:last-child { font-size: 16px; line-height: 1.5; color: var(--ink-700); margin: 0; }

/* ===== Product feature card (hub pages) ===== */
/* Full-bleed image with a glass capsule bottom-left — the single- or
   two-product "feature" treatment used on the apps/sounds/sessions hubs.
   .product-list stacks one full-width; .product-grid pairs two side by
   side (combine with .grid-2 for the responsive collapse). */

.product-list { display: flex; flex-direction: column; gap: 24px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.product-feature-card {
    position: relative;
    border-radius: var(--r-card);
    overflow: hidden;
    min-height: 460px;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow-lg);
}
.product-feature-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.product-feature-overlay {
    position: relative;
    margin: 24px;
    padding: 32px;
    border-radius: 24px;
    background: rgba(57, 57, 58, 0.46);
    backdrop-filter: blur(24px) saturate(110%);
    -webkit-backdrop-filter: blur(24px) saturate(110%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(255, 255, 255, 0.10);
}
.product-feature-overlay .t-h3 { color: #FAFBFC; margin: 0 0 8px; }
.product-feature-overlay .t-metadata { color: rgba(255, 255, 255, 0.72); margin: 0 0 24px; }
.product-feature-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.product-feature-actions .btn { padding: 12px 22px; font-size: 16px; }

@media (max-width: 559px) {
    .product-feature-overlay { margin: 14px; padding: 22px; }
}

/* ===== Feature card ===== */
/* Terracotta eyebrow (label or numeral) + h4 title + small body — the
   plain 3-up card used for "rules", "what makes it different", "what
   people say" style sections across apps/product pages. */

.feature-cards { gap: 24px; margin-top: 40px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-cards.is-tight { margin-top: 8px; }
/* Scoped to desktop only — unscoped, this class's specificity (two
   classes) would permanently beat .grid-3's own media-query collapse
   rules (one class) at every width, since specificity doesn't care that
   those rules sit inside a narrower media query. Below 1040px, .grid-3's
   own 2-col/1-col collapse applies unimpeded. */
@media (min-width: 1040px) {
    .feature-cards.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.feature-card .t-metadata { color: var(--terracotta-500); margin: 0 0 16px; }
.feature-card .t-h4 { margin: 0 0 12px; }
.feature-card .t-small { font-size: 17px; margin: 0; }

/* ===== Data pill ===== */
/* All the same colour, deliberately, so the eye reads them as one family. */

.data-pill {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 0.06em;
    color: var(--sky-700);
    background: var(--sky-50);
    border-radius: var(--r-pill);
    padding: 6px 10px;
    text-align: center;
}

/* ===== Plain page hero (eyebrow + h1 + lead, no split image) ===== */

.page-hero-section {
    position: relative;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 180px var(--side-pad) 72px;
}
.page-hero-copy { max-width: 820px; }
.page-hero-copy .t-eyebrow { margin-bottom: 20px; }
.page-hero-copy .t-h1 { margin-bottom: 24px; }
.page-hero-copy .t-lead { max-width: 62ch; }

@media (max-width: 1039px) {
    .page-hero-section { padding-top: 132px; padding-left: var(--side-pad-mobile); padding-right: var(--side-pad-mobile); }
}

/* ===== Section wrapper ===== */

.section {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--side-pad) 96px;
}
/* A bare eyebrow sitting directly in a .section (no .section-head/card
   wrapper) — used for several section intros site-wide (about, team,
   apps/breathe, sessions/workshop, sessions/display). Every wrapped variant
   of .t-eyebrow gets its own 20px margin-bottom; this is the same rule for
   the un-wrapped case, which had none and read as glued to the heading. */
.section > .t-eyebrow { margin-bottom: 20px; }

/* ===== Section head ===== */
/* Eyebrow + h2 + lead, with an optional right-aligned slot (title row for
   a card grid or list below). */

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.section-head-copy { max-width: 720px; }
.section-head-copy .t-eyebrow { margin-bottom: 20px; }
.section-head-copy .t-h2 { margin-bottom: 20px; }
.section-head-copy .t-lead { max-width: 60ch; }

/* ===== Recognition row ===== */

.recognition-row {
    border-top: 1px solid var(--border-hairline);
    padding-top: 40px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.recognition-row .t-metadata { flex-shrink: 0; padding-top: 4px; }
.recognition-copy { flex: 1; min-width: 280px; }
.recognition-copy .t-h4 { margin: 0 0 8px; }
.recognition-copy .t-small { font-size: 17px; margin: 0; max-width: 60ch; }

/* ===== Supported-by strip ===== */

.supported-strip {
    border-top: 1px solid var(--border-hairline);
    border-bottom: 1px solid var(--border-hairline);
    padding: 32px 0;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
/* Short labels ("supported by") never need to shrink, but longer ones
   ("we have previously held workshops at") must be free to wrap at narrow
   widths — flex-shrink:0 alone forces the unwrapped text to claim its full
   single-line width regardless of available space. */
.supported-strip .t-metadata { flex-shrink: 1; min-width: 160px; }
.supported-logos { display: flex; align-items: center; gap: 44px; flex-wrap: wrap; flex: 1; }
.supported-logos img { opacity: 0.62; filter: grayscale(1); width: auto; }

/* Below this, the label no longer sits beside the content on one flex
   line — with align-items:center + flex-wrap, it was vertically centering
   next to a multi-row wrapped block (logos, or a long copy line) instead
   of introducing it from above, which reads as broken rather than tight. */
@media (max-width: 767px) {
    .recognition-row, .supported-strip { flex-direction: column; align-items: flex-start; gap: 16px; }
    .supported-logos { align-self: stretch; justify-content: center; }
}

/* ===== Closing / enquire CTA band row ===== */
/* Copy on the left (max 640px), action buttons on the right — the layout
   used inside .band-cta (and sometimes .band-dark) across every page. */

.cta-band-row {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}
.cta-band-copy { max-width: 640px; }
.cta-band-copy .t-eyebrow { margin-bottom: 20px; }
.cta-band-copy .t-h2 { margin-bottom: 20px; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band-legal { flex-basis: 100%; font-size: 16px; color: rgba(255, 255, 255, 0.9); margin: 12px 0 0; }
.cta-band-legal a { color: #FFFFFF; font-weight: 600; text-decoration: underline; }
.cta-band-legal a:hover { color: rgba(255, 255, 255, 0.75); }

/* An actual inline signup form for CTA bands whose copy promises a
   newsletter — same proportions as .site-footer-newsletter-form, just
   with a sky-blue button instead of terracotta so it doesn't clash with
   the dark blue band it sits on. */
.cta-band-newsletter-form { display: flex; flex-wrap: nowrap; gap: 10px; max-width: 420px; width: 100%; }
.cta-band-newsletter-form input[type="email"] {
    flex: 1;
    min-width: 0;
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--ink-900);
    padding: 16px 20px;
    border-radius: var(--r-btn);
    border: 1px solid var(--border-hairline);
    background: var(--surface-card);
    outline: none;
}
.cta-band-newsletter-form button {
    background: var(--sky-500);
    color: #FFFFFF;
}
.cta-band-newsletter-form button:hover { background: var(--sky-600); }

@media (max-width: 1039px) {
    .section { padding-left: var(--side-pad-mobile); padding-right: var(--side-pad-mobile); }
}

/* ===== Split card + media (either order) ===== */
/* Page-specific column fractions are set via an .is-* modifier on
   .split-card-grid (e.g. .is-story, .is-expertise) where used. */

.split-card-grid { gap: 24px; align-items: stretch; }
/* The recurring "info page" hero: card (eyebrow, h1, paragraphs, bordered
   footnote) + media, used by contact/careers/partners-and-investors/press. */
.split-card-grid.is-info { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.split-card-grid.is-info .t-eyebrow { margin-bottom: 20px; }
.split-card-grid.is-info .t-h1 { margin-bottom: 24px; }
.split-card-grid.is-info .t-body { margin-bottom: 18px; }

.info-footnote { margin-top: auto; padding-top: 28px; border-top: 1px solid var(--border-hairline); }
.info-footnote .t-metadata { margin-bottom: 8px; }
.info-footnote p:last-child { font-size: 17px; line-height: 1.6; color: var(--ink-700); margin: 0; }

.split-card { display: flex; flex-direction: column; }
.split-card .t-eyebrow { margin-bottom: 20px; }
.split-card .t-h2 { margin-bottom: 20px; }
.split-card .t-body { margin-bottom: 16px; }
.split-card-footer { margin-top: auto; padding-top: 28px; border-top: 1px solid var(--border-hairline); display: flex; gap: 12px; flex-wrap: wrap; }

.split-media { position: relative; border-radius: var(--r-card); overflow: hidden; min-height: 420px; box-shadow: var(--shadow-lg); }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-media .media-well-grain { opacity: 0.10; }

/* ===== Neumorphic panel with a numbered list ===== */
/* The "how we work" / "what we look for" pattern: an eyebrow + h2 inside a
   .panel-neu, then a border-topped row of numbered items below. */

.numbered-panel { padding: 64px; }
.numbered-panel .t-eyebrow { margin-bottom: 20px; }
.numbered-panel .t-h2 { margin-bottom: 20px; }
@media (max-width: 1039px) {
    .numbered-panel { padding: 28px; }
}
.numbered-list {
    gap: 40px;
    margin-top: 44px;
    border-top: 1px solid var(--border-hairline);
    padding-top: 40px;
}
.numbered-list .t-numeral-index { font-family: var(--font-mono); font-size: var(--fs-21); color: var(--terracotta-500); margin: 0 0 12px; }
.numbered-list .t-h4 { margin: 0 0 12px; }
.numbered-list .t-small { font-size: 17px; margin: 0; }

/* ===== Responsive grid utilities ===== */
/* Combine with a section-specific class that sets grid-template-columns
   and gap for the desktop layout — these only own the collapse behaviour. */

.grid-2 { display: grid; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1039px) {
    .grid-2 { grid-template-columns: 1fr !important; gap: 32px !important; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 559px) {
    .grid-3 { grid-template-columns: 1fr; }
}

/* ===== Success modal ===== */
/* Shared by every Web3Forms form on the site (contact, enquire, ...). */

.contact-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(42, 42, 43, 0.6);
}
.contact-modal-overlay.is-open { display: flex; }
.contact-modal-card {
    background: var(--surface-card);
    border-radius: var(--r-card);
    padding: 40px;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    text-align: left;
}
.contact-modal-card .t-h4 { margin-bottom: 12px; }
.contact-modal-card p { font-size: 16px; line-height: 1.6; color: var(--ink-700); margin: 0 0 24px; }

/* ===== Cookie banner ===== */
/* Existing site-wide feature (js/script.js), restyled to the new tokens. */

.cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    background: var(--surface-card);
    color: var(--ink-900);
    border-radius: var(--r-btn);
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
    max-width: 640px;
    margin: 0 auto;
}
.cookie-banner-text {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    flex: 1 1 320px;
}
.cookie-banner-text a { color: var(--sky-600); text-decoration: none; font-weight: 600; }
.cookie-banner-text a:hover { color: var(--sky-700); }
.cookie-banner-dismiss {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    background: var(--terracotta-500);
    border: none;
    border-radius: var(--r-btn);
    padding: 10px 20px;
    cursor: pointer;
    transition: background var(--dur-control) var(--ease-breath);
}

/* ===== Policy card (legal / long-form documents) ===== */
/* Bordered stacked rows, one per section. Used by cookies, privacy policy
   and terms & conditions. */

.policy-card { max-width: 820px; }

.policy-row { padding: 28px 0; border-top: 1px solid var(--border-hairline); }
.policy-row:first-child { border-top: none; padding-top: 0; }
.policy-row .t-h4 { margin: 0 0 12px; }
.policy-row h3 { font-size: 17px; font-weight: 600; color: var(--ink-900); margin: 20px 0 8px; }
.policy-row h3:first-child { margin-top: 0; }
.policy-row p { font-size: 17px; line-height: 1.65; color: var(--ink-700); margin: 0 0 14px; max-width: 72ch; }
.policy-row p:last-child { margin-bottom: 0; }
.policy-row ul { margin: 0 0 14px; padding-left: 20px; max-width: 72ch; }
.policy-row ul:last-child { margin-bottom: 0; }
.policy-row li { font-size: 17px; line-height: 1.65; color: var(--ink-700); margin-bottom: 6px; }
.policy-row li:last-child { margin-bottom: 0; }

/* ===== Back link ===== */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-500);
    text-decoration: none;
    margin-bottom: 24px;
    transition: color var(--dur-control) var(--ease-breath);
}
.back-link:hover { color: var(--ink-900); }
.back-link svg { flex-shrink: 0; }

/* ===== Article (long-form blog post) ===== */

.article-hero { max-width: 760px; margin: 0 auto; }
.article-hero .t-h2 { margin-bottom: 12px; }
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; color: var(--ink-500); margin: 20px 0 0; }

.article-image { max-width: 760px; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-md); margin: 8px auto 48px; }
.article-image img { width: 100%; display: block; }
.article-image figcaption { font-size: 14px; color: var(--ink-500); padding: 12px 4px 0; }

.article-body { max-width: 760px; margin: 0 auto; }
.article-body h3 { font-size: var(--fs-33); line-height: 1.2; color: var(--ink-900); margin: 48px 0 20px; }
.article-body h3:first-child { margin-top: 0; }
.article-body p { font-size: 18px; line-height: 1.7; color: var(--ink-700); margin: 0 0 20px; text-wrap: pretty; }
.article-body ul { margin: 0 0 20px; padding-left: 22px; }
.article-body li { font-size: 18px; line-height: 1.7; color: var(--ink-700); margin-bottom: 8px; }
.article-body strong { color: var(--ink-900); }
.article-body sup { font-size: 0.7em; }
.article-body .article-image { margin-top: 32px; }

.article-references { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border-hairline); }
.article-references p.t-metadata { margin-bottom: 20px; }
.article-references ol { padding-left: 20px; margin: 0; }
.article-references li { font-size: 14px; line-height: 1.6; color: var(--ink-500); margin-bottom: 12px; }

.article-disclaimer {
    margin-top: 40px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-500);
    padding: 20px 24px;
    background: var(--neutral-100);
    border-radius: var(--r-btn);
}
.article-credit { margin-top: 24px; font-size: 15px; color: var(--ink-700); }
.cookie-banner-dismiss:hover { background: var(--terracotta-600); }
