/* ==========================================================================
   KeepTheLot — main stylesheet (loaded non-render-blocking).
   Critical above-the-fold rules live in critical.css and are inlined.
   ========================================================================== */

/* ---- Long-form article typography --------------------------------------- */
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  margin-top: 2.5em;
  margin-bottom: .1em;
  padding-top: .35em;
  scroll-margin-top: 6rem;
}
.prose h3 { margin-top: 1.9em; margin-bottom: .1em; scroll-margin-top: 6rem; }
.prose h2 + p, .prose h3 + p, .prose h2 + ul, .prose h3 + ul { margin-top: .7em; }
.prose p { line-height: 1.7; }
/* Article subheads sit a step below section headings: in a bold sans, a
   full-size H2 every few paragraphs would shout. */
article .prose > h2, .faq-section > h2 { font-size: var(--step-2); line-height: 1.2; letter-spacing: -0.02em; }
article .prose > h3 { font-size: var(--step-1); line-height: 1.3; letter-spacing: -0.01em; }
.prose ul, .prose ol { padding-left: 1.35rem; display: grid; gap: .55rem; }
.prose li::marker { color: var(--deep-blue); }
.prose strong { font-weight: 700; color: var(--ink-deep); }
.prose blockquote {
  background: var(--bg-tint);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--ink-muted);
  font-style: italic;
}
.prose hr { border: 0; border-top: 1px solid var(--border); margin-block: 2.5rem; }
.prose a { font-weight: 500; }

.heading-anchor {
  opacity: 0; text-decoration: none; margin-left: .4rem; color: var(--pale-blue);
  font-family: var(--font-body); font-weight: 400;
}
h2:hover .heading-anchor, h3:hover .heading-anchor, .heading-anchor:focus { opacity: 1; }

/* ---- Tables ------------------------------------------------------------- */
.table-scroll { overflow-x: auto; margin-block: 1.5rem; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 32rem; }
.prose th, .prose td { text-align: left; padding: .8rem .9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose thead th { background: var(--ice-blue); color: var(--ink-deep); font-weight: 700; border-bottom: 2px solid var(--border-strong); }
.prose tbody tr:nth-child(even) { background: #F7FAFF; }
.prose caption { caption-side: bottom; padding-top: .6rem; font-size: .875rem; color: var(--ink-muted); text-align: left; }

/* ---- TL;DR / answer box (AI-overview citation bait) --------------------- */
.tldr {
  background: var(--ice-blue);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin-block: 1.75rem;
}
.tldr h2, .tldr h3 {
  font-family: var(--font-body); font-size: .8125rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--deep-blue);
  margin: 0 0 .75rem;
}
.tldr ul { list-style: none; padding: 0; display: grid; gap: .65rem; margin: 0; }
.tldr li { padding-left: 1.75rem; position: relative; }
.tldr li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: .7rem; height: .7rem; border-radius: 50%;
  background: var(--aqua); border: 2px solid var(--deep-blue);
}

/* ---- Key-figure callouts ------------------------------------------------ */
.callout {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.15rem 1.35rem; margin-block: 1.75rem; background: var(--white);
  box-shadow: var(--shadow-sm);
}
.callout__label {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--deep-blue); display: block; margin-bottom: .4rem;
}
.callout--figure { background: linear-gradient(180deg, #F3F8FF, var(--white)); }
.callout--warning { border-color: #EBCDB8; background: #FDF6F1; }
.callout--warning .callout__label { color: #8F4218; }
.callout--tip { background: var(--bg-tint); }
.callout p + p { margin-top: .7rem; }

.figure-inline {
  white-space: nowrap; font-weight: 700; color: var(--ink-deep);
  background: linear-gradient(transparent 60%, var(--cyan) 60%);
  padding-inline: .12em;
}

/* ---- Definition blocks (AI extraction) ---------------------------------- */
.definition {
  border-radius: var(--radius); border: 1px solid var(--border-strong);
  padding: 1.2rem 1.4rem; margin-block: 1.75rem; background: var(--bg-tint);
}
.definition dt { font-weight: 700; font-family: var(--font-display); font-size: var(--step-1); color: var(--ink-deep); }
.definition dd { margin: .4rem 0 0; }
.definition dd + dt { margin-top: 1.1rem; }

/* ---- Byline ------------------------------------------------------------- */
.byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  padding: 1rem 0; margin-block: 1.5rem;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  font-size: .925rem; color: var(--ink-muted);
}
.byline__item { display: inline-flex; align-items: center; gap: .4rem; }
.byline__item strong { color: var(--ink); font-weight: 600; }
.byline__sep { color: var(--pale-blue); }
.byline__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ice-blue); }
.byline--foot { border-bottom: 0; margin-top: 2.5rem; }
.byline__pending {
  font-size: .85rem; color: var(--ink-muted); background: var(--bg-tint);
  border: 1px dashed var(--border-strong); border-radius: 999px; padding: .2rem .7rem;
}

/* ---- Table of contents -------------------------------------------------- */
.toc {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.4rem; margin-block: 2rem;
}
.toc > summary {
  font-family: var(--font-body); font-weight: 700; font-size: .8125rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--deep-blue);
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.toc > summary::-webkit-details-marker { display: none; }
.toc > summary::after { content: '＋'; font-size: 1rem; color: var(--pale-blue); }
.toc[open] > summary::after { content: '－'; }
.toc ol { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { text-decoration: none; color: var(--ink); display: inline-flex; gap: .6rem; line-height: 1.4; }
.toc a::before { content: counter(toc) '.'; color: var(--deep-blue); font-weight: 700; flex: none; }
.toc a:hover { color: var(--deep-blue); text-decoration: underline; }
.toc ol ol { margin: .5rem 0 .25rem 1.35rem; }
.toc ol ol a::before { content: '–'; }

/* ---- Cards -------------------------------------------------------------- */
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card h3 { font-size: var(--step-1); letter-spacing: -0.015em; }
.card h3 a { text-decoration: none; color: inherit; }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.card { position: relative; }
.card p { color: var(--ink-muted); font-size: .975rem; }
.card__icon {
  width: 52px; height: 52px; padding: 12px; border-radius: 14px; flex: none;
  color: var(--deep-blue); background: var(--ice-blue); border: 1px solid var(--border);
}
.card__meta { margin-top: auto; padding-top: .5rem; font-size: .85rem; color: var(--ink-muted); display: flex; gap: .5rem; flex-wrap: wrap; }
.card__link { font-weight: 500; color: var(--deep-blue); }

.card--flat { box-shadow: none; }
.card--accent { background: linear-gradient(180deg, var(--ice-blue), var(--white)); }

/* ---- Guide list --------------------------------------------------------- */
.guide-list { list-style: none; padding: 0; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.guide-list li { background: var(--white); }
.guide-list a { display: block; padding: 1.1rem 1.3rem; text-decoration: none; color: var(--ink); }
.guide-list a:hover { background: var(--bg-tint); }
.guide-list__title { font-weight: 600; color: var(--ink-deep); display: block; margin-bottom: .2rem; }
.guide-list__desc { font-size: .925rem; color: var(--ink-muted); }
.guide-list__meta { font-size: .8125rem; color: var(--ink-muted); margin-top: .35rem; }

/* ---- CTA blocks --------------------------------------------------------- */
.cta {
  background: var(--brand);
  color: var(--white); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem); margin-block: 2.5rem;
  display: grid; gap: 1rem;
}
.cta h2, .cta h3 { color: var(--white); font-size: var(--step-2); }
.cta p { color: var(--white); max-width: 40rem; }
.cta .btn--primary { background: var(--white); color: var(--deep-blue); }
.cta .btn--primary:hover { background: var(--ice-blue); color: var(--brand-hover); }
.cta .btn--secondary { color: var(--white); border-color: rgba(251,254,254,.55); }
.cta .btn--secondary:hover { background: rgba(251,254,254,.12); color: var(--white); border-color: var(--white); }
.cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta__small { font-size: .875rem; color: var(--white); }
.cta--soft { background: var(--ice-blue); color: var(--ink); border: 1px solid var(--border); }
.cta--soft h2, .cta--soft h3 { color: var(--ink-deep); }
.cta--soft p { color: var(--ink-muted); }
.cta--soft .btn--primary { background: var(--deep-blue); color: var(--white); }
.cta--soft .btn--primary:hover { background: var(--brand-hover); }

/* ---- FAQ ---------------------------------------------------------------- */
.faq { display: grid; gap: .75rem; margin-top: 1.5rem; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.faq__item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq__q {
  font-family: var(--font-display); font-size: 1.125rem; line-height: 1.35; letter-spacing: -0.01em;
  font-weight: 600; color: var(--ink-deep);
  padding: 1.05rem 3rem 1.05rem 1.25rem; cursor: pointer; position: relative; list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: ''; position: absolute; right: 1.25rem; top: 1.55rem;
  width: .65rem; height: .65rem; border-right: 2px solid var(--deep-blue); border-bottom: 2px solid var(--deep-blue);
  transform: rotate(45deg); transition: transform .15s ease;
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg); }
.faq__a { padding: 0 1.25rem 1.25rem; color: var(--ink); }
.faq__a > * + * { margin-top: .8rem; }

/* ---- Sources ------------------------------------------------------------ */
.sources { margin-top: 2.5rem; padding: 1.35rem 1.5rem; background: var(--bg-tint); border: 1px solid var(--border); border-radius: var(--radius); }
.sources h2 { font-family: var(--font-body); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--deep-blue); margin: 0 0 .8rem; }
.sources ol { padding-left: 1.2rem; display: grid; gap: .5rem; font-size: .925rem; }
.sources li { color: var(--ink-muted); }
.sources a { color: var(--link); }
.sources__note { margin-top: .9rem; font-size: .85rem; color: var(--ink-muted); }

/* ---- Disclaimers -------------------------------------------------------- */
.disclaimer {
  margin-top: 2rem; padding: 1.1rem 1.3rem; font-size: .925rem;
  color: var(--ink-muted); background: var(--white);
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
}
.disclaimer strong { color: var(--ink); }
.independence {
  background: var(--ice-blue); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem; font-size: .9375rem;
  color: var(--ink); margin-bottom: 1.75rem;
}
.independence strong { display: block; margin-bottom: .25rem; color: var(--ink-deep); }

/* ---- Trust bar ---------------------------------------------------------- */
.trustbar { border-block: 1px solid var(--border); background: var(--white); }
.trustbar__list {
  list-style: none; padding: 1.1rem 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: center;
  font-size: .9375rem; color: var(--ink-muted);
}
.trustbar__list li { display: inline-flex; align-items: center; gap: .5rem; }
.trustbar__tick { width: 18px; height: 18px; color: var(--deep-blue); flex: none; }

/* ---- Steps (flagship listicle + how it works) --------------------------- */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1.25rem; }
.steps > li {
  counter-increment: step; position: relative;
  padding: 1.4rem 1.5rem 1.4rem 4.25rem;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 1.35rem; top: 1.35rem;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--deep-blue); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  display: grid; place-items: center;
}
.steps h3 { margin-bottom: .4rem; font-size: var(--step-1); }
.steps p + p, .steps p + ul { margin-top: .7rem; }

/* ---- Forms -------------------------------------------------------------- */
.form { display: grid; gap: 1.35rem; max-width: 38rem; }
.field { display: grid; gap: .4rem; }
.field > label, .fieldset > legend { font-weight: 600; color: var(--ink-deep); }
.field__hint { font-size: .875rem; color: var(--ink-muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="number"], .field select, .field textarea {
  width: 100%; padding: .8rem .95rem; min-height: 48px;
  border: 2px solid var(--border-strong); border-radius: 10px;
  background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--deep-blue); outline-offset: 1px; }
.field textarea { min-height: 7rem; resize: vertical; }
.field--error input, .field--error select, .field--error textarea { border-color: #A6371A; background: #FDF6F4; }
.field__error { color: #8F2E14; font-size: .9rem; font-weight: 500; }
.fieldset { border: 0; padding: 0; display: grid; gap: .65rem; }
.choice-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.choice {
  display: flex; align-items: flex-start; gap: .7rem;
  border: 2px solid var(--border); border-radius: 12px; padding: .85rem 1rem;
  background: var(--white); cursor: pointer; min-height: 48px;
}
.choice:hover { border-color: var(--soft-blue); background: var(--bg-tint); }
.choice input { margin-top: .2rem; width: 1.15rem; height: 1.15rem; accent-color: var(--deep-blue); flex: none; }
.choice:has(input:checked) { border-color: var(--deep-blue); background: var(--ice-blue); }
.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .9375rem; color: var(--ink-muted); }
.consent input { margin-top: .25rem; width: 1.15rem; height: 1.15rem; accent-color: var(--deep-blue); flex: none; }
.form__errors {
  border: 2px solid #A6371A; background: #FDF6F4; border-radius: var(--radius);
  padding: 1rem 1.25rem; color: #7A2711;
}
.form__errors ul { margin: .5rem 0 0 1.1rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Calculator --------------------------------------------------------- */
.calc { display: grid; gap: 1.5rem; }
@media (min-width: 64rem) { .calc { grid-template-columns: 1.05fr .95fr; align-items: start; } }
.calc__panel {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-sm);
}
.calc__result {
  background: linear-gradient(160deg, var(--ice-blue), var(--white));
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem); position: sticky; top: 5.5rem;
}
.calc__headline { font-family: var(--font-display); font-size: var(--step-4); color: var(--ink-deep); line-height: 1.05; }
.calc__headline-label { font-size: .95rem; color: var(--ink-muted); margin-bottom: .25rem; }
.calc__breakdown { list-style: none; padding: 0; margin-top: 1.35rem; display: grid; gap: .1rem; }
.calc__breakdown li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--border); }
.calc__breakdown li:last-child { border-bottom: 0; }
.calc__breakdown .val { font-weight: 700; color: var(--ink-deep); white-space: nowrap; }
.calc__breakdown .total { background: var(--white); border-radius: 8px; padding: .75rem; border: 1px solid var(--border-strong); }
.calc__note { font-size: .875rem; color: var(--ink-muted); margin-top: 1rem; }
.calc__verified { font-size: .8125rem; color: var(--ink-muted); margin-top: .75rem; }
.money-input { position: relative; }
.money-input__prefix { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--ink-muted); font-weight: 600; }
.money-input input { padding-left: 2rem !important; }
.calc__caveats { margin-top: 1.5rem; display: grid; gap: .75rem; }
.calc-noscript { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; background: var(--bg-tint); }

/* ---- Calculator: before / after comparison ------------------------------ */
.compare { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; margin-top: 1.5rem; }
@media (max-width: 30rem) { .compare { grid-template-columns: 1fr; } }
.compare__col {
  border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--white);
  border: 1px solid var(--border);
}
.compare__col--bad { border-color: #EBCDB8; background: #FDF7F3; }
.compare__col--good { border-color: var(--border-strong); background: linear-gradient(180deg, #F0F6FE, var(--white)); }
.compare__label {
  font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: .35rem;
}
.compare__col--bad .compare__label { color: #8F4218; }
.compare__col--good .compare__label { color: var(--deep-blue); }
.compare__amount {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.125rem); line-height: 1.05;
  color: var(--ink-deep); font-weight: 600;
}
.compare__caption { font-size: .85rem; color: var(--ink-muted); margin-top: .15rem; }
.compare__rows { list-style: none; padding: 0; margin-top: .85rem; display: grid; gap: .4rem; font-size: .9rem; }
.compare__rows li { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; }
.compare__rows span:first-child { color: var(--ink-muted); }
.compare__bad { font-weight: 700; color: #8F4218; white-space: nowrap; }
.compare__good { font-weight: 700; color: var(--deep-blue); white-space: nowrap; }

.compare__delta {
  margin-top: .75rem; padding: 1.2rem 1.35rem;
  border-radius: var(--radius); background: var(--deep-blue); color: var(--white);
}
.compare__delta-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: .2rem;
}
.compare__delta-amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); line-height: 1.02; font-weight: 700;
}
.compare__delta-rows { list-style: none; padding: 0; margin-top: .9rem; display: grid; gap: .75rem; font-size: .95rem; }
.compare__delta-rows li { padding-left: 1.4rem; position: relative; color: #E7EFFE; }
.compare__delta-rows li::before {
  content: '+'; position: absolute; left: 0; top: -.05em;
  font-weight: 700; color: var(--cyan); font-size: 1.15rem;
}
.compare__delta-rows strong { color: var(--white); }
.compare__because { display: block; font-size: .8125rem; color: #C4D9FD; margin-top: .15rem; line-height: 1.45; }

.calc__detail { margin-top: 1.25rem; border-top: 1px solid var(--border); padding-top: .9rem; }
.calc__detail > summary {
  cursor: pointer; font-size: .875rem; font-weight: 600; color: var(--deep-blue);
  list-style: none;
}
.calc__detail > summary::-webkit-details-marker { display: none; }
.calc__detail > summary::before { content: '▸ '; }
.calc__detail[open] > summary::before { content: '▾ '; }

/* ---- Expert cards ------------------------------------------------------- */
.expert { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 46rem) { .expert { grid-template-columns: 12rem 1fr; } }
.expert__photo { border-radius: var(--radius-lg); border: 1px solid var(--border); width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--ice-blue); }
.credential-list { list-style: none; padding: 0; display: grid; gap: .5rem; margin-top: 1rem; }
.credential-list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.tag-list li { background: var(--ice-blue); border: 1px solid var(--border); border-radius: 999px; padding: .3rem .8rem; font-size: .875rem; color: var(--ink); }

.empty-state {
  border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
  padding: 2rem; text-align: center; background: var(--bg-tint); color: var(--ink-muted);
}

/* ---- Related links ------------------------------------------------------ */
.related { margin-top: 2.5rem; }
.related h2 { font-size: var(--step-2); margin-bottom: 1rem; }
.related__list { list-style: none; padding: 0; display: grid; gap: .6rem; }
.related__list a {
  display: flex; align-items: center; gap: .75rem; padding: .9rem 1.1rem;
  border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none;
  color: var(--ink); background: var(--white);
}
.related__list a:hover { border-color: var(--soft-blue); background: var(--bg-tint); }
.related__list a::before { content: '→'; color: var(--deep-blue); font-weight: 700; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--brand-deep); color: var(--white); margin-top: clamp(3rem, 7vw, 5rem); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__top { padding-block: clamp(2.5rem, 5vw, 3.5rem); display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.site-footer h2 { color: var(--white); font-family: var(--font-body); font-size: .8125rem; letter-spacing: .09em; text-transform: uppercase; margin-bottom: .9rem; opacity: .85; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .55rem; font-size: .9375rem; }
.site-footer__brand { max-width: 22rem; }
.site-footer__brand p { color: var(--white); font-size: .9375rem; margin-top: .75rem; }
.site-footer__bottom { border-top: 1px solid rgba(251,254,254,.22); padding-block: 1.5rem 2.5rem; font-size: .875rem; color: var(--white); display: grid; gap: .75rem; }
.site-footer__legal { max-width: 60rem; }
.site-footer .brand { color: var(--white); }
.site-footer .brand:hover { color: var(--cyan); }

/* ---- Cookie banner ------------------------------------------------------ */
.cookie-banner {
  position: fixed; inset: auto 1rem 1rem; z-index: 60;
  max-width: 34rem; margin-inline: auto;
  background: var(--white); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: 1.25rem 1.35rem; display: none;
}
.cookie-banner[data-show="true"] { display: grid; gap: .9rem; }
.cookie-banner p { font-size: .9375rem; color: var(--ink-muted); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-banner .btn { padding: .7rem 1.2rem; font-size: .95rem; }

/* ---- Utilities ---------------------------------------------------------- */
.stack > * + * { margin-top: 1.15rem; }
.stack-lg > * + * { margin-top: 2rem; }
.text-muted { color: var(--ink-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.section-label {
  font-size: .8125rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--deep-blue); margin-bottom: .6rem; display: block;
}
.lede { font-size: var(--step-1); color: var(--ink-muted); }
.pill {
  display: inline-block; background: var(--ice-blue); border: 1px solid var(--border);
  border-radius: 999px; padding: .25rem .75rem; font-size: .8125rem; color: var(--ink-muted);
}
.updated-note { font-size: .875rem; color: var(--ink-muted); }

@media print {
  .site-header, .site-footer, .cta, .cookie-banner, .nav, .toc { display: none !important; }
  body { color: #000; font-size: 11pt; }
  a::after { content: ' (' attr(href) ')'; font-size: 9pt; }
}

/* ---- Guide cards with photography (homepage + /guides/) ----------------- */
.gcard-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 40rem) { .gcard-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .gcard-grid { grid-template-columns: repeat(4, 1fr); } }
.gcard {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.gcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.gcard__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ice-blue); }
.gcard__body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.gcard__topic {
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--deep-blue);
}
.gcard h3 { font-size: 1.1875rem; line-height: 1.25; letter-spacing: -0.015em; }
.gcard h3 a { text-decoration: none; color: inherit; }
.gcard h3 a::after { content: ''; position: absolute; inset: 0; }
.gcard:hover h3 a { color: var(--deep-blue); }
.gcard p { color: var(--ink-muted); font-size: .9375rem; line-height: 1.5; }
.gcard__meta { margin-top: auto; padding-top: .35rem; font-size: .8125rem !important; }
@media (max-width: 39.99rem) {
  .gcard { flex-direction: row; align-items: stretch; }
  .gcard__img { width: 7.25rem; aspect-ratio: auto; height: auto; flex: none; }
  .gcard__body { padding: .85rem 1rem; gap: .3rem; }
  .gcard h3 { font-size: 1.1rem; }
  .gcard__summary { display: none; }
}
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.section-head .lede { max-width: 44rem; margin-top: .75rem; }

/* ---- Article hero image -------------------------------------------------- */
.article-hero { margin-block: 1.5rem; }
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); background: var(--ice-blue); }
.article-hero figcaption { margin-top: .5rem; font-size: .8125rem; color: var(--ink-muted); }
.article-hero figcaption a { color: inherit; }

/* Trust bar reads as a checklist on phones. */
@media (max-width: 39.99rem) {
  .trustbar__list { flex-direction: column; align-items: flex-start; gap: .55rem; }
}
