:root {
  --ink: #f2f2ef;
  --muted: #9c9b95;
  --line: #343432;
  --paper: #191918;
  --paper-bright: #222220;
  --night: #10100f;
  --night-soft: #1d1d1b;
  --orange: #c76132;
  --orange-soft: #382218;
  --orange-bright: #df7945;
  --sidebar: 248px;
  --topbar: 76px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 24px); }
body { margin: 0; background: var(--paper); color: var(--ink); }
::selection { background: var(--orange); color: white; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }

.skip-link {
  position: fixed; z-index: 100; left: 16px; top: -60px; padding: 12px 18px;
  background: var(--orange); color: white; border-radius: 8px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.topbar {
  position: fixed; z-index: 30; inset: 0 0 auto 0; height: var(--topbar); display: flex;
  align-items: center; justify-content: space-between; padding: 0 30px; background: rgba(25, 25, 24, .93);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(14px);
}
.wordmark { min-width: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.wordmark-mark {
  flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; padding: 3px; overflow: hidden; background: #242422; border: 1px solid var(--line); border-radius: 10px;
}
.wordmark-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.wordmark > span:last-child { min-width: 0; }
.wordmark strong, .wordmark small { display: block; }
.wordmark strong { font-size: 15px; letter-spacing: -.02em; }
.wordmark small { margin-top: 2px; color: var(--muted); font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .12em; }
.topbar-meta { display: flex; align-items: center; gap: 24px; font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; }
.status-dot { color: var(--muted); }
.status-dot i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(199, 97, 50, .16); }
.skill-link { padding: 10px 12px; background: var(--orange); color: white; border-radius: 8px; text-decoration: none; }
.skill-link:hover { background: #da7443; }
.model-switch { padding-bottom: 3px; color: var(--muted); text-decoration: none; border-bottom: 1px solid #5b5b57; }
.model-switch:hover { color: var(--ink); border-color: var(--ink); }
.source-link { text-decoration: none; border-bottom: 1px solid var(--ink); }

.page-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); padding-top: var(--topbar); }
.sidebar {
  position: sticky; top: var(--topbar); align-self: start; height: calc(100vh - var(--topbar)); padding: 38px 24px 26px 30px;
  border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow-y: auto;
}
.eyebrow, .section-number, .mini-label, .formula-label, .kicker, .edition {
  font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .12em;
}
.eyebrow { margin: 0 0 26px; color: var(--orange); }
.toc { display: flex; flex-direction: column; gap: 3px; }
.toc a { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 6px; padding: 10px 9px; color: #aaa9a3; text-decoration: none; font-size: 12px; border-radius: 7px; transition: .2s; }
.toc a span { font: 500 9px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: #6f6e69; }
.toc a:hover { color: var(--ink); background: rgba(255,255,255,.045); }
.toc a.active { color: var(--ink); background: var(--paper-bright); box-shadow: inset 3px 0 0 var(--orange); }
.toc a.active span { color: var(--orange); }
.sidebar-note { margin-top: auto; padding: 18px 16px; background: var(--night); color: white; border: 1px solid var(--line); border-radius: 12px; }
.sidebar-note span { color: var(--orange-bright); font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .12em; }
.sidebar-note p { margin: 11px 0 0; color: #b7b6b0; font-size: 12px; line-height: 1.55; }

main { min-width: 0; }
.section { max-width: 1160px; margin: 0 auto; padding: 100px clamp(36px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr); gap: clamp(42px, 6vw, 90px); align-items: center; min-height: calc(100vh - var(--topbar)); padding-top: 84px; padding-bottom: 84px; }
.kicker-row { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.kicker { padding: 7px 9px; color: white; background: var(--orange); }
.edition { color: var(--muted); }
.hero h1 { margin: 0; max-width: 760px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(52px, 7vw, 102px); font-weight: 400; line-height: .94; letter-spacing: -.06em; }
.hero h1 em { color: var(--orange); font-weight: 400; }
.hero-lede { max-width: 680px; margin: 30px 0 0; color: #b2b1ab; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 9px; font-size: 12px; font-weight: 750; text-decoration: none; transition: transform .2s, border-color .2s, background .2s; }
.button.primary { background: var(--orange); color: white; }
.button.secondary { border: 1px solid #555550; background: transparent; }
.button.secondary:hover { border-color: var(--orange); }
.button.skill-button { background: var(--orange-soft); color: #f1a47c; border: 1px solid #65341f; }
.button:hover { transform: translateY(-1px); }

.hero-diagram { align-self: stretch; max-height: 590px; background: var(--night); color: white; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 70px rgba(0, 0, 0, .3); }
.diagram-header { display: flex; justify-content: space-between; padding: 16px 18px; color: #9fa4af; border-bottom: 1px solid #2a2e37; font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.hero-diagram ol { display: flex; flex-direction: column; flex: 1; list-style: none; padding: 0; margin: 0; }
.hero-diagram li { flex: 1; min-height: 78px; display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; column-gap: 13px; align-content: center; padding: 15px 20px; border-bottom: 1px solid #2a2e37; }
.hero-diagram li:last-child { border-bottom: 0; }
.hero-diagram b { grid-row: 1 / 3; display: grid; place-items: center; width: 30px; height: 30px; color: white; background: var(--orange); font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; border-radius: 50%; }
.hero-diagram span { font-size: 14px; font-weight: 700; }
.hero-diagram small { margin-top: 5px; color: #8d929c; font: 500 9px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }

.stats-strip { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper-bright); border-bottom: 1px solid var(--line); }
.stats-strip article { min-height: 130px; padding: 27px 24px; border-right: 1px solid var(--line); display: flex; align-items: flex-end; gap: 13px; }
.stats-strip article:last-child { border-right: 0; }
.stats-strip strong { font-family: Georgia, "Times New Roman", serif; font-size: 45px; line-height: .85; font-weight: 400; letter-spacing: -.05em; }
.stats-strip span { color: var(--muted); font: 600 9px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .06em; }

.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .55fr); gap: 36px; align-items: end; margin-bottom: 50px; }
.section-heading .section-number { grid-column: 1 / -1; margin: 0 0 -15px; color: var(--orange); }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 64px); line-height: 1; font-weight: 400; letter-spacing: -.045em; }
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.section-heading.compact { display: block; }
.section-heading.compact .section-number { margin: 0 0 18px; }
.section-heading.compact h2 { max-width: 820px; }

.principle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.principle-card { position: relative; min-height: 250px; padding: 35px; background: var(--paper-bright); }
.principle-card h3 { max-width: 330px; margin: 45px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 400; letter-spacing: -.03em; }
.principle-card p { max-width: 440px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.card-index { position: absolute; top: 27px; right: 30px; font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.dark-card { background: var(--night); color: white; }
.dark-card p { color: #aaa9a4; }
.dark-card .card-index { color: var(--orange-bright); }
.accent-card { background: var(--orange-soft); }
.callout { display: flex; gap: 18px; align-items: flex-start; margin-top: 24px; padding: 24px 28px; border: 1px solid #6d3922; border-radius: 12px; background: #2b1d17; }
.callout-icon { flex: 0 0 30px; display: grid; place-items: center; width: 30px; height: 30px; background: var(--orange); color: white; font-weight: 800; border-radius: 50%; }
.callout strong { font-size: 13px; }
.callout p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.formula-block { padding: 34px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-bright); }
.formula-label { color: var(--muted); }
.formula { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 22px 0 17px; }
.formula span { padding: 12px 14px; background: #2c2c29; border-radius: 7px; font: 650 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.formula .formula-subject { background: var(--night); color: white; }
.formula .formula-action { background: var(--orange); color: white; }
.formula i { color: #9fa2a8; font-style: normal; }
.formula-block > p { margin: 0; color: var(--muted); font-size: 13px; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; margin-top: 44px; }
.two-column h3 { margin: 0 0 16px; font-size: 16px; }
.prompt-block { position: relative; background: var(--night); color: #e5e5e2; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.prompt-block pre { margin: 0; padding: 28px; overflow-x: auto; white-space: pre-wrap; }
.prompt-block code { font: 500 12px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; }
.copy-button { position: absolute; top: 11px; right: 11px; z-index: 2; padding: 7px 9px; border: 1px solid #444440; border-radius: 7px; background: #252522; color: #bdbcb6; font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; cursor: pointer; }
.copy-button:hover { color: white; border-color: var(--orange); }
.ordered-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.ordered-list li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.ordered-list span { color: var(--orange); font: 700 10px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.ordered-list p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.ordered-list b { color: var(--ink); }

.mapping-layout { display: grid; grid-template-columns: 1.2fr .8fr; background: var(--night); color: white; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mapping-list { padding: 18px 0; }
.mapping-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 17px 26px; border-bottom: 1px solid #292d36; }
.mapping-list > div:last-child { border-bottom: 0; }
.mapping-list code { color: var(--orange-bright); font: 700 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.mapping-list span { color: #c3c2bc; font-size: 13px; line-height: 1.5; }
.mapping-rules { padding: 34px; background: var(--orange); color: white; }
.mapping-rules .mini-label { margin: 0 0 28px; color: #2c1208; }
.mapping-rules h3 { margin: 0 0 26px; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 400; line-height: 1.1; }
.mapping-rules ul { padding: 0; margin: 0; list-style: none; }
.mapping-rules li { padding: 13px 0; border-top: 1px solid rgba(255,255,255,.35); font-size: 13px; line-height: 1.45; }
.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 24px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.do-dont > div { padding: 27px; background: var(--paper-bright); }
.do-dont span { display: inline-block; padding: 5px 7px; background: #333330; border-radius: 5px; font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.do-dont .do span { background: var(--orange); color: white; }
.do-dont p { min-height: 48px; margin: 18px 0 12px; font: 600 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.do-dont small { color: var(--muted); font-size: 11px; }
.limits-panel { margin-top: 24px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper-bright); }
.limits-panel summary { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; }
.limits-panel summary::-webkit-details-marker { display: none; }
.limits-panel summary b { color: var(--orange); font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.limits-panel[open] summary { border-bottom: 1px solid var(--line); }
.limits-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.limits-grid article { padding: 24px; border-right: 1px solid var(--line); }
.limits-grid article:last-child { border-right: 0; }
.limits-grid strong { font-size: 13px; }
.limits-grid p { min-height: 38px; margin: 12px 0; font-size: 12px; line-height: 1.5; }
.limits-grid small { color: var(--muted); font-size: 10px; line-height: 1.4; }

.syntax-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.syntax-grid article { min-height: 185px; padding: 26px; background: var(--paper-bright); }
.syntax-grid article > code { display: inline-block; padding: 10px; background: var(--night); color: var(--orange-bright); font: 700 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.syntax-grid strong { display: block; margin-top: 27px; font-size: 13px; }
.syntax-grid p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.language-note { display: grid; grid-template-columns: 1fr 1.6fr; gap: 30px; align-items: center; margin-top: 24px; padding: 23px 26px; border: 1px solid #60321f; border-left: 4px solid var(--orange); border-radius: 10px; background: var(--orange-soft); }
.language-note strong { font-size: 13px; line-height: 1.5; }
.language-note code { font: 600 11px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }

.timeline-demo { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-top: 38px; }
.timeline-track { position: absolute; left: 0; right: 0; top: 7px; display: flex; justify-content: space-between; height: 2px; background: #4a4a46; }
.timeline-track i { width: 15px; height: 15px; margin-top: -7px; background: var(--paper); border: 3px solid var(--orange); border-radius: 50%; }
.timeline-demo article { padding-right: 18px; }
.timeline-demo article > span { color: var(--orange); font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.timeline-demo b { display: block; margin: 14px 0 9px; font-size: 15px; }
.timeline-demo p { min-height: 55px; margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.timeline-demo small { display: block; padding: 11px; background: var(--paper-bright); color: #b3b2ac; border-radius: 7px; font: 600 10px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
.timing-notes { margin-top: 45px; border-top: 1px solid var(--line); }
.timing-notes p { display: grid; grid-template-columns: 150px 1fr; gap: 20px; margin: 0; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.timing-notes span { color: var(--muted); }

.workflow-tabs { display: flex; gap: 0; overflow-x: auto; border-bottom: 1px solid var(--ink); }
.workflow-tab { flex: 1 0 auto; padding: 16px 18px; border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.workflow-tab.active { background: var(--orange); color: white; }
.workflow-stage { min-height: 430px; padding: 0; background: var(--night); color: white; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; overflow: hidden; }
.workflow-content { display: grid; grid-template-columns: .7fr 1.3fr; min-height: 430px; }
.workflow-summary { padding: 38px; border-right: 1px solid #2b303a; }
.workflow-summary span { color: var(--orange-bright); font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .12em; }
.workflow-summary h3 { margin: 28px 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 400; }
.workflow-summary p { margin: 0; color: #aeb3bd; font-size: 13px; line-height: 1.65; }
.workflow-summary ul { list-style: none; padding: 0; margin: 30px 0 0; }
.workflow-summary li { padding: 11px 0; border-top: 1px solid #2b303a; color: #d2d5dc; font-size: 11px; }
.workflow-code { position: relative; padding: 38px; overflow: hidden; }
.workflow-code pre { margin: 0; overflow-x: auto; white-space: pre-wrap; }
.workflow-code code { color: #dfe2e8; font: 500 11px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }

.gallery-section { max-width: 1160px; }
.gallery-heading { grid-template-columns: 1fr auto; }
.gallery-heading > p { align-self: end; color: var(--muted); font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.gallery-heading > p span { color: var(--orange); font-size: 14px; }
.gallery-tools { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; margin-bottom: 30px; }
.search-box { flex: 1 1 260px; max-width: 430px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; background: var(--paper-bright); border: 1px solid var(--line); border-radius: 10px; }
.search-box span { color: var(--muted); font-size: 20px; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip { padding: 10px 12px; border: 1px solid #4b4b47; border-radius: 999px; background: transparent; font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
.filter-chip:hover { border-color: var(--orange); }
.filter-chip.active { background: var(--orange); color: white; border-color: var(--orange); }
.prompt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.prompt-card { position: relative; display: flex; flex-direction: column; min-height: 390px; background: var(--paper-bright); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.prompt-card:hover { transform: translateY(-3px); border-color: #63402f; box-shadow: 0 18px 40px rgba(0, 0, 0, .22); }
.prompt-card-top { display: flex; justify-content: space-between; align-items: center; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.prompt-card-top span { color: var(--orange); font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; }
.prompt-card-top small { color: var(--muted); font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.prompt-card-body { padding: 24px 20px 16px; }
.prompt-card h3 { margin: 0 0 11px; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 400; letter-spacing: -.025em; }
.prompt-card .use-case { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.prompt-preview { position: relative; flex: 1; margin: 0 20px 18px; padding: 18px; max-height: 155px; overflow: hidden; background: var(--night); color: #d8d7d2; border: 1px solid #2d2d2a; border-radius: 9px; }
.prompt-preview::after { content: ""; position: absolute; inset: auto 0 0; height: 54px; background: linear-gradient(transparent, var(--night)); pointer-events: none; }
.prompt-preview pre { margin: 0; white-space: pre-wrap; }
.prompt-preview code { font: 500 10px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }
.prompt-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding: 15px 20px; border-top: 1px solid var(--line); }
.prompt-card-footer button { border: 0; background: transparent; padding: 0; font-size: 10px; font-weight: 800; cursor: pointer; }
.prompt-card-footer button:first-child { color: var(--orange); }
.prompt-card-footer button:last-child { color: var(--muted); }
.prompt-card.expanded .prompt-preview { max-height: none; }
.prompt-card.expanded .prompt-preview::after { display: none; }
.empty-state { padding: 50px; text-align: center; color: var(--muted); border: 1px dashed #555550; border-radius: 12px; }

.diagnostic-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.diagnostic-head, .diagnostic-table article { display: grid; grid-template-columns: .8fr .8fr 1.4fr; gap: 24px; }
.diagnostic-head { padding: 13px 20px; background: var(--night); color: #9ca2ad; font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; }
.diagnostic-table article { padding: 19px 20px; border-bottom: 1px solid var(--line); background: var(--paper-bright); }
.diagnostic-table article:last-child { border-bottom: 0; }
.diagnostic-table b, .diagnostic-table p { margin: 0; font-size: 12px; line-height: 1.5; }
.diagnostic-table p { color: var(--muted); }

footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center; padding: 28px 36px 28px calc(var(--sidebar) + 36px); background: var(--night); color: #aaa9a4; border-top: 1px solid var(--line); font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; }
footer a { color: white; text-decoration: none; }
footer > a:last-child { justify-self: end; }
.footer-credit { display: flex; align-items: center; gap: 10px; }
.footer-credit span { color: #7f7e79; }
.footer-credit a { color: var(--orange-bright); }
.footer-credit a:hover { text-decoration: underline; text-underline-offset: 3px; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 28px; transform: translate(-50%, 20px); padding: 12px 16px; background: var(--orange); color: white; border-radius: 8px; font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; opacity: 0; pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Model hub */
.hub-body { background: var(--paper); color: var(--ink); }
.hub-body .topbar { background: rgba(25, 25, 24, .93); border-color: var(--line); }
.hub-body .wordmark small, .hub-body .status-dot { color: var(--muted); }
.hub-body .source-link { color: var(--ink); border-color: #5b5b57; }
.hub-body .model-switch { color: var(--muted); border-color: #5b5b57; }
.hub-body .model-switch:hover { color: white; border-color: white; }
.hub-main { min-width: 0; padding-top: var(--topbar); }
.hub-catalog { min-height: calc(100vh - var(--topbar)); padding: clamp(70px, 9vw, 130px) clamp(28px, 7vw, 110px) 110px; background: var(--paper); }
.hub-catalog > * { max-width: 1280px; margin-left: auto; margin-right: auto; }
.hub-catalog-heading { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr); gap: clamp(50px, 8vw, 130px); align-items: end; margin-bottom: 64px; }
.hub-kicker { margin: 0 0 25px; color: var(--orange-bright); font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }
.hub-catalog h1 { max-width: 900px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(58px, 7.4vw, 112px); font-weight: 400; line-height: .88; letter-spacing: -.064em; }
.hub-catalog h1 em { color: var(--orange); font-weight: 400; }
.hub-catalog-intro > p { margin: 0; color: #b5b4ae; font-size: 16px; line-height: 1.7; }
.catalog-meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font: 700 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .09em; }
.catalog-meta span { display: flex; align-items: baseline; gap: 8px; }
.catalog-meta b { color: white; font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 400; }
.catalog-meta a { color: var(--orange-bright); text-decoration: none; }
.catalog-meta a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hub-section-heading { display: grid; grid-template-columns: 1fr minmax(260px, .45fr); gap: 60px; align-items: end; margin-bottom: 54px; }
.hub-section-heading .section-number { margin: 0 0 17px; color: var(--orange); }
.hub-section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 6vw, 78px); font-weight: 400; line-height: .96; letter-spacing: -.05em; }
.hub-section-heading > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.model-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.model-card { position: relative; min-width: 0; min-height: 625px; display: flex; flex-direction: column; padding: 27px; color: var(--ink); text-decoration: none; background: var(--paper-bright); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.model-card:hover, .model-card:focus-visible { transform: translateY(-5px); border-color: var(--orange); box-shadow: 0 18px 45px rgba(0, 0, 0, .28); outline: none; }
.model-card-top { display: flex; justify-content: space-between; font: 750 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.model-card-top b { padding: 5px 7px; background: var(--orange); color: white; border-radius: 5px; font-size: 8px; }
.model-card-visual { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(150px, .65fr); min-height: 225px; margin: 25px 0 28px; color: white; background: var(--night); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.model-card-symbol { position: relative; display: grid; place-items: center; min-width: 0; overflow: hidden; font-family: Georgia, "Times New Roman", serif; font-size: clamp(70px, 8vw, 120px); letter-spacing: -.08em; }
.model-card-symbol::after { content: ""; position: absolute; width: 170px; height: 170px; border: 1px solid rgba(199, 97, 50, .35); border-radius: 50%; transform: translate(44%, 44%); }
.model-card-syntax { display: flex; flex-direction: column; justify-content: flex-end; gap: 13px; min-width: 0; padding: 24px 20px; border-left: 1px solid var(--line); background: #171715; }
.model-card-syntax span { color: #898883; font: 750 8px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .11em; }
.model-card-syntax code { color: var(--orange-bright); font: 650 10px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.minimax-card .model-card-visual { background: #231711; }
.minimax-card .model-card-symbol::after { border-color: rgba(199, 97, 50, .45); }
.minimax-card .model-card-syntax { border-color: #4c2b1d; background: #1b1512; }
.minimax-card .model-card-syntax span { color: #9d8173; }
.minimax-card .model-card-syntax code { color: var(--orange-bright); }
.model-card-copy > p { margin: 0 0 10px; color: var(--orange); font: 750 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.model-card-copy h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 43px; font-weight: 400; letter-spacing: -.045em; }
.model-card-copy > span { display: block; min-height: 66px; margin-top: 13px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.model-card ul { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 23px 0 0; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.model-card li { min-height: 60px; display: flex; align-items: center; padding: 11px 12px; border-right: 1px solid var(--line); color: #aaa9a4; font-size: 10px; line-height: 1.35; }
.model-card li:first-child { padding-left: 0; }
.model-card li:last-child { padding-right: 0; border-right: 0; }
.model-card-action { display: flex; justify-content: space-between; margin-top: auto; padding-top: 22px; font: 750 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; }
.model-card-action b { color: var(--orange); font-size: 18px; }
.catalog-footnote { display: flex; gap: 14px; align-items: center; margin-top: 24px; color: #888782; font: 650 10px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.catalog-footnote span { display: grid; place-items: center; width: 42px; height: 28px; background: #2b2b29; color: #aaa9a4; border-radius: 6px; }
.hub-skill-button { color: white; border: 1px solid #555550; }
.hub-skill-button:hover { border-color: var(--orange-bright); color: var(--orange-bright); }
.hub-skills { background: #151514; color: var(--ink); padding: 110px clamp(28px, 7vw, 110px) 125px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hub-skills > * { max-width: 1250px; margin-left: auto; margin-right: auto; }
.hub-skills .section-number { color: var(--orange); }
.agent-entry-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 20px; }
.agent-entry-grid > article { min-width: 0; min-height: 420px; padding: 34px; border: 1px solid var(--line); border-radius: 14px; }
.agent-entry-grid article > span { color: var(--orange); font: 750 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .11em; }
.agent-entry-grid h3 { margin: 40px 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: 36px; font-weight: 400; letter-spacing: -.04em; }
.agent-install-card { background: var(--night); color: white; }
.agent-install-card > span { color: var(--orange-bright) !important; }
.agent-install-card pre { margin: 0; padding: 22px; overflow-x: auto; background: #181816; border: 1px solid var(--line); border-radius: 9px; white-space: pre-wrap; }
.agent-install-card code { color: var(--orange-bright); font: 600 11px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; }
.agent-install-card p { margin: 23px 0 0; color: #aaa9a4; font-size: 11px; line-height: 1.6; }
.agent-web-card { background: var(--paper-bright); }
.agent-web-card > p { max-width: 650px; margin: -6px 0 20px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.agent-prompt-block { position: relative; }
.agent-prompt-block pre { min-height: 218px; margin: 0; padding: 48px 22px 22px; overflow: auto; background: var(--night); border: 1px solid var(--line); border-radius: 9px; white-space: pre-wrap; }
.agent-prompt-block code { color: #deddd8; font: 550 10px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.agent-copy-button { position: absolute; z-index: 2; top: 12px; right: 12px; padding: 8px 10px; color: white; background: var(--orange); border: 0; border-radius: 6px; font: 800 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.agent-copy-button:hover { background: #da7443; }
.agent-discovery-card { background: var(--paper-bright); }
.agent-discovery-wide { grid-column: 1 / -1; min-height: 0 !important; display: grid; grid-template-columns: minmax(240px, .45fr) 1fr; gap: 50px; align-items: center; }
.agent-discovery-intro > span { color: var(--orange); font: 750 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .11em; }
.agent-discovery-intro h3 { margin: 22px 0 0; }
.agent-discovery-links { display: grid; grid-template-columns: repeat(2, 1fr); }
.agent-discovery-links > a { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 17px 18px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); text-decoration: none; }
.agent-discovery-links > a:nth-child(even) { border-right: 0; }
.agent-discovery-links > a:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.agent-discovery-card b { font: 750 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.agent-discovery-card small { color: var(--muted); font-size: 10px; }
.agent-discovery-links > a:hover b { color: var(--orange); }
.skill-download-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
.skill-download-row > a { display: grid; grid-template-columns: 58px 1fr auto; gap: 18px; align-items: center; min-height: 104px; padding: 19px 22px; background: var(--paper-bright); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .2s, background .2s; }
.skill-download-row > a:hover { background: var(--orange-soft); border-color: var(--orange); }
.skill-download-row > a > span { display: grid; place-items: center; width: 52px; height: 52px; background: var(--night); color: white; font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.skill-download-row b, .skill-download-row small { display: block; }
.skill-download-row b { font-size: 13px; }
.skill-download-row small { margin-top: 6px; color: var(--muted); font: 600 9px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.skill-download-row strong { font: 750 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .06em; }
.hub-about { display: grid; grid-template-columns: .4fr 1.2fr; gap: 80px; max-width: 1250px; margin: 0 auto; padding: 120px clamp(28px, 7vw, 110px); }
.hub-about .section-number { margin: 0; color: var(--orange-bright); }
.hub-about h2 { max-width: 850px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 6vw, 76px); font-weight: 400; line-height: .98; letter-spacing: -.05em; }
.hub-footer { padding-left: clamp(28px, 7vw, 110px); }

/* MiniMax H3 guide */
.h3-page .eyebrow, .h3-page .section-number { color: var(--orange); }
.h3-page .kicker { background: var(--orange); }
.h3-page .hero h1 em { color: var(--orange); }
.h3-page .toc a.active { box-shadow: inset 3px 0 0 var(--orange); }
.h3-page .toc a.active span { color: var(--orange); }
.h3-sidebar-note span { color: var(--orange-bright); }
.h3-diagram { box-shadow: 0 24px 70px rgba(0, 0, 0, .3); }
.h3-diagram b { background: var(--orange); }
.h3-diagram li { min-height: 66px; }
.h3-accent-card { background: var(--orange-soft); }
.h3-callout { border-color: #6d3922; background: #2b1d17; }
.h3-callout .callout-icon { background: var(--orange); }
.h3-spec-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper-bright); }
.h3-spec-table > div { display: grid; grid-template-columns: minmax(150px, .32fr) 1fr; gap: 26px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.h3-spec-table > div:last-child { border-bottom: 0; }
.h3-spec-table .h3-spec-head { background: var(--night); color: white; font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .12em; }
.h3-spec-table b { font-size: 12px; }
.h3-spec-table p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.h3-stack { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper-bright); }
.h3-stack article { display: grid; grid-template-columns: 64px 1fr; border-bottom: 1px solid var(--line); }
.h3-stack article:last-child { border-bottom: 0; }
.h3-stack article > span { display: grid; place-items: center; color: var(--orange); border-right: 1px solid var(--line); font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.h3-stack article div { display: grid; grid-template-columns: minmax(220px, .55fr) 1fr; gap: 30px; align-items: center; padding: 19px 24px; }
.h3-stack b { font: 750 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.h3-stack p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.h3-template-block { margin-top: 28px; }
.h3-template-block pre { max-height: 760px; }
.reference-role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); }
.reference-role-grid article { min-height: 245px; padding: 28px; background: var(--paper-bright); }
.reference-role-grid code { display: inline-block; padding: 7px 8px; background: var(--night); color: var(--orange-bright); border-radius: 6px; font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.reference-role-grid h3 { margin: 30px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 29px; font-weight: 400; }
.reference-role-grid p { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.reference-role-grid small { color: #888782; font-size: 10px; line-height: 1.5; }
.h3-page .timeline-track i { border-color: var(--orange); }
.h3-page .timeline-demo article > span { color: var(--orange); }
.h3-example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.h3-example-card { min-width: 0; padding: 26px; background: var(--paper-bright); border: 1px solid var(--line); border-radius: 12px; }
.h3-example-card > div:first-child { display: flex; justify-content: space-between; color: var(--orange); font: 750 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .09em; }
.h3-example-card > div:first-child b { color: #888782; }
.h3-example-card h3 { margin: 28px 0 9px; font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 400; }
.h3-example-card > p { min-height: 38px; margin: 0 0 20px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.h3-example-card .prompt-block pre { height: 320px; padding: 27px 22px; }
.h3-example-card .prompt-block code { font-size: 10px; line-height: 1.7; }
.editing-contract { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 44px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); }
.editing-contract > div { min-height: 210px; padding: 27px; background: var(--paper-bright); }
.editing-contract span { display: grid; place-items: center; width: 28px; height: 28px; background: var(--orange); color: white; border-radius: 50%; font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.editing-contract h3 { margin: 35px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 400; }
.editing-contract p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.h3-edit-examples .prompt-block pre { min-height: 410px; }

@media (max-width: 1050px) {
  :root { --sidebar: 210px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-diagram { min-height: 500px; }
  .section { padding-left: 42px; padding-right: 42px; }
  .syntax-grid { grid-template-columns: repeat(2, 1fr); }
  .limits-grid { grid-template-columns: repeat(2, 1fr); }
  .limits-grid article:nth-child(2) { border-right: 0; }
  .limits-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .workflow-content { grid-template-columns: 1fr; }
  .workflow-summary { border-right: 0; border-bottom: 1px solid #2b303a; }
  .hub-catalog-heading { grid-template-columns: 1fr; gap: 35px; }
  .hub-catalog-intro { max-width: 720px; }
  .reference-role-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --topbar: 66px; }
  .topbar { padding: 0 17px; }
  .topbar-meta { gap: 12px; }
  .wordmark-mark { width: 42px; height: 42px; }
  .status-dot { display: none; }
  .skill-link { padding: 9px; font-size: 0; }
  .skill-link::after { content: "Skill ↓"; font-size: 9px; }
  .model-switch { display: none; }
  .page-shell { display: block; }
  .sidebar { position: sticky; z-index: 20; top: var(--topbar); height: auto; padding: 0; border-right: 0; border-bottom: 1px solid var(--line); background: rgba(25, 25, 24, .96); backdrop-filter: blur(12px); }
  .sidebar .eyebrow, .sidebar-note { display: none; }
  .toc { flex-direction: row; overflow-x: auto; padding: 8px 10px; }
  .toc a { flex: 0 0 auto; display: block; padding: 9px 12px; white-space: nowrap; }
  .toc a span { display: none; }
  .toc a.active { box-shadow: inset 0 -2px 0 var(--orange); }
  .section { padding: 72px 20px; }
  .hero { padding-top: 62px; }
  .hero h1 { font-size: clamp(48px, 15vw, 72px); }
  .hero-lede { font-size: 16px; }
  .hero-diagram { min-height: 480px; box-shadow: 0 18px 44px rgba(0, 0, 0, .28); }
  .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-strip article { min-width: 0; }
  .stats-strip article:nth-child(2) { border-right: 0; }
  .stats-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading, .section-heading.gallery-heading { display: block; }
  .section-heading h2 { font-size: 43px; }
  .section-heading > p:last-child { margin-top: 20px; }
  .principle-grid, .two-column, .mapping-layout, .do-dont, .prompt-grid { grid-template-columns: 1fr; }
  .principle-card { min-height: 220px; }
  .mapping-rules { order: -1; }
  .syntax-grid { grid-template-columns: 1fr; }
  .language-note { grid-template-columns: 1fr; }
  .limits-grid { grid-template-columns: 1fr; }
  .limits-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .limits-grid article:last-child { border-bottom: 0; }
  .timeline-demo { grid-template-columns: 1fr; gap: 28px; padding-top: 0; padding-left: 28px; }
  .timeline-track { inset: 0 auto 0 5px; width: 2px; height: auto; flex-direction: column; }
  .timeline-track i { margin: 0 0 0 -7px; }
  .timeline-demo p { min-height: 0; }
  .workflow-tab { padding: 14px; }
  .workflow-summary, .workflow-code { padding: 26px 20px; }
  .gallery-tools { display: block; }
  .search-box { max-width: none; margin-bottom: 14px; }
  .diagnostic-head { display: none; }
  .diagnostic-table article { grid-template-columns: 1fr; gap: 7px; }
  .diagnostic-table article p:last-child { padding-top: 7px; border-top: 1px dashed var(--line); color: var(--ink); }
  footer { grid-template-columns: 1fr auto; gap: 16px; padding: 24px 20px; }
  .footer-credit { grid-column: 1 / -1; grid-row: 2; }
  .hub-catalog { padding: 64px 20px 85px; }
  .hub-catalog h1 { font-size: clamp(54px, 16vw, 80px); }
  .hub-catalog-intro > p { font-size: 15px; }
  .catalog-meta { align-items: flex-end; }
  .hub-section-heading, .model-card-grid, .hub-about { grid-template-columns: 1fr; }
  .hub-section-heading { gap: 24px; }
  .model-card { min-height: 0; }
  .model-card-visual { grid-template-columns: 1fr; min-height: 0; }
  .model-card-symbol { min-height: 180px; }
  .model-card-syntax { min-height: 96px; border-top: 1px solid #30343e; border-left: 0; }
  .model-card-copy > span { min-height: 0; }
  .model-card ul { grid-template-columns: 1fr; }
  .model-card li, .model-card li:first-child, .model-card li:last-child { min-height: 0; padding: 11px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .model-card li:last-child { border-bottom: 0; }
  .hub-about { gap: 25px; padding: 85px 20px; }
  .hub-skills { padding: 82px 20px 95px; }
  .agent-entry-grid, .skill-download-row { grid-template-columns: 1fr; }
  .agent-entry-grid > article { min-height: auto; padding: 25px 20px; }
  .agent-entry-grid h3 { margin-top: 30px; }
  .agent-discovery-wide { grid-column: auto; grid-template-columns: 1fr; gap: 28px; }
  .agent-discovery-links { grid-template-columns: 1fr; }
  .agent-discovery-links > a, .agent-discovery-links > a:nth-child(even) { padding-left: 0; padding-right: 0; border-right: 0; }
  .agent-discovery-links > a:nth-last-child(-n+2) { border-bottom: 0; }
  .agent-discovery-links > a:last-child { border-bottom: 1px solid var(--line); }
  .skill-download-row > a { grid-template-columns: 52px 1fr; }
  .skill-download-row strong { grid-column: 2; }
  .hub-footer { padding-left: 20px; }
  .h3-diagram { box-shadow: 0 18px 44px rgba(0, 0, 0, .28); }
  .h3-spec-table > div { grid-template-columns: 1fr; gap: 8px; }
  .reference-role-grid, .h3-example-grid, .editing-contract { grid-template-columns: 1fr; }
  .h3-stack article { grid-template-columns: 46px 1fr; }
  .h3-stack article div { grid-template-columns: 1fr; gap: 8px; padding: 18px; }
  .reference-role-grid article { min-height: 210px; }
  .h3-example-card { padding: 19px; }
  .h3-example-card .prompt-block pre { height: 360px; }
  .h3-edit-examples .prompt-block pre { min-height: 0; }
}

@media (max-width: 420px) {
  .hub-body .source-link { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
