/* Shared design system for the three sites. Per-site colours arrive as --accent* vars in <head>. */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-card: #ffffff;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-2: #d1d5db;
  --good: #15803d;
  --good-soft: #ecfdf3;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --bad: #b91c1c;
  --bad-soft: #fef2f2;
  --info-soft: #eff6ff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 4px 16px rgba(17, 24, 39, .06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: var(--font);
  --font-head: var(--font);
  --font-ui: var(--font);
  --head-weight: 700;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1120px;
  --prose: 760px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --bg-soft: #151b23;
    --bg-card: #161c25;
    --ink: #e6e9ef;
    --ink-2: #c5cad3;
    --muted: #9aa3b2;
    --line: #262f3b;
    --line-2: #364152;
    --good: #4ade80;
    --good-soft: rgba(74, 222, 128, .08);
    --warn: #fbbf24;
    --warn-soft: rgba(251, 191, 36, .08);
    --bad: #f87171;
    --bad-soft: rgba(248, 113, 113, .08);
    --info-soft: rgba(96, 165, 250, .08);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas, video { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: var(--head-weight); line-height: 1.25; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); margin-top: 1.8em; }
h3 { font-size: 1.15rem; margin-top: 1.5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* header */
.top-note { font-size: .82rem; padding: 6px 0; background: var(--bg-soft); color: var(--ink-2); border-bottom: 1px solid var(--line); }
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.1; }
.wm-name { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; }
.wm-name b { color: var(--accent); font-weight: inherit; }
.wm-tag { font-family: var(--font-ui); font-size: .78rem; color: var(--muted); margin-top: 3px; letter-spacing: .01em; }
.site-nav ul { list-style: none; display: flex; gap: 2px 18px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { display: block; padding: 8px 0; color: var(--ink-2); text-decoration: none; font-family: var(--font-ui); font-weight: 600; font-size: .95rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.hd-stacked .nav-row { border-top: 1px solid var(--line); }
.nav-toggle { display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--line-2); border-radius: var(--radius-sm); min-height: 40px; padding: 0 12px; cursor: pointer; color: var(--ink); font: 600 .9rem var(--font-ui); }
.nt-bars { display: inline-block; width: 16px; }
.nt-bars span { display: block; height: 2px; background: currentColor; margin: 3px 0; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .hd-inline .site-nav.open { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); }
  .hd-stacked .nav-row { border-top: 0; }
  .hd-stacked .site-nav.open { border-top: 1px solid var(--line); }
  .site-nav ul { flex-direction: column; padding: 6px 16px 14px; gap: 0; }
  .hd-stacked .site-nav ul { padding: 6px 0 14px; }
  .site-nav a { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav li:last-child a { border-bottom: 0; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--accent); }
  .wm-tag { display: none; }
}

/* page scaffolding */
main { padding-bottom: 48px; min-height: 60vh; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 18px 0 0; font-size: .875rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.page-head { margin: 18px 0 22px; max-width: 820px; }
.page-head h1 { margin-bottom: .3em; }
.lead { font-size: 1.125rem; color: var(--ink-2); max-width: 760px; }
.byline { color: var(--muted); font-size: .9rem; margin: 0; }
.disclosure { font-size: .875rem; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; margin-top: 12px; }
.article { max-width: var(--prose); }
.type-tool .prose, .type-section .prose, .is-home .prose { max-width: var(--prose); }

/* prose */
.prose { font-size: 1.0625rem; color: var(--ink-2); }
.prose h2, .prose h3 { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.2em 0; padding: .6em 1em; border-left: 4px solid var(--accent); background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose code, code { font-family: var(--mono); font-size: .9em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: .1em .35em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose img { border-radius: var(--radius-sm); }
.prose .steps { counter-reset: step; list-style: none; padding: 0; }
.prose .steps > li { counter-increment: step; position: relative; padding-left: 44px; margin: 0 0 14px; }
.prose .steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }

.note, .tip, .warn, .example, .formula { border-radius: var(--radius-sm); padding: 14px 16px; margin: 1.2em 0; border: 1px solid var(--line); background: var(--bg-soft); font-size: 1rem; }
.note > :last-child, .tip > :last-child, .warn > :last-child, .example > :last-child, .formula > :last-child { margin-bottom: 0; }
.tip { background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 25%, transparent); }
.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.note { background: var(--info-soft); }
.example { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.note > strong:first-child, .tip > strong:first-child, .warn > strong:first-child, .example > strong:first-child { display: block; margin-bottom: 4px; }
.formula { font-family: var(--mono); font-size: .95rem; overflow-x: auto; white-space: pre-wrap; color: var(--ink); }

/* tables */
.table-wrap { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-soft); font-weight: 650; color: var(--ink); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prose > table { display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 16px 0; }
.card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.card:hover { border-color: var(--accent); }
.card-kicker { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.card-title { font-weight: 680; font-size: 1.05rem; line-height: 1.3; }
.card-text { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.link-list { columns: 2 240px; padding-left: 1.2em; }

.post-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.post-list a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--bg-card); }
.post-list a:hover { border-color: var(--accent); }
.post-title { font-weight: 650; font-size: 1.05rem; }
.post-meta { font-size: .8rem; color: var(--accent); font-weight: 600; }
.post-desc { color: var(--muted); font-size: .93rem; }

/* home */
.hero { padding: 40px 0 16px; max-width: 860px; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.1rem); line-height: 1.1; margin-bottom: .35em; }
.hero p { font-size: 1.15rem; color: var(--ink-2); max-width: 720px; }
.hero .chips { margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 0; }
.chips a, .chip { display: inline-block; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-card); color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 550; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 24px 0 8px; }
.trust div { padding: 14px 16px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.trust strong { display: block; color: var(--ink); }
.trust span { color: var(--muted); font-size: .92rem; }
.section-block { margin-top: 36px; }
.section-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-block-head h2 { margin: 0; }
.section-block-head h2 a { color: var(--ink); text-decoration: none; }
.section-block-head .more { font-weight: 600; text-decoration: none; font-size: .95rem; }

/* tool shell */
.tool { font-family: var(--font-ui); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); box-shadow: var(--shadow); padding: 20px; margin: 8px 0 32px; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .tool-grid { grid-template-columns: 1fr; } .tool { padding: 16px; border-radius: 16px; } }
.tool h2 { margin-top: 0; font-size: 1.1rem; }
.fields { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > label, .field > .label { font-weight: 620; font-size: .95rem; color: var(--ink); display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.field .hint { font-size: .82rem; color: var(--muted); font-weight: 450; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 520px) { .row-3 { grid-template-columns: 1fr 1fr; } }
.input-group { display: flex; align-items: stretch; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.input-group:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-group .affix { display: grid; place-items: center; padding: 0 12px; background: var(--bg-soft); color: var(--muted); font-weight: 600; font-size: .95rem; white-space: nowrap; }
input[type="text"], input[type="number"], input[type="date"], input[type="month"], input[type="time"], input[type="email"], input[type="search"], input[type="url"], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-family: var(--font-ui); font-size: 1rem; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-group input[type], .input-group select { border: 0; outline: 0; background-color: transparent; box-shadow: none; flex: 1; min-width: 0; border-radius: 0; }
.input-group input[type]:focus, .input-group select:focus { box-shadow: none; }
input[type="number"] { -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="range"] { width: 100%; accent-color: var(--accent); margin: 4px 0 0; height: 28px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: .92rem; color: var(--ink-2); min-height: 36px; }
.seg input:checked + span { background: var(--bg-card); color: var(--accent); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-2); background: var(--bg-card); color: var(--ink); font: inherit; font-family: var(--font-ui); font-weight: 650; font-size: .98rem; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { color: var(--accent-ink); filter: brightness(1.06); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* results */
.result { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 14px; }
.result-main { display: grid; gap: 2px; }
.result-main .label { font-size: .85rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.result-main .value { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem); font-weight: 780; color: var(--accent); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; word-break: break-word; }
.result-main .sub { color: var(--muted); font-size: .92rem; }
.result-rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.result-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .97rem; }
.result-row:last-child { border-bottom: 0; }
.result-row span:first-child { color: var(--ink-2); }
.result-row span:last-child, .result-row strong { font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); }
.result-row.total { border-top: 2px solid var(--line-2); border-bottom: 0; padding-top: 11px; font-size: 1.02rem; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .88rem; color: var(--ink-2); }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.chart svg { flex: none; }
.bar { height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; display: flex; }
.bar > i { display: block; height: 100%; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.msg { padding: 10px 12px; border-radius: var(--radius-sm); font-size: .93rem; }
.msg.error { background: var(--bad-soft); color: var(--bad); }
.msg.ok { background: var(--good-soft); color: var(--good); }
.tool-foot { margin-top: 14px; font-size: .85rem; color: var(--muted); }
.schedule { max-height: 420px; overflow: auto; }
.schedule table { font-size: .9rem; }
.schedule thead th { position: sticky; top: 0; z-index: 1; }
details.more-box { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); }
details.more-box > summary { cursor: pointer; padding: 12px 16px; font-weight: 650; list-style: none; }
details.more-box > summary::-webkit-details-marker { display: none; }
details.more-box > summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
details.more-box[open] > summary::after { content: "–"; }
details.more-box > div { padding: 0 16px 16px; }

/* file tools */
.dropzone { position: relative; border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 30px 18px; text-align: center; background: var(--bg-soft); transition: border-color .15s, background .15s; cursor: pointer; }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.dropzone .dz-title { font-weight: 700; font-size: 1.1rem; color: var(--ink); margin: 6px 0 2px; }
.dropzone .dz-sub { color: var(--muted); font-size: .9rem; margin: 0; }
.dropzone svg { width: 40px; height: 40px; color: var(--accent); }
.privacy-line { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: .85rem; color: var(--good); margin-top: 10px; font-weight: 600; }
.options { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: end; margin: 16px 0; }
.options .field { min-width: 150px; }
.file-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.file-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-card); }
.file-item .thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: repeating-conic-gradient(var(--line) 0% 25%, transparent 0% 50%) 50% / 12px 12px; display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: var(--muted); overflow: hidden; }
.file-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-item .name { font-weight: 600; font-size: .93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .meta { font-size: .82rem; color: var(--muted); }
.file-item .meta .saved { color: var(--good); font-weight: 650; }
.file-item .actions { display: flex; gap: 6px; }
@media (max-width: 520px) { .file-item { grid-template-columns: 48px minmax(0, 1fr); } .file-item .actions { grid-column: 1 / -1; } .file-item .thumb { width: 48px; height: 48px; } }
.progress { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 6px; }
.progress > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.preview-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; background: repeating-conic-gradient(var(--line) 0% 25%, transparent 0% 50%) 50% / 16px 16px; display: grid; place-items: center; min-height: 160px; }
.preview-box img, .preview-box canvas { max-height: 360px; object-fit: contain; }

/* faq, review, related */
.faq { max-width: var(--prose); margin-top: 40px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 10px 0; background: var(--bg-card); }
.faq summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 640; position: relative; list-style: none; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 12px; font-size: 1.3rem; color: var(--accent); font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 16px 14px; color: var(--ink-2); }
.faq details > div > :last-child { margin-bottom: 0; }
.reviewed { max-width: var(--prose); margin: 28px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.reviewed p { margin: 0; }
.related { margin-top: 40px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 36px 0 24px; margin-top: 24px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(auto-fit, minmax(150px, 1fr)); gap: 28px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 6px 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-about p { color: var(--ink-2); margin: 10px 0 0; max-width: 420px; }
.site-footer .wordmark .wm-name { font-size: 1.15rem; }
.footer-legal { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer-legal p { margin: 0; }

/* contact form */
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--bg-card); margin: 1.2em 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: .92rem; transition: all .2s; z-index: 200; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media print {
  .site-header, .site-footer, .related, .crumbs, .btn-row, .nav-toggle { display: none !important; }
  .tool { box-shadow: none; }
  body { background: #fff; color: #000; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* requests from page writers */
details.more-box .btn-row { margin-bottom: 10px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px 14px; margin: 0; min-width: 0; display: grid; gap: 12px; }
legend { font-weight: 700; font-size: .95rem; padding: 0 6px; color: var(--ink); }
.result-main + .result-main { border-top: 1px dashed var(--line-2); padding-top: 10px; }
.result-main + .result-main .value { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); color: var(--ink); }
[hidden] { display: none !important; }
fieldset.slab-row, fieldset.appl-row { background: var(--bg); gap: 10px; }
fieldset.slab-row + fieldset.slab-row, fieldset.appl-row + fieldset.appl-row { margin-top: 10px; }
.slab-cap { font-size: .9rem; color: var(--ink-2); }
.slab-open { display: flex; align-items: center; min-height: 46px; padding: 0 12px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); color: var(--muted); font-size: .95rem; }
