@font-face {
  font-family: Inter;
  src: url('/site/assets/fonts/inter-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('/site/assets/fonts/source-serif-4-subhead-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --on-solid: #fff;
  --solid-hover: #3c4045;
  --ink: #1c1d1e;
  --muted: #555751;
  --line: #d7dcde;
  --paper: #fbfaf7;
  --wash: #f2f1ec;
  --card: #ffffff;
  --accent: #2f4f7f;
  --ok-bg: #edf5ef;
  --ok-ink: #1f5432;
  --warn-bg: #faf3e4;
  --warn-ink: #6b460a;
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1.0625rem/1.65 var(--body); }
a { color: inherit; text-decoration-thickness: .075em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid #3b5e9e; outline-offset: 4px; border-radius: 2px; }
.skip { position: absolute; top: 0; left: .5rem; transform: translateY(-150%); }
.skip:focus { transform: none; z-index: 2; background: var(--paper); padding: .5rem; }
.wrap { width: min(calc(100% - 3rem), 67rem); margin-inline: auto; }
header { border-bottom: 1px solid var(--line); }
.topbar { min-height: 4.3rem; padding-block: .8rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; padding-block: .25rem; }
.brand img { display: block; width: 4.5rem; height: auto; }
.topbar nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem; font-size: .9rem; }
.topbar nav a:not(.button), .guide-card h2 a, aside a, .foot-links a { text-decoration: none; }
.topbar nav a:not(.button):hover, .guide-card h2 a:hover, aside a:hover, .foot-links a:hover { text-decoration: underline; }
.button { display: inline-block; background: var(--ink); color: var(--on-solid); border: 0; border-radius: 2rem; padding: .55rem 1.15rem; text-align: center; text-decoration: none; font: 600 .9rem/1.3 var(--body); cursor: pointer; }
.button:hover { background: var(--solid-hover); }
.button-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.button-ghost:hover { background: var(--ink); color: var(--on-solid); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: .88rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: .45rem; opacity: .55; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.hero { padding: clamp(2.5rem, 6vw, 4.75rem) 0 clamp(2rem, 4.5vw, 3.5rem); border-bottom: 1px solid var(--line); }
.meta, footer, .notice p, .author-role { color: var(--muted); font-size: .9rem; }
h1, h2, h3, p, blockquote, ol, ul, dl { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; text-wrap: balance; }
h1 { max-width: 22ch; font-size: clamp(2.25rem, 5.5vw, 4.1rem); line-height: 1.06; letter-spacing: -.04em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.16; letter-spacing: -.03em; }
h3 { font-size: 1.09rem; line-height: 1.4; margin-top: 1.4rem; }
.lead { max-width: 58ch; margin-top: 1.3rem; font-size: clamp(1.1rem, 1.9vw, 1.32rem); line-height: 1.48; }
.meta { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .35rem .85rem; align-items: baseline; }
.tldr { margin-top: 1.6rem; padding: 1.15rem 1.35rem; background: var(--wash); border-left: 3px solid var(--ink); border-radius: .4rem; max-width: 58ch; }
.tldr-label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.bodygrid { display: grid; grid-template-columns: minmax(0, 44rem) minmax(13rem, 17rem); justify-content: space-between; gap: 3rem; padding-block: clamp(2.25rem, 5vw, 4.25rem); }
.copy section + section { margin-top: 2.65rem; }
.copy h2 + *, .copy h3 + * { margin-top: .85rem; }
.copy p + p, .copy ol, .copy ul, .copy dl, .copy blockquote, .copy .table-wrap { margin-top: 1rem; }
.copy ul, .copy ol { padding-inline-start: 1.5rem; }
.copy li + li { margin-top: .65rem; }
.copy .example { background: var(--wash); border-radius: .8rem; padding: clamp(1rem, 3vw, 1.65rem); margin-top: 1.2rem; }
.example dt { font-weight: 650; }
.example dd { margin: .15rem 0 1rem; }
.example dd:last-child { margin-bottom: 0; }
blockquote { border-left: 2px solid var(--ink); padding-left: 1rem; font: 1.16rem/1.52 var(--display); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: .65rem; background: var(--card); }
.data-table { width: 100%; border-collapse: collapse; font-size: .93rem; line-height: 1.5; }
.data-table th, .data-table td { padding: .75rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table th { background: var(--wash); font-weight: 650; font-size: .86rem; }
.faq-list { margin-top: 1rem; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); padding-block: .9rem; }
.faq-list summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-weight: 400; font-size: 1.2rem; color: var(--muted); flex: none; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin-top: .65rem; color: var(--muted); font-size: .96rem; }
.author-box { margin-top: 2rem; padding: 1.15rem 1.35rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--card); }
.author-name { font-weight: 650; font-size: 1rem; }
.author-bio { margin-top: .45rem; font-size: .93rem; color: var(--muted); }
aside { align-self: start; border-top: 1px solid var(--line); padding-top: 1.25rem; }
aside h2 { font: 650 1rem/1.3 var(--body); letter-spacing: 0; }
aside ul { padding: 0; list-style: none; font-size: .94rem; }
aside li { margin-top: .8rem; }
.aside-block + .aside-block { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.notice { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.notice p { margin-top: .45rem; }
.notice .button { margin-top: 1rem; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.35rem; list-style: none; padding: 0; margin-top: 2rem; }
.guide-card { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; padding: 1.45rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--card); }
.guide-card h2 { font-size: 1.38rem; line-height: 1.24; }
.guide-card p { font-size: .95rem; color: var(--muted); margin-top: .6rem; }
.guide-card-tag { font-size: .76rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.guide-card-link { font-size: .92rem; font-weight: 600; text-decoration: none; }
.guide-card-link:hover { text-decoration: underline; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.info-card { padding: 1.15rem 1.25rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--card); }
.info-card dt { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.info-card dd { margin: .3rem 0 0; font-weight: 600; font-size: 1rem; }
.calc-panel { padding: clamp(1.25rem, 3vw, 1.85rem); border: 1px solid var(--line); border-radius: .9rem; background: var(--card); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1rem 1.25rem; margin-top: 1rem; }
.calc-field { display: flex; flex-direction: column; gap: .38rem; }
.calc-field label { font-size: .88rem; font-weight: 600; }
.calc-field select, .calc-field input { font: 1rem/1.4 var(--body); padding: .6rem .75rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--paper); color: var(--ink); }
.calc-custom { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .85rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.calc-custom[hidden] { display: none; }
.calc-actions { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.calc-result { margin-top: 1.4rem; padding: 1.25rem 1.4rem; border-radius: .75rem; background: var(--ok-bg); color: var(--ok-ink); }
.calc-result.is-warn { background: var(--warn-bg); color: var(--warn-ink); }
.calc-deadline { font-family: var(--display); font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 600; line-height: 1.15; margin-top: .25rem; }
.calc-steps { margin-top: .85rem; padding-left: 1.2rem; font-size: .94rem; }
.calc-steps li + li { margin-top: .35rem; }
.calc-norm { margin-top: .75rem; font-size: .88rem; opacity: .9; }
footer { border-top: 1px solid var(--line); }
.foot { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; padding-block: 1.5rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .6rem 1.35rem; }
@media (max-width: 48rem) {
  .bodygrid { grid-template-columns: 1fr; gap: 2.25rem; }
  .calc-grid { grid-template-columns: 1fr; }
  .wrap { width: min(calc(100% - 2rem), 44rem); }
  .topbar nav { gap: .75rem; }
}
@media (max-width: 24rem) {
  .topbar { flex-wrap: wrap; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4f1ea;
    --muted: #b1ada4;
    --line: #343432;
    --paper: #10100f;
    --wash: #1b1b19;
    --card: #161615;
    --on-solid: #10100f;
    --solid-hover: #dcd7cc;
    --ok-bg: #17271d;
    --ok-ink: #b9e4c7;
    --warn-bg: #2d2414;
    --warn-ink: #f3d28f;
  }
  .brand img { filter: brightness(0) invert(.95); }
  :focus-visible { outline-color: #9ac5ff; }
}
