@font-face{font-family:"Brygada 1918";font-style:normal;font-display:swap;font-weight:400 700;src:url(/assets/brygada-1918-latin-wght-normal.e5f15ca62e.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"Brygada 1918";font-style:normal;font-display:swap;font-weight:400 700;src:url(/assets/brygada-1918-latin-ext-wght-normal.d95d916dff.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:"Brygada 1918";font-style:italic;font-display:swap;font-weight:400 700;src:url(/assets/brygada-1918-latin-wght-italic.a0de27c9ce.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"Libre Franklin";font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/libre-franklin-latin-wght-normal.52e605852c.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"Libre Franklin";font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/libre-franklin-latin-ext-wght-normal.61216d8e3e.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:"Libre Franklin";font-style:italic;font-display:swap;font-weight:100 900;src:url(/assets/libre-franklin-latin-wght-italic.c9fb9170f0.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+20AC,U+2122,U+2212;}
:root {
--bg: #F6F6F1;
--surface: #FFFFFF;
--surface-2: #ECEDE5;
--ink: #1E2622;
--ink-2: #38433D;
--muted: #59645D;
--line: #D8DBD0;
--line-strong: #858C80;
--accent: #8E2F45;
--accent-deep: #6E2235;
--accent-tint: #F5E8EA;
--accent-ink: #FFFFFF;
--accent-2: #4A6955;
--sage-tint: #E5ECE4;
--accent-3: #7A4A27;
--soil-tint: #F1EBE1;
--soil-line: #DDD0BD;
--slate: #3F5A74;
--slate-tint: #E7ECF1;
--olive: #5C6820;
--olive-tint: #EEF0E2;
--ok: #2E6A3E;
--warn: #8A5C00;
--radius: 4px;
--radius-sm: 2px;
--font-sans: "Libre Franklin", "Franklin Gothic Book", "Helvetica Neue", Arial, system-ui, sans-serif;
--font-serif: "Brygada 1918", Georgia, "Times New Roman", serif;
--font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
--focus: #6E2235;
--shadow: 0 1px 0 rgba(30, 38, 34, .05), 0 10px 24px -14px rgba(30, 38, 34, .28);
--chart-1: #8E2F45;
--chart-2: #4A6955;
--chart-3: #A0602A;
--chart-4: #3F5A74;
--chart-5: #8A6D00;
--chart-6: #737A74;
--wrap: 76rem;
--measure: 41rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--font-sans); font-kerning: normal; -webkit-font-smoothing: antialiased; }
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 1px; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; color: var(--ink); margin: 0 0 .6em; text-wrap: balance; }
p { margin: 0 0 1em; }
code { font-family: var(--font-mono); font-size: .86em; background: var(--surface-2); padding: .08em .3em; border-radius: var(--radius-sm); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: .65rem 1rem; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: 1rem; color: var(--accent-ink); }
.wrap { --gutter: 1rem; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { .wrap { --gutter: 2rem; } }
.post-layout, .page-body, .tool-body, .related { background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.narrow { max-width: 52rem; }
[hidden] { display: none !important; }
.strata { display: block; }
.strata i { display: block; height: 1px; background: var(--line-strong); margin-top: 3px; }
.strata i:first-child { background: var(--ink); margin-top: 0; }
.strata i:nth-child(2) { width: 62%; }
.strata i:nth-child(3) { width: 30%; }
.strata-soil i { background: var(--soil-line); }
.strata-soil i:first-child { background: var(--accent-3); }
.site-head { background: var(--bg); position: relative; z-index: 10; border-bottom: 1px solid var(--ink); }
.head-row { display: flex; align-items: center; gap: 1.25rem; min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.mark { width: 2.5rem; height: 2.5rem; flex: none; }
.mark .mk-bg { fill: var(--accent); }
.mark .mk-fg { fill: #FFFFFF; }
.word { display: inline-flex; flex-direction: column; white-space: nowrap; }
.w1 { font: 650 1.5rem/1 var(--font-serif); letter-spacing: -.01em; }
.w2 { font: 500 .78rem/1.2 var(--font-sans); color: var(--muted); margin-top: .28rem; letter-spacing: .01em; }
.nav-desk { margin-left: auto; display: none; }
.nav-desk ul { list-style: none; display: flex; gap: .15rem; margin: 0; padding: 0; }
.nav-desk a { display: block; padding: .5rem .7rem; color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.nav-desk a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; }
.nav-desk a[aria-current] { color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.search-link { display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; color: var(--ink); border-radius: var(--radius-sm); }
.search-link svg { width: 1.25rem; height: 1.25rem; }
.search-link:hover { background: var(--surface-2); color: var(--accent); }
.navbox { margin-left: auto; }
.navbox summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .9375rem; padding: .6rem .5rem; min-height: 2.75rem; border-radius: var(--radius-sm); }
.navbox summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; width: 18px; } .burger::after { top: 6px; width: 11px; }
.navbox[open] .burger { background: transparent; }
.navbox[open] .burger::before { top: 0; transform: rotate(45deg); }
.navbox[open] .burger::after { top: 0; width: 18px; transform: rotate(-45deg); }
.navbox nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); padding: .25rem 1rem 1rem; border-bottom: 1px solid var(--ink); box-shadow: var(--shadow); }
.navbox ul { list-style: none; margin: 0; padding: 0; }
.navbox li a { display: block; padding: .8rem 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 500; }
.navbox a[aria-current] { color: var(--accent); }
@media (max-width: 359px) { .w2 { display: none; } }
@media (max-width: 440px) { .navbox summary span:last-child { display: none; } }
@media (min-width: 1080px) { .nav-desk { display: block; } .navbox { display: none; } }
.kicker { font: 600 .875rem/1.3 var(--font-sans); color: var(--accent-2); margin: 0 0 .6rem; }
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.lede { font: 400 clamp(1.125rem, 1rem + .5vw, 1.3125rem)/1.5 var(--font-serif); color: var(--ink-2); max-width: 44rem; }
.abstract { font: 400 clamp(1.1875rem, 1.05rem + .6vw, 1.375rem)/1.45 var(--font-serif); color: var(--ink-2); margin: 0 0 1.25rem; max-width: 44rem; }
.count { color: var(--muted); font-size: .9375rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; background: var(--accent); color: var(--accent-ink); font: 600 .9375rem/1.2 var(--font-sans); padding: .8rem 1.2rem; min-height: 2.75rem; border: 1px solid var(--accent); border-radius: var(--radius-sm); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--accent-ink); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-soil { background: var(--accent-3); border-color: var(--accent-3); }
.btn-soil:hover { background: #5E3819; border-color: #5E3819; }
.crumbs { font-size: .8125rem; color: var(--muted); padding: 1.25rem 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem .5rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); margin-right: .5rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink-2); }
@media (max-width: 640px) { .crumbs li:last-child { display: none; } }
.sec-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 1.5rem; margin-bottom: 1.75rem; }
.sec-head h2 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); font-weight: 550; margin: 0 0 .7rem; letter-spacing: -.01em; }
.sec-head .strata { grid-column: 1 / -1; }
.sec-intro { grid-column: 1 / -1; margin: .9rem 0 0; color: var(--ink-2); max-width: 44rem; }
.sec-more { margin: 0 0 .75rem; font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.h-sub { font-size: 1.375rem; margin-bottom: 1rem; }
.hero { padding: 2.5rem 0 2.75rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: start; }
.hero h1 { font-weight: 500; font-size: clamp(2.375rem, 5.2vw, 3.875rem); line-height: 1.03; letter-spacing: -.02em; max-width: 14ch; margin-bottom: 1.4rem; }
.hero-lede { font: 400 clamp(1.125rem, 1rem + .45vw, 1.3125rem)/1.5 var(--font-serif); color: var(--ink-2); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
@media (min-width: 960px) { .hero { padding: 4rem 0 3.5rem; } .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4.5rem; } }
.hier { margin: 0; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--ink); padding: 1.25rem 1.25rem 1rem; }
.hier-list { list-style: none; margin: 0; padding: 0; counter-reset: tier; }
.hier-tier { counter-increment: tier; margin: 0 0 .7rem; }
.hier-bar { display: flex; align-items: center; gap: .6rem; min-height: 2.35rem; padding: .35rem .75rem; border-radius: var(--radius-sm); font: 600 1rem/1.2 var(--font-sans); }
.hier-bar::before { content: counter(tier); font: 600 .8125rem/1 var(--font-sans); font-variant-numeric: tabular-nums; opacity: .85; min-width: .9rem; }
.hier-t a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.hier-t a:hover { text-decoration-thickness: 2px; }
.hier-d { display: block; font-size: .8125rem; line-height: 1.4; color: var(--muted); margin: .3rem 0 0 .1rem; }
.t1 .hier-bar { width: 100%; background: var(--accent-2); color: #FFFFFF; }
.t2 .hier-bar { width: 89%; background: #5B7865; color: #FFFFFF; }
.t3 .hier-bar { width: 78%; background: #C7D4C6; color: var(--ink); }
.t4 .hier-bar { width: 67%; background: #DCE4DA; color: var(--ink); }
.t5 .hier-bar { width: 56%; background: #E9E2D5; color: var(--ink); }
.t6 .hier-bar { width: 45%; background: #F1ECE4; color: var(--accent-3); box-shadow: inset 0 0 0 1px var(--soil-line); }
.hier figcaption { font-size: .8125rem; line-height: 1.5; color: var(--muted); border-top: 1px solid var(--line); padding-top: .7rem; margin-top: .9rem; }
.fig-n { font-weight: 600; color: var(--ink); }
@media (max-width: 420px) { .t5 .hier-bar, .t6 .hier-bar { width: 62%; } }
.aud { padding-bottom: 1rem; }
.aud-grid { display: grid; gap: 1.75rem 2.5rem; border-top: 2px solid var(--ink); padding-top: 1.5rem; }
@media (min-width: 820px) { .aud-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.aud-col h3 { font-size: 1.3125rem; margin-bottom: .4rem; }
.aud-col p { color: var(--ink-2); font-size: .9375rem; margin-bottom: .65rem; }
.aud-col ul { list-style: none; margin: 0; padding: 0; }
.aud-col li { border-top: 1px solid var(--line); }
.aud-col li a { display: block; padding: .5rem 0; font-weight: 600; font-size: .9375rem; text-decoration: none; }
.aud-col li a:hover { text-decoration: underline; }
.home-sec { padding-top: 3.25rem; padding-bottom: 3.25rem; }
@media (min-width: 768px) { .home-sec { padding-top: 4rem; padding-bottom: 4rem; } }
.home-sec + .home-sec { padding-top: 1rem; }
.lead-grid { display: grid; gap: 2rem; }
.lead-list { display: grid; align-content: start; }
.lead-list .card { border-top: 1px solid var(--line); padding: 1rem 0; }
.lead-list .card:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .lead-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3.5rem; } }
.tsec-grid { display: grid; gap: 2rem 3rem; }
@media (min-width: 760px) { .tsec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tsec { border-top: 2px solid var(--ink); padding-top: .8rem; }
.tsec-t { font-size: 1.375rem; margin-bottom: .5rem; }
.tsec-t a { color: var(--ink); text-decoration: none; }
.tsec-t a:hover { color: var(--accent); text-decoration: underline; }
.tsec ul { list-style: none; margin: 0; padding: 0; }
.tsec li { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.tsec li a { font-weight: 600; color: var(--ink); text-decoration: none; }
.tsec li a:hover { color: var(--accent); text-decoration: underline; }
.tsec li span { display: block; font-size: .8125rem; color: var(--muted); margin-top: .15rem; }
.tgrid { display: grid; gap: 1rem; }
@media (min-width: 680px) { .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tools-strip .tgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tgrid-index { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tcard { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.1rem 1rem; }
.tcard:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.tcard:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.tcard-mark { width: 1.75rem; height: 1.75rem; }
.tcard-mark .mk-bg { fill: var(--sage-tint); }
.tcard-mark .mk-fg { fill: var(--accent-2); }
.tcard-t { font-size: 1.1875rem; margin: 0 0 .35rem; }
.tcard-t a { color: var(--ink); text-decoration: none; }
.tcard-t a::after { content: ""; position: absolute; inset: 0; }
.tcard-t a:hover { color: var(--accent); }
.tcard-t a:focus-visible { outline: none; }
.tcard-d { font-size: .9rem; color: var(--ink-2); margin: 0 0 .4rem; }
.tcard-c { font-size: .8125rem; color: var(--accent-2); font-weight: 600; margin: 0; }
.grid3 { display: grid; gap: 2.25rem 2rem; }
@media (min-width: 640px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid3 > .card { border-top: 1px solid var(--ink); padding-top: 1rem; }
.card { position: relative; }
.card-media { margin-bottom: 1rem; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-t { font-size: 1.3125rem; line-height: 1.2; margin: 0 0 .5rem; }
.card-t a { color: var(--ink); text-decoration: none; }
.card-t a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; }
.card-d { color: var(--ink-2); font-size: .9375rem; margin: 0 0 .6rem; }
.card-m { font-size: .8125rem; color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.card-l .card-t { font-size: clamp(1.75rem, 3.2vw, 2.375rem); line-height: 1.08; font-weight: 550; letter-spacing: -.015em; }
.card-l .card-d { font: 400 1.1875rem/1.5 var(--font-serif); }
.card-l .card-media { aspect-ratio: 16 / 9; }
.card-l:not(.has-img) { border-top: 2px solid var(--accent); padding-top: 1.25rem; }
.topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem 2rem; }
@media (min-width: 640px) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .topics { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.topic { border-top: 1px solid var(--line-strong); padding-top: .9rem; }
.topic-t { font-size: 1.1875rem; margin-bottom: .4rem; }
.topic-t a { color: var(--ink); text-decoration: none; }
.topic-t a:hover { color: var(--accent); text-decoration: underline; }
.topic p { font-size: .875rem; color: var(--ink-2); margin-bottom: .5rem; }
.topic .topic-n { font-size: .8125rem; color: var(--muted); margin: 0; }
@media (max-width: 639px) { .topics-home { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; } .topics-home .topic p:not(.topic-n) { display: none; } .topics-home .topic-t { font-size: 1.0625rem; } }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; margin: 1.5rem 0 0; border-top: 1px solid var(--ink); }
.facts div { padding: .7rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts dt { font-size: .75rem; color: var(--muted); font-weight: 500; margin-bottom: .15rem; }
.facts dd { margin: 0; font-size: .9375rem; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.facts code { background: none; padding: 0; font-size: .875rem; }
.table-wrap { overflow-x: auto; margin: 0 0 .5rem; }
.table-wrap:focus-visible { outline-offset: 0; }
.prose table { width: 100%; border-collapse: collapse; font: 400 .9375rem/1.45 var(--font-sans); font-variant-numeric: tabular-nums lining-nums; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--surface); }
.prose th, .prose td { padding: .6rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { font-size: .8125rem; font-weight: 650; color: var(--ink-2); border-bottom: 1px solid var(--ink); vertical-align: bottom; background: var(--surface-2); }
.prose tbody tr:last-child > * { border-bottom: 0; }
.a-right, .prose td.a-right, .prose th.a-right { text-align: right; }
.a-center { text-align: center; }
.prose { counter-reset: fig tbl; }
.prose .table-title { font: 650 .9375rem/1.4 var(--font-sans); color: var(--ink); margin: 2rem 0 .6rem; }
.prose .table-title::before { counter-increment: tbl; content: "Table " counter(tbl) ". "; color: var(--accent-2); }
.table-note, .prose .table-note { font: 400 .8125rem/1.5 var(--font-sans); color: var(--muted); margin: .45rem 0 1.75rem; }
.page-head { padding-bottom: 2rem; }
.page-head h1, .head-text h1 { font-size: clamp(2.125rem, 4.6vw, 3.25rem); font-weight: 550; line-height: 1.06; letter-spacing: -.018em; margin-top: 1.5rem; max-width: 22ch; }
.page-head .kicker + h1, .head-text .kicker + h1, .head-text .hist-flag + h1 { margin-top: 0; }
.page-head .kicker, .head-text > .kicker:first-child, .head-text > .hist-flag:first-child { margin-top: 1.75rem; }
.head-text { max-width: 52rem; }
.list-sec { padding-bottom: 3.5rem; }
.empty-note { color: var(--ink-2); padding: 1rem 0 2rem; }
.post-head { padding-bottom: 1.5rem; }
.meta { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; margin: 0; font-size: .875rem; color: var(--ink-2); }
.meta div { display: flex; gap: .35rem; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; font-weight: 500; }
.meta .m-read dd, .meta .m-refs dd { font-weight: 400; }
.post-fig { margin-top: .5rem; margin-bottom: 2rem; }
.post-fig picture { border-radius: var(--radius-sm); overflow: hidden; }
.post-fig img { width: 100%; max-height: 34rem; object-fit: cover; }
.credit { font-size: .75rem; color: var(--muted); margin-top: .5rem; }
.credit a { color: var(--muted); }
.post-layout { display: grid; gap: 2rem; padding-top: 1.5rem; padding-bottom: 3.5rem; }
.post-main { min-width: 0; max-width: var(--measure); }
.post-aside { min-width: 0; }
@media (min-width: 1100px) {
.post-layout { grid-template-columns: minmax(0, var(--measure)) minmax(14rem, 18rem); justify-content: space-between; gap: 4rem; padding-top: 2.25rem; }
.post-aside { position: sticky; top: 1.5rem; align-self: start; max-height: calc(100vh - 3rem); overflow-y: auto; }
}
@media (max-width: 1099px) { .post-aside { order: -1; max-width: var(--measure); } .post-aside:empty { display: none; } .post-aside > :last-child { margin-bottom: 0; } }
.toc { font-size: .875rem; border-top: 2px solid var(--ink); padding-top: .75rem; margin-bottom: 1.75rem; }
.toc h2, .side-box h2 { font: 650 .875rem/1.3 var(--font-sans); margin: 0 0 .5rem; color: var(--ink); }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; display: grid; grid-template-columns: 1.75rem 1fr; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.toc li::before { content: counter(toc, decimal-leading-zero); color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 1099px) { .toc { background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--ink); padding: .9rem 1.1rem .4rem; } .toc li:last-child { border-bottom: 0; } }
.side-box { border-top: 2px solid var(--accent-2); padding-top: .75rem; font-size: .9rem; margin-bottom: 1.75rem; }
.side-box ul { list-style: none; margin: 0; padding: 0; }
.side-box li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.side-box li a { font-weight: 600; text-decoration: none; }
.side-box li a:hover { text-decoration: underline; }
.side-box li span { display: block; font-size: .8125rem; color: var(--muted); }
.keypoints { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 1.1rem 1.35rem .5rem; margin: 0 0 2.25rem; }
.keypoints h2 { font: 650 1rem/1.3 var(--font-sans); margin: 0 0 .65rem; color: var(--accent); }
.keypoints ul { margin: 0; padding: 0; list-style: none; }
.keypoints li { position: relative; padding: 0 0 .7rem 1.4rem; font-size: 1rem; line-height: 1.5; }
.keypoints li::before { content: ""; position: absolute; left: .1rem; top: .5em; width: .55rem; height: .55rem; background: var(--accent); }
.provenance { background: var(--soil-tint); border: 1px solid var(--soil-line); padding: 1rem 1.25rem .25rem; margin: 0 0 2rem; font-size: .9375rem; }
.provenance h2 { font: 650 .9375rem/1.3 var(--font-sans); color: var(--accent-3); margin: 0 0 .4rem; }
.prose { font: 400 clamp(1.0313rem, .98rem + .25vw, 1.0938rem)/1.7 var(--font-sans); color: var(--ink); }
.prose h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); font-weight: 600; margin: 2.75rem 0 .8rem; scroll-margin-top: 1.5rem; letter-spacing: -.008em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose h3 { font: 650 1.1875rem/1.35 var(--font-sans); margin: 2rem 0 .5rem; scroll-margin-top: 1.5rem; }
.prose h4 { font: 650 1rem/1.4 var(--font-sans); margin: 1.5rem 0 .4rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--accent-2); }
.prose blockquote { margin: 2rem 0; padding: .1rem 0 .1rem 1.25rem; border-left: 3px solid var(--accent-2); color: var(--ink-2); font: italic 400 1.1875rem/1.55 var(--font-serif); }
.prose hr { border: 0; height: 9px; margin: 2.5rem 0; background: linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--line-strong), var(--line-strong)) 0 4px / 62% 1px no-repeat, linear-gradient(var(--line-strong), var(--line-strong)) 0 8px / 30% 1px no-repeat; }
.prose img { border-radius: var(--radius-sm); }
.prose figure { margin: 2.25rem 0; counter-increment: fig; }
.prose figure img { background: var(--surface); border: 1px solid var(--line); }
.prose figcaption { font: 400 .875rem/1.5 var(--font-sans); color: var(--muted); margin-top: .6rem; padding-left: .75rem; border-left: 2px solid var(--line-strong); }
.prose figcaption::before { content: "Figure " counter(fig) ". "; font-weight: 650; color: var(--ink); }
.prose .table-wrap { margin: 0 0 .4rem; }
.prose .table-wrap:not(.table-title + .table-wrap) { margin-top: 1.75rem; }
.prose dl dt { font: 650 1rem/1.4 var(--font-sans); margin-top: .75rem; }
.prose dl dd { margin: .2rem 0 0; }
.prose strong { font-weight: 650; }
.prose abbr[title] { text-decoration: underline dotted; text-underline-offset: .15em; }
sup.cite { font: 650 .68em/0 var(--font-sans); vertical-align: super; margin-left: .08em; white-space: nowrap; font-variant-numeric: lining-nums; }
sup.cite a { text-decoration: none; padding: 0 .1em; }
sup.cite::before { content: "["; color: var(--muted); font-weight: 400; }
sup.cite::after { content: "]"; color: var(--muted); font-weight: 400; }
sup.cite a:hover { text-decoration: underline; }
.callout { --c: var(--accent-2); --cb: var(--sage-tint); margin: 2rem 0; padding: 1rem 1.3rem .3rem; background: var(--cb); border-left: 4px solid var(--c); font: 400 1rem/1.6 var(--font-sans); }
.callout-title { display: flex; align-items: center; gap: .55rem; font-weight: 650; font-size: .9375rem; color: var(--c); margin: 0 0 .45rem; }
.callout-title::before { content: ""; flex: none; width: .7rem; height: .7rem; background: currentColor; }
.callout p, .callout ul, .callout ol { margin-bottom: .75rem; }
.callout ul, .callout ol { padding-left: 1.25rem; }
.callout.tip .callout-title::before { border-radius: 50%; }
.callout.key, .callout.key-points { --c: var(--accent); --cb: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.callout.key .callout-title::before { width: .8rem; height: .8rem; }
.callout.key-points ul { list-style: none; padding: 0; }
.callout.key-points li { position: relative; padding-left: 1.35rem; }
.callout.key-points li::before { content: ""; position: absolute; left: .1rem; top: .55em; width: .5rem; height: .5rem; background: var(--accent); }
.callout.definition { --c: var(--ink); --cb: var(--surface-2); }
.callout.definition .callout-title::before { transform: rotate(45deg); width: .6rem; height: .6rem; }
.callout.definition strong:first-child { font-family: var(--font-serif); font-size: 1.0625rem; }
.callout.limitation { --c: var(--accent-3); --cb: var(--soil-tint); }
.callout.limitation .callout-title::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); width: .8rem; }
.callout.method { --c: var(--slate); --cb: var(--slate-tint); }
.callout.method .callout-title::before { background: linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 0 50% / 66% 2px no-repeat, linear-gradient(currentColor, currentColor) 0 100% / 33% 2px no-repeat; }
.callout.school { --c: var(--olive); --cb: var(--olive-tint); }
.callout.school .callout-title::before { background: none; box-shadow: inset 0 0 0 2px currentColor; }
.callout.family { --c: var(--accent); --cb: var(--accent-tint); }
.callout.family .callout-title::before { background: none; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; }
.refs { margin-top: 3rem; padding-top: 1rem; border-top: 2px solid var(--ink); }
.refs h2 { font-size: 1.375rem; margin-bottom: 1rem; scroll-margin-top: 1.5rem; }
.refs ol { list-style: none; margin: 0; padding: 0; counter-reset: ref; font: 400 .9rem/1.55 var(--font-sans); color: var(--ink-2); }
.refs li { counter-increment: ref; position: relative; padding: .45rem .5rem .45rem 2.4rem; scroll-margin-top: 1.5rem; overflow-wrap: anywhere; border-bottom: 1px solid var(--line); }
.refs li:last-child { border-bottom: 0; }
.refs li::before { content: counter(ref); position: absolute; left: 0; width: 1.7rem; text-align: right; color: var(--accent); font-weight: 650; font-variant-numeric: tabular-nums; }
.refs li:target { background: var(--soil-tint); }
.refs .r-lead { color: var(--ink); font-weight: 600; }
.cite-box { margin-top: 2rem; padding: .9rem 1.1rem .2rem; background: var(--surface-2); font-size: .875rem; color: var(--ink-2); overflow-wrap: anywhere; }
.cite-box h2 { font: 650 .875rem/1.3 var(--font-sans); color: var(--ink); margin: 0 0 .35rem; }
.related { padding-top: 2.5rem; padding-bottom: 4rem; }
.related > h2 { font-size: 1.625rem; margin-bottom: 1.5rem; }
.hist-head { background: var(--soil-tint); border-bottom: 1px solid var(--soil-line); padding-bottom: 2rem; }
.hist-head .crumbs, .hist-head .crumbs a { color: #5B4A38; }
.hist-flag { display: inline-flex; align-items: center; gap: .5rem; font: 650 .875rem/1.3 var(--font-sans); color: var(--accent-3); margin: 0 0 .6rem; }
.hist-flag::before { content: ""; width: .6rem; height: .6rem; background: currentColor; }
.indep { max-width: 52rem; background: var(--surface); border: 1px solid var(--soil-line); padding: .9rem 1.15rem .1rem; font-size: .9rem; color: var(--ink-2); }
.indep strong { color: var(--ink); }
.hist-head .indep { margin-top: .5rem; }
.hist .post-layout { background: none; }
.record { margin: 0 0 2.25rem; background: var(--surface); border: 1px solid var(--soil-line); border-top: 3px solid var(--accent-3); padding: .9rem 1.2rem .4rem; }
.record h2 { font: 650 1rem/1.3 var(--font-sans); color: var(--accent-3); margin: 0 0 .4rem; }
.record dl { margin: 0; font-size: .9375rem; }
.record dl div { display: grid; grid-template-columns: 1fr; gap: .1rem 1.25rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.record dl div:last-child { border-bottom: 0; }
.record dt { color: var(--muted); font-size: .8125rem; }
.record dd { margin: 0; overflow-wrap: anywhere; }
.record cite { font: italic 500 1.0625rem/1.4 var(--font-serif); }
@media (min-width: 640px) { .record dl div { grid-template-columns: 10.5rem 1fr; } .record dt { font-size: .875rem; } }
.hist-foot { font-size: .875rem; color: var(--muted); margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.arch-band { background: var(--soil-tint); border-top: 1px solid var(--soil-line); border-bottom: 1px solid var(--soil-line); padding: 3.5rem 0 4rem; }
.arch-band-grid { display: grid; gap: 2.25rem; }
.arch-band-intro h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 550; margin-bottom: .7rem; }
.arch-band-intro .strata { margin-bottom: 1.25rem; max-width: 22rem; }
.arch-band-intro p { color: var(--ink-2); max-width: 32rem; }
.arch-soon { align-self: center; color: var(--ink-2); font: 400 1.1875rem/1.5 var(--font-serif); border-left: 3px solid var(--accent-3); padding-left: 1.1rem; margin: 0; }
@media (min-width: 960px) { .arch-band-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 4.5rem; } }
.arch-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--accent-3); }
.arch-item { display: grid; gap: .4rem 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--soil-line); }
.arch-body .arch-item { border-bottom-color: var(--line); }
@media (min-width: 640px) { .arch-item { grid-template-columns: 8.5rem 1fr; } }
.arch-side { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .75rem; }
@media (min-width: 640px) { .arch-side { flex-direction: column; align-items: flex-start; } }
.arch-year { font: 500 1.5rem/1 var(--font-serif); color: var(--accent-3); font-variant-numeric: lining-nums tabular-nums; }
.doctype { display: inline-block; font: 600 .75rem/1.3 var(--font-sans); color: var(--accent-3); border: 1px solid currentColor; padding: .15rem .4rem; background: var(--surface); }
.arch-t { font-size: 1.25rem; margin: 0 0 .35rem; }
.arch-t a { color: var(--ink); text-decoration: none; }
.arch-t a:hover { color: var(--accent); text-decoration: underline; }
.arch-main p { margin: 0 0 .35rem; color: var(--ink-2); font-size: .9375rem; }
.arch-main .arch-by { font-size: .8125rem; color: var(--muted); }
.arch-body { padding-top: 2rem; padding-bottom: 4rem; }
.arch-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.25rem; margin: 0 0 1.5rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); }
.af-field { display: grid; gap: .3rem; flex: 1 1 11rem; max-width: 18rem; }
.af-field.af-q { flex: 2 1 16rem; max-width: 26rem; }
.af-field.af-year { flex: 0 1 8rem; }
.af-field label { font-size: .8125rem; font-weight: 650; color: var(--ink-2); }
.af-count { margin: 0 0 .6rem auto; font-size: .875rem; color: var(--muted); }
input[type="search"], select { font: 400 1rem/1.3 var(--font-sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: .65rem .75rem; width: 100%; min-height: 2.75rem; }
input[type="search"]:hover, select:hover { border-color: var(--ink-2); }
.arch-empty { color: var(--muted); padding: 1.25rem 0; }
.toolpage .post-head { padding-bottom: 2rem; }
.kicker-sep { color: var(--muted); }
.tool-body { padding-top: 2rem; padding-bottom: 3rem; }
.tool-body > .keypoints, .tool-body > .refs, .tool-body > .dl-data, .tool-body > .tool-note, .prose-tool > :not(.tool-app) { max-width: var(--measure); }
.prose-tool > .tool-app { margin: 0 0 2.75rem; }
.dl-data { font-size: .9375rem; margin-top: 2rem; padding: .9rem 1.1rem; background: var(--surface-2); }
.dl-data a { font-weight: 600; }
.dl-data span { color: var(--muted); }
.tool-note { font-size: .875rem; color: var(--muted); margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.topic-head { padding-bottom: 1rem; }
.topic-overview { max-width: var(--measure); margin-bottom: 2.25rem; padding-left: 1.1rem; border-left: 3px solid var(--accent-2); }
.topic-overview p { margin: 0 0 .9em; line-height: 1.7; }
.topic-overview .count { margin: 0; }
.page-body { padding-top: 1.75rem; padding-bottom: 4rem; }
.page-body .prose { max-width: var(--measure); }
.search-form label { display: block; font-weight: 650; font-size: .9375rem; margin-bottom: .4rem; }
.sf-row { display: flex; gap: .5rem; max-width: 40rem; }
.sf-row input { flex: 1; min-width: 0; }
.search-status { color: var(--muted); margin: 1.25rem 0 .5rem; font-size: .9375rem; }
.search-results { list-style: none; padding: 0; margin: 0 0 4rem; max-width: 46rem; }
.search-results li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.search-results .kicker { display: block; margin-bottom: .25rem; font-size: .8125rem; }
.search-results a { font: 600 1.25rem/1.3 var(--font-serif); color: var(--ink); text-decoration: none; }
.search-results a:hover { color: var(--accent); text-decoration: underline; }
.search-results p { margin: .3rem 0 0; color: var(--ink-2); font-size: .9375rem; }
.sitemap-cols { columns: 18rem 3; column-gap: 2.5rem; padding-bottom: 4rem; }
.sitemap-cols section { break-inside: avoid; margin-bottom: 2rem; }
.sitemap-cols h2 { font-size: 1.1875rem; border-top: 1px solid var(--ink); padding-top: .6rem; }
.sitemap-cols ul { list-style: none; margin: 0; padding: 0; font-size: .9375rem; }
.sitemap-cols li { padding: .25rem 0; }
.nf { padding-top: 2rem; padding-bottom: 5rem; }
.nf-text { max-width: 44rem; }
.nf .kicker { margin-top: 1.5rem; color: var(--accent); }
.nf h1 { font-size: clamp(2.125rem, 4.4vw, 3rem); font-weight: 550; }
.nf h2 { font-size: 1.25rem; margin-top: 2rem; }
.nf code { overflow-wrap: anywhere; }
.nf-list { padding-left: 1.2rem; }
.nf .search-form { margin: 1.5rem 0; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--muted); }
.pager a { font-weight: 600; }
.site-foot { background: var(--ink); color: #CBD3CD; font-size: .9375rem; --focus: #E9B8C3; }
.site-foot a { color: #FFFFFF; text-decoration-color: rgba(255, 255, 255, .35); }
.site-foot a:hover { color: #FFFFFF; text-decoration-color: #fff; }
.foot-grid { display: grid; gap: 2.25rem; padding-top: 3.25rem; padding-bottom: 2.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-about, .foot-grid > nav:first-of-type { grid-column: 1 / -1; }
.foot-grid > nav:first-of-type ul { columns: 2; column-gap: 1.5rem; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } .foot-grid > nav:first-of-type { grid-column: auto; } }
@media (min-width: 1100px) { .foot-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.5fr) repeat(2, minmax(0, .9fr)); gap: 3rem; } .foot-about { grid-column: auto; } }
.site-foot h2 { font: 650 .875rem/1.3 var(--font-sans); color: #A9B7AD; margin: 0 0 .75rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { padding: .2rem 0; break-inside: avoid; }
.site-foot li a { text-decoration: none; }
.site-foot li a:hover { text-decoration: underline; }
.foot-about p { max-width: 30rem; }
.brand-foot { color: #fff; margin-bottom: 1rem; }
.brand-foot:hover { color: #fff; }
.brand-foot .mark .mk-bg { fill: var(--bg); }
.brand-foot .mark .mk-fg { fill: var(--ink); }
.brand-foot .w2 { color: #A9B7AD; }
.foot-base { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 1.25rem; padding-bottom: 2rem; font-size: .8125rem; color: #A9B7AD; }
.foot-base p { margin: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print {
@page { margin: 16mm 14mm; }
body { font-size: 10.5pt; color: #000; background: #fff; }
.site-head nav, .navbox, .search-link, .skip, .site-foot nav, .post-aside, .related, .hero-actions, .arch-filter, .pager, .crumbs, .dl-data { display: none !important; }
.site-head { border-bottom: 1px solid #000; }
.site-foot { background: none; color: #000; }
.site-foot .foot-about p:first-of-type, .site-foot .brand { display: none; }
.foot-grid { padding: 0; display: block; }
.foot-base { border-top: 1px solid #000; color: #000; }
.post-layout { display: block; border: 0; padding: 0; }
.post-main { max-width: none; }
.prose { font-size: 10.5pt; line-height: 1.5; }
.hist-head, .arch-band, .provenance, .callout, .keypoints, .indep, .record, .cite-box, .hier { background: none !important; box-shadow: none; }
a { color: #000; text-decoration: underline; }
.refs a[href^="http"]::after, .record a[href^="http"]::after { content: " <" attr(href) ">"; font-size: 8.5pt; word-break: break-all; }
h2, h3 { break-after: avoid; }
table, figure, .callout, .keypoints, .record { break-inside: avoid; }
}
.tool-app {
--t-ink: var(--ink, #1e2622); --t-muted: var(--muted, #59645d); --t-line: var(--line, #d8dbd0);
--t-line-strong: var(--line-strong, #858c80);
--t-surface: var(--surface, #fff); --t-surface-2: var(--surface-2, #ecede5); --t-bg: var(--bg, #f6f6f1);
--t-accent: var(--accent, #8e2f45); --t-accent-ink: var(--accent-ink, #fff);
--t-sage: var(--accent-2, #4a6955); --t-soil: var(--accent-3, #7a4a27);
--t-focus: var(--focus, #6e2235); --t-r: var(--radius, 4px); --t-rs: var(--radius-sm, 2px);
--t-c1: var(--chart-1, #8e2f45); --t-c2: var(--chart-2, #4a6955); --t-c3: var(--chart-3, #a0602a);
--t-c4: var(--chart-4, #3f5a74); --t-c5: var(--chart-5, #8a6d00); --t-c6: var(--chart-6, #737a74);
display: block; margin: 1.5rem 0 2.5rem; color: var(--t-ink); font-family: var(--font-sans, system-ui, sans-serif); font-variant-numeric: tabular-nums;
}
.tool-app *, .tool-app *::before, .tool-app *::after { box-sizing: border-box; }
.tool-app noscript p, .tool-app .euf-status { margin: 0; padding: 1rem 1.1rem; border: 1px solid var(--t-line); border-radius: var(--t-r); background: var(--t-surface-2); color: var(--t-muted); }
.tool-app .euf-status.is-error { border-color: var(--warn, #8a5c00); color: var(--t-ink); }
.tool-app :focus-visible { outline: 3px solid var(--t-focus); outline-offset: 2px; }
.tool-app .euf-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tool-app .euf-panel { margin: 0 0 1.25rem; padding: 1.25rem; background: var(--t-surface); border: 1px solid var(--t-line); border-radius: var(--t-r); box-shadow: var(--shadow, none); }
.tool-app .euf-h { margin: 0 0 .75rem; font-family: var(--font-serif, Georgia, serif); font-size: 1.3rem; line-height: 1.25; font-weight: 600; }
.tool-app .euf-h3 { margin: 1rem 0 .4rem; font-family: var(--font-serif, Georgia, serif); font-size: 1.05rem; font-weight: 600; }
.tool-app .euf-fieldset { margin: 1rem 0 0; padding: .9rem 1rem 1rem; border: 1px solid var(--t-line); border-radius: var(--t-r); background: var(--t-bg); }
.tool-app .euf-fieldset > legend { padding: 0 .4rem; font-weight: 700; font-size: .92rem; }
.tool-app .euf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .85rem 1rem; align-items: start; }
.tool-app .euf-field { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.tool-app .euf-field label { font-size: .88rem; font-weight: 600; }
.tool-app .euf-hint, .tool-app .euf-field small { font-size: .8rem; color: var(--t-muted); line-height: 1.4; }
.tool-app input[type="number"], .tool-app input[type="text"], .tool-app input[type="search"], .tool-app select, .tool-app textarea {
font: inherit; font-size: 1rem; color: var(--t-ink); background: var(--t-surface); width: 100%; min-height: 2.6rem;
border: 1px solid var(--t-line-strong); border-radius: var(--t-rs); padding: .45rem .6rem;
}
.tool-app textarea { min-height: 4.5rem; resize: vertical; }
.tool-app [hidden] { display: none !important; }
.tool-app .euf-btn { font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; min-height: 2.6rem; padding: .45rem 1rem; border-radius: var(--t-rs); border: 1px solid var(--t-accent); background: var(--t-accent); color: var(--t-accent-ink); }
.tool-app .euf-btn:hover { filter: brightness(1.1); }
.tool-app .euf-btn.is-ghost { background: transparent; color: var(--t-accent); }
.tool-app .euf-btn.is-ghost:hover { background: var(--t-surface-2); filter: none; }
.tool-app .euf-btn.is-small { min-height: 2.1rem; padding: .25rem .65rem; font-size: .82rem; }
.tool-app .euf-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
.tool-app .euf-storage { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin: 1rem 0 0; padding: .8rem 1rem; background: var(--t-surface-2); border-radius: var(--t-r); }
.tool-app .euf-note, .tool-app .euf-basis { margin: 0; font-size: .85rem; color: var(--t-muted); flex: 1 1 18rem; }
.tool-app .euf-basis { margin-top: .6rem; }
.tool-app .euf-summary { margin: .9rem 0; font-size: 1.02rem; line-height: 1.55; max-width: 75ch; }
.tool-app .euf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .75rem; margin: 0; }
.tool-app .euf-stat { padding: .85rem 1rem; background: var(--t-surface-2); border-left: 4px solid var(--t-sage); border-radius: var(--t-rs); }
.tool-app .euf-stat dt { font-size: .8rem; font-weight: 700; color: var(--t-muted); text-transform: uppercase; letter-spacing: .03em; }
.tool-app .euf-stat dd { margin: .15rem 0 0; font-family: var(--font-serif, Georgia, serif); font-size: 1.45rem; line-height: 1.2; font-weight: 600; }
.tool-app .euf-stat small { display: block; margin-top: .2rem; font-size: .8rem; color: var(--t-muted); }
.tool-app .euf-figure { margin: 1rem 0 0; }
.tool-app .euf-figure figcaption { margin: .5rem 0; font-size: .8rem; color: var(--t-muted); line-height: 1.5; }
.tool-app .euf-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font-sans, system-ui, sans-serif); }
.tool-app .euf-chartscroll { overflow-x: auto; max-width: 100%; }
.tool-app .euf-chartscroll .euf-svg { min-width: 600px; }
.tool-app .euf-lab { fill: var(--t-ink); font-size: 12px; }
.tool-app .euf-lab.is-you { font-weight: 700; }
.tool-app .euf-val { fill: var(--t-ink); font-size: 11.5px; }
.tool-app .euf-bar { fill: var(--t-c4); }
.tool-app .euf-bar.is-you { fill: var(--t-c1); stroke: var(--t-ink); stroke-width: 1.5; }
.tool-app .euf-bar.is-s2 { fill: var(--t-c2); } .tool-app .euf-bar.is-s3 { fill: var(--t-c3); } .tool-app .euf-bar.is-s5 { fill: var(--t-c5); } .tool-app .euf-bar.is-s6 { fill: var(--t-c6); }
.tool-app .euf-ref { stroke: var(--t-ink); stroke-width: 1.5; stroke-dasharray: 5 3; }
.tool-app .euf-reflab { fill: var(--t-ink); font-size: 11.5px; font-weight: 700; }
.tool-app .euf-axis { stroke: var(--t-line-strong); stroke-width: 1; }
.tool-app .euf-grid-line { stroke: var(--t-line); stroke-width: 1; }
.tool-app .euf-tick { fill: var(--t-muted); font-size: 11px; }
.tool-app .euf-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; list-style: none; margin: .5rem 0 0; padding: 0; font-size: .85rem; }
.tool-app .euf-legend li { display: inline-flex; align-items: center; gap: .4rem; margin: 0; }
.tool-app .euf-swatch { display: inline-block; width: .9rem; height: .9rem; border-radius: 2px; }
.tool-app .euf-swatch.s1 { background: var(--t-c1); } .tool-app .euf-swatch.s2 { background: var(--t-c2); } .tool-app .euf-swatch.s3 { background: var(--t-c3); } .tool-app .euf-swatch.s4 { background: var(--t-c4); } .tool-app .euf-swatch.s5 { background: var(--t-c5); } .tool-app .euf-swatch.s6 { background: var(--t-c6); }
.tool-app .euf-seg.s1 { fill: var(--t-c1); } .tool-app .euf-seg.s2 { fill: var(--t-c2); } .tool-app .euf-seg.s3 { fill: var(--t-c3); } .tool-app .euf-seg.s4 { fill: var(--t-c4); } .tool-app .euf-seg.s5 { fill: var(--t-c5); } .tool-app .euf-seg.s6 { fill: var(--t-c6); }
.tool-app .euf-details { margin: .5rem 0 0; }
.tool-app .euf-details > summary { cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--t-accent); padding: .3rem 0; }
.tool-app .euf-table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--t-line); border-radius: var(--t-rs); margin: .5rem 0; background: var(--t-surface); }
.tool-app .euf-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tool-app .euf-table caption { text-align: left; padding: .6rem .75rem; font-weight: 600; background: var(--t-surface-2); border-bottom: 1px solid var(--t-line); }
.tool-app .euf-table th, .tool-app .euf-table td { padding: .42rem .75rem; text-align: left; border-bottom: 1px solid var(--t-line); vertical-align: top; }
.tool-app .euf-table thead th { background: var(--t-surface-2); font-size: .8rem; border-bottom: 2px solid var(--t-ink); padding: 0; }
.tool-app .euf-table thead th:not(:has(button)) { padding: .5rem .75rem; }
.tool-app .euf-table tbody th { font-weight: 500; }
.tool-app .euf-table .num { text-align: right; white-space: nowrap; }
.tool-app .euf-table tr.is-hl th, .tool-app .euf-table tr.is-hl td { font-weight: 700; background: var(--accent-tint, #f5e8ea); }
.tool-app .euf-table tr.is-agg th, .tool-app .euf-table tr.is-agg td { font-weight: 700; border-top: 2px solid var(--t-ink); }
.tool-app .euf-sort { all: unset; box-sizing: border-box; display: block; width: 100%; padding: .55rem .75rem; cursor: pointer; font-weight: 700; font-size: .8rem; }
.tool-app th.num .euf-sort { text-align: right; }
.tool-app .euf-sort:hover { background: var(--t-line); }
.tool-app .euf-sort:focus-visible { outline: 3px solid var(--t-focus); outline-offset: -3px; }
.tool-app .euf-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; padding: 0; list-style: none; }
.tool-app .euf-chip { font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; min-height: 2.3rem; padding: .25rem .8rem; border: 1px solid var(--t-line-strong); border-radius: 999px; background: var(--t-surface); color: var(--t-ink); }
.tool-app .euf-chip[aria-pressed="true"] { background: var(--t-ink); color: var(--t-surface); border-color: var(--t-ink); }
.tool-app .euf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .85rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.tool-app .euf-card { margin: 0; padding: 1rem; background: var(--t-surface); border: 1px solid var(--t-line); border-top: 4px solid var(--t-sage); border-radius: var(--t-r); }
.tool-app .euf-card h3 { margin: 0 0 .5rem; font-family: var(--font-serif, Georgia, serif); font-size: 1.05rem; }
.tool-app .euf-card dl { margin: 0; display: grid; grid-template-columns: 5.5rem 1fr; gap: .25rem .6rem; font-size: .88rem; }
.tool-app .euf-card dt { font-weight: 700; color: var(--t-muted); }
.tool-app .euf-card dd { margin: 0; }
.tool-app .euf-card .euf-src { margin: .6rem 0 0; font-size: .78rem; color: var(--t-muted); }
.tool-app .euf-callout { margin: .9rem 0; padding: .8rem 1rem; border-left: 4px solid var(--t-soil); background: var(--soil-tint, #f1ebe1); font-size: .9rem; line-height: 1.5; }
.tool-app .euf-callout.is-tip { border-left-color: var(--t-sage); background: var(--sage-tint, #e5ece4); }
.tool-app .euf-meter { display: block; width: 100%; height: 1.1rem; }
.tool-app .euf-ok { color: var(--ok, #2e6a3e); font-weight: 700; } .tool-app .euf-warn { color: var(--warn, #8a5c00); font-weight: 700; }
.tool-app .euf-week { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .75rem; }
.tool-app .euf-day { padding: .85rem; background: var(--t-surface); border: 1px solid var(--t-line); border-radius: var(--t-r); }
.tool-app .euf-day h3 { margin: 0 0 .5rem; font-family: var(--font-serif, Georgia, serif); font-size: 1rem; }
.tool-app .euf-meal { margin: 0 0 .6rem; }
.tool-app .euf-meal > label { font-weight: 700; font-size: .82rem; }
.tool-app .euf-shop h3 { margin: 1rem 0 .3rem; font-size: .95rem; color: var(--t-sage); }
.tool-app .euf-shop ul { margin: 0; padding-left: 1.2rem; }
.tool-app .euf-shop li { margin: .15rem 0; }
.tool-app .euf-inline { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; }
@media (max-width: 40rem) {
.tool-app .euf-panel { padding: 1rem .85rem; }
.tool-app .euf-card dl { grid-template-columns: 4.5rem 1fr; }
}
@media (prefers-reduced-motion: reduce) { .tool-app * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print {
.tool-app .euf-btn, .tool-app .euf-storage, .tool-app .euf-actions, .tool-app .euf-noprint, .tool-app form { display: none !important; }
.tool-app .euf-panel { border: 0; box-shadow: none; padding: 0; }
.tool-app .euf-details > *:not(summary) { display: block; }
}
