/* 年計 · CompanyYear
   Paper ledger, ink, one deep green. No frameworks. */

:root {
  --paper: #f3eee3;
  --paper-2: #fffdf7;
  --paper-3: #ebe4d6;
  --ink: #18211b;
  --ink-soft: #2d3830;
  --muted: #5d6a60;
  --line: #d8d1c2;
  --line-strong: #bdb3a0;
  --green: #155c46;
  --green-deep: #0d3d2f;
  --green-soft: #e2efe8;
  --amber: #9a5a19;
  --amber-soft: #f7e9d2;
  --red: #963528;
  --red-soft: #f5dfd9;
  --shadow: 0 18px 50px rgba(24, 33, 27, 0.08);
  --shadow-sm: 0 6px 18px rgba(24, 33, 27, 0.05);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1120px;
  --display: "Iowan Old Style", "Palatino Linotype", "Songti TC", "Noto Serif TC", "Source Han Serif TC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang HK", "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", sans-serif;
  --mono: "SF Mono", "Menlo", "Consolas", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1512;
    --paper-2: #161e18;
    --paper-3: #1d2720;
    --ink: #eef2ea;
    --ink-soft: #d7ded6;
    --muted: #a3b0a6;
    --line: #2b3730;
    --line-strong: #425247;
    --green: #7cc7a6;
    --green-deep: #0b2b22;
    --green-soft: #172a22;
    --amber: #e0a45c;
    --amber-soft: #2e2418;
    --red: #e08a7b;
    --red-soft: #2e1d1a;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.25);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--green); color: #fff; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
@media (prefers-color-scheme: dark) { a:hover { color: #b6e8d2; } }

img { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper-2); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }


/* home overview */
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 18px; }
.preview-card { display: flex; flex-direction: column; gap: 14px; }
.preview-label { margin: 0; font-size: 10px; letter-spacing: .12em; text-transform: none; color: var(--muted); font-weight: 700; }
.preview-next { background: var(--green-deep); color: #f2f8f3; border-radius: 14px; padding: 16px 17px; display: grid; gap: 4px; }
.preview-next span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.preview-next strong { font-family: var(--display); font-size: 24px; line-height: 1.15; }
.preview-next small { font-size: 12px; opacity: .85; }
.preview-rows { display: grid; }
.preview-rows div { display: grid; grid-template-columns: 78px 1fr auto; gap: 8px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 11.5px; }
.preview-rows div:last-child { border-bottom: 0; }
.preview-rows span { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.preview-rows b { font-size: 12.5px; font-weight: 600; }
.preview-rows em { font-style: normal; color: var(--ink-soft); white-space: nowrap; }
.preview-note { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.5; }

/* header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.head-inner { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--green); color: var(--paper-2);
  display: grid; place-items: center; font-family: var(--display); font-size: 21px; line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--display); font-size: 15px; letter-spacing: 0; line-height: 1.15; }
.brand-text small { font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.2; }
.site-nav { display: flex; gap: 20px; margin-left: auto; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 600; }
.site-nav a:hover { color: var(--green); }
.nav-cta { display: none; }
.head-cta {
  background: var(--green); color: var(--paper-2); text-decoration: none;
  padding: 9px 15px; border-radius: 999px; font-size: 13px; font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.head-cta:hover { background: var(--green-deep); color: var(--paper-2); }

.nav-toggle {
  display: none; width: 38px; height: 38px; padding: 0;
  flex-direction: column; justify-content: center; align-items: center; gap: 3px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--paper-2); color: var(--ink); cursor: pointer;
}
.nav-toggle span { display: block; width: 17px; height: 2px; margin: 0; background: currentColor; border-radius: 2px; transition: transform .16s ease, opacity .16s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 760px) {
  .head-inner { flex-wrap: nowrap; gap: 8px 10px; min-height: 60px; padding: 8px 0; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand-text strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-text small { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
    margin: 0; padding: 10px 18px 14px; flex-direction: column; gap: 0;
    background: var(--paper-2); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(24, 33, 27, .12);
  }
  .site-nav a { font-size: 15px; padding: 11px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
  .site-nav a:last-child { border-bottom: 0; }
  body.nav-open .site-nav { display: flex; }
  .site-nav a.nav-cta {
    display: flex; justify-content: center; margin-top: 12px; padding: 11px 14px;
    border: 0; border-radius: 999px; background: var(--green); color: var(--paper-2);
    font-size: 14px; font-weight: 700;
  }
  .site-nav a.nav-cta:hover { color: var(--paper-2); background: var(--green-deep); }
  .head-cta { display: none; }
  .nav-toggle { display: inline-flex; order: 2; flex: 0 0 auto; }
}

@media (max-width: 360px) {
  .brand-text strong { font-size: 13px; }
  .brand-text small { font-size: 8px; }
  .head-cta { padding: 6px 8px; font-size: 11px; }
  .nav-toggle { width: 36px; height: 36px; }
}

/* type */
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: 1.02; margin: 0 0 20px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.12; margin: 0 0 14px; }
h3 { font-size: 1.15rem; margin: 26px 0 8px; }
p { margin: 0 0 14px; }
.lede { font-size: clamp(1rem, 1.6vw, 1.14rem); color: var(--ink-soft); line-height: 1.65; max-width: 62ch; }
.nowrap { white-space: nowrap; }
.kicker {
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .16em;
  color: var(--green); margin: 0 0 14px;
}
.muted { color: var(--muted); }
.small { font-size: 12.5px; line-height: 1.55; }
.updated { font-size: 12px; color: var(--muted); margin-top: 16px; }

/* hero */
.hero-home { padding: 64px 0 42px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: start; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy h1 em {
  font-style: normal; color: var(--green);
  background: linear-gradient(transparent 68%, color-mix(in srgb, var(--green) 22%, transparent) 68%);
}
.hero-copy .lede { margin-bottom: 22px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--ink-soft);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 10px; background: var(--paper-2);
}
.hero-note { font-size: 12px; color: var(--muted); }
.hero-points { list-style: none; margin: 26px 0 18px; padding: 0; display: grid; gap: 0; max-width: 430px; }
.hero-points li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.hero-points li:last-child { border-bottom: 1px solid var(--line); }
.hero-points span { font-family: var(--display); color: var(--green); font-size: 15px; line-height: 1.3; }
.hero-points strong { display: block; font-size: 13.5px; line-height: 1.35; }
.hero-points small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.hero-side { position: relative; }
.hero-side::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: 22px;
  background: color-mix(in srgb, var(--green) 14%, transparent); z-index: 0;
}
.calc-card {
  position: relative; z-index: 1; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow); padding: 20px;
}
.calc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field:first-child { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.field-hint { font-size: 10.5px; color: var(--muted); line-height: 1.4; }
.field input, .field select {
  width: 100%; font: inherit; font-size: 14px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 9px; padding: 9px 10px; min-height: 40px;
}
.field input:focus, .field select:focus { outline: 3px solid color-mix(in srgb, var(--green) 28%, transparent); border-color: var(--green); }
.field.check { justify-content: flex-end; }
.field.check label { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 500; color: var(--ink-soft); display: flex; gap: 7px; align-items: center; }
.field.check input { width: 15px; height: 15px; min-height: 0; accent-color: var(--green); }
.calc-more { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: 10px; }
.calc-more summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.calc-more label { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; }
.calc-more input { accent-color: var(--green); }

.calc-result { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.calc-placeholder { font-size: 13px; color: var(--muted); margin: 0; }
.next-card {
  background: var(--green-deep); color: #f2f8f3; border-radius: 14px; padding: 16px 17px;
  display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: end;
}
.next-card.overdue { background: var(--red); }
.next-label { grid-column: 1 / -1; font-size: 10.5px; letter-spacing: .14em; opacity: .8; }
.next-title { font-family: var(--display); font-size: 20px; line-height: 1.15; }
.next-date { font-size: 13px; opacity: .9; }
.next-days { font-family: var(--display); font-size: 26px; text-align: right; line-height: 1; }
.next-fee { grid-column: 1 / -1; font-size: 12px; opacity: .85; border-top: 1px solid rgba(255,255,255,.18); padding-top: 8px; }
.next-card.overdue .next-fee { border-color: rgba(255,255,255,.25); }

.result-block { margin-top: 18px; }
.result-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.result-heading h3 { margin: 0; font-family: var(--sans); font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline-item {
  display: grid; grid-template-columns: 66px 1fr auto; gap: 4px 10px; padding: 9px 0;
  border-bottom: 1px solid var(--line); align-items: baseline;
}
.timeline-item:last-child { border-bottom: 0; }
.timeline-date { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.timeline-title { font-size: 13.5px; font-weight: 600; }
.timeline-title a { color: var(--ink); text-decoration: none; }
.timeline-title a:hover { color: var(--green); }
.timeline-note { grid-column: 2 / -1; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.timeline-fee { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-soft); }
.timeline-item.overdue .timeline-date, .timeline-item.overdue .timeline-fee { color: var(--red); font-weight: 700; }
.timeline-item.overdue .timeline-title a { color: var(--red); }

.cost-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cost-table th { text-align: left; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 0 6px; }
.cost-table td { padding: 7px 0; border-top: 1px solid var(--line); vertical-align: top; }
.cost-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cost-table tr.total td { border-top: 2px solid var(--ink); font-weight: 700; padding-top: 10px; }
.cost-table .cost-note { display: block; font-size: 10.5px; color: var(--muted); }
.ics-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.calc-error { background: var(--amber-soft); color: var(--amber); border-radius: 10px; padding: 12px; font-size: 13px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: var(--paper-2); text-decoration: none;
  border: 1px solid var(--green); border-radius: 999px; padding: 10px 18px;
  font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; line-height: 1.2;
}
.btn:hover { background: var(--green-deep); color: var(--paper-2); border-color: var(--green-deep); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--green-soft); color: var(--green-deep); border-color: var(--green); }
.btn-small { padding: 7px 12px; font-size: 12px; }

/* sections */
.section { padding: 70px 0; }
.section.tinted { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--muted); margin: 0; }
.section-cta { margin-top: 24px; }
.strip { padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 22px 24px; }
.strip-inner div { display: flex; flex-direction: column; gap: 2px; }
.strip-inner strong { font-family: var(--display); font-size: 24px; color: var(--green); }
.strip-inner span { font-size: 12px; color: var(--muted); }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.link-card {
  position: relative; display: flex; flex-direction: column; gap: 7px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-decoration: none; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--green); color: var(--ink); }
.link-card-kicker { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--green); font-weight: 700; }
.link-card strong { font-family: var(--display); font-size: 1.15rem; line-height: 1.2; }
.link-card span:not(.link-card-kicker):not(.link-card-arrow) { font-size: 13px; color: var(--muted); line-height: 1.55; }
.link-card-arrow { position: absolute; right: 18px; top: 18px; color: var(--green); font-size: 16px; transition: transform .18s ease; }
.link-card:hover .link-card-arrow { transform: translateX(3px); }

/* prose */
.prose { font-size: 15.5px; }
.prose h2 { margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose p { line-height: 1.78; }
.prose ul, .prose ol { padding-left: 1.15em; margin: 0 0 18px; }
.prose li { margin-bottom: 7px; line-height: 1.7; }
.rules-list { list-style: none; padding-left: 0 !important; }
.rules-list li { position: relative; padding-left: 22px; }
.rules-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.rules-list.numbered { counter-reset: n; }
.rules-list.numbered li { counter-increment: n; }
.rules-list.numbered li::before {
  content: counter(n); background: var(--green); color: var(--paper-2); width: 18px; height: 18px;
  border-radius: 50%; font-size: 10px; display: grid; place-items: center; top: .3em; font-weight: 700;
}
.example { background: var(--green-soft); border-left: 3px solid var(--green); padding: 14px 16px; border-radius: 0 10px 10px 0; margin: 18px 0; }
.example p { margin: 0; }
.example-label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 700; margin-bottom: 4px !important; }

.callout { border-radius: 0 12px 12px 0; padding: 15px 17px; margin: 22px 0; border-left: 3px solid var(--green); background: var(--green-soft); }
.callout p:last-child { margin-bottom: 0; }
.callout-title { font-weight: 700; margin-bottom: 6px; font-size: 13px; }
.callout-note { border-color: var(--green); background: var(--green-soft); }
.callout-warn { border-color: var(--amber); background: var(--amber-soft); }
.callout-warn .callout-title { color: var(--amber); }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
.table-wrap th { text-align: left; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
.table-wrap td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td strong { font-variant-numeric: tabular-nums; }
.table-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.table-lead { font-size: 13px; color: var(--ink-soft); margin: 0 0 10px; padding: 9px 12px; background: var(--green-soft); border-left: 3px solid var(--green); border-radius: 0 8px 8px 0; }
.tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em; border-radius: 999px; padding: 2px 7px; }
.tag-gov { background: var(--green-soft); color: var(--green); }
.tag-market { background: var(--amber-soft); color: var(--amber); }

.total-band { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.total-band div { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.total-band span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.total-band strong { display: block; font-family: var(--display); font-size: 24px; margin: 3px 0; }
.total-band small { font-size: 12px; color: var(--muted); }

/* page hero / crumbs */
.page-hero { padding: 44px 0 20px; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); max-width: 20ch; }
.page-hero .lede { margin-bottom: 0; }
.crumbs { margin-bottom: 20px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; font-size: 12px; color: var(--muted); }
.crumbs li { display: flex; gap: 6px; align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }

/* faq */
.faq-section { padding-top: 56px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 15px 30px 15px 0; position: relative;
  font-weight: 600; font-size: 15px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 13px; font-family: var(--display);
  font-size: 20px; color: var(--green); transition: transform .15s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq-a { padding: 0 0 16px; color: var(--ink-soft); font-size: 14px; line-height: 1.72; max-width: 68ch; }
.faq-a p:last-child { margin-bottom: 0; }

/* sources / related */
.sources { padding-top: 30px; }
.source-list { padding-left: 18px; margin: 0 0 14px; font-size: 13px; }
.source-list li { margin-bottom: 6px; }
.related { padding-top: 20px; }
.related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.related-list a { font-size: 14px; }

/* checklist */
.checklist-head { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: end; margin-bottom: 26px; }
.checklist-head div { display: flex; flex-direction: column; gap: 3px; }
.checklist-head span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.blank-line { display: block; width: 240px; border-bottom: 1px solid var(--ink); height: 22px; }
.blank-line.short { width: 140px; }
.print-btn { margin-left: auto; }
.check-block { border-top: 2px solid var(--ink); padding: 16px 0 8px; margin-top: 22px; break-inside: avoid; }
.check-block h2 { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin: 0 0 10px; }
.checkline { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 14.5px; line-height: 1.5; border-bottom: 1px dotted var(--line); cursor: pointer; }
.checkline input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--green); flex: 0 0 auto; }
.check-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.checklist-foot { margin-top: 24px; }


/* personalised checklist */
.checklist-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.cl-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; flex: 1 1 520px; }
.cl-fields label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cl-fields span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.cl-fields input, .cl-fields select { width: 100%; font: inherit; font-size: 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 9px; padding: 9px 10px; min-height: 40px; }
.cl-fields input:focus, .cl-fields select:focus { outline: 3px solid color-mix(in srgb, var(--green) 28%, transparent); border-color: var(--green); }
.cl-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.cl-summary { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin: 14px 0 18px; }
.cl-summary > div { background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.cl-summary span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cl-summary strong { display: block; font-family: var(--display); font-size: 22px; line-height: 1.2; margin: 3px 0; font-variant-numeric: tabular-nums; }
.cl-summary small { color: var(--muted); font-size: 12px; }
.cl-summary .overdue { background: var(--red-soft); border-color: var(--red); }
.cl-summary .overdue strong, .cl-summary .overdue small { color: var(--red); }
.cl-list { border-top: 2px solid var(--ink); }
.cl-item { display: grid; grid-template-columns: 22px 92px 1fr auto; gap: 8px 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cl-item input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--green); cursor: pointer; }
.cl-date { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cl-main a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 13.5px; }
.cl-main a:hover { color: var(--green); }
.cl-main small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.45; font-weight: 400; }
.cl-fee { font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.cl-item.overdue .cl-date, .cl-item.overdue .cl-fee { color: var(--red); font-weight: 700; }
.cl-item.overdue .cl-main a { color: var(--red); }
.cl-item.cl-manual { background: color-mix(in srgb, var(--green) 5%, transparent); }
.cl-empty { padding: 22px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--paper-2); }
.cl-empty strong { display: block; font-family: var(--display); font-size: 18px; margin-bottom: 4px; }
.cl-empty p { margin: 0; color: var(--muted); font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

@media (max-width: 680px) {
  .cl-fields { grid-template-columns: 1fr 1fr; }
  .cl-actions { width: 100%; margin-left: 0; }
  .cl-summary { grid-template-columns: 1fr; }
  .cl-item { grid-template-columns: 22px 1fr; }
  .cl-date, .cl-main, .cl-fee { grid-column: 2; }
  .cl-fee { text-align: left; }
}
@media (max-width: 420px) {
  .cl-fields { grid-template-columns: 1fr; }
}

@media print {
  .checklist-toolbar, .table-lead, .cl-actions { display: none !important; }
  .cl-summary { grid-template-columns: 1fr 1fr; }
  .cl-item { break-inside: avoid; }
  .cl-output { margin-top: 0; }
}


/* blog */
.post-card { min-height: 0; }
.post-card strong { font-size: 1.2rem; line-height: 1.25; }
.post-card-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.post-hero { padding: 46px 0 18px; }
.post-hero h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 24ch; }
.post-hero .lede { margin-bottom: 10px; }
.post-meta { font-size: 12px; color: var(--muted); margin: 0; }
.post-body { padding: 22px 0 54px; }
.post-body .prose { font-size: 15.5px; }
.post-body h2 { margin-top: 42px; }
.post-body h3 { margin-top: 26px; }
.post-body .table-wrap { margin: 18px 0; }
.post-cta {
  margin: 40px 0 6px; padding: 22px 22px 24px; border-radius: 16px;
  background: var(--green-deep); color: #f2f8f3;
}
.post-cta-kicker { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; margin: 0 0 6px; }
.post-cta h2 { font-family: var(--display); font-size: 24px; line-height: 1.2; margin: 0 0 8px; color: #f2f8f3; }
.post-cta p { font-size: 13.5px; line-height: 1.6; opacity: .9; margin: 0 0 14px; }
.post-cta .btn { background: var(--paper-2); color: var(--green-deep); border-color: var(--paper-2); }
.post-cta .btn:hover { background: #fff; color: var(--green-deep); }

@media (max-width: 680px) {
  .post-hero { padding-top: 30px; }
  .post-hero h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); max-width: none; }
  .post-cta { padding: 18px; }
  .post-cta h2 { font-size: 21px; }
}

/* footer */
.site-foot { border-top: 1px solid var(--line); background: var(--paper-2); margin-top: 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-top: 44px; padding-bottom: 34px; }
.foot-brand p { font-size: 13px; color: var(--muted); max-width: 34ch; }
.brand-foot { margin-bottom: 12px; }
.site-foot h3 { font-family: var(--sans); font-size: 10.5px; letter-spacing: .12em; color: var(--muted); margin: 0 0 10px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 7px; }
.site-foot li a { color: var(--ink-soft); text-decoration: none; font-size: 13px; }
.site-foot li a:hover { color: var(--green); }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: 26px; font-size: 12px; color: var(--muted); }

/* motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .calc-card { animation: rise .5s ease both; }
  .calc-card { animation-delay: .08s; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-side::before { display: none; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-home { padding-top: 40px; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 18px; }
  .section { padding: 52px 0; }
  .card-grid, .card-grid.two { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: 1fr 1fr; gap: 14px; }
  .calc-form { grid-template-columns: 1fr; }
  .field:first-child { grid-column: auto; }
  .next-card { grid-template-columns: 1fr; }
  .next-days { text-align: left; }
  .timeline-item { grid-template-columns: 1fr auto; }
  .timeline-date { grid-column: 1 / -1; }
  .timeline-note { grid-column: 1 / -1; }
  .total-band { grid-template-columns: 1fr; }
  .check-cols { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .foot-bottom { flex-direction: column; }
  .page-hero h1 { max-width: none; }
  .table-wrap { overflow: visible; border: 0; background: transparent; }
  .table-wrap table { min-width: 0; display: block; }
  .table-wrap thead { display: none; }
  .table-wrap tbody { display: block; }
  .table-wrap tr { display: block; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 8px 12px; }
  .table-wrap td { display: grid; grid-template-columns: 84px 1fr; gap: 8px; border: 0; padding: 5px 0; }
  .table-wrap td::before { content: attr(data-label); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
  .table-wrap tr:last-child td { border-bottom: 0; }
}
@media (max-width: 420px) {
  .site-nav a { font-size: 12px; }
  .brand-text strong { font-size: 17px; }
}

/* print */
@media print {
  .site-head, .site-foot, .print-btn, .crumbs, .faq-section, .sources, .related, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 12px; }
  .page-hero { padding: 0 0 12px; }
  .page-hero h1 { font-size: 24px; }
  .checklist-section { padding: 0; }
  .check-block { break-inside: avoid; }
  .checkline { padding: 4px 0; font-size: 12px; }
  a { color: #000; text-decoration: none; }
  .checklist-head { gap: 10px 20px; }
  .blank-line { width: 180px; }
}
