/* ────────────────────────────────────────────────────────────
   MenuBase | Learn / Playbook styles
   Brand-consistent: mirrors the main site's top ribbon,
   floating dock, footer, button system, and typography scale.
   Article-specific typography lives at the bottom.
   ──────────────────────────────────────────────────────────── */

:root {
  --bg:        #0A0A0C;
  --bg-soft:   #15151A;
  --bg-elev:   #1E1E24;
  --line:      #2E2E36;
  --line-2:    #3E3E48;
  --ink:       #F2F2EE;
  --ink-2:     #BDBDBE;
  --ink-3:     #8C8C90;
  --grey:      #8C8C90;
  --grey-2:    #6E6E72;
  --lime:      #BCF125;
  --lime-deep: #A6D413;
  --lime-soft: #2A3E18;
  --ink-deep:  #050507;
  --font-display: 'Hanken Grotesk', system-ui, sans-serif;
  --font-body:    'Geist', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
  --r-md: 8px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  /* Prevent any element overflowing horizontally from causing a horizontal
     page scroll on mobile. Carousels still scroll horizontally internally. */
  overflow-x: hidden;
  max-width: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
  letter-spacing: -0.005em;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--lime); color: #1A1A1A; }

/* ─── ANIMATED CANVAS BG (menubase-bg.js) ─── */
#mb-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: block; opacity: 0.7; }
/* nav.top is omitted from this list because it uses position: fixed with its
   own z-index 50 below (canvas bg sits at z-index 0 so the dock stays above). */
main, .top-ribbon, footer.foot { position: relative; z-index: 1; }

/* ─── LEGIBILITY CONTRAST FIXES (WCAG AA: 4.5:1 body, 3:1 large) ─── */
.eyebrow                                        { color: var(--ink-2) !important; }
.hub-intro p                                    { color: var(--ink-2) !important; }
.article-wrap p,
.article-wrap ul,
.article-wrap ol                                { color: var(--ink-2) !important; }
.foot-brand p                                   { color: var(--ink-2) !important; }
.foot-col a                                     { color: var(--ink-2) !important; }
.article-card p                                 { color: var(--ink-2) !important; }
.article-card .card-meta                        { color: var(--ink-2) !important; }

/* ─── LEGIBILITY SCRIM ─── */
.has-bg-scrim { position: relative; z-index: 1; }
.has-bg-scrim::before {
  content: '';
  position: absolute;
  inset: -24px -36px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(120% 130% at 50% 50%,
    var(--bg) 45%,
    color-mix(in oklab, var(--bg) 55%, transparent) 72%,
    transparent 100%);
}
.has-bg-scrim.scrim-soft::before {
  background: radial-gradient(120% 130% at 50% 50%,
    var(--bg-soft) 45%,
    color-mix(in oklab, var(--bg-soft) 55%, transparent) 72%,
    transparent 100%);
}
/* User-requested transparency boost on the /learn/ page hero so the
   background canvas (pixel grid + grain) shows through more. The default
   scrim above is solid for text legibility; here we soften it specifically
   for the hub-intro so the page breathes more without losing readability. */
.hub-intro.has-bg-scrim::before {
  background: radial-gradient(110% 130% at 50% 50%,
    color-mix(in oklab, var(--bg) 60%, transparent) 22%,
    color-mix(in oklab, var(--bg) 25%, transparent) 60%,
    transparent 100%);
}
.has-bg-scrim.scrim-dark::before {
  background: radial-gradient(120% 130% at 50% 50%,
    var(--ink-deep) 45%,
    color-mix(in oklab, var(--ink-deep) 55%, transparent) 72%,
    transparent 100%);
}

/* ─── BUTTONS (mirror main site) ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  font-weight: 600; font-size: 14.5px;
  border: 1.5px solid transparent;
  transition: transform 120ms, background 150ms, border-color 150ms, color 150ms;
  cursor: pointer;
  font-family: var(--font-body);
  letter-spacing: -0.005em;
}
.btn:active { transform: translateY(1px); }
.btn-dark  { background: var(--ink-deep); color: var(--ink); border-color: var(--ink-deep); }
.btn-dark:hover { background: #000; }
.btn-lime  { background: var(--lime); color: #1A1A1A; border-color: var(--lime); }
.btn-lime:hover { background: var(--lime-deep); border-color: var(--lime-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-lg { padding: 15px 28px; font-size: 15px; }

/* ─── TOP RIBBON (logo + Login - exact mirror of main site) ─── */
.top-ribbon {
  position: sticky;
  top: 0;
  z-index: 49;
  background: rgba(15, 17, 13, 0.78);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.top-ribbon-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
}
.top-ribbon .brand { display: inline-flex; align-items: center; text-decoration: none; }
.top-ribbon .brand .brand-lockup {
  height: 40px;
  width: auto;
  display: block;
  /* No filter - PNG renders directly on the transparent dark page bg
     (dark grey 'Menu' reads as medium grey, lime M + 'Base' stay bright). */
}
.top-ribbon-login {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  text-decoration: none;
  transition: background 150ms, color 150ms;
  letter-spacing: -0.005em;
}
.top-ribbon-login:hover { background: var(--ink); color: var(--bg); }
.top-ribbon-login .arr { transition: transform 150ms; }
.top-ribbon-login:hover .arr { transform: translateX(2px); }

/* ─── LANGUAGE PILL (3-segment, click any to switch) ─── */
/* ─── LANGUAGE SWITCH (single pill, cycles EN -> BM -> ZH -> EN on tap) ─── */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
  margin-right: 10px;
  min-width: 44px;
  height: 28px;
  padding: 0 11px;
  background: var(--lime);
  color: #0A0A0C;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
  cursor: pointer;
}
.lang-switch:hover {
  background: var(--lime);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(188, 241, 37, 0.4);
}
.lang-switch:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lang-globe {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.78;
}
.lang-switch:hover .lang-globe { opacity: 1; }
.lang-switch .lang-arr {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  opacity: 0.62;
  font-weight: 600;
}
.lang-switch:hover .lang-arr { opacity: 0.85; }
.top-ribbon-inner .lang-switch + .top-ribbon-login { margin-left: 0; }
@media (max-width: 560px) {
  .lang-switch { margin-right: 6px; min-width: 40px; height: 26px; padding: 0 9px; font-size: 11px; gap: 4px; }
  .lang-switch .lang-arr { font-size: 11px; }
}
/* Tight mobile @420 rule moved to bottom of file (after @720) so it wins
   the cascade at narrow widths. See line ~1430+ for the actual rules. */

/* ─── FLOATING BOTTOM DOCK (sticky at viewport bottom) ─── */
/* Use !important to win against the line-46 rule that sets nav.top to
   position:relative for z-index stacking against the canvas bg. */
body nav.top {
  position: fixed !important;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50 !important;
  background: rgba(26,26,26,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25), 0 6px 16px rgba(0,0,0,0.15);
  max-width: calc(100vw - 24px);
  margin: 0;
  width: auto;
}
/* Content padding so the sticky dock does not cover the last bit of page */
body { padding-bottom: 84px; }
.nav-inner {
  padding: 4px;
  display: flex; align-items: center; gap: 6px;
}
.nav-links { display: flex; gap: 1px; padding-left: 4px; flex-wrap: nowrap; min-width: 0; }
.nav-links a {
  padding: 6px 9px;
  font-size: 12px; color: rgba(255,255,255,0.78);
  font-weight: 500;
  border-radius: 999px;
  transition: color 120ms, background 120ms;
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.10); }
/* Active 'current' state: subtle lime tint, no dominating pill */
.nav-links a.current {
  color: var(--lime);
  background: rgba(188,241,37,0.08);
  position: relative;
}
.nav-links a.current:hover { background: rgba(188,241,37,0.14); color: var(--lime); }
.nav-links .nav-ico {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  opacity: 0.85;
  display: block;
}
.nav-links a:hover .nav-ico { opacity: 1; color: var(--lime); }
.nav-links a.current .nav-ico { opacity: 1; color: var(--lime); }
.nav-cta { display: flex; align-items: center; gap: 4px; }
.nav-cta .btn {
  padding: 6px 14px; font-size: 12.5px;
  border-radius: 999px; border-width: 1px;
  font-weight: 600;
}
.nav-cta .btn.nav-wa-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.nav-cta .btn.nav-wa-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* ─── EYEBROW (mirror main site) ─── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--grey); font-weight: 600;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: ''; width: 8px; height: 8px;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(188,241,37,0.45);
  flex-shrink: 0;
}

/* ─── HUB INTRO ─── */
.hub-intro {
  max-width: 1100px; margin: 0 auto;
  padding: 96px 36px 40px;
  text-align: left;
}
.hub-intro h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  max-width: 18ch;
}
.hub-intro h1 em { font-style: normal; color: var(--lime); }
.hub-intro p {
  font-size: 18px;
  color: var(--grey);
  max-width: 64ch;
  line-height: 1.55;
}

/* Category jump nav at top of hub */
.hub-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.hub-categories a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
  transition: color 150ms, background 150ms, border-color 150ms;
}
.hub-categories a:hover {
  color: var(--lime);
  background: rgba(188,241,37,0.06);
  border-color: rgba(188,241,37,0.30);
}

/* ─── START HERE PATH ─── */
.hub-starthere {
  max-width: 1100px;
  margin: 32px auto 0;
  padding: 56px 28px 24px;
  background: linear-gradient(180deg, rgba(188,241,37,0.04) 0%, transparent 100%);
  border-top: 1px solid rgba(188,241,37,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.starthere-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--lime);
  font-weight: 700;
  margin-bottom: 14px;
  display: inline-block;
  text-shadow: 0 0 12px rgba(188,241,37,0.30);
}
.hub-starthere h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 14px;
  max-width: 22ch;
}
.hub-starthere .starthere-sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
  margin: 0 0 36px;
}
.starthere-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  counter-reset: starthere;
}
.starthere-list li { margin: 0; }
.starthere-list a {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  gap: 22px;
  padding: 18px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: border-color 180ms, transform 180ms, background 180ms;
}
.starthere-list a:hover {
  border-color: var(--lime);
  transform: translateX(4px);
  background: rgba(188,241,37,0.04);
}
.sh-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lime);
  text-shadow: 0 0 14px rgba(188,241,37,0.40);
}
.sh-body { display: flex; flex-direction: column; gap: 4px; }
.sh-body strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.sh-body span {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.45;
}

/* ─── HUB CATEGORY SECTIONS ─── */
.hub-category {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 36px 24px;
  scroll-margin-top: 16px;
}
.category-heading { margin-bottom: 24px; }
.category-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--lime);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 12px;
}
.category-heading h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 12px;
}
.category-heading p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
  margin: 0;
}

/* Coming-soon placeholder card */
.coming-soon-card {
  grid-column: 1 / -1;
  padding: 32px 28px;
  background: var(--bg-elev);
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: var(--r-md);
}
.coming-soon-card .card-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  font-weight: 700;
  margin-bottom: 12px;
}
.coming-soon-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 12px;
}
.coming-soon-card p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}

/* ─── ARTICLE CARD GRID ─── */
.hub-grid {
  max-width: 1100px; margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
/* Last category gets bottom padding so the dock does not overlap content */
.hub-category:last-of-type { padding-bottom: 140px; }
.article-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px 28px 30px;
  display: flex; flex-direction: column;
  transition: border-color 250ms ease, transform 250ms ease, box-shadow 250ms ease;
  position: relative;
}
/* Menu-card style: lime square corner mark, top-left, like a chef's stamp */
.article-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 14px; height: 14px;
  background: var(--lime);
  transform: translate(-1px, -1px);
  box-shadow: 0 0 14px rgba(188,241,37,0.55);
}
.article-card:hover { border-color: var(--lime); transform: translateY(-2px); box-shadow: 0 12px 32px -16px rgba(188,241,37,0.35); }
.article-card .card-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  font-weight: 700;
  margin-bottom: 14px;
  text-shadow: 0 0 12px rgba(188,241,37,0.20);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* Dotted leader line like a tasting menu */
.article-card .card-eyebrow::after {
  content: '';
  flex: 1;
  border-top: 1.5px dotted rgba(188,241,37,0.45);
  margin-top: 2px;
}
.article-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--ink);
}
.article-card p {
  font-size: 14.5px;
  color: var(--grey);
  margin: 0 0 24px;
  line-height: 1.55;
  flex: 1;
}
.article-card .card-meta {
  display: flex; gap: 12px; align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--grey-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.article-card .card-cta {
  margin-top: 18px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

/* ─── ARTICLE: RELATED GUIDES (at the bottom of each /learn article) ─── */
.article-related {
  max-width: 1100px;
  margin: 48px auto 0;
  padding: 56px 24px 80px;
  border-top: 1px solid var(--line);
}
.article-related .related-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 28px;
  color: var(--ink);
  text-align: left;
}
.article-related .hub-grid {
  padding: 0;
  margin: 0;
  grid-template-columns: repeat(3, 1fr);
}
.article-related .article-card { padding: 24px 22px; }
.article-related .article-card h2 { font-size: 18px; line-height: 1.2; }
.article-related .article-card p { font-size: 13.5px; margin-bottom: 18px; }
.article-related .article-card .card-cta { font-size: 13px; margin-top: auto; }
@media (max-width: 900px) {
  /* Horizontal scroll carousel for the 3 related-article cards */
  .article-related .hub-grid {
    grid-template-columns: none;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    /* mandatory snap = card-by-card. touch-action keeps vertical safe. */
    scroll-snap-type: x mandatory;
    touch-action: pan-x pan-y;
    gap: 14px;
    padding: 4px 18px 16px;
    margin: 0 -18px;
    max-width: 100vw;
    scrollbar-width: thin;
    scrollbar-color: rgba(188,241,37,0.45) transparent;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 18px;
  }
  .article-related .hub-grid::-webkit-scrollbar { height: 6px; }
  .article-related .hub-grid::-webkit-scrollbar-track { background: transparent; }
  .article-related .hub-grid::-webkit-scrollbar-thumb { background: rgba(188,241,37,0.45); border-radius: 6px; }
  .article-related .article-card {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    flex: 0 0 78%;
    min-width: 260px;
    max-width: 320px;
  }
  .article-related { padding: 40px 18px 60px; margin-top: 36px; }
}

/* ─── ARTICLE LAYOUT ─── */
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 32px 140px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.article-wrap a { overflow-wrap: anywhere; }
.crumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 28px;
}
.crumb a { color: var(--lime); font-weight: 600; }
.article-wrap h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.8vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  color: var(--ink);
}
.article-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-2);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.meta-with-ico {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.meta-ico {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--lime);
  opacity: 0.85;
}
.lede {
  font-size: 20px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0 0 36px;
  font-weight: 500;
}
.article-wrap p {
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 20px;
  color: var(--ink-2);
}
.article-wrap p strong { color: var(--ink); font-weight: 600; }
.article-wrap h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 56px 0 18px;
  color: var(--ink);
}
.article-wrap h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  margin: 36px 0 14px;
  color: var(--ink);
}
.article-wrap ul, .article-wrap ol {
  margin: 0 0 24px;
  padding-left: 24px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.65;
}
.article-wrap li { margin-bottom: 10px; }
.article-wrap li strong { color: var(--ink); font-weight: 600; }

/* ─── ARTICLE ACCENT BLOCKS (mirror main site pullquote pattern) ─── */
.pullquote {
  margin: 36px 0;
  padding: 24px 28px;
  border-left: 4px solid var(--lime);
  background: var(--bg-soft);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  box-shadow: -4px 0 16px -8px rgba(188,241,37,0.40);
}
.formula {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin: 22px 0;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
}
.tactic-test {
  background: var(--lime-soft);
  border-left: 4px solid var(--lime);
  padding: 14px 18px;
  margin: 14px 0 22px;
  font-size: 15px;
  color: var(--ink);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.tactic-test strong { color: var(--ink); }

/* ─── INLINE CTA BLOCK (dark, brand-consistent with cta-shell on main) ─── */
.cta-block {
  background: var(--ink-deep);
  color: var(--ink);
  padding: 40px 32px;
  border-radius: var(--r-md);
  margin: 56px 0 24px;
}
.cta-block h3 {
  color: #fff;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.cta-block p {
  color: rgba(255,255,255,0.78);
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.55;
}
.cta-block .btn { font-size: 14px; padding: 14px 26px; }

/* ─── FOOTER (mirror main site structure) ─── */
footer.foot {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 64px 28px 36px;
}
.foot-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 44px;
}
.foot-brand .brand { display: inline-flex; align-items: center; text-decoration: none; }
.foot-brand .brand .brand-lockup {
  height: 38px; width: auto; display: block;
  /* No filter - keep the brand lime (#BCF125) authentic. The invert+hue-rotate
     hack was corrupting it to a darker olive green. */
}
.foot-brand p {
  font-size: 14px;
  color: var(--grey);
  margin: 14px 0 0;
  max-width: 320px;
  line-height: 1.55;
}
.foot-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 600;
  margin: 0 0 18px;
}
.foot-col a {
  display: block;
  font-size: 14.5px;
  color: var(--ink-2);
  margin-bottom: 10px;
  transition: color 120ms;
}
.foot-col a:hover { color: var(--ink); }
.foot-bottom {
  max-width: 1320px; margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--grey-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  flex-wrap: wrap; gap: 12px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .foot-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .foot-col:nth-child(2) { grid-column: auto; }
  /* Tablet-tier nav: slightly tighter but still readable */
  body nav.top { bottom: 14px; }
  nav.top .nav-inner { padding: 5px; gap: 4px; }
  nav.top .nav-links { gap: 1px; padding-left: 4px; }
  nav.top .nav-links a { padding: 6px 9px; font-size: 12px; gap: 5px; }
  nav.top .nav-links .nav-ico { width: 14px; height: 14px; flex: 0 0 14px; }
  nav.top .nav-cta .btn.nav-wa-icon { width: 36px; height: 36px; }
  nav.top .nav-cta .btn.nav-wa-icon svg { width: 17px; height: 17px; }
}
@media (max-width: 720px) {
  .top-ribbon-inner { padding: 12px 18px; }
  .top-ribbon .brand .brand-lockup { height: 28px; }
  .top-ribbon-login { padding: 7px 13px; font-size: 12px; }

  body nav.top {
    position: fixed !important;
    bottom: 12px;
    left: 10px;
    right: 10px;
    transform: none;
    margin: 0;
    width: auto;
    max-width: none;
    box-sizing: border-box;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4),
                0 6px 16px rgba(0,0,0,0.25),
                0 0 0 1px rgba(188,241,37,0.14),
                0 0 24px rgba(188,241,37,0.14);
  }
  body { padding-bottom: 96px; }
  .nav-inner { padding: 4px; gap: 4px; justify-content: space-between; align-items: center; }
  /* Mobile: 9 nav-links in a horizontal scroll strip with WhatsApp pinned right */
  .nav-links {
    display: flex;
    padding-left: 0;
    gap: 0;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    /* pan-x pan-y so vertical swipes on the bottom nav still scroll the page */
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    flex-direction: column;
    gap: 3px;
    padding: 6px 9px;
    font-size: 10.5px;
    letter-spacing: 0.01em;
    text-align: center;
    flex: 0 0 auto;
    min-width: 52px;
    white-space: nowrap;
    scroll-snap-align: start;
  }
  /* Subtle current state on mobile - no full lime pill */
  .nav-links a.current { background: rgba(188,241,37,0.10); color: var(--lime); border-radius: 12px; }
  .nav-links a.current .nav-ico { color: var(--lime); }
  .nav-links .nav-ico { width: 18px; height: 18px; flex: 0 0 18px; opacity: 0.92; }
  .nav-cta { width: auto; margin-left: 0; flex: 0 0 auto; }
  .nav-cta .btn.nav-wa-icon { flex: 0 0 auto; width: 36px; height: 36px; padding: 0; }
  .nav-cta .btn.nav-wa-icon svg { width: 16px; height: 16px; }

  .hub-intro { padding: 56px 24px 24px; max-width: 100%; }
  /* Category jump nav: horizontal scroll on mobile to avoid wrap chaos */
  .hub-categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hub-categories::-webkit-scrollbar { display: none; }
  .hub-categories a { flex: 0 0 auto; }

  /* Start Here panel + per-category sections */
  .hub-starthere { padding: 40px 24px 24px; margin: 24px 0 0; max-width: 100%; }
  .hub-starthere h2 { font-size: 26px; }
  .starthere-list a { grid-template-columns: 44px 1fr; gap: 16px; padding: 14px 18px; }
  .sh-num { font-size: 22px; }
  .sh-body strong { font-size: 15.5px; }
  .sh-body span { font-size: 13px; }

  .hub-category { padding: 40px 24px 16px; max-width: 100%; }
  .hub-category:last-of-type { padding-bottom: 110px; }
  .category-heading h2 { font-size: 24px; }
  .category-heading p { font-size: 14.5px; }

  /* USER REQUEST (2026-05-31): topic-category sections scroll horizontally on
     mobile instead of stacking. Easier to browse, less endless-vertical-wall.
     Uses the same touch-action: pan-x pan-y pattern as the landing carousels
     so vertical swipes still scroll the page (no scroll-hijack bug). */
  .hub-grid {
    grid-template-columns: none;
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    /* mandatory snap = card-by-card. touch-action keeps vertical safe. */
    scroll-snap-type: x mandatory;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 6px 32px 20px;
    margin: 0 -24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(188,241,37,0.45) transparent;
    scroll-padding-inline: 32px;
  }
  .hub-grid::-webkit-scrollbar { height: 6px; }
  .hub-grid::-webkit-scrollbar-track { background: transparent; }
  .hub-grid::-webkit-scrollbar-thumb {
    background: rgba(188,241,37,0.5);
    border-radius: 6px;
  }
  .hub-grid::-webkit-scrollbar-thumb:hover { background: rgba(188,241,37,0.7); }

  .article-card {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    flex: 0 0 82%;
    min-width: 0;
    max-width: 340px;
    padding: 24px 22px;
  }
  .article-card h2 { font-size: 19px; line-height: 1.25; }
  .article-card p { font-size: 13.5px; }

  /* Wrap each topic category in a position:relative to anchor the swipe hint */
  .hub-category { position: relative; }
  /* Subtle right-edge fade so users perceive there is more content offscreen */
  .hub-category::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 26px;
    top: auto;
    height: calc(100% - 90px);
    width: 32px;
    background: linear-gradient(to right, transparent, var(--bg));
    pointer-events: none;
    z-index: 2;
  }
  .coming-soon-card { padding: 24px 20px; }
  .coming-soon-card h3 { font-size: 15px; }

  .article-wrap { padding: 32px 24px 120px; }
  .article-wrap h1 { font-size: 30px; }
  .article-wrap h2 { font-size: 22px; margin: 40px 0 14px; }
  .article-wrap h3 { font-size: 18px; margin: 28px 0 12px; }
  .lede { font-size: 17px; }
  .article-wrap p, .article-wrap ul, .article-wrap ol { font-size: 16px; }
  .pullquote { font-size: 18px; padding: 20px 22px; }
  .cta-block { padding: 28px 22px; }
  .cta-block h3 { font-size: 22px; }

  footer.foot { padding: 48px 22px 28px; }
  .foot-inner { grid-template-columns: 1fr; gap: 32px; }
  .foot-bottom { margin-top: 36px; }
}

/* Touch device: suppress hover transforms */
@media (hover: none) {
  .article-card:hover { transform: none; }
}

/* ─── VERTICAL CROSS-LINK CALLOUT ─── */
.vertical-callout {
  max-width: 920px;
  margin: 56px auto 0;
  padding: 32px 32px;
  background: linear-gradient(180deg, rgba(188,241,37,0.07) 0%, rgba(188,241,37,0.02) 100%);
  border: 1px solid rgba(188,241,37,0.22);
  border-radius: 18px;
}
.vertical-callout .vc-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  font-weight: 700;
  margin: 0 0 10px;
}
.vertical-callout h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.vertical-callout > p {
  font-size: 14.5px;
  color: var(--ink-2);
  margin: 0 0 22px;
  line-height: 1.55;
}
.vc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.vc-grid a {
  display: flex; flex-direction: column;
  padding: 18px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 180ms, transform 180ms;
}
.vc-grid a:hover { border-color: var(--lime); transform: translateY(-2px); }
.vc-grid a span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  font-weight: 700;
  margin-bottom: 6px;
}
.vc-grid a strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.3;
}
@media (max-width: 720px) {
  .vc-grid { grid-template-columns: 1fr; }
  .vertical-callout { padding: 26px 22px; margin-top: 40px; }
  .vertical-callout h2 { font-size: 20px; }
}
/* ─── BOTTOM-OF-ARTICLE WHATSAPP CTA BLOCK ─── */
.article-cta {
  max-width: 1180px;
  margin: 64px auto 32px;
  padding: 48px 36px;
  background: linear-gradient(135deg, #1A1A20 0%, #0A0A0C 100%);
  border: 1px solid rgba(188, 241, 37, 0.28);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
@media (max-width: 1240px) {
  .article-cta { margin-left: 28px; margin-right: 28px; }
}
.article-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(188, 241, 37, 0.12), transparent 55%);
  pointer-events: none;
}
.article-cta > * { position: relative; }
.article-cta .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--lime);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}
.article-cta h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 16px;
}
.article-cta h3 em { font-style: normal; color: var(--lime); }
.article-cta p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 26px;
  max-width: 580px;
}
.article-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--lime);
  color: #0A0A0C;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.article-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(188, 241, 37, 0.4);
}
.article-cta .micro {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}
@media (max-width: 720px) {
  .article-cta { padding: 36px 26px; margin: 48px 18px 24px; border-radius: 16px; }
  .article-cta p { font-size: 15px; }
}

/* ─── RELATED GUIDES ─── */
.related-guides {
  max-width: 1180px;
  margin: 56px auto 24px;
  padding: 0 28px;
}
.rel-head { margin-bottom: 22px; }
.rel-head .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.rel-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 38px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.rel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.rel-card {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 200ms cubic-bezier(.16,1,.3,1), border-color 200ms, background 200ms;
}
.rel-card:hover {
  transform: translateY(-3px);
  border-color: var(--lime);
  background: var(--bg-elev);
}
.rel-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.rel-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 10px;
}
.rel-card:hover h3 { color: var(--lime); }
.rel-card p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 16px;
  flex: 1;
}
.rel-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--lime);
}
@media (max-width: 900px) {
  .rel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .rel-grid { grid-template-columns: 1fr; }
  .related-guides { padding: 0 22px; margin-top: 44px; }
}

/* ─── HUB REDESIGN: goal grid + filter tabs + search ─── */
.hub-goals {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px 16px;
}
.goals-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.goal-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  transition: transform 180ms cubic-bezier(.16,1,.3,1), border-color 180ms, background 180ms;
}
.goal-card:hover {
  transform: translateY(-3px);
  border-color: var(--lime);
  background: var(--bg-elev);
}
.goal-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lime);
  color: #0A0A0C;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.goal-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.goal-text strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.goal-text span {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-2);
}

/* Sticky filter + search bar */
.hub-filter-bar {
  position: sticky;
  top: 56px;
  z-index: 40;
  margin: 24px auto 28px;
  max-width: 1180px;
  padding: 12px 28px;
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 16px;
}
.filter-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms, color 150ms, border-color 150ms;
}
.cat-tab:hover { background: var(--bg-soft); color: var(--ink); border-color: var(--ink-2); }
.cat-tab.active {
  background: var(--lime);
  color: #0A0A0C;
  border-color: var(--lime);
}
.hub-search {
  flex-shrink: 0;
  width: 260px;
  padding: 8px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  transition: border-color 150ms, background 150ms;
}
.hub-search:focus {
  outline: none;
  border-color: var(--lime);
  background: var(--bg-elev);
}
.hub-search::placeholder { color: var(--grey-2); }

/* Empty-state for when search/filter returns nothing */
.hub-empty {
  display: none;
  max-width: 1180px;
  margin: 40px auto;
  padding: 40px 28px;
  text-align: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.hub-empty.show { display: block; }
.hub-empty h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 8px;
}
.hub-empty p {
  color: var(--ink-2);
  margin: 0 0 18px;
  font-size: 15px;
}
.hub-empty .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--lime);
  color: #0A0A0C;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

/* Hidden cards / sections (when filtered out) */
.article-card.is-hidden,
.hub-category.is-empty { display: none; }

@media (max-width: 720px) {
  .hub-goals { padding: 0 22px 12px; }
  .goals-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .goal-card { padding: 14px 12px; gap: 10px; }
  .goal-icon { width: 32px; height: 32px; font-size: 15px; border-radius: 8px; }
  .goal-text strong { font-size: 14px; }
  .goal-text span { font-size: 11.5px; line-height: 1.3; }
  .hub-filter-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 22px;
    margin: 16px 0 24px;
    border-radius: 0;
    gap: 10px;
    top: 0;
  }
  .filter-tabs { width: 100%; }
  .hub-search { width: 100%; }
}
@media (max-width: 480px) {
  .goals-grid { grid-template-columns: 1fr; }
}

/* ──────────────── TIGHT MOBILE OVERRIDES (@420) ────────────────
   These rules MUST be at the bottom of the file so they win the cascade
   against the @720 rules at line 873+ which also touch top-ribbon.
   Targets small Androids and iPhone SE (320-419px) to prevent the
   logo + lang pill + login button from overlapping. */
@media (max-width: 420px) {
  .top-ribbon-inner { padding: 9px 12px; }
  .top-ribbon .brand .brand-lockup { height: 24px; }
  .top-ribbon-login { padding: 6px 11px; font-size: 11.5px; gap: 3px; letter-spacing: 0; }
  .top-ribbon-login .arr { display: none; }
  .lang-switch { margin-right: 5px; min-width: 36px; height: 24px; padding: 0 7px; font-size: 10.5px; gap: 3px; }
  .lang-switch .lang-arr { font-size: 10.5px; }
  .lang-globe { width: 12px; height: 12px; }
}


/* Mobile gutter for inline-styled /learn/ sections - cornerstone-banner,
   frameworks-row, calculators-row, academy-strip, hub-browse-header.
   Without this, they hit the viewport edge directly because the parent
   <main> has no padding. */
@media (max-width: 900px) {
  .cornerstone-banner,
  .frameworks-row,
  .calculators-row,
  .academy-strip,
  .hub-browse-header { padding-left: 16px !important; padding-right: 16px !important; }
}
@media (max-width: 560px) {
  .cornerstone-banner,
  .frameworks-row,
  .calculators-row,
  .academy-strip,
  .hub-browse-header { padding-left: 14px !important; padding-right: 14px !important; }
}

/* ─── GUTTER GUARANTEE (2026-06-19) ────────────────────────────────────
   Comfortable, uniform side gutters across the whole /learn/ page on mobile.
   Placed last + !important so it wins against the many earlier breakpoint
   rules (some at 14-18px) that were leaving content too close to the edge.
   The card scrollers keep their -24px full-bleed margin, so a 24px padding
   rests the first card 24px in (matching the headings) while still letting
   cards bleed to the edge as you swipe. ─── */
@media (max-width: 720px) {
  .hub-intro, .hub-category, .hub-starthere,
  .cornerstone-banner, .frameworks-row, .calculators-row,
  .academy-strip, .hub-browse-header,
  .article-wrap {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  .hub-grid {
    padding-left: 24px !important;
    padding-right: 24px !important;
    scroll-padding-left: 24px !important;
    scroll-padding-inline: 24px !important;
  }
}
