/* Automotive Sales Playbook, web. Same look as the iOS app: Outfit headings,
   the icon's gold and near-black, warm word-track cards. */
@font-face { font-family: "Outfit"; src: url("/fonts/Outfit-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/fonts/Outfit-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --bg: #F2F2F6;
  --surface: #FFFFFF;
  --card: #F5F3EE;
  --ink: #2B2B2B;
  --muted: #6E6D6A;
  --faint: #A3A19C;
  --line: rgba(20, 21, 24, 0.10);
  --gold: #F2B544;
  --accent: #A87512;
  --on-gold: #141518;
  --hero: #141518;
  --asphalt: #222328;
  --quote: #2B2B2B;
  --hl-yellow: rgba(255, 214, 51, .42);
  --hl-green: rgba(115, 209, 115, .42);
  --hl-blue: rgba(102, 173, 255, .42);
  --hl-pink: rgba(255, 128, 179, .42);
  --hl-orange: rgba(255, 158, 64, .42);
  --flash: rgba(242, 181, 68, .35);
  --display: "Outfit", "Avenir Next", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "New York", "Iowan Old Style", Georgia, serif;
  --reader-size: 18px;
  --reader-leading: 1.65;
  --reader-font: var(--body);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0F1012; --surface: #1B1C1F; --card: #211F1D; --ink: #EDEDED; --muted: #A09E99; --faint: #6D6B67;
  --line: rgba(255, 255, 255, 0.09); --accent: #F2B544; --asphalt: #303136; --quote: #333336;
  --hl-yellow: rgba(255, 214, 51, .32); --hl-green: rgba(115, 209, 115, .32); --hl-blue: rgba(102, 173, 255, .34);
  --hl-pink: rgba(255, 128, 179, .32); --hl-orange: rgba(255, 158, 64, .32); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0F1012; --surface: #1B1C1F; --card: #211F1D; --ink: #EDEDED; --muted: #A09E99; --faint: #6D6B67;
  --line: rgba(255, 255, 255, 0.09); --accent: #F2B544; --asphalt: #303136; --quote: #333336;
  --hl-yellow: rgba(255, 214, 51, .32); --hl-green: rgba(115, 209, 115, .32); --hl-blue: rgba(102, 173, 255, .34);
  --hl-pink: rgba(255, 128, 179, .32); --hl-orange: rgba(255, 158, 64, .32); color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
main { outline: none; padding: 0 16px calc(96px + env(safe-area-inset-bottom, 0px)); max-width: 760px; margin: 0 auto; }

/* ---------- Chrome ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 17px var(--display); white-space: nowrap; }
.brand img { border-radius: 7px; }
.tabs { display: none; gap: 4px; margin: 0 auto; }
.tabs a { text-decoration: none; padding: 7px 14px; border-radius: 99px; font: 600 15px var(--body); color: var(--muted); }
.tabs a.on { background: var(--surface); color: var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.iconbtn { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.06); flex: none; }
.bottombar { position: fixed; z-index: 20; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: repeat(4, 1fr); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 26px; padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.10); max-width: 480px; margin: 0 auto; }
.bottombar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; text-decoration: none; font: 600 11px var(--body); color: var(--ink); border-radius: 20px; }
.bottombar svg { width: 22px; height: 22px; }
.bottombar a.on { color: var(--accent); background: var(--bg); }
@media (min-width: 820px) {
  .tabs { display: flex; }
  .bottombar { display: none; }
  main { padding-bottom: 80px; }
  .iconbtn { margin-left: 0; }
}

/* ---------- Type ---------- */
h1, h2, h3, .display { font-family: var(--display); font-weight: 700; text-wrap: balance; letter-spacing: -0.005em; }
.eyebrow { font: 700 11.5px/1.2 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 0; }
.muted { color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 30px 0 12px; }
.section-head h2 { font-size: 22px; margin: 0; }
.section-head a, .linkbtn { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 15px; background: none; border: 0; cursor: pointer; padding: 0; }

/* ---------- Home ---------- */
.hero { margin-top: 16px; background: var(--hero); border-radius: 26px; padding: 26px 20px 24px; text-align: center; position: relative; overflow: hidden; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(242,181,68,.24), transparent 58%); pointer-events: none; }
.hero canvas { width: 220px; height: 220px; display: block; margin: 0 auto; position: relative; }
.hero .eyebrow { color: var(--gold); margin-top: 6px; letter-spacing: .24em; position: relative; }
.hero .sub { font: 400 18px var(--display); color: rgba(255,255,255,.78); margin: 6px 0 0; position: relative; }
.reminder { display: block; text-decoration: none; background: var(--card); border-radius: 22px; padding: 22px 22px 24px; margin-top: 16px; position: relative; }
.reminder .q { position: absolute; right: 18px; top: -6px; font: 700 88px/1 var(--display); color: var(--gold); opacity: .4; }
.reminder p.txt { font: 700 22px/1.3 var(--display); margin: 10px 0 0; max-width: 30ch; }
.continue { display: flex; align-items: center; gap: 16px; text-decoration: none; background: linear-gradient(180deg, #FFC860, var(--gold)); color: var(--on-gold); border-radius: 22px; padding: 20px 22px; margin-top: 14px; }
.continue small { display: block; font-weight: 600; opacity: .7; }
.continue strong { display: block; font: 700 22px/1.2 var(--display); margin-top: 4px; }
.continue em { display: block; font-style: normal; opacity: .8; margin-top: 2px; }
.continue .arrow { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; background: var(--on-gold); color: var(--gold); display: grid; place-items: center; flex: none; font-size: 20px; }

.road-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
.road-wrap::-webkit-scrollbar { display: none; }
.road { position: relative; width: max-content; }
.road .strip { height: 46px; border-radius: 23px; background: var(--asphalt); position: absolute; left: 0; right: 0; top: 0; }
.road .strip::after { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; border-top: 2.5px dashed rgba(242,181,68,.8); }
.road .steps { display: flex; position: relative; }
.road .stop { width: 112px; display: grid; justify-items: center; gap: 10px; text-decoration: none; padding-bottom: 4px; }
.road .stop b { width: 36px; height: 36px; margin-top: 5px; border-radius: 50%; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; font: 700 18px var(--display); box-shadow: 0 0 0 3px var(--asphalt); }
.road .stop span { font-weight: 600; font-size: 14.5px; text-align: center; line-height: 1.25; padding: 0 4px; }
.road .flag { width: 56px; height: 46px; display: grid; place-items: center; font-size: 20px; color: #fff; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.tile { background: var(--surface); border-radius: 18px; padding: 16px; text-decoration: none; display: grid; gap: 10px; }
.tile svg { width: 28px; height: 28px; color: var(--accent); }
.tile b { font: 700 18px var(--display); display: block; }
.tile small { color: var(--muted); font-size: 13px; }
.progress-line { display: flex; gap: 14px; align-items: center; background: var(--surface); border-radius: 18px; padding: 14px; margin-top: 22px; }
.ring { --p: 0; width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--gold) calc(var(--p) * 1%), color-mix(in srgb, var(--gold) 22%, transparent) 0); }
.ring i { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font: 700 12px var(--display); font-style: normal; }

/* ---------- Word track / quote / table ---------- */
.wt { background: var(--card); border-radius: 14px; padding: 14px 18px 16px; border-left: 4px solid var(--accent); }
.wt-head { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 8px; }
.wt-head .eyebrow { flex: 1; padding-top: 9px; line-height: 1.5; }
.mini { width: 36px; height: 36px; border: 0; background: transparent; color: var(--accent); border-radius: 10px; cursor: pointer; display: grid; place-items: center; flex: none; }
.mini:hover { background: color-mix(in srgb, var(--gold) 16%, transparent); }
.mini svg { width: 18px; height: 18px; }
.mini.fav-on { color: #E5A500; }
.ph { color: var(--accent); font-weight: 650; }
.spk { color: var(--accent); font-weight: 700; font-size: .8em; letter-spacing: .02em; }
.dir { color: var(--muted); font-style: italic; font-size: .92em; }
.quote { background: var(--quote); color: #fff; border-radius: 16px; padding: 20px 52px 20px 22px; font: italic 700 1.08em/1.45 var(--reader-font); position: relative; }
.quote .mini { position: absolute; right: 6px; top: 6px; color: rgba(255,255,255,.7); }
.tbl-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
table.pb { border-collapse: collapse; width: 100%; font-size: .9em; }
table.pb th { background: var(--gold); color: var(--on-gold); text-align: left; padding: 10px 12px; font: 700 1em var(--display); }
table.pb td { padding: 10px 12px; vertical-align: top; }
table.pb tr:nth-child(even) td { background: var(--card); }

/* ---------- Reader ---------- */
.reader-bar { position: sticky; top: calc(59px + env(safe-area-inset-top, 0px)); z-index: 10; display: flex; justify-content: center; gap: 8px; padding: 10px 0; background: linear-gradient(var(--bg) 70%, transparent); }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--card); padding: 8px 16px; border-radius: 99px; font: 700 16px var(--display); cursor: pointer; color: var(--ink); }
.pill .chev { color: var(--accent); font-size: 12px; }
.pill.icon { padding: 8px 12px; font-family: var(--body); }
.chapter-head { padding: 14px 0 6px; }
.chapter-head h1 { font-size: clamp(30px, 6vw, 38px); line-height: 1.12; margin: 8px 0 12px; }
.chapter-head .rule { height: 2px; background: var(--accent); }
.chapter-head .meta { color: var(--muted); font-size: 14px; margin-top: 10px; }
.reader { font: var(--reader-size)/var(--reader-leading) var(--reader-font); }
.reader .sec-title { display: flex; gap: 10px; align-items: baseline; margin: 34px 0 4px; font: 700 1.28em/1.25 var(--display); scroll-margin-top: 130px; }
.reader .sec-title::before { content: ""; width: 4px; height: .95em; background: var(--accent); border-radius: 2px; flex: none; transform: translateY(.1em); }
.reader .sec-title button { margin-left: auto; }
.blk { margin: 16px 0; scroll-margin-top: 130px; border-radius: 10px; transition: background .5s; }
.blk.flash { background: var(--flash); }
.blk.bullet { display: flex; gap: 12px; }
.blk.bullet::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; margin-top: calc(var(--reader-leading) * .5em - 3px); }
.blk .t { white-space: pre-wrap; }
mark.hl { color: inherit; border-radius: 3px; padding: 0 1px; cursor: pointer; }
mark.hl.yellow { background: var(--hl-yellow); } mark.hl.green { background: var(--hl-green); } mark.hl.blue { background: var(--hl-blue); }
mark.hl.pink { background: var(--hl-pink); } mark.hl.orange { background: var(--hl-orange); }
mark.hl.ul { background: none; text-decoration: underline 3px var(--accent); text-underline-offset: 3px; }
mark.hl.has-note::after { content: "✎"; font-size: .7em; color: var(--accent); margin-left: 2px; vertical-align: super; }
mark.sq { background: var(--flash); color: inherit; border-radius: 3px; }
.quiz { background: var(--card); border-radius: 12px; padding: 16px; font-family: var(--body); font-size: 16px; }
.quiz .q { display: flex; gap: 10px; font-weight: 600; }
.quiz .q b { font: 700 18px var(--display); color: var(--accent); }
.quiz .a { color: var(--muted); margin-top: 10px; }
.next-card { display: block; text-decoration: none; background: var(--card); border-radius: 16px; padding: 18px 56px 18px 18px; margin-top: 40px; position: relative; }
.next-card::after { content: "→"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 22px; font-weight: 700; }
.next-card b { font: 700 20px var(--display); display: block; margin-top: 4px; }
.chap-nav { display: flex; justify-content: space-between; margin-top: 18px; }

/* ---------- Lists (contents, saved, search) ---------- */
.group { background: var(--surface); border-radius: 18px; margin: 14px 0; overflow: hidden; }
.row { display: flex; align-items: stretch; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row > a, .row > .rowmain { flex: 1; min-width: 0; text-decoration: none; padding: 12px 16px; display: block; cursor: pointer; background: none; border: 0; text-align: left; }
.row .lbl { display: flex; gap: 8px; align-items: center; }
.row .ttl { font: 400 16.5px/1.3 var(--display); margin-top: 2px; }
.row.indent > a, .row.indent > .rowmain { padding-left: 38px; }
.row.indent2 > a { padding-left: 60px; }
.row.sub > a { font-size: 15px; color: var(--ink); padding-top: 11px; padding-bottom: 11px; }
.row .exp { width: 64px; border: 0; border-left: 1px solid var(--line); background: none; color: var(--accent); cursor: pointer; display: grid; place-items: center; margin: 8px 0; }
.row .exp svg { width: 16px; height: 16px; transition: transform .2s; }
.row .exp[aria-expanded="true"] svg { transform: rotate(180deg); }
.tag { font: 800 9px/1 var(--body); letter-spacing: .1em; background: var(--gold); color: var(--on-gold); padding: 3px 6px; border-radius: 99px; }
.page-title { font: 700 30px var(--display); margin: 22px 0 6px; }
.seg { display: flex; background: var(--surface); border-radius: 12px; padding: 3px; gap: 2px; margin: 12px 0; }
.seg button { flex: 1; border: 0; background: none; padding: 8px 6px; border-radius: 9px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.item { display: block; text-decoration: none; padding: 14px 16px; border-top: 1px solid var(--line); cursor: pointer; }
.item:first-child { border-top: 0; }
.item small { color: var(--muted); font-size: 12.5px; font-weight: 600; display: block; }
.item .body { margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.item .note { color: var(--muted); font-size: 14px; margin-top: 6px; }
.swatch-row { display: flex; gap: 10px; margin: 6px 0; flex-wrap: wrap; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.sw.on { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--surface); }
.sw.yellow { background: #FFD633; } .sw.green { background: #73D173; } .sw.blue { background: #66ADFF; } .sw.pink { background: #FF80B3; } .sw.orange { background: #FF9E40; }
.sw.all { background: var(--surface); border-color: var(--line); width: auto; padding: 0 12px; border-radius: 99px; font-weight: 600; font-size: 13px; }
.sw.all.on { border-color: var(--accent); }
.empty { text-align: center; color: var(--muted); padding: 48px 20px; }
.empty b { display: block; color: var(--ink); font: 700 20px var(--display); margin-bottom: 6px; }

.searchbox { position: sticky; top: calc(59px + env(safe-area-inset-top, 0px)); z-index: 10; background: var(--bg); padding: 12px 0 8px; }
.searchbox input, .field input, .field textarea { width: 100%; font: 17px var(--body); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip { border: 0; background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--accent); padding: 7px 13px; border-radius: 99px; font-weight: 600; font-size: 14px; cursor: pointer; }
.hit mark { background: none; color: var(--accent); font-weight: 700; }
.group-label { font-size: 13px; font-weight: 700; color: var(--muted); margin: 22px 4px 6px; }

/* ---------- Tools ---------- */
.obj { background: var(--card); border-radius: 14px; padding: 16px 18px; margin: 14px 0; border-left: 4px solid var(--gold); }
.obj h3 { font-size: 19px; margin: 0 0 8px; }
.obj p { margin: 0; white-space: pre-wrap; }
.obj .acts { display: flex; gap: 18px; margin-top: 10px; }
.flash-card { background: var(--card); border-radius: 22px; padding: 24px; min-height: 320px; margin-top: 16px; cursor: pointer; }
.flash-card h2 { font-size: 24px; margin: 14px 0; }
.btnrow { display: flex; gap: 10px; margin-top: 16px; }
.btn { flex: 1; border: 0; border-radius: 99px; padding: 13px 16px; font-weight: 700; cursor: pointer; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.gold { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 16px; }
.bar i { display: block; height: 100%; background: var(--gold); }
.gloss dt { font: 700 17px var(--display); margin-top: 14px; }
.gloss dd { margin: 2px 0 0; color: var(--muted); }

/* ---------- Floating UI ---------- */
.seltools { position: absolute; z-index: 40; display: flex; background: var(--hero); border-radius: 12px; padding: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.seltools button { border: 0; background: none; color: #fff; padding: 9px 12px; font-weight: 600; font-size: 14px; cursor: pointer; border-radius: 9px; }
.seltools button:hover { background: rgba(255,255,255,.12); }
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 50; }
.sheet { position: fixed; z-index: 51; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow: auto; background: var(--surface); border-radius: 22px 22px 0 0; padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0px)); max-width: 640px; margin: 0 auto; box-shadow: 0 -10px 40px rgba(0,0,0,.2); }
@media (min-width: 820px) { .sheet { bottom: auto; top: 10vh; border-radius: 22px; } }
.sheet h2 { margin: 0 0 12px; font-size: 22px; }
.sheet .close { position: absolute; right: 14px; top: 14px; }
.field { margin: 12px 0; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field textarea { min-height: 120px; resize: vertical; }
.snippet { background: var(--card); border-radius: 10px; padding: 10px 12px; font-style: italic; color: var(--muted); }
.toast { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(100px + env(safe-area-inset-bottom, 0px)); background: var(--hero); color: #fff; padding: 10px 18px; border-radius: 99px; font-weight: 600; font-size: 14px; }
.range { width: 100%; accent-color: var(--gold); }
.small { font-size: 13px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Phones and portrait iPad: progress stays at the bottom of Home. */
@media (max-width: 1023px) { .home { display: flex; flex-direction: column; } .home .progress-line { order: 10; } }

/* ---------- Wide screens: iPad landscape, laptops, desktops ---------- */
.toc { display: none; }
@media (min-width: 1024px) {
  main { padding-inline: 32px; }
  main[data-view="home"], main[data-view="read"] { max-width: 1240px; }
  main[data-view="objections"], main[data-view="glossary"], main[data-view="tracks"], main[data-view="search"], main[data-view="saved"] { max-width: 1040px; }

  /* Home: hero on the left; reminder, continue and progress stacked on the right */
  .home { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: 24px; padding-top: 24px; }
  .home .hero { grid-column: 1; grid-row: 1 / span 3; margin: 0; display: flex; flex-direction: column; justify-content: center; padding: 36px 24px; }
  .home .hero canvas { width: 260px; height: 260px; }
  .home .reminder { grid-column: 2; grid-row: 1; margin: 0; }
  .home .continue { grid-column: 2; grid-row: 2; margin: 16px 0 0; }
  .home .progress-line { grid-column: 2; grid-row: 3; margin: 16px 0 0; }
  .home .roadsec, .home .tiles, .home .wtsec { grid-column: 1 / -1; }
  .home .roadsec { margin-top: 12px; }
  .home .road-wrap { margin: 0; padding: 0 0 6px; }
  .home .road { width: 100%; }
  .home .road .stop { flex: 1; width: auto; }
  .home .tiles { grid-template-columns: repeat(4, 1fr); }

  /* Reader: contents sidebar beside a comfortable reading column */
  .read-layout { display: grid; grid-template-columns: 270px minmax(0, 720px); gap: 56px; justify-content: center; }
  .toc { display: block; position: sticky; top: calc(76px + env(safe-area-inset-top, 0px)); align-self: start; max-height: calc(100vh - 96px); overflow-y: auto; padding: 18px 4px 40px 0; scrollbar-width: thin; }
  .toc-group { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .toc-group:last-child { border-bottom: 0; }
  .toc-ch { display: block; text-decoration: none; padding: 7px 10px; border-radius: 10px; font: 400 15px/1.3 var(--display); }
  .toc-ch .eyebrow { display: block; font-size: 10px; margin-bottom: 2px; }
  .toc-ch.kid { margin-left: 14px; }
  .toc-ch:hover { background: var(--surface); }
  .toc-ch.on { background: var(--surface); font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
  .toc-secs { margin: 4px 0 8px 10px; border-left: 2px solid var(--line); }
  .toc-ch.kid + .toc-secs { margin-left: 24px; }
  .toc-secs a { display: block; text-decoration: none; color: var(--muted); font-size: 13.5px; line-height: 1.35; padding: 6px 10px 6px 12px; margin-left: -2px; border-left: 2px solid transparent; }
  .toc-secs a:hover { color: var(--ink); }
  .toc-secs a.on { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
  #chapPick { display: none; }
  .reader-bar { justify-content: flex-end; }

  /* Reference pages use the extra width */
  #ol { columns: 2; column-gap: 20px; }
  #ol .obj { break-inside: avoid; margin: 0 0 20px; display: inline-block; width: 100%; }
  .gloss { columns: 2; column-gap: 40px; }
  .gloss dt { break-after: avoid; }
  .gloss dd { break-inside: avoid; }
  #tl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; align-items: start; }
}
