/* owngit.app. Look A4: monochrome on grain, with one pink for the headline
   ending, terminal prompts and kept history. */
:root {
  --bg: #131314;
  --panel: #1A1A1C;
  --panel-2: #242427;
  --rule: #313135;
  --text: #F5F5F6;
  --muted: #ABABB1;
  --faint: #8C8C93;
  --brand: #F5F5F6;
  --btn-text: #111112;
  --btn-hover: #FFFFFF;
  --accent: #E4E4E7;
  --pink: #FF5CB8;
  --kept: #FF6BC1;
  --kept-bg: rgba(255, 107, 193, .13);
  --focus: #FF9AD5;
  --h1-c1: #C9C9CE;
  /* Terminals */
  --t-bg: #0C0C0D;
  --t-rule: #2A2A2E;
  --t-text: #E4E4E7;
  --t-cmd: #FFFFFF;
  --t-dim: #8E8E95;
  --t-radius: 4px;
  /* Logo: light strokes in a thin gray frame; the dots take the header color. */
  --logo-line: #EDEDED;
  --logo-frame: #5A5A5A;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --wrap: 1320px;
  --pad: clamp(20px, 5vw, 48px);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg) var(--grain); background-size: 180px 180px; color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: 3px; }
code { font-family: var(--mono); font-size: .88em; background: var(--panel-2); padding: .1em .35em; border-radius: 5px; }
pre, code { font-variant-ligatures: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--panel); color: var(--text); padding: 10px 14px; z-index: 50; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.head-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 19px; letter-spacing: -.01em; }
.logo { width: 28px; height: 28px; flex: none; }
.logo-frame { fill: none; stroke: var(--logo-frame); stroke-width: 1.6; }
.logo-lines { fill: none; stroke: var(--logo-line); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.logo-lines circle { fill: var(--bg); }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15.5px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.search { position: relative; flex: 1; max-width: 400px; margin-left: auto; }
.search input { width: 100%; height: 40px; border-radius: 999px; border: 1px solid var(--rule); background: var(--panel); color: var(--text); padding: 0 44px 0 40px; font: inherit; font-size: 15px; }
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { display: none; }
.search .glass { position: absolute; left: 14px; top: 12px; width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.search input:not(:placeholder-shown) ~ kbd { display: none; }
.search kbd { position: absolute; right: 12px; top: 9px; font: 12px/20px var(--sans); color: var(--faint); border: 1px solid var(--rule); border-radius: 5px; padding: 0 6px; }
.results { position: absolute; top: 46px; left: 0; right: 0; background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; padding: 6px; margin: 0; list-style: none; box-shadow: 0 18px 40px rgba(0,0,0,.35); max-height: min(70vh, 560px); overflow-y: auto; }
.results[hidden] { display: none; }
.results li a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 15px; line-height: 1.4; }
.results li a small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.results li a[aria-selected="true"], .results li a:hover { background: var(--panel-2); }
.results .hint { font-size: 13px; color: var(--muted); padding: 6px 10px 4px; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; gap: 2px; }
.seg a { font-size: 14px; color: var(--muted); padding: 4px 11px; border-radius: 999px; text-decoration: none; }
.seg a:hover { color: var(--text); }
.seg a[aria-current="page"] { background: var(--panel-2); color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 560; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--brand); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-quiet { color: var(--text); border-color: var(--rule); background: transparent; }
.btn-quiet:hover { background: var(--panel); }
.btn svg { width: 17px; height: 17px; }
.head-row .btn { height: 40px; padding: 0 18px; font-size: 15px; }
.search-toggle { display: none; }

/* Terminal */
.term { background: var(--t-bg); border: 1px solid var(--t-rule); border-radius: var(--t-radius); overflow: hidden; color: var(--t-text); text-align: left; }
.term-bar { display: flex; align-items: center; height: 34px; padding-inline: 14px; border-bottom: 1px solid var(--t-rule); }
.term-bar .title { flex: 1; text-align: center; font-size: 12px; letter-spacing: .04em; color: var(--t-dim); }
.term pre { margin: 0; padding: 18px 20px 20px; font: 13.5px/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.term .p { color: var(--pink); user-select: none; }
.term .c { color: var(--t-cmd); }
.term .o { color: var(--t-dim); }
.term .k { color: var(--t-text); }
.term .kept { color: var(--kept); }
.term .cursor { display: inline-block; width: .6em; height: 1.1em; background: var(--t-text); vertical-align: -2px; }
.caption { font-size: 14px; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }
.caption code { font-size: .9em; }
.fig { margin: 0; }

/* Needs and answers */
.needs { list-style: none; margin: 0; padding: 0; }
.needs li { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; padding: 24px 0; border-top: 1px solid var(--rule); }
.needs li:last-child { border-bottom: 1px solid var(--rule); }
.need-q { margin: 0; font-size: 19px; font-weight: 560; line-height: 1.4; }
.need-a { margin: 0; color: var(--muted); }
.need-a b { color: var(--text); font-weight: 600; }

/* Numbers */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; }
.num { padding: 28px 26px 26px; border-left: 1px solid var(--rule); }
.num:first-child { border-left: 0; }
.num .v { font-size: clamp(44px, 4.6vw, 62px); line-height: 1; font-weight: 640; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.num .v small { font-size: .42em; letter-spacing: 0; font-weight: 560; margin-left: .15em; color: var(--muted); }
.num .l { margin: 14px 0 2px; font-weight: 580; font-size: 16px; }
.num .n { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
/* Resource section: the heading ends in pink like the hero, and the stat
   cards sit beside the comparison with other servers. */
.sec h2 .hl { color: var(--pink); }
.light-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 48px; align-items: start; }
.light-grid .numbers { grid-template-columns: 1fr 1fr; }
.light-grid .num:nth-child(3) { border-left: 0; }
.light-grid .num:nth-child(n+3) { border-top: 1px solid var(--rule); }
.light-grid .compare { margin: 0; max-width: none; }
.num-foot { font-size: 14px; color: var(--muted); margin: 14px 0 0; max-width: 72ch; }

/* Chart */
.chart { margin: 44px 0 0; }
.chart figcaption { font-size: 17px; font-weight: 600; margin: 0 0 18px; }
.chart figcaption span + span { color: var(--muted); font-weight: 400; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; align-items: center; gap: 18px; font-size: 15px; }
.bar .track { display: flex; align-items: center; gap: 10px; }
.bar .fill { height: 12px; border-radius: 6px; background: var(--accent); min-width: 6px; }
.bar .val { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* One-line install: a real tablist, a prompt cell, the command and a copy button */
.ol { margin-top: 40px; max-width: 640px; }
.ol-full { max-width: none; margin-top: 8px; }
.ol-tabs { display: flex; flex-wrap: wrap; gap: 0 20px; margin-bottom: 10px; }
.ol-tabs button { font: 600 12.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .15em; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 1px 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.ol-tabs button:hover { color: var(--text); }
.ol-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--pink); }
.ol-tabs .badge { font: 600 10.5px/1 var(--sans); letter-spacing: .02em; text-transform: none; color: var(--muted); border: 1px solid var(--rule); border-radius: 4px; padding: 2px 4px; }
.ol-cell { display: grid; grid-template-columns: auto 1fr auto; align-items: stretch; background: var(--t-bg); border: 1px solid var(--t-rule); border-radius: var(--t-radius); overflow: hidden; }
.ol-p { padding: 15px 16px; border-right: 1px solid var(--t-rule); color: var(--pink); font: 15px/1.5 var(--mono); user-select: none; }
.ol-cmd { margin: 0; padding: 15px 18px; font: 15px/1.5 var(--mono); color: var(--t-cmd); white-space: pre-wrap; overflow-wrap: anywhere; }
.ol-cmd a { color: var(--t-cmd); text-decoration-color: var(--t-dim); }
.ol-copy { font: 600 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .15em; color: var(--t-dim); background: none; border: 0; border-left: 1px solid var(--t-rule); padding: 0 20px; cursor: pointer; min-width: 92px; }
.ol-copy:hover, .ol-copy.done { color: var(--t-text); }
.ol-copy:focus-visible { outline-offset: -4px; }
.ol-note { font-size: 14.5px; color: var(--muted); margin: 12px 0 0; max-width: 68ch; }
.then { margin-top: 30px; }
.then h3 { font-size: 17px; margin: 0 0 10px; font-weight: 600; }
.panel-note { font-size: 14.5px; color: var(--muted); margin: 22px 0 14px; }

.note { font-size: 14.5px; color: var(--muted); border-left: 2px solid var(--kept); padding: 2px 0 2px 14px; margin: 22px 0 0; max-width: 70ch; }

/* Feature sections: the text and its demo stay in view while the section scrolls by.
   The demo takes two thirds of the row. */
.feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; min-height: 92vh; }
.feature > .text { position: sticky; top: 124px; }
.feature > .demo { position: sticky; top: 88px; }
.feature .lead { font-size: 18px; }
.feature h2 { font-size: clamp(28px, 2.8vw, 38px); }
.demo { margin: 0; }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; margin-bottom: 10px; }
.demo-tabs { display: flex; gap: 0 20px; }
.demo-tabs button, .demo-kind { font: 600 12.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .15em; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 1px 9px; }
.demo-tabs button { cursor: pointer; }
.demo-tabs button:hover { color: var(--text); }
.demo-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--pink); }
.note-bar { font-size: 12.5px; color: var(--muted); text-align: right; }
.shot video { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 6px; background: var(--t-bg); cursor: pointer; }
.casts { display: grid; gap: 14px; }
/* Transcripts keep the terminal's own line breaks. The font shrinks to fit the
   recorded width (--cols) in the panel, down to 11px; below that the text scrolls sideways. */
.cast { container-type: inline-size; }
.cast .term-bar { gap: 12px; }
.cast .term-bar .title { flex: none; text-align: left; }
.cast .term-bar .note-bar { flex: 1; font-size: 11.5px; color: var(--t-dim); }
.cast pre { max-height: min(640px, calc(100vh - 230px)); overflow: auto; white-space: pre; overflow-wrap: normal;
  font-size: clamp(11px, calc((100cqi - 42px) / (var(--cols, 80) * .62)), 15px); cursor: pointer; }
.cast .hide { visibility: hidden; }
/* Like a real terminal, a long transcript scrolls without a visible bar on
   wide screens; the replay follows the newest line. Phones keep the bar for
   sideways scrolling. */
@media (min-width: 721px) {
  .cast pre { scrollbar-width: none; }
  .cast pre::-webkit-scrollbar { display: none; }
}
/* A full-screen recording always has all its rows, so its height stays put. A
   tighter line height lets box drawing and block characters join up. */
.cast.screen pre { line-height: 1.3; max-height: none; overflow-x: auto; overflow-y: hidden; }
.hero .cast pre { max-height: none; }
.cast .cursor { vertical-align: -3px; }
.term .a { color: var(--t-cmd); }
.term .b { font-weight: 700; }
.term .g { color: #9BE3B4; }
.term .r { color: #FF9C9C; }
.term .trim { color: var(--t-dim); font-style: italic; }

/* Memory comparison: a real table, with a bar behind the 100-repository value. */
.compare { margin: 48px 0 0; max-width: 820px; }
.compare figcaption { font-size: 17px; font-weight: 600; margin: 0 0 14px; }
.compare table { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 9px 12px 9px 0; border-top: 1px solid var(--rule); font-weight: 400; vertical-align: middle; }
.compare thead th { border-top: 0; color: var(--muted); font-size: 13.5px; }
.compare tbody th { white-space: nowrap; }
.compare .num-col { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); width: 1%; padding-right: 28px; }
.compare td:last-child { width: 60%; }
.cmp-track { display: flex; align-items: center; gap: 10px; }
/* --w is the bar length as a fraction of the largest value; 90px leaves room for the value. */
.cmp-fill { height: 12px; border-radius: 6px; background: var(--faint); min-width: 6px; flex: none; width: calc((100% - 90px) * var(--w)); }
.ours .cmp-fill { background: var(--pink); }
.ours th { font-weight: 600; }
.compare .val { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmp-note { font-size: 14px; color: var(--muted); margin: 12px 0 0; max-width: 72ch; }

/* Landing sections */
.sec { padding: 104px 0 0; }
.sec h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -.025em; font-weight: 640; margin: 0 0 20px; max-width: 30ch; text-wrap: balance; }
.sec h2:lang(ko) { letter-spacing: -.02em; }
.sec .lead { font-size: 19px; color: var(--muted); max-width: 64ch; margin: 0 0 32px; }
.sec p { max-width: 68ch; }
.sec .flush { margin: 0; }
.home h1 { font-size: clamp(40px, 4.4vw, 58px); line-height: 1.03; letter-spacing: -.04em; margin: 0; }
.home h1:lang(ko) { letter-spacing: -.03em; line-height: 1.12; }
h1 .l1 { color: var(--h1-c1); font-weight: 480; }
h1 .hl { color: var(--pink); font-weight: 720; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; padding: 88px 0 24px; }
/* The hero terminal is taller than its output so it balances the text column
   without leaving most of the window empty. */
.hero-demo { margin-top: 10px; }
.hero-demo .cast pre { min-height: 400px; }
.hero-p { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 44ch; margin: 26px 0 34px; line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 7px 0 7px 18px; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; font-size: 16px; }
.toc a:hover { color: var(--text); }
.toc a[aria-current="true"] { color: var(--text); border-left-color: var(--text); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }

/* Documentation */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-top: 48px; }
.side { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; padding-bottom: 24px; font-size: 15px; }
.side summary { display: none; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: block; padding: 6px 12px; margin-left: -12px; border-radius: 8px; color: var(--muted); text-decoration: none; }
.side-nav a:hover { color: var(--text); }
.side-nav a[aria-current="page"] { color: var(--text); background: var(--panel-2); font-weight: 600; }
.side-h { margin: 28px 0 6px; font-size: 13.5px; color: var(--faint); }
.side-toc a { padding: 5px 0 5px 14px; font-size: 14.5px; line-height: 1.4; }
.doc-main { min-width: 0; max-width: 78ch; }
.en-only { margin: 0 0 20px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 8px; color: var(--muted); font-size: 15px; }
.doc-src { margin: 64px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.prose { font-size: 16.5px; line-height: 1.7; overflow-wrap: break-word; }
.prose :not(pre) > code { overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h1 { font-size: clamp(34px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.03em; font-weight: 660; margin: 0 0 28px; }
.prose h2 { font-size: 26px; line-height: 1.25; letter-spacing: -.015em; font-weight: 640; margin: 64px 0 16px; }
.prose h3 { font-size: 20px; line-height: 1.3; font-weight: 620; margin: 40px 0 12px; }
.prose h4 { font-size: 17px; font-weight: 620; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 6px 0; }
.prose li > p { margin: 0 0 8px; }
.prose img { max-width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 8px; }
.prose blockquote { border-left: 2px solid var(--rule); padding: 2px 0 2px 16px; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 40px 0; }
.prose .code { position: relative; margin: 0 0 20px; }
.prose pre { margin: 0 0 20px; background: var(--t-bg); border: 1px solid var(--t-rule); border-radius: var(--t-radius); padding: 16px 18px; overflow-x: auto; font: 14px/1.6 var(--mono); color: var(--t-text); }
.prose .code pre { margin: 0; padding-right: 76px; }
.prose pre code { background: none; padding: 0; font-size: inherit; border-radius: 0; }
.code-copy { position: absolute; top: 8px; right: 8px; font: 600 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--t-dim); background: var(--t-bg); border: 1px solid var(--t-rule); border-radius: 4px; padding: 7px 9px; cursor: pointer; }
.code-copy:hover, .code-copy.done { color: var(--t-text); }
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--rule); border-radius: 8px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 9px 14px; border-top: 1px solid var(--rule); }
.prose thead th { border-top: 0; background: var(--panel); font-weight: 600; }
.notfound { padding-block: 96px; max-width: 72ch; }
.notfound h1 { font-size: 40px; letter-spacing: -.03em; margin: 0 0 20px; }

/* Footer */
.site-foot { margin-top: 128px; border-top: 1px solid var(--rule); padding: 40px 0 48px; font-size: 15px; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.foot-row .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-row .links a { color: var(--muted); }
.foot-row .built { flex-basis: 100%; margin: 0; font-size: 14px; }

/* Responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .light-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .num:nth-child(3) { border-left: 0; }
  .num:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 900px) {
  .hero, .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-demo .cast pre { min-height: 0; }
  .feature { grid-template-columns: minmax(0, 1fr); gap: 28px; min-height: 0; }
  .feature > .text, .feature > .demo { position: static; }
  .docs { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .side { position: static; max-height: none; overflow: visible; border: 1px solid var(--rule); border-radius: 10px; padding: 0; }
  .side summary { display: list-item; padding: 12px 16px; cursor: pointer; font-weight: 600; }
  .side[open] summary { border-bottom: 1px solid var(--rule); }
  .side-nav, .side-toc { padding: 10px 16px; }
  .side-nav a { margin-left: 0; }
  .side-h { margin-top: 8px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .head-row { gap: 12px; height: 60px; }
  .search { position: absolute; left: var(--pad); right: var(--pad); top: 66px; max-width: none; display: none; }
  .search.open { display: block; }
  .search-toggle { display: inline-flex; margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule); background: none; color: var(--text); align-items: center; justify-content: center; cursor: pointer; }
  .search-toggle svg { width: 17px; height: 17px; }
  .head-row .btn { padding: 0 14px; }
  .brand .word { display: none; }
  .seg a { padding: 4px 8px; }
  .sec { padding-top: 76px; }
  .hero { padding-top: 56px; }
  .needs li { grid-template-columns: 1fr; gap: 8px; }
  .num { padding: 20px 16px; }
  .bar { grid-template-columns: 1fr; gap: 6px; }
  /* On phones terminal lines wrap instead of scrolling sideways, and a
     terminal is a fixed window that follows its newest line by itself: it
     takes no touch scrolling, so a finger on it always scrolls the page. */
  .cast pre { max-height: 420px; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; overflow: hidden; }
  .cast.screen pre { height: 460px; overflow: hidden; }
  .compare td:last-child { width: 45%; }
  /* On a phone the value sits above a full-width bar. */
  .cmp-track { flex-direction: column-reverse; align-items: flex-start; gap: 6px; }
  .cmp-fill { width: calc(100% * var(--w)); height: 8px; }
  .cast .term-bar { height: auto; min-height: 34px; padding-block: 7px; }
  .compare .num-col { padding-right: 14px; }
  .home h1:lang(ko) { font-size: 32px; }
  .ol-cell { grid-template-columns: auto 1fr; }
  .ol-p { padding: 13px 12px; font-size: 13.5px; }
  .ol-cmd { padding: 13px 14px; font-size: 13.5px; }
  .ol-copy { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--t-rule); height: 40px; }
  .ol-tabs { gap: 0 16px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 23px; margin-top: 48px; }
  .prose pre { font-size: 13px; }
}
@media (prefers-reduced-motion: no-preference) {
  .term .cursor { animation: blink 1.1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }
}
