@font-face {
    font-family: "IBM Plex Sans";
    src: url("../fonts/ibm-plex-sans-regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans";
    src: url("../fonts/ibm-plex-sans-semibold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Serif";
    src: url("../fonts/ibm-plex-serif-regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Serif";
    src: url("../fonts/ibm-plex-serif-semibold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

:root {
    --pine-950: #0d2822;
    --pine-900: #153c33;
    --pine-800: #205347;
    --pine-700: #2a6658;
    --pine-200: #b9cec5;
    --pine-100: #dfe9e4;
    --paper: #f6f3eb;
    --paper-light: #fdfbf6;
    --ink: #18241f;
    --ink-soft: #49564f;
    --muted: #69736e;
    --signal: #c95335;
    --signal-dark: #9d381f;
    --rule: #cfd2cb;
    --white: #fff;
    --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
    --serif: "IBM Plex Serif", Georgia, serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --shell: 1180px;
    --text: 720px;
    --section-space: clamp(3.75rem, 6.5vw, 6rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: light;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper-light);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    pointer-events: none;
    background-image: linear-gradient(to right, rgb(21 60 51 / 3.5%) 1px, transparent 1px);
    background-size: calc((100vw - min(100vw - 2rem, var(--shell))) / 2 + 1px) 100%;
}

a {
    color: inherit;
    text-decoration-thickness: 0.075em;
    text-underline-offset: 0.2em;
}

button,
input {
    color: inherit;
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--signal);
    outline-offset: 3px;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--pine-950);
    font-family: var(--serif);
    font-weight: 600;
    hyphens: manual;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}

h1 {
    max-width: 16ch;
    margin-bottom: 1.5rem;
    font-size: clamp(3rem, 6.2vw, 5rem);
    line-height: 0.99;
}

h2 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.04;
}

h3 {
    margin-bottom: 0.7rem;
    font-size: 1.6rem;
    line-height: 1.15;
}

.shell {
    width: min(calc(100% - 2.5rem), var(--shell));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    padding: 0.7rem 1rem;
    color: var(--white);
    background: var(--pine-950);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.masthead {
    position: relative;
    z-index: 20;
    background: rgb(253 251 246 / 96%);
    border-bottom: 1px solid var(--pine-950);
}

.masthead-inner {
    display: flex;
    min-height: 86px;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.wordmark {
    display: inline-grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 1.1rem;
    color: var(--pine-950);
    text-decoration: none;
}

.wordmark-name {
    display: inline-flex;
    align-items: baseline;
    font-family: var(--serif);
    font-size: 1.45rem;
    letter-spacing: -0.055em;
    line-height: 1;
}

.wordmark-name strong:first-child {
    font-weight: 600;
}

.wordmark-name strong:last-child {
    color: var(--signal-dark);
    font-weight: 400;
}

.wordmark-descriptor {
    max-width: 8ch;
    padding-left: 1.1rem;
    color: var(--muted);
    border-left: 1px solid var(--rule);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.15;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.main-nav a {
    position: relative;
    padding-block: 0.25rem;
    color: var(--ink-soft);
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
}

.main-nav a::after {
    position: absolute;
    right: 0;
    bottom: -0.15rem;
    left: 0;
    height: 2px;
    content: "";
    background: var(--signal);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 160ms ease;
}

.main-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.kicker,
.section-marker,
.plate-heading,
.result-board-head,
.footer-label,
.footer-topline,
.footer-bottom,
.hero-rule,
.update-line,
.content-meta,
.summary-label,
.note-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.kicker {
    margin-bottom: 0.85rem;
    color: var(--signal-dark);
}

.lead {
    color: var(--ink-soft);
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    line-height: 1.55;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    margin-top: 2.2rem;
}

.action {
    display: inline-flex;
    min-height: 3.2rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.action-primary {
    color: var(--white);
    background: var(--pine-900);
}

.action-primary:hover {
    background: var(--pine-950);
}

.action-text {
    min-height: auto;
    padding: 0.35rem 0;
    color: var(--pine-900);
    border-bottom-color: var(--pine-900);
}

.action-text:hover {
    color: var(--signal-dark);
    border-bottom-color: var(--signal);
}

.action-inverse {
    color: var(--pine-950);
    background: var(--paper);
}

.action-inverse:hover {
    color: var(--white);
    background: var(--signal-dark);
}

.action-outline {
    color: var(--pine-900);
    background: transparent;
    border-color: var(--pine-800);
}

.action-outline:hover {
    color: var(--white);
    background: var(--pine-900);
}

.action-compact {
    min-height: 2.75rem;
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
}

.home-hero {
    padding-bottom: var(--section-space);
    overflow: hidden;
    background:
        linear-gradient(90deg, transparent 69%, rgb(21 60 51 / 4%) 69%),
        var(--paper);
    border-bottom: 1px solid var(--pine-950);
}

.hero-rule {
    display: flex;
    justify-content: space-between;
    padding-block: 1rem;
    color: var(--muted);
    border-bottom: 1px solid var(--rule);
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
    align-items: end;
    gap: clamp(2.5rem, 6vw, 5.5rem);
    padding-top: clamp(3.5rem, 6vw, 5.75rem);
}

.hero-editorial h1 {
    max-width: 13ch;
}

.hero-editorial .lead {
    max-width: 59ch;
}

.system-plate {
    position: relative;
    padding: 1.4rem;
    color: var(--paper);
    background: var(--pine-900);
}

.system-plate::before,
.system-plate::after {
    position: absolute;
    width: 16px;
    height: 16px;
    content: "";
    border-color: var(--signal);
}

.system-plate::before {
    top: -1px;
    left: -1px;
    border-top: 3px solid var(--signal);
    border-left: 3px solid var(--signal);
}

.system-plate::after {
    right: -1px;
    bottom: -1px;
    border-right: 3px solid var(--signal);
    border-bottom: 3px solid var(--signal);
}

.plate-heading,
.result-board-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    color: var(--pine-200);
    border-bottom: 1px solid rgb(246 243 235 / 25%);
}

.system-route {
    display: grid;
    gap: 0;
}

.route-step {
    position: relative;
    display: grid;
    grid-template-columns: 2rem 1fr;
    padding: 1rem 0;
    border-bottom: 1px solid rgb(246 243 235 / 18%);
}

.route-step:not(:last-child)::after {
    position: absolute;
    bottom: -5px;
    left: 0.35rem;
    width: 8px;
    height: 8px;
    content: "";
    background: var(--signal);
    transform: rotate(45deg);
}

.route-step strong {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
}

.route-step small {
    grid-column: 2;
    color: var(--pine-200);
}

.route-index {
    color: var(--signal);
    font-family: var(--mono);
    font-size: 0.72rem;
}

.plate-note {
    margin: 1.5rem 0 0;
    color: var(--pine-100);
    font-size: 0.92rem;
}

.editorial-section {
    padding-block: var(--section-space);
}

.section-marker {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
    padding-block: 0.7rem;
    color: var(--muted);
    border-top: 1px solid var(--pine-950);
    border-bottom: 1px solid var(--rule);
}

.section-marker span:first-child {
    color: var(--signal-dark);
}

.feature-row {
    display: grid;
    grid-template-columns: 0.22fr minmax(0, 1fr) 0.35fr;
    align-items: stretch;
    gap: clamp(1.5rem, 4vw, 4rem);
}

.feature-index,
.tool-number {
    color: var(--signal);
    font-family: var(--serif);
    font-size: clamp(4.5rem, 9vw, 8rem);
    line-height: 0.8;
    letter-spacing: -0.08em;
}

.feature-copy {
    max-width: 680px;
}

.feature-copy h2 {
    font-size: clamp(2.2rem, 4.2vw, 3.6rem);
}

.feature-copy > p:not(.kicker, .content-meta) {
    color: var(--ink-soft);
    font-size: 1.08rem;
}

.content-meta {
    margin-top: 2rem;
    margin-bottom: 0;
    color: var(--muted);
}

.feature-link {
    display: flex;
    min-height: 180px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem;
    color: var(--paper);
    background: var(--pine-900);
    font-weight: 600;
    text-decoration: none;
}

.feature-link span:last-child {
    color: var(--signal);
    font-size: 1.4rem;
}

.feature-link:hover {
    background: var(--pine-950);
}

.tool-section {
    padding-block: var(--section-space);
    color: var(--paper);
    background: var(--pine-950);
}

.tool-grid {
    display: grid;
    grid-template-columns: 0.22fr minmax(0, 1fr) 0.5fr;
    align-items: start;
    gap: clamp(1.5rem, 5vw, 5rem);
}

.tool-copy h2 {
    max-width: 13ch;
    color: var(--paper);
}

.tool-copy > p:not(.kicker) {
    max-width: 55ch;
    color: var(--pine-200);
}

.tool-copy .kicker {
    color: #ef9077;
}

.tool-readout {
    display: grid;
    grid-template-columns: 1fr auto;
    border-top: 1px solid rgb(246 243 235 / 30%);
}

.tool-readout span,
.tool-readout strong {
    padding-block: 1rem;
    border-bottom: 1px solid rgb(246 243 235 / 22%);
}

.tool-readout span {
    color: var(--pine-200);
    font-family: var(--mono);
    font-size: 0.75rem;
}

.tool-readout strong {
    color: #ef9077;
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 400;
}

.section-title {
    max-width: 15ch;
    margin-bottom: 3rem;
}

.topic-ledger {
    border-top: 1px solid var(--pine-950);
}

.topic-line {
    display: grid;
    grid-template-columns: 4rem minmax(180px, 0.55fr) 1fr 2rem;
    align-items: center;
    gap: 1.5rem;
    min-height: 92px;
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
    text-decoration: none;
}

a.topic-line:hover {
    color: var(--signal-dark);
    border-bottom-color: var(--signal);
}

.topic-number {
    color: var(--signal-dark);
    font-family: var(--mono);
    font-size: 0.78rem;
}

.topic-line strong {
    font-family: var(--serif);
    font-size: 1.35rem;
}

.topic-line > span:nth-child(3) {
    color: var(--muted);
}

.topic-line i {
    justify-self: end;
    color: var(--signal-dark);
    font-style: normal;
}

.standards-section {
    padding-block: var(--section-space);
    background: var(--pine-100);
    border-top: 1px solid var(--pine-950);
}

.standards-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: clamp(3rem, 8vw, 8rem);
}

.standards-list {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--pine-950);
    list-style: none;
}

.standards-list li {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
    padding-block: 1.4rem;
    border-bottom: 1px solid rgb(21 60 51 / 25%);
}

.standards-list li > span {
    color: var(--signal-dark);
    font-family: var(--mono);
    font-size: 0.78rem;
}

.standards-list strong {
    font-size: 1.05rem;
}

.standards-list p {
    margin: 0.35rem 0 0;
    color: var(--ink-soft);
}

.breadcrumbs {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    color: var(--muted);
    font-size: 0.84rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
    margin-left: 0.45rem;
    content: "/";
    color: var(--signal);
}

.article-header,
.tool-header,
.info-header {
    padding-top: 1.3rem;
    padding-bottom: clamp(3rem, 6vw, 5.5rem);
}

.article-header-grid,
.tool-header-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.7fr);
    align-items: end;
    gap: clamp(3rem, 7vw, 7rem);
}

.article-header-grid > *,
.tool-header-grid > *,
.info-header-grid > * {
    min-width: 0;
}

.article-header h1,
.tool-header h1 {
    max-width: 18ch;
    margin-bottom: 0;
    font-size: clamp(2.8rem, 5.6vw, 4.7rem);
}

.article-intro .lead,
.tool-header-grid .lead {
    margin-bottom: 2rem;
}

.article-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 0;
    border-top: 1px solid var(--pine-950);
}

.article-facts div {
    padding: 0.8rem 0.5rem 0 0;
}

.article-facts dt {
    margin-bottom: 0.25rem;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-facts dd {
    font-size: 0.84rem;
}

.article-body {
    display: grid;
    grid-template-columns: 240px minmax(0, var(--text));
    justify-content: center;
    gap: clamp(3rem, 7vw, 7rem);
    padding-bottom: clamp(4rem, 7vw, 6.5rem);
}

.article-rail {
    align-self: start;
}

.toc {
    position: sticky;
    top: 1.5rem;
    border-top: 1px solid var(--pine-950);
}

.toc > p {
    margin: 0;
    padding: 0.7rem 0;
    color: var(--muted);
    border-bottom: 1px solid var(--rule);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.toc li {
    display: grid;
    grid-template-columns: 1.8rem 1fr;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--rule);
}

.toc li span {
    color: var(--signal-dark);
    font-family: var(--mono);
    font-size: 0.7rem;
}

.toc a {
    color: var(--ink-soft);
    font-size: 0.88rem;
    line-height: 1.35;
    text-decoration: none;
}

.toc a:hover {
    color: var(--signal-dark);
}

.prose {
    min-width: 0;
}

.article-summary {
    margin-bottom: 2.75rem;
    padding: 1.5rem 1.7rem;
    background: var(--pine-100);
    border-left: 3px solid var(--pine-900);
}

.summary-label {
    margin-bottom: 0.8rem;
    color: var(--pine-800);
}

.article-summary ul {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding-left: 1.2rem;
}

.system-figure {
    margin-bottom: 3rem;
    color: var(--paper);
    background: var(--pine-950);
}

.system-figure figcaption {
    padding: 0.9rem 1rem;
    color: var(--pine-200);
    border-bottom: 1px solid rgb(246 243 235 / 22%);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.system-figure-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.system-figure-grid div {
    display: flex;
    min-height: 145px;
    flex-direction: column;
    padding: 1rem;
    border-right: 1px solid rgb(246 243 235 / 18%);
}

.system-figure-grid div:last-child {
    border-right: 0;
}

.system-figure-grid span {
    margin-bottom: auto;
    color: var(--signal);
    font-family: var(--mono);
    font-size: 0.72rem;
}

.system-figure-grid strong {
    font-family: var(--serif);
    font-size: 1.1rem;
}

.system-figure-grid small {
    margin-top: 0.25rem;
    color: var(--pine-200);
    line-height: 1.35;
}

.prose-section {
    padding-top: 1rem;
    scroll-margin-top: 1rem;
}

.prose-section + .prose-section {
    margin-top: 2.75rem;
}

.section-index {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--signal-dark);
    font-family: var(--mono);
    font-size: 0.78rem;
}

.prose h2,
.sources h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
}

.prose-section p,
.info-body section p {
    color: #37443e;
    font-size: 1.08rem;
    line-height: 1.75;
}

.safety-note {
    margin-top: 2.75rem;
    padding: 1.4rem 1.5rem;
    color: #4c3028;
    background: #f4e1d8;
    border-top: 2px solid var(--signal-dark);
}

.safety-note p:last-child {
    margin-bottom: 0;
}

.note-label {
    margin-bottom: 0.4rem;
    color: var(--signal-dark);
}

.sources {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pine-950);
}

.sources ol {
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.sources li {
    display: grid;
    grid-template-columns: 0.36fr 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--rule);
}

.sources li > span {
    color: var(--muted);
    font-size: 0.82rem;
}

.sources a {
    color: var(--pine-800);
    font-weight: 600;
}

.source-note {
    margin-top: 1.2rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.next-step {
    padding-block: clamp(3.5rem, 7vw, 6rem);
    color: var(--paper);
    background: var(--pine-900);
}

.next-step-grid {
    display: grid;
    grid-template-columns: 0.28fr 1fr auto;
    align-items: end;
    gap: clamp(2rem, 5vw, 5rem);
}

.next-index {
    align-self: start;
    color: #ef9077;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.next-step h2 {
    color: var(--paper);
}

.next-step p {
    max-width: 58ch;
    margin-bottom: 0;
    color: var(--pine-200);
}

.update-line {
    margin-bottom: 0;
    color: var(--muted);
}

.method-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: clamp(3rem, 6vw, 5rem);
    border-top: 1px solid var(--pine-950);
    border-bottom: 1px solid var(--pine-950);
}

.method-strip div {
    display: grid;
    grid-template-columns: 2rem 1fr;
    padding: 1rem;
    border-right: 1px solid var(--rule);
}

.method-strip div:last-child {
    border-right: 0;
}

.method-strip span {
    color: var(--signal-dark);
    font-family: var(--mono);
    font-size: 0.72rem;
}

.method-strip code {
    font-family: var(--mono);
    font-size: 0.9rem;
    font-weight: 600;
}

.method-strip small {
    grid-column: 2;
    color: var(--muted);
}

.calculator {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.65fr);
    align-items: start;
    gap: 1.2rem;
    padding-bottom: 3rem;
}

.calculator-workspace {
    padding: clamp(1.2rem, 3vw, 2rem);
    background: var(--paper);
    border: 1px solid var(--rule);
}

.calculator-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.calculator-heading h2 {
    margin-bottom: 0;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.table-scroll {
    overflow-x: auto;
}

.device-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.device-table th {
    padding: 0.45rem 0.35rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
}

.device-table td {
    padding: 0.45rem 0.25rem;
    border-top: 1px solid var(--rule);
}

.device-table th:first-child,
.device-table td:first-child {
    width: 44%;
}

.device-table input {
    width: 100%;
    min-height: 2.8rem;
    padding: 0.5rem 0.6rem;
    color: var(--ink);
    background: var(--paper-light);
    border: 1px solid #bfc4bd;
    border-radius: 0;
}

.device-table input:focus {
    border-color: var(--pine-800);
}

.device-table input[type="number"] {
    min-width: 74px;
}

.remove-row {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--signal-dark);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 1.25rem;
}

.remove-row:hover {
    background: #eed8cf;
}

.reserve-control {
    display: grid;
    gap: 0.6rem;
    margin-top: 1.8rem;
    padding-top: 1.3rem;
    border-top: 1px solid var(--pine-950);
}

.reserve-control > span {
    display: flex;
    justify-content: space-between;
}

.reserve-control output {
    color: var(--signal-dark);
    font-family: var(--mono);
    font-weight: 600;
}

.reserve-control input {
    width: 100%;
    accent-color: var(--signal);
}

.reserve-control small {
    color: var(--muted);
}

.calculator-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.4rem;
}

.text-button {
    padding: 0;
    color: var(--pine-800);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.save-status {
    color: var(--muted);
    font-size: 0.78rem;
}

.result-board {
    position: sticky;
    top: 1rem;
    padding: 1.4rem;
    color: var(--paper);
    background: var(--pine-900);
}

.result-value {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    margin-bottom: 0;
}

.result-value strong {
    font-family: var(--serif);
    font-size: clamp(4rem, 8vw, 6.2rem);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.06em;
}

.result-value span {
    color: #ef9077;
    font-family: var(--mono);
}

.result-secondary {
    margin-bottom: 2rem;
    color: var(--pine-200);
}

.formula {
    padding: 1rem;
    color: var(--pine-950);
    background: var(--paper);
}

.formula p {
    margin-bottom: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.formula code {
    white-space: normal;
}

.result-note {
    margin: 1.2rem 0 0;
    color: var(--pine-200);
    font-size: 0.86rem;
}

.method-section {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
    gap: clamp(3rem, 8vw, 8rem);
    padding-block: var(--section-space);
}

.assumption-list {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--pine-950);
    list-style: none;
}

.assumption-list li {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--rule);
}

.assumption-list span {
    color: var(--signal-dark);
    font-family: var(--mono);
    font-size: 0.72rem;
}

.assumption-list p {
    margin: 0;
    color: var(--ink-soft);
}

.info-header-grid {
    display: grid;
    grid-template-columns: 0.3fr minmax(0, 0.9fr);
    gap: clamp(2rem, 7vw, 7rem);
}

.info-header h1 {
    max-width: 14ch;
}

.info-header .lead {
    max-width: 58ch;
}

.info-body {
    padding-bottom: clamp(4rem, 7vw, 6.5rem);
}

.info-body > section {
    display: grid;
    grid-template-columns: 0.3fr minmax(0, var(--text));
    gap: clamp(2rem, 7vw, 7rem);
    padding-block: 2.5rem;
    border-top: 1px solid var(--pine-950);
}

.info-body > section > div {
    max-width: var(--text);
}

.info-callout {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 3rem;
    margin-top: 2rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    color: var(--paper);
    background: var(--pine-900);
}

.ad-unit {
    width: min(calc(100% - 2.5rem), var(--text));
    min-height: 280px;
    margin: 2.75rem auto;
    overflow: hidden;
    background: #f1eee6;
    border-block: 1px solid var(--rule);
}

.info-callout h2 {
    color: var(--paper);
}

.info-callout p:not(.kicker) {
    max-width: 58ch;
    margin-bottom: 0;
    color: var(--pine-200);
}

.info-callout .kicker {
    color: #ef9077;
}

.editorial-profile {
    display: grid;
    grid-template-columns: 0.3fr minmax(0, var(--text));
    gap: clamp(2rem, 7vw, 7rem);
    margin-bottom: 2.5rem;
    padding: 2rem 0;
    background: var(--pine-100);
    border-block: 1px solid var(--pine-950);
}

.editorial-profile > * {
    margin-inline: 1.5rem;
}

.editorial-profile h2 {
    margin-bottom: 0.45rem;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.editorial-profile div p {
    margin-bottom: 0;
    color: var(--ink-soft);
}

.legal-header {
    padding-top: 1.3rem;
    padding-bottom: clamp(2.75rem, 5vw, 4.5rem);
}

.legal-header h1 {
    max-width: none;
    margin-bottom: 1.25rem;
    font-size: clamp(2.8rem, 5.6vw, 4.7rem);
    overflow-wrap: normal;
}

.legal-header .lead {
    max-width: 62ch;
}

.legal-date {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.legal-body {
    max-width: 980px;
    padding-bottom: var(--section-space);
}

.legal-section {
    display: grid;
    grid-template-columns: 5rem minmax(0, var(--text));
    gap: clamp(1.5rem, 5vw, 4rem);
    padding-block: 2.25rem;
    border-top: 1px solid var(--pine-950);
}

.legal-section h2 {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.legal-section p,
.legal-address,
.legal-data {
    color: #37443e;
    font-size: 1.04rem;
    line-height: 1.75;
}

.legal-address {
    margin-bottom: 1.25rem;
    font-style: normal;
}

.legal-data {
    margin-bottom: 0;
}

.legal-data > div {
    display: grid;
    grid-template-columns: minmax(8rem, 0.35fr) 1fr;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--rule);
}

.legal-data dt {
    color: var(--muted);
}

.error-page {
    min-height: 65vh;
    padding-block: clamp(5rem, 12vw, 10rem);
}

.site-footer {
    padding-block: 0;
    color: var(--pine-200);
    background: var(--pine-950);
}

.footer-topline,
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1rem;
    color: var(--pine-200);
    border-bottom: 1px solid rgb(246 243 235 / 22%);
}

.footer-topline span:first-child {
    color: var(--paper);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 0.5fr 0.5fr;
    gap: clamp(2rem, 6vw, 6rem);
    padding-block: 3.5rem;
}

.footer-statement p {
    max-width: 32ch;
    color: var(--paper);
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3vw, 2.35rem);
    line-height: 1.25;
}

.footer-label {
    margin-bottom: 0.8rem;
    color: #ef9077;
}

.footer-nav {
    display: grid;
    gap: 0.55rem;
}

.footer-nav a {
    width: fit-content;
    color: var(--paper);
    font-size: 0.9rem;
}

.footer-privacy-button {
    width: fit-content;
    padding: 0;
    color: var(--paper);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: left;
    text-decoration: underline;
    text-decoration-thickness: 0.075em;
    text-underline-offset: 0.2em;
}

.footer-privacy-button:hover {
    color: #ef9077;
}

.footer-bottom {
    border-top: 1px solid rgb(246 243 235 / 22%);
    border-bottom: 0;
    font-size: 0.7rem;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 960px) {
    .home-hero-grid,
    .article-header-grid,
    .tool-header-grid,
    .calculator,
    .standards-grid,
    .method-section {
        grid-template-columns: 1fr;
    }

    .system-plate {
        max-width: 620px;
    }

    .feature-row,
    .tool-grid {
        grid-template-columns: 0.2fr 1fr;
    }

    .feature-link,
    .tool-readout {
        grid-column: 2;
    }

    .feature-link {
        min-height: 100px;
    }

    .article-body {
        grid-template-columns: minmax(0, var(--text));
    }

    .article-rail {
        display: none;
    }

    .result-board {
        position: static;
    }

    .next-step-grid {
        grid-template-columns: 0.28fr 1fr;
    }

    .next-step-grid .action {
        grid-column: 2;
        justify-self: start;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-statement {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .shell {
        width: min(calc(100% - 1.5rem), var(--shell));
    }

    h1,
    .article-header h1,
    .tool-header h1 {
        font-size: clamp(2.55rem, 10vw, 3.2rem);
    }

    h2 {
        font-size: clamp(1.95rem, 9vw, 2.8rem);
    }

    .masthead-inner {
        min-height: 74px;
    }

    .wordmark-descriptor {
        display: none;
    }

    .main-nav {
        gap: 0.9rem;
    }

    .main-nav a {
        font-size: 0.84rem;
    }

    .main-nav a:last-child {
        display: none;
    }

    .hero-rule span:last-child,
    .section-marker span:last-child {
        display: none;
    }

    .feature-row,
    .tool-grid {
        grid-template-columns: 1fr;
    }

    .feature-index,
    .tool-number {
        font-size: 4.2rem;
    }

    .feature-link,
    .tool-readout {
        grid-column: auto;
    }

    .topic-line {
        grid-template-columns: 2.5rem 1fr 1.5rem;
        gap: 0.75rem;
    }

    .topic-line > span:nth-child(3) {
        grid-column: 2 / -1;
        margin-top: -0.5rem;
        font-size: 0.9rem;
    }

    .topic-line i {
        grid-column: 3;
        grid-row: 1;
    }

    .article-facts {
        grid-template-columns: 1fr;
    }

    .article-facts div {
        display: grid;
        grid-template-columns: 7rem 1fr;
        padding: 0.65rem 0;
        border-bottom: 1px solid var(--rule);
    }

    .system-figure-grid {
        grid-template-columns: 1fr 1fr;
    }

    .system-figure-grid div {
        min-height: 125px;
        border-right: 1px solid rgb(246 243 235 / 18%);
        border-bottom: 1px solid rgb(246 243 235 / 18%);
    }

    .sources li {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .next-step-grid,
    .info-header-grid,
    .info-body > section,
    .info-callout,
    .editorial-profile,
    .legal-section {
        grid-template-columns: 1fr;
    }

    .legal-section {
        gap: 0.75rem;
        padding-block: 1.8rem;
    }

    .legal-header h1 {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .legal-data > div {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .next-step-grid .action {
        grid-column: auto;
    }

    .method-strip {
        grid-template-columns: 1fr;
    }

    .method-strip div {
        border-right: 0;
        border-bottom: 1px solid var(--rule);
    }

    .method-strip div:last-child {
        border-bottom: 0;
    }

    .calculator-heading,
    .calculator-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .table-scroll {
        overflow: visible;
    }

    .device-table,
    .device-table tbody,
    .device-table tr,
    .device-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .device-table thead {
        display: none;
    }

    .device-table tbody {
        display: grid;
        gap: 0.8rem;
    }

    .device-table tr {
        display: grid;
        grid-template-columns: repeat(3, 1fr) 2.7rem;
        gap: 0.55rem;
        padding: 0.8rem;
        background: var(--paper-light);
        border: 1px solid var(--rule);
    }

    .device-table td {
        padding: 0;
        border-top: 0;
    }

    .device-table td::before {
        display: block;
        margin-bottom: 0.25rem;
        color: var(--muted);
        content: attr(data-label);
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .device-table td:first-child {
        grid-column: 1 / -1;
        width: 100%;
    }

    .device-table td:last-child {
        display: flex;
        align-items: end;
    }

    .device-table td:last-child::before {
        display: none;
    }

    .device-table input[type="number"] {
        min-width: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-statement {
        grid-column: auto;
    }

    .footer-topline,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
