/* ===== Fair Go Calculators — shared styles ===== */
:root {
  /* Base colours: overridden per site from Admin → Appearance. */
  --brand: #0f5c4d;
  --brand-dark: #0b4339;
  --accent: #e8a317;
  --bg: #f7f5ef;
  --surface: #ffffff;
  --ink: #18231f;
  --footer: #10201b;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  /* Derived tones */
  --surface-2: color-mix(in srgb, var(--bg) 70%, var(--ink) 4%);
  --ink-soft: color-mix(in srgb, var(--ink) 78%, var(--surface));
  --muted: color-mix(in srgb, var(--ink) 55%, var(--surface));
  --line: color-mix(in srgb, var(--ink) 12%, var(--bg));
  --brand-2: color-mix(in srgb, var(--brand) 82%, white);
  --brand-tint: color-mix(in srgb, var(--brand) 11%, var(--surface));
  --accent-tint: color-mix(in srgb, var(--accent) 16%, var(--surface));
  --danger: #b4432f;
  --danger-tint: #fbe9e5;
  --ok: #2c7a3f;
  --ok-tint: #e6f4ea;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 35, 30, .05), 0 8px 24px rgba(20, 35, 30, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: 20px; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.1rem; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand); color: var(--accent); font-family: var(--font-display); font-size: 1.15rem;
}
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .92rem;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.active { background: var(--brand); color: #fff; }

/* ----- Hero ----- */
.hero { padding-block: 72px 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); background: var(--brand-tint); padding: 6px 12px; border-radius: 999px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-top: 18px; max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 58ch; }

.page-hero { padding-block: 48px 28px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 14px; }
.page-hero .lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 70ch; }
.breadcrumb { font-size: .88rem; color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }

/* ----- Calculator cards (home) ----- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; padding-bottom: 64px; }
.calc-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.calc-card:hover { transform: translateY(-4px); border-color: var(--brand-2); box-shadow: 0 14px 34px color-mix(in srgb, var(--brand) 16%, transparent); }
.calc-card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem;
  background: var(--brand-tint);
}
.calc-card h3 { font-size: 1.2rem; margin: 6px 0 0; }
.calc-card p { color: var(--ink-soft); font-size: .95rem; margin: 0; flex: 1; }
.calc-card .go { font-weight: 700; color: var(--brand); font-size: .92rem; margin-top: 8px; }
.calc-card.soon { opacity: .72; }
.calc-card.soon .icon { background: var(--surface-2); filter: grayscale(.4); }
.tag {
  position: absolute; top: 18px; right: 18px; font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.tag.live { background: var(--ok-tint); color: var(--ok); }
.tag.soon { background: var(--accent-tint); color: var(--ink); }

/* ----- Feature strip ----- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-block: 48px; border-top: 1px solid var(--line); }
.feature h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: .94rem; margin: 0; }
.feature .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-bottom: 12px; }

/* ----- Calculator layout ----- */
.calc-layout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 40px; }
.calc-layout--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
@media (max-width: 900px) { .calc-layout, .calc-layout--wide { grid-template-columns: 1fr; } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.panel h2 { font-size: 1.35rem; }
.panel-sticky { position: sticky; top: 84px; }
@media (max-width: 900px) { .panel-sticky { position: static; } }

.field { margin-bottom: 18px; }
.field label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field label .hint { font-weight: 500; color: var(--muted); font-size: .8rem; }
.input-wrap { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.input-wrap:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.input-wrap .affix { padding: 0 12px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.input-wrap input, .input-wrap select {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-weight: 600;
  padding: 11px 12px; color: var(--ink);
}
.input-wrap .affix + input { padding-left: 0; }
input[type="range"] { width: 100%; accent-color: var(--brand); margin-top: 8px; }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); border-radius: var(--radius-sm); padding: 4px; gap: 4px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { margin: 0; justify-content: center; padding: 8px 6px; border-radius: 8px; cursor: pointer; font-size: .86rem; color: var(--ink-soft); }
.segmented input:checked + label { background: var(--surface); color: var(--brand); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.segmented input:focus-visible + label { outline: 2px solid var(--brand-2); }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .row-2 { grid-template-columns: 1fr; } }

details.advanced { border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 6px; }
details.advanced summary { cursor: pointer; font-weight: 700; color: var(--brand); font-size: .92rem; margin-bottom: 14px; }

/* ----- Results ----- */
.result-hero {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; border-radius: var(--radius);
  padding: 26px; position: relative; overflow: hidden;
}
.result-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%);
}
.result-hero .label { font-size: .85rem; opacity: .85; font-weight: 600; }
.result-hero .big { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 600; line-height: 1.1; margin: 4px 0; }
.result-hero .sub { opacity: .85; font-size: .92rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stat .k { font-size: .8rem; color: var(--muted); font-weight: 600; }
.stat .v { font-size: 1.3rem; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; }

.callout { border-radius: 14px; padding: 14px 16px; font-size: .93rem; margin-top: 16px; display: flex; gap: 12px; align-items: flex-start; }
.callout .ci { font-size: 1.2rem; line-height: 1.3; }
.callout.ok { background: var(--ok-tint); color: #1d5a2d; }
.callout.warn { background: var(--accent-tint); color: #6e4a00; }
.callout.bad { background: var(--danger-tint); color: #7f2c1d; }
.callout.info { background: var(--brand-tint); color: var(--brand-dark); }
.callout strong { font-weight: 800; }

.chart-wrap { margin-top: 16px; }
.chart-wrap h3 { font-size: 1rem; margin-bottom: 4px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-soft); margin-bottom: 8px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; background: var(--c); }
svg.chart { width: 100%; height: auto; display: block; }
svg.chart text { font-family: var(--font); font-size: 11px; fill: var(--muted); }

.split { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; }
@media (max-width: 480px) { .split { grid-template-columns: 1fr; justify-items: center; } }
.donut { width: 150px; height: 150px; border-radius: 50%; position: relative; }
.donut::after { content: ""; position: absolute; inset: 22px; background: var(--surface); border-radius: 50%; }

.table-scroll { overflow-x: auto; margin-top: 12px; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: 8px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); position: sticky; top: 0; }

/* ----- Info / article ----- */
.info { padding-block: 32px 64px; border-top: 1px solid var(--line); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.info-card h3 { font-size: 1.08rem; display: flex; gap: 10px; align-items: center; }
.info-card p, .info-card li { color: var(--ink-soft); font-size: .94rem; }
.info-card ul { padding-left: 20px; margin: 0; }
.info-card li { margin-bottom: 6px; }
.formula { font-family: ui-monospace, "SF Mono", Menlo, monospace; background: var(--surface-2); padding: 10px 12px; border-radius: 8px; font-size: .88rem; overflow-x: auto; }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { color: var(--ink-soft); margin: 10px 0 0; font-size: .94rem; }

.section-title { font-size: 1.7rem; margin: 32px 0 16px; }

/* ----- Footer ----- */
.site-footer { background: var(--footer); color: color-mix(in srgb, white 72%, var(--footer)); padding-block: 48px 32px; font-size: .9rem; }
.site-footer a { color: color-mix(in srgb, var(--accent) 55%, white); }
.site-footer .disclaimer { max-width: 80ch; opacity: .85; }

/* ----- Points calculators ----- */
.factor { padding: 20px 0; border-bottom: 1px solid var(--line); }
.factor:first-of-type { padding-top: 4px; }
.factor:last-of-type { border-bottom: 0; }
.factor-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.factor-head h3 { font-size: 1.02rem; margin: 0; }
.factor-pts { font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; white-space: nowrap; }
.factor-help { color: var(--muted); font-size: .86rem; margin: 0 0 10px; }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.options input { position: absolute; opacity: 0; pointer-events: none; }
.options label {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font-size: .9rem; font-weight: 600;
  background: var(--surface); transition: border-color .15s, background .15s;
}
.options label small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; }
.options label .p { font-size: .8rem; font-weight: 800; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.options label:hover { border-color: var(--brand-2); }
.options input:checked + label { border-color: var(--brand); background: var(--brand-tint); }
.options input:checked + label .p { background: var(--brand); color: #fff; }
.options input:focus-visible + label { outline: 2px solid var(--brand-2); outline-offset: 2px; }

.visa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
@media (max-width: 480px) { .visa-grid { grid-template-columns: 1fr; } }
.visa { border-radius: 14px; padding: 14px; border: 1.5px solid var(--line); background: var(--surface); }
.visa .vn { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.visa .vt { font-size: .82rem; color: var(--ink-soft); }
.visa .vs { font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1.1; margin: 4px 0; }
.visa .vb { font-size: .76rem; font-weight: 800; border-radius: 999px; padding: 2px 8px; display: inline-block; }
.visa.pass { border-color: #9fd1ad; background: var(--ok-tint); }
.visa.pass .vb { background: var(--ok); color: #fff; }
.visa.fail .vb { background: var(--danger-tint); color: var(--danger); }

.breakdown { list-style: none; padding: 0; margin: 12px 0 0; font-size: .9rem; }
.breakdown li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); color: var(--ink-soft); }
.breakdown li strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.breakdown li.capped strong { color: var(--accent); }
.meter { height: 10px; background: rgba(255,255,255,.2); border-radius: 999px; margin-top: 12px; position: relative; overflow: visible; }
.meter > i { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width .3s; }
.meter > b { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #fff; }
.btn-reset { margin-top: 14px; font: inherit; font-weight: 700; font-size: .88rem; color: var(--brand); background: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.btn-reset:hover { border-color: var(--brand); }

/* ----- Eligibility checker ----- */
[hidden] { display: none !important; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; font-weight: 500; padding: 8px 0; cursor: pointer; color: var(--ink-soft); }
label.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.elig-list { list-style: none; padding: 0; margin: 10px 0 0; font-size: .9rem; }
.elig-list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--ink-soft); }
.elig-list li:last-child { border-bottom: 0; }
.elig-list li.elig-bad { color: #7f2c1d; }
select { cursor: pointer; }

/* ----- CMS additions ----- */
.logo img { display: block; width: auto; }
.logo-mark { color: var(--accent); }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .site-header .container { flex-wrap: nowrap; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 1.2rem; cursor: pointer; color: var(--ink); }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { border-radius: 10px; }
}

.prose { max-width: 72ch; font-size: 1.05rem; line-height: 1.75; color: var(--ink-soft); }
.prose h2 { font-size: 1.55rem; color: var(--ink); margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; color: var(--ink); margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: 14px; }
.prose a { font-weight: 600; }
.prose blockquote { border-left: 4px solid var(--accent); margin: 1.2em 0; padding: .2em 1em; background: var(--surface-2); border-radius: 0 10px 10px 0; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card .pc-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { font-size: 1.1rem; margin: 0; }
.post-card p { color: var(--ink-soft); font-size: .93rem; margin: 0; flex: 1; }
.post-meta { font-size: .82rem; color: var(--muted); }
.post-cover { border-radius: var(--radius); margin-bottom: 24px; aspect-ratio: 16 / 7; object-fit: cover; width: 100%; height: auto; display: block; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-bottom: 64px; align-items: start; }
@media (max-width: 900px) { .post-layout { grid-template-columns: 1fr; } }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links li { border-bottom: 1px solid var(--line); }
.side-links a { display: flex; gap: 10px; padding: 10px 0; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .94rem; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; }
.btn:hover { background: var(--brand-dark); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.section-head a { font-weight: 700; text-decoration: none; }

/* ===== Design refresh: pictures, ad spaces, accessibility ===== */
img { height: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
:where(a, button, summary, input, select, textarea):focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
summary, button, label[for], .segmented label, .options label { cursor: pointer; }
.nav-toggle svg { display: block; }
.section-pad { padding-bottom: 64px; }
.lead p:last-child { margin-bottom: 0; }

/* Hero with picture space */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero-grid--compact { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 32px; }
.hero-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 4 / 3; display: block; }
.hero-art { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 30px color-mix(in srgb, var(--brand) 14%, transparent)); }
.hero-cta { margin-top: 24px; }
.hero .container { position: relative; z-index: 1; }
@media (max-width: 860px) {
  .hero-grid, .hero-grid--compact { grid-template-columns: 1fr; gap: 28px; }
  .hero-media { max-width: 520px; }
  .hero { padding-block: 48px 40px; }
}

/* Trust strip */
.trust-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 40px; }
.trust-item { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.trust-item svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-item strong { display: block; font-size: .95rem; }
.trust-item span { display: block; font-size: .82rem; color: var(--muted); }
@media (max-width: 900px) { .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .trust-strip { grid-template-columns: 1fr; } }

#calculators .section-title { margin-top: 8px; }
.card-grid--compact { padding-bottom: 24px; }
.card-grid--compact .calc-card { padding: 20px; }

/* Feature highlights and guide cards with optional pictures */
.features-title { grid-column: 1 / -1; margin: 0; }
.feature-icon { font-size: 1.4rem; margin-bottom: 8px; }
.feature-body { color: var(--ink-soft); font-size: .94rem; }
.feature-img, .info-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 14px; display: block; }
.info-card .info-img { margin: -6px 0 16px; }
.related { padding-block: 16px 56px; border-top: 1px solid var(--line); }

/* Article cards always keep a picture area */
.pc-media { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand-tint), var(--accent-tint)); display: grid; place-items: center; overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-media svg { width: 44px; height: 44px; fill: none; stroke: var(--brand); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.post-card .go { font-weight: 700; color: var(--brand); font-size: .9rem; }
.post-card:hover h3 { color: var(--brand); }
.post-title { max-width: 24ch; }
.post-aside { display: grid; gap: 20px; position: sticky; top: 84px; }
.aside-title { font-family: var(--font); font-size: 1rem; margin: 0 0 4px; }
.side-links + .aside-title { margin-top: 20px; }
.side-links a:hover { color: var(--brand); }
@media (max-width: 900px) { .post-aside { position: static; } }

/* Ad spaces: reserve height for network ads so the page doesn't jump when they load */
.ad-slot { margin-block: 28px; text-align: center; }
.ad-slot + .ad-slot { margin-top: 0; }
.ad-slot .ad-label { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad-unit + .ad-unit { margin-top: 12px; }
.ad-unit img { border-radius: 14px; margin-inline: auto; display: block; }
.ad-slot--banner { min-height: 100px; }
.ad-slot--box { min-height: 250px; }
@media (min-width: 768px) { .ad-slot--banner { min-height: 90px; } }
.ad-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 16px;
  border: 2px dashed color-mix(in srgb, var(--accent) 60%, var(--line)); border-radius: 14px;
  background: repeating-linear-gradient(45deg, var(--accent-tint), var(--accent-tint) 10px, var(--surface) 10px, var(--surface) 20px);
  color: var(--ink-soft); font-size: .85rem;
}
.ad-placeholder strong { font-size: .95rem; color: var(--ink); }
.ad-placeholder a { font-weight: 700; }
.ad-placeholder small { color: var(--muted); font-size: .76rem; }

/* Footer */
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-name { font-family: var(--font-display); font-size: 1.3rem; color: #fff; margin-bottom: 6px; }
.footer-head { font-weight: 700; color: #fff; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid color-mix(in srgb, white 14%, var(--footer)); margin-top: 32px; padding-top: 20px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  a.calc-card:hover, .post-card:hover { transform: none; }
}

/* ---- Contact form & trust pages ---- */
.contact-form { display: grid; gap: 14px; max-width: 480px; margin: 20px 0 28px; }
.contact-form p { margin: 0; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--surface); color: var(--ink); }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-error { display: block; margin-top: 4px; color: #b42318; font-size: .88rem; }
.form-success { padding: 12px 16px; border-radius: 10px; background: #e8f3ec; border: 1px solid #bfe3cc; color: #1e6b40; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-form button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; }

/* ---- Tables inside guide prose ---- */
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95em; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2, #f6f7f9); color: var(--ink); font-weight: 700; }
.prose tr:nth-child(even) td { background: color-mix(in srgb, var(--surface) 60%, transparent); }
