/*
Theme Name: Mixtv Field Manual
Description: Step-by-step guide theme for mixtvnowcom.org. Engineered field-manual look: blueprint-grid plates, technical line art, answer-first articles.
Version: 2.0.0
Requires PHP: 8.1
Text Domain: mixtv
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --ink: #14161A;
  --ink-2: #23272D;
  --body: #2A2E35;
  --soft: #474C55;
  --muted: #5E636C;
  --faint: #8A8F98;
  --rule: #E6E7E3;
  --rule-2: #D5D7D1;
  --panel: #F6F6F3;
  --panel-2: #EFEFEA;
  --paper: #FFFFFF;
  --signal: #C2381B;
  --signal-tint: #FBEDE8;
  --mark: #FBEFC9;
  --focus: #C2381B;

  --sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1240px;
  --gutter: 28px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --shadow-1: 0 1px 2px rgba(20, 22, 26, .05), 0 1px 1px rgba(20, 22, 26, .03);
  --shadow-2: 0 6px 24px -8px rgba(20, 22, 26, .16), 0 2px 6px rgba(20, 22, 26, .05);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* default desk = ink */
  --desk: #14161A; --desk-deep: #14161A; --desk-tint: #F3F3F0; --desk-line: rgba(20,22,26,.07); --desk-on: #fff;
}
.desk-tech     { --desk: #1F3A7A; --desk-deep: #1F3A7A; --desk-tint: #EEF2FA; --desk-line: rgba(31,58,122,.10); --desk-on: #fff; }
.desk-home-diy { --desk: #E9B73E; --desk-deep: #6E510B; --desk-tint: #FBF4E2; --desk-line: rgba(122,90,14,.12); --desk-on: #14161A; }
.desk-kitchen  { --desk: #2D6E48; --desk-deep: #245A3A; --desk-tint: #ECF4EF; --desk-line: rgba(45,110,72,.12); --desk-on: #fff; }
.desk-travel   { --desk: #8FBCE0; --desk-deep: #275D86; --desk-tint: #EDF4FA; --desk-line: rgba(39,93,134,.11); --desk-on: #14161A; }

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .15s var(--ease); }
a:hover { color: var(--signal); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
::selection { background: var(--mark); }
.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* Type helpers */
.kicker { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kicker--signal { color: var(--signal); }
.label { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.label--signal { color: var(--signal); }
.label--muted { color: var(--muted); }
.meta { font-size: 13px; color: var(--muted); }
.section-title { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; font-weight: 750; letter-spacing: -.022em; }
.section-sub { margin: 8px 0 0; font-size: 17px; color: var(--muted); max-width: 640px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 15px; text-decoration: none; }
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.link-strong { font-weight: 650; text-decoration-color: var(--signal); text-underline-offset: 4px; }
.swatch { width: 9px; height: 9px; border-radius: 2px; display: inline-block; flex: 0 0 auto; background: var(--desk); }
.swatch--desk { background: var(--desk); }
.desk-tag { display: inline-flex; align-items: center; gap: 8px; }

/* Buttons & fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: var(--r-sm); font: inherit; font-weight: 650; font-size: 15px; cursor: pointer; text-decoration: none; border: 1.5px solid transparent; transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; color: #fff; }
.btn--outline { background: var(--paper); color: var(--ink); border-color: var(--rule-2); }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 16px; }
.field { position: relative; display: flex; align-items: center; }
.field svg { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.field input { width: 100%; min-width: 0; height: 56px; padding: 0 18px 0 46px; border: 1.5px solid var(--rule-2); border-radius: var(--r-sm); background: var(--paper); font: inherit; font-size: 17px; color: var(--ink); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.field input::placeholder { color: var(--faint); }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(20,22,26,.07); }
.search-row { display: flex; gap: 8px; }
.search-row .field { flex: 1 1 auto; min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--rule-2); border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 550; color: var(--ink-2); background: var(--paper); transition: border-color .15s var(--ease), background .15s var(--ease); }
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill--on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill--on:hover { color: #fff; }
.pill .count { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.pill--on .count { color: rgba(255,255,255,.65); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--rule); }
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: 66px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 2px; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.wordmark:hover { color: var(--ink); }
.wordmark__name { font-size: 23px; font-weight: 800; letter-spacing: -.035em; }
.wordmark__dot { width: 7px; height: 7px; background: var(--signal); display: inline-block; margin: 0 2px; border-radius: 1px; }
.wordmark__tld { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.main-nav { flex: 1 1 auto; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--r-sm); text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-2); transition: background .15s var(--ease); }
.main-nav > ul > li > a:hover, .main-nav > ul > li:focus-within > a { background: var(--panel); color: var(--ink); }
.main-nav > ul > li > a[aria-current="page"] { color: var(--ink); background: var(--panel); }
.main-nav .caret { width: 10px; height: 10px; color: var(--faint); transition: transform .2s var(--ease); }
.main-nav li:hover .caret, .main-nav li:focus-within .caret { transform: rotate(180deg); }
.main-nav .nav-quiet > a { color: var(--muted); font-weight: 550; }
.dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; padding: 10px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-md); box-shadow: var(--shadow-2); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s; }
.dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.main-nav li:hover > .dropdown, .main-nav li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--rule); }
.dropdown__head strong { font-size: 15px; }
.dropdown__head span { font-size: 13px; color: var(--muted); }
.dropdown a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 10px; border-radius: var(--r-sm); text-decoration: none; font-size: 14.5px; font-weight: 550; }
.dropdown a:hover { background: var(--desk-tint); color: var(--ink); }
.dropdown a .count { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.dropdown .dropdown__all { margin-top: 4px; color: var(--desk-deep); font-weight: 650; }
.header-search { flex: 0 1 280px; }
.header-search .field input { height: 42px; font-size: 14.5px; padding-left: 40px; border-color: var(--rule); background: var(--panel); }
.header-search .field input:focus { background: var(--paper); }
.header-search .field svg { left: 14px; }
.header-tools { display: none; align-items: center; gap: 2px; margin-left: auto; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-sm); color: var(--ink); background: transparent; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--panel); color: var(--ink); }
.mobile-nav summary { list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav__panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: var(--shadow-2); padding: 8px var(--gutter) 20px; max-height: calc(100vh - 66px); overflow: auto; }
.mobile-nav__desk { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.mobile-nav__desk > a { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; text-decoration: none; }
.mobile-nav__topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mobile-nav__plain { display: block; padding: 14px 0; font-weight: 650; text-decoration: none; border-bottom: 1px solid var(--rule); }
.read-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--desk); transition: width .1s linear; }
.desk-bar { height: 4px; background: var(--desk); }

@media (max-width: 980px) {
  .header-search { display: none; }
}
@media (max-width: 820px) {
  .main-nav { display: none; }
  .header-tools { display: flex; }
  .site-header__inner { min-height: 58px; gap: 12px; }
  .wordmark__name { font-size: 21px; }
}

/* ==========================================================================
   Plates (blueprint grid + technical line art)
   ========================================================================== */
.plate { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 4 / 3; max-width: 100%; padding: 16px 18px; border-radius: var(--r-md); text-decoration: none; color: var(--desk-deep); overflow: hidden; isolation: isolate;
  background-color: var(--desk-tint);
  background-image: linear-gradient(var(--desk-line) 1px, transparent 1px), linear-gradient(90deg, var(--desk-line) 1px, transparent 1px);
  background-size: 22px 22px; background-position: -1px -1px;
  box-shadow: inset 0 0 0 1px var(--desk-line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.plate::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--desk-line); pointer-events: none; }
.plate:hover { color: var(--desk-deep); }
a.plate:hover .art { transform: translateY(-3px) scale(1.02); }
.plate__top, .plate__bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.plate__tag { display: inline-flex; align-items: center; gap: 7px; }
.plate__tag::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--desk); }
.plate__fig { opacity: .75; }
.plate__art { position: absolute; inset: 0; display: grid; place-items: center; z-index: 0; }
.plate .art { width: 46%; height: auto; max-height: 62%; color: var(--desk-deep); transition: transform .35s var(--ease); }
.plate__bottom { justify-content: flex-start; gap: 8px; }
.plate__chip { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 4px; background: var(--paper); box-shadow: 0 0 0 1px var(--desk-line); letter-spacing: .06em; color: var(--ink-2); }
.plate--wide { aspect-ratio: 16 / 10; padding: 22px 24px; border-radius: var(--r-lg); }
.plate--wide .art { width: 34%; }
.plate--wide .plate__top, .plate--wide .plate__bottom { font-size: 12px; }
.plate--thumb { aspect-ratio: auto; width: 150px; height: 112px; flex: 0 0 150px; padding: 0; border-radius: var(--r-sm); }
.plate--thumb .art { width: 52%; max-height: 72%; }
.plate--photo { padding: 0; background: var(--panel); }
.plate img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Home
   ========================================================================== */
.hero { position: relative; border-bottom: 1px solid var(--rule); overflow: hidden;
  background-image: linear-gradient(rgba(20,22,26,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(20,22,26,.035) 1px, transparent 1px);
  background-size: 28px 28px; }
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 90% at 25% 40%, rgba(255,255,255,.96), rgba(255,255,255,.7) 60%, rgba(255,255,255,.4)); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; padding-block: 64px 60px; }
.hero h1 { display: flex; flex-direction: column; gap: 18px; }
.hero__brand { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); display: inline-flex; align-items: center; gap: 10px; }
.hero__brand::before { content: ''; width: 22px; height: 1.5px; background: var(--signal); }
.hero__line { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; color: var(--ink); }
.hero__line em { font-style: normal; color: var(--muted); font-weight: 750; }
.hero__sub { margin: 22px 0 0; max-width: 560px; font-size: 18.5px; line-height: 1.55; color: var(--soft); }
.hero__search { margin-top: 28px; max-width: 620px; display: flex; flex-direction: column; gap: 14px; }
.hero__popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hero__popular .meta { margin-right: 4px; font-size: 13.5px; }
.stack { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.stack__head { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px 8px; }
.stack__item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; padding: 8px; border-radius: var(--r-md); text-decoration: none; transition: background .15s var(--ease); }
.stack__item:hover { background: var(--panel); color: var(--ink); }
.stack__item .plate { aspect-ratio: 1; padding: 0; border-radius: 8px; }
.stack__item .plate .art { width: 62%; max-height: 70%; }
.stack__title { display: block; font-size: 15.5px; font-weight: 650; line-height: 1.3; }
.stack__meta { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.stats { border-bottom: 1px solid var(--rule); background: var(--paper); }
.stats__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-block: 18px; }
.stat { display: flex; align-items: baseline; gap: 10px; font-size: 14.5px; color: var(--soft); }
.stat strong { font-family: var(--mono); font-size: 15px; font-weight: 500; color: var(--ink); }
.stat svg { align-self: center; color: var(--signal); }

.block { padding-block: 64px; display: flex; flex-direction: column; gap: 30px; }
.block--tight { padding-block: 40px; }
.block-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 32px; }
.band { background: var(--panel); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.lead { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; padding-block: 60px; }
.lead--solo { grid-template-columns: minmax(0, 1fr); }
.lead__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.lead__title { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; font-weight: 750; letter-spacing: -.025em; }
.lead__title a { text-decoration: none; }
.dek { margin: 0; font-family: var(--serif); font-size: 19.5px; line-height: 1.55; color: var(--soft); max-width: 680px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 13.5px; color: var(--muted); }
.byline__who { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--rule-2); display: inline-block; }
.avatar { border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: 0 0 auto; letter-spacing: .02em; }
.avatar--32 { width: 32px; height: 32px; font-size: 11.5px; }
.avatar--44 { width: 44px; height: 44px; font-size: 14px; }
.avatar--64 { width: 64px; height: 64px; font-size: 20px; }
.avatar--132 { width: 120px; height: 120px; font-size: 36px; font-weight: 800; }
.picks { min-width: 0; }
.picks h2 { padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.picks ol { list-style: none; margin: 0; padding: 0; counter-reset: pick; }
.picks li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.picks li:last-child { border-bottom: 0; }
.picks__n { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--signal); padding-top: 3px; }
.picks__body a { font-size: 16.5px; font-weight: 650; line-height: 1.3; text-decoration: none; }
.picks__body .meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; }

.grid { display: grid; gap: 20px; }
.grid--topics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .grid--topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid--topics { grid-template-columns: minmax(0, 1fr); } }
.lead .plate--wide { aspect-ratio: 2 / 1; }
.lead .plate--wide .art { width: 26%; max-height: 66%; }
.grid--qa { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 40px 28px; }
.grid--desks { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 44px 56px; }
.grid--how { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 28px; }
.grid--tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }

.topic-tile { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 18px 14px 14px; border: 1px solid var(--rule); border-radius: var(--r-md); text-decoration: none; background: var(--paper); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.topic-tile:hover { border-color: var(--rule-2); box-shadow: var(--shadow-2); transform: translateY(-2px); color: var(--ink); }
.topic-tile .plate { aspect-ratio: 1; padding: 0; border-radius: 8px; }
.topic-tile .plate .art { width: 64%; max-height: 72%; }
.topic-tile__name { display: block; font-size: 16.5px; font-weight: 700; }
.topic-tile__desk { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.topic-tile__count { font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }

.qa-card { position: relative; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .2s var(--ease), border-color .2s var(--ease); }
.qa-card:hover { box-shadow: var(--shadow-2); border-color: var(--rule-2); }
.qa-card__q { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; }
.qa-card__badge { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 500; background: var(--desk-tint); color: var(--desk-deep); box-shadow: inset 0 0 0 1px var(--desk-line); }
.qa-card h3 { font-size: 18.5px; line-height: 1.3; font-weight: 700; }
.qa-card p { margin: 0; font-family: var(--serif); font-size: 16.5px; line-height: 1.6; color: var(--soft); }
.qa-card .link-arrow { margin-top: auto; padding-top: 4px; font-size: 14.5px; }

.desk-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.desk-col__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.desk-col__title { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 750; letter-spacing: -.015em; }
.desk-col__title a { text-decoration: none; }
.desk-col__title .swatch { width: 12px; height: 12px; border-radius: 3px; }
.desk-col p { margin: 0; color: var(--muted); }
.desk-col ul { list-style: none; margin: 0; padding: 0; }
.desk-col li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.desk-col li a { font-weight: 600; text-decoration: none; }
.desk-col li span { font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }

.card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card__body { display: flex; flex-direction: column; gap: 8px; }
.card__title { font-size: 19px; line-height: 1.28; font-weight: 700; letter-spacing: -.01em; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ''; position: absolute; inset: 0; }
.card { position: relative; }
.card:hover .card__title a { color: var(--signal); }
.card:hover .art { transform: translateY(-3px) scale(1.02); }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }

.how { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--rule-2); }
.how__n { font-family: var(--mono); font-size: 12.5px; color: var(--signal); }
.how h3 { font-size: 18px; font-weight: 700; }
.how p { margin: 0; color: var(--soft); font-size: 15.5px; }

/* ==========================================================================
   Breadcrumbs, hub
   ========================================================================== */
.crumbs { font-size: 13.5px; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs li[aria-hidden] { color: var(--rule-2); }
.crumbs [aria-current] { color: var(--ink-2); font-weight: 550; }

.hub-head { position: relative; border-bottom: 1px solid var(--rule); background: var(--desk-tint);
  background-image: linear-gradient(var(--desk-line) 1px, transparent 1px), linear-gradient(90deg, var(--desk-line) 1px, transparent 1px);
  background-size: 28px 28px; }
.hub-head__inner { padding-block: 34px 44px; display: flex; flex-direction: column; gap: 22px; }
.hub-head__row { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; align-items: center; }
.hub-head__text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hub-head__art { justify-self: end; width: 220px; height: 220px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px var(--desk-line), var(--shadow-1); color: var(--desk-deep); }
.hub-head__art .art { width: 56%; }
.page-title { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; font-weight: 800; letter-spacing: -.032em; }
.hub-head .dek { font-size: 18.5px; max-width: 720px; }
.hub-head__topics { display: flex; flex-direction: column; gap: 10px; }
.start-card { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--rule); border-radius: var(--r-md); text-decoration: none; background: var(--paper); transition: box-shadow .2s var(--ease), border-color .2s var(--ease); }
.start-card:hover { box-shadow: var(--shadow-2); border-color: var(--rule-2); color: var(--ink); }
.start-card .plate { aspect-ratio: 1; padding: 0; border-radius: 8px; }
.start-card .plate .art { width: 62%; }
.start-card__meta { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--desk-deep); }
.start-card__title { display: block; margin-top: 4px; font-size: 16.5px; font-weight: 700; line-height: 1.28; }
.list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.list-head h2 { font-size: 24px; font-weight: 750; letter-spacing: -.018em; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { position: relative; display: flex; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.row:last-child { border-bottom: 0; }
.row__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.row__topic { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--desk-deep); }
.row__title { font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -.012em; }
.row__title a { text-decoration: none; }
.row__title a::after { content: ''; position: absolute; inset: 0; }
.row:hover .row__title a { color: var(--signal); }
.row:hover .art { transform: translateY(-2px); }
.row__dek { margin: 0; color: var(--soft); font-size: 15.5px; max-width: 760px; }
.row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.row__chev { flex: 0 0 auto; color: var(--faint); transition: transform .2s var(--ease), color .2s var(--ease); }
.row:hover .row__chev { transform: translateX(3px); color: var(--ink); }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 24px; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--rule-2); border-radius: var(--r-sm); text-decoration: none; font-weight: 650; }
.pager .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.desk-tile { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: var(--r-md); text-decoration: none; transition: box-shadow .2s var(--ease), border-color .2s var(--ease); }
.desk-tile:hover { box-shadow: var(--shadow-2); border-color: var(--rule-2); color: var(--ink); }
.desk-tile__sq { width: 44px; height: 44px; border-radius: 8px; flex: 0 0 auto; background-color: var(--desk-tint); background-image: linear-gradient(var(--desk-line) 1px, transparent 1px), linear-gradient(90deg, var(--desk-line) 1px, transparent 1px); background-size: 8px 8px; box-shadow: inset 0 0 0 1px var(--desk-line); display: grid; place-items: center; color: var(--desk-deep); }
.desk-tile__name { font-size: 17px; font-weight: 700; display: block; }
.desk-tile__dek { font-size: 13.5px; color: var(--muted); display: block; }
.hub-body { display: grid; grid-template-columns: minmax(0, 740px) minmax(0, 1fr); gap: 56px; }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--rule-2); }
.faq details { border-bottom: 1px solid var(--rule-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 2px; font-family: var(--sans); font-size: 17.5px; font-weight: 650; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--panel-2) no-repeat center / 10px 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%2314161A' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M5 1v8M1 5h8'/%3E%3C/svg%3E"); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--signal); }
.faq details p { margin: 0 0 20px; padding-right: 40px; font-family: var(--serif); font-size: 17px; line-height: 1.65; color: var(--soft); }
.narrow { max-width: 820px; margin: 0 auto; }

/* ==========================================================================
   Article
   ========================================================================== */
.article-head { padding-top: 30px; }
.article-head__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: end; margin-top: 22px; }
.article-head__text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.article-head .page-title { font-size: clamp(34px, 4.2vw, 54px); }
.article-head .dek { font-size: 21px; line-height: 1.5; max-width: 760px; }
.article-head__plate .plate { aspect-ratio: 1 / 1; border-radius: var(--r-lg); }
.article-head__plate .plate .art { width: 54%; }
.summary { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.summary li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: var(--panel); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.summary svg { color: var(--desk-deep); }
.article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 28px; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 13.5px; color: var(--muted); }
.article-byline__who { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.article-byline__item { display: inline-flex; align-items: center; gap: 8px; }
.article-byline__item svg { color: var(--faint); }
.stack-col { display: flex; flex-direction: column; line-height: 1.35; }
.strong { font-weight: 650; color: var(--ink); }

.article-body { display: grid; grid-template-columns: 250px minmax(0, 720px); justify-content: space-between; gap: 64px; padding-block: 40px 72px; }
.article-body--no-toc { grid-template-columns: minmax(0, 720px); justify-content: center; }
.toc { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
.toc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px; padding: 7px 0 7px 14px; font-size: 14px; line-height: 1.35; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .15s var(--ease); }
.toc a::before { content: attr(data-n); font-family: var(--mono); font-size: 11px; color: var(--faint); padding-top: 2px; }
.toc a.is-active::before { color: var(--desk-deep); }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); font-weight: 650; }
.toc a.is-active::after { content: ''; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px; background: var(--desk); border-radius: 2px; }
@media (min-width: 821px) { .toc summary { pointer-events: none; } .toc summary .toc__toggle { display: none; } }

.prose-col { min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.quick { position: relative; padding: 24px 26px 24px 26px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--rule-2); box-shadow: var(--shadow-1); }
.quick::before { content: ''; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--signal); }
.quick__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.quick__icon { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: var(--signal-tint); color: var(--signal); }
.quick p { margin: 0; font-size: 18.5px; line-height: 1.6; color: var(--ink-2); }
.glance__grid { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; background: var(--paper); }
.glance__grid > div { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 16px 16px 16px 14px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.glance__grid > div:nth-child(3n) { border-right: 0; }
.glance__grid > div:nth-last-child(-n+3) { border-bottom: 0; }
.glance__ico { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; background: var(--desk-tint); color: var(--desk-deep); box-shadow: inset 0 0 0 1px var(--desk-line); }
.glance dt { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.glance dd { margin: 3px 0 0; font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.glance h2 { margin-bottom: 12px; }

.prose { font-family: var(--serif); font-size: 18.5px; line-height: 1.72; color: var(--body); }
.prose > * { margin: 0 0 20px; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2 { margin: 48px 0 18px; font-family: var(--sans); font-size: 28px; line-height: 1.18; font-weight: 750; letter-spacing: -.02em; color: var(--ink); }
.prose h2:has(.step) { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; align-items: start; padding-top: 28px; border-top: 1px solid var(--rule); }
.prose h2 .step { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--mono); font-size: 0; font-weight: 500; color: var(--desk-on); background: var(--desk); }
.prose h2 .step::before { content: attr(data-n); font-size: 16px; }
.prose h3 { margin: 30px 0 12px; font-family: var(--sans); font-size: 20.5px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.prose p > strong:first-child { color: var(--ink); }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 10px; padding-left: 4px; }
.prose li::marker { color: var(--faint); font-family: var(--mono); font-size: .85em; }
.prose ol > li::marker { color: var(--desk-deep); font-weight: 500; }
.prose li:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { color: var(--ink); text-decoration-color: var(--signal); text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--signal); }
.prose .tip, .prose .note { display: block; padding: 16px 18px 16px 48px; position: relative; background: var(--panel); border-radius: var(--r-md); font-family: var(--sans); font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.prose .tip::before, .prose .note::before { content: ''; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; background: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E510B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2V16h5v-.1c0-.8.4-1.5 1-2A6 6 0 0 0 12 3z'/%3E%3C/svg%3E"); }
.prose .note::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314161A' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.66 0l3-3a4 4 0 0 0-5.66-5.66l-1 1M14 10a4 4 0 0 0-5.66 0l-3 3a4 4 0 0 0 5.66 5.66l1-1'/%3E%3C/svg%3E"); }
.prose .warn { display: block; position: relative; padding: 16px 18px 16px 48px; border-radius: var(--r-md); background: var(--signal-tint); font-family: var(--sans); font-size: 15.5px; line-height: 1.6; color: #5B1A0C; }
.prose .warn::before { content: ''; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; background: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C2381B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l10 18H2z'/%3E%3Cpath d='M12 10v5M12 18v.5'/%3E%3C/svg%3E"); }
.prose .mx-related-inline a { font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-md); margin: 0 0 20px; background: var(--paper); }
.prose table, .table-wrap table { width: 100%; min-width: 540px; border-collapse: collapse; font-family: var(--sans); font-size: 15px; line-height: 1.45; }
.prose th, .prose td { padding: 13px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--rule); }
.prose thead th { background: var(--panel); border-top: 0; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.prose tbody tr:hover td { background: #FBFBF9; }
.prose td:last-child { font-weight: 600; color: var(--desk-deep); white-space: nowrap; }
.prose figure { margin: 0 0 20px; }
.prose figcaption { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: 8px; }

.faq-section h2 { margin-bottom: 6px; }
.sources { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; padding: 24px 26px; background: var(--panel); border-radius: var(--r-md); font-size: 15px; line-height: 1.55; }
.sources h2 { font-size: 13px; font-family: var(--mono); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.sources ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.sources li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--ink-2); }
.sources li svg { margin-top: 3px; color: var(--muted); }
.sources a { display: block; font-family: var(--mono); font-size: 12.5px; word-break: break-word; color: var(--muted); }
.revisions ol { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 1px solid var(--rule-2); display: flex; flex-direction: column; gap: 12px; }
.revisions li { position: relative; color: var(--ink-2); }
.revisions li::before { content: ''; position: absolute; left: -20.5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 2px var(--desk); }
.revisions time { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.vote { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 20px 22px; border: 1px solid var(--rule); border-radius: var(--r-md); }
.vote h2 { font-size: 17px; font-weight: 700; }
.vote__btns { display: flex; gap: 8px; }
.vote__btns .btn { min-height: 42px; }
.vote__thanks { margin: 0; font-weight: 600; }
.author-box { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 22px; border-radius: var(--r-md); background: var(--panel); }
.author-box__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.author-box__name { font-size: 18px; font-weight: 750; text-decoration: none; }
.author-box p { margin: 6px 0 4px; font-size: 15px; line-height: 1.6; color: var(--soft); }
.related-card { position: relative; display: flex; flex-direction: column; gap: 14px; text-decoration: none; min-width: 0; }
.related-card .plate { aspect-ratio: 16 / 9; }
.related-card__meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--desk-deep); }
.related-card__title { font-size: 18px; font-weight: 700; line-height: 1.28; }
.related-card:hover .related-card__title { color: var(--signal); }
.related-card:hover .art { transform: translateY(-3px) scale(1.02); }

/* ==========================================================================
   Profile, pages, search, 404
   ========================================================================== */
.profile { display: grid; grid-template-columns: 120px minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.profile__main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.profile__aside { padding: 22px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-md); display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-1); }
.profile__aside h2 { font-size: 16px; font-weight: 750; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.checks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.checks svg { margin-top: 3px; color: var(--desk-deep); }
.email { font-family: var(--mono); font-size: 13px; user-select: all; word-break: break-all; }
.author-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); column-gap: 56px; }
.author-list li { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.author-list a { font-size: 18px; font-weight: 700; line-height: 1.28; text-decoration: none; }
.page-head { border-bottom: 1px solid var(--rule); background-image: linear-gradient(rgba(20,22,26,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(20,22,26,.03) 1px, transparent 1px); background-size: 28px 28px; }
.page-head__inner { padding-block: 40px 48px; display: flex; flex-direction: column; gap: 18px; }
.page-head .dek { max-width: 760px; font-size: 20px; }
.page-body { display: grid; grid-template-columns: 250px minmax(0, 720px); justify-content: space-between; gap: 64px; padding-block: 44px 72px; }
.page-body--no-toc { grid-template-columns: minmax(0, 720px); justify-content: start; }
.callout { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; padding: 18px 20px; border: 1px solid var(--rule-2); border-radius: var(--r-md); font-family: var(--sans); font-size: 15.5px; line-height: 1.6; background: var(--paper); box-shadow: var(--shadow-1); }
.callout svg { margin-top: 2px; }
.callout p { margin: 0; }
.search-band { background: var(--panel); border-bottom: 1px solid var(--rule); }
.search-band__inner { padding-block: 40px; display: flex; flex-direction: column; gap: 16px; }
.search-band .search-row { max-width: 780px; }
.results-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-block: 36px 72px; }
.results { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.results ol { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.results li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.results h3 { font-size: 20px; line-height: 1.25; font-weight: 700; }
.results h3 a { text-decoration: none; }
.results h3 a::after { content: ''; position: absolute; inset: 0; }
.results li:hover h3 a { color: var(--signal); }
.results p { margin: 0; font-family: var(--serif); font-size: 16.5px; line-height: 1.6; color: var(--soft); }
.results mark { background: var(--mark); color: var(--ink); padding: 0; border-radius: 2px; box-shadow: 0 0 0 1px var(--mark); }
.side { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 11px 0; border-bottom: 1px solid var(--rule); }
.side-list li:last-child { border-bottom: 0; }
.side-list a { font-weight: 600; text-decoration: none; }
.side h2.label { margin: 0 0 4px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.panel-box { padding: 22px; background: var(--panel); border-radius: var(--r-md); display: flex; flex-direction: column; gap: 8px; }
.panel-box h2 { font-size: 16px; font-weight: 750; }
.panel-box p { margin: 0; font-size: 14.5px; color: var(--soft); }
.empty { padding: 32px; border: 1.5px dashed var(--rule-2); border-radius: var(--r-md); display: flex; flex-direction: column; gap: 12px; }
.empty h2 { font-size: 20px; font-weight: 750; }
.nf { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: center; padding-block: 72px 56px; }
.nf__text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.nf__desks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nf__desk { display: flex; flex-direction: column; justify-content: space-between; min-height: 120px; padding: 16px; border-radius: var(--r-md); text-decoration: none; color: var(--desk-deep); background-color: var(--desk-tint); background-image: linear-gradient(var(--desk-line) 1px, transparent 1px), linear-gradient(90deg, var(--desk-line) 1px, transparent 1px); background-size: 16px 16px; box-shadow: inset 0 0 0 1px var(--desk-line); }
.nf__desk:hover { color: var(--desk-deep); box-shadow: inset 0 0 0 1px var(--desk-line), var(--shadow-2); }
.nf__desk strong { font-size: 20px; color: var(--ink); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #111317; color: #fff; margin-top: 0; }
.site-footer a { color: #E8E9EC; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__inner { padding-block: 64px 28px; display: flex; flex-direction: column; gap: 44px; }
.site-footer__cols { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.site-footer__brand p { margin: 0; max-width: 360px; color: #A8ADB5; font-size: 14.5px; line-height: 1.6; }
.site-footer .wordmark__name { font-size: 22px; color: #fff; }
.site-footer .wordmark__tld { color: #A8ADB5; }
.site-footer nav { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer .label { color: #8D929A; font-size: 11.5px; }
.site-footer__legal { border-top: 1px solid #262A31; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; font-size: 12.5px; color: #8D929A; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .article-head__grid { grid-template-columns: minmax(0, 1fr); }
  .article-head__plate { display: none; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hub-head__row { grid-template-columns: minmax(0, 1fr); }
  .hub-head__art { display: none; }
  .profile { grid-template-columns: 120px minmax(0, 1fr); }
  .profile__aside { grid-column: 1 / -1; }
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .article-body, .page-body { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; }
  .toc { position: static; max-height: none; border: 1px solid var(--rule); border-radius: var(--r-md); padding: 14px 16px; }
  .toc summary { padding-bottom: 0; }
  .toc[open] summary { padding-bottom: 12px; }
  .toc summary .toc__toggle { display: inline-block; }
  .lead { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .results-layout, .nf { grid-template-columns: minmax(0, 1fr); }
  .hub-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --gutter: 18px; }
  html { scroll-padding-top: 72px; }
  .hero__inner { padding-block: 40px 36px; }
  .hero__line { font-size: 38px; }
  .stack { display: none; }
  .block { padding-block: 44px; gap: 24px; }
  .lead { padding-block: 40px; }
  .prose { font-size: 17.5px; }
  .prose h2 { font-size: 23px; margin-top: 40px; }
  .prose h2:has(.step) { grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; }
  .prose h2 .step { width: 36px; height: 36px; border-radius: 10px; }
  .prose h2 .step::before { font-size: 14px; }
  .quick { padding: 20px; }
  .quick p { font-size: 17px; }
  .glance__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance__grid > div { border-right: 1px solid var(--rule) !important; border-bottom: 1px solid var(--rule) !important; grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .glance__grid > div:nth-child(2n) { border-right: 0 !important; }
  .glance__grid > div:nth-last-child(-n+2) { border-bottom: 0 !important; }
  .glance__ico { display: none; }
  .sources { grid-template-columns: minmax(0, 1fr); }
  .plate--thumb { width: 96px; height: 80px; flex-basis: 96px; }
  .row { gap: 16px; align-items: flex-start; }
  .row__title { font-size: 17.5px; }
  .row__dek, .row__chev { display: none; }
  .profile { grid-template-columns: minmax(0, 1fr); }
  .avatar--132 { width: 88px; height: 88px; font-size: 28px; }
  .site-footer__cols { grid-template-columns: minmax(0, 1fr); }
  .stats__inner { justify-content: flex-start; }
  .topic-tile { grid-template-columns: 52px minmax(0, 1fr); }
  .lead .plate--wide { aspect-ratio: 16 / 10; }
  .lead .plate--wide .art { width: 30%; max-height: 52%; }
  .byline .dot-sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .toc, .vote, .related, .read-progress { display: none !important; }
  body { font-size: 12pt; }
  .prose h2:has(.step) { display: block; }
}
