/* Self-hosted fonts (SIL Open Font License 1.1, see fonts/OFL.txt). DM Sans and Nunito are variable fonts. */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/dm-sans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/dm-sans-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: 'Nunito'; font-style: normal; font-weight: 600 900; font-display: swap; src: url('fonts/nunito-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: 'Nunito'; font-style: normal; font-weight: 600 900; font-display: swap; src: url('fonts/nunito-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: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-mono-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: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/ibm-plex-mono-500-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; }

/* Solqubit / illustrated notebook. Neutral dark surfaces; pastel accents by role and topic. */
:root {
  --bg: #f7f7fb; --surface: #fffdfc; --soft: #eeebf8; --raised: #f0edfa;
  --ink: #2b2542; --muted: #69617d; --line: #d9d0e8;
  --accent: #6652b3; --accent-soft: #efebfa; --heading-primary: #292a3e;
  --info: #315f91; --info-bg: #ecf3fc; --info-line: #cadbf0;
  --note: #72549e; --note-bg: #f1ecf9; --note-line: #dbcfeb;
  --warning: #8a5423; --warning-bg: #fcf3e9; --warning-line: #ebd2b5;
  --code-bg: #f6f7fc; --button-bg: #6754b6; --button-ink: #fff;
  --shadow-color: #d8d0e9; --shadow: 0 6px 0 var(--shadow-color); --button-shadow: #4b397c;
  --cover-shadow-color: #35265135;
  --cover-line: #5a4681; --cover-label: #3c2b62; --cover-label-bg: #fff7e9;
  --cover-status: #fff5e9; --cover-status-bg: #4b376d;
  --cover-bg: #d8d0f7; --cover-filter: none; --control-line: #8f82a3;
  --selection-bg: #d0b7ff; --selection-ink: #251b3b;
  --radius-card: 28px; --radius-block: 18px; --radius-control: 999px;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --heading: 'Nunito', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
[data-theme=dark] {
  --bg: #18171e; --surface: #222937; --soft: #2c3444; --raised: #293244;
  --ink: #e5e9f0; --muted: #b4bed0; --line: #424f66;
  --accent: #c5b2ee; --accent-soft: #302b43; --heading-primary: #d2c4ee;
  --info: #a3c7ed; --info-bg: #203047; --info-line: #657f9f;
  --note: #e2adcc; --note-bg: #352938; --note-line: #97738b;
  --warning: #e3c08c; --warning-bg: #342d23; --warning-line: #947b55;
  --section-heading: var(--accent); --warm: #e8b89d; --warm-bg: #362c2c; --warm-line: #967563;
  --code-bg: #171e2b; --button-bg: #e8b89d; --button-ink: #2b2022;
  --shadow-color: #0c1018; --button-shadow: #624c46;
  --cover-shadow-color: #0c102560;
  --cover-line: #8c83a7; --cover-label: #a3c7ed; --cover-label-bg: #203047;
  --cover-status: #c5b2ee; --cover-status-bg: #302b43;
  --cover-bg: #263044; --cover-filter: brightness(.90) saturate(1.05); --control-line: #7b88a2;
  --selection-bg: #c5b2ee; --selection-ink: #231a34;
  color-scheme: dark;
}
/* Topic accents stay with an entry when it is filtered or opened. */
[data-theme=dark] [data-tone=blue] { --topic-color: var(--info); --topic-soft: var(--info-bg); --topic-line: var(--info-line); }
[data-theme=dark] [data-tone=rose] { --topic-color: var(--note); --topic-soft: var(--note-bg); --topic-line: var(--note-line); }
[data-theme=dark] [data-tone=peach] { --topic-color: var(--warm); --topic-soft: var(--warm-bg); --topic-line: var(--warm-line); }
[data-theme=dark] [data-tone=lilac] { --topic-color: var(--accent); --topic-soft: var(--accent-soft); --topic-line: #655678; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 450 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; border: 0; background: none; cursor: pointer; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
/* Scrollable code and tables are keyboard-focusable regions; keep their ring inside the clipped frame. */
pre[tabindex]:focus-visible, .table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
img, svg { display: block; }
img { max-width: 100%; }
.cover-art { filter: var(--cover-filter); }
svg.icon { width: 20px; height: 20px; flex-shrink: 0; stroke-width: 1.9; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--heading); line-height: 1.3; font-weight: 800; }
::selection { background: var(--selection-bg); color: var(--selection-ink); }
[hidden] { display: none !important; }
.container { max-width: 1160px; width: calc(100% - 96px); margin-inline: auto; }
.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: fixed; top: -80px; left: 20px; padding: 12px 18px; color: var(--button-ink); background: var(--button-bg); z-index: 100; border-radius: 8px; }
.skip-link:focus { top: 12px; }
#main { min-height: 60vh; }
#main:focus { outline: none; }

/* Identity and navigation */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; height: 84px; gap: 56px; }
.brand { display: flex; align-items: center; gap: 11px; font: 900 29px var(--heading); letter-spacing: -1.2px; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border: 2px solid var(--line); border-radius: 15px; background: var(--accent-soft); transform: rotate(-6deg); }
.brand-mark svg { width: 29px; height: 29px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; }
.brand-mark circle { fill: var(--info); stroke: var(--bg); stroke-width: 2; }
.brand-dot, .footer-brand span { color: var(--accent); }
.desktop-nav { display: flex; align-items: center; gap: 8px; }
.desktop-nav a { padding: 9px 14px; font-size: 12px; color: var(--muted); border-radius: var(--radius-control); font-weight: 550; }
.desktop-nav a[aria-current=page] { background: var(--soft); color: var(--ink); }
.desktop-nav a:is(:hover, :focus-visible) { color: var(--accent); background: var(--soft); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header-divider { width: 1px; height: 22px; background: var(--line); }
.search-trigger { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; padding: 8px 13px; border: 2px solid var(--control-line); border-radius: var(--radius-control); }
.search-trigger .icon { width: 16px; height: 16px; }
.search-trigger kbd { font: 11px var(--mono); border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; margin-left: 15px; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--muted); }
.icon-button:hover { background: var(--soft); color: var(--ink); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 9px; min-height: 42px; padding: 5px 7px 5px 12px; border: 2px solid var(--accent); border-radius: 999px; background: var(--accent-soft); color: var(--accent); box-shadow: 0 3px 0 var(--shadow-color); }
.theme-toggle-label { min-width: 44px; font: 800 12px var(--heading); }
.theme-toggle-track { display: block; position: relative; width: 48px; height: 28px; border-radius: 99px; background: var(--surface); border: 1px solid var(--control-line); }
.theme-toggle-thumb { position: absolute; top: 2px; left: 2px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--bg); transition: transform .18s ease; }
.theme-toggle-thumb .icon { width: 14px; height: 14px; }
.theme-toggle [data-moon], [data-theme=dark] .theme-toggle [data-sun] { display: none; }
[data-theme=dark] .theme-toggle [data-moon] { display: block; }
[data-theme=dark] .theme-toggle-thumb { transform: translateX(20px); }
.theme-toggle:hover { background: var(--surface); }
.mobile-menu-toggle { display: none; }
.mobile-nav { padding: 12px 22px 16px; border-top: 1px solid var(--line); font-size: 15px; }
.mobile-nav-links { display: grid; gap: 4px; }
.mobile-nav-links a { padding: 11px 12px; border-radius: 15px; }
.mobile-nav-links a:is(:hover, :focus-visible) { background: var(--soft); color: var(--accent); }
.mobile-nav-links a:focus-visible { outline-offset: 0; }
.mobile-nav-links a[aria-current=page] { background: var(--soft); color: var(--accent); }
.reading-progress { position: fixed; z-index: 80; top: 0; left: 0; width: 100%; height: 2px; background: var(--accent); pointer-events: none; transform: scaleX(0); transform-origin: 0 50%; }
.section-kicker { font: 12px/1.7 var(--mono); text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent); }

/* Illustrated cover and one searchable collection */
.journal-intro { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 80px; padding: 55px 0 46px; }
.journal-intro h1 { font-size: clamp(47px, 4.7vw, 66px); font-weight: 900; letter-spacing: -2.5px; line-height: 1.13; color: var(--ink); }
.journal-intro h1 em { position: relative; display: inline-block; font: inherit; font-style: normal; color: var(--warm, var(--accent)); padding-right: 5px; }
.journal-intro h1 em:after { content: ''; position: absolute; left: 3px; right: 5px; bottom: -5px; height: 11px; border-bottom: 4px solid var(--info); border-radius: 50%; transform: rotate(-2deg); }
.journal-intro-note { max-width: 330px; justify-self: end; padding-top: 15px; }
.intro-spark { display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid var(--warm-line, var(--note-line)); border-radius: 16px; background: var(--warm-bg, var(--accent-soft)); font: 36px/1 var(--heading); color: var(--warm, var(--accent)); margin-bottom: 16px; transform: rotate(8deg); box-shadow: 2px 3px 0 var(--line); }
.journal-intro-note p { color: var(--muted); font-size: 14px; line-height: 1.85; }
/* One card treatment in both modes: neutral outer shell, inset framed image,
   and a firm sticker shadow. Theme colors never change the containment. */
.lead-story, .journal-card, .series-item { background: var(--surface); border: 2px solid var(--line); box-shadow: var(--shadow); }
.lead-story { border-radius: 32px; }
.lead-story-link { display: grid; grid-template-columns: 1.18fr 1fr; border-radius: inherit; padding: 12px; }
.lead-story-cover { position: relative; min-height: 380px; overflow: hidden; background: var(--cover-bg); border-radius: 22px; border: 2px solid var(--cover-line); }
.lead-story-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cover-topic { position: absolute; top: 17px; left: 17px; display: inline-flex; align-items: center; gap: 7px; color: var(--topic-color, var(--cover-label)); background: var(--topic-soft, var(--cover-label-bg)); border: 2px solid var(--topic-line, var(--cover-line)); border-radius: var(--radius-control); padding: 6px 11px; font: 800 12px/1.5 var(--heading); z-index: 1; box-shadow: 0 3px 0 var(--cover-shadow-color); }
.cover-topic .icon { width: 14px; height: 14px; color: inherit; }
.lead-story-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 38px 42px; }
.lead-story-copy h2 { font-size: 32px; font-weight: 800; letter-spacing: -.8px; line-height: 1.3; margin-top: 18px; text-wrap: balance; color: var(--topic-color, var(--heading-primary)); }
.lead-story-description { font-size: 13px; line-height: 1.85; color: var(--muted); margin-top: 15px; }
.lead-story-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; color: var(--muted); font-size: 12px; margin-top: 21px; }
.lead-story-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.lead-story-meta > span + span { border-left: 1px solid var(--line); padding-left: 15px; }
.lead-story-meta .icon { width: 13px; height: 13px; }
.read-button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 23px; background: var(--button-bg); color: var(--button-ink); border: 2px solid var(--button-shadow); border-radius: var(--radius-control); padding: 11px 18px; font: 800 13px/1.6 var(--heading); box-shadow: 0 4px 0 var(--button-shadow); transition: transform .18s, box-shadow .18s; }
.read-button { margin-top: 26px; }
.read-button .icon, .button .icon { width: 16px; height: 16px; }
.lead-story-link:hover .lead-story-cover img { transform: scale(1.025); }
.lead-story:hover { border-color: var(--topic-color, var(--accent)); }
.lead-story-link:hover .read-button, .button:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--button-shadow); }
.journal-catalog { padding: 54px 0 76px; }
.catalog-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.catalog-heading h2 { font-size: 28px; font-weight: 800; letter-spacing: -.7px; color: var(--section-heading, var(--note)); }
.catalog-heading h2 > span { color: var(--warm, var(--accent)); }
#results-count { color: var(--muted); font: 12px/1.8 var(--mono); text-align: right; padding-bottom: 4px; }
.index-controls { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 12px; margin: 0 0 27px; }
.index-search { display: flex; align-items: center; gap: 11px; border: 2px solid var(--control-line); border-radius: var(--radius-control); background: var(--surface); min-width: 0; height: 49px; padding: 0 18px; }
.index-search > .icon { width: 17px; height: 17px; color: var(--muted); }
.index-search input { min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.index-search input::placeholder { color: var(--muted); opacity: 1; font-size: 14px; }
.index-search input::-webkit-search-cancel-button { display: none; }
.index-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.clear-search { display: grid; place-items: center; height: 38px; width: 30px; color: var(--muted); flex-shrink: 0; }
.clear-search .icon { width: 15px; height: 15px; }
.index-select { position: relative; min-width: 0; }
.index-select select { appearance: none; width: 100%; height: 49px; padding: 0 38px 0 18px; font-size: 14px; color: var(--muted); background: var(--surface); border: 2px solid var(--control-line); border-radius: var(--radius-control); cursor: pointer; }
.index-select > .icon { position: absolute; top: 17px; right: 15px; width: 13px; height: 13px; transform: rotate(90deg); pointer-events: none; color: var(--accent); }
.journal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 26px; row-gap: 36px; }
.journal-card { min-width: 0; border-radius: var(--radius-card); transition: transform .2s, border-color .2s; }
.journal-card:hover { transform: translateY(-3px); border-color: var(--topic-color, var(--note)); }
.journal-card-link { display: flex; flex-direction: column; height: 100%; border-radius: 26px; padding: 10px; }
.journal-card-cover { position: relative; border: 2px solid var(--cover-line); border-radius: 18px; overflow: hidden; aspect-ratio: 1.5; background: var(--cover-bg); }
.journal-card-cover img { height: 100%; width: 100%; object-fit: cover; transition: transform .4s ease; }
.journal-card .cover-topic { top: 10px; left: 10px; font-size: 12px; padding: 4px 10px; }
.journal-card .cover-topic .icon { width: 12px; height: 12px; }
.journal-card-copy { padding: 20px 11px 10px; display: flex; flex: 1; flex-direction: column; }
.journal-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.journal-meta > span:first-child { color: var(--topic-color, var(--accent)); }
.journal-meta > span:last-child { text-align: right; }
.journal-card h3 { font-size: 21px; line-height: 1.38; letter-spacing: -.3px; font-weight: 800; margin-top: 11px; color: var(--topic-color, var(--heading-primary)); }
.journal-card-copy > p { font-size: 13px; color: var(--muted); line-height: 1.8; margin-top: 10px; margin-bottom: 18px; }
.journal-read { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding-top: 13px; margin-top: auto; color: var(--muted); font-size: 12px; }
.journal-read .icon { width: 27px; height: 27px; padding: 5px; border-radius: 50%; color: var(--topic-color, var(--accent)); background: var(--topic-soft, var(--accent-soft)); border: 1px solid var(--topic-line, var(--note-line)); }
.journal-card-link:hover img { transform: scale(1.035); }
.journal-card-link:hover h3, .journal-card-link:hover .journal-read { color: var(--topic-color, var(--accent)); }
.index-empty { grid-column: 1 / -1; padding: 54px 20px; text-align: center; border: 2px dashed var(--line); border-radius: var(--radius-card); }
.index-empty > .icon { margin: 0 auto 18px; color: var(--accent); }
.index-empty h3 { font-size: 20px; }
.index-empty p { font-size: 14px; color: var(--muted); margin: 10px 0 22px; }
.text-button { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 550; color: var(--accent); }
.text-button .icon { width: 16px; height: 16px; }

/* Article cover and reading experience */
.article-shell { max-width: 1120px; }
.breadcrumbs { padding: 24px 0 18px; color: var(--muted); font-size: 12px; }
.breadcrumbs ol, .breadcrumbs li { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs .icon { width: 12px; height: 12px; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs-current { min-width: 0; flex-wrap: nowrap !important; }
.breadcrumbs-current > span { min-width: 0; max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.article-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 32px; padding: 28px; margin-bottom: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: 0 4px 0 var(--shadow-color); }
.article-hero-copy { min-width: 0; overflow-wrap: anywhere; }
.article-hero-copy .feature-labels { gap: 10px; margin-bottom: 14px; }
.feature-labels { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 19px; }
.pill { display: inline-flex; align-items: center; gap: 7px; border-radius: var(--radius-control); padding: 5px 11px; font-size: 12px; font-weight: 600; color: var(--info); border: 1px solid var(--info-line); background: var(--info-bg); }
.pill .icon { width: 13px; height: 13px; }
.feature-labels .pill { color: var(--topic-color, var(--info)); background: var(--topic-soft, var(--info-bg)); border-color: var(--topic-line, var(--info-line)); }
.eyebrow { color: var(--muted); font: 12px/1.7 var(--mono); letter-spacing: 1px; text-transform: uppercase; }
.article-intro h1 { font-size: clamp(32px, 3.3vw, 45px); font-weight: 800; line-height: 1.16; letter-spacing: -1px; color: var(--topic-color, var(--heading-primary)); text-wrap: balance; }
.article-lead { color: color-mix(in srgb, var(--muted) 80%, var(--ink)); font-size: 15px; line-height: 1.75; margin-top: 16px; }
.article-publication { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; color: var(--muted); font-size: 12px; }
.article-publication time { white-space: nowrap; }
.article-reading-time { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.article-reading-time .icon { width: 12px; height: 12px; color: var(--accent); }
.article-cover { min-width: 0; margin: 0; }
.article-cover img { width: 100%; aspect-ratio: 1.4; height: auto; object-fit: cover; border: 1px solid var(--cover-line); border-radius: var(--radius-block); }
.article-cover figcaption { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 10px 2px 0; overflow-wrap: anywhere; }
.article-byline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; margin-top: 22px; border-top: 1px solid var(--line); }
.author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.author-details { min-width: 0; }
.author-avatar { display: grid; place-items: center; flex-shrink: 0; object-fit: cover; width: 40px; height: 40px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--note-line); color: var(--accent); font: 900 17px var(--heading); }
.author strong { display: block; font-size: 12px; font-weight: 650; }
.author small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.author-bio { max-width: 540px; margin: 12px 0 0 50px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.article-byline > .article-tool { flex-shrink: 0; color: var(--accent); border: 1px solid var(--line); background: var(--accent-soft); }
.article-tool { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 13px; border: 2px solid var(--control-line); border-radius: var(--radius-control); color: var(--muted); font-size: 12px; }
.article-tool .icon { width: 14px; height: 14px; }
.article-tool:hover { color: var(--accent); background: var(--accent-soft); border-color: var(--note-line); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 48px; align-items: start; padding: 0 28px 48px; }
.article-body > :first-child, .article-body > .mobile-toc + * { margin-top: 0; }
.article-body { min-width: 0; }
.article-body > p { color: var(--ink); font-size: 16px; line-height: 1.85; margin: 18px 0; }
.article-body > p:first-of-type { margin-top: 0; color: var(--ink); font-size: 17px; line-height: 1.9; }
.article-body h2 { color: var(--section-heading, var(--note)); font-size: 27px; font-weight: 800; line-height: 1.4; letter-spacing: -.4px; margin: 39px 0 17px; scroll-margin-top: 105px; }
.article-body h3 { font-size: 18px; color: var(--info); margin: 25px 0 12px; }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body :not(pre) > code { font: 12px/1.7 var(--mono); color: var(--info); background: var(--info-bg); border: 1px solid var(--info-line); padding: 2px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.article-aside { position: sticky; top: 114px; max-height: calc(100vh - 140px); overflow-y: auto; scrollbar-width: thin; background: var(--surface); border: 2px solid var(--line); border-radius: 24px; padding: 23px 18px; box-shadow: var(--shadow); }
.toc-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin-bottom: 17px; padding-left: 3px; }
.toc-title .icon { width: 15px; height: 15px; color: var(--accent); }
.toc { display: flex; flex-direction: column; gap: 3px; }
.toc a { font-size: 12px; line-height: 1.65; color: var(--muted); border-left: 2px solid transparent; padding: 8px 9px; border-radius: 0 12px 12px 0; }
.toc a.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.toc a:hover { color: var(--accent); }
.mobile-toc { display: none; }
.code-block { margin: 24px 0; border: 1px solid var(--info-line); background: var(--code-bg); border-radius: var(--radius-block); overflow: hidden; box-shadow: 0 3px 0 color-mix(in srgb, var(--info-line) 65%, var(--bg)); }
.code-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 16px; background: var(--info-bg); color: var(--info); border-bottom: 1px solid var(--info-line); font: 500 12px/1.7 var(--mono); }
.code-top > span { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.code-top .icon { width: 14px; height: 14px; }
.copy-button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--info-line); border-radius: var(--radius-control); color: var(--info); font: 500 12px/1.6 var(--mono); flex-shrink: 0; }
.copy-button:hover { background: var(--surface); }
.code-block pre { margin: 0; padding: 20px 22px; overflow-x: auto; font: 13px/1.9 var(--mono); color: var(--ink); tab-size: 2; }
.article-body figure { margin: 26px 0; }
.article-body figcaption { color: var(--muted); font-size: 12px; line-height: 1.7; }
.terminal-output { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-block); overflow: hidden; }
.terminal-output figcaption { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); padding: 12px 16px; font-weight: 650; color: var(--ink); }
.terminal-output figcaption .icon { width: 14px; height: 14px; }
.terminal-output pre { margin: 0; padding: 18px; font: 13px/1.9 var(--mono); overflow-x: auto; }
.table-wrap { margin: 22px 0; border: 1px solid var(--line); border-radius: var(--radius-block); overflow: auto; }
.article-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; line-height: 1.75; }
.article-table th, .article-table td { padding: 14px 17px; border-bottom: 1px solid var(--line); }
.article-table thead th { background: var(--info-bg); color: var(--info); font-weight: 700; font-size: 13px; }
.article-table tbody th { font-weight: 650; width: 30%; color: var(--ink); background: var(--surface); }
.article-table td { color: var(--ink); }
.article-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface) 65%, var(--info-bg)); }
.article-table tbody tr:last-child th, .article-table tbody tr:last-child td { border: 0; }
.article-table :not(pre) > code { font-size: 12px; }
.article-notice { --notice-color: var(--info); --notice-bg: var(--info-bg); --notice-line: var(--info-line); display: flex; align-items: flex-start; gap: 14px; margin: 26px 0; padding: 20px; border: 1px solid color-mix(in srgb, var(--notice-line) 80%, var(--notice-color)); border-left: 4px solid var(--notice-color); border-radius: var(--radius-block); background: var(--notice-bg); box-shadow: 0 3px 0 color-mix(in srgb, var(--notice-line) 65%, var(--bg)); }
.notice-warning { --notice-color: var(--warning); --notice-bg: var(--warning-bg); --notice-line: var(--warning-line); }
.notice-success { --notice-color: var(--note); --notice-bg: var(--note-bg); --notice-line: var(--note-line); }
.article-notice > .icon { color: var(--notice-color); width: 34px; height: 34px; padding: 7px; border: 1px solid var(--notice-line); border-radius: 11px; background: color-mix(in srgb, var(--notice-bg) 70%, var(--surface)); }
.article-notice > div { min-width: 0; }
.article-notice > div > strong { display: block; color: var(--notice-color); font: 800 16px/1.4 var(--heading); margin-bottom: 7px; }
.article-notice p { font-size: 14px; line-height: 1.8; color: var(--ink); }
.article-notice :not(pre) > code { color: inherit; background: transparent; border-color: var(--notice-line); font-size: 12px; }
.article-figure { overflow: hidden; border: 1px solid var(--info-line); border-radius: var(--radius-block); background: var(--surface); }
.article-image-trigger { position: relative; display: block; width: 100%; padding: 0; cursor: zoom-in; }
.article-image-trigger img { width: 100%; height: auto; }
.article-image-trigger > span { position: absolute; bottom: 12px; right: 12px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--info); background: var(--info-bg); border: 1px solid var(--info-line); border-radius: 5px; padding: 5px 9px; }
.article-image-trigger > span .icon { width: 13px; height: 13px; }
.article-figure figcaption { padding: 12px 16px; }
.article-summary { min-width: 0; padding: 20px 22px; margin: 28px 0; background: var(--note-bg); border: 1px solid var(--note-line); border-radius: var(--radius-block); box-shadow: 0 3px 0 color-mix(in srgb, var(--note-line) 65%, var(--bg)); }
.article-summary-title { color: var(--note); font: 800 16px/1.4 var(--heading); margin-bottom: 12px; }
.article-summary ul { margin: 0; padding-left: 19px; }
.article-summary li { padding: 5px 0 5px 3px; font-size: 14px; line-height: 1.8; }
.article-summary li::marker { color: var(--note); font-weight: 700; }
.article-faq { margin: 24px 0; padding: 0 20px; border: 1px solid var(--line); border-radius: var(--radius-block); background: var(--surface); }
.article-faq details { border-bottom: 1px solid var(--line); }
.article-faq details:last-child { border-bottom: 0; }
.article-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 0; font-size: 15px; font-weight: 650; list-style: none; cursor: pointer; }
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary .icon { width: 28px; height: 28px; padding: 6px; border-radius: 50%; color: var(--accent); background: var(--accent-soft); }
.article-faq details[open] summary { color: var(--accent); }
.article-faq details[open] summary .icon { transform: rotate(90deg); }
.article-faq details p { font-size: 14px; line-height: 1.85; color: var(--ink); padding-bottom: 20px; }
.article-references { list-style: none; padding: 0; margin: 22px 0; border: 1px solid var(--line); border-radius: var(--radius-block); overflow: hidden; background: var(--surface); }
.article-references li + li { border-top: 1px solid var(--line); }
.article-references a { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 19px; }
.article-references a:hover { background: var(--info-bg); }
.article-references strong { color: var(--info); font-size: 14px; }
.article-references small { display: block; font-size: 12px; line-height: 1.8; color: var(--muted); margin-top: 4px; }
.article-references .icon { width: 16px; height: 16px; color: var(--info); }
.article-video { border: 1px solid var(--line); border-radius: var(--radius-block); overflow: hidden; background: var(--surface); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--soft); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article-video figcaption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; padding: 13px 16px; }
.article-video figcaption a { display: inline-flex; align-items: center; gap: 5px; color: var(--note); }
.article-video figcaption .icon { width: 13px; height: 13px; }
.attachment { display: flex; align-items: center; gap: 13px; padding: 17px; }
.attachment + .attachment { border-top: 1px solid var(--line); }
.attachment-icon { display: grid; place-items: center; width: 36px; height: 40px; color: var(--note); background: var(--note-bg); border: 1px solid var(--note-line); border-radius: 6px; flex-shrink: 0; }
.attachment-icon .icon { width: 18px; height: 18px; }
.attachment > div { min-width: 0; overflow-wrap: anywhere; }
.attachment strong { display: block; font-size: 12px; }
.attachment small { display: block; color: var(--muted); font: 12px/1.8 var(--mono); margin-top: 3px; }
.attachment-download { display: flex; align-items: center; gap: 7px; padding: 10px 0 10px 10px; margin-left: auto; color: var(--note); font-size: 12px; }
.attachment-download .icon { width: 16px; height: 16px; }
.attachment-download:hover { text-decoration: underline; }
.article-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 25px; margin-top: 37px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags .pill { color: var(--muted); background: var(--surface); border-color: var(--line); }
.article-related { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: center; gap: 32px; padding: 38px 0 70px; border-top: 1px solid var(--line); }
.article-related h2 { font-size: 27px; letter-spacing: -.4px; color: var(--note); }
.next-article { display: flex; align-items: center; gap: 19px; min-width: 0; border: 2px solid var(--line); border-radius: 24px; padding: 14px; background: var(--surface); box-shadow: var(--shadow); }
.next-cover { width: 100px; height: 75px; border-radius: 14px; overflow: hidden; flex-shrink: 0; }
.next-cover img { width: 100%; height: 100%; object-fit: cover; }
.next-article small { color: var(--topic-color, var(--accent)); font-size: 12px; }
.next-article strong { display: block; font-size: 14px; line-height: 1.6; margin-top: 5px; color: var(--topic-color, var(--ink)); }
.next-article > .icon { color: var(--topic-color, var(--accent)); margin-left: auto; width: 18px; height: 18px; }
.next-article:hover { border-color: var(--topic-color, var(--note-line)); }

/* Series, managed pages, and footer */
.inner-intro { padding: 51px 0 35px; max-width: 720px; }
.inner-intro h1 { color: var(--heading-primary); font-size: 45px; font-weight: 800; letter-spacing: -1px; margin-top: 13px; }
.inner-intro > p:last-child { color: var(--muted); font-size: 15px; line-height: 1.9; margin-top: 17px; }
.series-list { display: grid; gap: 26px; padding-bottom: 70px; }
.series-item { display: grid; grid-template-columns: 340px minmax(0, 1fr); border-radius: var(--radius-card); padding: 12px; }
.series-cover { height: 100%; min-height: 310px; overflow: hidden; border-radius: var(--radius-block); background: var(--cover-bg); border: 2px solid var(--cover-line); }
.series-cover img { width: 100%; height: 100%; object-fit: cover; }
.series-content { padding: 29px 35px 20px; min-width: 0; }
.series-number { font: 12px var(--mono); color: var(--accent); }
.series-summary h2 { font-size: 28px; font-weight: 800; letter-spacing: -.5px; margin: 12px 0 8px; color: var(--topic-color, var(--heading-primary)); }
.series-summary p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.series-chapters { margin-top: 20px; }
.chapter { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding: 14px 0; }
.chapter strong { font-size: 13px; font-weight: 500; line-height: 1.7; }
.chapter .icon { margin-left: auto; color: var(--accent); width: 14px; height: 14px; }
.chapter:hover { color: var(--accent); }
.about-link { margin-top: 9px; }
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 23px; }
.footer-main { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.footer-brand { font: 900 28px var(--heading); letter-spacing: -1px; }
.footer-main p { color: var(--muted); font-size: 12px; margin-top: 9px; }
.footer-main nav { display: flex; gap: 24px; font-size: 13px; color: var(--muted); }
.footer-main nav a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 25px; border-top: 1px solid var(--line); padding-top: 19px; margin-top: 30px; color: var(--muted); font-size: 12px; }
.footer-bottom small { font-size: 12px; }

/* Search, image expansion, and feedback */
dialog { color: var(--ink); border: 1px solid var(--line); background: var(--surface); padding: 0; box-shadow: 0 30px 100px #0006; }
dialog::backdrop { background: #060814b8; backdrop-filter: blur(7px); }
.search-dialog { width: min(620px, calc(100% - 32px)); border-radius: 24px; margin: 14vh auto auto; border-width: 2px; }
.search-form { display: flex; align-items: center; gap: 13px; padding: 20px; border-bottom: 1px solid var(--line); }
.search-form > .icon { color: var(--accent); }
.search-form input { flex: 1; min-width: 0; background: transparent; color: var(--ink); border: 0; outline: none; font-size: 16px; }
.search-form:focus-within { box-shadow: inset 0 -2px var(--accent); }
.close-dialog { font: 12px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 6px 8px; }
.search-hint { color: var(--muted); font-size: 12px; padding: 13px 22px; border-top: 1px solid var(--line); }
.detail-dialog { width: min(960px, calc(100% - 32px)); max-height: 88vh; overflow: auto; border-radius: 24px; }
.detail-close { position: absolute; top: 12px; right: 12px; z-index: 3; background: var(--surface); }
#detail-content { padding: 50px 24px 24px; }
.expanded-figure img { width: 100%; height: auto; }
.expanded-figure figcaption { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 14px; }
.toast { position: fixed; bottom: 25px; left: 50%; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .2s; max-width: calc(100% - 32px); width: max-content; background: var(--ink); color: var(--bg); padding: 12px 19px; border-radius: 8px; box-shadow: var(--shadow); font-size: 12px; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Preserve the approved light layout in both themes, including shadow offsets and blur.
   Theme overrides may change colors and image tone, never card geometry or framing. */
[data-theme=dark] .lead-story-copy .section-kicker { color: var(--info); }
[data-theme=dark] .journal-read { color: var(--ink); }
[data-theme=dark] :is(.read-button, .button) { border-color: color-mix(in srgb, var(--button-bg) 75%, white); }
[data-theme=dark] .desktop-nav a[aria-current=page] { background: var(--accent-soft); color: var(--accent); }
[data-theme=dark] .article-tool:hover { border-color: var(--accent); }
[data-theme=dark] .article-image-trigger > span { border-color: var(--info); }

@media (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  .header-inner { gap: 28px; }
  .desktop-nav { gap: 2px; }
  .desktop-nav a { padding-inline: 11px; }
  .search-trigger kbd { display: none; }
  .journal-intro { gap: 40px; }
  .lead-story-copy { padding: 29px; }
  .lead-story-copy h2 { font-size: 29px; }
  .journal-grid { gap: 32px 22px; }
  .journal-card h3 { font-size: 18px; }
  .article-intro { gap: 24px; padding: 24px; }
  .article-byline > .article-tool > span { display: none; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 225px; gap: 32px; padding-inline: 24px; }
  .series-item { grid-template-columns: 300px minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .header-inner { height: 76px; gap: 23px; }
  .brand { font-size: 24px; gap: 8px; }
  .search-label { display: none; }
  .search-trigger { padding: 10px; }
  .header-actions { gap: 5px; }
  .journal-intro { padding-top: 43px; gap: 35px; }
  .journal-intro h1 { font-size: 48px; letter-spacing: -2px; }
  .journal-intro h1 em { letter-spacing: -2px; }
  .journal-intro-note { max-width: 280px; }
  .journal-intro-note p { font-size: 13px; }
  .lead-story-link { grid-template-columns: 1.1fr 1fr; }
  .lead-story-cover { min-height: 365px; }
  .lead-story-copy { padding: 27px; }
  .lead-story-copy h2 { font-size: 26px; }
  .lead-story-description { font-size: 12px; }
  .journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journal-card h3 { font-size: 20px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); max-width: 740px; margin-inline: auto; padding-inline: 0; }
  .article-related { grid-template-columns: minmax(0, 1fr); max-width: 740px; margin-inline: auto; gap: 20px; }
  .article-aside { display: none; }
  .mobile-toc { display: block; padding: 15px 18px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-block); margin-bottom: 28px; font-size: 12px; }
  .mobile-toc summary { cursor: pointer; color: var(--accent); }
  .mobile-toc .toc { margin-top: 13px; }
  .series-item { grid-template-columns: 260px minmax(0, 1fr); }
  .series-content { padding: 26px 25px 16px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 40px); }
  .header-inner { height: 70px; gap: 15px; }
  .brand { font-size: 24px; }
  .brand-mark { width: 29px; height: 34px; }
  .brand-mark svg { width: 29px; height: 29px; }
  .desktop-nav { display: none; }
  .mobile-menu-toggle { display: grid; }
  .search-trigger { border: 0; }
  .journal-intro { grid-template-columns: 1fr; gap: 23px; padding: 36px 0 30px; }
  .journal-intro h1 { font-size: clamp(44px, 8vw, 58px); }
  .journal-intro-note { justify-self: start; max-width: 460px; padding-top: 0; }
  .intro-spark { display: none; }
  .journal-intro-note p { font-size: 13px; }
  .lead-story-link { grid-template-columns: minmax(0, 1fr); }
  .lead-story-cover { min-height: 0; aspect-ratio: 1.5; }
  .lead-story-cover img { object-position: center 53%; }
  .lead-story-copy { padding: 29px; }
  .lead-story-copy h2 { font-size: 30px; max-width: 480px; margin-top: 13px; }
  .lead-story-description { font-size: 13px; max-width: 480px; }
  .read-button { margin-top: 22px; }
  .journal-catalog { padding: 39px 0 50px; }
  .catalog-heading h2 { font-size: 24px; }
  #results-count { max-width: 130px; }
  .index-controls { grid-template-columns: minmax(0, 1fr) 190px; }
  .article-intro { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 22px; margin-bottom: 26px; }
  .article-intro h1 { font-size: clamp(31px, 5.5vw, 41px); max-width: 620px; }
  .article-cover img { aspect-ratio: 1.7; }
  .article-byline { margin-top: 18px; padding-top: 16px; }
  .article-tool { padding: 9px; }
  .article-tool > span { display: none; }
  .article-body h2 { font-size: 23px; }
  .article-related { padding: 28px 0 50px; }
  .article-related h2 { font-size: 23px; }
  .article-body > p:first-of-type { font-size: 16px; }
  .series-item { grid-template-columns: minmax(0, 1fr); }
  .series-cover { min-height: 0; aspect-ratio: 1.5; }
  .series-content { padding: 27px; }
  .inner-intro { padding-top: 36px; }
  .inner-intro h1 { font-size: 35px; }
  .footer-main { align-items: flex-start; }
  .footer-main nav { flex-direction: column; gap: 10px; text-align: right; flex-shrink: 0; }
  .footer-main p { max-width: 280px; }
  .footer-bottom { align-items: flex-start; }
  .footer-bottom small { text-align: right; }
}
@media (max-width: 620px) {
  /* Compact switch: the label stays available to assistive technology. */
  .theme-toggle-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .theme-toggle, .theme-toggle:hover { min-height: 44px; padding: 0 2px; border: 0; background: none; box-shadow: none; }
  .theme-toggle-track { border: 2px solid var(--accent); background: var(--accent-soft); }
  .theme-toggle-thumb { top: 1px; left: 1px; }
  .journal-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .journal-card-cover { aspect-ratio: 1.5; }
  .journal-card h3 { font-size: 22px; }
  .journal-card-copy > p { font-size: 13px; }
  .journal-card-copy { padding-top: 17px; }
  .index-controls { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .index-search input::placeholder { font-size: 13px; }
  .index-select select { font-size: 16px; }
  .catalog-heading { gap: 12px; }
  .catalog-heading h2 { font-size: 22px; }
  #results-count { max-width: 110px; }
  .lead-story-copy { padding: 25px; }
  .lead-story-copy h2 { font-size: 27px; }
  .article-intro { padding: 18px; border-radius: 24px; gap: 20px; }
  .article-intro h1 { font-size: clamp(28px, 7.8vw, 38px); letter-spacing: -.7px; }
  .breadcrumbs { padding: 18px 0 14px; }
  .breadcrumbs ol, .breadcrumbs li { gap: 7px; }
  .article-lead { font-size: 15px; }
  .feature-labels { margin-bottom: 16px; }
  .article-cover img { aspect-ratio: 1.5; border-radius: 14px; }
  .author-avatar { width: 36px; height: 36px; font-size: 14px; border-radius: 12px; }
  .author-bio { margin-left: 0; }
  .article-byline { gap: 10px; }
  .article-tool { min-height: 36px; }
  .article-table { font-size: 13px; }
  .article-table th, .article-table td { padding: 12px; }
  .code-top { padding: 10px 12px; gap: 8px; }
  .code-block pre { padding: 17px; font-size: 12px; }
  .article-notice { padding: 15px; gap: 11px; }
  .article-notice p { font-size: 14px; }
  .article-summary { padding: 14px 16px; }
  .article-faq { padding-inline: 16px; }
  .article-faq summary, .article-faq details p { font-size: 14px; }
  .attachment { gap: 10px; padding: 14px; }
  .attachment-download > span { display: none; }
  .attachment strong { font-size: 13px; }
  .next-cover { width: 75px; height: 70px; }
  .next-article { gap: 13px; padding: 12px; }
  .next-article strong { font-size: 13px; }
  .next-article > .icon { display: none; }
  .search-form { gap: 10px; padding: 17px; }
  .search-dialog { margin-top: 10vh; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .footer-bottom small { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; animation: none !important; }
}
