@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/saira-var.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;
}

/* OptiFinePro.com v3.1.0: dark left rail, voxel hero with a stair-stepped edge, brown pull quote (featured slot), stair-run latest feed, hub directory. */
:root {
  --rail-w: clamp(230px, 18.2vw, 300px);
  --pad: clamp(18px, 2.9vw, 44px);
  --step: 20px;
  --measure: 760px;
  --font: var(--gh-font-body, 'Saira', 'Segoe UI', system-ui, -apple-system, sans-serif);
  --font-head: var(--gh-font-heading, var(--font));
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

/* Scheme 1: the mockup palette */
body, .scheme-charcoal {
  --rail: #1b1d1c; --rail-ink: #f0f2f1; --rail-link: #a2a3a6; --search: #373737; --search-ink: #c8c8c8;
  --bg: #f8f7f3; --ink: #1f2124; --heading: #12151c; --title: #0f1218; --muted: #686865;
  --quote: #8e4d26; --link: #2e639b; --rule: #d9d9d7; --panel: #efece4;
  --btn-a: #4f9f2b; --btn-b: #3e8a21; --btn-ink: #fff;
  --foot: #6b6967; --foot-link: #47689a; --code-bg: #1b1d1c; --code-ink: #ecebe6; --focus: #2e639b;
}
.scheme-night {
  --rail: #121413; --rail-ink: #f3f1ea; --rail-link: #b4b5b2; --search: #2e302f; --search-ink: #d2d2d0;
  --bg: #2b2b2b; --ink: #e9e6df; --heading: #f6f4ee; --title: #f6f4ee; --muted: #bdb9b0;
  --quote: #ff9b3d; --link: #6ec6ff; --rule: #474747; --panel: #353535;
  --btn-a: #4f9f2b; --btn-b: #3e8a21; --btn-ink: #fff;
  --foot: #b3afa7; --foot-link: #6ec6ff; --code-bg: #1a1b1b; --code-ink: #ecebe6; --focus: #6ec6ff;
}
.scheme-grass {
  --rail: #24501a; --rail-ink: #f4f8ef; --rail-link: #cfe0c3; --search: #1a3b13; --search-ink: #dbe8d1;
  --bg: #f5efe2; --ink: #22201c; --heading: #1d1a15; --title: #1d1a15; --muted: #625b50;
  --quote: #7a4e2d; --link: #1d5a8c; --rule: #dccfb8; --panel: #ece3cf;
  --btn-a: #c86019; --btn-b: #a94f12; --btn-ink: #fff;
  --foot: #6a6256; --foot-link: #1d5a8c; --code-bg: #24501a; --code-ink: #f4f8ef; --focus: #1d5a8c;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.6; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); color: var(--heading); line-height: 1.12; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--bg); color: var(--link); border-radius: 3px; }
.skip:focus { top: 12px; }

/* ---------- shell and rail ---------- */
.shell { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(90deg, var(--rail) var(--rail-w), var(--bg) var(--rail-w)); }
.main-col { min-width: 0; display: flex; flex-direction: column; background: var(--bg); }
main { flex: 1 0 auto; }
.rail { position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; padding: 22px 21px 34px;
  background: var(--rail); color: var(--rail-ink); scrollbar-width: thin; scrollbar-color: #4a4c4b transparent; }
.brand { display: inline-block; font-size: clamp(22px, 2vw, 29px); font-weight: 800; line-height: 1.1; letter-spacing: -.01em;
  color: var(--rail-ink); text-decoration: none; }
.menu-btn { display: none; }
.rail-search { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 46px;
  margin: 26px 0 28px; padding: 0 14px; border: 0; border-radius: 4px; background: var(--search); color: var(--search-ink);
  font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
.rail-search svg { flex: none; }
.topics, .topic-links { list-style: none; margin: 0; padding: 0; }
.topic + .topic { margin-top: 20px; }
.topic-h { display: block; margin-bottom: 4px; font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--rail-ink); text-decoration: none; }
.topic-h[aria-current] { text-decoration: underline; text-decoration-color: var(--btn-a); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.topic-links { padding-left: 12px; }
.topic-links a { display: block; padding: 4px 0; font-size: 16px; line-height: 1.4; color: var(--rail-link); text-decoration: none; }
.topic-h:hover, .topic-links a:hover { color: var(--rail-ink); text-decoration: underline; }

/* ---------- stair edge ---------- */
.stairs { position: absolute; left: 0; bottom: -1px; z-index: 2; display: block; width: 100%; height: calc(var(--step) * 8); fill: var(--bg); }
.stairs-sm { height: calc(var(--step) * 4); }

/* ---------- home hero ---------- */
.hero { position: relative; height: clamp(640px, 96vh, 900px); overflow: hidden; isolation: isolate; color: #fbfbfa; }
.hero-media, .cover-media, .err-media { position: absolute; inset: 0; }
.hero-media img, .cover-media img, .err-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after, .cover-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 12, 10, .68) 0%, rgba(10, 12, 10, .44) 38%, rgba(10, 12, 10, .1) 68%, rgba(10, 12, 10, 0) 100%),
              linear-gradient(0deg, rgba(10, 12, 10, .34) 0%, rgba(10, 12, 10, 0) 42%); }
.hero-in { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: calc(var(--step) * 8 + 44px); }
.hero h1 { color: inherit; font-weight: inherit; }
.h1-display { display: block; max-width: 10.6em; font-size: clamp(42px, 5.4vw, 80px); font-weight: 800; line-height: 1.03;
  letter-spacing: -.012em; color: #fbfbfa; text-shadow: 0 2px 18px rgba(0, 0, 0, .38); }
.h1-lead { display: block; max-width: 560px; margin-top: 20px; font-size: clamp(20px, 1.85vw, 27px); font-weight: 500; line-height: 1.3;
  color: #f4f3ef; text-shadow: 0 1px 10px rgba(0, 0, 0, .45); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 64px; margin-top: 32px; padding: 0 34px;
  border-radius: 3px; background: linear-gradient(180deg, var(--btn-a), var(--btn-b)); color: var(--btn-ink);
  font-size: 24px; font-weight: 600; text-decoration: none; box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.btn:hover { filter: brightness(1.06); }

/* ---------- pull quote ---------- */
.pull { padding: 22px var(--pad) 0; }
.pull-q { max-width: 14.5em; font-size: clamp(32px, 4.7vw, 70px); font-weight: 800; line-height: 1.04; letter-spacing: -.012em; color: var(--quote); }
.pull-more { margin: 22px 0 0; }
.pull-more a { font-size: clamp(19px, 1.7vw, 24px); font-weight: 500; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- guide rows ---------- */
.latest { padding: 74px var(--pad) 36px; }
.latest > h2, .latest > h1, .related > h2 { margin-bottom: 18px; font-size: clamp(32px, 3.5vw, 50px); font-weight: 800; letter-spacing: -.01em; }
.row { display: grid; grid-template-columns: 34% minmax(0, 1fr); gap: 30px; align-items: center; padding: 15px 0; }
.row + .row { border-top: 1px solid var(--rule); }
.row-img { display: block; }
.row-img img { display: block; width: 100%; aspect-ratio: 9 / 4; object-fit: cover; border-radius: 2px; }
.row-txt h3 { margin: 0 0 10px; font-size: clamp(19px, 1.8vw, 26px); font-weight: 700; line-height: 1.2; }
.row-txt h3 a { color: var(--title); text-decoration: none; }
.row-txt h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.row-txt p { margin: 0; font-size: clamp(16px, 1.36vw, 19.5px); line-height: 1.45; color: var(--muted); }

/* date line: downloads-page date (06.10.2026) in bold brown, a brown pixel square, then the hub */
.meta { display: flex; flex-wrap: wrap; align-items: center; margin-top: 10px; font-size: 15px; line-height: 1.4; }
.meta time { font-weight: 700; color: var(--quote); font-variant-numeric: tabular-nums; }
.meta time + .hub-ln::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px; background: var(--quote); vertical-align: middle; }
.hub-ln { color: var(--link); font-weight: 500; text-decoration: none; }
.hub-ln:hover { text-decoration: underline; text-underline-offset: 3px; }
.pull-q a { color: inherit; text-decoration: none; }
.pull-q a:hover { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }
.pull .meta { margin-top: 16px; font-size: 16px; }

/* ---------- latest feed: a descending stair run traced by a brown pixel line ---------- */
.run { --tread: 28px; --line: 4px; --gap: 26px; }
.run > * { position: relative; margin-left: calc(var(--i, 0) * var(--tread)); padding-left: var(--gap); }
.run > :nth-child(2) { --i: 1; } .run > :nth-child(3) { --i: 2; } .run > :nth-child(4) { --i: 3; }
.run > :nth-child(5) { --i: 4; } .run > :nth-child(6) { --i: 5; } .run > :nth-child(7) { --i: 6; }
.run > :nth-child(8) { --i: 7; } .run > :nth-child(9) { --i: 8; }
.run > * + * { border-top: 1px solid var(--rule); }
.run > article::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--line); background: var(--quote); }
.run > * + *::after { content: ""; position: absolute; top: -3px; left: calc(-1 * var(--tread)); width: calc(var(--tread) + var(--line));
  height: var(--line); background: var(--quote); }
.run .row { padding: 16px 0 16px var(--gap); }
.step { padding: 16px 0 16px var(--gap); }
.step h3 { max-width: 34em; margin: 0; font-size: clamp(19px, 1.65vw, 24px); font-weight: 700; line-height: 1.22; }
.step h3 a { color: var(--title); text-decoration: none; }
.step h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.step .meta { margin-top: 8px; }
.run-more { margin: 0; padding-top: 18px; padding-bottom: 4px; }
.run > .run-more { border-top-color: transparent; }
.run > .run-more::after { content: none; }
.run-more a { font-size: clamp(18px, 1.5vw, 21px); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- guides by topic: two-column directory, block-icon swatches, zebra title rows ---------- */
.dir-sec { padding: 46px var(--pad) 30px; }
.dir-sec > h2 { margin-bottom: 30px; font-size: clamp(32px, 3.5vw, 50px); font-weight: 800; letter-spacing: -.01em; }
.dir { columns: 2; column-gap: clamp(32px, 4.4vw, 64px); }
.dir-hub { break-inside: avoid; padding-bottom: 38px; }
.dir-head { display: flex; gap: 16px; align-items: flex-start; }
.dir-ico { flex: none; display: block; width: 64px; height: 64px; }
.dir-ico img { display: block; width: 64px; height: 64px; object-fit: cover;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px),
    calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px), 0 8px, 8px 8px); }
.dir-txt { min-width: 0; padding-top: 2px; }
.dir-txt h3 { font-size: clamp(22px, 1.9vw, 27px); font-weight: 800; line-height: 1.15; letter-spacing: -.005em; }
.dir-txt h3 a { color: var(--title); text-decoration: none; }
.dir-txt h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.dir-txt p { margin: 6px 0 0; font-size: 16px; line-height: 1.45; color: var(--muted); }
.dir-list { margin: 16px 0 0; padding: 0; list-style: none; }
.dir-list li { padding: 9px 14px 10px; font-size: 17px; line-height: 1.35; }
.dir-list li:nth-child(odd) { background: var(--panel); }
.dir-list a { display: block; color: var(--title); font-weight: 600; text-decoration: none; }
.dir-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dir-list time { display: block; margin-top: 3px; font-size: 14px; font-weight: 700; color: var(--quote); font-variant-numeric: tabular-nums; }
.dir-tasks li { color: var(--ink); }

/* ---------- other topics (tag pages) ---------- */
.other-topics { padding: 8px var(--pad) 34px; }
.other-topics h2 { margin-bottom: 10px; font-size: 22px; font-weight: 800; }
.other-topics ul { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; font-size: 17px; line-height: 1.9; }
.other-topics li + li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 12px 2px; background: var(--quote); vertical-align: middle; }
.other-topics a { font-weight: 600; text-decoration: none; }
.other-topics a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.site-foot { padding: 46px var(--pad) 40px; font-size: 15px; line-height: 1.5; color: var(--foot); }
.foot-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 28px; }
.foot-line p, .foot-legal { margin: 0; }
.foot-legal { margin-top: 10px; }
.foot-nav ul { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; }
.foot-nav a { color: var(--foot-link); text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }

/* ---------- article ---------- */
.post-head { max-width: calc(var(--measure) + 2 * var(--pad)); margin: 0 auto; padding: 56px var(--pad) 34px; }
.crumbs { margin-bottom: 18px; font-size: 15px; color: var(--muted); }
.crumbs a { color: var(--link); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.post-head h1 { font-size: clamp(34px, 4.2vw, 60px); font-weight: 800; line-height: 1.05; letter-spacing: -.012em; }
.lede { margin: 18px 0 0; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; }
.byline { margin: 16px 0 0; font-size: 15px; color: var(--muted); }
.byline a { color: var(--link); }
.post-feature { position: relative; margin: 0 0 44px; }
.post-feature img { display: block; width: 100%; height: clamp(280px, 50vh, 540px); object-fit: cover; }
.post-feature figcaption { padding: 10px var(--pad) 0; font-size: 15px; color: var(--muted); }
.gh-content { padding: 0 var(--pad); font-size: 19px; line-height: 1.65; }
.gh-content > * { max-width: var(--measure); margin: 0 auto 1.1em; }
.gh-content > h2 { margin-top: 1.7em; margin-bottom: .5em; font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; }
.gh-content > h3 { margin-top: 1.4em; margin-bottom: .4em; font-size: clamp(21px, 1.9vw, 26px); font-weight: 700; }
.gh-content ol, .gh-content ul { padding-left: 1.3em; }
.gh-content li + li { margin-top: .35em; }
.gh-content blockquote { padding-left: 22px; border-left: 4px solid var(--quote); font-size: 21px; }
.gh-content .small { font-size: 15px; color: var(--muted); }
.gh-content .kg-width-wide { max-width: 1060px; }
.gh-content .kg-width-full { max-width: none; margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); }
.kg-image-card img { display: block; width: 100%; border-radius: 2px; }
.kg-width-full img { border-radius: 0; }
.gh-content figcaption { margin-top: 10px; padding: 0 2px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.gh-content pre { padding: 16px 18px; overflow-x: auto; border-radius: 3px; background: var(--code-bg); color: var(--code-ink); font-size: 15px; line-height: 1.5; }
code, kbd, pre { font-family: var(--mono); }
.gh-content :not(pre) > code { padding: 1px 5px; border-radius: 3px; background: var(--panel); font-size: .86em; }
kbd { display: inline-block; padding: 0 7px; border: 1px solid var(--rule); border-bottom-width: 3px; border-radius: 3px; background: var(--panel); font-size: .8em; line-height: 1.5; }
.gh-content .kg-callout-card { display: flex; gap: 14px; padding: 18px 22px; border-left: 10px solid var(--btn-a); border-radius: 0; background: var(--panel); color: var(--ink); }
.kg-callout-text b { color: var(--heading); }

/* tables (version matrix, Forge pairs, editor tables) */
.vt-wrap { overflow-x: auto; }
.vt, .gh-content table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.4; }
.vt th, .vt td, .gh-content table th, .gh-content table td { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.vt thead th, .gh-content table thead th { border-bottom: 2px solid var(--heading); font-size: 15px; font-weight: 700; color: var(--heading); }
.vt tbody th { font-weight: 700; color: var(--heading); white-space: nowrap; }
.vt small { display: block; font-size: 14px; color: var(--muted); }
.vt .none { color: var(--muted); }
.vt-dense th, .vt-dense td { padding-top: 8px; padding-bottom: 8px; font-size: 16px; }

.post-foot { max-width: calc(var(--measure) + 2 * var(--pad)); margin: 30px auto 0; padding: 0 var(--pad); }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 30px; padding: 0; list-style: none; font-size: 16px; }
.author-box { display: flex; gap: 18px; align-items: flex-start; padding-top: 26px; border-top: 1px solid var(--rule); font-size: 16px; color: var(--muted); }
.author-box p { margin: 0; }
.ab-name { margin-bottom: 4px !important; font-size: 19px; font-weight: 700; }
.ab-name a { color: var(--heading); text-decoration: none; }
.ab-px { flex: none; width: 56px; height: 56px; background: var(--quote);
  clip-path: polygon(0 25%, 25% 25%, 25% 0, 100% 0, 100% 75%, 75% 75%, 75% 100%, 0 100%); }
.ab-img { flex: none; width: 56px; height: 56px; border-radius: 2px; object-fit: cover; }
.related { padding: 60px var(--pad) 20px; }

/* ---------- tag cover and version matrix ---------- */
.cover { --step: 14px; position: relative; height: clamp(360px, 52vh, 520px); overflow: hidden; isolation: isolate; }
.cover-in { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: calc(var(--step) * 8 + 26px); max-width: 860px; }
.cover-in h1 { font-size: clamp(40px, 5vw, 72px); font-weight: 800; line-height: 1.04; letter-spacing: -.012em; color: #fbfbfa; text-shadow: 0 2px 16px rgba(0, 0, 0, .38); }
.cover-in p { max-width: 600px; margin: 14px 0 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; color: #f4f3ef; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.vt-full { padding: 26px var(--pad) 8px; }
.vt-full h2 { max-width: 22em; font-size: clamp(26px, 2.7vw, 38px); font-weight: 800; color: var(--quote); }
.vt-full > p { max-width: var(--measure); margin: 14px 0 24px; }
.vt-full .vt { max-width: 980px; }
.hub-list { padding-top: 60px; }
.list-top { padding-top: 56px; }
.author-head { padding: 56px var(--pad) 0; }
.author-head h1 { font-size: clamp(34px, 3.8vw, 54px); font-weight: 800; }
.author-head p { max-width: var(--measure); color: var(--muted); }

/* ---------- pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 17px; }
.pagination a { font-weight: 600; }
.page-number { color: var(--muted); }

/* ---------- error page ---------- */
.err { --step: 16px; position: relative; height: clamp(240px, 38vh, 400px); overflow: hidden; }
.err-in { max-width: 900px; padding: 30px var(--pad) 60px; }
.err-in h1 { font-size: clamp(36px, 4vw, 56px); font-weight: 800; }
.err-in > p { margin: 14px 0 22px; font-size: 20px; }
.err-hubs { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0 0 28px; padding: 0; list-style: none; font-size: 19px; font-weight: 600; }
.err-search { max-width: 420px; margin: 0; }

/* ---------- mobile: rail becomes a top bar ---------- */
@media (max-width: 860px) {
  :root { --step: 12px; --pad: 16px; }
  .shell { display: block; background: var(--bg); }
  .rail { position: sticky; top: 0; z-index: 30; height: auto; overflow: visible; padding: 0 16px; }
  .rail-bar { display: flex; align-items: center; justify-content: space-between; height: 58px; }
  .brand { font-size: 22px; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -8px;
    padding: 0; border: 0; background: transparent; color: var(--rail-ink); cursor: pointer; }
  .bars, .bars::before, .bars::after { display: block; width: 24px; height: 3px; background: currentColor; }
  .bars { position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -8px; }
  .bars::after { top: 8px; }
  .nav-open .bars { background: transparent; }
  .nav-open .bars::before { top: 0; transform: rotate(45deg); }
  .nav-open .bars::after { top: 0; transform: rotate(-45deg); }
  .rail-nav { display: none; }
  .nav-open .rail-nav { display: block; position: fixed; top: 58px; left: 0; right: 0; bottom: 0; overflow-y: auto; padding: 6px 16px 40px; background: var(--rail); }
  .nav-open, .nav-open body { overflow: hidden; }
  .rail-search { margin: 10px 0 26px; }
  .hero { height: clamp(540px, 80vh, 700px); }
  .hero-media::after { background: linear-gradient(0deg, rgba(10, 12, 10, .74) 0%, rgba(10, 12, 10, .5) 50%, rgba(10, 12, 10, .2) 100%); }
  .hero-in { bottom: calc(var(--step) * 8 + 26px); }
  .h1-display { font-size: clamp(36px, 10.8vw, 48px); }
  .h1-lead { margin-top: 14px; font-size: 19px; }
  .btn { display: flex; width: 100%; height: 58px; margin-top: 24px; font-size: 24px; }
  .pull { padding-top: 18px; }
  .pull-q { font-size: clamp(30px, 8.8vw, 38px); }
  .latest { padding-top: 48px; }
  .latest > h2, .latest > h1, .related > h2 { font-size: 32px; }
  .row { grid-template-columns: 38% minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; }
  .row-txt h3 { margin-bottom: 6px; font-size: 18px; }
  .row-txt p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 15px; }
  .meta { margin-top: 8px; font-size: 14px; }
  .meta time + .hub-ln::before { margin: 0 8px 2px; }
  .run { --tread: 10px; --gap: 14px; }
  .run .row, .step { padding-top: 14px; padding-bottom: 14px; }
  .step h3 { font-size: 18px; }
  .dir-sec { padding-top: 34px; }
  .dir-sec > h2 { margin-bottom: 22px; font-size: 32px; }
  .dir-hub { padding-bottom: 30px; }
  .dir-ico, .dir-ico img { width: 52px; height: 52px; }
  .dir-ico img { clip-path: polygon(6px 0, calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px),
    calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px), 0 6px, 6px 6px); }
  .dir-txt h3 { font-size: 22px; }
  .dir-txt p { font-size: 15px; }
  .dir-list li { padding: 9px 12px; font-size: 16px; }
  .foot-line { flex-direction: column; }
  .cover { --step: 9px; height: clamp(320px, 56vh, 440px); }
  .cover-media::after { background: linear-gradient(0deg, rgba(10, 12, 10, .72) 0%, rgba(10, 12, 10, .4) 60%, rgba(10, 12, 10, .2) 100%); }
  .err { --step: 10px; }
  .post-head { padding-top: 34px; }
  .gh-content { font-size: 18px; }
  .gh-content .kg-callout-card { padding: 16px; border-left-width: 8px; }
  .vt, .gh-content table { font-size: 15px; }
}
@media (max-width: 640px) {
  .dir { columns: 1; }
  .row .meta { flex-direction: column; align-items: flex-start; gap: 2px; }
  .row .meta time + .hub-ln::before { content: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Published topic availability: labels stay visible without dead links. */
a[data-empty-topic] { cursor: default; text-decoration: none; }

/* Keep wide article tables independently scrollable. */
.gh-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gh-content table:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Home and topic navigation */
.home-hero {
  --step: clamp(3px, .42vw, 6px);
  height: auto;
}
.home-hero .hero-media::after {
  background: linear-gradient(90deg, rgba(14,20,16,.87), rgba(14,20,16,.52) 56%, rgba(14,20,16,.15)),
              linear-gradient(0deg, rgba(14,20,16,.46), transparent 75%);
}
.home-hero .hero-in {
  position: relative;
  inset: auto;
  padding: clamp(26px, 3.1vw, 48px) var(--pad) calc(var(--step) * 8 + 14px);
}
.home-hero .h1-display {
  font-size: clamp(34px, 4.5vw, 68px);
  font-weight: 800;
  max-width: none;
}
.home-hero-edition { display: inline-block; }
.home-hero .h1-lead { margin: 11px 0 0; max-width: 42em; font-size: clamp(16px, 1.53vw, 22px); }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 20px; margin-top: 15px; }
.home-actions .btn {
  width: auto;
  min-height: 44px;
  height: auto;
  margin: 0;
  padding: 8px 15px;
  font-size: 16px;
  background: #e9efda;
  color: #1c341a;
}
.hero-link { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-size: 16px; font-weight: 650; text-underline-offset: 4px; }
.home-actions :focus-visible, .hub-crumb a:focus-visible { outline-color: #fff; }
.hero-link:hover, .hub-crumb a:hover { text-decoration-thickness: 2px; }
.rail-nav .topic + .topic { margin-top: 13px; }
.rail-nav .topic-h { padding: 5px 0; font-size: 17px; }
.version-finder { padding: 10px var(--pad) 50px; scroll-margin-top: 18px; }
.version-finder-inner {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  gap: 24px 44px;
  padding: clamp(20px, 3.1vw, 44px);
  background: var(--panel);
  border-top: 4px solid var(--btn-b);
}
.version-finder h2 { font-size: clamp(27px, 3.2vw, 46px); font-weight: 750; letter-spacing: -.018em; }
.version-finder-copy p { margin: 12px 0; line-height: 1.35; }
.version-finder-copy a, .version-source a { font-weight: 650; text-underline-offset: 3px; }
.version-finder form label { display: block; margin-bottom: 8px; font-weight: 700; }
.version-form-row { display: flex; flex-wrap: wrap; gap: 8px; }
.version-form-row input, .version-form-row button {
  min-height: 48px;
  border: 1px solid var(--rule);
  padding: 8px 12px;
  border-radius: 2px;
  font: inherit;
  font-size: 16px;
}
.version-form-row input { flex: 1 1 145px; min-width: 0; color: var(--ink); background: var(--bg); }
.version-form-row button { background: #28492a; color: white; cursor: pointer; font-weight: 700; }
.version-form-row button:hover { background: #1d3920; }
.version-result { font-size: 16px; line-height: 1.45; }
.version-result:not(:empty) { margin-top: 14px; }
.version-builds { list-style: none; margin: 6px 0 0; padding: 0; }
.version-builds li { padding: 8px 0; border-top: 1px solid var(--rule); }
.version-builds li > strong, .version-builds li > span { display: block; }
.version-build-links a + a { margin-left: 15px; }
.version-source { margin: 10px 0 0; font-size: 16px; }
.home-topics,
.home-featured,
.home-latest {
  margin-inline: var(--pad);
}
.home-section h2 {
  margin-bottom: 14px;
  font-size: clamp(26px, 3.05vw, 40px);
  font-weight: 800;
  letter-spacing: -.015em;
}
.home-topics {
  margin-top: clamp(16px, 2vw, 27px);
  scroll-margin-top: 18px;
}
.home-featured { margin-block: clamp(26px, 3vw, 40px); }
.home-topic-grid,
.home-guide-grid {
  display: grid;
  gap: clamp(10px, 1.3vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-topic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-topic-grid:empty { display: none; }
.home-topic,
.home-guide {
  display: grid;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--title);
  background: var(--panel);
  text-decoration: none;
}
.home-topic {
  grid-template-rows: auto 1fr;
}
.home-topic img,
.home-guide img {
  display: block;
  width: 100%;
  object-fit: cover;
}
.home-topic img { height: clamp(55px, 6vw, 88px); }
.home-topic-copy {
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 8px 11px 9px;
}
.home-topic-name,
.home-guide h3 { font-weight: 750; line-height: 1.2; }
.home-topic-name { font-size: clamp(15px, 1.45vw, 21px); }
.home-topic-detail,
.home-guide-topic {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
}
.home-topic:hover,
.home-guide:hover { border-color: var(--link); }
.home-topic:hover .home-topic-name,
.home-guide:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.home-featured .home-guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-featured .home-guide { grid-template-rows: auto 1fr; }
.home-featured .home-guide img { height: clamp(84px, 9vw, 132px); }
.home-guide-copy { padding: 11px 13px 13px; }
.home-guide h3 { margin-top: 3px; font-size: clamp(17px, 1.7vw, 23px); }
.home-template .version-finder { padding-bottom: clamp(24px, 3vw, 42px); }
.home-latest { margin-bottom: clamp(36px, 5vw, 64px); }
.home-section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 18px;
  margin-bottom: 14px;
}
.home-section-title h2 { margin: 0; }
.home-more { font-size: 16px; font-weight: 700; text-underline-offset: 4px; }
.home-latest .home-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-latest .home-guide {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.home-latest .home-guide:has(img) { grid-template-columns: minmax(0, 108px) minmax(0, 1fr); }
.home-latest .home-guide img { height: 100%; min-height: 76px; }
.home-latest .home-guide-copy { padding: 9px 11px; }
.home-latest .home-guide h3 { font-size: clamp(16px, 1.42vw, 20px); }
.hub-cover {
  display: grid;
  align-items: end;
  height: auto;
  min-height: clamp(285px, 39vw, 490px);
}
.hub-cover .cover-in {
  position: relative;
  inset: auto;
  padding: 32px var(--pad) calc(var(--step) * 8 + 14px);
}
.hub-crumb { margin-bottom: 8px; font-size: 16px; }
.hub-crumb a { color: white; text-underline-offset: 3px; }
.hub-start { margin: 8px var(--pad) 16px; max-width: 1100px; }
.hub-start h2 { font-size: clamp(25px, 3vw, 40px); line-height: 1.15; }
.hub-start > p { max-width: 68ch; margin: 12px 0 22px; line-height: 1.5; }
.hub-start-routes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr));
  gap: 12px;
}
.hub-start-routes:empty { display: none; }
.hub-start-routes li { padding: 14px 16px; background: var(--panel); border-top: 2px solid var(--rule); }
.hub-start-routes p { margin: 6px 0 0; color: var(--muted); font-size: 16px; line-height: 1.4; }
.hub-start-link { font-weight: 700; text-underline-offset: 4px; }
.version-directory { margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--rule); }
.version-directory summary {
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
  font-weight: 700;
}
.version-directory ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 6px;
}
.version-directory button {
  width: 100%;
  min-height: 44px;
  padding: 8px 4px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--bg);
  color: var(--link);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
}
.version-directory button:hover { text-decoration: underline; }
.author-head img { display: block; margin-bottom: 18px; width: 88px; height: 88px; object-fit: cover; }
.hub-list { padding-top: clamp(28px, 4vw, 48px); }

@media (max-width: 860px) {
  .version-finder, .home-topics { scroll-margin-top: 70px; }
}
@media (max-width: 620px) {
  .home-hero { --step: 2.5px; }
  .home-hero .hero-in { padding-top: 22px; }
  .home-hero .hero-media img { object-position: 61% center; }
  .home-actions { column-gap: 13px; }
  .home-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
  .home-topic img { height: clamp(33px, 10vw, 54px); }
  .home-topic-copy { gap: 1px; padding: 5px 9px; }
  .home-topics > h2, .home-featured > h2 { margin-bottom: 10px; }
  .home-featured { margin-top: 17px; }
  .home-featured .home-guide-grid,
  .home-latest .home-guide-grid { grid-template-columns: minmax(0, 1fr); }
  .home-featured .home-guide { grid-template-rows: auto; align-items: center; }
  .home-featured .home-guide:has(img) { grid-template-columns: 104px minmax(0, 1fr); }
  .home-featured .home-guide img { height: 100%; min-height: 84px; }
  .version-finder { padding-top: 6px; padding-bottom: 32px; }
  .version-finder-inner { grid-template-columns: 1fr; }
  .hub-cover .cover-in { padding-bottom: calc(var(--step) * 8 + 9px); }
  .hub-cover h1 { font-size: clamp(32px, 10vw, 44px); }
}
.gh-content :not(pre) > code { overflow-wrap: anywhere; }
.gh-content .bio-portrait {
  width: min(176px, 32%);
  margin: 0 0 16px 24px;
  float: right;
}
.gh-content .bio-portrait img { display: block; width: 100%; height: auto; }
@media (max-width: 620px) {
  .gh-content .bio-portrait { margin-left: 14px; }
}

@media (max-width: 640px) {
  .post-head { padding-top: 24px; padding-bottom: 22px; }
  .post-feature { margin-bottom: 26px; }
  .post-feature img { height: auto; aspect-ratio: 2 / 1; }
}
.post-jumps { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 14px 0 0; }
.post-jumps a { display: inline-flex; align-items: center; min-height: 44px; color: var(--link); font-weight: 650; }
.version-archive-link { margin: 16px var(--pad) 0; }
