/* Vida Suya Brand Codex review app. Marketing Plan Pros brand: navy, gold, Arial. */
:root {
  --navy: #0F172A; --navy-2: #182238; --navy-3: #1E2A44; --line-dark: #2A3550;
  --gold: #F6CC1E; --gold-deep: #E0B70F; --gold-ink: #7A5C00; --gold-wash: #FFF8DC;
  --ink: #0F172A; --body: #334155; --muted: #64748B; --faint: #94A3B8;
  --bg: #EEF1F6; --paper: #FFFFFF; --rule: #E2E8F0; --rule-2: #CBD5E1;
  --hl: rgba(246, 204, 30, 0.34); --hl-active: rgba(246, 204, 30, 0.72);
  --red: #B42318; --red-wash: #FEF3F2; --amber: #B54708; --amber-wash: #FFF6ED; --slate-wash: #F1F5F9;
  --topbar: 60px; --toc-w: 284px; --panel-w: 384px;
  --radius: 10px; --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 24px); }
body { margin: 0; font-family: var(--font); color: var(--body); background: var(--bg); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; padding: 8px 14px; font-size: 14px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); }
.btn-ghost { background: transparent; color: var(--body); border-color: var(--rule-2); }
.btn-ghost:hover { background: var(--slate-wash); }
.btn-ghost-dark { background: transparent; color: #DCE3EE; border-color: var(--line-dark); }
.btn-ghost-dark:hover { background: var(--navy-3); }
.btn-text { background: none; border: 0; padding: 4px 6px; color: var(--muted); font-size: 13px; font-weight: 700; border-radius: 6px; }
.btn-text:hover { color: var(--ink); background: var(--slate-wash); }
.btn-block { width: 100%; justify-content: center; padding: 12px 16px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent; color: inherit; }
.icon-btn:hover { background: rgba(148, 163, 184, .16); }
.count-pill { background: var(--navy); color: var(--gold); border-radius: 999px; padding: 1px 8px; font-size: 12px; min-width: 22px; text-align: center; }

/* ---------- Top bar ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; height: var(--topbar); z-index: 40; display: flex; align-items: center; gap: 14px; padding: 0 16px 0 18px; background: var(--navy); color: #fff; border-bottom: 1px solid var(--line-dark); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img { border-radius: 4px; }
.brand-name { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #C7D0DF; white-space: nowrap; }
.topbar-sep { width: 1px; height: 26px; background: var(--line-dark); }
.doc-title { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.doc-title strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-title span { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.name-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--navy-2); color: #DCE3EE; border: 1px solid var(--line-dark); border-radius: 999px; padding: 4px 12px 4px 4px; font-size: 13px; white-space: nowrap; max-width: 220px; }
.name-chip #name-label { overflow: hidden; text-overflow: ellipsis; }
.name-chip:hover { border-color: var(--gold); }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: var(--toc-w) minmax(0, 1fr) var(--panel-w); padding-top: var(--topbar); min-height: 100vh; }
.layout.panel-hidden { grid-template-columns: var(--toc-w) minmax(0, 1fr) 0; }
.layout.panel-hidden .panel { display: none; }

/* ---------- Table of contents ---------- */
.toc { position: sticky; top: var(--topbar); height: calc(100vh - var(--topbar)); overflow-y: auto; background: var(--navy); color: #C7D0DF; padding: 22px 0 18px; border-right: 1px solid var(--line-dark); display: flex; flex-direction: column; }
.toc-head { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--faint); padding: 0 22px 10px; }
.toc-part { margin-top: 14px; }
.toc-part-title { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); padding: 6px 22px; }
.toc a { display: flex; align-items: center; gap: 8px; padding: 7px 18px 7px 19px; margin-left: 3px; color: #C7D0DF; text-decoration: none; font-size: 14px; line-height: 1.35; border-left: 3px solid transparent; }
.toc a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.toc a.active { color: #fff; border-left-color: var(--gold); background: var(--navy-2); font-weight: 700; }
.toc a .label { flex: 1; }
.toc .badge { font-size: 11px; font-weight: 700; background: var(--gold); color: var(--navy); border-radius: 999px; padding: 1px 7px; }
.toc-foot { margin-top: auto; padding: 18px 22px 0; font-size: 12.5px; color: var(--faint); line-height: 1.5; border-top: 1px solid var(--line-dark); margin-left: 22px; margin-right: 22px; padding-left: 0; padding-right: 0; }
.toc-foot p { margin: 0 0 6px; }
.toc-foot strong { color: #DCE3EE; }
.toc-foot em { color: var(--gold); font-style: normal; font-weight: 700; }

/* ---------- Document ---------- */
.doc { padding: 34px clamp(16px, 4vw, 56px) 120px; outline: none; }
.loading { color: var(--muted); padding: 60px 0; text-align: center; }
.paper { max-width: 820px; margin: 0 auto; background: var(--paper); border-radius: 14px; box-shadow: var(--shadow); padding: 0 0 40px; }

.cover { background: var(--navy); color: #fff; border-radius: 14px 14px 0 0; padding: 46px 64px 40px; position: relative; overflow: hidden; }
.cover::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(246, 204, 30, .07); }
.cover img { width: 74px; height: auto; margin-bottom: 26px; }
.cover .kicker { color: var(--gold); }
.cover h1 { font-size: 40px; line-height: 1.1; margin: 8px 0 12px; color: #fff; letter-spacing: -.01em; }
.cover p.lead { font-size: 17px; color: #C7D0DF; max-width: 560px; margin: 0 0 26px; }
.cover dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 14px; }
.cover dt { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding-top: 3px; }
.cover dd { margin: 0; color: #E6EBF3; }
.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-bottom: 1px solid var(--rule); }
.howto div { padding: 20px 22px; border-right: 1px solid var(--rule); font-size: 13.5px; color: var(--body); line-height: 1.5; }
.howto div:last-child { border-right: 0; }
.howto b { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; margin-bottom: 4px; }
.howto i { font-style: normal; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: var(--navy); font-size: 12px; font-weight: 700; }

.kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); }
.part-head { padding: 46px 64px 0; }
.part-head .kicker { color: var(--muted); }
.part-head .rule { height: 3px; width: 44px; background: var(--gold); margin-top: 10px; }
.sec { padding: 26px 64px 6px; }
.sec + .sec { border-top: 1px solid var(--rule); margin-top: 18px; padding-top: 34px; }
.sec h2 { color: var(--ink); font-size: 28px; line-height: 1.2; margin: 6px 0 18px; letter-spacing: -.01em; }
.sec h3 { color: var(--ink); font-size: 17.5px; margin: 26px 0 8px; line-height: 1.35; }

/* Blocks and the comment gutter */
.blk { position: relative; border-radius: 6px; margin: 0 -10px; padding: 0 10px; transition: background .15s; }
.blk:hover { background: #FAFBFD; }
.blk.has-thread::before { content: ""; position: absolute; left: -14px; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; background: var(--gold); }
.blk.flash { animation: flash 1.4s ease-out; }
@keyframes flash { 0% { background: var(--gold-wash); } 100% { background: transparent; } }
.gutter { position: absolute; right: -52px; top: 2px; display: flex; flex-direction: column; gap: 4px; }
.g-add { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--rule-2); background: #fff; color: var(--muted); display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.blk:hover .g-add, .g-add:focus-visible { opacity: 1; }
.g-add:hover { color: var(--navy); border-color: var(--gold); background: var(--gold-wash); }
.g-count { min-width: 32px; height: 26px; border-radius: 999px; border: 0; background: var(--navy); color: var(--gold); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 8px; }
.g-count svg { width: 13px; height: 13px; }
.blk p, .blk ul, .blk ol { margin: 0; }
.blk { margin-bottom: 14px; }
.blk.b-h3 { margin-bottom: 0; }
.blk.b-h3 h3 { margin-top: 26px; }
.sec p { font-size: 16px; }
.sec strong { color: var(--ink); }
.sec ul, .sec ol { padding-left: 22px; }
.sec li { margin: 0 0 8px; padding-left: 4px; }
.sec ul li::marker { color: var(--gold-deep); }
.sec ol li::marker { color: var(--gold-ink); font-weight: 700; }

.quote { border-left: 4px solid var(--gold); background: var(--gold-wash); padding: 16px 20px; border-radius: 0 10px 10px 0; color: var(--ink); font-size: 18.5px; line-height: 1.5; font-weight: 700; }
.quote cite { display: block; font-style: normal; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 6px; }

.callout { border-radius: 10px; padding: 12px 16px; font-size: 14.5px; border: 1px solid; display: flex; gap: 12px; align-items: flex-start; }
.callout .tag { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; margin-top: 1px; white-space: nowrap; }
.callout.note { background: #FFFCEB; border-color: #F3E3A0; }
.callout.note .tag { background: var(--gold); color: var(--navy); }
.callout.open { background: var(--amber-wash); border-color: #F9DBAF; }
.callout.open .tag { background: var(--amber); color: #fff; }
.callout.internal { background: var(--red-wash); border-color: #FECDCA; }
.callout.internal .tag { background: var(--red); color: #fff; }
.callout.aspire { background: var(--slate-wash); border-color: var(--rule-2); }
.callout.aspire .tag { background: #475569; color: #fff; }

.tbl-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
th { background: var(--navy); color: #fff; text-align: left; padding: 10px 12px; font-size: 12.5px; letter-spacing: .02em; vertical-align: bottom; }
td { padding: 10px 12px; border-top: 1px solid var(--rule); vertical-align: top; }
tr:nth-child(even) td { background: #F8FAFC; }
td:first-child { font-weight: 700; color: var(--ink); }

.say { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.say div { border-radius: 10px; padding: 12px 14px; font-size: 15px; border: 1px solid var(--rule); }
.say .yes { background: #F7FBF8; border-color: #CFE8D6; }
.say .no { background: #FFF8F7; border-color: #F4D3CF; color: #6B2B24; }
.say span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.say .yes span { color: #1E6B3A; }
.say .no span { color: var(--red); }

.defs { display: grid; grid-template-columns: minmax(170px, 34%) 1fr; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.defs dt, .defs dd { margin: 0; padding: 10px 14px; border-top: 1px solid var(--rule); font-size: 14.5px; }
.defs dt:first-of-type, .defs dt:first-of-type + dd { border-top: 0; }
.defs dt { font-weight: 700; color: var(--ink); background: #F8FAFC; }

.doc-end { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 64px 0; }
.doc-end img { width: 44px; opacity: .9; }

/* Highlights */
mark.hl { background: var(--hl); color: inherit; border-radius: 2px; padding: 1px 0; cursor: pointer; box-shadow: inset 0 -2px 0 rgba(224, 183, 15, .7); }
mark.hl.active { background: var(--hl-active); }
mark.hl.resolved { background: transparent; box-shadow: inset 0 -2px 0 rgba(148, 163, 184, .7); }
mark.hl.pending { background: rgba(30, 42, 68, .14); box-shadow: inset 0 -2px 0 var(--navy); cursor: default; }

/* Floating selection button */
.sel-btn { position: fixed; z-index: 60; display: inline-flex; align-items: center; gap: 6px; background: var(--navy); color: #fff; border: 1px solid var(--gold); border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 700; box-shadow: 0 8px 20px rgba(15, 23, 42, .25); }
.sel-btn svg { color: var(--gold); width: 16px; height: 16px; }
.sel-btn:hover { background: var(--navy-3); }

/* ---------- Comments panel ---------- */
.panel { position: sticky; top: var(--topbar); height: calc(100vh - var(--topbar)); background: #fff; border-left: 1px solid var(--rule); display: flex; flex-direction: column; min-width: 0; }
.panel-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--rule); }
.panel-title { display: flex; align-items: center; justify-content: space-between; }
.panel-title h2 { margin: 0 0 12px; font-size: 17px; color: var(--ink); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--slate-wash); border-radius: 9px; padding: 3px; gap: 3px; }
.seg button { border: 0; background: transparent; border-radius: 7px; padding: 6px 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.seg button span { font-weight: 400; color: var(--faint); margin-left: 2px; }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .12); }
.search { display: flex; align-items: center; gap: 8px; margin-top: 10px; border: 1px solid var(--rule-2); border-radius: 8px; padding: 0 10px; color: var(--faint); }
.search input { border: 0; outline: 0; padding: 8px 0; font: inherit; font-size: 14px; flex: 1; min-width: 0; background: transparent; color: var(--ink); }
.search:focus-within { border-color: var(--navy); }
.panel-body { flex: 1; overflow-y: auto; padding: 14px 14px 40px; background: #F8FAFC; }
.group-label { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 16px 4px 8px; display: flex; align-items: center; gap: 8px; }
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.group-label:first-child { margin-top: 2px; }

.card { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--rule-2); }
.card.active { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(246, 204, 30, .25); cursor: default; }
.card.is-resolved { background: #FBFCFD; }
.card.is-resolved .c-text { color: var(--muted); }
.c-head { display: flex; align-items: center; gap: 9px; }
.c-who { flex: 1; min-width: 0; line-height: 1.2; }
.c-who b { display: block; font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-who time { font-size: 12px; color: var(--faint); }
.c-status { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #1E6B3A; background: #EAF6EE; border-radius: 999px; padding: 2px 8px; }
.c-quote { margin: 10px 0 0; padding: 4px 0 4px 10px; border-left: 3px solid var(--gold); color: var(--muted); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.c-quote.block-level { border-left-color: var(--rule-2); font-style: italic; }
.c-quote.orphan { border-left-color: var(--amber); }
.c-text { margin: 8px 0 0; font-size: 14.5px; color: var(--ink); white-space: pre-wrap; word-wrap: break-word; line-height: 1.5; }
.c-actions { display: flex; gap: 2px; margin-top: 8px; flex-wrap: wrap; }
.replies { margin-top: 10px; border-top: 1px solid var(--rule); padding-top: 8px; }
.reply { padding: 8px 0 4px; }
.reply + .reply { border-top: 1px dashed var(--rule); }
.reply .c-text { font-size: 14px; margin-top: 4px; }
.reply-del { margin-left: auto; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--navy); background: var(--gold); flex: none; letter-spacing: .02em; }
.avatar.sm { width: 24px; height: 24px; font-size: 10.5px; }

.composer { background: #fff; border: 1px solid var(--navy); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; box-shadow: 0 6px 18px rgba(15, 23, 42, .08); }
.composer h3 { margin: 0 0 6px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field { width: 100%; border: 1px solid var(--rule-2); border-radius: 8px; padding: 9px 11px; font: inherit; font-size: 14.5px; color: var(--ink); resize: vertical; background: #fff; }
.field:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(246, 204, 30, .35); }
textarea.field { min-height: 84px; line-height: 1.5; }
.composer .field + .field { margin-top: 8px; }
.row-end { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 10px; }
.hint { font-size: 12px; color: var(--faint); margin-right: auto; }
.reply-box { margin-top: 10px; }
.reply-box textarea.field { min-height: 60px; font-size: 14px; }

.empty { text-align: center; color: var(--muted); padding: 40px 18px; font-size: 14px; }
.empty .em-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--gold-wash); color: var(--gold-ink); display: grid; place-items: center; margin: 0 auto 12px; }
.empty .em-icon svg { width: 24px; height: 24px; }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

/* ---------- Gate, toast, modal ---------- */
.gate { position: fixed; inset: 0; z-index: 100; background: var(--navy); display: grid; place-items: center; padding: 20px; }
.gate-card { width: 100%; max-width: 400px; background: var(--navy-2); border: 1px solid var(--line-dark); border-radius: 16px; padding: 36px 32px; text-align: center; color: #C7D0DF; }
.gate-logo { width: 84px; margin-bottom: 16px; }
.gate-kicker { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; margin: 0; }
.gate-card h1 { color: #fff; font-size: 24px; margin: 6px 0 8px; }
.gate-sub { font-size: 14px; margin: 0 0 18px; }
.gate-card input { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line-dark); background: var(--navy); color: #fff; font: inherit; margin-bottom: 12px; text-align: center; letter-spacing: .1em; }
.gate-card input:focus { outline: 0; border-color: var(--gold); }
.gate-error { color: #FDA29B; font-size: 13px; margin: -4px 0 12px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; box-shadow: 0 10px 30px rgba(15, 23, 42, .3); border-left: 4px solid var(--gold); max-width: calc(100vw - 32px); }
.scrim { position: fixed; inset: var(--topbar) 0 0 0; background: rgba(15, 23, 42, .45); z-index: 35; }

.modal-back { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 95; display: grid; place-items: center; padding: 20px; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 400px; padding: 24px; box-shadow: 0 20px 60px rgba(15, 23, 42, .35); }
.modal h2 { margin: 0 0 6px; font-size: 19px; color: var(--ink); }
.modal p { margin: 0 0 14px; font-size: 14px; color: var(--muted); }

/* ---------- Responsive ---------- */
.only-narrow { display: none; }
@media (max-width: 1280px) {
  :root { --panel-w: 352px; --toc-w: 252px; }
  .cover, .part-head, .sec, .doc-end { padding-left: 48px; padding-right: 48px; }
  .brand-name { display: none; }
}
@media (max-width: 1100px) {
  .layout, .layout.panel-hidden { grid-template-columns: var(--toc-w) minmax(0, 1fr); }
  .panel { position: fixed; right: 0; top: var(--topbar); bottom: 0; width: min(400px, 100vw); z-index: 50; box-shadow: -10px 0 30px rgba(15, 23, 42, .18); transform: translateX(105%); transition: transform .2s ease; height: auto; display: flex !important; }
  .layout.panel-open .panel { transform: none; }
  .panel-title .only-narrow { display: inline-grid; }
}
@media (max-width: 860px) {
  .layout, .layout.panel-hidden { grid-template-columns: minmax(0, 1fr); }
  .only-narrow { display: inline-grid; }
  .hide-narrow { display: none; }
  .toc { position: fixed; left: 0; top: var(--topbar); bottom: 0; width: min(300px, 86vw); z-index: 50; transform: translateX(-105%); transition: transform .2s ease; height: auto; }
  .layout.toc-open .toc { transform: none; }
  .brand-name, .topbar-sep { display: none; }
  #name-label { display: none; }
  .name-chip { padding: 4px; }
  #panel-toggle span:not(.count-pill) { display: none; }
  .doc { padding: 16px 10px 100px; }
  .cover { padding: 32px 24px 28px; }
  .cover h1 { font-size: 30px; }
  .part-head, .sec, .doc-end { padding-left: 24px; padding-right: 24px; }
  .howto { grid-template-columns: 1fr; }
  .howto div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .gutter { right: -6px; top: -4px; flex-direction: row; }
  .g-add { opacity: 1; width: 28px; height: 28px; }
  .say, .defs { grid-template-columns: 1fr; }
  .defs dt { border-top: 1px solid var(--rule); }
}
@media print {
  .topbar, .toc, .panel, .gutter, .sel-btn, .howto { display: none !important; }
  .layout { display: block; padding: 0; }
  .doc { padding: 0; }
  .paper { box-shadow: none; }
  mark.hl { background: none; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
