/* ============================================================
   GREAT PLAINS LENDING — COMPONENTS  v1.0
   Direction: "MERIDIAN". Requires tokens.css.
   Quiet-luxury: restraint, hairline copper rules, tabular money,
   one primary action per view, generous breathing room.
   ============================================================ */

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
/* Responsive-image reset: when width is capped, height follows the ratio instead of the
   HTML height="" attribute (which would stretch it). An inline height still wins. */
img { height: auto; }
a { color: var(--copper-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--copper); }
::selection { background: var(--copper-deep); color: #fff; }
::-moz-selection { background: var(--copper-deep); color: #fff; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section--sink { background: var(--canvas-sink); }
.section--slate { background: var(--slate); color: #EEF1F5; }
.measure { max-width: 64ch; }
.center { text-align: center; margin-inline: auto; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0 0 .5em; font-weight: var(--weight-bold); letter-spacing: var(--tracking-tight); line-height: var(--leading-heading); }
.display { font-size: var(--text-hero); line-height: var(--leading-tight); letter-spacing: var(--tracking-hero); font-weight: var(--weight-black); }
h1, .h1 { font-size: var(--text-h1); }
h2, .h2 { font-size: var(--text-h2); }
h3, .h3 { font-size: var(--text-h3); }
h4, .h4 { font-size: var(--text-h4); }
p { margin: 0 0 1em; }
.lead { font-size: var(--text-h3); line-height: 1.4; color: var(--ink-soft); font-weight: var(--weight-medium); letter-spacing: -0.01em; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.fig, .figure { font-family: var(--font-mono); font-feature-settings: "tnum" 1; letter-spacing: -0.01em; }

/* The "marigold-free" highlight: copper marker underline */
.mark {
  font-style: normal;
  background-image: linear-gradient(transparent 62%, var(--copper-tint) 62%);
  padding-inline: .05em;
}
.mark--line {
  position: relative;
  white-space: nowrap;
}
.mark--line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: 3px;
  background: var(--copper); border-radius: 2px;
}

/* ---------- EYEBROW + SIGNATURE MERIDIAN LINE ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: var(--tracking-label);
  color: var(--copper-deep); font-weight: var(--weight-medium);
  margin: 0 0 var(--sp-4);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--copper-line);
}
.eyebrow__num { color: var(--ink-faint); }

/* Signature divider: a thin meridian line with a copper node */
.meridian {
  display: flex; align-items: center; gap: var(--sp-4);
  margin-block: var(--sp-6); color: var(--line-strong);
}
.meridian::before, .meridian::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.meridian__node { width: 7px; height: 7px; transform: rotate(45deg); background: var(--copper); flex: none; }

/* ---------- BUTTONS ---------- */
.btn {
  --_bg: var(--slate); --_fg: #fff; --_bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-ui); font-size: var(--text-body); font-weight: var(--weight-semibold);
  line-height: 1; padding: .9em 1.5em; border-radius: var(--radius-md);
  background: var(--_bg); color: var(--_fg); border: 1.5px solid var(--_bd);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; }

/* Primary = burnished copper, the single action color */
.btn--primary { --_bg: var(--copper); --_fg: #fff; box-shadow: var(--shadow-xs); }
.btn--primary:hover { --_bg: var(--copper-deep); box-shadow: var(--shadow-cta); }

/* Secondary = indigo-slate, structure */
.btn--secondary { --_bg: var(--slate); --_fg: #fff; }
.btn--secondary:hover { --_bg: var(--slate-deep); box-shadow: var(--shadow-pop); }

/* Outline = quiet, on light surfaces */
.btn--outline { --_bg: transparent; --_fg: var(--slate); --_bd: var(--line-strong); }
.btn--outline:hover { --_bd: var(--slate); --_bg: var(--slate-tint); color: var(--slate); }

/* Ghost = lowest emphasis */
.btn--ghost { --_bg: transparent; --_fg: var(--copper-deep); padding-inline: .6em; }
.btn--ghost:hover { --_bg: transparent; color: var(--copper); transform: none; text-decoration: underline; text-underline-offset: 4px; }

.btn--lg { font-size: var(--text-h4); padding: 1.05em 1.9em; }
.btn--sm { font-size: var(--text-sm); padding: .7em 1.1em; }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* On dark slate sections, primary needs no change; outline inverts */
[data-theme="slate"] .btn--outline, .section--slate .btn--outline { --_fg: #fff; --_bd: rgba(255,255,255,.32); }
[data-theme="slate"] .btn--outline:hover, .section--slate .btn--outline:hover { --_bg: rgba(255,255,255,.08); --_bd: rgba(255,255,255,.6); color: #fff; }

/* ---------- TRUST BAR ---------- */
.trustbar {
  display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-6);
  align-items: center; padding: var(--sp-4) 0;
}
.trustbar span { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--text-sm); color: var(--ink-soft); font-weight: var(--weight-medium); }
.trustbar svg { width: 18px; height: 18px; stroke: var(--copper); fill: none; stroke-width: 1.75; }

/* ---------- CARDS ---------- */
.card {
  background: var(--surface); border: var(--border-card); border-radius: var(--radius-lg);
  padding: var(--sp-6); box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
/* Signature: copper meridian hairline along the top edge */
.card--meridian { position: relative; overflow: hidden; }
.card--meridian::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--copper), var(--copper-soft)); }
.card--slate { background: var(--slate); color: #EEF1F5; border-color: var(--slate-mid); }
.card--slate h3, .card--slate h4 { color: #fff; }

/* Feature card */
.feature { display: flex; flex-direction: column; gap: var(--sp-3); }
.feature h4 { margin: 0; font-size: var(--text-h4); }
.feature p { margin: 0; color: var(--ink-soft); font-size: var(--text-sm); }
.icon-chip {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center;
  border-radius: 12px; background: var(--slate-tint); color: var(--slate);
}
.icon-chip svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.75; }
.icon-chip--copper { background: var(--copper-tint); color: var(--copper-deep); }
.card--slate .icon-chip { background: rgba(255,255,255,.1); color: var(--copper-soft); }

/* ---------- GRID HELPERS ---------- */
.grid { display: grid; gap: var(--sp-5); }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2,1fr); } .grid--3 { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 940px) { .grid--4 { grid-template-columns: repeat(4,1fr); } }
.stack > * + * { margin-top: var(--sp-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }

/* ---------- BADGES / TAGS ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: var(--weight-medium);
  text-transform: uppercase; letter-spacing: var(--tracking-wide);
  padding: .35em .7em; border-radius: var(--radius-pill);
  background: var(--slate-tint); color: var(--slate);
}
.badge--copper { background: var(--copper-tint); color: var(--copper-deep); }
.badge--ok { background: var(--ok-tint); color: var(--ok); }
.badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- HEADER / NAV ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-sticky); background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: var(--weight-bold); font-size: 1.2rem; letter-spacing: -0.02em; color: var(--slate); text-decoration: none; }
.brand__glyph { width: 34px; height: 34px; flex: none; }
.brand span { color: var(--copper); }
.nav { display: none; align-items: center; gap: var(--sp-5); }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: var(--weight-medium); font-size: var(--text-sm); transition: color var(--dur-fast); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--slate); }
.nav a[aria-current="page"] { position: relative; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--copper); border-radius: 2px; }
.nav__cta { margin-left: var(--sp-2); }

/* Hamburger toggle — visible below 940px only */
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; margin: -10px -8px -10px 0;
  background: none; border: none; cursor: pointer; color: var(--slate);
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: currentColor; border-radius: 2px; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast); transform-origin: center; }
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 940px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
}

/* Mobile drawer */
@media (max-width: 939.98px) {
  .nav {
    position: fixed; inset: 70px 0 auto 0; display: flex; flex-direction: column;
    align-items: stretch; gap: 0; padding: var(--sp-3) var(--gutter) var(--sp-5);
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-pop);
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
    z-index: var(--z-dropdown);
  }
  .site-header.is-open .nav { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .nav a { padding: var(--sp-4) var(--sp-2); border-bottom: 1px solid var(--line); font-size: var(--text-body); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav__cta { margin: var(--sp-4) 0 0; justify-content: center; }
  .nav a.nav__cta { border-bottom: none; color: #fff; }
}

/* ---------- HERO ---------- */
.hero { padding-block: clamp(3rem, 2rem + 6vw, 6.5rem); }
.hero__grid { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 940px) { .hero__grid { grid-template-columns: 1.05fr .95fr; gap: var(--sp-8); } }
.hero h1 { margin-bottom: var(--sp-5); }
.hero .lead { margin-bottom: var(--sp-6); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }
.hint { font-size: var(--text-sm); color: var(--ink-faint); }
.hint--check { display: inline-flex; align-items: center; gap: .45rem; }
.hint--check svg { width: 15px; height: 15px; stroke: var(--ok); fill: none; stroke-width: 2; }

/* ---------- RATE / CALCULATOR WIDGET ---------- */
.quote {
  background: var(--surface-pure); border: var(--border-card); border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); box-shadow: var(--shadow-pop);
}
.quote__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.quote__amount { font-family: var(--font-mono); font-size: clamp(2.4rem, 1.5rem + 3vw, 3.2rem); font-weight: var(--weight-semibold); letter-spacing: -0.02em; color: var(--slate); }
.field { margin-bottom: var(--sp-5); }
.label { display: block; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--ink-soft); margin-bottom: var(--sp-2); }
.input, .select {
  width: 100%; font-family: var(--font-ui); font-size: var(--text-body); color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: .8em 1em; transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.input:focus, .select:focus { border-color: var(--copper); box-shadow: 0 0 0 3px var(--copper-tint); outline: none; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%234A535B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1em center; padding-right: 2.6em; }

/* Range slider — copper thumb */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--slate-tint); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--copper); border: 4px solid var(--surface-pure); box-shadow: var(--shadow-card); cursor: grab; transition: transform var(--dur-fast); }
.range::-webkit-slider-thumb:active { transform: scale(1.08); cursor: grabbing; }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--copper); border: 4px solid var(--surface-pure); cursor: grab; }
.range__minmax { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-faint); margin-top: var(--sp-2); }

/* ---------- STEPS ---------- */
.steps { counter-reset: step; display: grid; gap: var(--sp-5); }
.step { display: flex; gap: var(--sp-4); align-items: flex-start; }
.step__num { counter-increment: step; flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--copper-line); color: var(--copper-deep); font-family: var(--font-mono); font-weight: var(--weight-semibold); }
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h4 { margin: .2em 0 .3em; }
.step p { margin: 0; color: var(--ink-soft); font-size: var(--text-sm); }

/* ---------- LEDGER TABLE ---------- */
.ledger { width: 100%; border-collapse: collapse; font-size: var(--text-sm); background: var(--surface); border: var(--border-card); border-radius: var(--radius-md); overflow: hidden; }
.ledger th { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-wide); text-align: left; background: var(--slate); color: #E8ECF2; padding: .9rem 1.1rem; font-weight: var(--weight-medium); }
.ledger td { padding: .85rem 1.1rem; border-top: 1px solid var(--line); }
.ledger tbody tr:nth-child(even) { background: var(--canvas-sink); }
.ledger td.num { font-family: var(--font-mono); font-feature-settings: "tnum" 1; text-align: right; color: var(--slate); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- NOTES / CALLOUTS ---------- */
.note { border: 1px solid var(--line); border-left: 3px solid var(--slate-mid); border-radius: var(--radius-sm); padding: var(--sp-4) var(--sp-5); background: var(--surface); font-size: var(--text-sm); }
.note--info { background: var(--slate-tint); border-left-color: var(--slate); }
.note--warn { background: var(--warn-tint); border-left-color: var(--warn); }
.note--copper { background: var(--copper-tint); border-left-color: var(--copper); }
.note strong { color: var(--ink); }

/* Key takeaways box */
.takeaways { background: var(--copper-tint); border: 1px solid var(--copper-line); border-radius: var(--radius-md); padding: var(--sp-5) var(--sp-6); }
.takeaways h4 { margin: 0 0 var(--sp-3); display: flex; align-items: center; gap: .5rem; }
.takeaways ul { margin: 0; padding-left: 1.2em; }
.takeaways li { margin-bottom: .4em; }

/* ---------- FAQ ---------- */
.faq { border: var(--border-card); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: none; }
.faq summary { list-style: none; cursor: pointer; padding: var(--sp-5); font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-h4); display: flex; justify-content: space-between; gap: var(--sp-4); align-items: center; transition: color var(--dur-fast); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--copper-deep); }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--copper); font-size: 1.4em; transition: transform var(--dur-base) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 var(--sp-5) var(--sp-5); color: var(--ink-soft); }
.faq__body p { margin: 0; }

/* ---------- STAT STRIP ---------- */
.stat { text-align: center; }
.stat__num { font-family: var(--font-mono); font-size: clamp(2rem, 1.2rem + 2.4vw, 3rem); font-weight: var(--weight-semibold); color: var(--copper-soft); letter-spacing: -0.02em; }
.stat__label { font-size: var(--text-sm); color: var(--ink-soft); }
.section--slate .stat__label { color: #B6C0D0; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--slate-deep); color: #C7D0DD; padding: var(--sp-8) 0 var(--sp-6); }
.foot-grid { display: grid; gap: var(--sp-6); grid-template-columns: 1fr; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--sp-7); } }
.site-footer h5 { font-family: var(--font-mono); text-transform: uppercase; font-size: var(--text-xs); letter-spacing: var(--tracking-label); color: var(--copper-soft); margin: 0 0 1.1em; font-weight: var(--weight-medium); }
.site-footer a { color: #C7D0DD; text-decoration: none; display: block; padding: .28em 0; font-size: var(--text-sm); transition: color var(--dur-fast); }
.site-footer a:hover { color: #fff; }
.foot-brand .brand { color: #fff; }
.foot-disclaimer { font-size: var(--text-sm); color: #8E9BAE; line-height: var(--leading-legal); max-width: 42ch; margin-top: var(--sp-4); }
.foot-legal { margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid #2A3A52; font-size: var(--text-xs); color: #8E9BAE; line-height: var(--leading-legal); }
/* Footer "Important Disclosures" — repeated boilerplate; data-nosnippet keeps it out of search snippets. No rules between paragraphs. */
.foot-disclosures { margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid #2A3A52; font-size: var(--text-xs); color: #8E9BAE; line-height: var(--leading-legal); }
.foot-disclosures p { margin: 0 0 1em; }
.foot-disclosures p:last-child { margin-bottom: 0; }
.foot-disclosures strong { color: #C7D0DD; font-weight: var(--weight-semibold); }

/* ---------- BLOG: post cards ---------- */
.post-card { display: flex; flex-direction: column; background: var(--surface); border: var(--border-card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.post-card__media { aspect-ratio: 16 / 9; height: auto; object-fit: cover; width: 100%; background: var(--canvas-sink); display: block; }
.post-card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.post-card__title { font-family: var(--font-display); font-size: var(--text-h4); line-height: 1.25; margin: 0; letter-spacing: var(--tracking-tight); }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--copper-deep); }
.post-card__excerpt { color: var(--ink-soft); font-size: var(--text-sm); margin: 0; flex: 1; }
.post-meta { display: flex; align-items: center; gap: var(--sp-3); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-faint); text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.post-meta .cat { color: var(--copper-deep); font-weight: var(--weight-medium); }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
/* Featured: media left, body right on wide screens */
.post-feature { display: grid; gap: 0; background: var(--surface); border: var(--border-card); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-card); }
.post-feature .post-card__media { aspect-ratio: 16 / 10; height: 100%; }
.post-feature__body { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); display: flex; flex-direction: column; gap: var(--sp-4); justify-content: center; }
.post-feature__title { font-family: var(--font-display); font-size: var(--text-h2); line-height: var(--leading-heading); margin: 0; letter-spacing: var(--tracking-tight); }
.post-feature__title a { color: var(--ink); text-decoration: none; }
.post-feature__title a:hover { color: var(--copper-deep); }
@media (min-width: 820px) { .post-feature { grid-template-columns: 1.1fr 1fr; } }

/* ---------- BLOG: article / prose ---------- */
.breadcrumb { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-faint); text-transform: uppercase; letter-spacing: var(--tracking-wide); display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--copper-deep); }
.breadcrumb .sep { color: var(--line-strong); }
.byline { display: flex; align-items: center; gap: var(--sp-3); }
.byline__avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--slate); color: #fff; display: grid; place-items: center; font-family: var(--font-mono); font-weight: var(--weight-semibold); font-size: var(--text-sm); }
.byline__who { font-weight: var(--weight-semibold); color: var(--ink); font-size: var(--text-sm); }
.byline__meta { font-size: var(--text-xs); color: var(--ink-faint); font-family: var(--font-mono); }

.prose { font-size: var(--text-body-lg); line-height: 1.6; color: var(--ink-soft); }
.prose > * { margin: 0; }                /* reset, so the gap below is the single source of spacing */
.prose > * + * { margin-top: 1.6em; }    /* paragraph gap = full whitespace (~30px) vs 11px line gap → blocks read apart */
/* Section separators: a hairline rule above each H2 breaks up the wall of text */
.prose h2 { font-size: var(--text-h2); color: var(--ink); line-height: var(--leading-heading); margin-top: 2.4em; padding-top: 1.5em; border-top: 1px solid var(--line); letter-spacing: var(--tracking-tight); }
.prose h2:first-child { margin-top: .2em; padding-top: 0; border-top: none; }
.prose h3 { font-size: var(--text-h3); color: var(--ink); margin-top: 1.9em; letter-spacing: var(--tracking-tight); }
.prose h4 { font-size: var(--text-h4); color: var(--ink); margin-top: 1.6em; }
.prose a { color: var(--copper-deep); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--copper); }
.prose ul, .prose ol { margin: 0; padding-left: 1.4em; }
.prose li { margin-bottom: .6em; padding-left: .2em; }
.prose li::marker { color: var(--copper); }
.prose strong { color: var(--ink); font-weight: var(--weight-semibold); }
.prose blockquote { margin: 1.8em 0; padding: var(--sp-5) var(--sp-6); border-left: 3px solid var(--copper); background: var(--copper-tint); border-radius: var(--radius-sm); color: var(--ink); font-size: 1.05em; }
.prose blockquote p { margin: 0; }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: var(--radius-md); width: 100%; }
.prose figcaption { font-size: var(--text-sm); color: var(--ink-faint); margin-top: .6em; text-align: center; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose .table-wrap, .prose .takeaways, .prose .note, .prose .faq { margin-block: 1.8em; }
/* Backstop: hide stray FontAwesome <i> icons carried over from legacy content */
.prose i.fa, .prose i.fas, .prose i.far, .prose i.fab, .prose i[class^="fa-"], .prose i[class*=" fa-"] { display: none; }
/* In-article FAQ heading spacing */
.prose .faq { border-top: none; }
.prose h2 + .faq { margin-top: 1.2em; }

/* Article CTA banner (kept OUTSIDE .prose per content rules) */
.article-cta { background: var(--slate); color: #EEF1F5; border-radius: var(--radius-xl); padding: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-5); position: relative; overflow: hidden; }
.article-cta::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--copper), var(--copper-soft)); }
.article-cta__text { flex: 1 1 320px; }
.article-cta h3 { color: #fff; margin: 0 0 .3em; font-size: var(--text-h3); }
.article-cta p { margin: 0; color: #B6C0D0; font-size: var(--text-sm); }
.article-cta .btn { flex: none; }
@media (max-width: 560px) {
  /* stack tightly: in a flex column the text's flex-basis (320px) is read as
     HEIGHT, which combined with space-between pushed the button far down. */
  .article-cta { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: var(--sp-4); }
  .article-cta__text { flex: 0 0 auto; }
  .article-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- UTILITIES ---------- */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.mb-2{margin-bottom:var(--sp-2)}.mb-3{margin-bottom:var(--sp-3)}.mb-4{margin-bottom:var(--sp-4)}
.mb-5{margin-bottom:var(--sp-5)}.mb-6{margin-bottom:var(--sp-6)}.mb-7{margin-bottom:var(--sp-7)}
.mt-4{margin-top:var(--sp-4)}.mt-5{margin-top:var(--sp-5)}.mt-6{margin-top:var(--sp-6)}

/* ---------- TABLE OF CONTENTS ---------- */
.toc{margin:var(--sp-5) 0 var(--sp-6);background:var(--surface-pure);border:1px solid var(--line);border-radius:var(--radius-lg);padding:var(--sp-2) var(--sp-5)}
.toc details>summary{font-family:var(--font-display,inherit);font-weight:600;font-size:.78rem;letter-spacing:.02em;text-transform:uppercase;color:var(--ink-soft);cursor:pointer;list-style:none;display:flex;align-items:center;gap:var(--sp-2);padding:var(--sp-2) 0}
.toc details>summary::-webkit-details-marker{display:none}
.toc details>summary::after{content:"";width:.45em;height:.45em;border-right:2px solid var(--ink-faint);border-bottom:2px solid var(--ink-faint);transform:rotate(45deg);margin-left:auto;transition:transform .2s}
.toc details[open]>summary::after{transform:rotate(-135deg)}
.toc ol{margin:var(--sp-2) 0;padding:0;list-style:none;counter-reset:toc;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px var(--sp-6);font-size:.82rem;color:var(--ink-soft)}
.toc li{line-height:1.35;counter-increment:toc;display:flex;gap:.45em}
.toc li::before{content:counter(toc) ".";color:var(--copper-deep);font-variant-numeric:tabular-nums;font-weight:600;flex:none}
@media (max-width:640px){.toc ol{grid-template-columns:1fr}}
.toc a{color:var(--ink-soft);text-decoration:none;border-bottom:1px solid transparent}
.toc a:hover{color:var(--copper-deep);border-bottom-color:var(--copper-line)}
.prose h2{scroll-margin-top:90px}
html{scroll-behavior:smooth}

/* ---------- AUTHORITATIVE SOURCES ---------- */
.sources{margin-top:var(--sp-7);padding:var(--sp-5) var(--sp-6);background:var(--surface-pure);border:1px solid var(--line);border-left:3px solid var(--copper);border-radius:var(--radius-lg)}
.sources h2{font-family:var(--font-display,inherit);font-size:1.15rem;margin:0 0 var(--sp-4);color:var(--ink)}
.sources ul{list-style:none;margin:0;padding:0;display:grid;gap:var(--sp-3)}
.sources li{position:relative;padding-left:1.4em;line-height:1.5;font-size:.95rem}
.sources li::before{content:"\2197";position:absolute;left:0;top:0;color:var(--copper-deep);font-weight:700}
.sources a{color:var(--ink);text-decoration:none;border-bottom:1px solid var(--copper-line)}
.sources a:hover{color:var(--copper-deep);border-bottom-color:var(--copper-deep)}
.sources__note{margin:var(--sp-4) 0 0;font-size:.8rem;color:var(--ink-faint);line-height:1.5}
