/* Dicaly. Celular primeiro: uma coluna com margem de 16 px; a partir de 1100 px, coluna de leitura
   de até 720 px com o sumário fixo ao lado. Cores do kit de marca Dicaly Ritmo 3.1 (site/brand): Ink #1D2443
   no texto, Cloud #F8F9FE no fundo, Violet #6354EE nos botões e no acento, Lemon #F6FD9A como marca-texto (a palavra
   que a voz está dizendo) e nos detalhes do tema escuro, Night #14192E no fundo escuro. Links e textos secundários usam
   tons da mesma família escolhidos para o contraste WCAG AA (razões medidas no fundo da página).
   Tema: claro para todo mundo, siga o sistema o que seguir ("only light" também impede o navegador de escurecer a
   página sozinho); o escuro vale só para quem escolhe na chave do topo, que põe data-theme="dark" no <html>. */
:root {
  color-scheme: only light;
  --page: #F8F9FE;        /* Cloud */
  --paper: #FFFFFF;       /* folha */
  --ink: #1D2443;         /* Ink (14,4:1) */
  --muted: #454C6B;       /* tinta 2 (8,0:1) */
  --faint: #5C6383;       /* tinta 3 (5,6:1) */
  --line: #DCDFEC;
  --line-strong: #C2C7DA;
  --wash: #EEF0FA;
  --pen: #5243DB;         /* violeta de leitura: links e foco (6,3:1) */
  --pen-hover: #3B2EB3;
  --ok: #2B6A30;
  --warn: #A2490F;
  --mark-now: #F2FA7E;    /* Lemon um tom acima, para o marca-texto aparecer no branco */
  --mark-ink: #1D2443;    /* o texto sobre o marca-texto */
  --mark-say: #F2FA7E;    /* amostra do tipo "como se diz" */
  --mark-teach: #C8EFB4;
  --mark-word: #C9E4FA;
  --mark-review: #FFD7A6;
  --mark-grammar: #E2D6F7;
  --arc: #A86F00;
  --ipa: #7A5200;
  --btn: #6354EE;         /* Violet: botões de marca (texto branco 5,2:1) */
  --btn-ink: #FFFFFF;
  --logo-ink: #1D2443;    /* assinatura para superfícies claras */
  --logo-accent: #6354EE;
  --shadow-play: 0 1px 2px rgba(29, 36, 67, 0.2);

  --font-ui: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-read: "Literata", Georgia, "Times New Roman", serif;
  --font-ipa: "Gentium Book Plus", "Charis SIL", "Doulos SIL", "Literata", serif;

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px;
  --sp-10: 40px; --sp-12: 48px; --sp-16: 64px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;
  --measure: 720px;
}
/* Só na tela: no papel a página sai sempre clara, mesmo para quem lê no escuro. */
@media screen {
  :root[data-theme="dark"] {
    color-scheme: dark;
    --page: #14192E; --paper: #1D2443; --ink: #EEF0FA; --muted: #C3C7DC; --faint: #A2A8C4;
    --line: #2F375E; --line-strong: #475079; --wash: #262E55; --pen: #ABA3FF; --pen-hover: #CAC5FF;
    --ok: #93D18A; --warn: #F2A66B;
    --mark-now: #F6FD9A; --mark-ink: #1D2443; --mark-say: #5B6020;
    --mark-teach: #2F4C24; --mark-word: #1F3C58; --mark-review: #5A3A16; --mark-grammar: #3D2F57;
    --arc: #D8B25A; --ipa: #E0BE6A; --btn: #F6FD9A; --btn-ink: #1D2443; --shadow-play: none;
    --logo-ink: #FFFFFF; --logo-accent: #F6FD9A;
  }
}

/* ---------- fontes (OFL, do English Reading Studio) ---------- */
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-ext-opsz-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-opsz-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: "Gentium Book Plus"; src: url("../fonts/gentium-book-plus-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gentium Book Plus"; src: url("../fonts/gentium-book-plus-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--sp-6); }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font-ui); font-size: 17px; line-height: 1.6; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
a { color: var(--pen); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--pen-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--pen); outline-offset: 2px; border-radius: 4px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.45; }
i[lang="en"] { font-family: var(--font-read); font-style: italic; }
strong { font-weight: 650; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--faint); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 600px) { .wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }
@media (min-width: 840px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.skip { position: absolute; left: var(--sp-2); top: -60px; background: var(--btn); color: var(--btn-ink); padding: var(--sp-2) var(--sp-4); border-radius: var(--r-sm); z-index: 20; }
.skip:focus { top: var(--sp-2); }

/* Amostras de cor por tipo (a cor nunca anda sozinha: sempre com o nome do tipo) */
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: 0.05em; margin-right: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); background: var(--wash); }
.sw.big { width: 14px; height: 14px; border-radius: 4px; margin-right: 10px; vertical-align: 0.12em; }
.t-expressao { background: var(--mark-teach); }
.t-phrasal-verb { background: var(--mark-word); }
.t-como-se-diz { background: var(--mark-say); }
.t-diferenca { background: var(--mark-review); }
.t-estrutura { background: var(--mark-grammar); }

/* ---------- topo ---------- */
.topbar { background: var(--page); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding-block: var(--sp-3); padding-top: max(var(--sp-3), env(safe-area-inset-top, 0px)); }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand:hover { color: var(--ink); }
/* A assinatura do kit (site/brand), sem efeito: nada de sombra, contorno ou gradiente */
.logo { display: block; height: 28px; width: auto; }
.logo-a { stroke: var(--logo-accent); }
.logo-i { stroke: var(--logo-ink); }
.logo-w { fill: var(--logo-ink); }
@media (min-width: 600px) { .logo { height: 30px; } }
@media (forced-colors: active) { .logo-a, .logo-i { stroke: LinkText; } .logo-w { fill: LinkText; } }
.brand-name { font-family: var(--font-ui); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.search-link { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; padding: 0 var(--sp-4); border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  color: var(--ink); text-decoration: none; background: var(--paper); }
.search-link:hover { color: var(--ink); border-color: var(--ink); }
.topbar-tools { display: flex; align-items: center; gap: var(--sp-2); }
/* A chave de tema do English Reading Studio, no formato da busca: a lua no claro, o sol no escuro. Fica invisível até o
   site.js acender (sem script não troca), com o espaço guardado para o cabeçalho não saltar. */
.theme-toggle { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-strong);
  border-radius: 50%; background: var(--paper); color: var(--ink); visibility: hidden; }
.theme-toggle[data-on="1"] { visibility: visible; }
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { display: block; }
.theme-toggle .i-sun, .theme-toggle[data-dark="true"] .i-moon { display: none; }
.theme-toggle[data-dark="true"] .i-sun { display: block; }
@media print { .topbar-tools { display: none; } }
.mainnav { overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav ul { display: flex; gap: var(--sp-1); list-style: none; padding-bottom: var(--sp-2); white-space: nowrap; }
.mainnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--sp-3); border-radius: var(--r-pill); color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.mainnav a:hover { color: var(--ink); background: var(--wash); }
.mainnav a[aria-current="page"] { color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-strong); font-weight: 600; }
@media (max-width: 420px) { .search-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .search-link { padding: 0 var(--sp-3); } }
/* Menu do celular (abaixo de 720 px): as seções ficam atrás deste botão, que só aparece com script (<html data-js>,
   marcado pelo script do <head>). Fechado, o topo fica numa linha; aberto, as seções descem numa grade de duas colunas
   com alvo grande e empurram a página, sem cobrir nada. Sem script, a faixa de seções continua à vista. */
.menu-toggle { display: none; align-items: center; justify-content: center; gap: var(--sp-2); flex: none; min-height: 44px; padding: 0 var(--sp-3);
  border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.menu-toggle:hover { border-color: var(--ink); }
.menu-toggle svg { display: block; }
.menu-toggle .i-close, .menu-toggle[aria-expanded="true"] .i-menu { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
@media (max-width: 719px) {
  .topbar .brand svg { height: 24px; width: auto; }
  .topbar-in { gap: var(--sp-3); }
  html[data-js] .menu-toggle { display: inline-flex; }
  html[data-js] .mainnav:not([data-open]) { display: none; }
  html[data-js] .mainnav[data-open] { overflow: visible; padding-bottom: var(--sp-4); }
  html[data-js] .mainnav[data-open] ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); padding: 0; white-space: normal; }
  html[data-js] .mainnav[data-open] a { width: 100%; min-height: 48px; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); font-size: 15px; line-height: 1.25; }
}
/* Até 399 px, o Menu fica só com o ícone; o nome continua no botão para o leitor de tela e o comando de voz. */
@media (max-width: 399px) {
  .menu-toggle { width: 44px; padding: 0; }
  .menu-toggle .menu-lb { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 359px) { .topbar .brand svg { height: 22px; } }

.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-2); list-style: none; padding-block: var(--sp-4) 0; font-size: 14px; color: var(--faint); }
.crumbs li + li::before { content: "/"; margin-right: var(--sp-2); color: var(--line-strong); }
.crumbs a { color: var(--muted); }

/* ---------- início ---------- */
.hero { border-bottom: 1px solid var(--line); background: var(--page); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-8); padding-block: var(--sp-8) var(--sp-10); }
.hero-in > * { min-width: 0; }
.hero h1 { font-family: var(--font-read); font-weight: 600; font-size: clamp(30px, 7.4vw, 50px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; max-width: 18ch; }
.hero-sub { margin-top: var(--sp-4); color: var(--muted); font-size: 18px; max-width: 46ch; }
.hero-hint { margin-top: var(--sp-3); font-size: 15px; color: var(--faint); }
.search-form { display: flex; gap: var(--sp-2); margin-top: var(--sp-6); max-width: 560px; }
.search-form input { flex: 1 1 0; width: 0; min-width: 0; height: 52px; padding: 0 var(--sp-4); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--paper); color: var(--ink); font-size: 17px; }
.search-form input:focus { outline: 2px solid var(--pen); outline-offset: 1px; }
.search-form button { height: 52px; padding: 0 var(--sp-5); border: 0; border-radius: var(--r-md); background: var(--btn); color: var(--btn-ink); font-weight: 600; }
.hero-demo { align-self: center; }
.demo-title { font-weight: 600; margin-bottom: var(--sp-3); }
.demo-from { margin-top: var(--sp-3); font-size: 15px; color: var(--muted); }
@media (min-width: 960px) { .hero-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; padding-block: var(--sp-12) var(--sp-16); } }

.shelves { display: grid; gap: var(--sp-10); padding-block: var(--sp-10); }
@media (min-width: 900px) { .shelves { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-10); } }
.shelf-head h2 { font-family: var(--font-read); font-weight: 600; font-size: 24px; line-height: 1.25; }
.shelf-head p { color: var(--muted); margin-top: var(--sp-1); max-width: 52ch; }
.shelf .entries { margin-top: var(--sp-4); }
.more-link { display: inline-block; margin-top: var(--sp-3); font-weight: 600; }
.empty { color: var(--muted); background: var(--paper); border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: var(--sp-4); margin-top: var(--sp-4); }
.method-strip { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: var(--sp-10); }
.method-strip h2 { font-family: var(--font-read); font-weight: 600; font-size: 24px; }
.method-points { list-style: none; display: grid; gap: var(--sp-4); margin: var(--sp-5) 0; }
@media (min-width: 840px) { .method-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-8); } }
.method-points li { color: var(--muted); }
.method-points strong { display: block; color: var(--ink); margin-bottom: var(--sp-1); }

/* ---------- listas de verbetes ---------- */
.entries { list-style: none; border-top: 1px solid var(--line); }
.entry { display: flex; align-items: center; gap: var(--sp-3); border-bottom: 1px solid var(--line); }
.entry a { flex: 1; min-width: 0; display: grid; gap: 2px; padding-block: var(--sp-3); text-decoration: none; color: var(--ink); }
.entry a:hover .entry-head { color: var(--pen); text-decoration: underline; text-underline-offset: 0.18em; }
.entry-head { font-family: var(--font-read); font-size: 19px; font-weight: 600; line-height: 1.3; }
.entry-gist { color: var(--muted); font-size: 15px; line-height: 1.45; }
.entry-meta { display: flex; gap: var(--sp-2); align-items: center; flex: none; }
.level { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 6px; color: var(--muted); }
.draft-tag { font-size: 12px; color: var(--warn); border: 1px dashed currentColor; border-radius: 6px; padding: 0 6px; }

/* ---------- páginas simples ---------- */
.page { padding-block: var(--sp-6) var(--sp-16); }
.page-head { padding-block: var(--sp-4) var(--sp-6); max-width: var(--measure); }
.page-head h1 { font-family: var(--font-read); font-weight: 600; font-size: clamp(30px, 6vw, 42px); line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
.page-sub { color: var(--muted); margin-top: var(--sp-3); font-size: 18px; max-width: 58ch; }
.hub-text { max-width: 62ch; margin-bottom: var(--sp-8); display: grid; gap: var(--sp-3); line-height: 1.6; }
.hub-count { font-family: var(--font-read); font-weight: 600; font-size: 22px; margin-bottom: var(--sp-3); padding-top: var(--sp-6); border-top: 1px solid var(--line); max-width: var(--measure); }
.az ul { display: flex; flex-wrap: wrap; gap: var(--sp-1); list-style: none; margin-bottom: var(--sp-6); }
.az a { display: inline-grid; place-items: center; min-width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--paper); border: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--ink); }
.az-group { margin-bottom: var(--sp-6); max-width: var(--measure); }
.az-letter { font-family: var(--font-read); font-size: 28px; font-weight: 600; margin-bottom: var(--sp-2); }
.prose { max-width: calc(var(--measure) + 64px); }
.prose h2 { font-family: var(--font-read); font-weight: 600; font-size: 24px; margin: var(--sp-8) 0 var(--sp-3); }
.prose p + p { margin-top: var(--sp-3); }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: var(--sp-2); }
/* Documentos legais (site/legal.py): data, sumário, nota, tabela com rolagem própria e os outros documentos. */
.legal-date { color: var(--muted); font-size: 15px; margin-top: var(--sp-3); }
.legal-toc { margin-top: var(--sp-8); padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.legal-toc h2 { font-family: var(--font-ui); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--sp-2); }
.legal-toc ol { padding-left: 1.4em; gap: 2px; }
.legal-toc a { display: block; padding-block: 3px; }
.legal-sec { scroll-margin-top: var(--sp-6); }
.legal-sec > * + * { margin-top: var(--sp-3); }
.legal-note { padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: var(--r-md); background: var(--paper); }
.legal-table { overflow-x: auto; margin-block: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.legal-table:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.legal-table table { width: 100%; min-width: 34ch; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table th { font-weight: 600; color: var(--ink); background: var(--wash); }
/* No celular, cada linha da tabela vira um cartão, com o nome da coluna em cima de cada valor (data-label): nada de
   colunas espremidas nem rolagem lateral. Os papéis ARIA (role="table", "row", "cell") seguram a leitura como tabela. */
@media (max-width: 599px) {
  .legal-table { overflow: visible; border: 0; background: none; }
  .legal-table table, .legal-table thead, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td { display: block; width: 100%; min-width: 0; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .legal-table tr { margin-bottom: var(--sp-3); padding-block: var(--sp-2); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
  .legal-table td { padding: var(--sp-1) var(--sp-4); border: 0; overflow-wrap: anywhere; }
  .legal-table td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
}
.legal-more { margin-top: var(--sp-10); padding-top: var(--sp-6); border-top: 1px solid var(--line); }
.legal-more h2 { font-family: var(--font-ui); font-size: 15px; font-weight: 600; margin: 0 0 var(--sp-3); }
.legal-more ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.steps { margin-top: var(--sp-2); }
.glossary { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.glossary th, .glossary td { text-align: left; padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); vertical-align: top; font-size: 16px; }
.glossary thead th { font-size: 14px; color: var(--faint); font-weight: 600; background: var(--wash); }
.glossary tbody th a { font-family: var(--font-read); font-weight: 600; font-size: 18px; }
.glossary .num { font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .glossary thead { display: none; }
  .glossary tr { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--sp-3); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); }
  .glossary th, .glossary td { padding: 0; border: 0; }
  .glossary td:nth-child(2) { grid-column: 1; font-size: 14px; color: var(--muted); }
  .glossary td.num { grid-column: 2; grid-row: 1; }
  .glossary td:last-child { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }
}

/* ---------- artigo ---------- */
.article { padding-block: var(--sp-4) var(--sp-16); }
.art-grid { display: grid; gap: var(--sp-10); }
.art-main { min-width: 0; max-width: var(--measure); }
.art-aside { display: none; }
@media (min-width: 1100px) {
  .art-grid { grid-template-columns: minmax(0, var(--measure)) 260px; justify-content: space-between; }
  .art-aside { display: block; }
  .toc { position: sticky; top: var(--sp-6); padding-top: var(--sp-8); }
}
.toc-title { font-weight: 600; font-size: 14px; color: var(--faint); margin-bottom: var(--sp-2); }
.toc ol { list-style: none; border-left: 2px solid var(--line); }
.toc a { display: block; padding: var(--sp-1) 0 var(--sp-1) var(--sp-4); margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 15px; }
.toc a:hover { color: var(--ink); border-left-color: var(--ink); }

.verbete { padding-block: var(--sp-4) var(--sp-5); }
.verbete-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--sp-3); border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--line); font-size: 14px; color: var(--muted); font-weight: 500; }
.chip .sw { margin-right: 6px; }
.chip.level { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.verbete h1 { font-family: var(--font-read); font-weight: 600; font-size: clamp(30px, 7vw, 46px); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.verbete h1 i[lang="en"] { font-weight: 600; }
.headword-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); margin-top: var(--sp-4); }
.hw { font-family: var(--font-read); font-style: italic; font-size: 22px; color: var(--muted); }
.ipa { font-family: var(--font-ipa); font-size: 20px; color: var(--ipa); }
.listen { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; padding: 0 var(--sp-4); border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); font-weight: 600; }
.listen:hover { border-color: var(--ink); }
.listen.playing { background: var(--mark-now); color: var(--mark-ink); border-color: var(--mark-now); }
.draft-note { display: flex; gap: var(--sp-2); align-items: flex-start; margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-4); background: var(--wash); border-radius: var(--r-md); color: var(--muted); font-size: 15px; }
.draft-note svg { flex: none; margin-top: 3px; }

.answer { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); margin-top: var(--sp-2); }
.answer-label { font-family: var(--font-ui); font-size: 15px; font-weight: 700; color: var(--faint); margin-bottom: var(--sp-2); }
.quick { font-family: var(--font-read); font-size: 20px; line-height: 1.6; }
.jump { display: inline-flex; margin-top: var(--sp-4); font-weight: 600; min-height: 44px; align-items: center; }
@media (min-width: 600px) { .answer { padding: var(--sp-6) var(--sp-8); } }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-top: var(--sp-5); }
.facts > div { background: var(--page); padding: var(--sp-3) var(--sp-4); min-width: 0; }
.facts dt { font-size: 13px; color: var(--faint); font-weight: 600; }
.facts dd { font-size: 16px; line-height: 1.45; margin-top: 2px; overflow-wrap: anywhere; }

.block { margin-top: var(--sp-12); }
.block h2 { font-family: var(--font-read); font-weight: 600; font-size: clamp(24px, 4.6vw, 30px); line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; margin-bottom: var(--sp-3); }
.block .lead { font-size: 19px; line-height: 1.55; color: var(--ink); }
.block > p + p, .block .lead + p { margin-top: var(--sp-3); }
.block > p:not(.lead) { color: var(--ink); }
.plain-list { list-style: none; display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.plain-list li { padding-left: var(--sp-5); position: relative; }
.plain-list li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 2px; background: var(--ink); }

.patterns { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.pattern { border-top: 1px solid var(--line); padding-top: var(--sp-3); }
.pattern dt { font-family: var(--font-read); font-size: 19px; }
.pattern dd { color: var(--muted); margin-top: 2px; }
.see-ex { font-size: 15px; font-weight: 600; white-space: nowrap; }

.senses { list-style: none; counter-reset: sense; display: grid; gap: var(--sp-4); margin-top: var(--sp-4); }
.sense { counter-increment: sense; position: relative; padding-left: 44px; }
.sense::before { content: counter(sense); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--ink); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.sense-meaning { font-size: 18px; font-weight: 600; }
.sense-pattern { font-family: var(--font-read); color: var(--muted); }
.sense-note { color: var(--muted); font-size: 16px; }
.sense-ex a { font-family: var(--font-read); font-style: italic; }

.options { list-style: none; display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.option { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-4); display: grid; gap: var(--sp-1); }
.option-en { font-family: var(--font-read); font-size: 21px; font-weight: 600; }
.option-en i[lang="en"] { font-style: normal; }
.option-tags { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.tag { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--wash); border-radius: 6px; padding: 1px 8px; }
.option-when { color: var(--muted); }

/* Comparação: no celular, um cartão por linha, com o termo da coluna antes de cada célula; tabela a partir de 720px. */
.compare-wrap { margin-top: var(--sp-4); }
.compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
.compare { width: 100%; border-collapse: collapse; }
.compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.compare tbody { display: grid; gap: var(--sp-3); }
.compare tr { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4) var(--sp-4); }
.compare tbody th { text-align: left; font-weight: 600; color: var(--muted); font-size: 15px; padding-bottom: var(--sp-2); margin-bottom: var(--sp-1); border-bottom: 1px solid var(--line); }
.compare td { position: relative; padding: var(--sp-2) 0 0 3.25rem; font-size: 16px; }
.compare-wide td { padding-left: 0; }
.compare td::before { content: attr(data-col); content: attr(data-col) / ""; position: absolute; left: 0; top: var(--sp-2); width: 3rem; font-family: var(--font-read); font-size: 17px; font-style: italic; font-weight: 600; color: var(--ink); }
.compare-wide td::before { position: static; display: block; width: auto; }
@media (min-width: 720px) {
  .compare-wrap { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); overflow-x: auto; }
  .compare { display: table; }
  .compare thead { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; display: table-header-group; }
  .compare tbody { display: table-row-group; }
  .compare tr { display: table-row; background: none; border: 0; border-radius: 0; padding: 0; }
  .compare th, .compare td, .compare-wide td { display: table-cell; text-align: left; vertical-align: top; padding: var(--sp-3) var(--sp-4); margin: 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .compare td::before { content: none; }
  .compare thead th { font-family: var(--font-read); font-size: 19px; font-style: italic; background: var(--wash); }
  .compare tbody th { font-weight: 600; color: var(--muted); width: 26%; font-size: 15px; }
  .compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
}

.forms { display: grid; gap: 0; margin-top: var(--sp-4); border-top: 1px solid var(--line); }
.form-row { display: grid; gap: var(--sp-1); padding-block: var(--sp-3); border-bottom: 1px solid var(--line); }
@media (min-width: 600px) { .form-row { grid-template-columns: 140px minmax(0, 1fr); gap: var(--sp-4); } }
.form-row dt { font-weight: 600; color: var(--muted); }
.formula { display: block; font-size: 18px; }
.form-ex { display: block; color: var(--muted); margin-top: 2px; }

/* ---------- frases de exemplo (o player) ---------- */
.player-prefs { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); margin-top: var(--sp-5); }
.seg { display: inline-flex; align-items: center; gap: var(--sp-1); flex-wrap: wrap; }
.seg-label { font-size: 14px; color: var(--faint); font-weight: 600; margin-right: var(--sp-1); }
.seg-btn { min-height: 40px; min-width: 44px; padding: 0 var(--sp-3); border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--paper); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.seg-btn[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }

.examples { list-style: none; display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }
.ex { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-4); scroll-margin-top: var(--sp-6); }
.ex:target { box-shadow: 0 0 0 2px var(--pen); }
.ex.active { border-color: var(--ink); }
.ex-main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-3); align-items: start; }
.play { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--btn); color: var(--btn-ink); display: grid; place-items: center; box-shadow: var(--shadow-play); }
.play .i-stop { display: none; }
.ex.active .play .i-play { display: none; }
.ex.active .play .i-stop { display: block; }
.ex-en { font-family: var(--font-read); font-size: 21px; line-height: 1.55; padding-top: 6px; overflow-wrap: anywhere; }
.ex-pt { color: var(--muted); margin-top: var(--sp-1); }
.ex-note { color: var(--muted); font-size: 16px; margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px dashed var(--line); }
@media (min-width: 600px) { .ex { padding: var(--sp-5); } .play { width: 52px; height: 52px; } .ex-en { font-size: 23px; } }

/* A palavra dita agora: marca-texto que passa da esquerda para a direita */
.w { border-radius: 3px; background-image: linear-gradient(transparent 10%, var(--mark-now) 10%, var(--mark-now) 92%, transparent 92%);
  background-repeat: no-repeat; background-size: 0% 100%; transition: background-size 140ms ease-out, color 140ms ease-out; cursor: pointer; }
.w.now { background-size: 100% 100%; color: var(--mark-ink); }
.w.fx, .fxs { text-decoration: underline; text-decoration-color: var(--pen); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
.ex.rhythm .w.fx, .ex.rhythm .fxs { text-decoration: none; }
.ex-tools { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); padding-left: 60px; }
.tool { min-height: 40px; padding: 0 var(--sp-4); border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: transparent; font-size: 15px; font-weight: 600; color: var(--ink); }
.tool:hover { border-color: var(--ink); }
.tool[aria-pressed="true"], .tool.on, .tool[aria-expanded="true"] { background: var(--wash); border-color: var(--ink); }
@media (max-width: 480px) { .ex-tools { padding-left: 0; } }
.ex-status { margin-top: var(--sp-2); padding-left: 60px; font-size: 15px; color: var(--muted); min-height: 0; }
.ex-status:empty { display: none; }
.ex-status .turn { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 600; color: var(--ink); }
.ex-status .bar { display: inline-block; width: 120px; height: 6px; border-radius: 3px; background: var(--wash); overflow: hidden; vertical-align: middle; }
.ex-status .bar span { display: block; height: 100%; background: var(--ink); width: 100%; transform-origin: left; }
@media (max-width: 480px) { .ex-status { padding-left: 0; } }
.ex.teaching .ex-pt { background: var(--mark-now); border-radius: 4px; color: var(--mark-ink); }
.ex-chunks { margin-top: var(--sp-3); margin-left: 60px; display: grid; gap: var(--sp-2); }
.ex-chunks dt { font-family: var(--font-read); font-style: italic; }
.ex-chunks dd { color: var(--muted); }
@media (max-width: 480px) { .ex-chunks { margin-left: 0; } }
.no-audio .ex-main { grid-template-columns: auto minmax(0, 1fr); }

/* Modo Ritmo: sílaba forte sublinhada, palavras fracas mais claras com o som embaixo, ligações e blocos */
.ex.rhythm .ex-en { line-height: 2.6; }
.ex.rhythm .w { position: relative; display: inline-block; line-height: 1.4; }
.ex.rhythm .w.strong { font-weight: 600; }
.ex.rhythm .st { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.2em; text-decoration-color: var(--ink); }
.ex.rhythm .w.weak { color: var(--faint); font-size: 0.92em; }
.ex.rhythm .w[data-weak]::after { content: attr(data-weak); position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 0.28em); font-family: var(--font-ipa); font-size: 14px; color: var(--ipa); white-space: nowrap; font-style: normal; }
.ex.rhythm .w.lk::before { content: ""; position: absolute; right: -0.55em; bottom: -0.32em; width: 1.1em; height: 0.5em; border: 2px solid var(--arc); border-top: 0; border-radius: 0 0 1em 1em; }
.gb { display: none; }
.ex.rhythm .gb { display: inline-block; width: 2px; height: 1.1em; background: var(--line-strong); margin: 0 0.35em; vertical-align: -0.15em; position: relative; }
.ex.rhythm .gb.up::after, .ex.rhythm .gb.down::after { position: absolute; left: 4px; font-family: var(--font-ui); font-size: 14px; font-weight: 700; color: var(--arc); line-height: 1; }
.ex.rhythm .gb.up::after { content: "↗"; top: -0.5em; }
.ex.rhythm .gb.down::after { content: "↘"; bottom: -0.3em; }
.ex.echoing .w:not(.in-part) { opacity: 0.45; }
.legend { margin-top: var(--sp-5); color: var(--muted); }
.legend summary { cursor: pointer; font-weight: 600; color: var(--ink); min-height: 44px; display: flex; align-items: center; }
.legend ul { display: grid; gap: var(--sp-2); padding-left: 1.2em; margin-top: var(--sp-2); }
.lg-st { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.2em; font-weight: 600; color: var(--ink); }

/* ---------- erros, exercícios, perguntas, fontes ---------- */
.mistakes { list-style: none; display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.mistake { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-4); background: var(--paper); display: grid; gap: var(--sp-1); }
.wrong { color: var(--warn); }
.wrong i[lang="en"] { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.right { color: var(--ok); font-weight: 600; }
.mark-x, .mark-ok { display: inline-block; width: 1.3em; font-weight: 700; }
.why { color: var(--muted); font-size: 16px; }

.quiz { list-style: none; display: grid; gap: var(--sp-4); margin-top: var(--sp-4); }
.q { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-4); }
.q fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.q legend { font-weight: 600; margin-bottom: var(--sp-2); padding: 0; }
.opt { display: flex; align-items: center; gap: var(--sp-3); min-height: 44px; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.opt span { font-family: var(--font-read); }
.opt input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.opt:has(input:checked) { border-color: var(--ink); background: var(--wash); }
.opt.correct { border-color: var(--ok); }
.check { margin-top: var(--sp-3); min-height: 44px; padding: 0 var(--sp-5); border-radius: var(--r-pill); border: 0; background: var(--btn); color: var(--btn-ink); font-weight: 600; }
.q-feedback { margin-top: var(--sp-3); }
.verdict { font-weight: 700; display: flex; gap: var(--sp-2); align-items: center; }
.verdict.ok { color: var(--ok); }
.verdict.no { color: var(--warn); }
.q-explain { color: var(--muted); margin-top: var(--sp-1); }

.faq { display: grid; gap: var(--sp-5); margin-top: var(--sp-4); }
.faq-item h3 { font-size: 18px; font-weight: 650; line-height: 1.4; }
.faq-item p { color: var(--ink); margin-top: var(--sp-1); }
.refs { list-style: none; display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.byline { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; display: grid; gap: var(--sp-1); }
.related { margin-top: var(--sp-12); }
.related h2 { font-family: var(--font-read); font-weight: 600; font-size: 24px; margin-bottom: var(--sp-3); }
.ers-link { margin-top: var(--sp-5); color: var(--muted); }

/* ---------- busca ---------- */
.search-page .search-form { margin-top: 0; max-width: var(--measure); }
.search-filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.search-count { margin-top: var(--sp-4); color: var(--muted); }
.results { list-style: none; display: grid; gap: var(--sp-3); margin-top: var(--sp-3); max-width: var(--measure); }
.result { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-4); }
.result a { font-family: var(--font-read); font-size: 20px; font-weight: 600; }
.result p { color: var(--muted); margin-top: var(--sp-1); font-size: 16px; }
.result mark { background: var(--mark-now); color: var(--mark-ink); border-radius: 2px; padding: 0 1px; }

/* ---------- rodapé ---------- */
.foot { border-top: 1px solid var(--line); padding-block: var(--sp-10) var(--sp-12); padding-bottom: max(var(--sp-12), env(safe-area-inset-bottom, 0px)); background: var(--page); }
.foot-in { display: grid; gap: var(--sp-6); }
@media (min-width: 840px) { .foot-in { grid-template-columns: 1.2fr 1fr; } .foot-legal { grid-column: 1 / -1; } }
.foot-brand p:last-child { color: var(--muted); margin-top: var(--sp-2); max-width: 44ch; }
.foot ul { list-style: none; display: grid; gap: var(--sp-2); }
/* Rodapé: o site e as políticas em duas colunas, lado a lado a partir de 480 px. */
.foot-nav { display: grid; gap: var(--sp-6); }
@media (min-width: 480px) { .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.foot-h { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--sp-3); }
.foot ul a { display: inline-block; padding-block: 2px; }
.foot a { color: var(--ink); }
.foot-legal { color: var(--faint); font-size: 14px; }

/* Compartilhar: fileira no topo do rodapé. Os botões de copiar e da folha nativa ocupam o lugar desde o início
   (visibility), então acender os dois não empurra nada. */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--line); }
@media (min-width: 840px) { .share { grid-column: 1 / -1; } }
.share-h { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.share-b { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--paper);
  color: var(--muted); display: grid; place-items: center; padding: 0; }
.share-b:hover, .share-b:focus-visible { border-color: var(--pen); color: var(--pen); }
.share-b svg { width: 20px; height: 20px; display: block; }
.share-js { visibility: hidden; }
.share-js[data-on="1"] { visibility: visible; }
.share-ok { font-size: 15px; font-weight: 600; color: var(--ok); margin-left: var(--sp-1); }
@media print { .share { display: none; } }

/* ---------- app: instalar no celular e página sem conexão ---------- */
/* A sugestão de instalar: um cartão pequeno no pé da tela, sem cobrir a leitura toda e sem roubar o foco; some com
   "Agora não". O rodapé ganha folga enquanto ela está aberta, para nada ficar escondido atrás. */
.install { position: fixed; z-index: 30; left: var(--sp-3); right: var(--sp-3); bottom: max(var(--sp-3), env(safe-area-inset-bottom, 0px));
  display: flex; align-items: flex-start; gap: var(--sp-3); max-width: 480px; margin: 0 auto; padding: var(--sp-3) var(--sp-1) var(--sp-3) var(--sp-3);
  background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  box-shadow: 0 8px 24px rgba(20, 25, 46, 0.16); animation: install-in 220ms ease-out; }
@keyframes install-in { from { transform: translateY(12px); opacity: 0; } }
.install-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; }
.install-text { flex: 1; min-width: 0; }
.install-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.install-how { color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 2px; }
.install-how b { color: var(--ink); font-weight: 600; }
.install-glyph { display: inline-block; vertical-align: -3px; color: var(--ink); }
.install-go { display: block; min-height: 40px; margin-top: var(--sp-2); padding: 0 var(--sp-5); border: 0; border-radius: var(--r-pill);
  background: var(--btn); color: var(--btn-ink); font-weight: 600; font-size: 15px; }
.install-close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-top: calc(-1 * var(--sp-2)); padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); }
.install-close:hover { color: var(--ink); background: var(--wash); }
.install-close svg { display: block; }
.has-install .foot { padding-bottom: 168px; }
.install-link { padding: 0; border: 0; background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 0.18em;
  text-decoration-thickness: 1px; text-align: left; }
.install-link:hover { text-decoration-thickness: 2px; }
@media (prefers-reduced-motion: reduce) { .install { animation: none; } }
@media print { .install { display: none; } }
.saved { margin-top: var(--sp-6); max-width: var(--measure); }
.saved h2 { font-family: var(--font-read); font-weight: 600; font-size: 22px; }
.saved-list { list-style: none; display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.saved-list a { display: inline-block; padding-block: var(--sp-1); font-size: 17px; }
.retry-row { margin-top: var(--sp-8); }
.retry { min-height: 48px; padding: 0 var(--sp-5); border: 0; border-radius: var(--r-md); background: var(--btn); color: var(--btn-ink);
  font-weight: 600; }

@media (prefers-reduced-motion: reduce) { .w { transition: none; } html { scroll-behavior: auto; } }
@media (forced-colors: active) { .w.now { outline: 2px solid CanvasText; } .sw { forced-color-adjust: none; } }
.opt.correct { border-color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }
.opt.correct::after { content: "certa"; margin-left: auto; color: var(--ok); font-weight: 700; font-size: 14px; }
