/* caret.gg: one stylesheet for every page. Warm paper, a serif for headlines, ink buttons. */

@font-face { font-family: Fraunces; font-style: normal; font-weight: 330 450; font-display: swap; src: url(/assets/fonts/fraunces.woff2) format("woff2"); }
@font-face { font-family: Fraunces; font-style: italic; font-weight: 330 450; font-display: swap; src: url(/assets/fonts/fraunces-italic.woff2) format("woff2"); }
@font-face { font-family: Geist; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/geist.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/inter.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/assets/fonts/jetbrainsmono.woff2) format("woff2"); }

:root {
  --ground: #f6f2ea;
  --ground-2: #efe9de;
  --raise: #fffdf9;
  --ink: 31 27 22;
  --text: rgb(var(--ink) / .94);
  --text2: rgb(var(--ink) / .7);
  --text3: rgb(var(--ink) / .55);
  --line: rgb(var(--ink) / .1);
  --line-2: rgb(var(--ink) / .16);
  --accent: #b5532f;
  --accent-soft: #c9714c;
  --on-accent: #fffdf9;
  --display: "Geist", "Inter", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --read: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --page: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  /* The app window in the pictures: Caret's own dark surface and copper. */
  --w-ink: 244 241 241;
  --w-body: #151515;
  --w-panel: #1b1b1b;
  --w-frame: #222120;
  --w-copper: #de9160;
  --w-green: #4dcb70;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--read); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: #b5532f38; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { flex: none; display: inline-flex; width: 18px; height: 18px; }
.ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic.fill svg { fill: currentColor; stroke: none; }

.skip { position: absolute; left: -999px; }
.skip:focus { z-index: 100; top: 16px; left: 16px; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: var(--on-accent); }
.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); padding-inline: var(--gutter); margin: 0 auto; }

h1, h2 { margin: 0; font-family: var(--serif); font-weight: 380; color: var(--text); text-wrap: balance; }
h3 { margin: 0; font-family: var(--display); font-weight: 600; color: var(--text); text-wrap: balance; letter-spacing: -.02em; font-size: 21px; line-height: 1.25; }
h1 { font-size: clamp(48px, 7.6vw, 104px); line-height: 1; letter-spacing: -.03em; }
h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -.03em; }
h1 em, h2 em { color: var(--accent); font-style: italic; font-weight: 340; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lede { margin: 0; max-width: 34em; color: var(--text2); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; text-wrap: pretty; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px; border-radius: 999px; font-family: var(--display); font-size: 15.5px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; transition: transform .2s, background .2s; }
.btn:active { transform: translateY(1px); }
.btn-ink { background: rgb(var(--ink)); color: var(--raise); box-shadow: 0 8px 20px -12px #1f1b1680; }
.btn-ink:hover { background: #3a332b; }
.btn-glass { background: rgb(var(--ink) / .06); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); }
.btn-glass:hover { background: rgb(var(--ink) / .1); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn .ic { width: 16px; height: 16px; margin-top: -2px; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { border-radius: 999px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: #f6f2ead1; -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.03em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 24px; font-family: var(--display); font-size: 14.5px; color: var(--text2); }
.nav-links a:hover { color: var(--text); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* Hero */
.hero { position: relative; padding-top: clamp(40px, 6vw, 76px); overflow: hidden; }
.hero-in { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 34px; max-width: 100%; padding: 0 6px 0 14px; border-radius: 999px; background: rgb(var(--ink) / .05); box-shadow: inset 0 0 0 1px var(--line-2); font-family: var(--display); font-size: 13.5px; color: var(--text2); }
.pill b { color: var(--text); font-weight: 500; }
.pill > span:not(.go) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill .go { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: rgb(var(--ink) / .08); }
.pill .go .ic { width: 12px; height: 12px; }
.pill:hover { background: rgb(var(--ink) / .08); }
.hero h1 em { display: block; }
.hero .sub { margin: 6px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; letter-spacing: -.01em; color: var(--text); text-wrap: balance; }
.hero .lede { max-width: 33em; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 6px; }
.hero-cta .btn { height: 52px; padding: 0 26px; font-size: 16.5px; }
.fine { font-family: var(--display); font-size: 14px; color: var(--text3); }
.stage { margin-top: clamp(40px, 5vw, 64px); }

/* The app window (a drawing of Caret, not a screenshot) */
.win { --t: rgb(var(--w-ink) / .92); --t2: rgb(var(--w-ink) / .6); --t3: rgb(var(--w-ink) / .4); --hair: rgb(var(--w-ink) / .07); display: grid; grid-template-columns: 76px 250px 1fr; height: clamp(440px, 36vw, 510px); border-radius: 16px; background: var(--w-frame); color: var(--t); font-family: var(--display); font-size: 13px; line-height: 1.35; text-align: left; overflow: hidden; box-shadow: 0 0 0 1px rgb(var(--ink) / .5), 0 40px 80px -40px #1f1b16a6, 0 12px 28px -14px #1f1b1666; user-select: none; }
.win .rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0 12px; }
.win .lights { display: flex; gap: 7px; margin-bottom: 14px; }
.win .lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.win .lights i:nth-child(2) { background: #febc2e; }
.win .lights i:nth-child(3) { background: #28c840; }
.win .mode { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 58px; height: 54px; border-radius: 12px; color: var(--t2); font-size: 10.5px; }
.win .mode .ic { width: 19px; height: 19px; }
.win .mode.on { background: rgb(var(--w-ink) / .08); color: var(--t); box-shadow: inset 0 0 0 1px rgb(var(--w-ink) / .06); }
.win .mode.on .ic { color: var(--w-copper); }
.win .rail .grow { flex: 1; }
.win .me { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(#e7a877, #c97f4f); color: #1a1512; font-weight: 600; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.win .side { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px 12px 2px; min-width: 0; }
.win .search { display: flex; align-items: center; gap: 8px; height: 32px; margin-bottom: 10px; padding: 0 10px; border-radius: 9px; background: rgb(var(--w-ink) / .06); color: var(--t3); }
.win .search .ic { width: 14px; height: 14px; }
.win .search kbd { margin-left: auto; font-family: var(--display); font-size: 11px; color: var(--t3); }
.win .label { margin: 10px 8px 4px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--t3); }
.win .row { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 8px; color: var(--t2); white-space: nowrap; overflow: hidden; }
.win .row span.t { overflow: hidden; text-overflow: ellipsis; }
.win .row.on { background: rgb(222 145 96 / .13); color: var(--t); }
.win .row .n { margin-left: auto; min-width: 18px; padding: 0 5px; border-radius: 9px; background: rgb(var(--w-ink) / .09); font-size: 11px; text-align: center; color: var(--t2); }
.win .row .ic { width: 15px; height: 15px; }
.win .dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--w-green); }
.win .dot.idle { background: rgb(var(--w-ink) / .25); }
.win .main { display: flex; flex-direction: column; margin: 8px 8px 8px 0; border-radius: 12px; background: var(--w-body); box-shadow: inset 0 0 0 1px var(--hair); min-width: 0; overflow: hidden; }
.win .bar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-bottom: 1px solid var(--hair); font-size: 14px; font-weight: 500; }
.win .bar .hint { color: var(--t3); font-weight: 400; font-size: 12.5px; }
.win .feed { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; overflow: hidden; }
.win .cardrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.win .c { display: flex; flex-direction: column; gap: 8px; padding: 13px 14px; border-radius: 12px; background: var(--w-panel); box-shadow: inset 0 0 0 1px var(--hair); min-width: 0; }
.win .c .k { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--t3); }
.win .c .k .ic { width: 13px; height: 13px; }
.win .c .k b { font-weight: 500; color: var(--w-copper); }
.win .c p { margin: 0; color: var(--t); font-size: 13px; }
.win .c p span { color: var(--t2); }
.win .c code { font-family: var(--mono); font-size: 11.5px; color: var(--t2); background: rgb(var(--w-ink) / .06); padding: 1px 5px; border-radius: 5px; }
.win .acts { display: flex; gap: 6px; margin-top: 2px; }
.win .b { height: 26px; padding: 0 11px; border-radius: 7px; background: rgb(var(--w-ink) / .08); box-shadow: inset 0 0 0 1px rgb(var(--w-ink) / .08); font-size: 12px; display: inline-flex; align-items: center; color: var(--t); }
.win .b.go { background: linear-gradient(#e7a877, #d58853); color: #17120f; box-shadow: none; font-weight: 500; }
.win .picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.win .picks i { height: 62px; border-radius: 7px; background: linear-gradient(135deg, rgb(var(--w-ink) / .1), rgb(var(--w-ink) / .03)); box-shadow: inset 0 0 0 1px var(--hair); }
.win .picks i.on { box-shadow: inset 0 0 0 1.5px var(--w-copper); background: linear-gradient(135deg, rgb(222 145 96 / .28), rgb(222 145 96 / .06)); }
.win .sched { display: flex; align-items: center; gap: 10px; color: var(--t2); font-size: 12.5px; }
.win .sched time { font-family: var(--mono); font-size: 11.5px; color: var(--t3); width: 44px; }
.stage-note { margin: 14px 0 0; text-align: center; font-family: var(--display); font-size: 13px; color: var(--text3); }

/* Agents strip */
.works { padding-block: 64px 8px; text-align: center; }
.works p { margin: 0 0 20px; font-family: var(--display); font-size: 14px; color: var(--text3); }
.works ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin: 0; padding: 0; list-style: none; font-family: var(--display); font-size: 15px; color: var(--text2); }
.works li { height: 36px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }

/* Sections */
.section { padding-top: clamp(80px, 11vw, 150px); }
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.section-head.center { align-items: center; margin: 0 auto; text-align: center; }
.section-head.center .lede { max-width: 36em; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 56px; }
.tile { grid-column: span 2; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 26px; border-radius: 22px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgb(var(--ink) / .05); }
.tile.w3 { grid-column: span 3; }
.tile p { margin: 0; max-width: 32em; color: var(--text2); font-size: 15px; line-height: 1.55; }
.tile .badge { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 8px; border-radius: 12px; background: rgb(var(--ink)); color: #e9a273; }
.tile .badge .ic { width: 20px; height: 20px; }
.tile kbd { font-family: var(--mono); font-size: 13px; padding: 2px 7px; border-radius: 6px; background: var(--ground-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.flip > .split-text { order: 2; }
.split-text { display: flex; flex-direction: column; gap: 20px; }
.points { display: flex; flex-direction: column; gap: 16px; margin: 12px 0 0; padding: 0; list-style: none; }
.points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text2); font-size: 16px; line-height: 1.55; }
.points .ic { margin-top: 3px; color: var(--accent); }
.points b { color: var(--text); font-weight: 600; }
.well { padding: clamp(18px, 3vw, 36px); border-radius: 26px; background: var(--ground-2); box-shadow: inset 0 0 0 1px var(--line); }
.sheet { border-radius: 16px; background: var(--raise); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -24px #1f1b1659; overflow: hidden; font-family: var(--display); font-size: 14.5px; }
.sheet-bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--text2); }
.sheet-bar b { color: var(--text); font-weight: 500; }
.sheet-bar .ic { width: 15px; height: 15px; }
.sheet-body { display: flex; flex-direction: column; gap: 12px; padding: 16px; }

.hop { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--line); }
.hop .where { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.hop .where .ic { width: 14px; height: 14px; }
.hop p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.45; }
.hop p span { color: var(--text3); }
.hop .do { align-self: flex-start; margin-top: 4px; height: 28px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; background: rgb(var(--ink)); color: var(--raise); font-size: 12.5px; }
.hop .do .ic { width: 12px; height: 12px; }
.hop .variants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.hop .variants i { height: 54px; border-radius: 9px; background: linear-gradient(135deg, var(--ground-2), var(--raise)); box-shadow: inset 0 0 0 1px var(--line-2); }
.hop .variants i.on { box-shadow: inset 0 0 0 2px var(--accent); background: linear-gradient(135deg, #b5532f2e, #b5532f0a); }
.hop code { font-family: var(--mono); font-size: 12.5px; color: var(--text2); }
.down { align-self: center; color: var(--text3); display: flex; }
.down .ic { width: 16px; height: 16px; transform: rotate(90deg); }

.auto { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--line); }
.auto .face { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgb(var(--ink)); color: #e9a273; }
.auto .face .ic { width: 15px; height: 15px; }
.auto div b { display: block; font-weight: 500; font-size: 14.5px; color: var(--text); }
.auto div span { display: block; font-size: 13px; color: var(--text3); }
.auto .when { font-family: var(--mono); font-size: 12px; color: var(--text2); padding: 3px 9px; border-radius: 999px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.step { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 22px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); }
.step .num { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1; color: var(--accent); }
.step p { margin: 0; color: var(--text2); font-size: 15.5px; }
.aside { max-width: 46em; margin: 32px auto 0; text-align: center; color: var(--text2); font-size: 16px; }

/* Releases (filled by tools/caret/website.py) */
.rels { display: flex; flex-direction: column; margin-top: 48px; border-top: 1px solid var(--line); }
.rel { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 32px 4px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.rel .v { font-family: var(--serif); font-size: 30px; line-height: 1.1; letter-spacing: -.02em; }
.rel .latest { display: inline-flex; margin-top: 10px; height: 24px; padding: 0 10px; align-items: center; border-radius: 999px; background: #b5532f1f; color: var(--accent); font-family: var(--display); font-size: 12px; font-weight: 500; }
.rel h3 { font-family: var(--read); font-weight: 400; font-size: 17px; line-height: 1.55; letter-spacing: 0; color: var(--text); max-width: 44em; text-wrap: pretty; }
.rel ul { margin: 14px 0 0; padding-left: 20px; color: var(--text2); font-size: 15.5px; max-width: 46em; }
.rel li { margin: 6px 0; }
.rel li b { color: var(--text); font-weight: 600; }
.rel ul:not(.full) li b { font-weight: 500; }
.notes-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-family: var(--display); font-size: 14.5px; color: var(--accent); }
.notes-link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notes-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Closing and footer */
.closing { position: relative; margin-top: clamp(100px, 13vw, 170px); padding: clamp(64px, 9vw, 110px) 0; border-top: 1px solid var(--line); text-align: center; overflow: hidden; }
.closing::before { content: ""; position: absolute; left: 50%; bottom: -420px; width: 1200px; height: 700px; transform: translateX(-50%); background: radial-gradient(50% 50%, #b5532f38, #0000 70%); pointer-events: none; }
.closing-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.closing img { width: 72px; height: 72px; border-radius: 18px; }
footer { padding: 28px 0 40px; border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; font-family: var(--display); font-size: 14px; color: var(--text3); }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot a:hover { color: var(--text); }
.foot .spacer { flex: 1; }

/* Inner pages: changelog, privacy, terms, 404, the guide */
.phead { padding: clamp(48px, 7vw, 96px) 0 0; display: flex; flex-direction: column; gap: 16px; }
.phead h1 { font-size: clamp(40px, 5.6vw, 72px); }
.page { padding-bottom: clamp(60px, 8vw, 110px); }
.prose { max-width: 46em; margin-top: 40px; color: var(--text2); }
.prose h2 { margin: 44px 0 10px; font-size: 28px; letter-spacing: -.02em; }
.prose a, .doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose li { margin: 6px 0; }
.note { padding: 14px 18px; border-radius: 14px; background: var(--ground-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 15.5px; color: var(--text2); }
.lost { min-height: 62vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; padding-block: 80px; }

.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); margin-top: 48px; align-items: start; }
.docnav { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 110px); overflow: auto; font-family: var(--display); font-size: 14.5px; }
.docnav a { padding: 7px 12px; border-radius: 9px; color: var(--text2); }
.docnav a:hover { background: rgb(var(--ink) / .05); color: var(--text); }
.docnav a.on { background: rgb(var(--ink) / .07); color: var(--text); font-weight: 500; }
.doc { max-width: 46em; min-width: 0; color: var(--text2); font-size: 16.5px; }
.doc > :first-child { margin-top: 0; }
.doc h2 { margin: 48px 0 12px; font-size: 30px; letter-spacing: -.02em; scroll-margin-top: 90px; }
.doc h3 { margin: 32px 0 8px; font-size: 19px; scroll-margin-top: 90px; }
.doc h4 { margin: 24px 0 6px; font-family: var(--display); font-size: 16px; color: var(--text); }
.doc b { color: var(--text); font-weight: 600; }
.doc li { margin: 6px 0; }
.doc code { font-family: var(--mono); font-size: .86em; padding: 2px 6px; border-radius: 6px; background: var(--ground-2); color: var(--text); }
.doc pre { padding: 16px 18px; border-radius: 14px; background: #1f1b16; color: #f1ebe1; overflow: auto; font-size: 13.5px; line-height: 1.55; }
.doc pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.tablewrap { overflow-x: auto; margin: 18px 0; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); background: var(--raise); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc th { font-family: var(--display); font-weight: 500; color: var(--text); font-size: 13.5px; }
.doc tr:last-child td { border-bottom: 0; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .win { grid-template-columns: 64px 1fr; height: auto; }
  .win .side { display: none; }
  .win .main { margin-left: 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile, .tile.w3 { grid-column: span 1; }
  .split { grid-template-columns: 1fr; }
  .split.flip > .split-text { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; }
  .docnav { position: static; flex-direction: row; flex-wrap: wrap; max-height: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .win { grid-template-columns: 54px 1fr; border-radius: 12px; }
  .win .mode { width: 46px; height: 48px; font-size: 9.5px; }
  .win .lights { gap: 5px; }
  .win .lights i { width: 9px; height: 9px; }
  .win .cardrow { grid-template-columns: 1fr; }
  .win .cardrow .c:nth-child(2) { display: none; }
  .win .feed { padding: 12px; }
  .rel { grid-template-columns: 1fr; gap: 12px; }
  .nav-end .btn .long { display: none; }
  .foot .spacer { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
