/* style.css - Base stylesheet for PHP JSON flat-file sites
   Design tokens are injected as CSS custom properties via site_tokens_css().
   Add site-specific overrides below the base layer. */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: var(--header-height, 64px);
    background: var(--color-bg, #fff);
    color: var(--color-text, #1a1a1a);
    font-family: var(--font-body, system-ui, sans-serif);
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: hidden;
}

/* Full-bleed breakout for section-style blocks nested inside the padded/
   max-width page-wrapper (hero, dark band, newsletter, category banner). */
.hero, .dark-band, .newsletter, .category-hero {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

body.is-home .page-wrapper,
body.page-type-category .page-wrapper {
    padding-top: 0;
}

body.is-home .content-layout--single,
body.page-type-category .content-layout--single {
    max-width: none;
}

a {
    color: var(--color-accent, #2563eb);
    text-decoration: underline;
}

a:hover {
    color: var(--color-accent-strong, #1d4ed8);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Header ────────────────────────────────────────────────────────────────── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height, 64px);
    background: var(--color-surface, #fff);
    border-bottom: 1px solid var(--color-border, #e5e7eb);
    z-index: 100;
}

.site-header__inner {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-logo a {
    font-family: var(--font-display, system-ui, sans-serif);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--color-text, #1a1a1a);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo span:last-child {
    color: var(--color-accent, #2563eb);
}

.site-logo__mark {
    flex-shrink: 0;
    display: block;
}

.site-logo__mark svg {
    display: block;
}

/* ── Navigation ────────────────────────────────────────────────────────────── */

.site-nav {
    margin-left: auto;
}

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.site-nav__list a {
    color: var(--color-text, #1a1a1a);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s;
}

.site-nav__list a:hover,
.site-nav__list a.is-active {
    color: var(--color-accent, #2563eb);
}

.site-nav__item--has-dropdown {
    position: relative;
}

.nav-chevron::after {
    content: ' \25BE';
    font-size: 0.75em;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-small, 6px);
    padding: 0.5rem 0;
    min-width: 200px;
    list-style: none;
    margin: 0;
    box-shadow: var(--shadow-card);
    z-index: 200;
}

.site-nav__item--has-dropdown:hover .nav-dropdown {
    display: block;
}

.nav-dropdown li a {
    display: block;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    font-size: 0.875rem;
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: auto;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text, #1a1a1a);
    border-radius: 2px;
}

/* ── Layout ─────────────────────────────────────────────────────────────────── */

.page-wrapper {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    align-items: start;
}

.content-layout--single {
    grid-template-columns: 1fr;
    max-width: 760px;
}

.content-main {
    min-width: 0;
}

.content-sidebar {
    position: sticky;
    top: calc(var(--header-height, 64px) + 1.5rem);
}

/* ── Breadcrumbs ─────────────────────────────────────────────────────────────── */

.breadcrumbs {
    margin-bottom: 1.5rem;
}

.breadcrumbs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--color-text-muted, #6b7280);
}

.breadcrumbs__item + .breadcrumbs__item::before {
    content: '/';
    margin-right: 0.5rem;
}

.breadcrumbs__item.is-current {
    color: var(--color-text, #1a1a1a);
}

/* ── Sidebar blocks ───────────────────────────────────────────────────────── */

.sidebar-block {
    background: var(--color-surface, #f8f9fa);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-medium, 10px);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.sidebar-block__title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted, #6b7280);
}

.sidebar-block__links {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sidebar-block__links a {
    font-size: 0.875rem;
}

.cta-btn {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--color-accent, #2563eb);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-small, 6px);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */

.site-footer {
    border-top: 1px solid var(--color-border, #e5e7eb);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    background: var(--color-surface, #f8f9fa);
}

.site-footer__inner {
    max-width: var(--content-width, 1200px);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-footer__top {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.site-footer__brand-name {
    font-family: var(--font-display, system-ui, sans-serif);
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.site-footer__tagline {
    margin: 0 0 0.5rem;
    color: var(--color-text-muted, #6b7280);
    font-size: 0.875rem;
}

.site-footer__contact a {
    color: var(--color-text-muted, #6b7280);
    font-size: 0.875rem;
}

.site-footer__col-heading {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted, #6b7280);
    margin-bottom: 0.75rem;
}

.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.site-footer__links a {
    color: var(--color-text, #1a1a1a);
    text-decoration: none;
    font-size: 0.875rem;
}

.site-footer__links a:hover {
    color: var(--color-accent, #2563eb);
}

.site-footer__bottom {
    border-top: 1px solid var(--color-border, #e5e7eb);
    padding-top: 1rem;
    font-size: 0.8rem;
    color: var(--color-text-muted, #6b7280);
}

/* ── Utility ─────────────────────────────────────────────────────────────────── */

.text-muted {
    color: var(--color-text-muted, #6b7280);
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-small, 6px);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.btn--primary {
    background: var(--color-accent, #2563eb);
    color: #fff;
}

.btn--primary:hover {
    background: var(--color-accent-strong, #1d4ed8);
    color: #fff;
}

.btn--outline {
    border: 1px solid var(--color-accent, #2563eb);
    color: var(--color-accent, #2563eb);
    background: transparent;
}

/* ── Error page ─────────────────────────────────────────────────────────────── */

.error-page {
    text-align: center;
    padding: 5rem 1rem;
}

.error-page h1 {
    font-size: 6rem;
    font-weight: 200;
    margin: 0 0 0.5rem;
    color: var(--color-text-muted, #6b7280);
}

.error-page p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ── Mobile ─────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .site-nav {
        display: none;
        position: fixed;
        top: var(--header-height, 64px);
        left: 0;
        right: 0;
        background: var(--color-surface, #fff);
        border-bottom: 1px solid var(--color-border, #e5e7eb);
        padding: 1rem 1.5rem;
        z-index: 99;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .nav-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0 0 0 1rem;
    }

    .site-nav__item--has-dropdown:hover .nav-dropdown {
        display: none;
    }

    .site-nav.is-open .nav-dropdown {
        display: block;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        position: static;
    }

    .site-footer__top {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   HoldMyBagel.com — site-specific design system
   ══════════════════════════════════════════════════════════════════════════ */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.08;
    margin: 0 0 0.6em;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent);
}

/* ── Nav CTA + dropdown ───────────────────────────────────────────────────── */

.nav-cta-btn {
    background: var(--color-yellow) !important;
    color: #1a1300 !important;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    font-weight: 800 !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
    display: inline-block;
}

.nav-cta-btn:hover {
    background: var(--color-yellow-strong) !important;
    transform: translateY(-1px);
}

.site-nav__item--cta {
    margin-left: 0.25rem;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn-bagel {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-bagel--yellow {
    background: var(--color-yellow);
    color: #1a1300;
}

.btn-bagel--yellow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245,200,66,0.4);
    color: #1a1300;
}

.btn-bagel--orange {
    background: var(--color-accent);
    color: #fff;
}

.btn-bagel--orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232,100,10,0.35);
    color: #fff;
}

.btn-bagel--outline {
    background: transparent;
    border: 2px solid var(--color-on-dark);
    color: var(--color-on-dark);
}

.btn-bagel--outline:hover {
    background: var(--color-on-dark);
    color: var(--color-surface-strong);
}

/* ── Category pills ───────────────────────────────────────────────────────── */

.pill {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
}

.pill--orange   { background: var(--color-accent); }
.pill--green    { background: var(--color-green); }
.pill--teal     { background: var(--color-teal); }
.pill--blue     { background: var(--color-blue); }
.pill--purple   { background: var(--color-purple); }
.pill--red      { background: var(--color-red); }
.pill--yellow   { background: var(--color-yellow); color: #1a1300; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    background:
        radial-gradient(ellipse 900px 500px at 85% -10%, rgba(245,200,66,0.35), transparent 60%),
        radial-gradient(ellipse 700px 500px at -5% 110%, rgba(232,100,10,0.25), transparent 60%),
        var(--color-surface-strong);
    color: var(--color-on-dark);
    overflow: hidden;
}

.hero__inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 5rem 1.5rem 4rem;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: end;
    position: relative;
}

.hero__copy { max-width: 700px; }

.hero__eyebrow {
    color: var(--color-yellow);
    margin-bottom: 1rem;
}

.hero__title {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    text-transform: uppercase;
    margin-bottom: 0.3em;
    color: var(--color-on-dark);
}

.hero__title em {
    font-style: italic;
    color: var(--color-accent);
}

.hero__subhead {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #D8CFC0;
    max-width: 560px;
    margin: 0 0 2rem;
}

.hero__mascot {
    justify-self: end;
    align-self: end;
}

.hero__mascot svg {
    filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35));
}

@media (max-width: 860px) {
    .hero__inner {
        grid-template-columns: 1fr;
    }
    .hero__mascot {
        justify-self: start;
        margin-top: 1.5rem;
    }
    .hero__mascot svg {
        width: 110px;
        height: 110px;
    }
}

/* ── Section headings ─────────────────────────────────────────────────────── */

.section {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.section__title {
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    text-transform: uppercase;
    margin: 0;
}

.section__link {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

/* ── Experiment cards ─────────────────────────────────────────────────────── */

.card-row {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x proximity;
    margin: 0 -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.card-row .experiment-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.experiment-card {
    background: var(--color-panel);
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--color-text);
    transition: transform 0.18s, box-shadow 0.18s;
}

.experiment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(24,16,10,0.16);
}

.experiment-card__media {
    aspect-ratio: 4 / 3;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.85);
}

.experiment-card__media--orange { background: linear-gradient(135deg,#F0894A,var(--color-accent)); }
.experiment-card__media--green  { background: linear-gradient(135deg,#67B76A,var(--color-green)); }
.experiment-card__media--teal   { background: linear-gradient(135deg,#33ADA3,var(--color-teal)); }
.experiment-card__media--blue   { background: linear-gradient(135deg,#5C8FE0,var(--color-blue)); }
.experiment-card__media--purple { background: linear-gradient(135deg,#9E78DB,var(--color-purple)); }
.experiment-card__media--red    { background: linear-gradient(135deg,#E56E6E,var(--color-red)); }
.experiment-card__media--yellow { background: linear-gradient(135deg,#F7D876,var(--color-yellow-strong)); }

.experiment-card__media .pill {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
}

.experiment-card__media svg {
    width: 56%;
    height: 56%;
    opacity: 0.9;
}

.experiment-card__body {
    padding: 1.25rem 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.experiment-card__title {
    font-size: 1.15rem;
    line-height: 1.25;
    margin: 0;
}

.experiment-card__dek {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.experiment-card__meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.4rem;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-panel-soft);
    border: 1px solid var(--color-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--color-accent);
    flex-shrink: 0;
}

/* ── Dark band section ────────────────────────────────────────────────────── */

.dark-band {
    background: var(--color-surface-strong);
    color: var(--color-on-dark);
    padding: 5rem 1.5rem;
}

.dark-band__inner {
    max-width: var(--content-width);
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.dark-band__title {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    text-transform: uppercase;
    max-width: 780px;
    margin: 0 auto 3rem;
}

.dark-band__title em {
    font-style: italic;
    color: var(--color-yellow);
}

.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    text-align: left;
}

.pillar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pillar__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(245,200,66,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.pillar__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    margin: 0;
}

.pillar__body {
    font-size: 0.88rem;
    color: #C9BEAD;
    margin: 0;
    line-height: 1.5;
}

.dark-band__mascot {
    margin: 3rem auto 0;
    width: fit-content;
}

/* ── Newsletter ───────────────────────────────────────────────────────────── */

.newsletter {
    background: var(--color-panel-soft);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 4rem 1.5rem;
}

.newsletter__inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.newsletter__icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.newsletter__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.newsletter__body {
    color: var(--color-text-muted);
    margin-bottom: 1.75rem;
}

.newsletter__form {
    display: flex;
    gap: 0.75rem;
    max-width: 440px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.newsletter__form input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 0.85rem 1.1rem;
    border-radius: 999px;
    border: 2px solid var(--color-border);
    background: var(--color-panel);
    font-size: 0.95rem;
    color: var(--color-text);
}

.newsletter__form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-accent);
}

.newsletter__note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ── Footer social ────────────────────────────────────────────────────────── */

.site-footer__social {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}

.site-footer__social a {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    text-decoration: none;
}

.site-footer__social a:hover {
    color: var(--color-accent);
}

/* ── Category hub ─────────────────────────────────────────────────────────── */

.category-hero {
    background: var(--color-panel-soft);
    border-bottom: 1px solid var(--color-border);
    padding: 3.5rem 1.5rem 3rem;
}

.category-hero__inner {
    max-width: var(--content-width);
    margin: 0 auto;
}

.category-hero__title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.category-hero__intro {
    max-width: 640px;
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.category-hero__intro p { margin: 0; }

.category-filter-bar {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.category-filter-bar a {
    text-decoration: none;
}

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--color-text-muted);
}

/* ── Article: eyebrow / hero / meta strip ─────────────────────────────────── */

.article-hero {
    padding-top: 0.5rem;
}

.article-hero__eyebrow-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.article-hero__title {
    font-size: clamp(2rem, 4.6vw, 3.1rem);
    margin-bottom: 0.6rem;
}

.article-hero__dek {
    font-style: italic;
    color: var(--color-accent);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
    max-width: 720px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.9rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.article-meta__author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text);
    font-weight: 600;
}

.article-meta__dot::before {
    content: '\2022';
    margin-right: 0.9rem;
    color: var(--color-border);
}

/* ── Stat row ──────────────────────────────────────────────────────────────── */

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    background: var(--color-panel-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.stat__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

.stat__value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
}

.badge-verdict {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--color-accent);
    color: #fff;
}

.badge-verdict--positive { background: var(--color-green); }
.badge-verdict--negative { background: var(--color-red); }
.badge-verdict--neutral  { background: var(--color-yellow); color: #1a1300; }

/* ── Article body / prose ─────────────────────────────────────────────────── */

.article-body {
    max-width: 720px;
    font-size: 1.06rem;
    line-height: 1.75;
}

.article-body h2 {
    font-size: 1.5rem;
    margin-top: 2.2rem;
    text-transform: uppercase;
}

.article-body p {
    margin: 0 0 1.25rem;
}

.article-body ul, .article-body ol {
    margin: 0 0 1.25rem;
    padding-left: 1.4rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

/* ── Key takeaway callout (sticky note) ───────────────────────────────────── */

.callout-takeaway {
    background: var(--color-yellow);
    color: #1a1300;
    border-radius: var(--radius-medium);
    padding: 1.75rem 2rem;
    margin: 2.5rem 0;
    max-width: 720px;
    transform: rotate(-1deg);
    box-shadow: 0 10px 24px rgba(24,16,10,0.14);
    position: relative;
}

.callout-takeaway__label {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.75;
}

.callout-takeaway__text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.35;
    margin: 0;
}

/* ── Photo grid ────────────────────────────────────────────────────────────── */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
    max-width: 720px;
}

.photo-grid figure {
    margin: 0;
    border-radius: var(--radius-medium);
    overflow: hidden;
    background: var(--color-panel-soft);
    border: 1px solid var(--color-border);
}

.photo-grid__placeholder {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-grid figcaption {
    padding: 0.6rem 0.9rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ── Experiment complete stamp ─────────────────────────────────────────────── */

.experiment-stamp-wrap {
    display: flex;
    justify-content: center;
    margin: 3rem 0 1rem;
}

/* ── Share rail ────────────────────────────────────────────────────────────── */

.share-rail {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.share-rail a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.15s, color 0.15s;
}

.share-rail a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* ── Article sidebar ──────────────────────────────────────────────────────── */

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
}

.side-card {
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.side-card__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.author-card {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.author-card .avatar {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
}

.author-card__name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.author-card__bio {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

.mini-experiment {
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.mini-experiment:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mini-experiment__media {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-small);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
}

.mini-experiment__title {
    font-size: 0.9rem;
    line-height: 1.35;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.side-card--dark {
    background: var(--color-surface-strong);
    color: var(--color-on-dark);
    text-align: center;
    border: none;
}

.side-card--dark .side-card__title {
    color: var(--color-yellow);
}

.side-card--dark p {
    font-size: 0.9rem;
    color: #D8CFC0;
    margin-bottom: 1.25rem;
}

/* ── Submit form ───────────────────────────────────────────────────────────── */

.submit-form {
    max-width: 680px;
}

.form-field {
    margin-bottom: 1.5rem;
}

.form-field label {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-field__hint {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.35rem;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="number"],
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-small);
    border: 2px solid var(--color-border);
    background: var(--color-panel);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--color-text);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-field textarea {
    min-height: 110px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
}

.form-checkbox input {
    margin-top: 0.2rem;
}

.form-success {
    background: var(--color-panel-soft);
    border: 2px solid var(--color-green);
    border-radius: var(--radius-medium);
    padding: 2rem;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin-bottom: 2rem;
}

.form-error {
    background: #FBEAE8;
    border: 2px solid var(--color-red);
    color: #7A1F1F;
    border-radius: var(--radius-medium);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* ── 404 ───────────────────────────────────────────────────────────────────── */

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.error-page h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    text-transform: uppercase;
    color: var(--color-text);
}

/* ── Prose pages (About / How We Test / Start Here) ───────────────────────── */

.prose-page {
    max-width: 720px;
}

.prose-page h1 {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.prose-page .article-hero__dek {
    margin-bottom: 2rem;
}

.prose-page h2 {
    font-size: 1.4rem;
    margin-top: 2.2rem;
    text-transform: uppercase;
}

.prose-page p, .prose-page li {
    font-size: 1.03rem;
    line-height: 1.7;
}

/* ── Mobile ────────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .hero__inner { padding: 3.5rem 1.25rem 3rem; }
    .section { padding: 3rem 1.25rem; }
    .dark-band { padding: 3.5rem 1.25rem; }
    .newsletter__form { flex-direction: column; }
    .newsletter__form input[type="email"] { width: 100%; }
    .article-layout { gap: 2rem; }
}
