/* Business Helper. Type: Inter (variable, with the optical-size axis: large headings use its display cut).
   Colours come from the logo (navy #001e48, green #00a57c), with warm tints taken from the 3D icons. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-var.woff2) format("woff2");
}
:root {
  --navy: #001e48;
  --navy-2: #0b2f66;
  --green: #00a57c;
  --green-hi: #2fd3a6;      /* green on the navy hero */
  --green-ink: #00785a;     /* green for text on white (5.6:1) */
  --amber: #ffb020;
  --ink: #001e48;
  --muted: #4a5568;
  --line: #e1e6ee;
  --panel: #f3f6fa;
  --white: #fff;
  --tint-gold: #fff1cf;
  --tint-coral: #ffe5dc;
  --tint-mint: #dcf4ea;
  --tint-lilac: #ebe7fb;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0, 30, 72, .06), 0 10px 30px rgba(0, 30, 72, .09);
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 1.0625rem/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-optical-sizing: auto;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); text-decoration-color: var(--green); text-decoration-thickness: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--green); outline-offset: 2px;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--white); padding: 4px 8px; z-index: 9; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.arr { width: 18px; height: 18px; flex: none; }

/* type: headings are Inter at 800 with the display optical size, sentence case, never condensed */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.022em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.25rem); line-height: 1.06; margin: 0 0 12px; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); line-height: 1.15; margin: 48px 0 14px; }
h3 { font-size: 1.15rem; line-height: 1.3; margin: 24px 0 6px; letter-spacing: -0.01em; font-weight: 750; }
p, ul, ol { margin: 0 0 14px; }
.taxyear, .checked { color: var(--muted); margin: 0; font-size: 1rem; }
.muted { color: var(--muted); }
.note { color: var(--muted); font-size: 0.95rem; }

/* ---------------------------------------------------------------- header */
.site-head { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; min-height: 76px; }
.brand { display: block; line-height: 0; flex: none; }
.brand img { height: 40px; width: auto; display: block; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: 0.98rem; text-decoration: none; white-space: nowrap; }
.main-nav a:hover { background: var(--panel); }

/* ---------------------------------------------------------------- home: hero */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; display: block; }
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(0, 30, 72, .72) 18%, rgba(0, 30, 72, 0) 46%);
}
.hero-in { position: relative; z-index: 2; min-height: 560px; display: flex; align-items: center; padding-top: 56px; padding-bottom: 148px; }
.hero-text { max-width: 660px; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 1.4rem + 2.2vw, 3.2rem); margin-bottom: 28px; }
.hero h1 span { color: var(--green-hi); }
.search { position: relative; }
.search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search-box { display: flex; align-items: center; gap: 12px; background: var(--white); border-radius: 14px; padding: 0 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); border-bottom: 5px solid var(--green); }
.search-box svg { width: 24px; height: 24px; color: var(--navy); flex: none; }
.search-box input { flex: 1; border: 0; font: inherit; font-size: 1.15rem; padding: 20px 0; color: var(--ink); background: transparent; min-width: 0; outline: none; }
.search-box:focus-within { box-shadow: 0 0 0 3px var(--green-hi), 0 10px 30px rgba(0, 0, 0, .25); }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20; list-style: none; margin: 0; padding: 8px; background: var(--white); border-radius: 14px; box-shadow: var(--shadow), 0 20px 40px rgba(0, 0, 0, .2); }
.search-results a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.search-results li.on a, .search-results a:hover { background: var(--panel); }
.search-results .sr-name { font-weight: 650; flex: 1; }
.search-results .sr-type { font-size: 0.9rem; color: var(--muted); white-space: nowrap; }
.search-results .none { padding: 12px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.chips a { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); color: var(--white); text-decoration: none; font-size: 0.95rem; font-weight: 600; }
.chips a:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.chips.light a { border-color: var(--line); color: var(--ink); background: var(--white); }
.chips.light a:hover { border-color: var(--navy); color: var(--ink); }

/* ---------------------------------------------------------------- home: category panel over the hero */
.cats {
  position: relative; z-index: 3; margin-top: -104px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--white); border-radius: 22px; padding: 20px; box-shadow: var(--shadow);
}
.cat { border-radius: var(--radius); padding: 22px 22px 14px; display: flex; flex-direction: column; }
.cat.tint-gold { background: var(--tint-gold); }
.cat.tint-coral { background: var(--tint-coral); }
.cat.tint-mint { background: var(--tint-mint); }
.cat.tint-lilac { background: var(--tint-lilac); }
.cat-ico { height: 96px; margin-bottom: 8px; }
.cat-ico .ico { width: 96px; height: 96px; }
.cat h2 { font-size: 1.4rem; margin: 0 0 8px; }
.cat ul { list-style: none; padding: 0; margin: 0; }
.cat li + li { border-top: 1px solid rgba(0, 30, 72, .1); }
.cat a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; font-weight: 600; text-decoration: none; }
.cat a:hover { text-decoration: underline; text-decoration-color: var(--navy); text-decoration-thickness: 2px; }

/* ---------------------------------------------------------------- home: featured calculator */
.feature { padding: 80px 0 40px; }
.feature-in { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center; }
.feature-photo { border-radius: 24px; overflow: hidden; height: 100%; min-height: 560px; position: relative; }
.feature-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.feature-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.feature-head h2 { margin: 0; }
.more-line { margin: 16px 0 0; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--green-ink); }
.more:hover { color: var(--ink); text-decoration: underline; }

/* ---------------------------------------------------------------- home: sections */
.sec-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 24px; }
.sec-head h2 { margin: 0; }
.sec-note { margin: 0; color: var(--muted); }
.home-comps { padding: 56px 0 64px; }
.ccards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.ccard {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 24px 20px 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.ccard .ico { width: 88px; height: 88px; margin-bottom: 10px; }
.ccard:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-2px); }
.ccard-title { font-weight: 750; font-size: 1.12rem; line-height: 1.3; letter-spacing: -0.01em; }
.ccard-meta { color: var(--muted); font-size: 0.95rem; }

.home-tools { background: var(--navy); color: var(--white); padding: 64px 0; }
.tools-in { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; align-items: center; }
.tools-head h2 { color: var(--white); margin: 0; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); }
.tools-ico { display: flex; margin-bottom: 18px; }
.tools-ico .ico { width: 104px; height: 104px; }
.tools-ico .ico + .ico { margin-left: -18px; }
.trows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.trows a {
  display: flex; align-items: center; gap: 18px; padding: 14px 20px 14px 14px; border-radius: 14px;
  background: var(--white); text-decoration: none; color: var(--ink);
}
.trows a:hover { box-shadow: 0 0 0 3px var(--green-hi); }
.trows .ico { width: 56px; height: 56px; flex: none; background: var(--panel); border-radius: 12px; padding: 6px; }
.trow-text { flex: 1; display: flex; flex-direction: column; }
.trow-title { font-weight: 750; font-size: 1.08rem; }
.trow-meta { color: var(--muted); font-size: 0.95rem; }

.home-guides { padding: 64px 0 24px; }
.sec-tools { display: flex; align-items: center; gap: 10px; }
.car-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.car-btn:hover { background: var(--panel); }
.car-btn svg { width: 20px; height: 20px; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.carousel > a { scroll-snap-align: start; }

/* article cards (home carousel, hub, related) */
.acards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.acard { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--white); text-decoration: none; color: var(--ink); }
.acard:hover { box-shadow: var(--shadow); border-color: transparent; }
.acard-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel); }
.acard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acard-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; align-items: flex-start; }
.acard-title { font-weight: 750; font-size: 1.12rem; line-height: 1.32; letter-spacing: -0.01em; }
.acard-date { color: var(--muted); font-size: 0.92rem; }
.tag { display: inline-block; font-size: 0.85rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--tint-mint); color: var(--navy); }
.tag-news { background: var(--amber); color: var(--navy); }

/* ---------------------------------------------------------------- page header band */
.band { background: var(--panel); border-bottom: 1px solid var(--line); }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 36px; padding-bottom: 88px; min-height: 260px; }
.band-text { max-width: 820px; }
.band h1 { margin-bottom: 10px; }
.band-ico { flex: none; width: 168px; height: 168px; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.band-ico .ico { width: 120px; height: 120px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 0.95rem; margin-bottom: 14px; color: var(--muted); }
.crumbs a { color: var(--ink); font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.dates { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--muted); margin: 0; }
.byline { margin: 6px 0 0; font-weight: 600; }
.page-static .band-in { padding-bottom: 40px; min-height: 0; }

/* ---------------------------------------------------------------- calculators */
.calc-card {
  position: relative; z-index: 2; margin-top: -60px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--white); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden;
}
.calc-card .calc { background: transparent; border: 0; border-radius: 0; padding: 32px; }
.calc-card .result { margin: 0; border: 0; padding: 32px; background: var(--green); color: var(--navy); display: flex; flex-direction: column; justify-content: center; }
.calc-card.stack { grid-template-columns: 1fr; }
.calc-card.stack .result { background: var(--white); border-top: 6px solid var(--green); }
.calc-card.in-feature { margin-top: 0; grid-template-columns: 1.15fr 1fr; }
.calc-card.in-feature .calc, .calc-card.in-feature .result { padding: 26px; }
.calc-card .result:empty { display: none; }

.calc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.field { margin-bottom: 18px; }
.field > label, .field > .label, legend { display: block; font-weight: 650; margin-bottom: 6px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.hint { display: block; color: var(--muted); font-size: 0.95rem; margin-bottom: 6px; }
input[type=text], input[type=number], input[type=date], select, textarea {
  font: inherit; color: var(--ink); background: var(--white);
  border: 2px solid #9aa5b5; border-radius: 10px; padding: 10px 12px; width: 100%; max-width: 24rem;
}
input[type=text]:focus, input[type=number]:focus, input[type=date]:focus, select:focus, textarea:focus { border-color: var(--navy); }
textarea { max-width: 100%; min-height: 5.5rem; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; padding: 8px 14px; border: 2px solid var(--line); border-radius: 999px; background: var(--white); cursor: pointer; }
.choices label:has(input:checked) { border-color: var(--navy); background: var(--white); box-shadow: inset 0 0 0 1px var(--navy); }
.choices input, .check input { width: 20px; height: 20px; accent-color: var(--green); margin: 0; }
.field > label.check, .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
button, .button {
  font: inherit; font-weight: 700; background: var(--green); color: var(--navy); border: 0;
  border-radius: 999px; padding: 11px 22px; cursor: pointer; text-decoration: none; display: inline-block;
}
button:hover, .button:hover { background: #33b896; color: var(--navy); }
button.secondary { background: var(--white); color: var(--navy); border: 2px solid var(--navy); }
button.secondary:hover { background: var(--panel); }
button.rm { background: none; color: var(--navy); padding: 4px; text-decoration: underline; font-weight: 500; border-radius: 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

/* results */
.result { margin-top: 20px; border-left: 6px solid var(--green); padding: 4px 0 4px 16px; }
.figs { margin: 0; }
.figs > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid rgba(0, 30, 72, .14); }
.figs dt { margin: 0; font-weight: 500; }
.figs dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 650; }
.figs .total { font-weight: 800; font-size: 1.2rem; border-bottom: 2px solid var(--navy); padding: 12px 0; letter-spacing: -0.01em; }
.figs .total + .total { border-top: 0; }
.calc-card .result .figs .total:last-child dd { font-size: 1.9rem; }
.calc-card .result .note { color: var(--navy); }
.calc-card.stack .result .note { color: var(--muted); }
.calc-card .result table.compare th, .calc-card .result table.compare td { border-color: rgba(0, 30, 72, .14); }

/* ---------------------------------------------------------------- comparison tables */
.table-card { margin-top: -60px; position: relative; z-index: 2; background: var(--white); border-radius: 22px; box-shadow: var(--shadow); padding: 8px; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 16px; }
.table-card .tablewrap { margin: 0; }
table.compare { border-collapse: collapse; width: 100%; font-size: 0.98rem; }
table.compare th, table.compare td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.compare thead th { border-bottom: 2px solid var(--navy); white-space: nowrap; font-weight: 750; }
table.products thead th { background: var(--navy); color: var(--white); border-bottom: 0; padding-top: 14px; padding-bottom: 14px; }
table.products thead th:first-child { border-top-left-radius: 14px; }
table.products thead th:last-child { border-top-right-radius: 14px; }
table.products tbody tr:last-child th, table.products tbody tr:last-child td { border-bottom: 0; }
table.compare tbody th { font-weight: 700; }
table.compare td { font-variant-numeric: tabular-nums; }
table.compare tr.total th, table.compare tr.total td { font-weight: 800; border-top: 2px solid var(--navy); }
table.compare td.top { background: var(--white); box-shadow: inset 0 -3px 0 var(--navy); }
table.compare.products td, table.compare.products th { min-width: 7.5rem; }
table.products thead th { white-space: normal; }
table.compare.products tbody th { min-width: 8rem; }
.page-comparison .wrap > .note, .page-comparison .wrap > p { margin-top: 16px; }

/* ---------------------------------------------------------------- page body with side column */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; margin-top: 16px; align-items: start; }
.prose { max-width: 720px; }
.prose.solo { margin: 0 auto; padding: 16px 0 24px; max-width: 760px; }
.side { position: sticky; top: 24px; margin-top: 48px; }
.mini { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.mini h2 { font-size: 1.15rem; margin: 2px 4px 10px; }
.mini ul { list-style: none; margin: 0; padding: 0; }
.mini a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; text-decoration: none; font-weight: 600; line-height: 1.3; }
.mini a span { flex: 1; }
.mini a:hover { background: var(--panel); }
.mini .ico { width: 44px; height: 44px; flex: none; }

/* blocks */
.example { background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--amber); border-radius: var(--radius); padding: 4px 26px 12px; margin-top: 48px; }
.example h2 { margin-top: 20px; font-size: 1.4rem; }
.faq { margin-top: 8px; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-of-type { border-top: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; line-height: 1; color: var(--navy); flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--panel); display: flex; align-items: center; justify-content: center; }
.qa[open] summary::after { content: "−"; }
.qa summary h3 { margin: 0; font-size: 1.08rem; }
.qa-a { padding: 0 48px 8px 0; }
.sources { font-size: 0.97rem; }
.sources h2, .onward h2 { font-size: 1.25rem; }
.sources ul { padding-left: 20px; }
.onward { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 4px; }
.offer { margin: 28px 0 0; border: 2px solid var(--navy); border-radius: var(--radius); padding: 16px 22px; max-width: 760px; }
.offer .offer-label { font-size: 0.9rem; color: var(--muted); margin-bottom: 4px; }
.offer p { margin-bottom: 6px; }
.offer-title { font-size: 1.08rem; }

/* ---------------------------------------------------------------- tools */
.tool-body { margin-top: -60px; position: relative; z-index: 2; background: var(--white); border-radius: 22px; box-shadow: var(--shadow); padding: 12px 32px 28px; max-width: 980px; }
.tool-body > h2:first-child { margin-top: 24px; }
.tool-body .calc { background: transparent; border: 0; padding: 0; }
.tool-body .calc h2 { font-size: 1.35rem; margin: 28px 0 12px; }
.tool-body .calc h2:first-child { margin-top: 20px; }
.tool-body .result { border-left-color: var(--green); }
.tool-body .links { list-style: none; padding: 0; margin: 20px 0 8px; }
.tool-body .links li { border-bottom: 1px solid var(--line); }
.tool-body .links a { display: block; padding: 14px 0; font-weight: 650; text-decoration: none; }
.tool-body .links a:hover { text-decoration: underline; }
.tool-actions { margin: 16px 0; display: flex; flex-wrap: wrap; gap: 10px; }
table.items { border-collapse: collapse; width: 100%; }
table.items td { padding: 4px 6px 4px 0; vertical-align: top; }
table.items th { text-align: left; font-weight: 650; padding: 0 6px 6px 0; }
table.items input, table.items select { max-width: none; }
.doc { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--white); }
.doc:empty { display: none; }
.inv h2 { margin-top: 0; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 16px; }
.inv-meta, .inv-tot { margin: 0 0 16px; }
.inv-meta > div, .inv-tot > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.inv-meta dd, .inv-tot dd { margin: 0; font-weight: 600; }
.inv-tot .total { font-weight: 700; border-bottom: 2px solid var(--ink); }
.inv-lines { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 0.97rem; }
.inv-lines th, .inv-lines td { text-align: left; padding: 6px 6px 6px 0; border-bottom: 1px solid var(--line); }
.inv-lines th:last-child, .inv-lines td:last-child { text-align: right; }

/* ---------------------------------------------------------------- guides and articles */
.art-grid { display: grid; grid-template-columns: 220px minmax(0, 680px) 280px; gap: 48px; justify-content: space-between; margin-top: -60px; position: relative; z-index: 2; }
.art { background: var(--white); border-radius: 22px; }
.art-img { margin: 0 0 28px; }
.art-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; border-radius: 22px; box-shadow: var(--shadow); }
.art-img figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--muted, #5a6478); }
.art-lead { margin: 0 0 28px; padding: 22px 24px; border-radius: 22px; background: var(--tint-mint); font-size: 1.2rem; line-height: 1.55; font-weight: 600; color: var(--navy); box-shadow: var(--shadow); }
.art-ico { display: flex; align-items: center; justify-content: center; }
.acard-img.art-ico .ico { width: 120px; height: 120px; }
.art-ico.tint-gold { background: var(--tint-gold); }
.art-ico.tint-coral { background: var(--tint-coral); }
.art-ico.tint-mint { background: var(--tint-mint); }
.art-ico.tint-lilac { background: var(--tint-lilac); }
.featured-img.art-ico .ico { position: absolute; inset: 0; margin: auto; width: 160px; height: 160px; }
.art-body { font-size: 1.1rem; line-height: 1.7; }
.art-body h2 { scroll-margin-top: 24px; }
.art-toc { padding-top: 84px; }
.toc { position: sticky; top: 24px; }
.toc h2 { font-size: 1rem; margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -3px; border-left: 3px solid transparent; text-decoration: none; font-weight: 550; font-size: 0.97rem; line-height: 1.35; color: var(--muted); }
.toc a:hover { color: var(--ink); border-left-color: var(--green); }
.art-side { padding-top: 84px; }
.rel-card { position: sticky; top: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px; border-radius: var(--radius); background: var(--tint-gold); text-decoration: none; color: var(--ink); }
.rel-card .ico { width: 80px; height: 80px; margin-bottom: 4px; }
.rel-kind { font-size: 0.92rem; color: var(--muted); font-weight: 600; }
.rel-name { font-weight: 800; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.015em; }
.rel-go { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-weight: 700; color: var(--navy); background: var(--white); padding: 8px 14px; border-radius: 999px; }
.rel-card:hover .rel-go { box-shadow: 0 0 0 2px var(--navy); }
.art-rel-inline { display: none; margin: 28px 0; }
.art-rel-inline .rel-card { position: static; }
.rel-arts { margin-top: 24px; }

.featured { display: grid; grid-template-columns: 7fr 5fr; margin-top: -60px; position: relative; z-index: 2; border-radius: 22px; overflow: hidden; background: var(--white); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.featured-img { display: block; min-height: 360px; position: relative; }
.featured-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: 36px; }
.featured-title { font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; }
.featured-meta { color: var(--muted); }
.featured:hover .featured-title { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 3px; }
.hub-sec { margin-top: 48px; }
.hub-sec .sec-head { justify-content: flex-start; gap: 12px; }
.hub-sec .ico { width: 56px; height: 56px; }

/* ---------------------------------------------------------------- footer */
.site-foot { margin-top: 88px; background: var(--panel); border-top: 1px solid var(--line); font-size: 0.97rem; }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1.4fr 1.1fr 1.2fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.foot-col h2 { font-size: 1rem; margin: 0 0 12px; letter-spacing: -0.005em; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin: 0 0 8px; }
.foot-col a { text-decoration: none; color: var(--ink); }
.foot-col a:hover { text-decoration: underline; }
.foot-legal { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 32px; color: var(--muted); }
.foot-legal p { margin: 0; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .art-grid { grid-template-columns: minmax(0, 1fr) 260px; }
  .art-toc { grid-column: 1 / -1; padding-top: 0; order: -1; }
  .art-toc .toc { position: static; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-top: 0; }
  .art-grid { margin-top: -60px; }
  .ccards { grid-template-columns: repeat(3, 1fr); }
  .ccards .ccard:nth-child(n+4) { grid-column: span 1; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 1180px) and (min-width: 901px) {
  /* five comparison cards: a row of three and a row of two, both full width */
  .ccards { grid-template-columns: repeat(6, 1fr); }
  .ccards .ccard { grid-column: span 2; }
  .ccards .ccard:nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 960px) {
  .cats { grid-template-columns: 1fr 1fr; }
  .feature-in, .tools-in { grid-template-columns: minmax(0, 1fr); }
  .feature-photo { min-height: 320px; }
  .page-grid { grid-template-columns: 1fr; gap: 0; }
  .side { position: static; margin-top: 32px; }
  .art-grid { grid-template-columns: 1fr; }
  .art-side { display: none; }
  .art-rel-inline { display: block; }
  .featured { grid-template-columns: 1fr; }
  .featured-img { min-height: 240px; }
  .acards { grid-template-columns: 1fr 1fr; }
  .carousel { grid-auto-columns: calc((100% - 24px) / 2); }
}
@media (max-width: 900px) {
  .ccards { grid-template-columns: 1fr 1fr; }
  .ccards .ccard { grid-column: auto; }
  .ccards .ccard:last-child { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 16px; }
  .ccards .ccard:last-child .ico { margin-bottom: 0; }
}
@media (max-width: 780px) {
  .calc-card, .calc-card.in-feature { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { position: relative; width: auto; height: 300px; order: 2; }
  .hero { display: flex; flex-direction: column; }
  .hero-photo::before { background: linear-gradient(180deg, var(--navy) 0%, rgba(0, 30, 72, 0) 40%); }
  .hero-photo img { object-position: 50% 25%; }
  .hero-in { min-height: 0; padding-top: 36px; padding-bottom: 28px; }
  .cats { margin-top: -36px; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .head-in { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 12px; padding-bottom: 6px; min-height: 0; }
  .brand img { height: 32px; }
  .main-nav { flex-wrap: wrap; margin: 0 -10px; gap: 0; }
  .main-nav a { padding: 8px 10px; font-size: 0.95rem; }
  .cats { grid-template-columns: 1fr; padding: 12px; gap: 12px; }
  .cat { padding: 18px 18px 8px; }
  .cat-ico { height: 72px; }
  .cat-ico .ico { width: 72px; height: 72px; }
  .feature { padding-top: 56px; }
  .feature-photo { min-height: 240px; border-radius: 18px; }
  .calc-card .calc, .calc-card .result, .calc-card.in-feature .calc, .calc-card.in-feature .result { padding: 20px; }
  .ccards { grid-template-columns: 1fr; gap: 10px; }
  .ccards .ccard, .ccards .ccard:last-child { grid-column: auto; display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 16px; row-gap: 2px; align-items: center; padding: 14px 16px; }
  .ccard .ico { width: 64px; height: 64px; margin: 0; grid-row: 1 / 3; }
  .ccard-title { align-self: end; }
  .ccard-meta { align-self: start; }
  .tools-ico .ico { width: 80px; height: 80px; }
  .trows a { padding: 12px; gap: 12px; }
  .band-in { padding-top: 22px; padding-bottom: 76px; min-height: 0; align-items: flex-start; }
  .band-ico { width: 84px; height: 84px; }
  .band h1 { font-size: 1.85rem; }
  .search-box input { font-size: 1rem; padding: 17px 0; }
  .band-ico .ico { width: 60px; height: 60px; }
  .tool-body { padding: 6px 18px 20px; }
  .grid2 { grid-template-columns: 1fr; }
  .acards { grid-template-columns: 1fr; }
  .carousel { grid-auto-columns: 85%; }
  .featured-body { padding: 22px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .inv-parties { grid-template-columns: 1fr; }
  .doc { padding: 16px; }
  .qa-a { padding-right: 0; }
  table.items, table.items tbody, table.items tr, table.items td { display: block; width: 100%; }
  table.items tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.items thead { display: none; }
  table.items .sr { position: static; width: auto; height: auto; clip: auto; white-space: normal; font-weight: 600; font-size: 0.95rem; }
}

@media print {
  body.printable * { visibility: hidden; }
  body.printable #doc, body.printable #doc * { visibility: visible; }
  body.printable #doc { position: absolute; left: 0; top: 0; width: 100%; border: 0; margin: 0; padding: 0; }
  @page { margin: 16mm; }
}
