/* Hallmark · shape: Workbench (tool first) · genre: modern-minimal · theme: Blueprint (deal 3/3, seed statutory-late-payment-interest-2dc3·15c3feb8·2026-11-26·r0) · redesign: full
 * hero: Split (head on the left, the rate drawing on the right) · nav: edge-aligned wordmark and links · footer: title block of keylined cells · imagery: none, the rate period drawn as a dimension string from real data · signature: the statutory rate set on a dimension string between the two real ends of its period · blueprint: cyanotype
 * axes: mid/geometric-sans/neutral · posture: drenched · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E3 S4 R4 V3 · weakest: E (long guide pages carry the owner's words), kept verbatim and set in a 46rem measure with keylined fact registers */
@import url("./tokens.css?v=7e2b896b");
@import url("./base.css?v=7e2b896b");

:root {
  --container: 1200px;
  --measure: 46rem;
  --tap: 44px;
}

/* chrome */
.container { padding-inline: var(--gutter); }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); background: var(--color-ink); color: var(--color-accent-ink); padding: var(--space-xs) var(--space-md); z-index: var(--z-modal); }
.skip { min-height: var(--tap); display: inline-flex; align-items: center; }
.skip:focus-visible { top: var(--space-xs); }
header.site { border-bottom: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); }
header.site .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2xs) var(--space-lg); padding-block: var(--space-xs); }
.brand { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-lg); text-transform: uppercase; letter-spacing: var(--tracking-display); color: var(--color-ink); text-decoration: none; min-height: var(--tap); display: inline-flex; align-items: center; }
.brand:hover { text-decoration: underline; }
nav.main { display: flex; flex-wrap: wrap; gap: 0 var(--space-md); font-size: var(--text-sm); font-weight: 500; }
nav.main a { color: var(--color-ink-2); text-decoration: none; min-height: var(--tap); display: inline-flex; align-items: center; border-bottom: var(--rule-heavy) solid transparent; }
nav.main a:hover { color: var(--color-ink); border-bottom-color: var(--color-rule-2); }
nav.main a:active { color: var(--color-muted); }
nav.main a[aria-current="page"] { color: var(--color-ink); border-bottom-color: var(--color-ink); }

main { padding-block: var(--space-xl) var(--space-2xl); }
.page > * { max-width: var(--measure); }
.page > .card, .page > .tablewrap, .page > form { max-width: none; }
@media (min-width: 60rem) { .page > .card .grid.two { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.crumbs { font-size: var(--text-sm); color: var(--color-muted); margin-bottom: var(--space-md); }
.crumbs a { color: var(--color-ink-2); }
.page > h1 { font-size: var(--text-display-s); text-transform: uppercase; line-height: 1.02; max-width: 22ch; padding-bottom: var(--space-md); border-bottom: var(--rule-heavy) solid var(--color-rule); margin-bottom: var(--space-md); }
.lede { font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); margin-bottom: var(--space-lg); }

/* prose */
.page h2 { font-size: var(--text-section); text-transform: uppercase; line-height: 1.02; margin: var(--space-2xl) 0 var(--space-md); }
.page h3 { margin: var(--space-lg) 0 var(--space-xs); }
.page p, .page ul, .page ol { margin: 0 0 var(--space-md); }
.page li { margin-bottom: var(--space-xs); }
.page a { color: var(--color-ink); }
.page a:hover { text-decoration-thickness: var(--rule-heavy); }
.page a:active { color: var(--color-muted); }
strong { font-weight: 500; }

/* hero (home only) */
.hero { display: grid; gap: var(--space-xl) var(--gap-columns); grid-template-columns: minmax(0, 1fr); align-items: end; padding-block: var(--space-lg) var(--space-xl); border-bottom: var(--rule-heavy) solid var(--color-rule); margin-bottom: var(--space-xl); }
.hero h1 { font-size: var(--text-display); text-transform: uppercase; line-height: 1.02; max-width: 12ch; }
.hero .lede { margin: var(--space-md) 0 var(--space-lg); max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
@media (min-width: 60rem) { .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

/* the signature: the rate on a dimension string between the real ends of its period */
.drawing { position: relative; margin: 0; border: var(--rule-hair) solid var(--color-rule); padding: var(--space-lg) var(--space-lg) var(--space-md); background-color: var(--color-paper-2); background-image: linear-gradient(var(--color-grid) 1px, transparent 1px), linear-gradient(90deg, var(--color-grid) 1px, transparent 1px); background-size: 24px 24px; background-position: var(--sheet-inset) var(--sheet-inset); }
.drawing::after { content: ""; position: absolute; inset: 5px; border: var(--rule-hair) solid var(--color-rule-2); pointer-events: none; }
.drawing .label { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.drawing .rate { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(3.5rem, 6vw + 1rem, 6rem); line-height: 1; letter-spacing: var(--tracking-display); font-variant-numeric: tabular-nums; margin: var(--space-xs) 0 var(--space-md); }
.dim { position: relative; height: var(--rule-hair); background: var(--color-rule); margin: var(--space-md) 0 var(--space-xs); transform-origin: left; }
.dim::before, .dim::after { content: ""; position: absolute; top: calc(var(--tick) / -2); width: var(--rule-hair); height: var(--tick); background: var(--color-rule); transform: rotate(45deg); }
.dim::before { left: 0; } .dim::after { right: 0; }
.dim.next { background: var(--color-rule-2); }
.dim.next::before, .dim.next::after { background: var(--color-rule-2); }
.ends { display: flex; justify-content: space-between; gap: var(--space-sm); font-family: var(--font-outlier); font-weight: 500; font-size: var(--text-sm); }
.drawing .note-line { font-size: var(--text-sm); color: var(--color-ink-2); margin-top: var(--space-xs); max-width: 46ch; }
.drawing .next-head { margin-top: var(--space-lg); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
@media (prefers-reduced-motion: no-preference) {
  .dim.draw { animation: draw var(--dur-long) var(--ease-out) both; }
  @keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* controls */
button, .btn { font-family: var(--font-body); font-weight: 500; font-size: var(--text-md); min-height: 48px; padding: var(--space-sm) var(--space-lg); border: var(--rule-hair) solid var(--color-ink); border-radius: 0; background: var(--color-ink); color: var(--color-accent-ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
button:hover, .btn:hover { background: var(--color-ink-2); border-color: var(--color-ink-2); }
button:active, .btn:active { background: var(--color-muted); border-color: var(--color-muted); }
button:disabled { background: var(--color-paper-3); color: var(--color-muted); border-color: var(--color-rule-2); cursor: not-allowed; }
button.ghost, .btn.ghost { background: transparent; color: var(--color-ink); border-color: var(--color-rule); }
button.ghost:hover, .btn.ghost:hover { background: var(--color-paper-3); }
button.ghost:active, .btn.ghost:active { background: var(--color-paper); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; transition: none; }

/* forms as a title block */
.card { border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); color: var(--color-ink); padding: var(--space-lg) var(--space-md); margin: var(--space-lg) 0; }
.page .card h2 { margin-top: 0; font-size: var(--text-xl); }
.grid { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); border-top: var(--rule-hair) solid var(--color-rule-2); border-left: var(--rule-hair) solid var(--color-rule-2); margin-bottom: var(--space-md); }
.grid > div { border-right: var(--rule-hair) solid var(--color-rule-2); border-bottom: var(--rule-hair) solid var(--color-rule-2); padding: var(--space-sm); min-width: 0; }
@media (min-width: 36rem) { .grid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
label { display: block; font-weight: 500; font-size: var(--text-sm); margin-bottom: var(--space-2xs); }
.hint { display: block; font-weight: 400; color: var(--color-muted); font-size: var(--text-sm); }
input, select, textarea { width: 100%; min-height: 48px; padding: var(--space-xs) var(--space-sm); border: var(--rule-hair) solid var(--color-rule); border-radius: 0; background: var(--color-paper-3); color: var(--color-ink); font-size: var(--text-md); color-scheme: dark; }
input::placeholder, textarea::placeholder { color: var(--color-muted); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--color-ink); }
input:disabled, select:disabled { background: var(--color-paper); color: var(--color-muted); border-color: var(--color-rule-2); cursor: not-allowed; }
input[aria-invalid="true"] { border-color: var(--color-error); }
textarea { min-height: 12rem; line-height: 1.5; }
input[type="checkbox"] { width: 22px; min-height: 22px; height: 22px; margin: 0 var(--space-sm) 0 0; flex: none; accent-color: var(--color-ink); }
.check { display: flex; align-items: center; font-weight: 400; font-size: var(--text-md); min-height: var(--tap); margin: 0; }

/* result */
.result { margin-top: var(--space-md); }
.result:not(:empty) { border-top: var(--rule-heavy) solid var(--color-rule); padding-top: var(--space-md); }
.result .big { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--text-3xl); line-height: 1.05; font-variant-numeric: tabular-nums; margin: 0 0 var(--space-xs); }
.result p { margin-bottom: var(--space-sm); }

/* tables as drawing registers */
.tablewrap { overflow-x: auto; margin: 0 0 var(--space-md); }
table { border-collapse: collapse; width: 100%; font-size: var(--text-sm); }
th, td { border: var(--rule-hair) solid var(--color-rule-2); padding: var(--space-xs) var(--space-sm); text-align: left; vertical-align: top; }
thead th { font-weight: 500; color: var(--color-ink-2); border-bottom: var(--rule-heavy) solid var(--color-rule); }
th.num { text-align: right; }
td.num { text-align: right; font-family: var(--font-outlier); font-weight: 500; font-variant-numeric: tabular-nums; }

/* callouts and facts: keylines all round, never a side stripe */
.note { border: var(--rule-hair) solid var(--color-rule-2); padding: var(--space-sm) var(--space-md); margin: var(--space-md) 0; background: var(--color-paper-3); }
.note.warn { border-color: var(--color-ink); border-width: var(--rule-heavy); }
.facts { list-style: none; padding: 0; margin: var(--space-md) 0 var(--space-lg); border-top: var(--rule-heavy) solid var(--color-rule); }
.facts li { padding: var(--space-sm) 0; margin: 0; border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.src { display: block; font-size: var(--text-sm); color: var(--color-muted); margin-top: var(--space-2xs); }
.page .src a { color: var(--color-ink-2); }
details { border-bottom: var(--rule-hair) solid var(--color-rule-2); }
details:first-of-type { border-top: var(--rule-hair) solid var(--color-rule-2); }
summary { cursor: pointer; font-weight: 500; min-height: var(--tap); display: flex; align-items: center; padding-block: var(--space-xs); }
summary:hover { text-decoration: underline; }
details p { padding-bottom: var(--space-sm); }
.row { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); border: var(--rule-hair) solid var(--color-rule-2); margin-bottom: var(--space-xs); }
.row > div { padding: var(--space-xs) var(--space-sm); min-width: 0; }
@media (min-width: 36rem) { .row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* footer: a title block */
footer.site { border-top: var(--rule-heavy) solid var(--color-rule); background: var(--color-paper-3); font-size: var(--text-sm); color: var(--color-ink-2); }
footer.site .container { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: var(--space-xl); }
footer.site .cell { border: var(--rule-hair) solid var(--color-rule-2); margin: 0 0 -1px; padding: var(--space-sm) var(--space-md); }
footer.site .cell b { display: block; font-family: var(--font-display); font-weight: var(--display-weight); color: var(--color-ink); text-transform: uppercase; }
footer.site a { color: var(--color-ink); display: inline-flex; align-items: center; min-height: var(--tap); }
@media (min-width: 48rem) { footer.site .container { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); } footer.site .cell { margin: 0 -1px 0 0; } }

@media (max-width: 40rem) { nav.main { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; } nav.main a { flex: none; } }
@media print { header.site, footer.site, button, .actions { display: none; } }
.page.embed h1 { font-size: var(--text-xl); max-width: none; margin-bottom: var(--space-sm); }
@media print { #calc-single ~ *, #calc-multi ~ * { display: none; } .card > .grid, .card > h2, .card > p { display: none; } .result .actions, .result details, .result #l-tone, .result label, .result textarea { display: none; } }
.result h3 { font-size: var(--text-lg); margin: var(--space-lg) 0 var(--space-xs); }

/* contact form */
#contact-form .cf-hp { position: absolute; left: -9999px; }
#contact-form .cf-status { min-height: 1.5em; }
#contact-form .check { display: flex; align-items: flex-start; }
