/* Documentação do Letravio — camada do site sobre os tokens e componentes do design system. */

@font-face { font-family: Literata; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/literata-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Literata; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/literata-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: Literata; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/literata-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/source-sans-3-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/source-sans-3-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }

/* ---- tokens (cópia de ds/letravio/tokens.json) ---- */
.lv-light, .lv-dark { --font-serif: Literata, Georgia, "Times New Roman", serif; --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif; --font-mono: "IBM Plex Mono", Consolas, monospace; --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-12: 48px; --radius-sm: 3px; --radius-md: 6px; --radius-lg: 10px; --radius-full: 9999px; --control-height: 32px; --toolbar-height: 44px; --tree-width: 272px; --measure: 68ch; --scrollbar-size: 12px; --scrollbar-size-thin: 8px; --sheet: #ffffff; --sheet-ink: #1d1c19; --sheet-line: #cfcabe; --guide-margin: #1f5785; --guide-bleed: #a8341b; }
.lv-light { color-scheme: light; --paper: #f6f4ef; --surface: #ffffff; --surface-sunken: #eeebe4; --selected: #e2ece9; --line: #dedad1; --line-strong: #8a8478; --ink: #1d1c19; --ink-muted: #5b564d; --accent: #1c5b56; --accent-strong: #14453f; --accent-soft: #dcebe7; --on-accent: #ffffff; --ochre: #7d5300; --ochre-soft: #f5e6c3; --blue: #1f5785; --blue-soft: #dde8f3; --danger: #a8341b; --danger-soft: #f8e0d8; --on-danger: #ffffff; --focus: #1c5b56; --skeleton: #e4e0d7; --scrollbar-thumb: #8a8478; --scrollbar-thumb-hover: #5b564d; --scrollbar-thumb-active: #1c5b56; --shadow-lg: 0 8px 24px -4px #1d1c1929, 0 2px 6px #1d1c1914; --shadow-page: 0 1px 3px #1d1c191f, 0 4px 12px #1d1c1914; --focus-ring: 0 0 0 2px #f6f4ef, 0 0 0 4px #1c5b56; }
.lv-dark { color-scheme: dark; --paper: #171918; --surface: #1f2221; --surface-sunken: #131514; --selected: #22312f; --line: #2e3331; --line-strong: #7a827e; --ink: #ebe9e3; --ink-muted: #a8a59d; --accent: #74c3b8; --accent-strong: #9ad6cc; --accent-soft: #1b3431; --on-accent: #0f1b19; --ochre: #e2b75a; --ochre-soft: #3a2f15; --blue: #8fbde6; --blue-soft: #1b2c3c; --danger: #f29479; --danger-soft: #3d1f18; --on-danger: #1d0f0b; --focus: #9ad6cc; --skeleton: #2b302e; --scrollbar-thumb: #7a827e; --scrollbar-thumb-hover: #a8a59d; --scrollbar-thumb-active: #74c3b8; --shadow-lg: 0 8px 24px -4px #000000cc; --shadow-page: 0 1px 3px #000000b3, 0 4px 12px #00000080; --focus-ring: 0 0 0 2px #171918, 0 0 0 4px #9ad6cc; }

/* ---- base ---- */
html { scrollbar-gutter: stable; scroll-padding-top: 24px; background: var(--paper); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 26px; -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; }
a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
select:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
code, kbd { font-family: var(--font-mono); font-size: 14px; background: var(--surface-sunken); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1px 6px; overflow-wrap: anywhere; }
mark { background: var(--ochre-soft); color: var(--ink); padding: 0 2px; border-radius: 2px; }
html::-webkit-scrollbar { width: 12px; height: 12px; background: transparent; }
html::-webkit-scrollbar-track, html::-webkit-scrollbar-corner { background: transparent; }
html::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
html::-webkit-scrollbar-thumb { background-color: var(--scrollbar-thumb); background-clip: padding-box; border: 3px solid transparent; border-radius: 6px; min-height: 32px; }
html::-webkit-scrollbar-thumb:hover { background-color: var(--scrollbar-thumb-hover); border-width: 2px; }
html::-webkit-scrollbar-thumb:active { background-color: var(--scrollbar-thumb-active); }
@supports not selector(::-webkit-scrollbar) { html { scrollbar-color: var(--scrollbar-thumb) transparent; } }

.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 8px 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.skip:focus { top: 12px; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.eyebrow { margin: 0; font-size: 12px; line-height: 16px; letter-spacing: 2px; font-weight: 600; color: var(--accent); text-transform: uppercase; }
.label { margin: 0 0 6px; font-size: 12px; line-height: 16px; letter-spacing: 1.2px; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; }
.lead { margin: 0 0 16px; font-size: 19px; line-height: 31px; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.serif { font-family: var(--font-serif); font-weight: 400; }

/* ---- cabeçalho ---- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-logo { width: 26px; height: 26px; border-radius: 6px; flex: none; }
.brand-name { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.5px; }
.brand-sub { font-size: 14px; line-height: 20px; color: var(--ink-muted); padding-left: 12px; border-left: 1px solid var(--line); }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 15px; line-height: 22px; }
.main-nav a { color: var(--ink-muted); text-decoration: none; padding: 4px 0; }
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.header-tools { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.header-search { position: relative; width: 260px; }
.header-search .lv-input { height: 36px; padding-left: 34px; background: var(--surface); }
.header-search .lv-icon { position: absolute; left: 11px; top: 10px; color: var(--ink-muted); pointer-events: none; }
.app-link { font-size: 15px; line-height: 22px; color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); padding: 4px 0; white-space: nowrap; }

/* ---- campos (complemento do TextField) ---- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 20px; }
.field-label { font-weight: 600; }
.field-wrap { position: relative; }
.field-wrap .lv-icon { position: absolute; left: 12px; top: 50%; margin-top: -8px; color: var(--ink-muted); pointer-events: none; }
.field-wrap .lv-input { padding-left: 36px; }
.field-hint { margin: 0; color: var(--ink-muted); }
.field-lg .lv-input { height: 44px; font-size: 16px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; }
a.lv-btn { text-decoration: none; }

/* ---- layout do artigo ---- */
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 720px) 200px; gap: 48px; align-items: start; justify-content: space-between; }
.doc-side { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; padding: 32px 4px 48px 0; font-size: 14px; line-height: 20px; scrollbar-width: thin; }
.doc-side details > summary { display: none; }
.doc-side .groups { display: flex; flex-direction: column; gap: 24px; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group a { padding: 6px 10px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.nav-group a:hover { background: var(--surface-sunken); color: var(--ink); }
.nav-group a[aria-current="page"] { color: var(--accent); background: var(--selected); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 600; }
.doc-main { min-width: 0; padding: 32px 0 64px; }
.doc-toc { position: sticky; top: 0; padding: 40px 0 48px; font-size: 14px; line-height: 20px; }
.toc-list { display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.toc-list a { padding: 5px 0 5px 15px; color: var(--ink-muted); text-decoration: none; }
.toc-list a:hover { color: var(--ink); }
.toc-list a.is-active { margin-left: -1px; padding-left: 14px; border-left: 2px solid var(--accent); color: var(--accent); font-weight: 600; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.doc-head { margin-top: 32px; }
.doc-head h1 { margin: 12px 0 16px; font-family: var(--font-serif); font-weight: 400; font-size: 44px; line-height: 54px; letter-spacing: -1.2px; }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 32px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; letter-spacing: 0.6px; font-weight: 600; padding: 3px 8px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.chip-blue { background: var(--blue-soft); color: var(--blue); }
.chip-ochre { background: var(--ochre-soft); color: var(--ochre); }
.chip-plain { background: var(--surface-sunken); color: var(--ink-muted); border: 1px solid var(--line); }

/* ---- prosa ---- */
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 48px 0 12px; font-family: var(--font-serif); font-weight: 400; font-size: 30px; line-height: 40px; letter-spacing: -0.6px; }
.prose h3 { margin: 32px 0 8px; font-size: 19px; line-height: 28px; font-weight: 600; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose strong { font-weight: 600; }
.prose .lv-notice { margin: 24px 0; }
.prose .lv-notice-text { margin-top: 2px; }
.prose .lv-notice-text p { margin: 0 0 8px; }
.prose .lv-notice-text p:last-child { margin: 0; }
.steps { list-style: none; margin: 20px 0 16px; padding: 0; display: flex; flex-direction: column; gap: 16px; counter-reset: passo; }
.steps li { display: flex; gap: 16px; }
.steps li::before { counter-increment: passo; content: counter(passo); flex: none; width: 28px; height: 28px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1; }
.steps li > span { padding-top: 1px; min-width: 0; }
.code { margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-sunken); overflow: hidden; }
.code-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 6px 4px 12px; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 20px; color: var(--ink); }
.table-wrap { margin: 0 0 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.table-wrap table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.table-wrap th { text-align: left; padding: 10px 16px; font-weight: 600; border-bottom: 1px solid var(--line); background: var(--surface-sunken); vertical-align: bottom; }
.table-wrap td { padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap tr:last-child td { border-bottom: 0; }
.cell-yes { color: var(--blue); }
.cell-yes span { display: inline-flex; gap: 6px; align-items: center; }
.cell-no { color: var(--ink-muted); }
.edition { margin: 20px 0 16px; }
.edition .lv-tabs { margin-bottom: 4px; }
.edition-panel > :first-child { margin-top: 16px; }
.edition-title { margin: 24px 0 8px; font-size: 13px; line-height: 18px; letter-spacing: 1.2px; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; }
.js .edition-title { display: none; }
.js .edition-panel[hidden] { display: none; }

.pager { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.pager a { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); text-decoration: none; }
.pager a:hover { border-color: var(--line-strong); }
.pager .next { text-align: right; }
.pager small { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.pager b { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--ink); }
.doc-foot-note { margin: 24px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* ---- início ---- */
.hero { padding-top: 72px; padding-bottom: 56px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { margin: 20px 0 16px; font-family: var(--font-serif); font-weight: 400; font-size: 56px; line-height: 66px; letter-spacing: -2px; max-width: 820px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { max-width: 600px; margin-bottom: 32px; }
.hero form { width: 100%; max-width: 560px; text-align: left; }
.section-title { margin: 0 0 24px; font-family: var(--font-serif); font-weight: 400; font-size: 30px; line-height: 40px; letter-spacing: -0.6px; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.topic { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--ink); text-decoration: none; }
.topic:hover { border-color: var(--line-strong); color: var(--ink); }
.topic-num { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 12px; line-height: 16px; letter-spacing: 1.2px; font-weight: 600; }
.topic-title { font-size: 20px; line-height: 28px; font-weight: 600; }
.topic-text { font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.topic-count { margin-top: auto; padding-top: 4px; font-size: 13px; line-height: 18px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.home-cols { display: flex; flex-wrap: wrap; gap: 48px; padding-bottom: 72px; }
.home-cols > :first-child { flex: 999 1 520px; min-width: 0; }
.home-cols > :last-child { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.link-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin: 0; padding: 0; list-style: none; }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.link-list a:hover .t { color: var(--accent); }
.link-list .t { display: block; font-size: 17px; line-height: 26px; font-weight: 600; }
.link-list .s { display: block; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.cta { max-width: 1216px; margin: 0 auto 72px; padding: 48px 32px; background: var(--accent-soft); border-radius: var(--radius-md); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta h2 { margin: 0; }
.cta p { margin: 0 0 8px; max-width: 520px; color: var(--ink-muted); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn-accent { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; background: var(--accent); color: var(--on-accent); border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; text-decoration: none; }
.btn-accent:hover { background: var(--accent-strong); color: var(--on-accent); }

/* ---- páginas de lista (busca, glossário, novidades) ---- */
.page { padding-top: 56px; padding-bottom: 72px; }
.page-title { margin: 16px 0 12px; font-family: var(--font-serif); font-weight: 400; font-size: 48px; line-height: 58px; letter-spacing: -1.6px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split > aside { flex: 1 1 200px; max-width: 240px; }
.split > .split-main { flex: 999 1 560px; min-width: 0; }

.search-form { max-width: 720px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.search-form .field { flex: 1 1 320px; min-width: 0; }
.results-count { margin: 32px 0 24px; font-family: var(--font-serif); font-weight: 400; font-size: 32px; line-height: 42px; letter-spacing: -0.6px; font-variant-numeric: tabular-nums; }
.filters { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 16px; }
.results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 760px; }
.results li { padding: 20px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.results .where { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.results .ttl { font-size: 19px; line-height: 28px; font-weight: 600; text-decoration: none; }
.results p { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 24px; }

.alpha { margin: 32px 0 8px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px; }
.alpha a, .alpha span { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); font-size: 15px; }
.alpha a { font-weight: 600; text-decoration: none; color: var(--accent); }
.alpha a:hover { background: var(--accent-soft); }
.alpha span { color: var(--line-strong); }
.letter { display: flex; flex-wrap: wrap; gap: 8px 48px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.letter h2 { flex: 0 0 64px; margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 44px; line-height: 52px; color: var(--accent); }
.letter dl { flex: 999 1 560px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 24px; }
.term { display: flex; flex-wrap: wrap; gap: 4px 32px; scroll-margin-top: 24px; }
.term:target dt { color: var(--accent); }
.term dt { flex: 1 1 200px; max-width: 240px; font-size: 18px; line-height: 26px; font-weight: 600; }
.term dd { flex: 999 1 400px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.term .see { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.status-row { display: flex; flex-wrap: wrap; gap: 8px 16px; }

.release { display: flex; flex-direction: column; gap: 24px; scroll-margin-top: 24px; }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.release-head h2 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 36px; line-height: 44px; letter-spacing: -0.8px; }
.release-head .when { margin-left: auto; font-size: 14px; line-height: 20px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.release > p { margin: 0; font-size: 17px; line-height: 28px; }
.release section { display: flex; flex-direction: column; gap: 12px; }
.release h3 { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 16px; line-height: 22px; font-weight: 600; }
.release ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.releases { display: flex; flex-direction: column; gap: 56px; max-width: 820px; }

/* ---- rodapé ---- */
.site-footer { border-top: 1px solid var(--line); margin-top: 32px; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 32px; }
.foot-brand { display: flex; flex-direction: column; gap: 6px; }
.foot-brand b { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.5px; }
.foot-brand span { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; line-height: 20px; padding-top: 4px; }
.foot-links a { color: var(--ink); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }
.theme-pick { display: flex; align-items: center; gap: 7px; font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.theme-pick select { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; cursor: pointer; }
.foot-bottom { width: 100%; margin: 8px 0 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 16px; color: var(--ink-muted); }

/* ---- telas menores ---- */
@media (max-width: 1180px) {
  .doc-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
  .doc-toc { display: none; }
}
@media (max-width: 900px) {
  .header-tools { margin-left: 0; width: 100%; }
  .header-search { flex: 1 1 200px; width: auto; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .doc-side { position: static; max-height: none; overflow: visible; padding: 16px 0 0; }
  .doc-side details > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; list-style: none; cursor: pointer; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); font-size: 15px; font-weight: 600; }
  .doc-side details > summary::-webkit-details-marker { display: none; }
  .doc-side details[open] > summary .lv-icon { transform: rotate(90deg); }
  .doc-side details > .groups { padding: 20px 4px 8px; }
  .doc-main { padding-top: 24px; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .brand-name { font-size: 22px; }
  .main-nav { width: 100%; gap: 4px 20px; }
  .app-link { font-size: 14px; }
  .hero { padding-top: 40px; padding-bottom: 40px; }
  .hero h1 { font-size: 38px; line-height: 46px; letter-spacing: -1.2px; }
  .lead { font-size: 17px; line-height: 28px; }
  .doc-head h1 { font-size: 34px; line-height: 42px; letter-spacing: -0.8px; }
  .prose h2 { font-size: 26px; line-height: 34px; }
  .page { padding-top: 32px; }
  .page-title { font-size: 36px; line-height: 44px; letter-spacing: -1px; }
  .split { gap: 24px; }
  .split > aside { max-width: none; }
  .filters { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
  .filters .label { width: 100%; }
  .release-head .when { margin-left: 0; width: 100%; }
  .cta { margin: 0 16px 48px; padding: 32px 20px; }
  .letter { gap: 8px; padding: 24px 0; }
  .table-wrap table { min-width: 420px; }
}
@media print {
  .site-header, .site-footer, .doc-side, .doc-toc, .pager, .doc-foot-note, .skip { display: none !important; }
  .doc-layout { display: block; }
  .js .edition-panel[hidden] { display: block; }
  .js .edition-title { display: block; }
  .edition .lv-tabs { display: none; }
}

/* abas de edição só funcionam com JavaScript; sem ele, os painéis aparecem em sequência */
.edition .lv-tabs { display: none; }
.js .edition .lv-tabs { display: inline-flex; }
