/* Design tokens — mirrors design/canvas/shared.jsx `C`, `F`, `shadow`, `ring` constants. */

:root {
  /* surfaces */
  --c-bg:           #0A0A0A;
  --c-bg-elev:      #141414;
  --c-bg-light:     #FFFFFF;
  --c-bg-light-alt: #F5F5F3;
  --c-ink:          #000000;
  --c-ink-soft:     #1A1A1A;
  --c-paper:        #F5F5F3;

  /* text */
  --c-text-on-dark:    #F5F5F3;
  --c-text-on-dark-2:  #9A9A95;
  --c-text-on-light:   #000000;
  --c-text-muted:      #666666;
  --c-text-faint:      #AAAAAA;

  /* accent */
  --c-green:      #61E610;
  --c-green-ink:  #000000;
  --c-green-deep: #3FA80A;

  /* utility */
  --c-border:    #000000;
  --c-border-dk: #2A2A25;
  --c-divider:   #D0D0D0;
  --c-danger:    #CC0000;

  /* type */
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body:    "Public Sans", system-ui, sans-serif;
  --font-hero:    "Anton", "Outfit", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* geometry */
  --radius:   2px;
  --border-w: 1.5px;
  --shadow-3: 3px 3px 0 0 var(--c-border);
  --shadow-4: 4px 4px 0 0 var(--c-border);
  --shadow-6: 6px 6px 0 0 var(--c-border);
}

/* Reset just enough so the parent theme's resets don't leak weird styles into our markup. */
/* Branded scrollbar — neobrutalist green thumb on a dark track to match
   the rest of the design system. Falls back gracefully on Firefox via
   the standardized properties. Applies to the window + any internal
   scroll containers. */
html { scrollbar-color: var(--c-green) #0a0a0a; scrollbar-width: thin; }
html::-webkit-scrollbar,
.cg3 *::-webkit-scrollbar { width: 12px; height: 12px; }
html::-webkit-scrollbar-track,
.cg3 *::-webkit-scrollbar-track { background: #0a0a0a; border-left: 1px solid #2a2a25; }
html::-webkit-scrollbar-thumb,
.cg3 *::-webkit-scrollbar-thumb {
    background: var(--c-green);
    border: 2px solid #000;
    border-radius: 0;
}
html::-webkit-scrollbar-thumb:hover,
.cg3 *::-webkit-scrollbar-thumb:hover { background: #84ff20; }
html::-webkit-scrollbar-corner { background: #0a0a0a; }

.cg3 *, .cg3 *::before, .cg3 *::after { box-sizing: border-box; }
.cg3 { font-family: var(--font-body); color: var(--c-ink); background: #fff; line-height: 1.5; }
html { scroll-padding-top: 96px; } /* anchor jumps land below the sticky nav */
/* Grid/flex items default to min-content sizing which causes overflow when text
   doesn't wrap. Force grid items to be shrinkable so the page never grows
   beyond the viewport. */
.cg3 [class*="__grid"] > *, .cg3 [class*="__row"] > * { min-width: 0; }
.cg3 img, .cg3 svg { max-width: 100%; display: block; }
.cg3 a { color: inherit; text-decoration: none; }
.cg3 h1, .cg3 h2, .cg3 h3, .cg3 h4 { margin: 0; font-family: var(--font-display); font-weight: 900; line-height: 1; }
.cg3 p { margin: 0; }

/* Shared primitives -------------------------------------------------------- */

.cg3-tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--c-green); color: #000;
  border: var(--border-w) solid #000; border-radius: var(--radius);
  box-shadow: var(--shadow-3);
  font-family: var(--font-body); font-weight: 800; font-size: 12;
  letter-spacing: 2px; text-transform: uppercase; line-height: 1;
}
.cg3-tag--ghost { background: #000; color: #fff; box-shadow: none; border-color: #fff; }
.cg3-tag--flat  { box-shadow: none; }

.cg3-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 22px;
  background: var(--c-green); color: #000;
  border: var(--border-w) solid #000; border-radius: var(--radius);
  box-shadow: var(--shadow-4);
  font-family: var(--font-body); font-weight: 800; font-size: 14px;
  letter-spacing: 1.2px; text-transform: uppercase;
  cursor: pointer;
  transition: transform 80ms ease, box-shadow 80ms ease;
}
.cg3-btn:hover  { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 0 #000; }
.cg3-btn:active { transform: translate(2px, 2px);   box-shadow: 1px 1px 0 0 #000; }
.cg3-btn--sm    { padding: 10px 16px; font-size: 12px; }
.cg3-btn--lg    { padding: 22px 30px; font-size: 16px; }
.cg3-btn--xl    { padding: 26px 36px; font-size: 18px; }
.cg3-btn--full  { width: 100%; justify-content: center; }

/* High-specificity color rules — the parent theme (corygfitness2) has aggressive
   `a { color: ... }` and `button { ... }` selectors that win against plain classes,
   so we double up with `a.` / `button.` and use !important on the foreground colors
   to guarantee contrast on every variant. */
a.cg3-btn,        button.cg3-btn,        .cg3 .cg3-btn        { background: var(--c-green) !important; color: #000 !important; text-shadow: none !important; text-decoration: none !important; }
a.cg3-btn--dark,  button.cg3-btn--dark,  .cg3 .cg3-btn--dark  { background: #000 !important; color: #fff !important; box-shadow: 4px 4px 0 0 var(--c-green); border-color: #000 !important; }
a.cg3-btn--light, button.cg3-btn--light, .cg3 .cg3-btn--light { background: #fff !important; color: #000 !important; }
a.cg3-btn--ghost, button.cg3-btn--ghost, .cg3 .cg3-btn--ghost { background: transparent !important; color: #fff !important; border-color: #fff !important; box-shadow: 4px 4px 0 0 var(--c-green); }

.cg3-photo {
  position: relative; width: 100%;
  background: repeating-linear-gradient(135deg, #1c1c1a 0 14px, #252522 14px 28px);
  border: var(--border-w) solid #000; overflow: hidden;
}
.cg3-photo--cover {
  background-size: cover; background-position: center;
}
.cg3-photo__caption {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px;
  color: #9a9a95; text-transform: uppercase; text-align: center; padding: 16px;
}

/* Header / footer ---------------------------------------------------------- */

.cg3-nav {
  background: #000; color: #fff;
  padding: 16px 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-bottom: var(--border-w) solid #000;
  position: sticky; top: 0; z-index: 50;
}
.cg3-nav__brand { flex-shrink: 0; }
/* overflow-x: clip caps horizontal overflow without creating a scroll container,
   so position:sticky descendants (article TOCs, sidebars) keep working. */
html, body { max-width: 100%; overflow-x: clip; }
.cg3-nav__links { display: flex; gap: 32px; align-items: center; }
.cg3-nav__link {
  font-family: var(--font-body); font-weight: 800; font-size: 13px; letter-spacing: 1.5px;
  text-transform: uppercase; color: #fff;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
}
.cg3-nav__link.is-current { color: var(--c-green); border-bottom-color: var(--c-green); }
.cg3-nav__tools { display: flex; gap: 12px; align-items: center; }
.cg3-nav__login { font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }

/* Workouts dropdown ------------------------------------------------------- */
.cg3-nav__group { position: relative; }
.cg3-nav__group.is-current > .cg3-nav__link { color: var(--c-green); border-bottom-color: var(--c-green); }
.cg3-nav__caret { font-size: 9px; margin-left: 4px; }
.cg3-nav__dropdown {
    position: absolute; top: 100%; left: -16px;
    min-width: 280px;
    background: #000; color: #fff;
    border: var(--border-w) solid #fff;
    box-shadow: var(--shadow-6);
    padding: 8px;
    opacity: 0; pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 100ms ease, transform 100ms ease;
    z-index: 60;
}
.cg3-nav__group:hover .cg3-nav__dropdown,
.cg3-nav__group:focus-within .cg3-nav__dropdown {
    opacity: 1; pointer-events: auto; transform: translateY(0);
}
.cg3-nav__drop-item {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 10px 12px;
    font-family: var(--font-body); font-weight: 700; font-size: 12px;
    letter-spacing: 1.5px; text-transform: uppercase; color: #fff;
    border-bottom: 1px solid #2a2a25;
}
.cg3-nav__drop-item:hover { background: var(--c-green); color: #000; }
.cg3-nav__drop-count { font-family: var(--font-mono); font-size: 10px; color: var(--c-text-on-dark-2); }
.cg3-nav__drop-item:hover .cg3-nav__drop-count { color: #000; }
.cg3-nav__drop-all {
    display: block; padding: 12px;
    font-family: var(--font-display); font-weight: 800; font-size: 13px;
    color: var(--c-green); text-align: center;
    background: #0a0a0a; margin-top: 4px;
    border: var(--border-w) solid var(--c-green);
}
.cg3-nav__drop-all:hover { background: var(--c-green); color: #000; }

/* Mobile menu — JS-toggled via body.cg3-menu-open class ------------------- */
.cg3-burger {
    display: none;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    background: transparent; cursor: pointer;
    flex-direction: column; gap: 5px;
    border: var(--border-w) solid #fff; border-radius: var(--radius);
    padding: 0; margin: 0;
}
.cg3-burger span { display: block; width: 22px; height: 2px; background: #fff; transition: transform 150ms ease, opacity 100ms ease; }
body.cg3-menu-open .cg3-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--c-green); }
body.cg3-menu-open .cg3-burger span:nth-child(2) { opacity: 0; }
body.cg3-menu-open .cg3-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--c-green); }

.cg3-mobile-menu {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(360px, 100%);
    background: #000; color: #fff;
    border-left: var(--border-w) solid #fff;
    box-shadow: -6px 0 0 0 var(--c-green);
    padding: 80px 24px 32px;
    transform: translateX(100%);
    transition: transform 220ms ease;
    z-index: 100;
    overflow-y: auto;
    display: none; /* hidden on desktop; flipped to flex below 900px */
    flex-direction: column; gap: 4px;
}
body.cg3-menu-open .cg3-mobile-menu { transform: translateX(0); }

.cg3-mobile-menu__close {
    position: absolute; top: 16px; right: 16px;
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; color: #fff;
    border: var(--border-w) solid #fff;
    font-family: var(--font-display); font-size: 22px; font-weight: 900;
    cursor: pointer;
}
.cg3-mobile-menu__item {
    display: block;
    padding: 16px 12px;
    font-family: var(--font-display); font-weight: 800; font-size: 18px;
    letter-spacing: 1px; text-transform: uppercase;
    color: #fff;
    border-bottom: 1px solid #2a2a25;
}
.cg3-mobile-menu__item.is-current { color: var(--c-green); }
.cg3-mobile-menu__item:hover { color: var(--c-green); }

.cg3-mobile-menu__group { border-bottom: 1px solid #2a2a25; }
.cg3-mobile-menu__group > summary {
    list-style: none;
    padding: 16px 12px;
    font-family: var(--font-display); font-weight: 800; font-size: 18px;
    letter-spacing: 1px; text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
}
.cg3-mobile-menu__group > summary::-webkit-details-marker { display: none; }
.cg3-mobile-menu__group[open] > summary { color: var(--c-green); }
.cg3-mobile-menu__group[open] > summary span { transform: rotate(180deg); display: inline-block; }
.cg3-mobile-menu__sub {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 12px 12px 28px;
    font-family: var(--font-body); font-size: 13px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    color: var(--c-text-on-dark-2);
    border-top: 1px solid #1a1a17;
}
.cg3-mobile-menu__sub:hover { color: var(--c-green); }
.cg3-mobile-menu__count { font-family: var(--font-mono); font-size: 11px; color: #666; }
.cg3-mobile-menu__cta { margin-top: 24px; padding-top: 20px; border-top: var(--border-w) solid #fff; display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.cg3-mobile-menu__login { text-align: center; font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; padding: 12px; color: #fff; border: var(--border-w) solid #fff; }
.cg3-mobile-menu__login:hover { background: #fff; color: #000; }

.cg3-footer { background: #000; color: #fff; padding: 60px 60px 30px; border-top: 4px solid var(--c-green); }
.cg3-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.cg3-footer__about { font-family: var(--font-body); font-size: 13px; line-height: 1.7; color: var(--c-text-on-dark-2); margin-top: 20px; max-width: 320px; }
.cg3-footer__stores { display: flex; gap: 12px; margin-top: 24px; }
.cg3-footer__store {
  padding: 10px 16px; background: #000; border: var(--border-w) solid #fff;
  font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; border-radius: var(--radius);
}
/* Footer columns are <details> elements so they collapse on mobile.
   On desktop they're forced-open via the breakpoint rules below. */
.cg3-footer__col { display: block; }
.cg3-footer__col > summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.cg3-footer__col > summary::-webkit-details-marker,
.cg3-footer__col > summary::marker { display: none; }
.cg3-footer__col-caret {
    font-family: var(--font-display); font-weight: 900; font-size: 20px; color: #fff;
    transition: transform 150ms ease;
}
.cg3-footer__col[open] > summary .cg3-footer__col-caret { transform: rotate(45deg); }
.cg3-footer__col-list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.cg3-footer__col-list a { font-family: var(--font-body); font-size: 13px; color: var(--c-text-on-dark-2); }
.cg3-footer__col-list a:hover { color: var(--c-green); }
.cg3-footer__legal {
  margin-top: 60px; padding-top: 24px; border-top: 1px solid #2a2a25;
  display: flex; justify-content: space-between;
  font-family: var(--font-body); font-size: 11px; letter-spacing: 1px;
  color: var(--c-text-on-dark-2); text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────────────────────────
   Defensive contrast — the parent corygfitness2 theme has aggressive
   color rules on h1-h6, p, a, etc. that win against bare class selectors.
   These overrides guarantee text stays readable in every dark section.
   ───────────────────────────────────────────────────────────────────────── */

/* Dark hero / footer / panel sections all force white text on their descendants */
.cg3 .hv1-hero, .cg3 .hv1-hero h1, .cg3 .hv1-hero h2, .cg3 .hv1-hero p, .cg3 .hv1-hero li, .cg3 .hv1-hero a:not(.cg3-btn),
.cg3 .hv1-app,  .cg3 .hv1-app h1,  .cg3 .hv1-app h2,  .cg3 .hv1-app h3, .cg3 .hv1-app p, .cg3 .hv1-app li,
.cg3 .hv1-plan.is-best, .cg3 .hv1-plan.is-best h1, .cg3 .hv1-plan.is-best h2, .cg3 .hv1-plan.is-best h3, .cg3 .hv1-plan.is-best p, .cg3 .hv1-plan.is-best li, .cg3 .hv1-plan.is-best span:not(.cg3-tag):not(.hv1-plan__check),
.cg3 .hv1-final, .cg3 .hv1-final h1, .cg3 .hv1-final h2, .cg3 .hv1-final p,
.cg3 .hv3-hero, .cg3 .hv3-hero h1, .cg3 .hv3-hero h2, .cg3 .hv3-hero p, .cg3 .hv3-hero span:not(.cg3-tag):not(.hv3-hero__highlight),
.cg3 .hv3-ribbon, .cg3 .hv3-ribbon span,
.cg3 .hv3-poster, .cg3 .hv3-poster h1, .cg3 .hv3-poster h2, .cg3 .hv3-poster p,
.cg3 .hv3-fire,   .cg3 .hv3-fire h1, .cg3 .hv3-fire h2, .cg3 .hv3-fire h3, .cg3 .hv3-fire p, .cg3 .hv3-fire span:not(.cg3-tag),
.cg3 .hv3-closer, .cg3 .hv3-closer h1, .cg3 .hv3-closer h2, .cg3 .hv3-closer p,
.cg3 .hv2-hero,
.cg3 .hv2-hero h1, .cg3 .hv2-hero h2, .cg3 .hv2-hero h3, .cg3 .hv2-hero p, .cg3 .hv2-hero a:not(.cg3-btn),
.cg3 .hv2-pricing, .cg3 .hv2-pricing h1, .cg3 .hv2-pricing h2, .cg3 .hv2-pricing h3, .cg3 .hv2-pricing p,
.cg3 .pr-hero, .cg3 .pr-hero h1, .cg3 .pr-hero h2, .cg3 .pr-hero p,
.cg3 .pr-card--best, .cg3 .pr-card--best h1, .cg3 .pr-card--best h2, .cg3 .pr-card--best h3, .cg3 .pr-card--best p, .cg3 .pr-card--best span:not(.cg3-tag),
.cg3 .ab-hero, .cg3 .ab-hero h1, .cg3 .ab-hero h2, .cg3 .ab-hero p,
.cg3 .ab-stats, .cg3 .ab-stats div,
.cg3 .ab-brand--mem, .cg3 .ab-brand--mem h1, .cg3 .ab-brand--mem h2, .cg3 .ab-brand--mem h3, .cg3 .ab-brand--mem p, .cg3 .ab-brand--mem span,
.cg3 .ad-cover, .cg3 .ad-cover h1, .cg3 .ad-cover p,
.cg3 .ad-author, .cg3 .ad-author h1, .cg3 .ad-author h2, .cg3 .ad-author h3, .cg3 .ad-author p,
.cg3 .ai-hero, .cg3 .ai-hero h1, .cg3 .ai-hero h2, .cg3 .ai-hero p,
.cg3 .ai-pagination, .cg3 .ai-pagination span,
.cg3 .pd-hero, .cg3 .pd-hero h1, .cg3 .pd-hero h2, .cg3 .pd-hero p,
.cg3 .pd-section.is-dark, .cg3 .pd-section.is-dark h1, .cg3 .pd-section.is-dark h2, .cg3 .pd-section.is-dark h3, .cg3 .pd-section.is-dark p,
.cg3 .pd-final, .cg3 .pd-final h1, .cg3 .pd-final h2, .cg3 .pd-final p,
.cg3 .cg3-footer, .cg3 .cg3-footer h1, .cg3 .cg3-footer h2, .cg3 .cg3-footer h3, .cg3 .cg3-footer p, .cg3 .cg3-footer a,
.cg3 .cg3-nav, .cg3 .cg3-nav a,
.cg3 .wh-hero, .cg3 .wh-hero h1, .cg3 .wh-hero h2, .cg3 .wh-hero p,
.cg3 .af-hero, .cg3 .af-hero h1, .cg3 .af-hero h2, .cg3 .af-hero p, .cg3 .af-hero span:not(.cg3-tag):not(.hv2-highlight):not(.hv3-hero__highlight),
.cg3 .vh-hero, .cg3 .vh-hero h1, .cg3 .vh-hero h2, .cg3 .vh-hero p, .cg3 .vh-hero span:not(.cg3-tag):not(.hv2-highlight):not(.hv3-hero__highlight),
.cg3 .cg3-404, .cg3 .cg3-404 h1, .cg3 .cg3-404 p,
.cg3 .su__poster, .cg3 .su__poster h1, .cg3 .su__poster h2, .cg3 .su__poster p, .cg3 .su__poster span:not(.cg3-tag):not(.su__check):not([class*="su__picker"]),
.cg3 .cg3-auth__poster, .cg3 .cg3-auth__poster h1, .cg3 .cg3-auth__poster h2, .cg3 .cg3-auth__poster p, .cg3 .cg3-auth__poster span:not(.cg3-tag):not(.su__check) {
    color: #fff;
}

/* Inner-card secondary text on dark sections stays a bit dimmer but still legible.
   This is the shared "lede" color across every hero/section so paragraphs read
   the same on /articles/, /anabolic-fasting/, /diet-plans/, /workouts/, etc. */
.cg3 .hv1-hero__lede, .cg3 .hv1-hero__trust,
.cg3 .hv1-app__feats p,
.cg3 .hv1-final__lede,
.cg3 .hv3-hero__lede,
.cg3 .hv3-poster__lede, .cg3 .hv3-poster__note,
.cg3 .hv3-fire__lede,
.cg3 .hv3-closer__lede,
.cg3 .vh-hero__lede,
.cg3 .vh-hero__cta-row + p,
.cg3 .af-hero__lede,
.cg3 .wh-hero__lede,
.cg3 .ad-cover__lede,
.cg3 .ab-hero__lede,
.cg3 .pr-hero__lede,
.cg3 .pd-hero__lede,
.cg3 .pd-final__lede,
.cg3 .hv2-hero__lede, .cg3 .hv2-hero__note,
.cg3 .pr-hero__lede,
.cg3 .ab-hero__lede,
.cg3 .ad-cover__lede,
.cg3 .pd-hero__lede,
.cg3 .pd-final__lede,
.cg3 .cg3-404__lede,
.cg3 .wh-hero__lede,
.cg3 .cg3-footer__about,
.cg3 .cg3-auth__lede,
.cg3 .su__plan-sub,
.cg3 .ai-hero__lede,
.cg3 .ad-author__bio,
.cg3 .pd-section.is-dark .pd-section__body {
    color: var(--c-text-on-dark-2);
}

/* Green-bg sections need black text always */
.cg3 .hv2-supp, .cg3 .hv2-supp h1, .cg3 .hv2-supp h2, .cg3 .hv2-supp h3, .cg3 .hv2-supp p,
.cg3 .pd-comm, .cg3 .pd-comm h1, .cg3 .pd-comm h2, .cg3 .pd-comm h3, .cg3 .pd-comm p,
.cg3 .pr-closer, .cg3 .pr-closer h1, .cg3 .pr-closer h2, .cg3 .pr-closer p,
.cg3 .ab-closer, .cg3 .ab-closer h1, .cg3 .ab-closer h2, .cg3 .ab-closer p, .cg3 .ab-closer blockquote,
.cg3 .ab-brand--this, .cg3 .ab-brand--this h1, .cg3 .ab-brand--this h2, .cg3 .ab-brand--this h3, .cg3 .ab-brand--this p,
.cg3 .wh-cta, .cg3 .wh-cta h1, .cg3 .wh-cta h2, .cg3 .wh-cta p,
.cg3 .hv2-tile.is-green, .cg3 .hv2-post.is-green {
    color: #000;
}

/* Generic page chrome (used by page.php / 404.php / search.php fallback content) */

.cg3-page { background: #fff; padding: 80px 60px; }
.cg3-page__head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.cg3-page__title { margin-top: 24px; font-family: var(--font-hero); font-size: clamp(48px, 8vw, 96px); line-height: 0.9; letter-spacing: -1px; text-transform: uppercase; }
.cg3-page__content {
    max-width: 760px; margin: 0 auto;
    font-family: var(--font-body); font-size: 17px; line-height: 1.7; color: #222;
}
.cg3-page__content > * + * { margin-top: 1em; }
.cg3-page__content h1, .cg3-page__content h2, .cg3-page__content h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; margin-top: 1.4em; }
.cg3-page__content h2 { font-family: var(--font-hero); font-size: clamp(36px, 5vw, 56px); text-transform: uppercase; letter-spacing: -1px; }
.cg3-page__content a  { color: var(--c-green-deep); text-decoration: underline; }
.cg3-page__content img { max-width: 100%; height: auto; border: var(--border-w) solid #000; box-shadow: var(--shadow-3); margin: 16px 0; }
.cg3-page__content ul, .cg3-page__content ol { padding-left: 1.4em; }
.cg3-page__content blockquote { border-left: 4px solid var(--c-green); padding-left: 18px; font-style: italic; color: #333; }

.cg3-404 { background: #000; color: #fff; padding: 120px 60px; text-align: center; }
.cg3-404__title { margin-top: 24px; font-family: var(--font-hero); font-size: clamp(80px, 12vw, 160px); line-height: 0.85; letter-spacing: -2px; text-transform: uppercase; }
.cg3-404__lede  { margin: 28px auto 0; max-width: 540px; font-size: 18px; color: var(--c-text-on-dark-2); }
.cg3-404__ctas  { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.cg3-search-form { max-width: 420px; }

@media (max-width: 640px) {
    .cg3-page, .cg3-404 { padding-left: 20px; padding-right: 20px; }
}

/* Desktop / large laptop — force the footer-column <details> elements open
   and remove their click affordances so they read as static columns. */
@media (min-width: 901px) {
  .cg3-footer__col > summary { cursor: default; pointer-events: none; }
  .cg3-footer__col-caret    { display: none; }
  .cg3-footer__col > .cg3-footer__col-list { display: flex !important; }
}

/* Small laptops — tighten nav padding so the desktop menu still fits ------ */
@media (max-width: 1180px) {
  .cg3-nav { padding: 14px 24px; gap: 12px; }
  .cg3-nav__links { gap: 22px; }
  .cg3-nav__login { display: none; }
}

/* Tablet / small-laptop breakpoint — swap to hamburger menu --------------- */
@media (max-width: 900px) {
  .cg3-nav { padding: 12px 18px; }
  .cg3-nav__links,
  .cg3-nav__tools { display: none !important; }
  /* Burger sits inline in the header bar — flex space-between pushes it to the right
     of the logo. flex-shrink: 0 keeps it from collapsing on small viewports. */
  .cg3-burger {
      display: inline-flex !important;
      position: static !important;
      flex-shrink: 0;
  }
  .cg3-mobile-menu { display: flex !important; }

  .cg3-footer { padding: 40px 20px 28px; }
  .cg3-footer__grid {
      grid-template-columns: 1fr;
      gap: 0;
  }
  .cg3-footer__about { max-width: none; }
  .cg3-footer__legal { flex-direction: column; gap: 10px; align-items: flex-start; }

  /* Footer accordion — each <details> becomes a row with a tappable summary. */
  .cg3-footer__col {
      border-top: 1px solid #2a2a25;
      padding: 0;
  }
  .cg3-footer__col:last-of-type { border-bottom: 1px solid #2a2a25; }
  .cg3-footer__col > summary {
      padding: 18px 4px;
      min-height: 44px; /* tap target */
  }
  .cg3-footer__col > summary .cg3-tag {
      box-shadow: none;
      border: 0;
      background: transparent;
      color: #fff;
      padding: 0;
      font-size: 13px;
      letter-spacing: 2px;
  }
  .cg3-footer__col-list {
      margin: 0 0 18px;
      padding: 0 4px;
      gap: 14px; /* extra finger-room for tappable links */
  }
  .cg3-footer__col-list a { font-size: 15px; min-height: 32px; display: inline-flex; align-items: center; }

  /* The "About + app store" block keeps its layout (no collapse) on mobile. */
  .cg3-footer__grid > div:first-child {
      padding-bottom: 16px;
  }
  .cg3-footer__stores { flex-wrap: wrap; }
}

/* Phones ----------------------------------------------------------------- */
@media (max-width: 640px) {
  .cg3-nav { padding: 10px 14px; }
  .cg3-footer { padding: 32px 18px 20px; }
  .cg3-footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .cg3-footer__store { padding: 8px 12px; font-size: 10px; }
  .cg3-footer__legal { font-size: 10px; }
  .cg3-footer__legal > div:last-child { gap: 14px; flex-wrap: wrap; }

  /* Make every long-form section breathe room on mobile */
  .cg3-page, .cg3-404 { padding: 56px 18px; }
  .cg3-page__title  { font-size: clamp(40px, 9vw, 60px); }
  .cg3-page__content { font-size: 16px; }
}

/* Tiny phones (< 380px) — kill horizontal padding entirely on hero blocks */
@media (max-width: 380px) {
  .cg3-nav__brand img { height: 26px; }
  .cg3-burger { width: 40px; height: 40px; }
}
