/*
Theme Name: Coinculb
Theme URI: https://coinculb.com/
Author: Coinculb
Description: Mint Community — a learn-first design system for Coinculb. Editorial serif headlines, soft mint paper surfaces, emerald primary and warm coral accent. Built for a beginner audience, so WCAG 2.1 AA is enforced at the token level.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.2
License: GPL-2.0-or-later
Text Domain: coinculb
*/

/* ==========================================================================
   0. DESIGN TOKENS — "MINT COMMUNITY"
   --------------------------------------------------------------------------
   ⚠️ CONTRAST CONTRACT (measured, not eyeballed — every ratio below is against
   the surface it is actually used on):

     --brand  #059669  is 3.77:1 on white. That FAILS WCAG AA for normal text.
                       It is a DECORATIVE token: borders, icons, fills, and
                       display type >=24px (where 3:1 applies) ONLY.
     --link   #047857  5.48:1 on card / 5.24:1 on paper. This is the ONLY
                       token permitted for body links and small brand-coloured
                       text. Using --brand for a link is the exact AA failure
                       that shipped on a sibling site.
     --accent #FB7185  2.57:1 on paper — NEVER text on a light surface. It is a
                       BUTTON FILL, and its button text must be --text
                       (6.06:1), not white (2.69:1 — fails).
     Dark mode flips the link to #34D399 (8.60:1 on dark card); --brand at
     4.39:1 on dark card is a near-miss and is likewise decorative-only there.
   ========================================================================== */

:root {
  /* surfaces */
  --bg:            #F6FBF8;
  --surface:       #ECF6F1;
  --card:          #FFFFFF;
  --border:        #DCEAE3;
  --border-strong: #C3DCD0;

  /* type */
  --text:   #14231D;
  --muted:  #5B6B64;
  --invert: #FFFFFF;

  /* brand */
  --brand:       #059669;  /* decorative / large display only */
  --brand-deep:  #047857;  /* AA-safe brand for text + solid buttons */
  --brand-soft:  #D6F0E5;
  --link:        #047857;
  --link-hover:  #035E44;
  --accent:      #FB7185;  /* fill only, never light-surface text */
  /* Label colour for the coral fill. Deliberately NOT --text: --text flips to
     near-white in dark mode, which would drop this label to 2.38:1 on a fill
     that does not itself change. Fixed value, both themes -> 6.06:1. */
  --on-accent:   #14231D;
  --accent-deep: #E11D48;
  --accent-soft: #FFE4E9;

  /* market states */
  --bullish: #16A34A;
  --bearish: #DC2626;
  --neutral: #6B7280;

  /* category tints */
  --cat-crypto:    #059669;
  --cat-analysis:  #0EA5E9;
  --cat-guides:    #F59E0B;
  --cat-exchanges: #8B5CF6;
  --cat-tech:      #14B8A6;

  /* difficulty */
  --lvl-beginner:     #059669;
  --lvl-intermediate: #0EA5E9;
  --lvl-advanced:     #8B5CF6;

  /* typography */
  --font-display: "Fraunces", "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* 8px scale */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  /* shape */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;

  /* soft, warm shadows — never harsh */
  --shadow-sm: 0 1px 2px rgba(20,35,29,.05);
  --shadow-md: 0 4px 14px rgba(20,35,29,.07);
  --shadow-lg: 0 12px 32px rgba(20,35,29,.10);

  /* layout */
  --wrap: 1200px;
  --read: 720px;
  --gutter: 20px;
}

/* Warm dark — deliberately NOT navy. Chrome gets its own tokens rather than
   inheriting light ones, which is how a sibling ended up with an inverted header. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #0E1512;
    --surface:       #17211C;
    --card:          #17211C;
    --border:        #26332C;
    --border-strong: #33443B;
    --text:   #EAF3EE;
    --muted:  #93A79C;
    --invert: #0E1512;
    --brand-soft:  #123326;
    --link:        #34D399;
    --link-hover:  #6EE7B7;
    --accent-soft: #3B1F27;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
    --shadow-md: 0 4px 14px rgba(0,0,0,.45);
    --shadow-lg: 0 12px 32px rgba(0,0,0,.55);
  }
}
:root[data-theme="dark"] {
  --bg:            #0E1512;
  --surface:       #17211C;
  --card:          #17211C;
  --border:        #26332C;
  --border-strong: #33443B;
  --text:   #EAF3EE;
  --muted:  #93A79C;
  --invert: #0E1512;
  --brand-soft:  #123326;
  --link:        #34D399;
  --link-hover:  #6EE7B7;
  --accent-soft: #3B1F27;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
  --shadow-md: 0 4px 14px rgba(0,0,0,.45);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.55);
}

/* ==========================================================================
   1. RESET + BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 600; line-height: 1.22; margin: 0 0 var(--s4); letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 5vw, 40px); line-height: 1.15; }
h2 { font-size: clamp(24px, 3.4vw, 26px); }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
p  { margin: 0 0 var(--s4); }
a  { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
/* Hover must not recolour into a failing ratio — thicken the underline instead. */
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: var(--r-sm); }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--s6) 0; }
code, kbd, samp, pre { font-family: var(--font-mono); font-size: .92em; }
.num, .price, td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   2. LAYOUT
   ========================================================================== */
.cc-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
/* Never use the `padding` shorthand on a wrapper — it silently zeroes the gutter. */
.cc-read { max-width: var(--read); margin-inline: auto; }
.cc-section { padding-block: var(--s7); }
.cc-section--tight { padding-block: var(--s6); }
.cc-band { background: var(--surface); }
.cc-grid { display: grid; gap: var(--s5); }
.cc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* minmax(0,1fr) throughout: plain 1fr lets a long word or a table push a child
   wider than its track and blow out the page. */
.cc-sidebar-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: var(--s7); align-items: start; }
@media (max-width: 1000px) {
  .cc-sidebar-layout { grid-template-columns: minmax(0,1fr); }
  .cc-grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 780px) {
  .cc-grid--2, .cc-grid--3 { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 520px) {
  .cc-grid--4 { grid-template-columns: minmax(0,1fr); }
}
.cc-stack > * + * { margin-top: var(--s4); }
.cc-flex { display: flex; gap: var(--s3); align-items: center; }
.cc-flex-wrap { flex-wrap: wrap; }
.cc-spacer { flex: 1 1 auto; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand-deep); color: #fff; padding: var(--s3) var(--s4); border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   3. SECTION HEADINGS
   ========================================================================== */
.cc-shead { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); flex-wrap: wrap; }
.cc-shead__title { margin: 0; font-size: clamp(22px, 3vw, 26px); }
.cc-shead__sub { margin: var(--s1) 0 0; color: var(--muted); font-size: 15px; font-family: var(--font-body); }
.cc-shead__link { font-size: 15px; font-weight: 600; white-space: nowrap; }
.cc-eyebrow {
  display: inline-block; font-family: var(--font-body); font-size: 12px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s2);
}

/* ==========================================================================
   4. BUTTONS  (fills chosen so label contrast passes AA — see §0)
   ========================================================================== */
.cc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 12px 22px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 650; font-size: 15px; line-height: 1; text-decoration: none;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.cc-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }
.cc-btn:active { transform: translateY(0); }
.cc-btn--primary { background: var(--brand-deep); color: #fff; }           /* 5.48:1 */
.cc-btn--primary:hover { background: #035E44; color: #fff; }
.cc-btn--accent  { background: var(--accent); color: var(--on-accent); }   /* 6.06:1 both themes */
.cc-btn--accent:hover { background: #FA5A72; color: var(--on-accent); }
.cc-btn--ghost {
  background: transparent; color: var(--link); border-color: var(--border-strong);
}
.cc-btn--ghost:hover { background: var(--brand-soft); color: var(--link-hover); }
.cc-btn--sm { padding: 8px 16px; font-size: 14px; }
.cc-btn--lg { padding: 15px 30px; font-size: 17px; }
.cc-btn--block { display: flex; width: 100%; }

/* ==========================================================================
   5. CHIPS / BADGES
   ========================================================================== */
.cc-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px;
  border-radius: var(--r-pill); font-size: 12px; font-weight: 700; line-height: 1.6;
  letter-spacing: .02em; text-decoration: none; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted);
}
a.cc-chip:hover { border-color: var(--border-strong); color: var(--text); text-decoration: none; }
.cc-chip__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
/* Category tints are borders + dots, never small coloured text — the tints are
   chosen for hue distinction, not for contrast as type. */
.cc-chip--crypto    { border-color: var(--cat-crypto);    color: var(--text); }
.cc-chip--analysis  { border-color: var(--cat-analysis);  color: var(--text); }
.cc-chip--guides    { border-color: var(--cat-guides);    color: var(--text); }
.cc-chip--exchanges { border-color: var(--cat-exchanges); color: var(--text); }
.cc-chip--tech      { border-color: var(--cat-tech);      color: var(--text); }
.cc-chip--crypto    .cc-chip__dot { background: var(--cat-crypto); }
.cc-chip--analysis  .cc-chip__dot { background: var(--cat-analysis); }
.cc-chip--guides    .cc-chip__dot { background: var(--cat-guides); }
.cc-chip--exchanges .cc-chip__dot { background: var(--cat-exchanges); }
.cc-chip--tech      .cc-chip__dot { background: var(--cat-tech); }

.cc-level { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.cc-level__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.cc-level--beginner     .cc-level__dot { background: var(--lvl-beginner); }
.cc-level--intermediate .cc-level__dot { background: var(--lvl-intermediate); }
.cc-level--advanced     .cc-level__dot { background: var(--lvl-advanced); }

/* ==========================================================================
   6. CARDS
   ========================================================================== */
.cc-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: var(--s5); box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
  display: flex; flex-direction: column; min-width: 0;
}
.cc-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.cc-card--flat { box-shadow: none; }
.cc-card--pad-lg { padding: var(--s6); }
.cc-card__media { margin: calc(var(--s5) * -1) calc(var(--s5) * -1) var(--s4); border-radius: var(--r-xl) var(--r-xl) 0 0; overflow: hidden; background: var(--surface); }
.cc-card__media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.cc-card__title { font-size: 19px; line-height: 1.3; margin: 0 0 var(--s2); }
.cc-card__title a { color: var(--text); text-decoration: none; }
.cc-card__title a:hover { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; }
.cc-card__excerpt { color: var(--muted); font-size: 15px; margin: 0 0 var(--s4); }
.cc-card__meta { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: auto; }
.cc-card__meta time { white-space: nowrap; }

/* Whole-card link: the title carries the underline on hover, so the card does
   not also underline every nested string. */
.cc-card--linked { position: relative; }
.cc-card--linked .cc-card__title a::after { content: ""; position: absolute; inset: 0; }

/* ==========================================================================
   7. GUIDE CARD + LEARNING PATH
   ========================================================================== */
.cc-guide { position: relative; }
.cc-guide__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.cc-guide__num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft);
  color: var(--brand-deep); font-family: var(--font-mono); font-size: 13px; font-weight: 700;
}
.cc-guide__facts { display: flex; gap: var(--s3); flex-wrap: wrap; font-size: 13px; color: var(--muted); }

.cc-path { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.cc-path__item { position: relative; padding: var(--s3) 0 var(--s3) var(--s6); border-left: 2px solid var(--border); }
.cc-path__item:last-child { border-left-color: transparent; }
.cc-path__item::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: -13px; top: var(--s3);
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--border-strong);
  color: var(--muted); font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cc-path__item--done::before { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; content: "✓"; }
.cc-path__link { color: var(--text); text-decoration: none; font-weight: 600; }
.cc-path__link:hover { color: var(--link); text-decoration: underline; }
.cc-path__meta { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

.cc-progress { background: var(--surface); border-radius: var(--r-pill); height: 8px; overflow: hidden; }
.cc-progress__bar { height: 100%; background: var(--brand-deep); border-radius: var(--r-pill); transition: width .3s ease; }
.cc-progress__label { font-size: 13px; color: var(--muted); margin-top: var(--s2); }

/* ==========================================================================
   8. CALLOUTS — Key Concepts / Quick Answer / YMYL / disclosure
   ========================================================================== */
.cc-callout {
  border: 1px solid var(--border); border-left: 4px solid var(--brand);
  background: var(--surface); border-radius: var(--r-md);
  padding: var(--s5); margin: var(--s6) 0;
}
.cc-callout__title {
  font-family: var(--font-body); font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin: 0 0 var(--s3);
  display: flex; align-items: center; gap: var(--s2);
}
.cc-callout > :last-child { margin-bottom: 0; }
.cc-callout--answer { border-left-color: var(--cat-analysis); }
.cc-callout--key    { border-left-color: var(--brand); }
.cc-callout--risk   { border-left-color: var(--bearish); background: var(--accent-soft); }
.cc-callout--disclosure { border-left-color: var(--cat-guides); }
.cc-callout--safety { border-left-color: var(--accent-deep); }
.cc-callout ul { margin: 0; padding-left: 1.2em; }
.cc-callout li + li { margin-top: var(--s2); }

/* Sitewide YMYL strip */
.cc-ymyl {
  font-size: 13px; color: var(--muted); line-height: 1.6;
  border-top: 1px solid var(--border); padding-top: var(--s4); margin-top: var(--s6);
}

/* ==========================================================================
   9. PROSE (article body)
   ========================================================================== */
.cc-prose { font-size: 18px; line-height: 1.78; }
.cc-prose > * { max-width: 100%; }
.cc-prose h2 { margin-top: var(--s7); scroll-margin-top: 90px; }
.cc-prose h3 { margin-top: var(--s6); scroll-margin-top: 90px; }
.cc-prose ul, .cc-prose ol { margin: 0 0 var(--s4); padding-left: 1.35em; }
.cc-prose li + li { margin-top: var(--s2); }
.cc-prose blockquote {
  margin: var(--s6) 0; padding: var(--s2) 0 var(--s2) var(--s5);
  border-left: 3px solid var(--brand); color: var(--muted);
  font-family: var(--font-display); font-size: 20px; font-style: italic;
}
.cc-prose img { border-radius: var(--r-lg); margin-block: var(--s5); }
.cc-prose figure { margin: var(--s6) 0; }
.cc-prose figcaption { font-size: 14px; color: var(--muted); margin-top: var(--s2); text-align: center; }
.cc-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cc-prose a { font-weight: 500; }
/* A descendant type selector like `.cc-prose p` outranks a utility class, so
   prose styling is kept to element defaults and overridden by class where needed. */

/* Tables must scroll inside a WRAPPER. Putting overflow on the table itself
   makes `display:block` shrink-wrap it and break the column widths. */
.cc-table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--r-lg); }
.cc-table-scroll > table { margin: 0; border: 0; min-width: 560px; }
.cc-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); }
.cc-table th, .cc-table td { padding: 12px var(--s4); text-align: left; border-bottom: 1px solid var(--border); }
.cc-table th { font-family: var(--font-body); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: var(--surface); }
.cc-table tr:last-child td { border-bottom: 0; }
.cc-table td.num, .cc-table th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.cc-up { color: var(--bullish); } .cc-down { color: var(--bearish); } .cc-flat { color: var(--neutral); }

/* ==========================================================================
   10. TOC
   ========================================================================== */
.cc-toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s5); }
.cc-toc__title { font-family: var(--font-body); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 var(--s3); }
.cc-toc ol { margin: 0; padding-left: 1.2em; font-size: 15px; }
.cc-toc li + li { margin-top: 6px; }
.cc-toc a { color: var(--text); text-decoration: none; }
.cc-toc a:hover { color: var(--link); text-decoration: underline; }
.cc-toc--sticky { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; }

/* ==========================================================================
   11. AUTHOR / BYLINE
   ========================================================================== */
.cc-byline { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.cc-byline__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--surface); flex: none; }
.cc-byline__name { color: var(--text); font-weight: 650; text-decoration: none; }
.cc-byline__name:hover { color: var(--link); text-decoration: underline; }
.cc-byline__sep { color: var(--border-strong); }
.cc-authorcard { display: flex; gap: var(--s5); align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--s5); }
.cc-authorcard__avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; background: var(--card); }
.cc-authorcard__role { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.cc-authorcard__bio { font-size: 15px; margin: var(--s2) 0 0; }
@media (max-width: 560px) { .cc-authorcard { flex-direction: column; } }

/* ==========================================================================
   12. REVIEW
   ========================================================================== */
.cc-rating { display: inline-flex; align-items: baseline; gap: 4px; font-family: var(--font-mono); font-weight: 700; }
.cc-rating__score { font-size: 26px; color: var(--brand-deep); }
.cc-rating__out { font-size: 14px; color: var(--muted); }
.cc-stars { display: inline-flex; gap: 2px; color: var(--cat-guides); }
.cc-proscons { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s4); margin: var(--s6) 0; }
@media (max-width: 640px) { .cc-proscons { grid-template-columns: minmax(0,1fr); } }
.cc-proscons__col { border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s5); background: var(--card); }
.cc-proscons__col h4 { margin: 0 0 var(--s3); font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.cc-proscons__col ul { margin: 0; padding-left: 1.2em; font-size: 15px; }
.cc-proscons--pro h4 { color: var(--bullish); }
.cc-proscons--con h4 { color: var(--bearish); }

/* ==========================================================================
   13. GLOSSARY
   ========================================================================== */
.cc-azbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s6); }
.cc-azbar a, .cc-azbar span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 8px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--card);
  font-family: var(--font-mono); font-size: 14px; font-weight: 700; text-decoration: none; color: var(--link);
}
.cc-azbar a:hover { background: var(--brand-soft); border-color: var(--brand); }
.cc-azbar span { color: var(--muted); opacity: .45; }
.cc-termcard { border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s4) var(--s5); background: var(--card); }
.cc-termcard__term { font-family: var(--font-display); font-size: 18px; margin: 0 0 4px; }
.cc-termcard__term a { color: var(--text); text-decoration: none; }
.cc-termcard__term a:hover { color: var(--link); text-decoration: underline; }
.cc-termcard__def { font-size: 15px; color: var(--muted); margin: 0; }

/* ==========================================================================
   14. FORMS
   ========================================================================== */
.cc-field { display: block; margin-bottom: var(--s4); }
.cc-field__label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 6px; }
.cc-input, .cc-select, .cc-textarea {
  width: 100%; padding: 11px var(--s4); border-radius: var(--r-md);
  border: 1px solid var(--border-strong); background: var(--card); color: var(--text);
  font-size: 16px; /* 16px avoids iOS zoom-on-focus */
}
.cc-input:focus, .cc-select:focus, .cc-textarea:focus { outline: 3px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.cc-field__hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.cc-field__error { font-size: 13px; color: var(--bearish); margin-top: 5px; font-weight: 600; }
.cc-checkrow { display: flex; align-items: flex-start; gap: var(--s3); }
/* the flex lives on the WRAPPER, not the label — a label-only flex leaves the
   checkbox baseline-misaligned against a two-line consent string. */
.cc-checkrow input[type="checkbox"] { margin-top: 5px; flex: none; width: 17px; height: 17px; accent-color: var(--brand-deep); }
.cc-checkrow label { font-size: 14px; color: var(--muted); }

/* ==========================================================================
   15. NEWSLETTER + COMMUNITY BANDS
   ========================================================================== */
.cc-newsletter { background: var(--brand-soft); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--s6); }
.cc-newsletter__form { display: flex; gap: var(--s3); margin-top: var(--s4); }
@media (max-width: 560px) { .cc-newsletter__form { flex-direction: column; } }

/* ==========================================================================
   16. STATES
   ========================================================================== */
.cc-skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--border) 37%, var(--surface) 63%); background-size: 400% 100%; animation: cc-shimmer 1.3s ease-in-out infinite; border-radius: var(--r-sm); color: transparent !important; }
@keyframes cc-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.cc-empty { text-align: center; padding: var(--s8) var(--s5); color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--r-xl); }
.cc-empty__title { font-family: var(--font-display); font-size: 20px; color: var(--text); margin: 0 0 var(--s2); }
.cc-notice { border-radius: var(--r-md); padding: var(--s4); font-size: 15px; border: 1px solid var(--border); background: var(--surface); margin-bottom: var(--s4); }
.cc-notice--ok   { border-left: 4px solid var(--bullish); }
.cc-notice--err  { border-left: 4px solid var(--bearish); }

/* ==========================================================================
   17. PAGINATION + BREADCRUMB
   ========================================================================== */
.cc-pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: var(--s7); }
.cc-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
  padding: 0 12px; border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--card); color: var(--link); text-decoration: none; font-weight: 600; font-size: 15px;
}
.cc-pagination .page-numbers:hover { background: var(--brand-soft); }
.cc-pagination .page-numbers.current { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.cc-crumbs { font-size: 13px; color: var(--muted); margin-bottom: var(--s4); }
.cc-crumbs a { color: var(--muted); text-decoration: none; }
.cc-crumbs a:hover { color: var(--link); text-decoration: underline; }
.cc-crumbs__sep { margin: 0 6px; opacity: .55; }

/* ==========================================================================
   18. MASTHEAD
   --------------------------------------------------------------------------
   ⚠️ No `overflow: hidden` anywhere on the masthead or its inner wrapper — it
   clips the submenu flyouts, and the bug only appears once a dropdown has
   items, long after the header looks finished.
   ========================================================================== */
.cc-masthead {
  position: sticky; top: 0; z-index: 100;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(8px);
}
.cc-masthead__inner { display: flex; align-items: center; gap: var(--s5); min-height: 66px; }
.cc-masthead__brand { flex: none; }
.cc-masthead__actions { display: flex; align-items: center; gap: var(--s3); margin-left: auto; flex: none; }
.cc-masthead__signin { font-size: 15px; font-weight: 600; color: var(--link); text-decoration: none; white-space: nowrap; }
.cc-masthead__signin:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.cc-logo { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; color: var(--text); }
.cc-logo:hover { text-decoration: none; color: var(--text); }
.cc-logo__mark { color: var(--brand); display: inline-flex; }
.cc-logo__text { font-family: var(--font-display); font-size: 23px; font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.cc-logo__text strong { font-weight: 800; color: var(--brand-deep); }

.cc-nav { min-width: 0; }
.cc-nav__list { display: flex; align-items: center; gap: var(--s5); list-style: none; margin: 0; padding: 0; }
.cc-nav__list > li { position: relative; }
.cc-nav__list a { display: inline-flex; align-items: center; gap: 5px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; padding: 8px 0; }
.cc-nav__list a:hover { color: var(--link); }
.cc-nav__list .current-menu-item > a,
.cc-nav__list .current-menu-parent > a { color: var(--link); }
.cc-nav__list .menu-item-has-children > a::after {
  content: ""; width: 6px; height: 6px; flex: none; margin-left: 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .55;
}
.cc-nav__list ul {
  position: absolute; top: 100%; left: -14px; min-width: 232px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: var(--s2); margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s;
}
.cc-nav__list li:hover > ul,
.cc-nav__list li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.cc-nav__list ul a { display: block; padding: 9px var(--s3); border-radius: var(--r-sm); font-weight: 500; white-space: normal; }
.cc-nav__list ul a:hover { background: var(--brand-soft); }

.cc-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: none;
  border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--card); color: var(--text); cursor: pointer;
}
.cc-iconbtn:hover { background: var(--surface); border-color: var(--border-strong); }
.cc-themetoggle__moon { display: none; }
:root[data-theme="dark"] .cc-themetoggle__sun { display: none; }
:root[data-theme="dark"] .cc-themetoggle__moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cc-themetoggle__sun { display: none; }
  :root:not([data-theme="light"]) .cc-themetoggle__moon { display: block; }
}

.cc-navtoggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 38px; flex: none; padding: 0 8px;
  background: transparent; border: 1px solid var(--border); border-radius: var(--r-md); cursor: pointer;
}
.cc-navtoggle span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.cc-navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cc-navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.cc-navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.cc-searchpanel { border-top: 1px solid var(--border); background: var(--surface); padding-block: var(--s4); }
.cc-searchform { display: flex; gap: var(--s3); max-width: 640px; margin-inline: auto; }

/* The nav collapses at 1080px, not 768px: the primary menu carries five
   translated multi-word labels and wraps into the actions well before the
   usual tablet breakpoint. Breakpoints follow the rendered header, not a
   nominal device width. */
@media (max-width: 1080px) {
  .cc-navtoggle { display: flex; }
  .cc-masthead__inner { flex-wrap: wrap; gap: var(--s3); }
  .cc-nav { order: 10; flex-basis: 100%; display: none; border-top: 1px solid var(--border); padding-block: var(--s3); }
  .cc-nav.is-open { display: block; }
  .cc-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .cc-nav__list > li { border-bottom: 1px solid var(--border); }
  .cc-nav__list > li:last-child { border-bottom: 0; }
  .cc-nav__list a { padding: 12px 0; }
  .cc-nav__list ul {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--border);
    border-radius: 0; margin-left: var(--s3); padding-left: var(--s3); min-width: 0;
  }
  .cc-masthead__actions { margin-left: auto; }
}
@media (max-width: 560px) {
  .cc-masthead__signin { display: none; }
  .cc-logo__text { font-size: 20px; }
}

.cc-main { display: block; min-height: 50vh; }

/* ==========================================================================
   19. FOOTER
   --------------------------------------------------------------------------
   The footer declares its own surface tokens rather than inheriting the page
   ones — an inherited light surface is how a sibling ended up with an inverted
   footer in dark mode.
   ========================================================================== */
.cc-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: var(--s9);
  padding-block: var(--s7) var(--s5);
}
.cc-footer__cols {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: var(--s6);
}
@media (max-width: 900px) { .cc-footer__cols { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .cc-footer__cols { grid-template-columns: minmax(0,1fr); gap: var(--s5); } }
.cc-footer__tagline { font-family: var(--font-display); font-size: 17px; color: var(--text); margin: var(--s3) 0 var(--s2); }
.cc-footer__blurb { font-size: 14px; color: var(--muted); margin: 0; max-width: 42ch; }
.cc-footer__heading { font-family: var(--font-body); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 0 0 var(--s3); }
.cc-footer__list { list-style: none; margin: 0; padding: 0; }
.cc-footer__list li + li { margin-top: 9px; }
.cc-footer__list a { color: var(--text); text-decoration: none; font-size: 15px; }
.cc-footer__list a:hover { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; }
.cc-footer__bottom {
  margin-top: var(--s7); padding-top: var(--s5);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap;
}
.cc-footer__copy { font-size: 14px; color: var(--muted); margin: 0; }
.cc-footer__risk { font-size: 13px; color: var(--muted); margin: 0; max-width: 62ch; }

/* ==========================================================================
   20. MISC COMPONENT BITS
   ========================================================================== */
.cc-card__kicker { margin: 0 0 var(--s3); }

/* Reading progress rail for guides (driven by site.js). */
.cc-readbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; background: transparent; pointer-events: none; }
.cc-readbar__fill { height: 100%; width: 0; background: var(--brand); transition: width .1s linear; }
.cc-footer__brandcol { min-width: 0; }
.cc-footer__col { min-width: 0; }

/* ==========================================================================
   21. HOMEPAGE — HERO
   ========================================================================== */
.cc-hero { padding-block: var(--s8) var(--s7); background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg) 100%); }
.cc-hero__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--s7); align-items: center; }
.cc-hero__title { font-size: clamp(36px, 6vw, 54px); line-height: 1.08; margin-bottom: var(--s4); }
.cc-hero__stand { font-size: 19px; color: var(--muted); max-width: 56ch; margin-bottom: var(--s5); }
.cc-hero__cta { display: flex; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s5); }
.cc-hero__trust { display: flex; gap: var(--s5); flex-wrap: wrap; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--muted); }
.cc-hero__trust li { display: flex; align-items: center; gap: 7px; }
.cc-hero__trust li::before {
  content: ""; width: 15px; height: 15px; flex: none; border-radius: 50%;
  background: var(--brand); opacity: .9;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7' stroke='black' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7' stroke='black' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}
.cc-hero__art { min-width: 0; }
.cc-hero__art svg { width: 100%; height: auto; }
@media (max-width: 900px) {
  .cc-hero__inner { grid-template-columns: minmax(0,1fr); gap: var(--s5); }
  .cc-hero__art { max-width: 320px; margin-inline: auto; order: -1; }
}

/* ==========================================================================
   22. HOMEPAGE — LEVEL / GLOSSARY / COMMUNITY BLOCKS
   ========================================================================== */
.cc-levelcard .cc-level { margin: 0 0 var(--s3); }

.cc-glossteaser { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s7); align-items: center; }
@media (max-width: 860px) { .cc-glossteaser { grid-template-columns: minmax(0,1fr); gap: var(--s5); } }
.cc-glossteaser__copy .cc-btn { margin-top: var(--s4); }
.cc-glossteaser__terms { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; margin: 0; padding: 0; }

.cc-community {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s7);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: var(--s7); box-shadow: var(--shadow-sm); align-items: center;
}
@media (max-width: 860px) { .cc-community { grid-template-columns: minmax(0,1fr); gap: var(--s5); padding: var(--s5); } }
.cc-community__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.cc-community__list li { padding-left: var(--s5); position: relative; font-size: 15px; color: var(--muted); }
.cc-community__list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.cc-community__list strong { display: block; color: var(--text); font-family: var(--font-display); font-size: 17px; margin-bottom: 2px; }

.cc-newsletter__consent { margin-top: var(--s3); }

/* ==========================================================================
   23. LONG-FORM SEO BLOCK
   ========================================================================== */
.cc-longform { border-top: 1px solid var(--border); }
.cc-longform__grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--s7); align-items: start; }
@media (max-width: 1000px) {
  .cc-longform__grid { grid-template-columns: minmax(0,1fr); }
  .cc-longform__toc { position: static; }
  .cc-toc--sticky { position: static; max-height: none; }
}
.cc-longform__body { max-width: 76ch; }
.cc-longform__body h2 { margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--border); }
.cc-longform__body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.cc-longform__cta { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s7); }

/* ==========================================================================
   24. FAQ
   ========================================================================== */
.cc-faq { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--card); }
.cc-faq__item { border-bottom: 1px solid var(--border); }
.cc-faq__item:last-child { border-bottom: 0; }
.cc-faq__q {
  cursor: pointer; list-style: none; padding: var(--s4) var(--s5);
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4);
}
.cc-faq__q::-webkit-details-marker { display: none; }
.cc-faq__q::after {
  content: ""; flex: none; width: 11px; height: 11px; margin-top: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .18s ease;
}
.cc-faq__item[open] .cc-faq__q::after { transform: rotate(-135deg); }
.cc-faq__q:hover { background: var(--surface); }
.cc-faq__a { padding: 0 var(--s5) var(--s4); font-size: 16px; color: var(--muted); }
.cc-faq__a > :last-child { margin-bottom: 0; }

/* ==========================================================================
   25. REVIEW CARD
   ========================================================================== */
.cc-reviewcard__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4); }
.cc-reviewcard__head .cc-card__title { margin-bottom: var(--s2); }
.cc-reviewcard__head .cc-rating { flex: none; }
.cc-reviewcard__bestfor { font-size: 14px; color: var(--muted); margin: 0 0 var(--s4); }
.cc-reviewcard__bestfor strong { color: var(--text); }
.cc-chip--disclosure { border-color: var(--cat-guides); color: var(--text); }
.cc-hero__copy { min-width: 0; }
.cc-reviewcard { min-width: 0; }

/* ==========================================================================
   26. SINGLE ARTICLE / GUIDE
   ========================================================================== */
.cc-single__head { margin-bottom: var(--s5); }
.cc-single__kickers { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; margin: 0 0 var(--s4); }
.cc-single__title { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.12; margin-bottom: var(--s4); }
.cc-single__stand { font-size: 20px; color: var(--muted); margin-bottom: var(--s5); }
.cc-single__byline { padding-top: var(--s4); border-top: 1px solid var(--border); }
.cc-single__media { margin: 0 0 var(--s6); }
.cc-single__media img { width: 100%; border-radius: var(--r-xl); }
.cc-single__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s7); align-items: start; }
@media (max-width: 1000px) { .cc-single__layout { grid-template-columns: minmax(0,1fr); } }
.cc-single__main { min-width: 0; max-width: 76ch; }
.cc-single__side { min-width: 0; display: grid; gap: var(--s4); }
.cc-side__pathname { font-family: var(--font-display); font-size: 17px; margin: 0 0 var(--s3); }
.cc-side__cta { margin: var(--s3) 0 0; }
.cc-side__glossary .cc-btn { align-self: flex-start; }

.cc-savebtn, .cc-markbtn, .cc-linkbtn {
  background: transparent; border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  padding: 5px 14px; font-size: 13px; font-weight: 650; color: var(--link); cursor: pointer;
}
.cc-savebtn:hover, .cc-markbtn:hover, .cc-linkbtn:hover { background: var(--brand-soft); }
.cc-savebtn[aria-pressed="true"], .cc-markbtn[aria-pressed="true"] {
  background: var(--brand-deep); border-color: var(--brand-deep); color: #fff;
}
.cc-savebtn:disabled, .cc-markbtn:disabled, .cc-linkbtn:disabled { opacity: .55; cursor: default; }
.cc-linkbtn { border: 0; padding: 4px 0; text-decoration: underline; }

.cc-sources { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--border); }
.cc-sources__title { font-family: var(--font-body); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cc-sources ul { padding-left: 1.2em; font-size: 15px; color: var(--muted); }
.cc-sources li + li { margin-top: 6px; }

.cc-nextprev { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s4); margin-top: var(--s7); }
@media (max-width: 640px) { .cc-nextprev { grid-template-columns: minmax(0,1fr); } }
.cc-nextprev__link {
  display: block; padding: var(--s4) var(--s5); border: 1px solid var(--border);
  border-radius: var(--r-lg); background: var(--card); text-decoration: none;
}
.cc-nextprev__link:hover { border-color: var(--brand); background: var(--brand-soft); }
.cc-nextprev__link--next { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .cc-nextprev__link--next { grid-column: 1; text-align: left; } }
.cc-nextprev__label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.cc-nextprev__title { display: block; font-family: var(--font-display); font-size: 17px; color: var(--text); }

.cc-related { margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid var(--border); }
.cc-related__title { font-size: 22px; margin-bottom: var(--s5); }

/* ==========================================================================
   27. PAGE / CATEGORY / SECTION HEROES
   ========================================================================== */
.cc-page__head { margin-bottom: var(--s6); }
.cc-page__title { font-size: clamp(30px, 4.4vw, 42px); margin-bottom: var(--s3); }
.cc-page__updated { font-size: 14px; color: var(--muted); margin: 0; }

.cc-cathero, .cc-learnhero, .cc-glosshero, .cc-revhero {
  padding-block: var(--s7) var(--s6);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.cc-cathero__title, .cc-learnhero__title, .cc-glosshero__title, .cc-revhero__title {
  font-size: clamp(32px, 5vw, 46px); margin-bottom: var(--s3);
}
.cc-cathero__desc { max-width: 68ch; color: var(--muted); font-size: 17px; }
.cc-learnhero__stand { max-width: 70ch; color: var(--muted); font-size: 18px; }
.cc-cathero__kids { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; margin: var(--s5) 0 0; padding: 0; }
.cc-glosshero__count, .cc-revhero__links { font-size: 14px; color: var(--muted); margin: var(--s3) 0 0; }
/* Category tints as a top accent rule — hue distinction without using the
   tint as text, which none of them pass AA for at body size. */
.cc-cathero--crypto    { box-shadow: inset 0 4px 0 var(--cat-crypto); }
.cc-cathero--analysis  { box-shadow: inset 0 4px 0 var(--cat-analysis); }
.cc-cathero--guides    { box-shadow: inset 0 4px 0 var(--cat-guides); }
.cc-cathero--exchanges { box-shadow: inset 0 4px 0 var(--cat-exchanges); }
.cc-cathero--tech      { box-shadow: inset 0 4px 0 var(--cat-tech); }
.cc-cathero--default   { box-shadow: inset 0 4px 0 var(--brand); }

/* ==========================================================================
   28. LEARN HUB
   ========================================================================== */
.cc-learn__intro { margin-bottom: var(--s7); }
.cc-learn__levels { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s6); margin-bottom: var(--s8); }
@media (max-width: 980px) { .cc-learn__levels { grid-template-columns: minmax(0,1fr); } }
.cc-learnlevel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--s5); min-width: 0;
}
.cc-learnlevel__head { margin-bottom: var(--s4); }
.cc-learnlevel__title { font-size: 22px; margin: var(--s2) 0 var(--s2); }
.cc-learnlevel__empty { color: var(--muted); font-size: 15px; margin: 0; }
.cc-learn__paths { margin-bottom: var(--s8); }
.cc-learn__glossary { margin-bottom: var(--s6); }

/* ==========================================================================
   29. GLOSSARY
   ========================================================================== */
.cc-glossgroup { margin-bottom: var(--s7); scroll-margin-top: 90px; }
.cc-glossgroup__letter {
  font-family: var(--font-mono); font-size: 22px; color: var(--brand-deep);
  border-bottom: 2px solid var(--border); padding-bottom: var(--s2); margin-bottom: var(--s5);
}
.cc-term__title { font-size: clamp(28px, 4.2vw, 40px); }
.cc-term__short { margin-bottom: var(--s6); }
.cc-term__related, .cc-term__uses { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--border); }
.cc-term__back { margin-top: var(--s7); }
.cc-linklist { list-style: none; margin: 0; padding: 0; }
.cc-linklist li + li { margin-top: var(--s2); }

/* ==========================================================================
   30. REVIEW SINGLE
   ========================================================================== */
.cc-review__head { margin-bottom: var(--s5); }
.cc-review__scorerow { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: var(--s4); }
.cc-review__fit { background: var(--surface); border-radius: var(--r-lg); padding: var(--s4) var(--s5); margin: var(--s5) 0; font-size: 15px; }
.cc-review__fit p { margin: 0; }
.cc-review__fit p + p { margin-top: var(--s2); }

/* ==========================================================================
   31. AUTH + ACCOUNT
   ========================================================================== */
.cc-authbox {
  max-width: 460px; margin-inline: auto;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--s7); box-shadow: var(--shadow-sm);
}
@media (max-width: 520px) { .cc-authbox { padding: var(--s5); } }
.cc-authbox__title { font-size: 28px; margin-bottom: var(--s3); }
.cc-authbox__sub { font-size: 15px; color: var(--muted); margin-bottom: var(--s5); }
.cc-authform { margin-bottom: var(--s4); }
.cc-authform .cc-btn { margin-top: var(--s4); }
.cc-authbox__alt { font-size: 14px; color: var(--muted); margin: var(--s2) 0 0; text-align: center; }
.cc-field__opt { font-weight: 400; color: var(--muted); }

.cc-accounthead { margin-bottom: var(--s5); }
.cc-accountnav { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: var(--s6); padding-bottom: var(--s3); }
.cc-accountnav__link {
  padding: 7px 15px; border-radius: var(--r-pill); font-size: 15px; font-weight: 600;
  color: var(--text); text-decoration: none;
}
.cc-accountnav__link:hover { background: var(--surface); }
.cc-accountnav__link.is-current { background: var(--brand-deep); color: #fff; }
.cc-accountnav__link--out { color: var(--muted); font-weight: 500; }

.cc-accountcards { margin-bottom: var(--s7); }
.cc-stat { font-family: var(--font-mono); font-size: 38px; font-weight: 700; color: var(--brand-deep); line-height: 1; margin: var(--s2) 0 var(--s3); }
.cc-accountprofile { margin-top: var(--s7); }
.cc-account__note { font-size: 14px; color: var(--muted); margin-top: var(--s4); }
.cc-progressoverall { margin-bottom: var(--s6); }
.cc-progresslevel { margin-bottom: var(--s7); }
.cc-progresslevel .cc-path__item { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.cc-progresslevel .cc-path__link { flex: 1 1 auto; min-width: 0; }

.cc-watchadd { margin-bottom: var(--s5); max-width: 520px; }
.cc-watchadd__row { display: flex; gap: var(--s3); }
@media (max-width: 520px) { .cc-watchadd__row { flex-direction: column; } }
.cc-watchtable th[scope="row"] { font-weight: 650; color: var(--text); }

/* ==========================================================================
   32. AUTHOR + 404
   ========================================================================== */
.cc-authorhead { display: flex; gap: var(--s6); align-items: flex-start; margin-bottom: var(--s7); }
@media (max-width: 640px) { .cc-authorhead { flex-direction: column; gap: var(--s4); } }
.cc-authorhead__avatar { border-radius: 50%; flex: none; }
.cc-authorhead__meta { min-width: 0; max-width: 68ch; }
.cc-authorhead__name { font-size: clamp(28px, 4vw, 38px); margin-bottom: var(--s2); }
.cc-authorhead__bio { color: var(--muted); font-size: 16px; margin-top: var(--s3); }
.cc-authorhead__chips { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; margin: var(--s4) 0 0; padding: 0; }
.cc-authorhead__postsheading { margin-bottom: var(--s5); }

.cc-404 { text-align: center; }
.cc-404 .cc-searchform { margin: var(--s6) auto; max-width: 480px; }
.cc-404__routes { margin-top: var(--s7); text-align: left; }

/* Root hooks applied via post_class() — declared so the audit stays clean and
   each template has a real styling handle. */
.cc-single { display: block; }
.cc-page { display: block; }
.cc-term { display: block; }
.cc-review { display: block; }
.cc-revgrid { margin-top: var(--s6); }
.cc-nextprev__link--prev { grid-column: 1; }
