*, *::before, *::after { box-sizing: border-box; }
:root {
color-scheme: light dark;
--paper:      #ffffff;
--surface:    #f5f7f8;
--surface-2:  #eef2f3;
--ink:        #12171d;
--ink-soft:   #4d5964;
--line:       #e0e5e9;
--line-soft:  #eceff2;
--accent:     #0a6357;
--accent-ink: #084b42;
--accent-bg:  #e6f2ef;
--mark:       #ffe8a3;
--warn-bg:    #fff6e5;
--warn-line:  #f0d093;
--radius:     14px;
--radius-sm:  9px;
--shadow:     0 1px 2px rgba(16, 24, 32, .05), 0 8px 24px -14px rgba(16, 24, 32, .28);
--maxw:       min(100% - 2rem, 72rem);
--measure:    38rem;
--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
:root {
--paper:      #0e1317;
--surface:    #151b21;
--surface-2:  #1b232a;
--ink:        #e7edf1;
--ink-soft:   #a2b0bb;
--line:       #253038;
--line-soft:  #1d262d;
--accent:     #55d6b8;
--accent-ink: #8fe8d2;
--accent-bg:  #122a26;
--mark:       #4a3f1c;
--warn-bg:    #2a2213;
--warn-line:  #4d3f1d;
--shadow:     0 1px 2px rgba(0, 0, 0, .5), 0 10px 28px -16px rgba(0, 0, 0, .9);
}
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
margin: 0;
background: var(--paper);
color: var(--ink);
font-family: var(--font);
font-size: 1.0625rem;
line-height: 1.65;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: .18em; text-decoration-thickness: from-font; }
a:hover { text-decoration-thickness: 2px; }
@media (prefers-color-scheme: dark) { a { color: var(--accent-ink); } }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.wrap { width: var(--maxw); margin-inline: auto; }
.skip {
position: absolute; left: -9999px; top: 0; z-index: 99;
background: var(--accent); color: #fff; padding: .7rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }
.site-head {
border-bottom: 1px solid var(--line);
background: color-mix(in srgb, var(--paper) 88%, transparent);
position: sticky; top: 0; z-index: 20;
backdrop-filter: saturate(1.4) blur(10px);
}
.head-row { display: flex; align-items: center; gap: 1rem; min-height: 3.75rem; }
.brand {
display: inline-flex; align-items: baseline; gap: .12rem;
font-weight: 800; letter-spacing: -.022em; font-size: 1.2rem;
color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand b { color: var(--accent-ink); font-weight: 800; }
.brand .dot { color: var(--ink-soft); font-weight: 600; }
.brand:hover { text-decoration: none; }
.nav { margin-left: auto; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nav::-webkit-scrollbar { display: none; }
.nav ul { display: flex; gap: .3rem; list-style: none; margin: 0; padding: .35rem 0; }
.nav a {
display: block; padding: .42rem .68rem; border-radius: 999px;
color: var(--ink-soft); text-decoration: none; font-size: .945rem; font-weight: 600; white-space: nowrap;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current] { background: var(--accent-bg); color: var(--accent-ink); }
main { display: block; }
.section { padding-block: clamp(2.25rem, 6vw, 3.75rem); }
.section + .section { border-top: 1px solid var(--line-soft); }
h1, h2, h3, h4 { line-height: 1.22; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(1.85rem, 1.25rem + 2.7vw, 2.9rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.8rem); }
h3 { font-size: clamp(1.12rem, 1.02rem + .45vw, 1.28rem); font-weight: 700; }
p { margin: 0 0 1.15em; }
.eyebrow {
text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 800;
color: var(--accent-ink); margin: 0 0 .7rem;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: var(--measure); }
.muted { color: var(--ink-soft); }
mark, .mark {
background: linear-gradient(transparent 62%, var(--mark) 62%);
color: inherit; padding: 0 .06em;
}
.hero { padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(2rem, 5vw, 3rem); }
.hero h1 { max-width: 20ch; }
.hero .lead { font-size: clamp(1.08rem, 1rem + .5vw, 1.28rem); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.btn {
display: inline-flex; align-items: center; gap: .45rem;
padding: .72rem 1.15rem; border-radius: 999px; font-weight: 700; font-size: .98rem;
text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--paper); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #06201c; } }
.btn-primary:hover { filter: brightness(1.08); text-decoration: none; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { background: var(--surface); text-decoration: none; }
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .grid.cols-2, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
padding: 1.15rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .4rem;
}
.card h3 { margin: 0; font-size: 1.1rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent-ink); text-decoration: underline; }
.card p { margin: 0; color: var(--ink-soft); font-size: .965rem; }
.card .meta { margin-top: auto; padding-top: .55rem; font-size: .82rem; color: var(--ink-soft); }
.card-hub { background: var(--surface); }
.card-hub .kicker { font-weight: 800; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.list li { border-bottom: 1px solid var(--line-soft); }
.list li:first-child { border-top: 1px solid var(--line-soft); }
.list a { display: block; padding: .95rem .25rem; text-decoration: none; color: var(--ink); }
.list a:hover { background: var(--surface); }
.list .t { font-weight: 700; display: block; }
.list .d { display: block; color: var(--ink-soft); font-size: .93rem; margin-top: .15rem; }
.crumbs { font-size: .85rem; color: var(--ink-soft); padding-top: 1.1rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.crumbs li::after { content: "›"; margin-left: .35rem; color: var(--line); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--ink-soft); }
.article-head { padding-block: 1.2rem 1.75rem; border-bottom: 1px solid var(--line-soft); }
.article-head .answerbox { margin-top: 1.75rem; }
.article-head .keybox { margin-bottom: 0; }
.byline {
display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .9rem;
font-size: .875rem; color: var(--ink-soft); margin-top: 1.1rem;
}
.byline .who { font-weight: 700; color: var(--ink); }
.pill {
display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem;
border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; font-weight: 600;
}
.pill-ok { background: var(--accent-bg); border-color: transparent; color: var(--accent-ink); }
/* An `auto` grid track sizes to content and will not shrink below it: below
   the 64rem breakpoint this column settled at 445px inside a 343px phone
   viewport, so body text was laid out off-screen. The media query below
   still overrides this on desktop. */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: 1.75rem 3rem; }
.layout > .aside { order: -1; }
@media (min-width: 64rem) {
.layout { grid-template-columns: minmax(0, 1fr) 15.5rem; gap: 3rem; align-items: start; }
.layout > .col-main { grid-column: 1; grid-row: 1; }
.layout > .aside { grid-column: 2; grid-row: 1; position: sticky; top: 4.75rem; }
}
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 0; }
.prose h2 { margin-top: 2.2em; scroll-margin-top: 5rem; }
.prose h3 { margin-top: 1.7em; scroll-margin-top: 5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.15em; }
.prose li { margin-bottom: .5em; }
.prose li > ul, .prose li > ol { margin-top: .5em; }
.prose strong { font-weight: 700; }
.prose code {
font-family: var(--mono); font-size: .9em; background: var(--surface-2);
padding: .12em .34em; border-radius: 5px; word-break: break-word;
}
.prose blockquote {
margin: 1.5rem 0; padding: .9rem 1.1rem; border-left: 3px solid var(--accent);
background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.25rem 0; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose thead th { background: var(--surface); font-weight: 700; white-space: nowrap; }
.prose tbody tr:last-child td { border-bottom: 0; }
.keybox {
background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
padding: 1.1rem 1.2rem; margin: 0 0 2rem; max-width: var(--measure);
}
.keybox h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-ink); margin: 0 0 .6rem; }
.keybox ul { margin: 0; padding-left: 1.15rem; }
.keybox li { margin-bottom: .4em; }
.keybox li:last-child { margin-bottom: 0; }
.callout {
border: 1px solid var(--warn-line); background: var(--warn-bg);
border-radius: var(--radius-sm); padding: .95rem 1.1rem; margin: 1.6rem 0; max-width: var(--measure);
}
.callout p:last-child { margin-bottom: 0; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.toc > summary {
cursor: pointer; padding: .8rem 1rem; font-weight: 700; font-size: .92rem; list-style: none;
display: flex; justify-content: space-between; align-items: center;
}
.toc > summary::-webkit-details-marker { display: none; }
.toc > summary::after { content: "+"; font-weight: 700; color: var(--ink-soft); }
.toc[open] > summary::after { content: "–"; }
.toc ol { list-style: none; margin: 0; padding: 0 1rem 1rem; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: .45rem; font-size: .9rem; line-height: 1.4; }
.toc li:last-child { margin-bottom: 0; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a::before { content: counter(toc) ". "; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--accent-ink); text-decoration: underline; }
@media (min-width: 64rem) {
.toc { background: transparent; border: 0; border-left: 2px solid var(--line); border-radius: 0; }
.toc > summary { display: none; }
.toc ol { padding: 0 0 0 1rem; }
.toc-title { font-size: .74rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 800; color: var(--ink-soft); margin: 0 0 .7rem 1rem; }
}
.toc-title { display: none; }
@media (min-width: 64rem) { .toc-title { display: block; } }
.faq { max-width: var(--measure); }
.faq details {
border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .55rem; background: var(--paper);
}
.faq summary {
cursor: pointer; padding: .9rem 1rem; font-weight: 700; list-style: none; display: flex;
justify-content: space-between; gap: 1rem; align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-ink); font-weight: 800; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line-soft); }
.faq .a { padding: .9rem 1rem 0; }
.faq .a > *:last-child { margin-bottom: 1rem; }
.related { max-width: var(--measure); margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.1rem; }
.prevnext { display: grid; gap: .75rem; margin-top: 2rem; max-width: var(--measure); }
@media (min-width: 44rem) { .prevnext { grid-template-columns: 1fr 1fr; } }
.prevnext a {
border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .85rem 1rem;
text-decoration: none; color: var(--ink); display: block;
}
.prevnext a:hover { background: var(--surface); }
.prevnext span { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-soft); font-weight: 700; margin-bottom: .2rem; }
.prevnext .next { text-align: right; }
.alphabet { display: flex; flex-wrap: wrap; gap: .3rem; margin: 1.5rem 0 2rem; }
.alphabet a {
display: inline-flex; width: 2.1rem; height: 2.1rem; align-items: center; justify-content: center;
border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 700; font-size: .9rem;
color: var(--ink);
}
.alphabet a:hover { background: var(--accent-bg); color: var(--accent-ink); }
.terms { max-width: 46rem; }
.terms h2 { scroll-margin-top: 5rem; border-bottom: 1px solid var(--line); padding-bottom: .3rem; margin-top: 2.5rem; }
.term { padding: 1rem 0; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 5rem; }
.term h3 { margin: 0 0 .3rem; }
.term p { margin: 0 0 .4rem; }
.term p:last-child { margin-bottom: 0; }
.term .more { font-size: .9rem; }
.site-foot { border-top: 1px solid var(--line); background: var(--surface); margin-top: 3rem; padding-block: 2.5rem 2rem; font-size: .93rem; }
.foot-grid { display: grid; gap: 1.75rem; }
@media (min-width: 48rem) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; } }
.site-foot h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .11em; color: var(--ink-soft); margin-bottom: .6rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: .4rem; }
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .fine { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .85rem; }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.notfound { padding-block: 5rem 6rem; text-align: center; }
.sr-only {
position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.tool {
border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
padding: 1.25rem 1.15rem 1.4rem; margin: 2rem 0 2.5rem;
}
@media (min-width: 40rem) { .tool { padding: 1.6rem 1.5rem 1.75rem; } }
.tool-title { margin-top: 0 !important; font-size: 1.25rem; }
.tool-note { font-size: .93rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
.tool-field { margin-bottom: 1.1rem; }
.tool-field > label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .3rem; }
.tool-field .req { font-weight: 500; color: var(--ink-soft); font-size: .8rem; }
.tool-field .hint, .tool-row .hint { display: block; font-weight: 400; font-size: .85rem; color: var(--ink-soft); margin: .15rem 0 .45rem; }
.tool input[type="text"], .tool input[type="password"], .tool input[type="number"], .tool textarea, .tool select {
width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .7rem;
}
.tool input:not([type]) { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .7rem; }
.tool textarea { resize: vertical; }
.tool select { width: auto; padding: .35rem .5rem; }
.tool-check { display: flex; align-items: center; gap: .45rem; margin: .5rem 0 0; font-size: .9rem; }
.tool-check input { width: auto; }
.tool-check label { font-weight: 500; }
.tool-inline { display: inline-flex; align-items: center; gap: .45rem; margin-left: .75rem; font-size: .9rem; }
.tool-inline input[type="checkbox"] { width: auto; }
.tool-inline-fields { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.tool-inline-fields input { max-width: 8rem; }
.tool-inline-fields output { font-weight: 700; }
.tool-out { margin-top: 1.25rem; }
.tool-sub { margin-top: 1.75rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.tool-sub h3 { margin-top: 0 !important; }
.tool-generated { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem .9rem; font-size: .95rem; }
.tool-generated code { font-family: var(--mono); font-size: 1.05rem; word-break: break-all; }
.tool-generated.pre { white-space: pre-wrap; font-family: var(--mono); font-size: .88rem; line-height: 1.55; max-height: 26rem; overflow: auto; }
.tool-copied { font-size: .88rem; color: var(--accent-ink); margin-left: .6rem; }
.tool-verdict { margin: .9rem 0; }
.tool-ok { color: var(--ink-soft); font-size: .93rem; }
.meter { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-bottom: .9rem; }
.meter span { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .18s ease; }
.meter-bad span { background: #c0392b; }
.meter-mid span { background: #c98a12; }
@media (prefers-reduced-motion: reduce) { .meter span { transition: none; } }
.tool-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin: 1rem 0 1.25rem; }
@media (min-width: 40rem) { .tool-stats { grid-template-columns: repeat(4, 1fr); } }
.tool-stats div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .7rem; }
.tool-stats dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); font-weight: 700; }
.tool-stats dd { margin: .15rem 0 0; font-weight: 700; font-size: 1.02rem; }
.tool-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1rem 0; display: block; overflow-x: auto; }
.tool-table caption { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 700; padding-bottom: .4rem; }
.tool-table th, .tool-table td { text-align: left; padding: .5rem .65rem; border-bottom: 1px solid var(--line); }
.tool-table thead th { background: var(--paper); white-space: nowrap; }
.tool-flags { margin-top: 1.1rem; }
.tool-flags h4 { margin: 0 0 .4rem; font-size: .95rem; }
.tool-flags ul { margin: 0; padding-left: 1.15rem; font-size: .93rem; }
.tool-flags li { margin-bottom: .35rem; }
.tool-rows { display: grid; gap: .1rem; }
.tool-row { display: grid; grid-template-columns: 1fr 5rem; gap: .75rem; align-items: start; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.tool-row > label { font-weight: 600; font-size: .95rem; }
.tool-row input { text-align: center; }
.tool-big { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1rem; }
.tool-big div { background: var(--accent-bg); border-radius: var(--radius-sm); padding: .9rem 1rem; }
.tool-big span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--accent-ink); }
.tool-big strong { font-size: 1.5rem; }
.quiz-q { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.05rem; margin-bottom: .8rem; }
.quiz-kind { font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 800; color: var(--ink-soft); margin: 0 0 .4rem; }
.quiz-body { margin: 0 0 .9rem; }
.quiz-opts { display: flex; gap: .5rem; flex-wrap: wrap; }
.quiz-opt {
font: inherit; font-weight: 700; font-size: .93rem; cursor: pointer;
padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.quiz-opt:hover { background: var(--accent-bg); border-color: transparent; color: var(--accent-ink); }
.quiz-result { font-weight: 700; margin: 0 0 .5rem; }
.quiz-result.right { color: var(--accent-ink); }
.quiz-result.wrong { color: #c0392b; }
@media (prefers-color-scheme: dark) { .quiz-result.wrong { color: #ef8b7d; } .meter-bad span { background: #e05a48; } }
.quiz-why { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.quiz-score { border: 1px solid var(--accent); border-radius: var(--radius-sm); padding: 1.1rem; background: var(--accent-bg); }
.quiz-score h3 { margin-top: 0 !important; }
.quiz-score p:last-child { margin-bottom: 0; }
.answerbox {
border-left: 4px solid var(--accent);
background: var(--accent-bg);
border-radius: 0 var(--radius) var(--radius) 0;
padding: 1.05rem 1.2rem;
margin: 0 0 1.5rem;
max-width: var(--measure);
}
.answerbox h2 {
font-size: .78rem; text-transform: uppercase; letter-spacing: .11em;
color: var(--accent-ink); margin: 0 0 .45rem;
}
.answerbox p { margin: 0; font-size: 1.06rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 1rem 0 0; }
.chips a {
display: inline-block; padding: .3rem .7rem; border: 1px solid var(--line);
border-radius: 999px; background: var(--surface); font-size: .88rem; text-decoration: none;
color: var(--ink);
}
.chips a:hover { border-color: var(--accent); color: var(--accent-ink); }
.aside-box {
margin-top: 1.5rem; padding: 1rem 1.1rem; border: 1px solid var(--line);
border-radius: var(--radius); background: var(--surface);
}
.aside-title { margin: 0 0 .5rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: var(--ink-soft); }
.aside-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.aside-box li { font-size: .92rem; line-height: 1.4; }
.aside-box [aria-current] { font-weight: 700; }
.aside-more { margin: .8rem 0 0; font-size: .88rem; }
.searchbox { margin-top: 1.75rem; max-width: var(--measure); }
.searchbox label { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .4rem; }
.searchbox input {
width: 100%; padding: .8rem 1rem; font: inherit; font-size: 1.05rem;
color: var(--ink); background: var(--paper);
border: 2px solid var(--line); border-radius: var(--radius-sm);
}
.searchbox input:focus-visible { border-color: var(--accent); outline-offset: 1px; }
.search-results { margin-top: 1.5rem; min-height: 3rem; }
.search-results .muted { font-size: .9rem; margin: 0 0 .75rem; }
.tag {
display: inline-block; margin-right: .4rem; padding: .05rem .45rem;
border-radius: 999px; background: var(--accent-bg); color: var(--accent-ink);
font-size: .74rem; font-weight: 700; letter-spacing: .02em; vertical-align: 1px;
}
.hero-meta { margin-top: 1.5rem; font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 46rem) {
.nav {
-webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
mask-image: linear-gradient(to right, #000 88%, transparent 100%);
}
}
.glossary-filter { margin-top: 1.75rem; }
.glossary-filter #term-count { margin: .55rem 0 0; font-size: .9rem; }
.term[hidden], .terms h2[hidden] { display: none; }
.foot-blurb { margin-top: .6rem; max-width: 34ch; }
.grid-top { margin-top: 1.25rem; }
.section-note { max-width: 60ch; margin-top: .4rem; }
.cta-row { margin-top: 1.5rem; }
.prose-top { margin-top: 2rem; }
.sources { font-size: .94rem; }
/* ==========================================================================
   Mobiili, luettavuus ja sivupohjan lisäosat
   ========================================================================== */

/* Sisällysluettelo: mobiililla avattava laatikko tekstin yläpuolella,
   työpöydällä kiinteä lista sivupalkissa. Kaksi eri elementtiä, jotta
   kummankaan tila ei riipu JavaScriptistä. */
.toc-mobile { margin: 0 0 1.75rem; max-width: var(--measure); }
.toc-desktop { display: none; }
@media (min-width: 64rem) {
.toc-mobile { display: none; }
.toc-desktop { display: block; }
}
.toc > summary { min-height: 2.9rem; }

/* Sivupalkki kuuluu mobiililla artikkelin jälkeen, ei sen eteen. */
.layout > .aside { order: 0; }
@media (min-width: 64rem) { .layout > .aside { order: 0; } }

/* Kosketuskohteet: vähintään noin 44 px korkeat pienillä näytöillä. */
@media (max-width: 46rem) {
.nav a { padding: .6rem .8rem; font-size: 1rem; }
.nav ul { gap: .15rem; padding-right: 1.5rem; }
.list a { padding: 1.05rem .3rem; }
.crumbs { font-size: .8rem; }
.crumbs a { padding-block: .2rem; display: inline-block; }
}

/* Pitkät sanat ja osoitteet eivät saa venyttää palstaa puhelimessa. */
.prose, .keybox, .answerbox, .faq, .list .t, .list .d { overflow-wrap: break-word; }
.prose a { overflow-wrap: anywhere; }

/* Aihealuesivun ryhmäotsikot */
.group-head { margin: 2.25rem 0 .75rem; font-size: 1.05rem; }
.group-head:first-child { margin-top: 0; }
.group-head a { color: var(--ink); text-decoration: none; }
.group-head a:hover { color: var(--accent-ink); text-decoration: underline; }

/* Takaisin ylös */
.backtotop { margin: 2.25rem 0 0; font-size: .9rem; }
.backtotop a { color: var(--ink-soft); text-decoration: none; }
.backtotop a:hover { color: var(--accent-ink); text-decoration: underline; }

/* Mainospaikat. Tyhjä paikka ei vie tilaa eikä siirrä sisältöä. */
.ad-slot { max-width: var(--measure); margin: 2rem 0; }
.ad-slot:empty { display: none; }
.ad-slot > * { display: block; margin-inline: auto; max-width: 100%; }
.aside .ad-slot { margin: 1.5rem 0 0; max-width: none; }

/* Sanastossa on satoja termejä: selain saa jättää näkymän ulkopuoliset
   lohkot piirtämättä, mutta ne löytyvät silti sivun sisäisellä haulla. */
.term { content-visibility: auto; contain-intrinsic-size: auto 7rem; }

/* Tulostus */
@media print {
.site-head, .site-foot, .nav, .crumbs, .prevnext, .aside, .ad-slot,
.backtotop, .skip, .hero-actions, .cta-row { display: none !important; }
body { font-size: 11pt; }
.wrap { width: auto; }
.prose { max-width: none; }
a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; word-break: break-all; }
}
