/* getpipewright.dev: what the site adds to base.css (the Pipewright page's original styles). */
:root { --font-mono: 'JetBrains Mono', 'Courier New', monospace; }
code { font-family: var(--font-mono); font-size: 0.86em; }
::selection { background: rgba(0,212,255,0.25); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--indigo); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ── brand ── */
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand-text { font-size: 1.22rem; letter-spacing: -0.035em; }
.brand:hover .mark rect { filter: drop-shadow(0 0 6px rgba(251,191,36,0.8)); }
.links a[aria-current="page"] { color: var(--white); }
.links a[aria-current="page"]::after { content: ''; display: block; height: 2px; margin-top: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--indigo-light), var(--cyan)); }
@media (max-width: 1220px) { .links a[aria-current="page"]::after { display: none; } }

/* ── landing hero ── */
.hero.home { padding: 116px 0 40px; text-align: left; }
.hero.home .container { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero.home h1 { margin: 1.3rem 0 1.1rem; max-width: 600px; font-size: clamp(2.4rem, 4.6vw, 3.7rem); }
.hero.home p.sub { margin: 0; max-width: 540px; font-size: 1.06rem; }
.hero.home .actions { justify-content: flex-start; }
.install { margin-top: 1.4rem; display: inline-flex; align-items: center; gap: 10px; max-width: 100%; font-family: var(--font-mono); font-size: 0.8rem; color: #C9D4F2; background: #060A11; border: 1px solid var(--line); border-radius: 10px; padding: 0.55rem 0.6rem 0.55rem 0.9rem; }
.install span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.install span::before { content: '$ '; color: var(--slate-dim); }
.copy { flex: none; border: 1px solid var(--line); background: var(--navy-card); color: var(--slate); border-radius: 7px; font: 500 0.72rem var(--font-body); padding: 0.28rem 0.6rem; cursor: pointer; }
.copy:hover { color: var(--white); border-color: var(--slate-dim); }
.copy.done { color: var(--green); border-color: rgba(16,217,140,0.5); }
.trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 1.4rem; font-size: 0.78rem; color: var(--slate); }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* the hero machine: YAML on the left becomes a governed run on the right */
.machine { position: relative; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(17,24,39,0.92), rgba(13,21,36,0.92)); box-shadow: 0 40px 100px rgba(0,0,0,0.45), 0 0 0 1px rgba(79,70,229,0.08); overflow: hidden; }
.machine-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--navy-card); }
.machine-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--slate-dim); }
.machine-bar span { margin-left: 8px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--slate); }
.machine-bar b { margin-left: auto; font: 600 0.64rem var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.machine-bar b::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.machine-body { display: grid; grid-template-columns: 1fr; }
.yaml { margin: 0; padding: 14px 18px 10px; font-size: 0.74rem; line-height: 1.7; min-height: 214px; border-bottom: 1px solid var(--line); background: #060A11; }
.yaml .ln { display: block; opacity: 0; transform: translateX(-4px); transition: opacity 0.25s, transform 0.25s; }
.yaml .ln.on { opacity: 1; transform: none; }
.yaml .cursor { display: inline-block; width: 7px; height: 13px; background: var(--cyan); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.dag { padding: 16px 16px 12px; }
.dag svg { width: 100%; height: auto; display: block; }
.dag .edge { fill: none; stroke: var(--slate-dim); stroke-width: 1.5; }
.dag .edge.lit { stroke: url(#edgegrad); }
.dag .step rect { fill: var(--navy); stroke: var(--slate-dim); stroke-width: 1.2; transition: stroke 0.3s, fill 0.3s; }
.dag .step text { fill: var(--slate); font: 600 10.5px var(--font-display); text-anchor: middle; transition: fill 0.3s; }
.dag .step.run rect { stroke: var(--cyan); fill: rgba(0,212,255,0.1); }
.dag .step.run text, .dag .step.ok text { fill: var(--white); }
.dag .step.ok rect { stroke: rgba(16,217,140,0.7); fill: rgba(16,217,140,0.07); }
.dag .step.gate rect { stroke: rgba(251,191,36,0.55); }
.dag .step.gate.run rect { stroke: var(--amber); fill: rgba(251,191,36,0.12); }
.dag .step.gate.ok rect { stroke: var(--amber); fill: rgba(251,191,36,0.1); }
.dag .pulse { fill: var(--cyan); filter: drop-shadow(0 0 4px var(--cyan)); }
.dag-log { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--slate); min-height: 1.2em; }
.dag-log b { color: var(--green); font-weight: 500; }
.dag-log .who { color: var(--amber); }

/* gaps: without and with */
.gaps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gap { border: 1px solid var(--line); border-radius: 16px; background: var(--navy-card); padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 12px; transition: border-color 0.25s, transform 0.25s; }
.gap:hover { border-color: rgba(0,212,255,0.3); transform: translateY(-2px); }
.gap .n { font: 700 0.72rem var(--font-display); color: var(--slate-dim); letter-spacing: 0.1em; }
.gap .without { font-size: 0.86rem; color: var(--slate); padding-left: 22px; position: relative; }
.gap .without::before { content: '✕'; position: absolute; left: 0; top: 0; color: var(--red); font-weight: 700; font-size: 0.78rem; }
.gap h3 { font-family: var(--font-display); font-size: 1.02rem; letter-spacing: -0.01em; }
.gap .with { font-size: 0.86rem; color: #C9D4F2; padding-left: 22px; position: relative; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: auto; }
.gap .with::before { content: '✓'; position: absolute; left: 0; top: 12px; color: var(--green); font-weight: 700; font-size: 0.78rem; }

/* how it works: four steps with a code panel each */
.steps4 { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.steps4 ol { list-style: none; display: grid; gap: 8px; counter-reset: s; }
.steps4 li button { width: 100%; text-align: left; display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; padding: 0.85rem 0.95rem; border-radius: 12px; border: 1px solid transparent; background: none; color: var(--slate); font: inherit; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.steps4 li button .num { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 700 0.8rem var(--font-display); color: var(--cyan); border: 1px solid var(--slate-dim); background: var(--navy); }
.steps4 li button b { color: var(--white); font: 600 0.98rem var(--font-display); }
.steps4 li button small { font-size: 0.8rem; line-height: 1.45; }
.steps4 li button:hover { background: rgba(17,24,39,0.6); }
.steps4 li button[aria-selected="true"] { background: var(--navy-card); border-color: rgba(0,212,255,0.28); }
.steps4 li button[aria-selected="true"] .num { background: linear-gradient(135deg, var(--indigo), #0891B2); color: #fff; border-color: transparent; }
.steps4 li button.gate .num { color: var(--amber); }
.steps4 li button.gate[aria-selected="true"] .num { background: var(--amber); color: var(--navy); }
.step-panel { display: none; }
.step-panel.on { display: block; }
.step-panel .term pre { min-height: 280px; }
.step-panel p.note { margin-top: 12px; font-size: 0.86rem; color: var(--slate); }

/* audience cards */
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--navy-card); padding: 22px; text-decoration: none; transition: border-color 0.25s, transform 0.25s; overflow: hidden; }
.card:hover { border-color: rgba(0,212,255,0.35); transform: translateY(-2px); }
.card .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(0,212,255,0.08); color: var(--cyan); }
.card .ic svg { width: 20px; height: 20px; }
.card h3 { font: 700 1.02rem var(--font-display); letter-spacing: -0.01em; }
.card p { font-size: 0.85rem; color: var(--slate); line-height: 1.55; }
.card .go { margin-top: auto; font-size: 0.8rem; color: var(--cyan); }

/* runs where you do */
.where { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.where > div { border: 1px solid var(--line); border-radius: 16px; background: var(--navy-card); padding: 24px; }
.where h3 { font: 700 1.15rem var(--font-display); margin-bottom: 6px; }
.where p { color: var(--slate); font-size: 0.9rem; }
.stack { margin-top: 16px; display: grid; gap: 6px; }
.stack div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; font-size: 0.82rem; padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(8,12,20,0.5); }
.stack div span:first-child { color: var(--slate); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.same { text-align: center; margin-top: 18px; font-size: 0.88rem; color: var(--slate); }
.same code { color: var(--cyan); }

/* enterprise band */
.band { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid rgba(99,102,241,0.35); background: radial-gradient(ellipse 60% 80% at 0% 0%, rgba(79,70,229,0.28), transparent 60%), radial-gradient(ellipse 50% 70% at 100% 100%, rgba(0,212,255,0.14), transparent 60%), var(--navy-card); padding: 44px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.band h2 { margin: 0.4rem 0 0.8rem; }
.band p { color: var(--slate); }
.band .ticks { margin-top: 1rem; }
.band .browser img { display: block; width: 100%; height: auto; }

/* open source band */
.oss { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.repo-cards { display: grid; gap: 10px; margin-top: 1.4rem; }
.repo { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--navy-card); text-decoration: none; transition: border-color 0.2s; }
.repo:hover { border-color: rgba(0,212,255,0.35); }
.repo svg { width: 22px; height: 22px; color: var(--slate); }
.repo b { font: 600 0.92rem var(--font-display); display: block; }
.repo small { color: var(--slate); font-size: 0.78rem; }
.repo em { font-style: normal; font-size: 0.7rem; color: var(--green); border: 1px solid rgba(16,217,140,0.4); border-radius: 999px; padding: 0.1rem 0.5rem; }

/* learn: tutorial cards */
.learn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.learn a { display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--navy-card); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.learn a:hover { border-color: rgba(0,212,255,0.35); transform: translateY(-2px); }
.learn .k { grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font: 700 0.9rem var(--font-display); color: var(--cyan); background: rgba(0,212,255,0.08); }
.learn b { font: 600 0.95rem var(--font-display); }
.learn small { color: var(--slate); font-size: 0.8rem; line-height: 1.5; }

/* sub-page hero */
.page-hero { position: relative; padding: 136px 0 56px; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(139,156,182,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(139,156,182,0.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 80% at 30% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 0%, #000 30%, transparent 75%); }
.page-hero::after { content: ''; position: absolute; left: -10%; top: -20%; width: 760px; height: 480px; pointer-events: none; background: radial-gradient(ellipse at center, rgba(79,70,229,0.2), rgba(0,212,255,0.05) 45%, transparent 70%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.1; letter-spacing: -0.035em; margin: 0.9rem 0 1rem; max-width: 820px; }
.page-hero h1 .grad, .grad { background: linear-gradient(90deg, var(--indigo-light), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p.sub { color: var(--slate); font-size: 1.04rem; max-width: 680px; }
.page-hero .actions { justify-content: flex-start; }
.page-enterprise .page-hero::after { background: radial-gradient(ellipse at center, rgba(99,102,241,0.32), rgba(0,212,255,0.06) 45%, transparent 70%); }
.crumbs { font-size: 0.78rem; color: var(--slate); }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--white); }

/* page in-section nav (sticky chips) */
.subnav { position: sticky; top: 64px; z-index: 50; background: rgba(8,12,20,0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(139,156,182,0.08); }
.subnav .container { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a { flex: none; font-size: 0.8rem; color: var(--slate); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.8rem; }
.subnav a:hover, .subnav a.on { color: var(--white); border-color: rgba(0,212,255,0.4); }
section[id] { scroll-margin-top: 120px; }

/* architecture figure */
.arch { border: 1px solid var(--line); border-radius: 16px; background: #FFFFFF; padding: 14px; }
.arch img { display: block; width: 100%; height: auto; border-radius: 8px; }
.arch-cap { margin-top: 12px; font-size: 0.86rem; color: var(--slate); }
.arch-switch { display: flex; gap: 6px; margin-bottom: 14px; }

/* release notes */
.rel { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); }
.rel:first-of-type { border-top: 0; }
.rel-meta b { display: block; font: 700 1.6rem var(--font-display); letter-spacing: -0.02em; }
.rel-meta span { color: var(--slate); font-size: 0.84rem; }
.rel-meta .latest { display: inline-block; margin-top: 8px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); background: var(--cyan); border-radius: 999px; padding: 0.12rem 0.55rem; }
.rel-body > p { color: var(--slate); max-width: 720px; }
.rel-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; margin-top: 1.2rem; }
.rel-list li { font-size: 0.88rem; color: var(--slate); padding-left: 18px; position: relative; }
.rel-list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 2px; background: var(--cyan); }
.rel-list li.fix::before { background: var(--amber); }
.rel-list b { color: var(--white); font-weight: 600; }
.rel h3 { font: 600 1rem var(--font-display); margin: 1.8rem 0 0.2rem; }

/* release index beside the What's new hero */
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: end; }
.hero-split > * { min-width: 0; }
.rel-index { border: 1px solid var(--line); border-radius: 16px; background: var(--navy-card); padding: 10px 0 0; }
.rel-index a { display: grid; grid-template-columns: 64px 1fr; gap: 2px 14px; padding: 12px 22px; text-decoration: none; color: inherit; border-top: 1px solid var(--line); }
.rel-index a:first-child { border-top: 0; }
.rel-index a:hover { background: rgba(0,212,255,0.05); }
.rel-index b { grid-row: span 2; font: 700 1.1rem var(--font-display); letter-spacing: -0.02em; color: var(--white); }
.rel-index span { font-size: 0.88rem; color: var(--white); }
.rel-index small { font-size: 0.76rem; color: var(--slate); }
.rel-index a.now b { color: var(--cyan); }
.rel-index .rel-pip { margin: 6px 0 0; padding: 12px 22px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--slate); border-radius: 0 0 16px 16px; background: rgba(0,0,0,0.18); overflow-x: auto; white-space: nowrap; }
.rel-index .rel-pip code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }

/* the free book */
.book-hero { align-items: center; }
.book-cover { justify-self: end; width: 100%; max-width: 330px; height: auto; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(139,156,182,0.15); }
@media (max-width: 960px) { .book-cover { justify-self: start; max-width: 240px; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.mailcard { border: 1px solid var(--line); border-radius: 16px; background: var(--navy-card); padding: 28px; }
.mailcard a.big { display: inline-block; font: 700 1.4rem var(--font-display); color: var(--cyan); text-decoration: none; margin: 0.4rem 0 1rem; }

/* ── site footer ── */
footer.site { border-top: 1px solid rgba(139,156,182,0.1); padding: 56px 0 28px; background: linear-gradient(180deg, transparent, rgba(13,21,36,0.6)); }
footer.site .container { display: block; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 28px; }
.foot-brand p { font-size: 0.84rem; color: var(--slate); margin-top: 0.8rem; max-width: 280px; }
.foot-brand .foot-ver a { color: var(--cyan); text-decoration: none; }
footer.site h4 { font: 600 0.78rem var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 0.8rem; }
footer.site ul { list-style: none; display: grid; gap: 0.5rem; }
footer.site ul a { font-size: 0.84rem; color: var(--slate); text-decoration: none; }
footer.site ul a:hover { color: var(--white); }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(139,156,182,0.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-base p, .foot-base a { font-size: 0.76rem; color: var(--slate-dim); }
.foot-base a { color: var(--slate); }

/* ── the manual ── */
main.docs { padding: 96px 0 40px; }
.docs-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; }
.docs-side { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 8px; }
.docs-side h4 { font: 600 0.7rem var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate-dim); margin: 1.4rem 0 0.5rem; }
.docs-side h4:first-child { margin-top: 0.4rem; }
.docs-side ul { list-style: none; display: grid; gap: 2px; }
.docs-side a { display: block; font-size: 0.86rem; color: var(--slate); text-decoration: none; padding: 0.32rem 0.7rem; border-radius: 7px; border-left: 2px solid transparent; }
.docs-side a:hover { color: var(--white); background: rgba(17,24,39,0.6); }
.docs-side a[aria-current="page"] { color: var(--white); background: var(--navy-card); border-left-color: var(--cyan); }
.docs-ver { margin-top: 1.4rem; font-size: 0.74rem; color: var(--slate-dim); }
.docs-ver a { color: var(--slate); }
.docs-toggle { display: none; }
.doc { max-width: 780px; min-width: 0; padding-top: 12px; }
.doc .crumbs { margin-bottom: 0.6rem; }
.doc h1 { font: 700 clamp(1.8rem, 3.2vw, 2.4rem) var(--font-display); letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 0.8rem; }
.doc .intro { font-size: 1.05rem; color: var(--slate); margin-bottom: 1.8rem; }
.doc h2 { font-size: 1.4rem; margin: 2.6rem 0 0.8rem; scroll-margin-top: 90px; }
.doc h3 { font: 600 1.05rem var(--font-display); margin: 1.8rem 0 0.5rem; }
.doc p, .doc li { color: #C3CDE0; font-size: 0.95rem; }
.doc p { margin: 0 0 1rem; }
.doc ul, .doc ol { margin: 0 0 1.1rem 1.3rem; display: grid; gap: 0.35rem; }
.doc a { color: var(--cyan); text-underline-offset: 2px; }
.doc strong { color: var(--white); }
.doc :not(pre) > code { color: #E5E9F5; background: rgba(139,156,182,0.12); border: 1px solid rgba(139,156,182,0.15); border-radius: 5px; padding: 0.05rem 0.35rem; overflow-wrap: anywhere; }
.doc pre { position: relative; background: #060A11; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 1.2rem; font-size: 0.78rem; }
.doc pre .copy { position: absolute; top: 8px; right: 8px; opacity: 0; transition: opacity 0.2s; }
.doc pre:hover .copy, .doc pre .copy:focus { opacity: 1; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; font-size: 0.86rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; color: #C3CDE0; }
.doc th { font: 600 0.8rem var(--font-display); color: var(--white); background: var(--navy-card); }
.doc td code { white-space: nowrap; }
.callout { border: 1px solid rgba(0,212,255,0.3); background: rgba(0,212,255,0.05); border-radius: 12px; padding: 14px 18px; margin: 0 0 1.4rem; }
.callout p:last-child { margin-bottom: 0; }
.callout.warn { border-color: rgba(251,191,36,0.35); background: rgba(251,191,36,0.06); }
.callout.ent { border-color: rgba(99,102,241,0.45); background: rgba(79,70,229,0.08); }
.callout b.t { display: block; font: 600 0.8rem var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan); margin-bottom: 4px; }
.callout.warn b.t { color: var(--amber); }
.callout.ent b.t { color: var(--indigo-light); }
.doc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 1.6rem; }
.doc-cards a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--navy-card); text-decoration: none; transition: border-color 0.2s; }
.doc-cards a:hover { border-color: rgba(0,212,255,0.35); }
.doc-cards b { display: block; color: var(--white); font: 600 0.95rem var(--font-display); margin-bottom: 4px; }
.doc-cards span { color: var(--slate); font-size: 0.84rem; }
.doc .goal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 1.8rem; }
.doc .goal div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: rgba(17,24,39,0.55); }
.doc .goal small { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-dim); }
.doc .goal span { font-size: 0.86rem; color: var(--white); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.pager a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--white); font: 600 0.92rem var(--font-display); }
.pager a:hover { border-color: rgba(0,212,255,0.35); }
.pager small { display: block; font: 500 0.72rem var(--font-body); color: var(--slate); margin-bottom: 2px; }
.pager .next { text-align: right; }

/* ── responsive ── */
@media (max-width: 1080px) {
  .hero.home .container { grid-template-columns: 1fr; gap: 40px; }
  .cards4 { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .gaps, .learn { grid-template-columns: 1fr 1fr; }
  .steps4, .where, .band, .oss, .contact-grid, .hero-split { grid-template-columns: 1fr; }
  .steps4 ol { grid-template-columns: 1fr 1fr; }
  .band { padding: 28px; }
  .rel { grid-template-columns: 1fr; gap: 12px; }
  .docs-wrap { grid-template-columns: 1fr; gap: 0; }
  .docs-side { position: static; max-height: none; overflow: visible; padding: 0; margin-bottom: 1.4rem; }
  .docs-toggle { display: flex; justify-content: space-between; width: 100%; font: 600 0.88rem var(--font-display); color: var(--white); background: var(--navy-card); border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 1rem; cursor: pointer; }
  .docs-toggle::after { content: '+'; color: var(--cyan); }
  .docs-toggle[aria-expanded="true"]::after { content: '−'; }
  .docs-nav { display: none; padding: 0.4rem 0.2rem; }
  .docs-nav.open { display: block; }
}
@media (max-width: 720px) {
  .gaps, .learn, .cards4, .steps4 ol, .rel-list, .doc-cards, .doc .goal { grid-template-columns: 1fr; }
  .hero.home { padding-top: 112px; }
  .yaml { font-size: 0.68rem; min-height: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stack div { grid-template-columns: 1fr; gap: 2px; }
  .install { font-size: 0.72rem; }
  .page-hero { padding-top: 112px; }
}
@media (prefers-reduced-motion: reduce) { .yaml .ln { opacity: 1; transform: none; transition: none; } .yaml .cursor { animation: none; } .gap:hover, .card:hover, .learn a:hover { transform: none; } }
/* code shows what you type: no ligatures (-- and -> stay as typed) */
pre, code, .install, .yaml, .keys span, .dag-log, .term-bar span, .machine-bar span { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
.tile .tag { display: inline-block; }
/* the hero's YAML never scrolls: long lines wrap under their key */
.yaml { overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; }
.yaml .ln { padding-left: 2ch; text-indent: -2ch; }
/* other code blocks may scroll sideways, with a thin dark bar instead of the system one */
pre { scrollbar-width: thin; scrollbar-color: var(--slate-dim) transparent; }
pre::-webkit-scrollbar { height: 8px; width: 8px; }
pre::-webkit-scrollbar-track { background: transparent; }
pre::-webkit-scrollbar-thumb { background: var(--slate-dim); border-radius: 8px; }
figure { margin: 0; }
a.arch { display: block; }
