:root {
  color-scheme: light;
  /* Brand palette */
  --brand-green: #183b36;
  --brand-green-soft: #e4eae8;
  --brand-gold: #c5a46d;
  --brand-gold-hover: #ad8c58;
  --brand-charcoal: #272a2a;
  --brand-teal: #6f918c;
  --brand-ivory: #f5f1e8;

  --bg: var(--brand-ivory);
  --surface: #ffffff;
  --surface-2: #efeadd;
  --text: var(--brand-charcoal);
  --text-muted: #5b5850;
  --text-faint: #8c887e;
  --border: #e3ddcf;
  --border-strong: rgba(39,42,42,0.16);
  --accent: var(--brand-gold);
  --accent-hover: var(--brand-gold-hover);
  --accent-soft: #f3e9d5;
  --accent-ink: #8a6e3f;
  --navy: var(--brand-teal);
  --navy-soft: #e7eeed;
  --code-bg: #efeadd;
  --shadow: 0 1px 2px rgba(24,59,54,0.07), 0 8px 24px rgba(24,59,54,0.06);
  --shadow-lg: 0 4px 10px rgba(24,59,54,0.10), 0 20px 44px rgba(24,59,54,0.12);
  --radius: 12px;
  --radius-sm: 8px;

  --good: #1f6f52;
  --good-soft: #e1efe7;
  --warning: #a4720c;
  --warning-soft: #f7ecd6;
  --serious: #b8632f;
  --serious-soft: #f5e4d6;
  --critical: #a83b3b;
  --critical-soft: #f5e0dd;

  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #16201d;
    --surface: #1e2b27;
    --surface-2: #24332e;
    --text: #f5f1e8;
    --text-muted: #c3c8c1;
    --text-faint: #8fa39b;
    --border: #33453f;
    --border-strong: rgba(245,241,232,0.16);
    --accent: #d8bb87;
    --accent-hover: #e6cc9e;
    --accent-soft: #3a3223;
    --accent-ink: #e6cc9e;
    --navy: #8fada7;
    --navy-soft: #223531;
    --code-bg: #24332e;
    --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 4px 10px rgba(0,0,0,0.35), 0 20px 44px rgba(0,0,0,0.4);

    --good: #4caf82;
    --good-soft: #16332a;
    --warning: #d9a94f;
    --warning-soft: #332908;
    --serious: #e0916a;
    --serious-soft: #3a2413;
    --critical: #e08585;
    --critical-soft: #3a1e1e;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #16201d;
  --surface: #1e2b27;
  --surface-2: #24332e;
  --text: #f5f1e8;
  --text-muted: #c3c8c1;
  --text-faint: #8fa39b;
  --border: #33453f;
  --border-strong: rgba(245,241,232,0.16);
  --accent: #d8bb87;
  --accent-hover: #e6cc9e;
  --accent-soft: #3a3223;
  --accent-ink: #e6cc9e;
  --navy: #8fada7;
  --navy-soft: #223531;
  --code-bg: #24332e;
  --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 4px 10px rgba(0,0,0,0.35), 0 20px 44px rgba(0,0,0,0.4);

  --good: #4caf82;
  --good-soft: #16332a;
  --warning: #d9a94f;
  --warning-soft: #332908;
  --serious: #e0916a;
  --serious-soft: #3a2413;
  --critical: #e08585;
  --critical-soft: #3a1e1e;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); overflow-x: hidden; }
body { line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
h1, h2, h3, h4 { font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: 0; }

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.brand { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 1.15rem; color: var(--brand-green); display: flex; align-items: center; gap: 8px; }
:root[data-lang] .brand, :root[data-theme="dark"] .brand { color: var(--brand-green); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand { color: var(--accent-ink); } }
:root[data-theme="dark"] .brand { color: var(--accent-ink); }
.brand:hover { text-decoration: none; color: var(--accent-hover); }
.brand .brand-mark { font-size: 1.2rem; }
.top-nav { display: flex; align-items: center; gap: 4px; }
.top-nav a { margin-left: 4px; padding: 7px 12px; border-radius: 8px; color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }
.top-nav a:hover { color: var(--accent-hover); background: var(--accent-soft); text-decoration: none; }
.top-nav a.nav-cta { background: var(--accent); color: var(--brand-green); font-weight: 700; }
.top-nav a.nav-cta:hover { background: var(--accent-hover); color: var(--brand-green); }

/* ---------- i18n ---------- */
[data-lang="en"] [data-i18n="zh"] { display: none !important; }
[data-lang="zh"] [data-i18n="en"] { display: none !important; }
.lang-toggle {
  display: inline-flex; border: 1px solid var(--border-strong); border-radius: 999px;
  overflow: hidden; margin-left: 10px; font-size: 0.78rem; font-weight: 800;
}
.lang-toggle button {
  border: 0; background: var(--surface); color: var(--text-muted); padding: 7px 12px;
  cursor: pointer; font-weight: 800; font-size: 0.78rem; font-family: inherit;
}
.lang-toggle button.active { background: var(--accent); color: #fff; }
.lang-toggle button:hover:not(.active) { background: var(--accent-soft); color: var(--accent); }

.layout { display: flex; max-width: 1240px; margin: 0 auto; align-items: flex-start; }
.sidebar {
  width: 260px; flex-shrink: 0; padding: 20px 12px; position: sticky; top: 57px;
  height: calc(100vh - 57px); overflow-y: auto;
}
.content { flex: 1; min-width: 0; padding: 32px 28px 100px; }
.content.wide { max-width: none; }
.layout.full { max-width: none; }
.layout.no-sidebar .sidebar { display: none; }
.layout.no-sidebar .content { max-width: 1000px; margin: 0 auto; }

@media (max-width: 860px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; }
}

.tree-folder summary { cursor: pointer; padding: 6px 8px; border-radius: 6px; font-weight: 700; font-size: 0.9rem; color: var(--text); list-style: none; }
.tree-folder summary::-webkit-details-marker { display: none; }
.tree-folder summary:before { content: "▸ "; color: var(--text-faint); }
.tree-folder[open] summary:before { content: "▾ "; }
.tree-folder summary:hover { background: var(--accent-soft); }
.tree-folder ul { list-style: none; margin: 2px 0 8px 0; padding: 0 0 0 18px; }
.tree-folder li a { display: block; padding: 4px 8px; border-radius: 6px; font-size: 0.86rem; color: var(--text-muted); }
.tree-folder li a:hover, .tree-folder li a.active { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.sidebar-pinned { list-style: none; padding: 0; margin: 0 0 14px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.sidebar-pinned a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; font-size: 0.88rem; font-weight: 700; color: var(--text); }
.sidebar-pinned a:hover, .sidebar-pinned a.active { background: var(--accent-soft); color: var(--accent); text-decoration: none; }

/* ---------- Hero ---------- */
.hero-v2 {
  padding: 48px 40px; margin: 8px 0 40px; border-radius: 20px;
  background: linear-gradient(155deg, var(--brand-green) 0%, #102723 100%);
  color: var(--brand-ivory); position: relative; overflow: hidden;
}
.hero-v2::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 88% 12%, rgba(197,164,109,0.16), transparent 55%);
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.hero-v2 .hero-eyebrow { color: var(--brand-ivory); background: rgba(245,241,232,0.14); }
.hero-v2 h1 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.2; margin: 0 0 14px; max-width: 22ch; color: var(--brand-ivory); position: relative; }
.hero-v2 h1 .gold-line { display: block; color: var(--accent); }
.hero-v2 .lead { font-size: 1.1rem; max-width: 60ch; color: rgba(245,241,232,0.82); position: relative; }
.hero-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
@media (max-width: 600px) { .hero-v2 { padding: 32px 22px; border-radius: 16px; } }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 700; font-size: 0.94rem; cursor: pointer; }
.btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--brand-green); border-color: var(--accent); box-shadow: 0 6px 16px rgba(197,164,109,0.35); font-weight: 700; }
.btn-primary:hover { background: var(--accent-hover); color: var(--brand-green); border-color: var(--accent-hover); }
.btn-navy { background: var(--brand-green); color: var(--brand-ivory); border-color: var(--brand-green); }
.btn-navy:hover { opacity: 0.9; color: var(--brand-ivory); }
.btn-small { padding: 6px 12px; font-size: 0.82rem; border-radius: 8px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.section-title { font-size: 1.35rem; margin: 46px 0 6px; }
.section-sub { color: var(--text-muted); margin: 0 0 20px; max-width: 65ch; }

/* ---------- Tier cards (compliance tiers) ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 20px 0; }
.tier-card { border-radius: var(--radius); padding: 20px 20px 22px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.tier-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--tier-color, var(--accent)); }
.tier-card .tier-icon { color: var(--tier-color, var(--accent)); display: inline-flex; }
.tier-card .tier-icon svg { width: 30px; height: 30px; }
.tier-card h3 { margin: 10px 0 4px; font-size: 1.1rem; }
.tier-card .tier-tag { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; color: var(--tier-color, var(--accent)); margin-bottom: 8px; }
.tier-card p { color: var(--text-muted); font-size: 0.9rem; margin: 6px 0; }
.tier-card .tier-howto { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); font-size: 0.85rem; color: var(--text); }
.tier-card .tier-howto strong { color: var(--tier-color, var(--accent)); }
.tier-card--good { --tier-color: var(--good); }
.tier-card--warning { --tier-color: var(--warning); }
.tier-card--critical { --tier-color: var(--critical); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 0.85rem; }
.badge-good { background: var(--good-soft); color: var(--good); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-critical { background: var(--critical-soft); color: var(--critical); }
.badge-serious { background: var(--serious-soft); color: var(--serious); }

/* ---------- Callouts ---------- */
.callout { border-radius: var(--radius); padding: 16px 18px; margin: 20px 0; border: 1px solid var(--border); display: flex; gap: 12px; align-items: flex-start; }
.callout .callout-icon { font-size: 1.3rem; line-height: 1; }
.callout-body { flex: 1; }
.callout-body strong { display: block; margin-bottom: 3px; }
.callout-body p { margin: 4px 0; color: var(--text-muted); font-size: 0.92rem; }
.callout-info { background: var(--navy-soft); border-color: transparent; }
.callout-warning { background: var(--warning-soft); border-color: transparent; }
.callout-critical { background: var(--critical-soft); border-color: transparent; }
.callout-good { background: var(--good-soft); border-color: transparent; }

/* ---------- Stat highlight ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 22px 0; }
.stat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.stat-tile .stat-value { font-size: 1.7rem; font-weight: 800; color: var(--accent-ink); line-height: 1.1; }
.stat-tile .stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- Card grid (folder library) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: block; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card h3 { margin: 0 0 6px; font-size: 1rem; color: var(--text); }
.card p { margin: 0 0 10px; font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }
.card .count { font-size: 0.78rem; color: var(--accent); font-weight: 700; }

.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 14px; }
.doc-list { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.doc-row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--text); }
.doc-row:hover { border-color: var(--accent); text-decoration: none; }
.doc-icon { font-size: 1.1rem; }
.doc-title { flex: 1; font-size: 0.92rem; }
.doc-size { font-size: 0.78rem; color: var(--text-muted); }

.doc-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.doc-header h1 { margin: 0; font-size: 1.5rem; }

.pdf-embed { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; height: 82vh; background: var(--surface); }
.pdf-embed iframe { width: 100%; height: 100%; border: 0; }
.pdf-fallback { font-size: 0.85rem; color: var(--text-muted); margin-top: 10px; }

.prose { max-width: 78ch; }
.prose h1 { font-size: 1.6rem; }
.prose h2 { font-size: 1.3rem; margin-top: 2em; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--text); }
.prose code { background: var(--code-bg); padding: 2px 6px; border-radius: 4px; font-size: 0.88em; }
.prose pre { background: var(--code-bg); padding: 14px 16px; border-radius: 8px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { border-left: 3px solid var(--accent); margin: 0; padding: 4px 16px; color: var(--text-muted); }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 0.9rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; }
.prose th { background: var(--code-bg); }
.prose img { max-width: 100%; }

.search-box { width: 100%; max-width: 600px; padding: 12px 16px; font-size: 1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); margin: 14px 0 24px; }
.search-box:focus { outline: none; border-color: var(--accent); }
.search-results { display: flex; flex-direction: column; gap: 14px; max-width: 800px; }
.result-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; }
.result-card h4 { margin: 0 0 4px; font-size: 1rem; }
.result-meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; }
.result-snippet { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }
.result-snippet mark { background: var(--accent-soft); color: var(--accent); padding: 0 2px; border-radius: 2px; }
.search-hint { color: var(--text-muted); font-size: 0.88rem; }

/* ---------- Explainer article (start-here) ---------- */
.article-hero { max-width: 74ch; margin-bottom: 8px; }
.article-hero .hero-eyebrow { margin-bottom: 14px; }
.article-hero h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.2; margin: 0 0 14px; }
.article-hero .lead { font-size: 1.08rem; color: var(--text-muted); max-width: 62ch; }
.article-body { max-width: 74ch; margin-top: 30px; }
.article-body h2 { font-size: 1.4rem; margin: 48px 0 10px; scroll-margin-top: 80px; }
.article-body h2 .num { color: var(--accent); margin-right: 8px; }
.article-body h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.article-body p { font-size: 1rem; margin: 12px 0; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { margin: 6px 0; }
.article-body strong { color: var(--text); }

.analogy-box { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 16px 20px; margin: 20px 0; }
.analogy-box .analogy-label { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent-ink); margin-bottom: 6px; display: block; }

.analogy-diagram { background: var(--brand-ivory); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px 4px; margin: 24px 0 8px; }
.analogy-diagram svg { width: 100%; height: auto; display: block; }
:root[data-theme="dark"] .analogy-diagram { background: var(--surface); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .analogy-diagram { background: var(--surface); } }

.control-meter { margin: 22px 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.control-meter svg { width: 100%; height: auto; display: block; }
.control-meter .meter-caption { font-size: 0.82rem; color: var(--text-muted); margin-top: 10px; text-align: center; }

.glossary-term { border-bottom: 1px dashed var(--accent); cursor: help; font-weight: 600; color: var(--text); position: relative; }
.glossary-term:hover { color: var(--accent); }
.glossary-term::after {
  position: absolute; left: 0; bottom: 130%;
  background: var(--text); color: var(--bg);
  padding: 10px 14px; border-radius: 8px; font-size: 0.8rem; font-weight: 500; line-height: 1.5;
  width: max-content; max-width: min(280px, 70vw);
  opacity: 0; pointer-events: none; transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease; z-index: 30; box-shadow: var(--shadow-lg);
}
[data-lang="en"] .glossary-term::after { content: attr(data-tip-en); }
[data-lang="zh"] .glossary-term::after { content: attr(data-tip-zh); }
.glossary-term:hover::after, .glossary-term:focus::after { opacity: 1; transform: translateY(0); }

details.faq { border: 1px solid var(--border); border-radius: var(--radius-sm); margin: 10px 0; background: var(--surface); }
details.faq summary { padding: 13px 16px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.2rem; color: var(--accent); font-weight: 400; }
details.faq[open] summary::after { content: "−"; }
details.faq .faq-body { padding: 0 16px 16px; color: var(--text-muted); font-size: 0.93rem; }

.toc-inline { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.toc-inline a { font-size: 0.82rem; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--text-muted); font-weight: 600; }
.toc-inline a:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }

.source-note { font-size: 0.78rem; color: var(--text-faint); margin: 14px 0 0; padding-left: 2px; }
.source-note::before { content: "📄 "; }

/* ---------- Self-check wizard ---------- */
.wizard { max-width: 640px; }
.wizard-progress { display: flex; gap: 6px; margin: 8px 0 30px; }
.wizard-progress .seg { height: 6px; flex: 1; border-radius: 999px; background: var(--border); overflow: hidden; }
.wizard-progress .seg.done { background: var(--accent); }
.wizard-progress .seg.current { background: linear-gradient(90deg, var(--accent) 50%, var(--border) 50%); }

.wizard-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 28px 24px; box-shadow: var(--shadow); }
.wizard-step-label { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); margin-bottom: 10px; }
.wizard-question { font-size: 1.25rem; font-weight: 800; margin: 0 0 8px; line-height: 1.35; }
.wizard-help { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 18px; }

.option-list { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.option-pill { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; background: var(--surface); font-weight: 600; }
.option-pill:hover { border-color: var(--accent); background: var(--accent-soft); }
.option-pill input { accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }
.option-pill.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }

.field-group { margin: 16px 0; }
.field-group label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.field-hint { font-size: 0.82rem; color: var(--text-muted); margin-top: 5px; }
.input-money { position: relative; }
.input-money .prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-faint); font-weight: 700; }
.input-money input { width: 100%; padding: 13px 14px 13px 44px; font-size: 1.05rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); }
.input-money input:focus { outline: none; border-color: var(--accent); }

.wizard-nav { display: flex; justify-content: space-between; margin-top: 24px; gap: 10px; }

.result-verdict { text-align: center; padding: 30px 20px; }
.result-verdict .verdict-icon { font-size: 3rem; }
.result-verdict h2 { font-size: 1.6rem; margin: 12px 0 6px; }
.result-verdict .verdict-badge { margin: 0 auto 4px; }
.result-detail { margin-top: 26px; text-align: left; }
.result-detail h3 { font-size: 1rem; margin: 22px 0 8px; }
.result-detail ul { padding-left: 1.2em; }
.result-detail li { margin: 6px 0; font-size: 0.94rem; }
.trail { font-size: 0.8rem; color: var(--text-faint); margin-top: 8px; }
.reason-chip { display: inline-block; background: var(--surface-2); color: var(--text-muted); font-size: 0.78rem; padding: 3px 10px; border-radius: 999px; margin: 2px 4px 2px 0; }

@media (max-width: 600px) {
  .wizard-card { padding: 20px 18px; }
}

/* ---------- Footer ---------- */
.site-footer {
  margin: 60px 0 0; padding: 30px 28px; background: var(--brand-green); text-align: center;
}
.site-footer .tagline { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 1.05rem; color: var(--accent); margin: 0 0 6px; }
.site-footer .fine-print { font-size: 0.78rem; color: rgba(245,241,232,0.6); margin: 0; }
