/* =====================================================================
   EQSIS Design Tokens — src/tokens.css
   The single source of visual truth. Every page derives from these.
   No ad-hoc hex values in page CSS — if a value isn't here, it doesn't ship.

   Identity anchor (CLAUDE.md §5): wordmark EQ #00B050 (green) + SIS #0070C0 (blue).
   System logic:
     BLUE  = trust & structure  → brand, headings accent, links, nav
     GREEN = action & growth    → CTAs, success, positive market data
     Neutrals are blue-tinted (never warm/cream) so the whole site feels
     like one material. Red is reserved for errors + negative market data.
   ===================================================================== */

:root {

  /* ---- Brand core (logo values — never repurpose for text) ---- */
  --eq-green:        #00B050;  /* logo EQ — large graphics/accents only (2.9:1 on white — NOT for text) */
  --eq-blue:         #0070C0;  /* logo SIS — 5.2:1 on white — safe for text/links */

  /* ---- Blue ramp (trust / structure) ---- */
  --blue-900:        #0A2A43;  /* ink — headings, hero backgrounds. 14.9:1 on white */
  --blue-800:        #0E3D61;  /* deep panels, footer background */
  --blue-700:        #08507E;  /* hover state of primary blue */
  --blue-600:        #0070C0;  /* = --eq-blue. links, primary-info buttons */
  --blue-100:        #D7E9F8;  /* selected/active tints */
  --blue-050:        #F2F7FC;  /* alternating section background */

  /* ---- Green ramp (action / growth) ---- */
  --green-700:       #00713A;  /* CTA hover / green text on white (6.2:1) */
  --green-600:       #00874A;  /* PRIMARY CTA background, white text (4.8:1) */
  --green-100:       #D9F2E4;  /* success tints, "positive" table cells */

  /* ---- Neutrals (blue-tinted greys) ---- */
  --ink:             #16232E;  /* body text. 15.5:1 on white */
  --ink-soft:        #4A5A68;  /* secondary text, captions. 7.2:1 */
  --line:            #D6DEE5;  /* borders, dividers */
  --surface:         #FFFFFF;
  --surface-alt:     var(--blue-050);

  /* ---- Functional ---- */
  --danger:          #C22F2F;  /* errors, negative market data. 5.9:1 */
  --focus-ring:      #B45309;  /* amber focus outline — visible on blue, green & white */

  /* ---- Typography ----
     Display: Archivo (grotesque — kin to the Liberation Sans wordmark, but with character)
     Body:    IBM Plex Sans (enterprise-grade, warm enough for education, excellent numerals)
     Both self-hosted at build (assets/fonts/) — no third-party font CDN at launch. */
  --font-display:    "Archivo", "Liberation Sans", Arial, sans-serif;
  --font-body:       "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;

  /* Type scale — 1.25 ratio, mobile-first. Sized for an audience that
     includes older / less technical readers: base is 17px on mobile. */
  --text-base:       1.0625rem;  /* 17px */
  --text-sm:         0.875rem;
  --text-lg:         1.1875rem;
  --text-xl:         1.375rem;
  --text-2xl:        1.75rem;
  --text-3xl:        2.125rem;
  --text-4xl:        2.625rem;   /* hero, desktop only */
  --leading-body:    1.65;
  --leading-tight:   1.2;
  --weight-body:     400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-display:  700;

  /* ---- Spacing scale (4px base) ---- */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 3rem;     --sp-8: 4rem;
  --sp-9: 6rem;

  /* ---- Shape & elevation ---- */
  --radius-sm:       0.5rem;   /* buttons, inputs */
  --radius-md:       0.75rem;  /* cards */
  --radius-lg:       1.25rem;  /* feature panels */
  --shadow-card:     0 1px 3px rgba(10, 42, 67, 0.10), 0 4px 16px rgba(10, 42, 67, 0.08);
  --shadow-raised:   0 8px 30px rgba(10, 42, 67, 0.16);

  /* ---- Layout ---- */
  --container-max:   72rem;      /* 1152px */
  --container-text:  48rem;      /* 768px — long-form reading measure (widened from 44rem; less pinched) */
  --header-h:        4rem;

  /* ---- Motion (respects prefers-reduced-motion in eqsis.css) ---- */
  --ease:            cubic-bezier(0.2, 0.6, 0.2, 1);
  --dur-fast:        150ms;
  --dur-base:        250ms;

  color-scheme: light;
}

/* =====================================================================
   ACCESSIBILITY THEMES — set by the header accessibility widget as data-*
   attributes on <html>. The first-paint script in base.html stamps these
   BEFORE stylesheets load (no flash) and resolves "follow system" to an
   explicit data-theme via matchMedia, so the CSS below never needs media
   queries for theming. Absent attribute = brand default / follow system.
   ===================================================================== */

/* ---- DARK ---- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --eq-green:   #34CE7B;
  --eq-blue:    #5FB2EC;
  --blue-900:   #EEF4F9;   /* was dark ink; in dark mode this is a TEXT role → light. Background uses are overridden per-component in eqsis.css */
  --blue-800:   #12212E;
  --blue-700:   #8FC7F2;
  --blue-600:   #5FB2EC;
  --blue-100:   #22384C;
  --blue-050:   #16283A;
  --green-700:  #4FD98F;
  --green-600:  #00874A;
  --green-100:  #123A28;
  --ink:        #E6EDF3;
  --ink-soft:   #AABDCB;
  --line:       #33485D;
  --surface:    #0E1B26;
  --surface-alt:#16283A;
  --danger:     #FF8080;
  --focus-ring: #F7B23B;
}

/* ---- HIGH CONTRAST (light) ---- */
:root[data-contrast="high"] {
  --ink:       #0A1620;
  --ink-soft:  #243642;
  --blue-900:  #06131C;
  --blue-600:  #005A9E;
  --blue-700:  #003E6E;
  --green-700: #005E30;
  --green-600: #006B3C;
  --eq-green:  #009544;
  --danger:    #9A1414;
  --line:      #5E6E7B;
  --focus-ring:#7A3D00;
}
/* ---- HIGH CONTRAST (dark) ---- */
:root[data-theme="dark"][data-contrast="high"] {
  --ink:      #FFFFFF;
  --ink-soft: #D8E6F2;
  --line:     #7E97AB;
  --blue-600: #8FC7F2;
  --blue-700: #B3D8F7;
  --green-700:#6BE3A0;
  --danger:   #FFA0A0;
}

/* ---- READABLE FONT (dyslexia-friendly; uses widely-installed legible faces,
        no external asset — swap in self-hosted Atkinson Hyperlegible later) ---- */
:root[data-font="readable"] {
  --font-display: Verdana, Tahoma, "Segoe UI", sans-serif;
  --font-body:    Verdana, Tahoma, "Segoe UI", sans-serif;
  --leading-body: 1.8;
  letter-spacing: 0.02em;
  word-spacing: 0.06em;
}
/* =====================================================================
   EQSIS site styles — assets/css/eqsis.css
   Loads AFTER Bootstrap 5. Everything derives from src/tokens.css values
   Mobile-first throughout: base rules are phone rules; min-width widens.
   ===================================================================== */

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--surface);
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: var(--leading-tight);
  color: var(--blue-900);
  text-wrap: balance;
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); margin-bottom: var(--sp-4); }
h3 { font-size: var(--text-xl); }
@media (min-width: 992px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
}
a { color: var(--blue-600); text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
img { max-width: 100%; height: auto; }
/* padding must be >= half the largest row gutter used (g-5 = 1.5rem)
   or Bootstrap's negative row margins cause horizontal scroll on phones */
.container-eq { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--sp-5); }
.container-text { max-width: var(--container-text); margin-inline: auto; padding-inline: var(--sp-5); }
/* Long-form reading rhythm (articles + legal): roomier line-height + spacing so
   the text reads clearly instead of feeling congested. */
.container-text { line-height: 1.75; }
.container-text p, .container-text li { font-size: 1.0625rem; }
.container-text p { margin-bottom: 1.15em; }
.container-text h2 { margin-top: 2em; margin-bottom: 0.55em; line-height: 1.25; }
.container-text h3 { margin-top: 1.6em; margin-bottom: 0.45em; line-height: 1.3; }
.container-text ul, .container-text ol { margin-bottom: 1.15em; padding-left: 1.4em; }
.container-text li { margin-bottom: 0.4em; }
.container-text img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 1.3em 0; }
.container-text blockquote { border-left: 3px solid var(--eq-green); margin: 1.4em 0; padding: 0.2em 0 0.2em 1.1em; color: var(--ink-soft); }

/* Blog article — its own presentation: a proper header + a wider, roomy reading body
   so it reads as a designed article, not a pinched narrow column. */
.article-wrap { max-width: 52rem; margin-inline: auto; padding-inline: var(--sp-5); }
.article-wrap .eyebrow { color: var(--blue-600); }
.article-h1 { font-size: var(--text-3xl); line-height: 1.15; letter-spacing: -0.01em; margin: var(--sp-2) 0 var(--sp-3); }
.article-rule { border: 0; border-top: 1px solid var(--line); margin: var(--sp-5) 0; }
.article-body { line-height: 1.8; }
.article-body p, .article-body li { font-size: 1.09rem; }
.article-body p { margin-bottom: 1.2em; }
.article-body h2 { font-size: var(--text-2xl); margin-top: 2em; margin-bottom: 0.5em; line-height: 1.25; }
.article-body h3 { font-size: var(--text-xl); margin-top: 1.6em; margin-bottom: 0.45em; }
.article-body ul, .article-body ol { margin-bottom: 1.2em; padding-left: 1.4em; }
.article-body li { margin-bottom: 0.4em; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 1.4em 0; }
.article-body blockquote { border-left: 3px solid var(--eq-green); margin: 1.4em 0; padding: 0.2em 0 0.2em 1.1em; color: var(--ink-soft); }
@media (min-width: 768px) { .article-h1 { font-size: var(--text-4xl); } }
.section { padding-block: var(--sp-7); }
.section-alt { background: var(--surface-alt); }
@media (min-width: 992px) { .section { padding-block: var(--sp-8); } }

/* ---------- Accessibility scaffold ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1080;
  background: var(--blue-900); color: #fff; padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--radius-sm) 0; font-weight: var(--weight-semibold);
}
.skip-link:focus { left: 0; color: #fff; }
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Header / navigation ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1030;
}
.site-header .navbar { min-height: var(--header-h); }
.navbar-toggler { min-height: 48px; min-width: 48px; } /* WCAG tap target */
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.5px; text-decoration: none; }
.brand-word .eq  { color: var(--eq-green); }
.brand-word .sis { color: var(--eq-blue); }
/* Logo image — replaces the CSS-text wordmark. Theme-aware: light art on light
   backgrounds; the lighter dark-mode art on the dark header (dark theme) + dark footer. */
.brand-logo { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo-img { height: 32px; width: auto; display: block; }
.site-header .brand-logo-img.is-dark { display: none; }
[data-theme="dark"] .site-header .brand-logo-img.is-light { display: none; }
[data-theme="dark"] .site-header .brand-logo-img.is-dark { display: block; }
.brand-logo--footer .brand-logo-img { height: 38px; }
.brand-tag { font-size: 0.6875rem; color: var(--ink-soft); letter-spacing: 0.04em; display: block; line-height: 1; }
.nav-eq .nav-link {
  color: var(--blue-900); font-weight: var(--weight-medium);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm);
}
.nav-eq .nav-link:hover { background: var(--blue-050); color: var(--blue-700); }
.nav-eq .nav-link.active {
  color: var(--blue-600);
  box-shadow: inset 0 -3px 0 var(--eq-green);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
/* ample, even spacing between nav items on desktop; caret not crowding the next item */
@media (min-width: 992px){
  .nav-eq { column-gap: var(--sp-3); }
  .nav-eq .nav-link { padding-inline: var(--sp-3); }
}
.nav-eq .dropdown-toggle::after { margin-left: .5em; vertical-align: .12em; }
.nav-cta-mobile { white-space: nowrap; }

.nav-eq .dropdown-menu {
  border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: var(--sp-2); margin-top: var(--sp-2);
}
.nav-eq .dropdown-item {
  border-radius: var(--radius-sm); padding: var(--sp-2) var(--sp-3);
  color: var(--blue-900); font-weight: var(--weight-medium); white-space: normal;
}
.nav-eq .dropdown-item:hover, .nav-eq .dropdown-item:focus { background: var(--blue-050); color: var(--blue-700); }
.nav-eq .dropdown-header { color: var(--ink-soft); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .04em; }
@media (min-width: 992px){ .nav-eq .dropdown-menu { min-width: 16rem; } }

/* Training menu — two "Learn" tracks, larger type for a natural, unhurried flow */
@media (min-width: 992px){ .nav-eq .training-menu { min-width: 20rem; } }
.nav-eq .training-item { display: flex; flex-direction: column; gap: .1rem; padding: var(--sp-3); }
.nav-eq .training-item .ti-title { font-size: var(--text-lg); font-weight: var(--weight-semibold); color: var(--blue-900); line-height: 1.2; }
.nav-eq .training-item .ti-sub { font-size: var(--text-sm); font-weight: 400; color: var(--ink-soft); }
.nav-eq .training-item:hover .ti-title, .nav-eq .training-item:focus .ti-title { color: var(--blue-700); }
/* two-door audience cards on the homepage */
.door {
  display: block; height: 100%; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--sp-6); background: var(--surface); box-shadow: var(--shadow-card);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.door:hover, .door:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-raised); border-color: var(--eq-green); }
.door .door-eyebrow { font-size: var(--text-sm); font-weight: var(--weight-semibold); letter-spacing: .06em; text-transform: uppercase; }
.door h2 { margin: var(--sp-2) 0 var(--sp-3); }
.door .door-go { font-weight: var(--weight-semibold); color: var(--blue-600); }
.door-learn .door-eyebrow { color: var(--green-700); }
.door-tips .door-eyebrow { color: var(--blue-600); }

/* ---------- Buttons ---------- */
.btn-cta {
  background: var(--green-600); border: 2px solid var(--green-600); color: #fff;
  font-weight: var(--weight-semibold); font-size: var(--text-base);
  padding: 0.75rem 1.5rem; border-radius: var(--radius-sm);
  min-height: 48px; /* touch target */
  transition: background var(--dur-fast) var(--ease);
}
.btn-cta:hover, .btn-cta:focus { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.btn-outline {
  background: transparent; border: 2px solid var(--blue-600); color: var(--blue-600);
  font-weight: var(--weight-semibold); padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm); min-height: 48px;
}
.btn-outline:hover, .btn-outline:focus { background: var(--blue-600); color: #fff; }
.btn-ghost-light { border: 2px solid rgba(255,255,255,.7); color: #fff; font-weight: var(--weight-semibold); padding: .75rem 1.5rem; border-radius: var(--radius-sm); min-height:48px; }
.btn-ghost-light:hover, .btn-ghost-light:focus { background: rgba(255,255,255,.12); color:#fff; border-color:#fff; }

/* ======================================================================
   HOMEPAGE — premium, spacious, restrained. Light hero, composed trust.
   ====================================================================== */
.home-hero { background: var(--surface); padding-block: var(--sp-8) var(--sp-7); }
@media (min-width: 992px){ .home-hero { padding-block: 6.5rem 5rem; } }
.home-hero .eyebrow { color: var(--blue-600); }
/* arrival hero — left-aligned, spare; the title carries the weight, one line justifies it.
   No card, no right-column widget; the trust band below anchors the width. */
.home-hero .hero-inner { max-width: 42rem; }
.home-hero h1 {
  font-size: 2.6rem; line-height: 1.05; letter-spacing: -0.025em; color: var(--blue-900);
  margin: var(--sp-3) 0 var(--sp-4); text-wrap: balance;
}
@media (min-width: 992px){ .home-hero h1 { font-size: 4rem; } }
.home-hero .h1-dot { color: var(--eq-green); }
.home-hero .lead { font-size: var(--text-xl); line-height: 1.5; color: var(--ink-soft); max-width: 34rem; text-wrap: balance; }
.home-hero .hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5); margin-top: var(--sp-6); }

/* hero right — an editorial mindset statement (NOT a card): green rule, brand philosophy */
.hero-statement { margin: 0; padding-left: var(--sp-5); border-left: 3px solid var(--eq-green); }
.hero-statement .hs-head {
  font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.2;
  color: var(--blue-900); font-weight: 600; margin: 0 0 var(--sp-3); text-wrap: balance;
}
.hero-statement .hs-body { font-size: var(--text-lg); line-height: 1.55; color: var(--ink-soft); margin: 0 0 var(--sp-3); text-wrap: pretty; }
.hero-statement .hs-tag { font-size: var(--text-lg); font-weight: var(--weight-semibold); color: var(--blue-900); margin: 0; }
@media (max-width: 991px){ .hero-statement { margin-top: var(--sp-2); } }

/* success check on the thank-you / conversion page */
.ty-check {
  width: 4rem; height: 4rem; border-radius: 50%; margin: 0 auto var(--sp-4);
  background: var(--eq-green); color: #fff; font-size: 2rem; line-height: 1;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 176, 80, .45);
}
/* Thank-you contact card: call headline + WhatsApp button (classes had no CSS → rendered raw) */
.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-4) var(--sp-6); max-width: 46rem; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: var(--sp-5) var(--sp-6);
}
.contact-copy { flex: 1 1 15rem; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }
.contact-phone { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1.12; }
.contact-phone .cp-label { font-size: var(--text-sm); color: var(--ink-soft); font-weight: var(--weight-medium); }
.contact-phone .cp-num { font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--text-2xl); color: var(--blue-900); }
.contact-phone:hover .cp-num, .contact-phone:focus-visible .cp-num { text-decoration: underline; }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: .5rem; background: #25D366; color: #fff;
  text-decoration: none; font-weight: var(--weight-semibold); font-size: var(--text-base);
  padding: .7rem 1.2rem; border-radius: var(--radius-sm); min-height: 48px;
}
.btn-whatsapp:hover, .btn-whatsapp:focus-visible { background: #1FB855; color: #fff; }
@media (max-width: 575.98px){
  .contact-card { flex-direction: column; align-items: flex-start; }
  .contact-actions { width: 100%; justify-content: space-between; }
}
.btn-link-arrow { color: var(--blue-700); font-weight: var(--weight-semibold); text-decoration: none; }
.btn-link-arrow:hover, .btn-link-arrow:focus { color: var(--blue-900); text-decoration: underline; }
.btn-lg { padding: 0.9rem 1.9rem; font-size: var(--text-lg); }

/* composed credibility panel (right of hero) */
.cred-panel {
  background: var(--blue-050); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--sp-6);
}
.cred-panel .cred-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.cred-panel .cred-row:last-child { border-bottom: 0; padding-bottom: 0; }
.cred-panel .cred-row:first-child { padding-top: 0; }
.cred-panel .cred-num { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); color: var(--blue-900); white-space: nowrap; }
.cred-panel .cred-label { color: var(--ink-soft); font-size: var(--text-sm); text-align: right; }

/* logo credibility strip (legacy) */
.logo-strip { border-block: 1px solid var(--line); padding-block: var(--sp-5); }
.logo-strip .logos { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-6) var(--sp-7); }
.logo-strip .logos span { color: var(--ink-soft); font-size: var(--text-sm); display: inline-flex; align-items: center; gap: var(--sp-2); }
.logo-strip img { height: 30px; width: auto; opacity: .9; }

/* trust band — 3 credibility factors, evenly aligned, with key numbers below */
.trust-band { border-block: 1px solid var(--line); padding-block: var(--sp-6); background: var(--surface); }
.trust-creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); align-items: center; }
.trust-cred { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); text-align: left; }
.trust-cred img { height: 34px; width: auto; flex: none; }
.trust-cred span { color: var(--ink); font-size: var(--text-sm); font-weight: var(--weight-medium); line-height: 1.3; }
.trust-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3) var(--sp-6); margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.trust-stat { color: var(--ink-soft); font-size: var(--text-sm); }
.trust-stat b { color: var(--blue-900); font-family: var(--font-display); font-weight: 700; }
@media (max-width: 767px){
  .trust-creds { grid-template-columns: 1fr; gap: var(--sp-4); }
  .trust-cred { justify-content: center; }
  .trust-stats { justify-content: center; text-align: center; }
}

/* course cards — two flagship courses (MST / MSI), each a single complete program */
.course-card {
  display: flex; flex-direction: column; height: 100%; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-7);
  background: var(--surface); transition: box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.course-card:hover, .course-card:focus-visible { box-shadow: var(--shadow-card); border-color: var(--blue-600); }
.course-card .course-kicker { font-size: var(--text-sm); font-weight: var(--weight-semibold); letter-spacing: .06em; text-transform: uppercase; color: var(--blue-600); }
.course-card h3 { font-size: var(--text-2xl); margin: var(--sp-2) 0 var(--sp-1); color: var(--blue-900); }
.course-card .course-tag { display: block; font-size: var(--text-sm); color: var(--ink-soft); margin-bottom: var(--sp-4); }
.course-card .course-covers { list-style: none; padding: 0; margin: 0 0 var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.course-card .course-covers li { font-size: var(--text-sm); color: var(--ink); background: var(--blue-050); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; }
.course-card .course-go { margin-top: auto; font-weight: var(--weight-semibold); color: var(--blue-600); }
@media (max-width: 575px){
  .course-card { padding: var(--sp-5); }
  .course-card h3 { font-size: var(--text-xl); }
  .course-card .course-covers { gap: .4rem; margin-bottom: var(--sp-5); }
  .course-card .course-covers li { padding: .3rem .7rem; }
}

/* two paths — refined columns, restrained */
.path-card {
  display: flex; flex-direction: column; height: 100%; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-6);
  background: var(--surface); transition: box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.path-card:hover, .path-card:focus-visible { box-shadow: var(--shadow-card); border-color: var(--blue-600); }
.path-card .path-kicker { font-size: var(--text-sm); font-weight: var(--weight-semibold); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.path-card h3 { font-size: var(--text-xl); margin: var(--sp-2) 0 var(--sp-3); color: var(--blue-900); }
.path-card .path-go { margin-top: auto; padding-top: var(--sp-4); font-weight: var(--weight-semibold); color: var(--blue-600); }

/* generous section rhythm on the homepage */
.section-lg { padding-block: var(--sp-8); }
@media (min-width: 992px){ .section-lg { padding-block: 6rem; } }

/* deep CTA band (used once, low on the page) */
.cta-band { background: var(--blue-900); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C7D9E8; }

/* mini card used for courses/tools/insights on home */
.mini-card { display: block; height: 100%; text-decoration: none; padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); transition: box-shadow var(--dur-fast) var(--ease); }
.mini-card:hover, .mini-card:focus-visible { box-shadow: var(--shadow-card); }
.mini-card h3 { font-size: var(--text-base); color: var(--blue-900); margin-bottom: var(--sp-2); }
.mini-card p { color: var(--ink-soft); margin: 0; font-size: var(--text-sm); }
.mini-card .mini-more { color: var(--blue-600); font-weight: var(--weight-medium); font-size: var(--text-sm); }

/* ---------- Hero (deep gradient — used on inner pages, not home) ---------- */
.hero {
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 55%, #114E31 130%);
  color: #fff; padding-block: var(--sp-7) var(--sp-8);
  position: relative; overflow: hidden;
}
.hero h1 { color: #fff; }
.hero .lead-eq { font-size: var(--text-lg); color: #D8E6F2; max-width: 38rem; }
.hero .hero-rule { width: 72px; height: 4px; background: var(--eq-green); border: 0; opacity: 1; margin: var(--sp-4) 0; }
.hero-stats { display: flex; flex-wrap: wrap; gap: var(--sp-5); margin-top: var(--sp-6); }
.hero-stat b { display: block; font-family: var(--font-display); font-size: var(--text-2xl); color: #fff; }
.hero-stat span { color: #A9C4DA; font-size: var(--text-sm); }

/* ---------- Cards ---------- */
.card-eq {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  padding: var(--sp-5); height: 100%;
}
.card-eq h3 { font-size: var(--text-lg); margin-bottom: var(--sp-2); }
.card-eq .icon-dot {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-050); color: var(--blue-600); margin-bottom: var(--sp-3);
  font-size: 1.25rem;
}
.card-course { border-top: 4px solid var(--eq-green); }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--blue-050); border-block: 1px solid var(--line); padding-block: var(--sp-4); }
/* desktop: one evenly-spread horizontal row (fills the width, no blank side) */
.trust-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-around; gap: var(--sp-3) var(--sp-5); }
.trust-strip .item { display: flex; align-items: center; gap: var(--sp-2); color: var(--blue-900); font-weight: var(--weight-medium); font-size: var(--text-sm); }
.trust-strip .item img { flex: none; }
/* mobile: a clean left-aligned stacked list (deliberately different from desktop) */
@media (max-width: 767.98px) {
  .trust-list { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .trust-strip .item { justify-content: flex-start; }
}

/* ---------- Steps / process ---------- */
.step { display: flex; gap: var(--sp-4); }
.step-num {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-900); color: #fff; font-family: var(--font-display);
  font-weight: 700; display: grid; place-items: center;
}

/* ---------- Tables ---------- */
.table-eq { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.table-eq table { margin: 0; }
.table-eq thead { background: var(--blue-900); color: #fff; }
.table-eq th { font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.table-eq tbody tr:nth-child(even) { background: var(--blue-050); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Compliance / legal data tables (SEBI disclosures): let the long headers WRAP and keep the
   cells compact so every column stays visible, instead of nowrap headers forcing the 8-column
   table wider than the reading column (which hid columns off-screen). */
.legal-body .table-eq th { white-space: normal; }
.legal-body .table-eq th,
.legal-body .table-eq td { font-size: var(--text-sm); padding: .5rem .55rem; vertical-align: top; line-height: 1.35; }
/* Legal pages (T&C, Privacy): 'On this page' jump nav + jump-target offset under the header */
.legal-toc { border: 1px solid var(--line); background: var(--blue-050); border-radius: var(--radius-md); padding: var(--sp-4) var(--sp-5); margin: 0 0 var(--sp-6); }
.legal-toc-h { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin: 0 0 var(--sp-3); }
.legal-toc-list { margin: 0; padding-left: 1.25em; display: grid; gap: .4rem; }
.legal-toc-list a { color: var(--blue-700); text-decoration: none; }
.legal-toc-list a:hover, .legal-toc-list a:focus-visible { text-decoration: underline; }
.legal-body h2 { scroll-margin-top: 5.5rem; }

/* ---------- Data tools (screener / option-chain / ATM) ----------
   Reproduces the old wpDataTables layout: labelled filter box, Show-entries +
   Search toolbar, sortable table, expandable history rows, classic pagination. */
.wdt-tool { margin: var(--sp-5) 0 var(--sp-2); }
.wdt-updated { margin: var(--sp-4) 0 0; }

/* filter box */
.wdt-filterbox {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: var(--sp-3) var(--sp-4);
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--blue-050); padding: var(--sp-4); margin-bottom: var(--sp-4);
}
.wdt-filter { min-width: 0; }
.wdt-flabel { display: block; font-weight: var(--weight-semibold); color: var(--blue-900);
  font-size: var(--text-sm); margin-bottom: var(--sp-2); }
.wdt-input, .wdt-select {
  width: 100%; padding: .4rem .6rem; font: inherit; font-size: var(--text-sm);
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.wdt-input:focus-visible, .wdt-select:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.wdt-checks { display: flex; flex-direction: column; gap: .3rem; }
.wdt-check { display: flex; align-items: center; gap: .4rem; font-size: var(--text-sm); }
.wdt-check input { width: 1rem; height: 1rem; accent-color: var(--blue-600); flex: none; }
.wdt-check label { margin: 0; cursor: pointer; }

/* toolbar: Show entries + Search */
.wdt-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.wdt-length label, .wdt-search label { font-size: var(--text-sm); color: var(--ink-soft); margin: 0; }
.wdt-length select, .wdt-search input {
  font: inherit; font-size: var(--text-sm); padding: .3rem .5rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.wdt-search input:focus-visible, .wdt-length select:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }

/* table — direct-child selectors so these NEVER leak into the nested expander tables */
table.wpDataTable { width: 100%; margin: 0; border-collapse: collapse; }
table.wpDataTable > thead > tr > th { background: var(--blue-900); color: #fff; text-align: left;
  font-family: var(--font-display); font-weight: 600; white-space: nowrap; padding: 0; }
table.wpDataTable > thead > tr > th.num { text-align: right; }
table.wpDataTable > tbody > tr > td { padding: .5rem .7rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.wpDataTable > tbody > tr > td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.wpDataTable > tbody > tr:nth-child(even) { background: var(--blue-050); }
table.wpDataTable > tbody > tr:hover { background: var(--blue-100); }
table.wpDataTable > tbody > tr > td a { color: var(--blue-600); font-weight: 500; }
.cell-up { color: var(--green-700); }
.cell-down { color: var(--danger); }

/* sortable header button */
.wdt-th { all: unset; cursor: pointer; display: flex; align-items: center; gap: .35em;
  width: 100%; padding: .55rem .7rem; box-sizing: border-box; color: inherit; font: inherit; font-weight: 600; }
th.num .wdt-th { justify-content: flex-end; }
.wdt-th:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.wdt-arrow { opacity: .5; font-size: .8em; }
.wdt-arrow::before { content: "\2195"; }
[aria-sort="ascending"] .wdt-arrow { opacity: 1; }
[aria-sort="ascending"] .wdt-arrow::before { content: "\2191"; }
[aria-sort="descending"] .wdt-arrow { opacity: 1; }
[aria-sort="descending"] .wdt-arrow::before { content: "\2193"; }

/* expandable history rows (ATM) */
.wdt-xcol { width: 2.4rem; text-align: center; }
.wdt-expander { all: unset; cursor: pointer; width: 1.5rem; height: 1.5rem; line-height: 1.4rem;
  text-align: center; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--blue-700); font-weight: 700; background: #fff; }
.wdt-expander:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
table.wpDataTable > tbody > tr.wdt-child > td { background: var(--blue-050); padding: var(--sp-4); white-space: normal; }
/* secondary columns as a SINGLE-column label:value list (option-chain expander);
   empty-valued fields are omitted by the engine before rendering */
.wdt-xlist { display: flex; flex-direction: column; margin: 0 0 var(--sp-3); max-width: 34rem; }
.wdt-xrow { display: flex; justify-content: space-between; gap: var(--sp-4); border-bottom: 1px solid var(--line); padding: .45rem 0; }
.wdt-xrow:last-child { border-bottom: 0; }
.wdt-xrow dt { margin: 0; color: var(--ink-soft); }
.wdt-xrow dd { margin: 0; font-weight: var(--weight-medium); font-variant-numeric: tabular-nums; text-align: right; }
/* history content blocks (ATM expander) */
.wdt-child-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.wdt-child-block h3 { font-size: var(--text-base); color: var(--blue-900); margin: 0 0 var(--sp-2); }
.wdt-child-block table { width: 100%; font-size: var(--text-sm); background: #fff;
  border: 1px solid var(--line); border-collapse: collapse; }
.wdt-child-block th { background: var(--blue-100); color: var(--blue-900); text-align: left; font-weight: var(--weight-semibold); }
.wdt-child-block th, .wdt-child-block td { padding: .5rem .8rem; border: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.wdt-child-block tbody td { text-align: right; }
.wdt-child-block tbody td:first-child { text-align: left; }

.wdt-empty { text-align: center; color: var(--ink-soft); padding: var(--sp-6); }

/* footer: info + pagination */
.wdt-footer { display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: var(--sp-3); margin-top: var(--sp-3); }
.wdt-info { font-size: var(--text-sm); color: var(--ink-soft); }
.wdt-pager { display: flex; flex-wrap: wrap; gap: .25rem; }
.wdt-page { all: unset; cursor: pointer; min-width: 2rem; padding: .3rem .55rem; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: var(--text-sm);
  color: var(--blue-700); background: #fff; box-sizing: border-box; }
.wdt-page:hover { background: var(--blue-050); }
.wdt-page.active { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.wdt-page[disabled] { opacity: .45; cursor: default; }
.wdt-page:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.wdt-ellipsis { padding: .3rem .2rem; color: var(--ink-soft); }

@media (max-width: 575.98px) {
  table.wpDataTable { font-size: var(--text-sm); }
  table.wpDataTable td { padding: .4rem .5rem; }
  .wdt-th { padding: .45rem .5rem; }
}

/* ---------- Tools index + Tools dropdown ---------- */
.tools-menu { min-width: 16rem; }
.tools-menu .dropdown-header { font-size: var(--text-sm); text-transform: uppercase;
  letter-spacing: .04em; color: var(--ink-soft); }
a.card-tool { display: block; text-decoration: none; color: inherit; transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
a.card-tool:hover { transform: translateY(-2px); box-shadow: var(--shadow-raised); }
a.card-tool:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
a.card-tool h3 { color: var(--blue-900); margin-bottom: var(--sp-2); }
.mt-6 { margin-top: var(--sp-6) !important; }

/* ---------- FAQ (native details/summary — works with JS off) ---------- */
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: var(--sp-3); background: var(--surface);
}
.faq summary {
  cursor: pointer; padding: var(--sp-4);
  font-weight: var(--weight-semibold); color: var(--blue-900);
  list-style: none; position: relative; padding-right: var(--sp-7);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: var(--sp-4); top: 50%;
  transform: translateY(-50%); font-size: 1.4rem; color: var(--blue-600);
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 var(--sp-4) var(--sp-4); color: var(--ink); }
/* FAQ as two stretched columns (was a single narrow column) */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3) var(--sp-4); align-items: start; }
.faq-grid details { margin-bottom: 0; }
@media (max-width: 767px){ .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Course-at-a-glance facts ---------- */
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: var(--sp-3); }
.fact { border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--sp-4); background: var(--surface); }
.fact span { display: block; font-size: var(--text-sm); color: var(--ink-soft); margin-bottom: .15rem; }
.fact b { color: var(--blue-900); font-weight: var(--weight-semibold); }

/* ---------- Batch schedule (admin-style cards; dynamic-ready) ---------- */
.batch-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--sp-4); }
.batch-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-5); background: var(--surface); }
.batch-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.batch-badge { font-size: var(--text-sm); font-weight: var(--weight-semibold); background: var(--blue-050); color: var(--blue-700); padding: .2rem .7rem; border-radius: 999px; }
.batch-seats { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--green-700); }
.batch-date { font-family: var(--font-display); font-size: var(--text-xl); color: var(--blue-900); margin: 0 0 var(--sp-3); }
.batch-meta { list-style: none; padding: 0; margin: 0 0 var(--sp-4); }
.batch-meta li { display: flex; justify-content: space-between; gap: var(--sp-3); padding: .4rem 0; border-bottom: 1px dashed var(--line); font-size: var(--text-sm); }
.batch-meta li:last-child { border-bottom: 0; }
.batch-meta li span { color: var(--ink-soft); }
.batch-meta li b { color: var(--blue-900); font-weight: var(--weight-semibold); text-align: right; }
.batch-card .btn { margin-top: auto; }
/* Weekend batches carry a green accent to read differently from the blue weekday cards */
.batch-card.is-weekend { border-color: rgba(0, 176, 80, .40); background: rgba(0, 176, 80, .05); }
.batch-card.is-weekend .batch-badge { background: rgba(0, 176, 80, .12); color: var(--green-700); }
/* relative-timing line + status chips */
.batch-when { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--green-700); margin: 0 0 .1rem; }
.batch-seats.is-open { color: var(--green-700); }
.batch-seats.is-urgent { color: #B54708; background: #FDE7CE; padding: .1rem .55rem; border-radius: 999px; }

/* fee fact as an inviting link (implicit, not "on enquiry") */
a.fact { text-decoration: none; transition: box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
a.fact:hover, a.fact:focus-visible { border-color: var(--blue-600); box-shadow: var(--shadow-card); }
a.fact b { color: var(--blue-600); }

/* lead modal — choice pills (nicer than raw radios) + a compact trust line */
.choice-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.choice-pill { flex: 1 1 auto; min-width: 6rem; position: relative; margin: 0; }
.choice-pill input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice-pill span { display: block; text-align: center; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-md); font-size: var(--text-sm); color: var(--ink); background: var(--surface); cursor: pointer; transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.choice-pill input:checked + span { border-color: var(--eq-green); background: var(--blue-050); color: var(--blue-900); font-weight: var(--weight-semibold); }
.choice-pill input:focus-visible + span { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.lead-trust { display: flex; flex-wrap: wrap; gap: .3rem var(--sp-3); font-size: var(--text-sm); color: var(--ink-soft); }
.lead-trust-item { display: inline-flex; align-items: center; gap: .3rem; }

/* grouped FAQ (subtitle + questions per theme) */
.faq-group-title { font-size: var(--text-lg); color: var(--blue-900); margin-bottom: var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 2px solid var(--eq-green); display: inline-block; }

/* ---------- "Take the first step" stepper (interactive; degrades to stacked) ---------- */
.stepper { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: var(--sp-6); box-shadow: var(--shadow-card); }
.stepper-progress { display: flex; gap: .5rem; margin-bottom: var(--sp-5); }
.stepper-progress .dot { flex: 1; height: 5px; border-radius: 3px; background: var(--line); transition: background var(--dur-fast) var(--ease); }
.stepper-progress .dot.done { background: var(--blue-600); }
.stepper-progress .dot.active { background: var(--eq-green); }
.step-kicker { display: block; color: var(--blue-600); font-weight: var(--weight-semibold); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--sp-2); }
.step-panel h3 { font-size: var(--text-2xl); color: var(--blue-900); margin-bottom: var(--sp-3); }
.stepper-nav { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); margin-top: var(--sp-5); }
.stepper-nav .btn-cta { min-width: 14rem; }
.stepper-back { background: none; border: 0; padding: .2rem .4rem; color: var(--ink-soft); font-size: var(--text-sm); cursor: pointer; }
.stepper-back:hover, .stepper-back:focus-visible { color: var(--blue-700); text-decoration: underline; }
.stepper-link { font-size: var(--text-sm); color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; }
.stepper-link:hover, .stepper-link:focus-visible { color: var(--blue-900); }

/* step 3 — pick where you'll learn (choice, not a form field) */
.mode-options { display: grid; gap: var(--sp-3); margin-top: var(--sp-3); }
.mode-opt { width: 100%; text-align: left; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); padding: var(--sp-3) var(--sp-4); cursor: pointer; transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.mode-opt strong { color: var(--blue-900); }
.mode-opt .text-soft { font-size: var(--text-sm); }
.mode-opt:hover { border-color: var(--blue-600); }
.mode-opt.is-selected { border-color: var(--eq-green); box-shadow: inset 0 0 0 1px var(--eq-green); }
.mode-tag { float: right; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--green-700); }
/* no JS → show every panel stacked, hide the controls (still fully usable) */
.stepper:not(.js) .stepper-progress, .stepper:not(.js) .stepper-nav { display: none; }
.stepper:not(.js) .step-panel + .step-panel { margin-top: var(--sp-5); border-top: 1px solid var(--line); padding-top: var(--sp-5); }
/* JS → one panel at a time */
.stepper.js { min-height: 1px; }
.stepper.js .step-panel { display: none; }
.stepper.js .step-panel.active { display: block; }
@media (min-width: 576px){ .stepper.js .stepper-panels { min-height: 12rem; } }
@media (prefers-reduced-motion: no-preference){
  .stepper.js .step-panel.active { animation: stepIn .28s var(--ease); }
  @keyframes stepIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
}

/* ---------- Quiz (paginated when JS on; all-visible when JS off) ---------- */
.quiz-steps { list-style: none; padding: 0; margin: 0; }
.quiz-step { margin-bottom: var(--sp-4); }
#quiz.js-on .quiz-step { display: none; }
#quiz.js-on .quiz-step.is-active { display: block; }
#quiz.js-on .quiz-nojs-submit { display: none; }   /* hide the no-JS submit once JS takes over */
.quiz-nav { margin-top: var(--sp-4); }
.quiz-progress { height: 8px; background: var(--blue-100); border-radius: 999px; overflow: hidden; }
.quiz-bar { display: block; height: 100%; width: 0; background: var(--eq-green); transition: width var(--dur-base) var(--ease); }
.quiz-count { margin: var(--sp-2) 0 0; font-size: var(--text-sm); }

/* Engaging option cards (replaces the plain age-old radios) */
.quiz-card { padding: var(--sp-5); }
.quiz-q { font-family: var(--font-display); font-size: var(--text-xl); color: var(--blue-900);
  line-height: 1.3; margin: 0 0 var(--sp-4); padding: 0; }
.quiz-q:focus { outline: none; }   /* programmatic focus (screen readers) — no visible amber ring */
.quiz-options { display: grid; gap: var(--sp-3); }
.quiz-option { position: relative; display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4); border: 1.5px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface); cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.quiz-option:hover { border-color: var(--blue-600); box-shadow: var(--shadow-card); }
.quiz-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.qo-badge { flex: none; width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--blue-050); color: var(--blue-700);
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.qo-text { font-size: var(--text-lg); line-height: 1.35; }
.quiz-option.is-picked .qo-badge, .quiz-option input:checked ~ .qo-badge { background: var(--green-600); color: #fff; }
.quiz-option.is-picked, .quiz-option:has(input:checked) { border-color: var(--green-600); background: var(--green-100); box-shadow: var(--shadow-card); }
.quiz-option input:focus-visible ~ .qo-badge { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ---------- Testimonials ---------- */
.quote-card { border-left: 4px solid var(--eq-green); background: var(--surface); border-radius: var(--radius-sm); padding: var(--sp-5); box-shadow: var(--shadow-card); height: 100%; }
.quote-card figcaption { color: var(--ink-soft); font-size: var(--text-sm); margin-top: var(--sp-3); font-style: normal; }

/* ---------- Sticky mobile action bar (conversion, mobile-first) ---------- */
.action-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 1040;
  display: flex; background: var(--surface);
  border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(10,42,67,.12);
}
.action-bar a {
  flex: 1; text-align: center; padding: 0.9rem 0.5rem; font-weight: var(--weight-semibold);
  text-decoration: none; font-size: var(--text-sm); min-height: 52px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.action-bar .ab-call { color: var(--blue-900); }
.action-bar .ab-wa { background: var(--green-600); color: #fff; }
.action-bar .ab-enquire { color: var(--blue-600); }
/* single-CTA variant — one prominent lead button, no phone */
.action-bar-single { padding: 8px 12px; }
.action-bar-single .ab-enquire { background: var(--eq-green); color: #fff; border-radius: var(--radius-md); min-height: 44px; }
body.has-action-bar { padding-bottom: 56px; }
@media (min-width: 992px) { .action-bar { display: none; } body.has-action-bar { padding-bottom: 0; } }

/* ---------- Breadcrumbs ---------- */
.breadcrumb-eq { font-size: var(--text-sm); padding-block: var(--sp-3); }
.breadcrumb-eq a { color: var(--ink-soft); }
.breadcrumb-eq .active { color: var(--blue-900); font-weight: var(--weight-medium); }

/* ---------- Footer + SEBI disclosure block ---------- */
.site-footer { background: var(--blue-900); color: #C7D9E8; font-size: var(--text-sm); }
.site-footer h2, .site-footer h3 { color: #fff; font-size: var(--text-base); }
.site-footer a { color: #A8CBE8; }
.site-footer a:hover, .site-footer a:focus { color: #fff; }
.footer-main { padding-block: var(--sp-7) var(--sp-5); }
.sebi-block {
  border-top: 1px solid rgba(255,255,255,.18);
  padding-block: var(--sp-5);
}
.sebi-block .reg-line { color: #fff; font-weight: var(--weight-semibold); }
.sebi-block p { margin-bottom: var(--sp-2); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.18); padding-block: var(--sp-4); color: #9DB6C9; }

/* ---------- Consent banner (DPDP) — slim bottom bar, minimal footprint ---------- */
.consent-banner {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 1050;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--sp-2) var(--sp-4); padding: var(--sp-3) var(--sp-4);
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -2px 12px rgba(10,42,67,0.10);
}
.consent-banner .consent-text { margin: 0; font-size: var(--text-sm); color: var(--ink-soft); }
.consent-actions { display: flex; gap: var(--sp-2); flex: none; }
.consent-banner[hidden] { display: none; }

/* ---------- Utility ---------- */
.text-soft { color: var(--ink-soft); }
.eyebrow {
  font-size: var(--text-sm); font-weight: var(--weight-semibold);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-700);
  display: block; margin-bottom: var(--sp-2);
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =====================================================================
   ACCESSIBILITY WIDGET + theme mechanics (paired with tokens.css themes
   and the header widget markup + assets/js/eqsis.js logic).
   ===================================================================== */

/* text-size: whole rem scale rides this one variable (set by the widget) */
html { font-size: calc(100% * var(--a11y-scale, 1)); }

/* skip-link target + sticky-header offset so focused anchors aren't hidden */
html { scroll-padding-top: calc(var(--header-h, 4rem) + 0.75rem); }
#main:focus { outline: none; }

/* reduce motion (widget-forced; complements the prefers-reduced-motion @media) */
:root[data-motion="reduce"] *,
:root[data-motion="reduce"] *::before,
:root[data-motion="reduce"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

/* highlight links: underline in-content links (not buttons/nav/brand) */
:root[data-links="highlight"] a:not(.btn):not(.btn-cta):not(.btn-outline):not(.nav-link):not(.navbar-brand):not(.dropdown-item):not(.card-tool):not(.card-course):not(.door):not(.fact) {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* ---- Dark-theme component overrides: elements whose BACKGROUND used --blue-900
        (which flips to a light TEXT colour in dark mode) get an explicit dark bg. ---- */
:root[data-theme="dark"] body { background: var(--surface); color: var(--ink); }
:root[data-theme="dark"] .site-header { background: var(--surface); border-bottom-color: var(--line); }
:root[data-theme="dark"] .site-footer { background: #0A1621; }
:root[data-theme="dark"] .cta-band { background: #0C1E2B; }
:root[data-theme="dark"] .hero { background: linear-gradient(160deg,#0A1621 0%,#10242F 55%,#0C3D28 130%); }
:root[data-theme="dark"] .table-eq thead,
:root[data-theme="dark"] table.wpDataTable > thead > tr > th { background: #173B54; }
:root[data-theme="dark"] .step-num,
:root[data-theme="dark"] .skip-link { background: #173B54; }
:root[data-theme="dark"] .card-eq { border-color: var(--line); }
:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select,
:root[data-theme="dark"] .wdt-input,
:root[data-theme="dark"] .wdt-select,
:root[data-theme="dark"] .wdt-length select,
:root[data-theme="dark"] .wdt-search input,
:root[data-theme="dark"] .a11y-size button {
  background: #16283A; color: var(--ink); border-color: #62798D;
}
:root[data-theme="dark"] .consent-banner { background: var(--surface); border-color: var(--line); }

/* ---- The widget toggle button (in the header top bar) ---- */
.a11y-toggle {
  all: unset; box-sizing: border-box; width: 40px; height: 40px; flex: none;
  display: inline-grid; place-items: center; cursor: pointer;
  border-radius: var(--radius-sm); color: var(--blue-600);
}
.a11y-toggle:hover { background: var(--blue-050); }
.a11y-toggle[aria-expanded="true"] { background: var(--blue-050); }
.a11y-toggle:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.a11y-toggle svg { width: 23px; height: 23px; }

/* ---- Panel (dialog) + scrim ---- */
.a11y-scrim { position: fixed; inset: 0; background: rgba(10,26,36,0.45); z-index: 1080; }
.a11y-scrim[hidden] { display: none; }
.a11y-panel {
  position: fixed; top: 0; right: 0; z-index: 1090; width: min(24rem, 100vw); max-height: 100dvh;
  overflow-y: auto; background: var(--surface); color: var(--ink);
  border-left: 1px solid var(--line); box-shadow: var(--shadow-raised);
  padding: var(--sp-5); -webkit-overflow-scrolling: touch;
}
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
.a11y-head h2 { font-size: var(--text-lg); margin: 0; color: var(--blue-900); }
.a11y-close { all: unset; cursor: pointer; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: var(--radius-sm); font-size: 1.4rem; color: var(--ink-soft); }
.a11y-close:hover { color: var(--ink); }
.a11y-close:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.a11y-group { border: 0; margin: 0 0 var(--sp-4); padding: 0; }
.a11y-group legend { font-weight: var(--weight-semibold); color: var(--blue-900); font-size: var(--text-sm); padding: 0; margin-bottom: var(--sp-2); }
.a11y-seg { display: flex; gap: 0.25rem; }
.a11y-seg label { position: relative; flex: 1; }
.a11y-seg span { display: block; padding: 0.45rem 0.3rem; text-align: center; font-size: var(--text-sm);
  border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.a11y-seg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.a11y-seg input:checked + span { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.a11y-seg input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.a11y-size { display: flex; align-items: center; gap: 0.5rem; }
.a11y-size button { width: 2.4rem; height: 2.4rem; flex: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font-weight: 700; font-size: 1.1rem; cursor: pointer; }
.a11y-size button:hover { border-color: var(--blue-600); }
.a11y-size button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.a11y-size output { flex: 1; text-align: center; font-variant-numeric: tabular-nums; font-weight: var(--weight-medium); }
.a11y-switch { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.45rem 0; }
.a11y-switch input { appearance: none; -webkit-appearance: none; width: 2.6rem; height: 1.5rem; flex: none; cursor: pointer;
  border-radius: 1rem; background: var(--line); position: relative; transition: background var(--dur-fast) var(--ease); }
.a11y-switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 1.1rem; height: 1.1rem;
  border-radius: 50%; background: #fff; transition: transform var(--dur-fast) var(--ease); }
.a11y-switch input:checked { background: var(--green-600); }
.a11y-switch input:checked::after { transform: translateX(1.1rem); }
.a11y-switch input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.a11y-reset { all: unset; cursor: pointer; color: var(--blue-600); text-decoration: underline; font-size: var(--text-sm); }
.a11y-reset:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* =====================================================================
   BLOG READING EXPERIENCE  (article template + grouped index)
   Built from the existing tokens so it inherits dark / high-contrast /
   readable-font / text-scale automatically. One signature accent (green);
   everything else quiet and structural (CLAUDE.md §5).
   ===================================================================== */

/* ---- Reading-progress bar (scroll-driven; set by blog.js) ---- */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1075;
  background: transparent; pointer-events: none; }
.reading-progress > span { display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--eq-blue), var(--eq-green)); }
:root[data-motion="reduce"] .reading-progress { display: none; }

/* ---- Article shell: reading column + sticky sidebar ---- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6);
  max-width: 70rem; margin-inline: auto; padding-inline: var(--sp-5); }
.article-main { max-width: 46rem; min-width: 0; }
/* Mobile: the sidebar's only job is one compact CTA at the end — navigation is
   handled by the "On this page" details at the top of the article, so the TOC
   card is hidden here to avoid duplication. */
.article-aside { display: block; margin-top: var(--sp-6); }
.article-aside .aside-card.is-toc { display: none; }
@media (min-width: 992px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 17rem; gap: var(--sp-7); align-items: start; }
  /* Desktop sticky column: the index (TOC) gets the weight and scrolls inside
     itself; the tiny CTA stays pinned at the bottom, always visible. */
  .article-aside { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: 0;
    position: sticky; top: calc(var(--header-h) + var(--sp-4));
    max-height: calc(100dvh - var(--header-h) - var(--sp-6)); }
  .article-aside .aside-card { margin-bottom: 0; flex: none; }
  .article-aside .aside-card.is-toc { display: flex; flex: 1 1 auto; min-height: 5rem;
    flex-direction: column; overflow: hidden; }
  .article-aside .aside-card.is-toc .toc { overflow-y: auto; min-height: 0; }
}
/* headings become anchor targets — keep them clear of the sticky header */
.article-body :is(h2, h3)[id], .faq-block[id] { scroll-margin-top: 5.5rem; }

/* ---- Article header: eyebrow + title + byline ---- */
.article-eyebrow { color: var(--blue-600); }
.article-lede { font-size: var(--text-lg); color: var(--ink-soft); line-height: 1.55;
  margin: var(--sp-3) 0 var(--sp-4); max-width: 42rem; text-wrap: balance; }
.article-byline { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3);
  margin: var(--sp-4) 0; font-size: var(--text-sm); color: var(--ink-soft); }
.byline-id { display: inline-flex; align-items: center; gap: var(--sp-2); }
.byline-avatar { width: 2.25rem; height: 2.25rem; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700;
  color: #fff; background: linear-gradient(135deg, var(--eq-blue), var(--blue-800)); font-size: .95rem; }
.byline-author { color: var(--blue-900); font-weight: var(--weight-semibold); }
.byline-cred { color: var(--green-700); font-weight: var(--weight-medium); }
.byline-dot { color: var(--line); }
.byline-meta { display: inline-flex; align-items: center; gap: var(--sp-1); }

/* ---- Table of contents (sidebar + mobile <details>) ---- */
.toc { font-size: var(--text-sm); }
.toc-title { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem;
  font-weight: var(--weight-semibold); color: var(--ink-soft); margin-bottom: var(--sp-2); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc li.toc-h3 a { padding-left: var(--sp-5); font-size: .82rem; }
.toc a { display: block; padding: .3rem var(--sp-3); margin-left: -2px; color: var(--ink-soft);
  text-decoration: none; border-left: 2px solid transparent; line-height: 1.35; }
.toc a:hover { color: var(--blue-700); }
.toc a.active { color: var(--blue-900); font-weight: var(--weight-semibold); border-left-color: var(--eq-green); }
.toc-mobile { margin-bottom: var(--sp-5); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.toc-mobile summary { cursor: pointer; padding: var(--sp-3) var(--sp-4); font-weight: var(--weight-semibold);
  color: var(--blue-900); list-style: none; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile[open] summary { border-bottom: 1px solid var(--line); }
.toc-mobile > .toc { padding: var(--sp-3) var(--sp-4); }
.toc-mobile .toc ol { border-left: 0; }
@media (min-width: 992px) { .toc-mobile { display: none; } }

/* ---- Callouts (highlighted, drawn from the post's own text) ---- */
.callout { border: 1px solid var(--line); border-left: 4px solid var(--blue-600);
  border-radius: var(--radius-md); background: var(--blue-050);
  padding: var(--sp-4) var(--sp-5); margin: 1.6em 0; }
.callout > :last-child { margin-bottom: 0; }
.callout-label { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 var(--sp-2);
  font-size: var(--text-sm); font-weight: var(--weight-semibold); letter-spacing: .02em;
  text-transform: uppercase; color: var(--blue-700); }
.callout-label svg { width: 1.05rem; height: 1.05rem; }
.callout--key { border-left-color: var(--eq-green); background: var(--green-100); }
.callout--key .callout-label { color: var(--green-700); }
.callout--caution { border-left-color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
.callout--caution .callout-label { color: var(--danger); }
.callout--tip { border-left-color: var(--eq-blue); }
.callout--def { border-left-color: var(--blue-800); }

/* ---- Sidebar cards (sticky CTA + related links + tools) ---- */
.aside-card { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface);
  padding: var(--sp-5); margin-bottom: var(--sp-5); }
/* Tiny CTA module — one button + one or two mini links, no description */
.aside-card.is-cta { border-top: 4px solid var(--eq-green); background: var(--blue-050); padding: var(--sp-4); }
.aside-card.is-cta .btn-cta { display: block; width: 100%; text-align: center; padding: .55rem 1rem; font-size: var(--text-sm); }
.aside-mini { list-style: none; margin: var(--sp-3) 0 0; padding: 0; }
.aside-mini li + li { margin-top: var(--sp-2); }
.aside-mini a { display: inline-flex; align-items: center; gap: .3rem; font-size: var(--text-sm);
  color: var(--blue-700); text-decoration: none; font-weight: var(--weight-medium); }
.aside-mini a::after { content: "\2192"; color: var(--green-700); }
.aside-mini a:hover { color: var(--blue-900); }
.aside-title { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .06em;
  font-weight: var(--weight-semibold); color: var(--ink-soft); margin-bottom: var(--sp-3); }
.aside-card h3 { font-size: var(--text-lg); color: var(--blue-900); margin-bottom: var(--sp-2); }
.aside-links { list-style: none; margin: 0; padding: 0; }
.aside-links li + li { margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px dashed var(--line); }
.aside-links a { text-decoration: none; color: var(--blue-700); font-weight: var(--weight-medium); }
.aside-links a:hover { color: var(--blue-900); text-decoration: underline; }
.aside-links .al-kicker { display: block; font-size: .78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }

/* ---- Author / E-E-A-T card (end of article) ---- */
.author-card { display: flex; gap: var(--sp-4); align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--blue-050);
  padding: var(--sp-5); margin: var(--sp-7) 0 0; }
.author-card .byline-avatar { width: 3.5rem; height: 3.5rem; font-size: 1.3rem; }
.author-card .ac-name { font-family: var(--font-display); font-size: var(--text-lg); color: var(--blue-900); margin: 0; }
.author-card .ac-cred { color: var(--green-700); font-weight: var(--weight-medium); font-size: var(--text-sm); margin: .1rem 0 var(--sp-2); }
.author-card .ac-bio { color: var(--ink); font-size: var(--text-sm); margin: 0; }
@media (max-width: 575px){ .author-card { flex-direction: column; } }

/* ---- Related posts (in-cluster internal linking) ---- */
.related-wrap { margin-top: var(--sp-7); }
.related-head { font-size: var(--text-xl); color: var(--blue-900); margin-bottom: var(--sp-4); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--sp-4); }
a.related-card { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line);
  border-radius: var(--radius-md); background: var(--surface); padding: var(--sp-4);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
a.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: var(--blue-600); }
a.related-card:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.related-card .rc-cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--green-700); font-weight: var(--weight-semibold); }
.related-card .rc-title { font-family: var(--font-display); color: var(--blue-900); font-size: var(--text-base); margin: var(--sp-1) 0 0; line-height: 1.3; }

/* End-of-article navigation (handy onward links) + educational disclaimer */
.article-nav { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between;
  margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--line); font-size: var(--text-sm); }
.article-nav a { text-decoration: none; color: var(--blue-700); font-weight: var(--weight-medium); }
.article-nav a:hover { color: var(--blue-900); text-decoration: underline; }
.article-disclaimer { margin-top: var(--sp-6); border: 1px solid var(--line); border-left: 3px solid var(--blue-600);
  border-radius: var(--radius-sm); background: var(--surface-alt); padding: var(--sp-4) var(--sp-5);
  font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.6; }
.article-disclaimer strong { color: var(--blue-900); }

/* =====================================================================
   BLOG INDEX  (grouped by topic cluster)
   ===================================================================== */
.blog-hero { padding-block: var(--sp-7) var(--sp-6); }
.blog-hero h1 { font-size: var(--text-4xl); line-height: 1.1; letter-spacing: -0.01em; color: var(--blue-900); }
.blog-hero .lede { font-size: var(--text-lg); color: var(--ink-soft); max-width: 44rem; margin-top: var(--sp-3); }

/* cluster quick-nav (jump links) */
.cluster-nav { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-5); }
.cluster-nav a { text-decoration: none; font-size: var(--text-sm); font-weight: var(--weight-medium);
  color: var(--blue-700); background: var(--blue-050); border: 1px solid var(--line);
  padding: .4rem .9rem; border-radius: 999px; }
.cluster-nav a:hover { border-color: var(--blue-600); color: var(--blue-900); }
.cluster-nav a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* featured pillar row */
.featured-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-5); }
@media (max-width: 767px){ .featured-grid { grid-template-columns: 1fr; } }
/* Featured pillar cards — light + subtle (not a heavy dark block); a quiet tint
   and a soft shadow set them apart from the regular post cards. */
a.feature-card { display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none;
  color: var(--ink); min-height: 11rem; border-radius: var(--radius-lg); padding: var(--sp-6);
  background: var(--blue-050); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
a.feature-card.alt { background: var(--green-100); }
a.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-raised); }
a.feature-card:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.feature-card .fc-cat { font-size: var(--text-sm); font-weight: var(--weight-semibold); letter-spacing: .04em;
  text-transform: uppercase; color: var(--blue-700); }
a.feature-card.alt .fc-cat { color: var(--green-700); }
.feature-card .fc-title { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.2; margin: var(--sp-2) 0; color: var(--blue-900); }
.feature-card .fc-meta { font-size: var(--text-sm); color: var(--ink-soft); }

/* cluster section + heading */
.cluster-section { padding-top: var(--sp-7); scroll-margin-top: 5rem; }
.cluster-head { display: flex; align-items: flex-start; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.cluster-icon { width: 3rem; height: 3rem; flex: none; border-radius: var(--radius-md);
  display: grid; place-items: center; background: var(--blue-050); color: var(--blue-600); }
.cluster-icon svg { width: 1.6rem; height: 1.6rem; }
.cluster-head h2 { font-size: var(--text-2xl); color: var(--blue-900); margin: 0; }
.cluster-head .ch-desc { color: var(--ink-soft); margin: var(--sp-1) 0 0; max-width: 46rem; }

/* rich post cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: var(--sp-5); }
article.post-card { display: flex; flex-direction: column; height: 100%; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  padding: var(--sp-5); transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
article.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-raised); }
article.post-card.is-pillar { border-top: 4px solid var(--eq-green); }
.post-card .pc-cat { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; text-transform: uppercase;
  letter-spacing: .05em; font-weight: var(--weight-semibold); color: var(--green-700); margin-bottom: var(--sp-2); }
.post-card h3 { font-size: var(--text-lg); line-height: 1.3; margin: 0 0 var(--sp-2); }
.post-card h3 a { text-decoration: none; color: var(--blue-900); }
.post-card h3 a:hover { color: var(--blue-700); }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
article.post-card { position: relative; }
.post-card .pc-sum { color: var(--ink-soft); font-size: var(--text-sm); flex-grow: 1; margin-bottom: var(--sp-3); }
.post-card .pc-meta { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); font-size: .8rem; color: var(--ink-soft); }
.post-card .pc-meta .dot { color: var(--line); }
