:root {
  color-scheme: light;
  --ink: #132b3b;
  --muted: #617380;
  --navy: #142c3c;
  --blue: #066b76;
  --blue-soft: #eaf6f6;
  --green: #176b52;
  --green-soft: #e9f6f1;
  --amber: #9a5d00;
  --amber-soft: #fff5df;
  --red: #a33a35;
  --red-soft: #fff0ef;
  --line: #dce5e8;
  --surface: #ffffff;
  --background: #f5f8f9;
  --shadow: 0 18px 46px rgba(19, 43, 59, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

button, input, textarea, select { font: inherit; }
button { min-height: 44px; }
a { color: var(--blue); text-underline-offset: 3px; }

.site-header {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e4ecee;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  min-height: 74px;
  padding: 10px max(20px, calc((100vw - 1200px) / 2));
}

.brand { align-items: center; color: var(--navy); display: flex; font-size: 1.04rem; font-weight: 780; gap: 11px; letter-spacing: -.025em; text-decoration: none; }
.brand-icon { border-radius: 11px; display: block; flex: 0 0 40px; height: 40px; width: 40px; }
.site-nav { align-items: center; display: flex; gap: 34px; margin-left: auto; margin-right: 32px; }
.site-nav a { color: #526875; font-size: .89rem; font-weight: 670; text-decoration: none; }
.site-nav a:hover { color: var(--blue); }
.header-actions { align-items: center; display: flex; gap: 4px; }
.language-button { border-color: var(--line); }

main { margin: 0 auto; max-width: 1200px; padding: 22px 20px 70px; }
.intro {
  align-items: center;
  background: radial-gradient(circle at 98% -10%, rgba(74, 190, 186, .24), transparent 36%), linear-gradient(118deg, #142c3c 8%, #1d4a5b 100%);
  border-radius: 24px;
  color: white;
  display: grid;
  gap: clamp(20px, 4vw, 60px);
  grid-template-columns: minmax(0, 1fr) 310px;
  margin-bottom: 25px;
  padding: clamp(28px, 3.4vw, 40px);
}
.hero-copy { min-width: 0; }
.intro h1 { font-size: clamp(2.35rem, 4.5vw, 3.45rem); hyphens: auto; overflow-wrap: anywhere; letter-spacing: -0.055em; line-height: 1.045; margin: 9px 0 13px; max-width: 700px; }
.intro h1 em { color: #87e5d9; font-style: normal; }
.hero-copy > p:not(.eyebrow) { color: #d9e8ed; font-size: 1.07rem; line-height: 1.6; margin: 0; max-width: 640px; }
.eyebrow { color: var(--blue); font-size: 0.78rem; font-weight: 800; letter-spacing: .095em; margin: 0; text-transform: uppercase; }
.intro .eyebrow { color: #8be9da; }
.intro-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.intro-points span { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; color: #ebfaf9; font-size: .84rem; font-weight: 650; overflow-wrap: anywhere; padding: 6px 11px; }
.hero-outcome { background: #fff; border-radius: 19px; box-shadow: 0 24px 45px rgba(6, 22, 30, .15); color: var(--ink); padding: 24px 24px 20px; }
.hero-outcome-kicker { color: var(--blue); display: block; font-size: .7rem; font-weight: 850; letter-spacing: .11em; margin-bottom: 8px; }
.hero-outcome > strong { display: block; font-size: 1.18rem; letter-spacing: -.035em; line-height: 1.3; }
.hero-outcome-list { border-top: 1px solid var(--line); display: grid; gap: 10px; margin-top: 17px; padding-top: 15px; }
.hero-outcome-list span { color: #4b606b; font-size: .87rem; font-weight: 630; }
.hero-outcome-list b { color: var(--blue); font-size: .72rem; margin-right: 9px; }

#checkerForm { column-gap: 26px; display: grid; grid-template-columns: minmax(0, 1fr) 310px; }
#checkerForm > .workflow-top, #checkerForm > .progress-track, #checkerForm > .step-list, #checkerForm > .tool-card, #checkerForm > .action-bar { grid-column: 1; }
.guide-card { align-self: start; background: #eaf3f4; border: 1px solid #d5e7e9; border-radius: 19px; grid-column: 2; grid-row: 4 / span 2; margin-top: 16px; padding: 26px; position: sticky; top: 20px; }
.guide-icon { align-items: center; background: #d5eeee; border-radius: 10px; color: #086f78; display: flex; font-size: 1.1rem; font-weight: 850; height: 35px; justify-content: center; margin-bottom: 18px; width: 35px; }
.guide-kicker { color: var(--blue); font-size: .73rem; font-weight: 850; letter-spacing: .09em; margin: 0 0 7px; text-transform: uppercase; }
.guide-card h3 { font-size: 1.15rem; letter-spacing: -.03em; line-height: 1.25; margin: 0 0 10px; }
.guide-card p:not(.guide-kicker) { color: #506773; font-size: .89rem; line-height: 1.55; margin: 0; }
.guide-divider { background: #d2e3e6; height: 1px; margin: 22px 0; }
.guide-card .guide-privacy { font-size: .81rem !important; }
.guide-privacy span { color: #087f8b; font-weight: 850; margin-right: 4px; }

.workflow-top { align-items: end; display: flex; justify-content: space-between; gap: 16px; margin: 0 4px 13px; }
.workflow-step-label { color: var(--navy); font-size: 1.35rem; font-weight: 780; letter-spacing: -.03em; margin: 3px 0 0; }
.workflow-duration { color: var(--muted); font-size: .88rem; margin: 0; }
.progress-track { background: #dce9ec; border-radius: 999px; height: 8px; overflow: hidden; }
.progress-track > span { background: linear-gradient(90deg, #087c91, #3dd2c4); border-radius: inherit; display: block; height: 100%; transition: width .25s ease; width: 25%; }
.step-list { color: #60747e; display: flex; font-size: .875rem; font-weight: 700; gap: 10px; justify-content: space-between; list-style: none; margin: 10px 4px 18px; padding: 0; }
.step-list li.is-active { color: var(--navy); }
.step-list li.is-done { color: var(--green); }

.tool-card, .results, .evidence, .privacy {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 19px;
  box-shadow: var(--shadow);
  margin: 16px 0;
  padding: clamp(22px, 3vw, 34px);
}
.priority-card { border-color: #b5dadd; }
.tool-card { min-height: 355px; }
.step-heading { align-items: flex-start; display: flex; gap: 14px; margin-bottom: 22px; }
.step-heading h2, .results h2, .evidence h2, .privacy h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); letter-spacing: -0.035em; line-height: 1.2; margin: 0 0 5px; }
.step-heading p, .privacy p { color: var(--muted); margin: 0; }
.step-number { align-items: center; background: var(--navy); border-radius: 12px; color: white; display: inline-flex; flex: 0 0 36px; font-size: 15px; font-weight: 800; height: 36px; justify-content: center; }

.field-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { color: #273943; display: grid; font-size: .92rem; font-weight: 700; gap: 7px; }
label small { color: var(--muted); font-size: .8rem; font-weight: 400; }
input, textarea, select {
  background: white;
  border: 1px solid #adbec6;
  border-radius: 9px;
  color: var(--ink);
  min-height: 50px;
  padding: 10px 12px;
  width: 100%;
}
select { cursor: pointer; }
.subheading { font-size: .95rem; margin: 24px 0 10px; }
.subheading span { color: var(--muted); font-size: .8rem; font-weight: 500; }
.check-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check-grid label { background: #f9fbfb; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
textarea { line-height: 1.5; resize: vertical; }
input:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(23, 107, 135, .28); outline-offset: 2px; }
input:hover, textarea:hover, select:hover { border-color: #7c9da9; }
.money-input { align-items: center; display: flex; position: relative; }
.money-input input { padding-right: 38px; }
.money-input span { color: var(--muted); position: absolute; right: 14px; }

.inline-result { border-radius: 12px; font-weight: 650; margin-top: 18px; padding: 14px 16px; }
.neutral { background: #eef2f4; color: #455963; }
.success { background: var(--green-soft); color: var(--green); }
.warning { background: var(--amber-soft); color: var(--amber); }
.critical { background: var(--red-soft); color: var(--red); }

.line-items { display: grid; gap: 12px; }
.line-item { align-items: end; background: #f9fbfb; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 12px; grid-template-columns: 1.4fr 1.3fr 1fr 1fr auto; padding: 14px; }
.line-item label { min-width: 0; }
.line-item input, .line-item select { min-width: 0; width: 100%; }
.icon-button { background: transparent; border: 1px solid var(--line); border-radius: 10px; color: var(--red); cursor: pointer; font-size: 24px; min-width: 44px; }

.primary-button, .secondary-button, .text-button { border-radius: 9px; cursor: pointer; font-size: .9rem; font-weight: 750; padding: 10px 16px; transition: background-color .16s ease, border-color .16s ease, transform .16s ease; }
.primary-button { background: #087f8b; border: 1px solid #087f8b; box-shadow: 0 8px 18px rgba(8, 127, 139, .13); color: white; }
.primary-button:hover { background: #086d78; border-color: #086d78; transform: translateY(-1px); }
.secondary-button { background: white; border: 1px solid #afc0c6; color: var(--navy); }
.secondary-button:hover { background: #edf5f6; border-color: #7da7ae; }
.text-button { background: transparent; border: 1px solid transparent; color: inherit; }
.danger { color: var(--red); }
.action-bar { align-items: center; display: flex; gap: 10px; justify-content: space-between; margin: 22px 0 36px; }
.action-bar-end, .results-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.action-bar-end { margin-left: auto; }
.action-bar .primary-button { font-size: 1rem; min-height: 50px; padding-inline: 24px; }

.results { border-color: #bddedb; scroll-margin-top: 20px; }
.results-header, .privacy { align-items: center; display: flex; gap: 24px; justify-content: space-between; }
.result-hero { align-items: flex-start; background: #163848; border-radius: 16px; color: white; display: flex; gap: 16px; margin-top: 22px; padding: 22px 24px; }
.result-hero::before { align-items: center; background: #3dd2c4; border-radius: 10px; color: #0b3640; content: "✓"; display: flex; flex: 0 0 32px; font-size: 1rem; font-weight: 850; height: 32px; justify-content: center; }
.result-hero.critical::before { background: #ffcf81; content: "!"; }
.result-hero.warning::before { background: #ffe0a8; content: "!"; }
.result-hero strong { display: block; font-size: 1.23rem; letter-spacing: -.03em; line-height: 1.25; }
.result-hero p { color: #dcebef; font-size: .93rem; margin: 5px 0 0; }
.result-grid { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); margin: 16px 0 22px; }
.result-card { background: #fbfcfc; border: 1px solid var(--line); border-radius: 13px; padding: 18px; }
.result-card.critical { background: var(--red-soft); border-color: #f0c8c4; }
.result-card.warning { background: var(--amber-soft); border-color: #f3dfb0; }
.result-card.success { background: var(--green-soft); border-color: #c9e8db; }
.result-card span { color: var(--muted); display: block; font-size: .8rem; font-weight: 700; margin-bottom: 5px; text-transform: uppercase; }
.result-card strong { display: block; font-size: 1.05rem; line-height: 1.35; }
.result-columns { display: grid; gap: 20px; grid-template-columns: .85fr 1.15fr; }
.result-panel { background: #f9fbfb; border: 1px solid #e5ecee; border-radius: 14px; padding: clamp(20px, 2.5vw, 27px); }
.result-panel h3 { margin-top: 0; }
.result-panel-intro { color: var(--muted); margin-top: -5px; }
.check-list { padding-left: 20px; }
.check-list li { margin-bottom: 10px; }
.copy-status { color: var(--green); font-size: .85rem; margin-left: 8px; }
.timeline-panel { background: var(--blue-soft); border-radius: 14px; margin-bottom: 16px; padding: 20px; }
.timeline-panel h3 { margin: 0 0 14px; }
.timeline-list { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.timeline-item { background: white; border-left: 4px solid var(--blue); border-radius: 10px; padding: 12px 14px; }
.timeline-item span { color: var(--muted); display: block; font-size: .78rem; font-weight: 750; text-transform: uppercase; }
.timeline-item strong { display: block; margin-top: 3px; }
.letter-choice { margin-bottom: 12px; }
.letter-address-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0; }
.letter-address-grid textarea { min-height: 88px; }
.property-field { margin-bottom: 14px; }
.regenerate-button { color: var(--blue); margin: 0 0 8px; padding-left: 0; text-align: left; }
.letter-help { color: var(--muted); font-size: .85rem; margin: 8px 0 14px; }
.letter-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.letter-print { display: none; }

.home-guide { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); margin: 34px 0; padding: clamp(24px, 4vw, 48px); }
.home-english-summary { background: #eaf6f6; border: 1px solid #c6e2e5; border-radius: 14px; margin-bottom: 32px; padding: 20px 24px; }
.home-english-summary[hidden] { display: none; }
.home-english-summary h3 { margin: 0 0 10px; }
.home-guide h2, .home-guide h3, .home-guide h4 { hyphens: auto; overflow-wrap: anywhere; }
.home-guide-heading { max-width: 82ch; }
.home-guide-heading h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -.045em; line-height: 1.14; margin: 10px 0 20px; }
.home-guide p, .home-guide li, .home-cost-table td { hyphens: auto; line-height: 1.74; overflow-wrap: anywhere; }
.home-guide-heading > p:not(.eyebrow), .home-guide-block > p { max-width: 82ch; }
.home-guide-block { border-top: 1px solid var(--line); margin-top: 42px; padding-top: 32px; scroll-margin-top: 20px; }
.home-guide-block h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.035em; line-height: 1.2; margin: 9px 0 18px; }
.home-guide-block h4 { font-size: 1.04rem; letter-spacing: -.015em; line-height: 1.32; margin: 0 0 8px; }
.home-toc { background: #f3f8f9; border: 1px solid #d9e9eb; border-radius: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; padding: 18px 20px; }
.home-toc strong { flex-basis: 100%; }
.home-toc a { font-size: .9rem; font-weight: 620; }
.home-info-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 22px 0; }
.home-info-grid article, .home-scenario-list article, .home-faq article { background: #f8fbfb; border: 1px solid #e3ecee; border-radius: 14px; min-width: 0; padding: 20px; }
.home-info-grid article p, .home-faq article p { color: #3d5260; margin: 0; }
.home-step-list, .home-scenario-list, .home-faq { display: grid; gap: 14px; margin: 22px 0; }
.home-step-list article { border-bottom: 1px solid var(--line); display: grid; gap: 14px; grid-template-columns: 36px minmax(0, 1fr); padding: 0 0 16px; }
.home-step-list article > span { align-items: center; background: var(--blue-soft); border-radius: 9px; color: var(--blue); display: flex; font-weight: 800; height: 36px; justify-content: center; width: 36px; }
.home-step-list article p, .home-scenario-list article p { margin: 0 0 12px; max-width: 82ch; }
.home-calculation { background: var(--blue-soft); border-left: 5px solid var(--blue); border-radius: 0 12px 12px 0; display: grid; gap: 8px; margin: 24px 0; max-width: 670px; padding: 18px 22px; }
.home-calculation > * { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.home-calculation > strong { border-top: 1px solid #c5e1e3; padding-top: 8px; }
.home-table-wrap { margin: 20px 0; max-width: 100%; overflow-x: auto; }
.home-cost-table { border-collapse: collapse; min-width: 590px; width: 100%; }
.home-cost-table caption { color: var(--muted); font-size: .86rem; margin-bottom: 8px; text-align: left; }
.home-cost-table th, .home-cost-table td { border-bottom: 1px solid var(--line); padding: 14px 16px; text-align: left; vertical-align: top; }
.home-cost-table thead th { background: #eaf6f6; color: var(--navy); }
.home-cost-table tbody th { min-width: 155px; width: 25%; }
.home-action-list { max-width: 82ch; padding-left: 24px; }
.home-action-list li { margin-bottom: 14px; padding-left: 5px; }
.home-source-note { background: #f3f8f9; border-radius: 12px; color: #45606c; font-size: .9rem; padding: 17px 19px; }

.evidence { box-shadow: none; margin-top: 34px; }
.evidence-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.evidence article { border-top: 3px solid var(--blue); }
.evidence h3 { font-size: 1rem; margin-bottom: 4px; }
.evidence article p { color: var(--muted); font-size: .9rem; }
.legal-note { background: var(--amber-soft); border-radius: 12px; color: #67420c; margin: 24px 0 0; padding: 16px; }
.privacy { box-shadow: none; }
footer { color: var(--muted); font-size: .85rem; padding: 20px; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin: 8px 0 0; }
.draft-opt-in { align-items: flex-start; background: var(--blue-soft); border: 1px solid #cde4e4; border-radius: 12px; display: flex; gap: 12px; margin-top: 18px; padding: 14px 16px; }
.draft-opt-in input { flex: 0 0 auto; height: 20px; margin: 2px 0 0; width: 20px; }
.draft-opt-in span { font-weight: 680; }
.draft-opt-in small { color: #4f6572; display: block; font-size: .83rem; font-weight: 400; line-height: 1.45; margin-top: 3px; }
.legal-main { max-width: 860px; min-height: calc(100vh - 180px); padding-top: 32px; }
.legal-back { display: inline-block; font-weight: 650; margin-bottom: 18px; }
.legal-card { background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(24px, 4vw, 44px); }
.legal-card h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.045em; line-height: 1.1; margin: 8px 0 32px; }
.legal-card h2 { border-top: 1px solid var(--line); font-size: 1.18rem; letter-spacing: -.02em; margin: 30px 0 10px; padding-top: 26px; }
.legal-card p { max-width: 72ch; }
.legal-card address { font-style: normal; line-height: 1.7; }
.legal-muted { background: var(--blue-soft); border-radius: 10px; color: var(--muted); padding: 14px; }
.legal-english { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; }
.legal-english summary { color: var(--blue); cursor: pointer; font-weight: 750; }

.article-main { max-width: 1050px; }
.breadcrumb { align-items: center; color: var(--muted); display: flex; font-size: .86rem; gap: 9px; margin: 10px 0 18px; }
.article-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(25px, 4.5vw, 54px); }
.article-card h1 { font-size: clamp(1.95rem, 4.5vw, 3.3rem); letter-spacing: -.05em; line-height: 1.12; margin: 10px 0 18px; max-width: 850px; overflow-wrap: anywhere; }
.article-lead { color: #3a5360; font-size: 1.15rem; line-height: 1.7; max-width: 76ch; }
.article-card section { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 16px; scroll-margin-top: 20px; }
.article-card section h2 { font-size: clamp(1.45rem, 2.8vw, 1.9rem); letter-spacing: -.035em; line-height: 1.2; margin: 14px 0; }
.article-card section h3 { font-size: 1.11rem; margin: 25px 0 8px; }
.article-card section p, .article-card section li { line-height: 1.78; max-width: 80ch; }
.article-card section li { margin-bottom: 9px; }
.answer-box { background: #eaf6f6; border-left: 5px solid var(--blue); border-radius: 0 14px 14px 0; margin: 27px 0; padding: 23px; }
.answer-box > strong { color: var(--blue); font-size: 1.15rem; }
.answer-box p { line-height: 1.7; max-width: 80ch; }
.answer-box .primary-button, .article-card section > .primary-button { display: inline-block; margin-top: 5px; text-decoration: none; }
.article-toc { background: #f7fafb; border: 1px solid var(--line); border-radius: 13px; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 18px 20px; }
.article-toc strong { flex-basis: 100%; }
.article-toc a { font-size: .88rem; }
.example-box { background: #f7fafb; border: 1px solid var(--line); border-radius: 13px; margin: 16px 0; padding: 8px 20px 13px; }
.example-box h3 { margin-top: 10px !important; }
.example-box p { margin-bottom: 0; }
.article-sources { background: #f9fbfb; border-radius: 13px; padding: 20px !important; }
.article-sources ul { margin-bottom: 0; }
.article-related { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 3px; }
.article-related strong { flex-basis: 100%; }

@media (max-width: 960px) {
  .site-nav { display: none; }
  .intro { grid-template-columns: minmax(0, 1fr); }
  .hero-outcome { display: none; }
  #checkerForm { grid-template-columns: 1fr; }
  .guide-card { grid-column: 1; grid-row: auto; margin: 0 0 4px; position: static; }
}

@media (max-width: 720px) {
  main { padding-inline: 14px; }
  .intro { border-radius: 18px; grid-template-columns: minmax(0, 1fr); margin-bottom: 22px; padding: 25px 21px; }
  .intro h1 { font-size: clamp(2.05rem, 9vw, 2.8rem); }
  .hero-outcome { display: none; }
  .intro-points { gap: 6px; margin-top: 16px; }
  .intro-points span { font-size: .76rem; padding: 4px 9px; }
  .workflow-duration { display: none; }
  .step-list { display: none; }
  .progress-track { margin-bottom: 16px; }
  .field-grid, .check-grid, .result-grid, .result-columns, .evidence-grid, .timeline-list, .letter-address-grid, .home-info-grid { grid-template-columns: minmax(0, 1fr); }
  .line-item { grid-template-columns: 1fr; }
  .line-item .icon-button { justify-self: end; }
  .results-header, .privacy { align-items: flex-start; flex-direction: column; }
  .result-hero { padding: 20px; }
  .results-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .results-actions > button, .letter-actions > button { width: 100%; }
  .letter-actions { display: grid; }
  .action-bar { align-items: stretch; flex-direction: column; }
  .action-bar-end { align-items: stretch; display: grid; margin-left: 0; }
  .action-bar .primary-button { order: -1; }
  .site-header { padding-inline: 14px; }
  .header-actions .text-button, .header-actions .secondary-button { padding-inline: 9px; }
  .home-cost-table { min-width: 0; }
  .home-cost-table thead { display: none; }
  .home-cost-table tbody, .home-cost-table tr, .home-cost-table th, .home-cost-table td { display: block; width: 100%; }
  .home-cost-table tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
  .home-cost-table tbody th { background: #eaf6f6; border: 0; min-width: 0; padding-bottom: 8px; width: 100%; }
  .home-cost-table tbody td { border: 0; padding-top: 7px; }
}

@media (max-width: 500px) {
  .brand, .header-actions { flex: 0 0 auto; }
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  @page { margin: 18mm; }
  .site-header, .intro, form, .home-guide, .evidence, .privacy, footer, #printButton, .letter-actions, .letter-help, .letter-choice, .copy-status { display: none !important; }
  body, main { background: white; padding: 0; }
  .results { border: 0; box-shadow: none; margin: 0; padding: 0; }
  .result-hero { background: white; border: 1px solid #9aaeb6; color: var(--ink); }
  .result-hero p { color: var(--ink); }
  .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:not(.print-letter) .result-columns { display: block; }
  body:not(.print-letter) .result-columns .result-panel:last-child { display: none; }
  body.print-letter main { display: none !important; }
  body.print-letter .letter-print { display: block; margin: 0; }
  .letter-print pre { font: 11pt/1.5 Arial, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
}
