/* Hacktronian - field notes, terminal craft, and a little controlled chaos. */
:root {
  color-scheme: dark;
  --accent: #11c28a;
  --accent-ink: #25dba1;
  --accent-wash: #11c28a0d;
  --bg: #090d0b;
  --surface: #0d1310;
  --surface-raised: #141c17;
  --surface-hover: #18221b;
  --text: #ecf1e9;
  --muted: #9ba79d;
  --dim: #8b9b90;
  --line: #26312a;
  --line-strong: #455348;
  --grid: #ffffff03;
  --shadow: #0000005c;
  --mono: 'IBM Plex Mono', 'Cascadia Code', Consolas, 'Courier New', monospace;
  --sans: 'Space Grotesk', 'Segoe UI', system-ui, Arial, sans-serif;
  --header-h: 76px;
  --border: var(--line);
  --accent-text: var(--accent-ink);
}
html[data-theme='light'], body[data-theme='light'] {
  color-scheme: light;
  --accent-ink: #08754f;
  --accent-wash: #11c28a0f;
  --bg: #f3f5ef;
  --surface: #f8faf5;
  --surface-raised: #e9eee5;
  --surface-hover: #e1e9df;
  --text: #15231a;
  --muted: #526357;
  --dim: #526357;
  --line: #d0d9cd;
  --line-strong: #92a18f;
  --grid: #15231a06;
  --shadow: #15231a13;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; transition: background-color .2s, color .2s; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, select, summary { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .5; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; flex-shrink: 0; }
button svg, a svg { vertical-align: middle; }
::selection { background: #11c28a; color: #082318; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-weight: 600; }
h1, h2 { letter-spacing: -.045em; }
pre, code { font-family: var(--mono); }
pre { margin: 0; }
code { font-size: .87em; }
code:not(pre code) { background: var(--surface-raised); padding: 2px 5px; overflow-wrap: anywhere; }
.container { width: min(1280px, 100%); margin-inline: auto; padding-inline: 40px; }
.mono { font-family: var(--mono); }
.visually-hidden { position: absolute !important; 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: 8px; left: 8px; z-index: 1000; background: var(--accent); color: #06291c; padding: 10px 18px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

/* Navigation stays functional and quiet; the mark does the talking. */
.site-header { height: var(--header-h); position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1440px; height: 100%; margin: auto; padding-inline: 32px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-symbol { display: grid; place-items: center; color: var(--accent); }
.brand-symbol svg { width: 28px; height: 28px; }
.brand-text { font-family: var(--mono); font-size: 15px; line-height: 1; font-weight: 600; letter-spacing: -.6px; }
.desktop-nav { display: flex; align-items: stretch; gap: 25px; height: 100%; margin-inline: auto; }
.desktop-nav a { display: flex; align-items: center; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted); white-space: nowrap; position: relative; }
.desktop-nav a:hover, .desktop-nav a[aria-current='page'] { color: var(--text); }
.desktop-nav a[aria-current='page']::after { content: ''; height: 2px; background: var(--accent); position: absolute; bottom: 0; left: 0; right: 0; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { appearance: none; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: var(--muted); border: 1px solid var(--line); background: transparent; border-radius: 2px; padding: 0; }
.icon-button:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface); }
.icon-button svg { width: 17px; height: 17px; }
.icon-button kbd { font: 10px var(--mono); }
.search-trigger { width: auto; min-width: 38px; padding-inline: 10px; }
.menu-toggle { display: none; }
.mobile-nav { position: absolute; top: var(--header-h); left: 0; right: 0; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; padding: 16px 24px 22px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px var(--shadow); }
.mobile-nav a { display: block; padding: 13px 0; font-family: var(--mono); font-size: 13px; border-bottom: 1px solid var(--line); }
.mobile-nav a[aria-current='page'] { color: var(--accent-ink); }
@media (min-width: 1121px) { .mobile-nav { display: none; } }

/* Shared labels, buttons and resource icons. Hero composition lives in hero.css. */
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 1.5px; font-size: 10px; color: var(--muted); line-height: 1.7; }
.status-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px #11c28a40; flex-shrink: 0; }
.wordmark-cursor { color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 12px 20px; font-family: var(--mono); font-size: 11px; line-height: 1.5; font-weight: 500; border: 1px solid var(--line-strong); border-radius: 2px; transition: background .18s, border-color .18s, transform .18s; }
.button:hover { transform: translateY(-2px); }
.button svg { width: 16px; height: 16px; }
.button-primary { background: var(--accent); border-color: var(--accent); color: #062b1d; }
.button-primary:hover { background: #34dba4; border-color: #34dba4; }
.button-secondary { background: var(--bg); color: var(--text); }
.button-secondary:hover { background: var(--surface-raised); border-color: var(--muted); }
.resource-glyph { display: flex; align-items: center; justify-content: center; width: 62px; height: 62px; background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 9px 24px var(--shadow); font-family: var(--mono); font-weight: 600; font-size: 20px; color: var(--text); transition: border-color .2s, transform .2s; }
.resource-glyph img { width: 31px; height: 31px; object-fit: contain; }
.resource-caption { font-family: var(--mono); font-size: 9px; line-height: 1.4; letter-spacing: .3px; color: var(--muted); }

/* Editorial sections, deliberately simple surfaces. */
.section { padding-block: 86px; border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr auto; gap: 14px 30px; align-items: end; margin-bottom: 32px; }
.section-index { display: block; font: 10px/1.6 var(--mono); text-transform: uppercase; letter-spacing: 1.6px; color: var(--accent-ink); margin-bottom: 13px; }
.section-heading h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; margin-bottom: 0; font-weight: 500; }
.section-heading p { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.section-link, .text-link { display: inline-flex; align-items: center; gap: 8px; font: 11px/1.6 var(--mono); color: var(--accent-ink); }
.section-link { padding-bottom: 4px; }
.section-link:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.section-link svg, .text-link svg { width: 14px; height: 14px; }
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.path-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface); padding: 27px 30px; min-width: 0; overflow: hidden; transition: border-color .2s, background .2s; }
a.path-card:hover { border-color: var(--accent); background: var(--surface-raised); }
.path-number { color: var(--dim); font: 10px var(--mono); letter-spacing: 1px; }
.path-visual { height: 120px; margin: 24px 0 19px; position: relative; display: flex; align-items: center; justify-content: center; color: var(--accent-ink); }
.path-visual svg { width: 66px; height: 66px; stroke-width: 1; }
.path-visual pre { font-size: 13px; line-height: 1.7; color: var(--muted); }
.path-visual pre span { color: var(--accent-ink); }
.path-visual .browser-frame { width: 210px; border: 1px solid var(--line-strong); padding: 15px; font-family: var(--mono); font-size: 12px; }
.path-visual .terminal-frame { width: 230px; border: 1px solid var(--line-strong); padding: 14px 18px; }
.path-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 13px; }
.path-card :is(h2,h3) { font-size: 26px; letter-spacing: -.8px; margin-bottom: 10px; line-height: 1.2; }
.path-card p { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.path-footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: auto; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.path-footer span:last-child { color: var(--accent-ink); }
.tag { display: inline-flex; align-items: center; padding: 4px 7px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 2px; font: 9px/1.4 var(--mono); letter-spacing: .15px; color: var(--muted); white-space: nowrap; }
.tag-green { background: var(--accent-wash); color: var(--accent-ink); border-color: #11c28a30; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.resource-card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); background: var(--surface); min-width: 0; transition: border-color .2s; }
.resource-card:hover { border-color: var(--line-strong); }
.resource-card-top { display: flex; align-items: center; gap: 11px; margin-bottom: 25px; }
.resource-icon { width: 37px; height: 37px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-raised); font: 600 12px var(--mono); color: var(--text); flex-shrink: 0; }
.resource-icon img { width: 23px; height: 23px; object-fit: contain; }
.resource-provider { font: 10px var(--mono); color: var(--muted); }
.save-button { display: inline-flex; justify-content: center; align-items: center; width: 32px; height: 32px; padding: 0; margin-left: auto; border: none; color: var(--dim); background: transparent; border-radius: 3px; }
.save-button svg { width: 16px; height: 16px; }
.save-button:hover { color: var(--text); background: var(--surface-raised); }
.save-button[aria-pressed='true'] { color: var(--accent-ink); }
.save-button[aria-pressed='true'] svg { fill: #11c28a25; }
.resource-card :is(h2,h3) { font-size: 18px; line-height: 1.35; letter-spacing: -.4px; margin: 13px 0 9px; }
.resource-card p { font-size: 13px; line-height: 1.65; color: var(--muted); margin-bottom: 22px; }
.resource-card-footer { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 17px; border-top: 1px solid var(--line); font-size: 10px; font-family: var(--mono); color: var(--dim); }
.resource-card .limits { margin-top: -8px; font-size: 11px; line-height: 1.6; color: var(--muted); }

/* Terminal and AI learning: real interaction belongs inside the shell. */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: center; }
.feature-split h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.17; margin-bottom: 20px; }
.feature-split p { font-size: 14px; line-height: 1.8; color: var(--muted); }
.feature-split .button { margin-top: 14px; }
.terminal-window { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 3px; overflow: hidden; box-shadow: 8px 8px 0 var(--accent-wash); }
.terminal-titlebar { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: var(--surface-raised); border-bottom: 1px solid var(--line); font: 10px var(--mono); color: var(--muted); }
.terminal-titlebar .dots, .terminal-dots { display: flex; gap: 5px; }
.terminal-titlebar .dots i, .terminal-dots i { width: 6px; height: 6px; border: 1px solid var(--dim); border-radius: 50%; }
.terminal-body { padding: 25px 22px; min-height: 255px; font: 12px/1.9 var(--mono); overflow-wrap: anywhere; }
.terminal-line { margin-bottom: 11px; }
.prompt { color: var(--accent-ink); margin-right: 8px; }
.terminal-output { color: var(--muted); font-size: 11px; line-height: 1.9; margin: 8px 0 20px; white-space: pre-wrap; }
.terminal-output strong { color: var(--text); font-weight: 500; }
.terminal-cursor { display: inline-block; width: 7px; height: 14px; vertical-align: -2px; background: var(--accent); }
.ai-guide-list { border-top: 1px solid var(--line); }
.guide-row { display: flex; align-items: center; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.guide-row:hover .guide-content :is(h2,h3) { color: var(--accent-ink); }
.guide-icon { display: grid; place-items: center; width: 41px; height: 41px; flex-shrink: 0; color: var(--accent-ink); border: 1px solid var(--line); background: var(--surface); }
.guide-content { flex: 1; min-width: 0; }
.guide-content :is(h2,h3) { font-size: 18px; line-height: 1.35; letter-spacing: -.3px; margin-bottom: 5px; transition: color .2s; }
.guide-content p { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 0; }
.guide-row > svg { width: 18px; height: 18px; color: var(--dim); }
.guide-content .tag { margin-bottom: 7px; }
.cheat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cheat-card { border: 1px solid var(--line); background: var(--surface); padding: 23px; display: flex; flex-direction: column; min-width: 0; transition: border-color .2s; }
.cheat-card:hover { border-color: var(--accent); }
.cheat-card :is(h2,h3) { font-size: 20px; letter-spacing: -.5px; margin: 14px 0 8px; }
.cheat-card p { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.cheat-preview { background: var(--bg); border: 1px solid var(--line); padding: 17px; margin: 4px 0 20px; overflow: auto; }
.cheat-preview pre { font: 10px/1.9 var(--mono); color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.cheat-preview .green { color: var(--accent-ink); }
.cheat-card .text-link { margin-top: auto; }
.contribute-banner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 40px 0; }
.contribute-banner h2 { font-size: 36px; margin-bottom: 11px; line-height: 1.2; }
.contribute-banner p { color: var(--muted); font-size: 14px; margin: 0; }
.contribute-banner .button { flex-shrink: 0; }

/* Library and content pages share the same readable working surface. */
.page-heading { padding: 48px 0 33px; }
.breadcrumb { display: flex; align-items: center; gap: 9px; font: 10px var(--mono); color: var(--dim); margin-bottom: 30px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-ink); }
.page-title h1 { max-width: 780px; }
.page-title h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.08; margin: 13px 0 18px; font-weight: 500; }
.page-title p { color: var(--muted); font-size: 16px; line-height: 1.75; margin-bottom: 0; }
.toolbar { padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 25px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.search-field { position: relative; display: flex; align-items: center; gap: 10px; min-width: 230px; width: 320px; max-width: 100%; border: 1px solid var(--line); background: var(--surface); padding: 10px 13px; }
.search-field svg { width: 16px; height: 16px; color: var(--muted); }
.search-field input { width: 100%; min-width: 0; background: transparent; border: 0; color: var(--text); font: 12px/1.6 var(--mono); outline-offset: 7px; }
.search-field input::placeholder { color: var(--dim); }
.filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filter-button { background: transparent; border: 1px solid transparent; color: var(--muted); font: 10px var(--mono); padding: 9px 12px; border-radius: 2px; min-height: 34px; }
.filter-button:hover { background: var(--surface-raised); color: var(--text); }
.filter-button.active, .filter-button[aria-pressed='true'] { border-color: var(--line-strong); background: var(--surface-raised); color: var(--text); }
.results-count { margin: 0 0 20px; font: 10px var(--mono); color: var(--dim); }
.result-meta { font: 10px var(--mono); color: var(--dim); }
.page-content { padding-bottom: 80px; min-height: 50vh; }
.empty-state { grid-column: 1 / -1; padding: 60px 25px; text-align: center; border: 1px dashed var(--line-strong); }
.empty-state h2, .empty-state h3 { font-size: 23px; margin: 0 0 12px; }
.empty-state p { color: var(--muted); font-size: 14px; max-width: 460px; margin: 0 auto 22px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 58px; align-items: start; padding: 28px 0 80px; }
.detail-main { min-width: 0; }
.detail-main > h2 { font-size: 28px; margin: 25px 0 16px; }
.detail-main > p { color: var(--muted); }
.detail-sidebar { position: sticky; top: 108px; padding: 24px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.detail-sidebar :is(h2,h3) { font: 11px var(--mono); margin-bottom: 20px; }
.detail-sidebar p { color: var(--muted); font-size: 12px; }
.detail-sidebar .button { width: 100%; margin-top: 14px; }
.detail-sidebar small { color: var(--dim); font: 10px/1.6 var(--mono); display: block; margin-top: 13px; }
.step-list { padding: 0; margin: 0; list-style: none; }
.step-item { display: flex; gap: 20px; padding: 25px 0; border-top: 1px solid var(--line); }
.step-item:last-child { border-bottom: 1px solid var(--line); }
.step-number { display: grid; place-items: center; width: 31px; height: 31px; flex-shrink: 0; font: 11px var(--mono); color: var(--accent-ink); border: 1px solid var(--line); }
.step-copy { flex: 1; min-width: 0; }
.step-copy :is(h2,h3) { font-size: 20px; margin: 0 0 8px; line-height: 1.35; letter-spacing: -.4px; }
.step-copy p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.check-label { display: inline-flex; align-items: center; gap: 10px; font: 10px var(--mono); color: var(--muted); cursor: pointer; margin-top: 15px; }
.check-label input { width: 15px; height: 15px; accent-color: var(--accent); margin: 0; }
.code-block { position: relative; margin: 15px 0 25px; background: var(--surface); border: 1px solid var(--line); }
.code-block pre { padding: 23px 70px 23px 23px; font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--accent-ink); overflow-x: auto; }
.code-block code { font-size: inherit; }
.copy-button { position: absolute; top: 9px; right: 9px; background: var(--surface-raised); border: 1px solid var(--line); color: var(--muted); padding: 6px 8px; border-radius: 2px; font: 10px var(--mono); }
.copy-button:hover { color: var(--text); border-color: var(--line-strong); }
.guide-step { padding: 28px 0; border-top: 1px solid var(--line); }
.guide-step h2, .guide-step h3 { font-size: 24px; line-height: 1.3; letter-spacing: -.6px; margin: 0 0 12px; }
.guide-step p { font-size: 14px; color: var(--muted); line-height: 1.85; }
.guide-step .code-block { margin-bottom: 0; }
.progress-track { height: 4px; background: var(--line); overflow: hidden; margin: 15px 0; }
.progress-fill { height: 100%; background: var(--accent); transition: width .25s; }
.cheat-item { border-top: 1px solid var(--line); padding: 22px 0; }
.cheat-item h2, .cheat-item h3 { font-size: 18px; margin-bottom: 8px; }
.cheat-item p { color: var(--muted); font-size: 13px; }
.cheat-item .code-block { margin-bottom: 10px; }
.notice { border-left: 2px solid var(--accent); padding: 13px 18px; background: var(--accent-wash); color: var(--muted); font-size: 13px; margin: 22px 0; }

/* The command palette is a useful terminal, not decoration. */
.command-dialog { width: min(600px, calc(100vw - 32px)); max-height: min(650px, calc(100dvh - 80px)); padding: 0; margin: 13vh auto auto; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); border-radius: 5px; box-shadow: 0 25px 100px #00000080; }
.command-dialog::backdrop { background: #030805b3; backdrop-filter: blur(5px); }
.dialog-top { display: flex; gap: 13px; padding: 18px 20px; align-items: center; border-bottom: 1px solid var(--line); }
.dialog-top > svg { color: var(--accent-ink); }
.dialog-top input { background: none; border: 0; padding: 5px 0; color: var(--text); width: 100%; min-width: 0; font: 14px var(--mono); }
.dialog-top input::placeholder { color: var(--dim); }
.close-dialog { background: var(--surface-raised); color: var(--muted); border: 1px solid var(--line); padding: 5px 7px; font: 9px var(--mono); border-radius: 2px; }
.dialog-results { padding: 8px; max-height: 390px; overflow-y: auto; }
.command-option { display: flex; width: 100%; align-items: center; gap: 12px; padding: 12px; color: var(--text); background: none; border: none; border-radius: 2px; text-align: left; font-size: 14px; }
.command-option:hover, .command-option:focus, .command-option.selected { background: var(--surface-raised); }
.command-option svg { width: 16px; height: 16px; color: var(--accent-ink); }
.command-option small { margin-left: auto; font: 9px var(--mono); color: var(--dim); }
.dialog-footer { display: flex; gap: 18px; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--dim); font: 9px var(--mono); }
.dialog-footer kbd { color: var(--muted); border: 1px solid var(--line); padding: 1px 4px; }
#toast, .toast { position: fixed; z-index: 120; bottom: 25px; left: 50%; transform: translate(-50%, 15px); background: var(--surface-raised); border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); padding: 12px 20px; font: 11px/1.6 var(--mono); color: var(--text); box-shadow: 0 8px 30px var(--shadow); opacity: 0; pointer-events: none; max-width: calc(100vw - 32px); transition: opacity .18s, transform .18s; }
#toast.visible, .toast.visible { opacity: 1; transform: translate(-50%, 0); }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { padding-block: 32px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px 48px; }
.footer-brand { grid-row: 1 / 3; }
.footer-brand .brand { min-height: 44px; }
.footer-brand p { color: var(--muted); font-size: .875rem; line-height: 1.7; margin: 8px 0 0; }
.footer-brand .footer-motto { margin-top: 6px; color: var(--dim); font: .75rem/1.7 var(--mono); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0 12px; font-size: .875rem; }
.footer-link-group { display: inline-flex; align-items: center; gap: inherit; }
.footer-separator { color: var(--dim); }
.footer-links a, .footer-contact a, .footer-policies a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 5px; }
.footer-links a { color: var(--text); }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0 18px; }
.footer-contact h2 { margin: 0; color: var(--dim); font: .75rem/1.7 var(--mono); letter-spacing: 0; }
.footer-contact a { color: var(--accent-ink); font-size: .875rem; text-decoration: underline; overflow-wrap: anywhere; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; color: var(--dim); font: .75rem/1.7 var(--mono); }
.footer-bottom p { margin: 0; }
.footer-policies { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0 24px; }
.footer-links a:hover, .footer-policies a:hover { color: var(--accent-ink); text-decoration: underline; }
.view-transition { animation: view-in .2s ease-out both; }
@keyframes view-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }


@media (max-width: 1120px) {
  .header-inner { gap: 22px; padding-inline: 24px; }
  .desktop-nav { gap: 15px; }
  .desktop-nav a { font-size: 10px; }
  .brand-text { font-size: 13px; }
  .feature-split { gap: 35px; }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .container { padding-inline: 40px; }
  .header-inner { gap: 16px; }
  .brand-text { font-size: 14px; }
  .desktop-nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .resource-glyph { width: 48px; height: 48px; font-size: 16px; border-radius: 9px; }
  .resource-glyph img { width: 25px; height: 25px; }
  .resource-caption { font-size: 8px; }
  .section { padding-block: 64px; }
  .path-card { padding: 24px; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cheat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-split { grid-template-columns: 1fr; gap: 32px; }
  .terminal-window { max-width: 640px; width: 100%; }

  .detail-layout { gap: 28px; grid-template-columns: minmax(0, 1fr) 240px; }
  .detail-sidebar { padding: 19px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .footer-brand { grid-row: auto; }
  .footer-links, .footer-contact { justify-content: flex-start; }
  .footer-inner, .footer-bottom { padding-inline: 40px; }
}
@media (max-width: 600px) {
  .container { padding-inline: 22px; }
  .header-inner { padding-inline: 17px; }
  .brand-symbol svg { width: 25px; height: 25px; }
  .brand { gap: 8px; }
  .brand-text { font-size: 12px; letter-spacing: -.5px; }
  .header-actions { gap: 2px; }
  .saved-nav { display: none; }
  .icon-button { width: 44px; height: 44px; }
  .search-trigger { min-width: 34px; padding: 0; }
  .search-trigger kbd { display: none; }
  .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .button { font-size: 10px; gap: 8px; padding: 12px 15px; }
  .resource-glyph { width: 41px; height: 41px; font-size: 13px; border-radius: 8px; }
  .resource-glyph img { width: 22px; height: 22px; }
  .resource-caption { font-size: 7px; }
  .section { padding-block: 48px; }
  .section-heading { grid-template-columns: 1fr; margin-bottom: 25px; gap: 17px; }
  .section-heading h2 { font-size: 29px; }
  .section-heading p { font-size: 13px; }
  .section-index { font-size: 9px; margin-bottom: 10px; }
  .section-link { font-size: 10px; }
  .path-grid, .resource-grid, .cheat-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .path-card { padding: 22px; }
  .path-visual { height: 94px; margin: 20px 0; }
  .path-card :is(h2,h3) { font-size: 24px; }
  .path-card p { font-size: 13px; }
  .resource-card { padding: 22px; }
  .resource-card-top { margin-bottom: 19px; }
  .resource-card :is(h2,h3) { font-size: 20px; }
  .resource-card p { font-size: 14px; }
  .feature-split h2 { font-size: 32px; }
  .feature-split p { font-size: 13px; }
  .terminal-body { padding: 21px 17px; font-size: 11px; }
  .terminal-output { font-size: 10px; }
  .guide-row { gap: 13px; padding: 20px 0; }
  .guide-content :is(h2,h3) { font-size: 17px; }
  .guide-content p { font-size: 11px; }
  .guide-icon { width: 35px; height: 35px; }
  .contribute-banner { flex-direction: column; align-items: flex-start; gap: 24px; padding: 20px 0; }
  .contribute-banner h2 { font-size: 30px; }
  .contribute-banner p { font-size: 13px; }
  .page-heading { padding-top: 32px; }
  .breadcrumb { font-size: 9px; margin-bottom: 23px; }
  .page-title h1 { font-size: 39px; }
  .page-title p { font-size: 14px; }
  .toolbar { align-items: stretch; gap: 15px; padding: 18px 0; }
  .search-field { width: 100%; }
  .search-field input { font-size: 14px; }
  .filters { gap: 5px; }
  .filter-button { padding: 9px 10px; font-size: 10px; }
  .detail-layout { grid-template-columns: 1fr; gap: 26px; padding-top: 12px; padding-bottom: 50px; }
  .detail-sidebar { position: static; order: -1; padding: 20px; }
  .detail-sidebar .button { width: auto; }
  .step-item { gap: 13px; padding: 24px 0; }
  .step-copy :is(h2,h3) { font-size: 19px; }
  .step-copy p { font-size: 13px; }
  .code-block pre { padding: 44px 17px 18px; font-size: 11px; }
  .guide-step h2, .guide-step h3 { font-size: 23px; }
  .guide-step p { font-size: 13px; }
  .footer-inner { gap: 16px; padding: 24px 22px; }
  .footer-links { gap: 0 5px; }
  .footer-contact { gap: 0 14px; }
  .footer-bottom { padding: 16px 22px; gap: 12px; }
  .footer-policies { gap: 0 18px; }
  .dialog-top { padding: 16px; gap: 10px; }
  .dialog-top input { font-size: 13px; }
  .command-option { font-size: 13px; }
  .command-option small { font-size: 8px; }
  .dialog-footer { font-size: 8px; padding: 11px 16px; gap: 12px; }
}
@media (max-width: 360px) {
  .brand-text { font-size: 11px; }
  .header-inner { gap: 8px; padding-inline: 13px; }
  .footer-links { gap: 0 4px; font-size: .8125rem; }
}
@media (pointer: coarse) {
  .icon-button, .save-button, .filter-button, .copy-button, .close-dialog { min-width: 44px; min-height: 44px; }
  .header-actions { gap: 2px; }
  .check-label { min-height: 44px; }
  .search-field input, .dialog-top input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  :root, body[data-theme='dark'], body[data-theme='light'] { --bg: #fff; --surface: #fff; --surface-raised: #f4f4f4; --text: #111; --muted: #333; --dim: #444; --line: #ccc; --accent-ink: #006b49; }
  body { background: white; color: black; font-size: 11pt; }
  .site-header, .site-footer, .toolbar, .copy-button, .detail-sidebar, .command-dialog, #toast, .breadcrumb, .page-title .button, .save-button { display: none !important; }
  .container { width: 100%; padding: 0; }
  .detail-layout { display: block; padding: 0; }
  .page-heading { padding: 0 0 20px; }
  .page-title h1 { font-size: 26pt; }
  .page-title p { font-size: 11pt; }
  .code-block, .cheat-item, .guide-step, .step-item { break-inside: avoid; }
  .code-block pre { padding: 12px; font-size: 9pt; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 8pt; overflow-wrap: anywhere; }
}
