/* ═══════════════════════════════════════════════════════════════════════════
   FARMLAND INDIA — WIKI MASTER STYLESHEET
   Version: v7.1 · September 2026 · Supersedes v7 and all earlier versions.

   DEPLOYMENT (Rajneesh):
   1. Load ONCE, globally, on wiki routes:
        <link rel="stylesheet" href="/assets/css/farmland-wiki-master-v7.css?v=7.1">
      If your CDN/CMS caches by filename rather than the ?v= query string,
      rename the file itself (e.g. v7-1.css) so the browser doesn't serve
      a stale cached copy.
   2. Paste wiki HTML anywhere inside the page layout — inside a CMS
      container, inside #__next wrappers, inside <main>, wherever.
      The stylesheet will neutralize every ancestor wrapper automatically.
   3. Header height is now baked in as a default (51px, measured from the
      live site's actual <header class="sticky top-0 z-40"> on 23 Sep 2026).
      If the site's nav height ever changes, update it in ONE place:
        .fi-wiki { --fi-header-offset: 51px; }  ← change 51px to the new height
      No other action needed — the TOC sticky offset reads this automatically.

   WHAT v7.1 FIXES OVER v7:
   [FIX-1] Sidebar/TOC was sticking under the fixed nav bar because
   --fi-header-offset defaulted to 0px and was never overridden. Now
   defaults to the real measured value (51px) directly in the token block.
   [FIX-2] Colors and font sizes tuned to match the live site's actual
   measured values (nav bg #0E2408, CTA yellow #FFDA16 family) rather than
   an earlier approximation — see the token block below. Muted text color
   also darkened slightly for better contrast against white.
   [G4-fix, from v6→v7] The v6 neutralizer targeted <main> — but this site
   has no <main> element at all (confirmed via DOM inspection). v7's
   DOM-AGNOSTIC neutralizer strips every ancestor wrapper between <body>
   and .fi-wiki regardless of element type — works with Next.js, Laravel
   Blade, plain HTML, WordPress, or a site with no <main> tag whatsoever.

   AUTHORING CONTRACT (Claude / content team):
   • Content body only: <div class="fi-wiki">…</div>. No <html>/<head>/<body>,
     no <style>, no inline style="", no platform nav/footer.
   • Only fi- classes from THIS file. No invented classes.
   • Breadcrumb INSIDE .fi-hero as first child.
   • Every wide table wrapped in .fi-tscroll.
   • All horizontal padding via .fi-wrap — sections never set their own.
   • This CSS file is uploaded ONCE, globally. Every new wiki article after
     this only needs its own content HTML file pasted into the CMS — the
     stylesheet does not change per article.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Font import removed — Inter is already loaded site-wide by the main app (Next.js font optimization); the wiki references the same font-family name rather than importing its own copy. */

/* ───────────────────────────────────────────────────────────────────────────
   §1  GLOBAL GUARDS + DOM-AGNOSTIC CONTAINER NEUTRALIZER
   ─────────────────────────────────────────────────────────────────────────── */

/* [G3] Kill sideways scroll + match body background to wiki on wiki pages */
body:has(.fi-wiki) {
  overflow-x: clip;
  background: #FAFBFA !important;   /* match --fi-cream so any gap between
                                       wiki content and footer is invisible */
}

/* [G4] CONTAINER ESCAPE — v7.2 (three parts)

   Part A  — Strip the DIRECT PARENT of .fi-wiki (the CMS card wrapper):
             all visual styles + padding + margin, so it becomes invisible
             and contributes no spacing.
   Part A+ — Strip bottom spacing from the first 5 DIRECT ANCESTORS
             (parent → great-great-grandparent) using chained :has(>)
             so any padding-bottom, margin-bottom, or flex/grid gap that
             creates a vertical seam between .fi-wiki and the footer is
             removed. Only targets the exact ancestor chain — siblings
             (header, footer) are never matched.
   Part C  — .fi-wiki itself breaks out to 100vw via left + transform.
             body overflow-x: clip absorbs scrollbar overhang. */

/* Part A — direct parent: full strip */
:where(:not(html, body)):has(> .fi-wiki) {
  background:    transparent !important;
  border:        none        !important;
  border-radius: 0           !important;
  box-shadow:    none        !important;
  padding:       0           !important;
  margin:        0           !important;
  overflow:      visible     !important;
}

/* Part A+ — DIRECT FIX for <main> padding (confirmed via diagnostic:
   <main> at depth 3 has padding-bottom: 40px — this IS the footer gap).
   The chained :where(:has(>)) selectors have 0 specificity and lose to
   the platform's own main{} rule. This rule has real specificity (0-0-2)
   and wins outright. Only fires on wiki pages via body:has(.fi-wiki). */
body:has(.fi-wiki) main {
  padding: 0 !important;
  margin: 0 !important;
}
body:has(.fi-wiki) main > * {
  /* ensure no section/div wrapper between main and .fi-wiki adds spacing */
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* ───────────────────────────────────────────────────────────────────────────
   §2  TOKENS — scoped to .fi-wiki
   ─────────────────────────────────────────────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════════════
   LIQUID GLASS — decorative blurred colour blobs sitting behind the
   content. z-index:-1 on the pseudo-element (with .fi-wiki's own
   position:relative below establishing the containing block) keeps
   this strictly behind every normal-flow child — no other rule needs
   to touch z-index for this to work. Dark sections (.fi-hero,
   .fi-statbar) already have their own opaque gradients and simply sit
   on top, unaffected; the blobs read through the lighter body areas
   where the frosted-glass panels below live.
   ══════════════════════════════════════════════════════════════════════ */
.fi-wiki::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Fixed-size tile repeated down the page (background-repeat: repeat-y),
     rather than percentages of the whole article's height — a long page
     could be 6000px+ tall, and percentage positions would concentrate
     every blob in one spot, leaving most scroll positions with nothing
     visible. Repeating a ~1400px tile guarantees at least one full set
     of blobs in every viewport, at any scroll position, on any length
     of article. */
  background-image:
    radial-gradient(480px 480px at 10% 12%,  rgba(45,107,74,.42),  transparent 68%),
    radial-gradient(520px 520px at 88% 30%,  rgba(212,160,23,.36), transparent 68%),
    radial-gradient(460px 460px at 18% 62%,  rgba(30,58,95,.30),   transparent 68%),
    radial-gradient(520px 520px at 82% 88%,  rgba(45,107,74,.34),  transparent 68%);
  background-repeat: repeat-y;
  background-size: 100% 1400px;
  filter: blur(80px);
}
.fi-wiki {
  /* brand */
  --fi-dark:    #0E2408;
  --fi-dark-2:  #081603;
  --fi-green:   #2D6B4A;
  --fi-amber:   #D4A017;
  --fi-amber-2: #B8860B;
  --fi-cta-yellow: #FFE85C;
  --fi-cta-yellow-2: #F5DC3E;
  --fi-navy:    #1E3A5F;
  --fi-white:   #FFFFFF;
  --fi-field:   #F5F7F5;
  --fi-border:  #E0E8E2;
  --fi-ink:     #1A1A1A;
  --fi-muted:   #57685E;
  --fi-cream:   #FAFBFA;

  /* type */
  --fi-display: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'system-ui', 'Segoe UI', sans-serif;
  --fi-body:    'Inter', 'Inter Fallback', system-ui, -apple-system, 'system-ui', 'Segoe UI', sans-serif;
  --fi-mono:    'Inter', 'Inter Fallback', system-ui, -apple-system, 'system-ui', 'Segoe UI', sans-serif;

  /* layout */
  --fi-max:            1240px;
  --fi-pad-x:          clamp(16px, 4.5vw, 32px);
  --fi-header-offset:  51px;
  --fi-radius:         12px;
  --fi-radius-sm:      8px;
  --fi-shadow:         0 6px 24px rgba(14,36,8,.08);
  --fi-shadow-lg:      0 16px 48px rgba(14,36,8,.14);

  /* base resets */
  font-family: var(--fi-body);
  color: var(--fi-ink);
  background: var(--fi-cream);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  /* Part C — break out of any container to full viewport width.
     The calc self-cancels when the parent is already full-width (0 margin).
     When inside a constrained wrapper, it pushes .fi-wiki to viewport edges.
     body overflow-x: clip absorbs scrollbar overshoot. */
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow-x: clip;
}
.fi-wiki *, .fi-wiki *::before, .fi-wiki *::after { box-sizing: border-box; }
.fi-wiki img, .fi-wiki svg, .fi-wiki video { max-width: 100%; height: auto; }
.fi-wiki a { color: var(--fi-green); text-decoration: none; }
.fi-wiki a:hover { text-decoration: underline; }
.fi-wiki :focus-visible { outline: 2px solid var(--fi-amber); outline-offset: 2px; }

/* ───────────────────────────────────────────────────────────────────────────
   §3  LAYOUT PRIMITIVES
   ─────────────────────────────────────────────────────────────────────────── */
.fi-wrap {
  max-width: var(--fi-max);
  margin-inline: auto;
  padding-inline: var(--fi-pad-x);
}

/* hub layout: sidebar nav · main · rail */
.fi-hublayout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr) 300px;
  gap: 32px;
  padding-block: 48px 72px;
}
/* article layout: TOC · main */
.fi-artlayout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 40px;
  padding-block: 48px 72px;
}
.fi-rail { display: flex; flex-direction: column; gap: 24px; align-self: start; min-width: 0; }
/* generic grids */
.fi-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.fi-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.fi-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }

/* ───────────────────────────────────────────────────────────────────────────
   §4  HERO — dark green, full-width, breadcrumb INSIDE
   ─────────────────────────────────────────────────────────────────────────── */
.fi-hero {
  background:
    radial-gradient(1100px 500px at 82% -10%, rgba(45,107,74,.55), transparent 60%),
    radial-gradient(700px 380px at 8% 110%, rgba(212,160,23,.12), transparent 55%),
    linear-gradient(160deg, var(--fi-dark) 0%, var(--fi-dark-2) 100%);
  color: var(--fi-white);
  padding-top: calc(var(--fi-header-offset) + 28px);
  padding-bottom: 56px;
}
.fi-hero .fi-wrap { max-width: var(--fi-max); }

/* breadcrumb */
.fi-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-family: var(--fi-mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 30px;
  min-width: 0;
}
.fi-crumb a { color: rgba(255,255,255,.75); }
.fi-crumb a:hover { color: var(--fi-white); text-decoration: none; }
.fi-crumb-sep { color: rgba(255,255,255,.28); }
.fi-crumb-here {
  color: var(--fi-amber);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60vw;
}

/* eyebrow pill */
.fi-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(212,160,23,.45);
  border-radius: 999px;
  padding: 7px 16px;
  font-family: var(--fi-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fi-amber);
  background: rgba(212,160,23,.14);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  margin-bottom: 26px;
}
.fi-eyebrow-dot { opacity: .5; }

.fi-hero-h1 {
  font-family: var(--fi-display);
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 20px;
  max-width: 880px;
}
.fi-hero-h1 em { font-style: italic; color: #E8D5A8; }
.fi-hero-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 300;
  color: rgba(255,255,255,.92);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 0 28px;
}

/* meta row */
.fi-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-family: var(--fi-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: rgba(255,255,255,.74);
}
.fi-hero-meta span { display: inline-flex; align-items: center; gap: 7px; }

/* hero CTAs */
.fi-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ───────────────────────────────────────────────────────────────────────────
   §5  STAT STRIP
   ─────────────────────────────────────────────────────────────────────────── */
.fi-statbar {
  background: rgba(14,36,8,.94);
  border-top: 1px solid rgba(255,255,255,.07);
  color: var(--fi-white);
}
.fi-statbar .fi-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.fi-stat {
  padding: 20px 18px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.07);
  position: relative;
}
.fi-stat::after {
  content: '';
  position: absolute;
  inset: 6px 8px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.06);
  z-index: -1;
  transition: background .18s;
}
.fi-stat:hover::after { background: rgba(255,255,255,.08); }
.fi-stat:last-child { border-right: none; }
.fi-stat-k {
  font-family: var(--fi-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--fi-amber);
  margin-bottom: 4px;
}
.fi-stat-v {
  font-family: var(--fi-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.32);
}

/* white stat chips */
.fi-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  background: var(--fi-white);
  border: 1.5px solid var(--fi-dark);
  border-radius: var(--fi-radius-sm);
  padding: 10px 16px;
}
.fi-chip-num { font-family: var(--fi-mono); font-size: 18px; font-weight: 500; color: var(--fi-amber); }
.fi-chip-lbl { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fi-green); }

/* ───────────────────────────────────────────────────────────────────────────
   §6  SIDEBAR GUIDE NAV
   ─────────────────────────────────────────────────────────────────────────── */
.fi-sidenav {
  background: var(--fi-white);
  border: 1px solid var(--fi-border);
  border-radius: var(--fi-radius);
  overflow: hidden;
  box-shadow: var(--fi-shadow);
  align-self: start;
  position: sticky;
  top: calc(var(--fi-header-offset) + 20px);
}
.fi-sidenav-head {
  background: var(--fi-navy);
  color: var(--fi-white);
  font-family: var(--fi-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.fi-sidenav-group {
  font-family: var(--fi-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fi-muted);
  padding: 18px 20px 8px;
  border-bottom: 1px solid var(--fi-border);
}
.fi-sidenav a.fi-sidenav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fi-green);
  border-left: 3px solid transparent;
  transition: background .15s, border-color .15s;
}
.fi-sidenav a.fi-sidenav-link:hover {
  background: var(--fi-field);
  border-left-color: var(--fi-green);
  text-decoration: none;
}
.fi-sidenav a.fi-sidenav-link.fi-active {
  background: var(--fi-field);
  border-left-color: var(--fi-amber);
  color: var(--fi-dark);
  font-weight: 600;
}
.fi-hot { font-size: 12px; filter: saturate(1.2); }

/* ───────────────────────────────────────────────────────────────────────────
   §7  CARDS
   ─────────────────────────────────────────────────────────────────────────── */
.fi-card {
  background: var(--fi-white);
  border: 1px solid var(--fi-border);
  border-radius: var(--fi-radius);
  padding: 24px;
  box-shadow: var(--fi-shadow);
}
.fi-card-h {
  font-family: var(--fi-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--fi-dark);
  margin: 0 0 6px;
}
.fi-card-sub { font-size: 13px; color: var(--fi-muted); margin: 0 0 16px; }

/* article/link card */
.fi-acard {
  background: rgba(255,255,255,.35);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 6px 24px rgba(14,36,8,.06);
  border-radius: var(--fi-radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .18s, box-shadow .18s, border-color .18s, background .18s;
}
.fi-acard:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.55);
  box-shadow: var(--fi-shadow-lg);
  border-color: rgba(45,107,74,.4);
  text-decoration: none;
}
.fi-acard-kicker {
  font-family: var(--fi-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fi-amber);
}
.fi-acard-title { font-size: 15.5px; font-weight: 600; color: var(--fi-dark); line-height: 1.4; }
.fi-acard-desc { font-size: 13px; color: var(--fi-muted); line-height: 1.55; }

/* dark-header reference card */
.fi-refcard {
  background: var(--fi-white);
  border: 1px solid var(--fi-border);
  border-radius: var(--fi-radius);
  overflow: hidden;
  box-shadow: var(--fi-shadow);
}
.fi-refcard-head {
  background: var(--fi-navy);
  color: var(--fi-white);
  padding: 22px 26px;
}
.fi-refcard-title {
  font-family: var(--fi-display);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 4px;
}
.fi-refcard-sub {
  font-family: var(--fi-mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: rgba(255,255,255,.35);
}

/* dark promo card */
.fi-promo {
  background:
    linear-gradient(180deg, rgba(14,36,8,.86), rgba(8,22,3,.96)),
    var(--fi-dark);
  border-radius: var(--fi-radius);
  color: var(--fi-white);
  padding: 26px 24px;
  box-shadow: var(--fi-shadow-lg);
}
.fi-promo-kicker {
  font-family: var(--fi-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fi-amber);
  margin-bottom: 10px;
}
.fi-promo-title {
  font-family: var(--fi-display);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px;
}
.fi-promo-desc { font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.6; margin: 0 0 18px; }

/* quick-conversion list */
.fi-quickconv {
  background: var(--fi-white);
  border: 1px solid var(--fi-border);
  border-radius: var(--fi-radius);
  padding: 20px 22px;
  box-shadow: var(--fi-shadow);
}
.fi-quickconv-h {
  font-family: var(--fi-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--fi-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}
.fi-qc-row { padding: 11px 0; border-bottom: 1px solid var(--fi-border); }
.fi-qc-row:last-child { border-bottom: none; }
.fi-qc-eq { font-family: var(--fi-mono); font-size: 13.5px; color: var(--fi-ink); }
.fi-qc-eq strong { color: var(--fi-amber); font-weight: 500; }
.fi-qc-note { font-family: var(--fi-mono); font-size: 10.5px; color: var(--fi-muted); margin-top: 3px; }

/* ───────────────────────────────────────────────────────────────────────────
   §8  TABLES — always inside .fi-tscroll
   ─────────────────────────────────────────────────────────────────────────── */
.fi-tscroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.fi-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}
.fi-table thead th {
  background: var(--fi-field);
  font-family: var(--fi-mono);
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--fi-muted);
  font-weight: 500;
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--fi-border);
  white-space: nowrap;
}
.fi-table tbody td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--fi-border);
  vertical-align: top;
}
.fi-table tbody tr:last-child td { border-bottom: none; }
.fi-table tbody tr:hover { background: rgba(245,247,245,.35); }
.fi-td-name { font-family: var(--fi-display); font-size: 16px; font-weight: 600; color: var(--fi-dark); }
.fi-td-num  { font-family: var(--fi-mono); font-size: 13.5px; color: var(--fi-ink); white-space: nowrap; }
.fi-td-note { font-size: 12.5px; color: var(--fi-muted); }
.fi-td-hl   { font-family: var(--fi-mono); font-size: 12px; color: var(--fi-amber); }

/* compact key-value table */
.fi-kv { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.fi-kv td { padding: 10px 0; border-bottom: 1px solid var(--fi-border); }
.fi-kv td:first-child { font-family: var(--fi-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--fi-muted); width: 42%; }
.fi-kv tr:last-child td { border-bottom: none; }

/* ───────────────────────────────────────────────────────────────────────────
   §9  ARTICLE BODY TYPOGRAPHY
   ─────────────────────────────────────────────────────────────────────────── */
.fi-body { min-width: 0; }
.fi-body h2 {
  font-family: var(--fi-display);
  font-size: clamp(25px, 3.1vw, 34px);
  font-weight: 600;
  color: var(--fi-dark);
  line-height: 1.2;
  margin: 44px 0 16px;
}
.fi-body h3 {
  font-family: var(--fi-display);
  font-size: clamp(20px, 2.3vw, 24px);
  font-weight: 600;
  color: var(--fi-dark);
  margin: 32px 0 12px;
}
.fi-body p  { margin: 0 0 16px; color: #2A2F2C; font-size: 18.5px; line-height: 1.75; }
.fi-body ul, .fi-body ol { margin: 0 0 18px; padding-left: 22px; }
.fi-body li { margin-bottom: 8px; }
.fi-body strong { font-weight: 600; color: var(--fi-dark); }
.fi-lead { font-size: 18px; font-weight: 300; color: #3A423D; line-height: 1.75; }

/* section label */
.fi-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--fi-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fi-green);
  margin: 0 0 16px;
}
.fi-label::after { content: ''; flex: 0 0 44px; height: 1px; background: var(--fi-border); }

.fi-hr { border: none; border-top: 1px solid var(--fi-border); margin: 40px 0; }

.fi-quote {
  border-left: 3px solid var(--fi-amber);
  background: var(--fi-field);
  border-radius: 0 var(--fi-radius-sm) var(--fi-radius-sm) 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-family: var(--fi-display);
  font-size: 18px;
  font-style: italic;
  color: var(--fi-dark);
}

/* ───────────────────────────────────────────────────────────────────────────
   §10  CALLOUTS
   ─────────────────────────────────────────────────────────────────────────── */
.fi-note, .fi-tip, .fi-warn {
  display: flex;
  gap: 14px;
  border-radius: var(--fi-radius-sm);
  padding: 16px 18px;
  margin: 22px 0;
  font-size: 14px;
  line-height: 1.6;
}
.fi-note { background: rgba(45,107,74,.10);  border: 1px solid rgba(45,107,74,.25); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); box-shadow: 0 6px 20px rgba(45,107,74,.08); }
.fi-tip  { background: rgba(212,160,23,.11); border: 1px solid rgba(212,160,23,.28); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); box-shadow: 0 6px 20px rgba(212,160,23,.08); }
.fi-warn { background: rgba(153,27,27,.08);  border: 1px solid rgba(153,27,27,.25); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); box-shadow: 0 6px 20px rgba(153,27,27,.06); }
.fi-callout-ic { flex: 0 0 auto; font-size: 17px; line-height: 1.4; }
.fi-callout-b h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--fi-dark); }
.fi-callout-b p  { margin: 0; color: #3A423D; }

/* ───────────────────────────────────────────────────────────────────────────
   §11  BUTTONS
   ─────────────────────────────────────────────────────────────────────────── */
.fi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--fi-radius-sm);
  padding: 13px 24px;
  font-family: var(--fi-body);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .15s, transform .12s;
  text-decoration: none !important;
}
.fi-btn:active { transform: translateY(1px); }
.fi-btn-primary {
  background: var(--fi-dark);
  color: var(--fi-white);
  box-shadow: 0 4px 16px rgba(14,36,8,.35);
  transition: background .15s, transform .12s, box-shadow .18s;
}
.fi-btn-primary:hover { background: #234832; box-shadow: 0 6px 22px rgba(14,36,8,.45); transform: translateY(-1px); }
.fi-btn-amber {
  background: var(--fi-cta-yellow);
  color: var(--fi-dark);
  box-shadow: 0 4px 20px rgba(255,232,92,.45), 0 1px 2px rgba(0,0,0,.1);
  transition: background .15s, transform .12s, box-shadow .18s;
}
.fi-btn-amber:hover {
  background: var(--fi-cta-yellow-2);
  box-shadow: 0 6px 28px rgba(255,232,92,.65), 0 2px 4px rgba(0,0,0,.12);
  transform: translateY(-1px);
}
.fi-btn-amber-outline { background: transparent; color: var(--fi-amber); border-color: var(--fi-amber); }
.fi-btn-amber-outline:hover { background: rgba(212,160,23,.08); }
.fi-btn-ghost { background: var(--fi-white); color: var(--fi-green); border-color: var(--fi-green); }
.fi-btn-ghost:hover { background: var(--fi-field); }
.fi-btn-onDark {
  background: rgba(212,160,23,.16);
  color: var(--fi-white);
  border-color: rgba(212,160,23,.55);
  box-shadow: 0 4px 18px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  transition: background .15s, border-color .15s, transform .12s, box-shadow .18s;
}
.fi-btn-onDark:hover {
  background: rgba(212,160,23,.28);
  border-color: rgba(212,160,23,.8);
  box-shadow: 0 6px 24px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.16);
  transform: translateY(-1px);
}
.fi-btn-green {
  background: var(--fi-green);
  color: var(--fi-white);
  box-shadow: 0 4px 16px rgba(45,107,74,.35);
  transition: background .15s, transform .12s, box-shadow .18s;
}
.fi-btn-green:hover { background: #245A3C; box-shadow: 0 6px 22px rgba(45,107,74,.45); transform: translateY(-1px); }
.fi-btn-block { width: 100%; }

/* ───────────────────────────────────────────────────────────────────────────
   §12  PILLS & BADGES
   ─────────────────────────────────────────────────────────────────────────── */
.fi-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.fi-pill {
  display: inline-block;
  background: rgba(245,247,245,.35);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(224,232,226,.8);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fi-green);
  transition: border-color .15s;
}
a.fi-pill:hover { border-color: var(--fi-green); text-decoration: none; }

.fi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(45,107,74,.1);
  color: var(--fi-green);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .03em;
}
.fi-badge-amber { background: rgba(212,160,23,.12); color: var(--fi-amber-2); }
.fi-badge-dark  { background: var(--fi-dark); color: var(--fi-white); }

/* ───────────────────────────────────────────────────────────────────────────
   §13  FAQ & TOC
   ─────────────────────────────────────────────────────────────────────────── */
.fi-faq details {
  background: var(--fi-white);
  border: 1px solid var(--fi-border);
  border-radius: var(--fi-radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.fi-faq summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fi-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.fi-faq summary::-webkit-details-marker { display: none; }
.fi-faq summary::after { content: '+'; font-family: var(--fi-mono); font-size: 18px; color: var(--fi-amber); }
.fi-faq details[open] summary::after { content: '–'; }
.fi-faq details[open] summary { border-bottom: 1px solid var(--fi-border); }
.fi-faq-a { padding: 16px 20px; font-size: 14px; color: #3A423D; }

.fi-toc {
  background: rgba(255,255,255,.32);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 8px 32px rgba(14,36,8,.08);
  border-radius: var(--fi-radius);
  padding: 20px 22px;
  align-self: start;
  position: sticky;
  top: calc(var(--fi-header-offset) + 20px);
}
.fi-toc-h { font-family: var(--fi-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fi-muted); margin: 0 0 12px; }
.fi-toc a { display: block; padding: 7px 0 7px 12px; font-size: 13.5px; color: var(--fi-green); border-left: 2px solid var(--fi-border); }
.fi-toc a:hover { color: var(--fi-dark); text-decoration: none; }
.fi-toc a.fi-active { border-left-color: var(--fi-amber); color: var(--fi-dark); font-weight: 600; }

/* ───────────────────────────────────────────────────────────────────────────
   §14  BOTTOM CTA BANNER & RELATED
   ─────────────────────────────────────────────────────────────────────────── */
.fi-ctaband {
  background:
    radial-gradient(800px 360px at 88% 0%, rgba(212,160,23,.16), transparent 55%),
    var(--fi-dark);
  border-radius: var(--fi-radius);
  color: var(--fi-white);
  padding: clamp(28px, 5vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 56px 0 0;
}
.fi-ctaband-title { font-family: var(--fi-display); font-size: clamp(22px, 3vw, 30px); font-weight: 600; margin: 0 0 6px; }
.fi-ctaband-sub { font-size: 14px; color: rgba(255,255,255,.72); margin: 0; max-width: 520px; }

.fi-related { margin-top: 48px; }

/* ───────────────────────────────────────────────────────────────────────────
   §15  RESPONSIVE
   ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .fi-hublayout { grid-template-columns: 240px minmax(0,1fr); }
  .fi-hublayout > .fi-rail { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .fi-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .fi-hublayout, .fi-artlayout { grid-template-columns: 1fr; padding-block: 32px 56px; }
  .fi-sidenav, .fi-toc { position: static; }
  .fi-hublayout > .fi-rail { grid-template-columns: 1fr; }
  .fi-grid-3 { grid-template-columns: 1fr; }
  .fi-grid-2 { grid-template-columns: 1fr; }
  .fi-hero { padding-bottom: 40px; }
  .fi-crumb { font-size: 10px; margin-bottom: 22px; }
  .fi-crumb-here { max-width: 100%; }
  .fi-stat { padding: 16px 12px; border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); }
  .fi-statbar .fi-wrap { grid-template-columns: 1fr 1fr; padding-inline: 0; }
  .fi-ctaband { flex-direction: column; align-items: flex-start; }
  .fi-btn { padding: 12px 20px; }
}
@media (max-width: 480px) {
  .fi-wiki { font-size: 15px; }
  .fi-grid-4 { grid-template-columns: 1fr; }
  .fi-statbar .fi-wrap { grid-template-columns: 1fr; }
  .fi-eyebrow { font-size: 10px; padding: 6px 12px; }
  .fi-card, .fi-acard { padding: 18px; }
}

/* ───────────────────────────────────────────────────────────────────────────
   §16  MOTION & ACCESSIBILITY
   ─────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .fi-wiki *, .fi-wiki *::before, .fi-wiki *::after {
    transition: none !important;
    animation: none !important;
  }
}