

@font-face { font-family: "Carlito"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/carlito-400-latin.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: "Carlito"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/carlito-400-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Carlito"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/carlito-700-latin.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: "Carlito"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/carlito-700-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inconsolata"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/inconsolata-400-700-latin.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: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(assets/fraunces-variable.woff2) format("woff2"); }

:root {
  --sans: Calibri, Carlito, "Segoe UI", system-ui, sans-serif;
  --mono: Consolas, Inconsolata, "SF Mono", Menlo, monospace;
  --serif: Fraunces, Georgia, serif;                         
  --bar: 56px; --side: 264px; --pad: 32px; --gut: 16px; --radius: 14px; --radius-p: 10px; --radius-s: 8px; --radius-xs: 4px;

  
  --page: #F7F5F2;
  --haze: radial-gradient(1100px 560px at 8% -8%, rgba(249, 115, 22, .18), transparent 62%), radial-gradient(900px 520px at 100% 0%, rgba(251, 191, 36, .14), transparent 58%);
  --paper: rgba(255, 255, 255, .82); --edge: rgba(255, 255, 255, .95);
  --bar-bg: rgba(255, 255, 255, .55); --side-bg: rgba(255, 255, 255, .42); --strip: rgba(247, 245, 242, .80); --ctl: rgba(255, 255, 255, .72);
  --sheet: #FFFFFF; --rule: #E7E5E4; --plate: #FFFFFF;      
  --line: rgba(28, 25, 23, .09); --line-2: rgba(28, 25, 23, .16); --soft: rgba(28, 25, 23, .045); --pale: rgba(249, 115, 22, .11);
  --ink: #1C1917; --body: #292524; --lead: #57534E; --gray: #6F6A66; --faint: #A8A29E;
  --accent: #EA580C; --accent-2: #F97316; --brand: #C2410C; --on-accent: #FFFFFF;
  --grad: linear-gradient(135deg, #F97316, #C2410C);
  --shadow: 0 1px 1px rgba(28, 25, 23, .04), 0 12px 34px -14px rgba(234, 88, 12, .22);
  --shadow-up: 0 1px 1px rgba(28, 25, 23, .05), 0 20px 44px -16px rgba(234, 88, 12, .38);
  --glow: 0 8px 18px -10px rgba(234, 88, 12, .7);
  --edge-on: rgba(249, 115, 22, .5);
  --cur: linear-gradient(90deg, rgba(249, 115, 22, .16), rgba(249, 115, 22, 0));
  --veil: rgba(28, 25, 23, .42); --mark: #FFD9BF;
  --ok: #15803D; --ok-soft: #F1F7F3; --bad-soft: #FEF2EC;  
}
:root[data-theme="dark"] {
  
  --page: #0E1013;
  --haze: radial-gradient(1000px 520px at 6% -12%, rgba(251, 146, 60, .13), transparent 60%), radial-gradient(800px 460px at 100% 0%, rgba(251, 146, 60, .05), transparent 60%);
  --paper: #15181D; --edge: #262B33;
  --bar-bg: rgba(11, 13, 16, .78); --side-bg: rgba(11, 13, 16, .55); --strip: rgba(14, 16, 19, .84); --ctl: rgba(255, 255, 255, .03);
  --sheet: #15181D; --rule: #2A3039; --plate: #FFFFFF;
  --line: #262B33; --line-2: #343B46; --soft: #1B1F26; --pale: rgba(251, 146, 60, .14);
  --ink: #F1F3F5; --body: #D5D9DF; --lead: #AEB5C0; --gray: #8B93A1; --faint: #5B6472;
  --accent: #FB923C; --accent-2: #FDBA74; --brand: #FB923C; --on-accent: #0E1013;
  --grad: linear-gradient(135deg, #FDBA74, #F97316);
  --shadow: 0 20px 50px -30px rgba(0, 0, 0, .9);
  --shadow-up: 0 24px 60px -26px #000, 0 0 34px -10px rgba(251, 146, 60, .35);
  --glow: 0 8px 22px -10px rgba(251, 146, 60, .8);
  --edge-on: rgba(251, 146, 60, .55);
  --cur: linear-gradient(90deg, rgba(251, 146, 60, .16), rgba(251, 146, 60, 0));
  --veil: rgba(0, 0, 0, .62); --mark: rgba(251, 146, 60, .34);
  --ok: #4ADE80; --ok-soft: rgba(74, 222, 128, .12); --bad-soft: rgba(251, 146, 60, .14);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { background: var(--page); }
body { margin: 0; display: grid; grid-template-rows: var(--bar) minmax(0, 1fr); overflow: hidden; background: var(--haze), var(--page); color: var(--body); font: 400 15px/24px var(--sans); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
::selection { background: rgba(249, 115, 22, .26); }


.eyebrow, .s-head, .c-kind, .sc-used b, .pp-box > h3, .pp-kind, .tag, .g-note, .c-used, .pp-tag { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.s-item b, .s-sub a b, .figures dd, .c-year, .f-btn span, .pp-nums strong, .search kbd { font-family: var(--mono); font-stretch: 110%; }


.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid transparent; border-radius: var(--radius-s); font-size: 15px; line-height: 24px; font-weight: 700; white-space: nowrap; }
.btn.primary { background: var(--grad); color: var(--on-accent); box-shadow: var(--glow); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: var(--ctl); border-color: var(--accent); color: var(--accent); }
.btn.ghost:hover { background: var(--pale); }
.btn.quiet { background: var(--ctl); border-color: var(--line-2); color: var(--body); font-weight: 400; }
.btn.quiet:hover { border-color: var(--gray); color: var(--ink); }
.btn:disabled { opacity: .4; cursor: default; }


.bar { position: relative; z-index: 20; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); background: var(--bar-bg); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
.bar-brand { display: flex; align-items: center; gap: 12px; padding: 0 24px; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { flex: none; display: block; width: 36px; height: 36px; }
.brand-name { display: flex; flex-direction: column; font-family: var(--serif); font-size: 21px; line-height: 21px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.brand-name em { font-style: normal; color: var(--brand); }
.brand-name small { margin-top: 3px; font-family: var(--sans); font-size: 10px; line-height: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.bar-main { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--pad); min-width: 0; }
.search { position: relative; flex: 0 1 440px; min-width: 180px; display: block; }
.search input { display: block; width: 100%; height: 32px; padding: 0 40px 0 36px; font: 400 15px/24px var(--sans); color: var(--ink); background: var(--ctl); border: 1px solid var(--line-2); border-radius: var(--radius-s); -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--gray); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search input:hover { border-color: var(--gray); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--pale); }
.search-icon { position: absolute; left: 12px; top: 9px; width: 11px; height: 11px; border: 1.6px solid var(--gray); border-radius: 50%; pointer-events: none; }
.search-icon::after { content: ""; position: absolute; left: 8.5px; top: 8.5px; width: 6px; height: 1.6px; background: var(--gray); transform: rotate(45deg); transform-origin: left center; }
.search kbd { position: absolute; right: 6px; top: 6px; min-width: 20px; height: 20px; padding: 0 6px; font-size: 12px; line-height: 18px; text-align: center; color: var(--gray); background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-xs); pointer-events: none; }
.search input:focus ~ kbd { display: none; }
.bar-right { flex: none; display: flex; align-items: center; gap: 8px; }
.theme-toggle { min-width: 104px; }                       
.theme-toggle .ico { flex: none; color: var(--accent); }
:root[data-theme="dark"] .theme-toggle .day, :root:not([data-theme="dark"]) .theme-toggle .eve { display: none; }
.menu-btn { display: none; flex: none; height: 32px; padding: 0 10px; font-size: 14px; font-weight: 700; color: var(--body); border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--ctl); }


.app { position: relative; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 0; }

.side-grip { position: absolute; z-index: 5; top: 0; bottom: 0; left: var(--side); width: 10px; margin-left: -5px; cursor: col-resize; touch-action: none; }
.side-grip::after { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 2px; background: transparent; transition: background .15s; }
.side-grip:hover::after, .side-grip.drag::after, .side-grip:focus-visible::after { background: var(--accent); }
.side-grip:focus-visible { outline: none; }
body.resizing { cursor: col-resize; -webkit-user-select: none; user-select: none; }
.side { overflow-y: auto; background: var(--side-bg); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-right: 1px solid var(--line); padding: 8px 0 24px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
main { overflow-y: auto; padding: 32px var(--pad) 64px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
main:focus { outline: none; }

.s-item { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 32px; padding: 0 24px; font-size: 15px; line-height: 24px; color: var(--body); white-space: nowrap; }
.s-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.s-item b { flex: none; font-weight: 400; font-size: 13px; line-height: 16px; color: var(--gray); }
.s-item:hover { background: var(--soft); color: var(--ink); }
.s-item.on { background: var(--cur); color: var(--accent); font-weight: 700; }
.s-item.on::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); }
.s-item.on b { color: var(--accent); }
.s-top { height: 40px; font-weight: 700; color: var(--ink); }
.s-head { padding: 20px 24px 4px; font-size: 12px; line-height: 16px; color: var(--gray); }
.s-head span { display: block; font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--faint); text-wrap: balance; }
.s-sub { margin: 0 0 8px; }
.s-sub a { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; padding: 2px 24px 2px 40px; font-size: 14px; line-height: 20px; color: var(--gray); }
.s-sub a::before { content: ""; position: absolute; left: 28px; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.s-sub a:hover { background: var(--soft); color: var(--ink); }
.s-sub a b { flex: none; font-weight: 400; font-size: 12px; color: var(--faint); }
.s-sub a.nb::after { content: ""; position: absolute; left: 25px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--page); }
.s-foot { margin: 24px 24px 0; padding-top: 15px; border-top: 1px solid var(--line); font-size: 13px; line-height: 16px; color: var(--gray); }
.s-foot a { display: block; margin-top: 8px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.s-foot a:hover { color: var(--accent); }



.head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.head-text { display: flex; flex-direction: column; min-width: 0; }
.eyebrow { margin-bottom: 8px; font-size: 12px; line-height: 16px; letter-spacing: .08em; color: var(--accent); }
.eyebrow i { display: inline-block; width: 4px; height: 4px; margin: 0 10px; border-radius: 50%; background: currentColor; vertical-align: 3px; }
.crumb { display: flex; gap: 8px; margin-bottom: 8px; font-size: 13px; line-height: 16px; color: var(--gray); }
.crumb a:hover { color: var(--accent); }
.crumb span { color: var(--faint); }
.head h1 { font-size: 36px; line-height: 40px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
.head-text > p:not(.eyebrow):not(.head-note) { margin-top: 12px; font-size: 20px; line-height: 28px; color: var(--lead); max-width: 980px; text-wrap: pretty; }
.head-note { margin-top: auto; padding-top: 16px; font-size: 13px; line-height: 16px; color: var(--gray); }

.head-over { grid-template-columns: minmax(0, 1fr) 328px; gap: 32px; align-items: stretch; }
.head-over h1 { font-size: 44px; line-height: 48px; letter-spacing: -0.02em; }
.head-over .head-text > p:not(.eyebrow):not(.head-note) { max-width: 820px; }
.stats { padding: 13px 16px 7px; }
.stats h2, .head-side > div > b { display: block; height: 24px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.figures div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 4px 0 3px; border-top: 1px solid var(--line); }
.figures dt { font-size: 15px; line-height: 24px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--body); }
.figures dd { font-size: 15px; line-height: 24px; color: var(--ink); }
.figures .total dt { font-weight: 700; color: var(--ink); }
.figures .total dd { font-weight: 700; color: var(--accent); }


.group { margin-top: 32px; }
.g-head { display: flex; align-items: baseline; gap: 12px; min-height: 24px; margin-bottom: 16px; }
.g-head h2 { flex: none; font-size: 20px; line-height: 24px; font-weight: 700; letter-spacing: -0.005em; color: var(--ink); }
.g-head h2 a:hover { color: var(--accent); }
.g-head p { min-width: 0; font-size: 15px; line-height: 24px; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-head.wrap p { white-space: normal; overflow: visible; text-wrap: pretty; }   
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: var(--radius-xs); font-size: 11px; line-height: 16px; letter-spacing: .04em; background: var(--soft); color: var(--gray); white-space: nowrap; }
.empty { margin-top: 32px; font-size: 17px; line-height: 24px; color: var(--gray); }
.pager { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 24px; }
.pager a { font-size: 20px; line-height: 24px; font-weight: 700; color: var(--ink); }
.pager a span { display: block; font-size: 13px; line-height: 16px; font-weight: 400; color: var(--gray); margin-bottom: 4px; }
.pager a.nx { text-align: right; }
.pager a:hover { color: var(--accent); }


.s-item i { flex: none; display: inline-block; min-width: 34px; font-style: normal; font-family: var(--mono); font-stretch: 110%; font-size: 13px; color: var(--gray); }
.s-item.on i { color: var(--accent); }
.s-item span { display: flex; align-items: baseline; }
.s-item span em { font-style: normal; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.about { display: grid; gap: 8px; margin-top: 16px; max-width: 900px; }
.about p { font-size: 15px; line-height: 24px; color: var(--body); text-wrap: pretty; }
.stats { background: var(--paper); border: 1px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow); }

.secs { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: var(--gut); }
.seccard { display: flex; flex-direction: column; min-height: 176px; padding: 15px 16px 15px; background: var(--paper); border: 1px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
.seccard:hover { transform: translateY(-2px); border-color: var(--edge-on); box-shadow: var(--shadow-up); }
.sc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 20px; }
.sc-id { font-family: var(--mono); font-stretch: 110%; font-size: 13px; line-height: 16px; font-weight: 700; color: var(--accent); }
.sc-n { font-family: var(--mono); font-stretch: 110%; font-size: 13px; line-height: 16px; color: var(--gray); }
.sc-title { margin-top: 4px; font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -0.005em; color: var(--ink); transition: color .14s ease; text-wrap: balance; }
.seccard:hover .sc-title { color: var(--accent); }
.sc-intro { margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--gray); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.sc-more { margin-top: auto; padding-top: 12px; font-size: 13px; line-height: 16px; font-weight: 700; color: var(--accent); }


.items { display: grid; gap: var(--gut); margin-top: 24px; }
.item { padding: 15px 20px 16px; background: var(--paper); border: 1px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow); scroll-margin-top: 24px; transition: border-color .3s ease, box-shadow .3s ease; }
.item.hit { border-color: var(--accent); box-shadow: var(--shadow-up); }
.i-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-height: 20px; }
.i-id { font-family: var(--mono); font-stretch: 110%; font-size: 13px; line-height: 16px; font-weight: 700; color: var(--accent); }
.i-id:hover { text-decoration: underline; text-underline-offset: 3px; }
.i-sec { font-size: 13px; line-height: 16px; color: var(--gray); }
.i-sec:hover { color: var(--accent); }
.tag.reg { background: var(--pale); color: var(--accent); }
.tag.reg:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.i-title { margin-top: 4px; font-size: 18px; line-height: 24px; font-weight: 700; color: var(--ink); text-wrap: pretty; }
.i-rows { display: grid; gap: 6px; margin: 10px 0 0; }
.i-row { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 16px; padding-top: 6px; border-top: 1px solid var(--line); }
.i-row dt { font-size: 12px; line-height: 22px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gray); }
.i-row dd { margin: 0; font-size: 15px; line-height: 22px; color: var(--body); text-wrap: pretty; }
a.ref { font-family: var(--mono); font-stretch: 110%; font-size: .92em; font-weight: 700; color: var(--accent); }
a.ref:hover { text-decoration: underline; text-underline-offset: 3px; }
mark { background: var(--mark); color: inherit; border-radius: 2px; padding: 0 1px; }
.g-head .g-n { margin-left: auto; flex: none; font-family: var(--mono); font-stretch: 110%; font-size: 13px; line-height: 16px; font-weight: 700; color: var(--ink); }


.case { margin-top: 6px; }
.c-rows { display: grid; gap: 6px; margin: 6px 0 0; }
.c-row { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 16px; padding-top: 6px; border-top: 1px solid var(--line); }
.c-row dt { font-size: 12px; line-height: 22px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gray); }
.c-row dd { margin: 0; font-size: 15px; line-height: 22px; color: var(--body); text-wrap: pretty; }
.c-head dt { line-height: 28px; color: var(--accent); }
.c-head dd { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.c-switch { display: inline-flex; padding: 2px; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--ctl); }
.c-switch button { height: 24px; padding: 0 10px; border-radius: 6px; font-size: 14px; line-height: 24px; color: var(--gray); white-space: nowrap; }
.c-switch button:hover { color: var(--ink); }
.c-switch button[aria-pressed="true"] { background: var(--sheet); color: var(--ink); font-weight: 700; box-shadow: 0 0 0 1px var(--line-2); }
.c-from { font-size: 13px; line-height: 16px; color: var(--gray); }
.case[data-state="off"] .only-on, .case[data-state="on"] .only-off { display: none; }
.c-row .n { font-family: var(--mono); font-stretch: 110%; font-size: .94em; font-weight: 700; color: var(--ink); background: var(--soft); border-radius: 3px; padding: 0 3px; }
.c-verdict dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.v-chip { flex: none; display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: var(--radius-xs); font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.v-chip.bad { background: var(--bad-soft); color: var(--accent); }
.v-chip.ok { background: var(--ok-soft); color: var(--ok); }
.v-text { font-weight: 700; color: var(--ink); }
.v-why { flex-basis: 100%; color: var(--body); }


.head-col { display: flex; flex-direction: column; gap: var(--gut); min-width: 0; }
.madeby { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 15px 16px 16px; background: var(--pale); border: 1px solid var(--edge-on); border-radius: var(--radius); }
.madeby p { font-size: 15px; line-height: 24px; color: var(--body); text-wrap: pretty; }
.madeby .btn { margin-top: auto; align-self: flex-start; }

.minis { display: grid; grid-template-columns: repeat(var(--k), minmax(0, 1fr)); gap: var(--gut); align-items: stretch; }
.group.mini { display: flex; flex-direction: column; min-width: 0; }
.group.mini .seccard { flex: 1; }

.s-item:not(.s-top) { height: auto; min-height: 32px; padding-top: 6px; padding-bottom: 6px; align-items: flex-start; white-space: normal; line-height: 20px; }
.s-item:not(.s-top) span em { overflow: visible; text-wrap: pretty; }
.s-item:not(.s-top) b { margin-top: 2px; }
.s-item i { line-height: 20px; }
@media (max-width: 1040px) { .minis { grid-template-columns: minmax(0, 1fr); } }


@media (max-width: 1240px) {
  :root { --side: 232px; --pad: 24px; }
  .head-over { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .head-note { margin-top: 0; }
  .theme-toggle { min-width: 0; }
  .theme-toggle .lbl { display: none; }
  .bar-right .quiet.link { display: none; }
}
@media (max-width: 860px) {
  :root { --pad: 16px; }
  .bar { grid-template-columns: auto minmax(0, 1fr); }
  .bar-brand { padding: 0 0 0 12px; gap: 8px; }
  .brand-name { font-size: 18px; line-height: 18px; }
  .brand img { width: 32px; height: 32px; }
  .bar-main { padding: 0 12px; gap: 8px; }
  .bar-right .ghost { display: none; }
  .search { min-width: 0; flex: 1 1 auto; }
  .search kbd { display: none; }
  .search input { padding-right: 12px; }
  .menu-btn { display: block; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .side-grip { display: none; }
  .side { display: none; position: fixed; z-index: 40; top: var(--bar); left: 0; bottom: 0; width: min(320px, 88vw); background: var(--page); box-shadow: var(--shadow-up); }
  body.side-open .side { display: block; }
  main { padding: 20px var(--pad) 48px; }
  .head h1 { font-size: 28px; line-height: 32px; }
  .head-over h1 { font-size: 32px; line-height: 36px; }
  .head-text > p:not(.eyebrow):not(.head-note) { font-size: 17px; line-height: 24px; }
  .g-head { flex-wrap: wrap; }
  .g-head p { white-space: normal; flex-basis: 100%; order: 3; }
  .i-row, .c-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .item { padding: 13px 16px 14px; }
}
@media (prefers-reduced-motion: reduce) { .seccard, .sc-title, .item { transition: none; } .seccard:hover { transform: none; } }


.fh { margin-top: 48px; }
.fh-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--gut); align-items: stretch; }
.fh-card { display: flex; flex-direction: column; gap: 12px; padding: 19px 20px 20px; background: var(--paper); border: 1px solid var(--edge); border-radius: var(--radius); box-shadow: var(--shadow); }
.fh-card:first-child { background: var(--pale); border-color: var(--edge-on); box-shadow: none; }
.fh-card p { font-size: 15px; line-height: 24px; color: var(--body); text-wrap: pretty; }
.fh-card p a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--edge-on); text-underline-offset: 3px; }
.fh-brand { display: flex; align-items: center; gap: 12px; }
.fh-brand img { display: block; width: 44px; height: 44px; }
.fh-brand .brand-name { font-size: 24px; line-height: 24px; }
.fh-links { margin-top: auto; padding-top: 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.fh-cap { display: block; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.cite p + .fh-cap { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 1040px) { .fh-grid { grid-template-columns: minmax(0, 1fr); } }
