/* ==========================================================================
   Couponsses — Enciclopédia de Expressões em Inglês
   Paleta derivada do logo: marrom #6F3900 e oliva #7F7F2F. Tema claro.
   ========================================================================== */

:root {
  --brown: #6F3900;
  --brown-700: #552C00;
  --brown-100: #F3E6D8;
  --brown-50: #FAF3EB;
  --olive: #7F7F2F;
  --olive-700: #5E5E1D;
  --olive-100: #EAEAD3;
  --olive-50: #F5F5EA;
  --amber: #A86A12;
  --amber-100: #F8EBD4;
  --rust: #A13D1B;
  --rust-100: #F7E1D8;

  --bg: #FBF8F3;
  --surface: #FFFFFF;
  --surface-2: #F6F1E9;
  --ink: #2A2018;
  --ink-2: #54473B;
  --muted: #7E7064;
  --line: #E8DFD3;
  --line-2: #D9CCBC;
  --focus: #7F7F2F;

  --ok: #3F7A2E;
  --ok-100: #E4F0DC;
  --err: #B03A2E;
  --err-100: #F8E0DC;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(60, 35, 10, .06), 0 4px 16px rgba(60, 35, 10, .06);
  --shadow-lg: 0 10px 40px rgba(60, 35, 10, .14);
  --container: 1180px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brown); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brown-700); }
h1, h2, h3, .h3 { font-family: var(--font-serif); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 750; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
h3, .h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
code { background: var(--surface-2); padding: .1em .35em; border-radius: 5px; font-size: .9em; }
kbd { font: 600 .72rem var(--font-sans); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; color: var(--muted); background: var(--surface); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brown); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; color: #fff; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font: 600 .78rem/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--olive-700); margin: 0 0 .7rem; }
.eyebrow .icon { width: 16px; height: 16px; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 68ch; }
.icon { width: 20px; height: 20px; flex: none; }
.icon--lg { width: 28px; height: 28px; }
.icon--xl { width: 44px; height: 44px; }
.linklike { background: none; border: 0; padding: 0; color: var(--brown); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--brown); color: #fff; }
.btn--primary:hover { background: var(--brown-700); color: #fff; }
.btn--ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brown); color: var(--brown); }
.btn--soft { background: var(--brown-50); color: var(--brown); border-color: var(--brown-100); }
.btn--soft:hover { background: var(--brown-100); color: var(--brown-700); }
.btn--soft[aria-pressed="true"] { background: var(--brown); color: #fff; border-color: var(--brown); }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: .88rem; }
.btn--lg { min-height: 52px; padding: 12px 26px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--icon { width: 44px; padding: 0; }

.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; transition: .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--brown); }
.icon-btn .icon { width: 19px; height: 19px; }
.icon-btn[aria-pressed="true"] { color: var(--brown); background: var(--brown-50); }
.icon-btn--solid { background: var(--brown); color: #fff; }
.icon-btn--solid:hover { background: var(--brown-700); color: #fff; }
.fav-btn[aria-pressed="true"] .icon { fill: currentColor; }
.is-speaking { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(127, 127, 47, .2); } }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, .92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font: 800 1.2rem/1 var(--font-sans); letter-spacing: .02em; color: var(--brown); text-transform: uppercase; }
.brand-text small { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }

.header-search { position: relative; flex: 1; max-width: 420px; display: flex; align-items: center; margin-left: auto; }
.header-search > .icon { position: absolute; left: 12px; color: var(--muted); width: 18px; height: 18px; pointer-events: none; }
.header-search input {
  width: 100%; height: 42px; padding: 0 44px 0 38px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); font-size: .95rem;
}
.header-search input:focus { border-color: var(--olive); outline: none; box-shadow: 0 0 0 3px rgba(127, 127, 47, .18); }
.header-search kbd { position: absolute; right: 12px; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px;
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .92rem; white-space: nowrap; position: relative;
}
.main-nav a .icon { width: 17px; height: 17px; display: none; }
.header-search { min-width: 220px; }
.main-nav a:hover { background: var(--surface-2); color: var(--brown); }
.main-nav a[aria-current="page"] { color: var(--brown); background: var(--brown-50); }
.count-pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--olive); color: #fff; font-size: .72rem; font-weight: 700; }
.menu-toggle { display: none; }

/* Autocomplete */
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 6px; max-height: min(70vh, 480px); overflow-y: auto; text-align: left;
}
.search-results a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.search-results a:hover, .search-results a[aria-selected="true"] { background: var(--brown-50); }
.search-results strong { display: block; font-family: var(--font-serif); font-size: 1.05rem; color: var(--brown); }
.search-results small { display: block; color: var(--ink-2); font-size: .86rem; line-height: 1.4; }
.search-results .sr-meta { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.search-results mark { background: var(--olive-100); color: inherit; border-radius: 3px; padding: 0 1px; }
.search-results .sr-all { font-weight: 600; color: var(--brown); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; }
.search-results .sr-empty { padding: 12px; color: var(--muted); font-size: .92rem; }

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; padding: 14px 16px 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .85rem; color: var(--muted); }
.breadcrumbs.container ol { padding-left: 0; padding-right: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line-2); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brown); text-decoration: underline; }

/* ---------- Seções genéricas ---------- */
.section { margin-top: 56px; }
.section-head { margin-bottom: 20px; }
.section-head p { color: var(--muted); margin: 0; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head { padding-top: 28px; padding-bottom: 12px; }
.page-head .lead { margin-bottom: 0; }
.grid { display: grid; gap: 16px; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid--themes { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.grid--tools { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--suggest { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.two-col { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(127, 127, 47, .12), transparent 60%),
    radial-gradient(700px 360px at 0% 100%, rgba(111, 57, 0, .08), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { display: grid; gap: 36px; padding-top: 48px; padding-bottom: 48px; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; }
.hero h1 em { font-style: italic; color: var(--brown); }
.hero-search { position: relative; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 999px; padding: 6px 6px 6px 44px; box-shadow: var(--shadow); max-width: 620px; margin-top: 24px; }
.hero-search:focus-within { border-color: var(--olive); box-shadow: 0 0 0 4px rgba(127, 127, 47, .16), var(--shadow); }
.hero-search > .icon { position: absolute; left: 16px; color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; height: 44px; font-size: 1.05rem; outline: none; }
.hero-search--center { margin: 24px auto 0; }
.hero-quick { margin-top: 14px; font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.hero-quick a { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; text-decoration: none; color: var(--ink-2); }
.hero-quick a:hover { border-color: var(--brown); color: var(--brown); }

.daily-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.daily-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--olive), var(--brown)); }
.daily-card h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 4px 0 8px; }
.daily-card h2 a { color: var(--ink); text-decoration: none; }
.daily-card h2 a:hover { color: var(--brown); }
.daily-pron { display: flex; align-items: center; gap: 10px; color: var(--olive-700); font-weight: 600; }
.daily-card-foot { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; }
.example-mini { margin: 0; padding: 12px 16px; background: var(--surface-2); border-left: 3px solid var(--olive); border-radius: 0 10px 10px 0; }
.example-mini p { margin: 0; }
.example-mini p[lang="en"] { font-weight: 500; }

.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: -1px; padding-top: 24px; }
.stats-strip div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.stats-strip strong { display: block; font: 750 1.9rem/1.1 var(--font-serif); color: var(--brown); }
.stats-strip span { font-size: .85rem; color: var(--muted); }

/* Cartões de tema e ferramentas */
.theme-card, .tool-card {
  display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: transform .15s, box-shadow .15s, border-color .15s; position: relative;
}
.theme-card:hover, .tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); color: var(--ink); }
.theme-card h3, .tool-card h3 { margin: 6px 0 0; }
.theme-card p, .tool-card p { color: var(--ink-2); font-size: .93rem; margin: 0; flex: 1; }
.theme-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--olive-50); color: var(--olive-700); }
.theme-icon .icon { width: 24px; height: 24px; }
.theme-card:nth-child(even) .theme-icon { background: var(--brown-50); color: var(--brown); }
.theme-count { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; color: var(--brown); font-size: .9rem; }
.theme-count .icon { width: 16px; height: 16px; transition: transform .15s; }
.theme-card:hover .theme-count .icon { transform: translateX(3px); }
.tool-card > .icon { color: var(--brown); }
.tool-card:nth-child(3n+2) > .icon { color: var(--olive-700); }

.facet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.facet-list a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: .15s; }
.facet-list a:hover { border-color: var(--brown); }
.facet-list a > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.facet-list small { color: var(--muted); font-size: .85rem; line-height: 1.4; }
.facet-list b { font: 700 1.1rem var(--font-serif); color: var(--brown); }
.facet-list-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--olive-700); flex: none; }

.method { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 24px; }
.method-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.method-steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; }
.method-steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brown-50); color: var(--brown); font: 700 1.1rem var(--font-serif); }
.method-steps span { color: var(--ink-2); font-size: .93rem; }
.method.container { max-width: calc(var(--container) - 32px); }

/* ---------- Selos ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px;
  font-size: .76rem; font-weight: 600; line-height: 1.5; text-decoration: none; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid transparent;
}
a.badge:hover { border-color: currentColor; }
.badge .icon { width: 14px; height: 14px; }
.badge--tipo { background: var(--brown-50); color: var(--brown); }
.badge--tema { background: var(--olive-50); color: var(--olive-700); }
.badge--nivel-iniciante { background: var(--olive-100); color: var(--olive-700); }
.badge--nivel-intermediario { background: var(--amber-100); color: #7d4e0c; }
.badge--nivel-avancado { background: var(--rust-100); color: var(--rust); }
.badge--registro-formal { background: #E6E9F2; color: #3A4A6B; }
.badge--registro-neutro { background: var(--surface-2); color: var(--ink-2); }
.badge--registro-informal { background: #F6E7EF; color: #8A3462; }
.badge--variante-americano { background: #E4ECF5; color: #2F5379; }
.badge--variante-britanico { background: #F5E5E5; color: #8C2F2F; }
.badge--variante-universal { background: var(--olive-50); color: var(--olive-700); }
.badge--daily { background: var(--olive); color: #fff; }

.meter { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.meter i { display: block; width: 4px; border-radius: 2px; background: var(--line-2); }
.meter i:nth-child(1) { height: 6px; }
.meter i:nth-child(2) { height: 10px; }
.meter i:nth-child(3) { height: 14px; }
.meter--iniciante i.on { background: var(--olive); }
.meter--intermediario i.on { background: var(--amber); }
.meter--avancado i.on { background: var(--rust); }
.level-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); }

/* ---------- Card de expressão ---------- */
.exp-card { display: flex; flex-direction: column; padding: 18px 18px 12px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.exp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.exp-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.exp-card-title { font-size: 1.35rem; margin: 0 0 2px; }
.exp-card-title a { color: var(--ink); text-decoration: none; }
.exp-card-title a::after { content: ""; position: absolute; inset: 0; }
.exp-card { position: relative; }
.exp-card-title a:hover { color: var(--brown); }
.exp-card-pron { font-size: .85rem; color: var(--olive-700); margin: 0 0 8px; font-weight: 500; }
.exp-card-summary { font-size: .93rem; color: var(--ink-2); margin: 0 0 12px; flex: 1; }
.exp-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.exp-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.exp-card-actions { display: flex; gap: 2px; }
.exp-card .badge, .exp-card .icon-btn { position: relative; z-index: 1; }
.exp-card.is-studied .exp-card-title::after { content: " ✓"; color: var(--ok); font-size: .9rem; }

/* ---------- Explorar ---------- */
.explore-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; margin-top: 20px; align-items: start; }
.explore-sidebar { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; }
.filters-toggle { display: none; }
.facets { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.facets-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.facets-head h2 { font: 700 1rem var(--font-sans); display: flex; align-items: center; gap: 6px; margin: 0; }
.facets-head .linklike, .facets-head a { font-size: .85rem; }
.facet-search label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.input-icon input { width: 100%; height: 40px; padding: 0 10px 0 34px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); }
.input-icon input:focus { border-color: var(--olive); outline: none; }
.facet { border: 0; border-top: 1px solid var(--line); margin: 14px 0 0; padding: 12px 0 0; }
.facet legend { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.facet-option { clear: both; display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 8px; cursor: pointer; font-size: .93rem; }
.facet-option:hover { background: var(--surface-2); }
.facet-option input { width: 18px; height: 18px; accent-color: var(--brown); margin: 0; flex: none; }
.facet-name { flex: 1; }
.facet-count { font-size: .78rem; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 0 8px; min-width: 26px; text-align: center; }
.facet-option.is-empty { opacity: .45; }
.facet-option:has(input:checked) { background: var(--brown-50); color: var(--brown); font-weight: 600; }
.facet-option:has(input:checked) .facet-count { background: var(--brown); color: #fff; }

.explore-results { min-width: 0; transition: opacity .15s; }
.explore-results.is-loading { opacity: .5; pointer-events: none; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.results-count { margin: 0; color: var(--ink-2); }
.sort { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
select { height: 40px; padding: 0 34px 0 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237E7064' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; appearance: none; -webkit-appearance: none; cursor: pointer; max-width: 100%; }
select:focus { border-color: var(--olive); outline: none; }
.chips { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; border-radius: 999px; background: var(--brown); color: #fff; font-size: .85rem; font-weight: 500; text-decoration: none; }
.chip .icon { width: 14px; height: 14px; }
.chip:hover { background: var(--brown-700); color: #fff; }
.chip--soft { background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); padding: 5px 12px; }
.chip--soft b { color: var(--brown); font-weight: 700; }
.chip--soft:hover { background: var(--brown-50); color: var(--brown); border-color: var(--brown-100); }
.load-more { text-align: center; margin-top: 24px; }
.results-random { text-align: center; margin-top: 16px; }
.empty-state { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--ink-2); }
.empty-state .icon { margin: 0 auto 12px; color: var(--line-2); }
.empty-state p { max-width: 52ch; margin-left: auto; margin-right: auto; }

/* ---------- Categoria ---------- */
.category-head { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.category-head-icon { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 24px; background: var(--olive-50); color: var(--olive-700); }
.category-head--nivel .category-head-icon, .category-head--registro .category-head-icon { background: var(--brown-50); color: var(--brown); }
.category-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.refine { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 24px 0; display: grid; gap: 10px; }
.refine-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.refine-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); min-width: 96px; }
.sibling-list { display: flex; flex-wrap: wrap; gap: 10px; }
.sibling { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); }
.sibling:hover { border-color: var(--brown); }
.sibling span { display: flex; flex-direction: column; line-height: 1.3; }
.sibling small { color: var(--muted); }
.category-group + .category-group { margin-top: 40px; }

/* ---------- Página da expressão ---------- */
.expression { padding-top: 16px; }
.exp-hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.exp-hero::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(var(--olive), var(--brown)); }
.exp-hero-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.exp-hero h1 { margin-bottom: 12px; overflow-wrap: anywhere; }
.pron { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.pron-simple { font-size: 1.15rem; font-weight: 600; color: var(--olive-700); margin: 0; }
.pron-ipa { font-family: "Segoe UI", "Lucida Sans Unicode", "DejaVu Sans", sans-serif; color: var(--muted); margin: 0; font-size: .92rem; }
.exp-summary { font-size: 1.2rem; color: var(--ink); font-family: var(--font-serif); font-weight: 500; line-height: 1.45; margin-bottom: 10px; }
.exp-equivalent { color: var(--ink-2); }
.exp-equivalent > span:first-child { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.exp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.exp-facts { margin: 0; display: grid; gap: 10px; align-content: start; }
.exp-facts > div { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; }
.exp-facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.exp-facts dd { margin: 4px 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.exp-facts dd > a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.exp-facts small { color: var(--ink-2); font-size: .83rem; line-height: 1.4; }

.exp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; margin-top: 28px; align-items: start; }
.toc { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; background: rgba(251, 248, 243, .95); padding: 8px 0; backdrop-filter: blur(6px); }
.toc a { font-size: .85rem; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.toc a:hover, .toc a.is-active { border-color: var(--brown); color: var(--brown); }
.exp-section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.exp-section:last-of-type { border-bottom: 0; }
.exp-section h2 { display: flex; align-items: center; gap: 10px; font-size: 1.45rem; }
.exp-section h2 .icon { color: var(--olive-700); width: 24px; height: 24px; }
.exp-section > p { font-size: 1.04rem; color: var(--ink-2); max-width: 72ch; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.section-title-row h2 { margin: 0; }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-top: 16px; }
.callout h3, .callout .h3 { font-family: var(--font-sans); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.callout p:last-child { margin: 0; }
.callout--accent { background: var(--olive-50); border-color: var(--olive-100); }
.callout--accent h2, .callout--accent .h3 { color: var(--olive-700); }

.examples { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; counter-reset: ex; }
.example { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; position: relative; }
.example-situation { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--olive-700); margin-bottom: 4px; }
.example-en { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.example-en p { margin: 0; font-size: 1.06rem; font-weight: 500; color: var(--ink); }
.example-en .icon-btn { margin-top: -4px; }
.example-pt { margin: 6px 0 0; color: var(--muted); font-size: .95rem; transition: filter .2s, opacity .2s; }
.examples.hide-pt .example-pt { filter: blur(5px); opacity: .6; cursor: pointer; user-select: none; }
.examples.hide-pt .example-pt.is-revealed { filter: none; opacity: 1; }

.variations { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.variations li { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 4px 16px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.variations strong { color: var(--brown); font-weight: 600; }
.variations span { color: var(--ink-2); font-size: .95rem; }

.mistakes { display: grid; gap: 12px; margin-top: 12px; }
.mistake { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.mistake p { margin: 0; display: flex; gap: 8px; align-items: flex-start; }
.mistake .icon { width: 18px; height: 18px; margin-top: 3px; }
.mistake-wrong { color: var(--err); text-decoration: line-through; text-decoration-color: rgba(176, 58, 46, .45); }
.mistake-wrong .icon { color: var(--err); }
.mistake-right { color: var(--ok); font-weight: 600; margin-top: 4px !important; }
.mistake-why { color: var(--ink-2); font-size: .94rem; margin-top: 8px !important; padding-top: 8px; border-top: 1px dashed var(--line); display: block !important; }

.prev-next { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; margin-top: 28px; align-items: stretch; }
.prev-next a { display: flex; flex-direction: column; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); }
.prev-next a:hover { border-color: var(--brown); }
.prev-next small { color: var(--muted); font-size: .78rem; }
.prev-next span { font-family: var(--font-serif); font-weight: 600; }
.prev-next .next { text-align: right; }
.prev-next .random { flex-direction: row; align-items: center; gap: 6px; font-weight: 600; color: var(--brown); }

.exp-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); }
.aside-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.aside-box--muted { background: var(--surface-2); }
.aside-box p:last-child { margin: 0; }
.related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.related-list li { display: flex; align-items: flex-start; gap: 4px; }
.related-list li > a:first-child { flex: 1; display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.related-list li > a:first-child:hover { background: var(--brown-50); }
.related-list strong { font-family: var(--font-serif); color: var(--brown); font-weight: 600; }
.related-list small { color: var(--ink-2); font-size: .83rem; line-height: 1.4; }
.related-compare { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--muted); margin-top: 6px; }
.related-compare:hover { background: var(--surface-2); color: var(--brown); }
.aside-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .93rem; }

/* ---------- Quiz ---------- */
.quiz-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.quiz-prompt { font-weight: 600; font-size: 1.08rem; margin-bottom: 8px; }
.quiz-sentence { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.5; background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px 16px; }
.gap { display: inline-block; min-width: 90px; border-bottom: 2px solid var(--brown); color: transparent; }
.gap.is-filled { color: var(--brown); font-weight: 600; border-bottom-color: var(--ok); }
.quiz-options { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-top: 14px; }
.quiz-option {
  text-align: left; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface);
  cursor: pointer; font-weight: 500; line-height: 1.4; transition: .15s; min-height: 52px;
}
.quiz-option:hover:not(:disabled) { border-color: var(--brown); background: var(--brown-50); }
.quiz-option:disabled { cursor: default; }
.quiz-option.is-correct { border-color: var(--ok); background: var(--ok-100); color: #28521c; }
.quiz-option.is-wrong { border-color: var(--err); background: var(--err-100); color: #7f2419; }
.quiz-option.is-dim { opacity: .55; }
.quiz-feedback { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); }
.quiz-feedback.is-correct { background: var(--ok-100); }
.quiz-feedback.is-wrong { background: var(--err-100); }
.quiz-feedback p { margin: 0 0 4px; }
.quiz-feedback p:first-child { font-weight: 700; }
.quiz-feedback a { font-weight: 600; }

.exercises { margin-top: 12px; }
.exercise-setup { display: grid; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.mode-picker { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.mode-picker legend { font-weight: 700; margin-bottom: 10px; }
.mode-option input { position: absolute; opacity: 0; pointer-events: none; }
.mode-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; height: 100%; transition: .15s; }
.mode-card .icon { color: var(--olive-700); margin-bottom: 4px; }
.mode-card small { color: var(--ink-2); }
.mode-option input:checked + .mode-card { border-color: var(--brown); background: var(--brown-50); }
.mode-option input:focus-visible + .mode-card { outline: 3px solid var(--focus); outline-offset: 2px; }
.exercise-filters { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.exercise-filters label, .compare-form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.exercise-filters select, .compare-form select { width: 100%; color: var(--ink); font-weight: 400; font-size: .95rem; }
.exercise-setup > .btn { justify-self: start; }
.check-inline { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.check-inline input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brown); flex: none; }
.quiz { margin-top: 8px; }
.quiz-top { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-bottom: 14px; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.progress-bar { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--olive), var(--brown)); border-radius: 999px; transition: width .3s; }
.quiz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.quiz-card .quiz-expr { font-size: .82rem; color: var(--muted); margin: 0 0 6px; }
.quiz-result { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 20px; }
.quiz-result .score-big { font: 750 3.4rem/1 var(--font-serif); color: var(--brown); margin: 8px 0; }
.quiz-result ul { list-style: none; padding: 0; margin: 20px auto; max-width: 560px; text-align: left; display: grid; gap: 6px; }
.quiz-result li { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: .93rem; }
.quiz-result li .icon { width: 18px; height: 18px; }
.quiz-result li.ok .icon { color: var(--ok); }
.quiz-result li.bad .icon { color: var(--err); }
.quiz-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.guide-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.guide-item p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* ---------- Comparar ---------- */
.compare-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 16px 0 24px; }
.insights ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.compare-table-wrap { overflow-x: auto; margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; border-collapse: collapse; min-width: calc(140px + var(--cols) * 220px); }
.compare-table th, .compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .94rem; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table thead th { background: var(--surface-2); font-family: var(--font-serif); font-size: 1.2rem; }
.compare-table thead th a { color: var(--brown); text-decoration: none; }
.compare-table thead th .icon-btn { display: inline-grid; vertical-align: middle; }
.compare-table tbody th { width: 140px; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); position: sticky; left: 0; background: var(--surface); }
.compare-table td + td, .compare-table th + td { border-left: 1px solid var(--line); }
.compare-table s { color: var(--err); }
.swipe-hint { display: none; margin: 16px 0 -8px; }
@media (max-width: 700px) { .swipe-hint { display: block; } }
.suggest-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); font-family: var(--font-serif); font-weight: 600; }
.suggest-card:hover { border-color: var(--brown); color: var(--brown); }

.compare-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--ink); color: #fff; box-shadow: 0 -6px 30px rgba(0, 0, 0, .18); animation: slideUp .2s ease-out; }
@keyframes slideUp { from { transform: translateY(100%); } }
.compare-tray-inner { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.compare-tray-label { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; }
.compare-tray-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.compare-tray-list li { display: flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 3px 4px 3px 12px; font-size: .88rem; }
.compare-tray-list button { background: none; border: 0; color: #fff; cursor: pointer; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.compare-tray-list button:hover { background: rgba(255, 255, 255, .2); }
.compare-tray-list .icon { width: 14px; height: 14px; }
.compare-tray .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.compare-tray .btn--primary { background: var(--olive); }
.compare-tray .btn--primary:hover { background: var(--olive-700); }
body.has-tray { padding-bottom: 72px; }

/* ---------- Expressão do dia ---------- */
.daily-feature { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); margin-top: 12px; }
.daily-feature-title { font-size: clamp(2rem, 5vw, 3rem); margin: 8px 0 12px; }
.daily-feature h3 { margin-top: 24px; }
.daily-streak { background: var(--olive-50); border-radius: var(--radius); padding: 24px; text-align: center; align-self: start; color: var(--olive-700); }
.daily-streak .icon { margin: 0 auto 8px; }
.streak-number { font-size: 1rem; margin: 0 0 6px; color: var(--ink); }
.streak-number strong { display: block; font: 750 2.8rem/1 var(--font-serif); color: var(--brown); }
.past-days { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.past-days li { display: grid; grid-template-columns: 190px 1fr; gap: 12px; align-items: baseline; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.past-date { font-size: .85rem; color: var(--muted); }
.past-days a { text-decoration: none; color: var(--ink); }
.past-days a strong { font-family: var(--font-serif); color: var(--brown); margin-right: 6px; }
.past-days a:hover strong { text-decoration: underline; }

/* ---------- Favoritos ---------- */
.progress-panel { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 16px 0 20px; }
.progress-item strong { display: block; font: 750 1.8rem/1 var(--font-serif); color: var(--brown); }
.progress-item span { font-size: .85rem; color: var(--muted); }
.progress-bar-wrap { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.progress-bar-wrap .progress-bar { grid-column: 1; }
.progress-bar-wrap > span:first-child { grid-column: 1 / -1; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--brown); border-bottom-color: var(--brown); }
.favorites-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- Páginas de texto ---------- */
.prose-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; margin-top: 12px; }
.prose { max-width: 760px; font-size: 1.03rem; color: var(--ink-2); }
.prose h2 { margin-top: 1.8em; color: var(--ink); font-size: 1.4rem; }
.prose ul { display: grid; gap: 6px; }
.prose-aside { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
.numbers { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.numbers strong { font: 700 1.3rem var(--font-serif); color: var(--brown); margin-right: 4px; }
.table-wrap { overflow-x: auto; }
.simple-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.simple-table th, .simple-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.simple-table th { background: var(--surface-2); color: var(--ink); }

/* Formulário */
.contact-form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.form-row { display: grid; gap: 6px; }
.form-row > label { font-weight: 600; font-size: .92rem; }
.form-row input[type="text"], .form-row input[type="email"], .form-row textarea, .form-row select { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--bg); }
.form-row input:focus, .form-row textarea:focus { border-color: var(--olive); outline: none; box-shadow: 0 0 0 3px rgba(127, 127, 47, .15); }
.form-row [aria-invalid="true"] { border-color: var(--err); }
.form-row select { height: 44px; }
.field-error { color: var(--err); font-size: .87rem; margin: 0; }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 16px; }
.alert .icon { margin-top: 2px; }
.alert--success { background: var(--ok-100); color: #28521c; }
.alert--error { background: var(--err-100); color: #7f2419; }

/* Anúncio */
.ad-slot { grid-column: 1 / -1; margin: 28px auto; max-width: var(--container); padding: 0 16px; text-align: center; min-height: 100px; }
.ad-label { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* ---------- Rodapé ---------- */
.site-footer { margin-top: 80px; background: #2A2018; color: #D9CCBC; padding: 48px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px; }
.site-footer h2 { font: 700 .78rem var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.site-footer a, .site-footer .linklike { color: #D9CCBC; text-decoration: none; }
.site-footer a:hover, .site-footer .linklike:hover { color: #fff; text-decoration: underline; }
.brand--footer .brand-text strong { color: #fff; }
.brand--footer .brand-text small { color: #B7A898; }
.footer-about p { margin-top: 14px; color: #B7A898; max-width: 40ch; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 18px; color: #9C8D7E; font-size: .85rem; }
.dev-notice { margin-top: 10px; color: #F2C48D; }

/* Cookie banner e toast */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; display: flex; justify-content: center; }
.cookie-inner { max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px 18px; display: flex; gap: 16px; align-items: center; }
.cookie-inner p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.cookie-actions { display: flex; gap: 8px; flex: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .92rem; box-shadow: var(--shadow-lg); animation: fadeUp .2s ease-out; max-width: calc(100% - 32px); }
body.has-tray .toast { bottom: 88px; }
@keyframes fadeUp { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1100px) {
  .main-nav a span { display: none; }
  .main-nav a .icon { display: block; }
  .main-nav a { padding: 10px; }
  .main-nav a .count-pill { display: inline-grid; position: absolute; top: 0; right: -2px; min-width: 17px; height: 17px; font-size: .65rem; padding: 0 4px; }
  .main-nav a .count-pill[hidden] { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .header-inner { flex-wrap: wrap; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .brand-text small { display: none; }
  .brand img { width: 34px; height: 34px; }
  .header-search { order: 5; flex-basis: 100%; max-width: none; }
  .hide-mobile { display: none; }
  .random-btn { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .main-nav { order: 6; flex-basis: 100%; display: none; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 4px 0 8px; }
  .main-nav a span { display: inline; }
  .main-nav a { padding: 12px 10px; font-size: 1rem; }
  .main-nav a .count-pill { position: static; }

  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 32px; padding-bottom: 32px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }

  .explore-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .explore-sidebar { position: static; max-height: none; overflow: visible; }
  .filters-toggle { display: flex; }
  .filters-panel { display: none; margin-top: 10px; }
  .filters-panel.is-open { display: block; }

  .exp-hero { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
  .exp-facts { grid-template-columns: 1fr 1fr; }
  .exp-layout { grid-template-columns: minmax(0, 1fr); }
  .exp-aside { position: static; }
  .toc { top: var(--header-h); overflow-x: auto; flex-wrap: nowrap; margin: 0 -16px 8px; padding: 8px 16px; }

  .daily-feature { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
  .prose-layout { grid-template-columns: minmax(0, 1fr); }
  .prose-aside { position: static; }
  .compare-form { grid-template-columns: 1fr; }
  .compare-form .btn { justify-self: stretch; }
  .progress-panel { grid-template-columns: repeat(3, 1fr); }
  .progress-bar-wrap { grid-column: 1 / -1; }
  .category-head { grid-template-columns: 1fr; gap: 12px; }
  .category-head-icon { width: 64px; height: 64px; border-radius: 18px; }
  .category-head-icon .icon { width: 32px; height: 32px; }
}

@media (max-width: 600px) {
  body { font-size: .98rem; }
  .section { margin-top: 40px; }
  .hero-search { padding-left: 40px; }
  .hero-search .btn { padding: 10px 14px; }
  .daily-card { padding: 20px; }
  .exp-facts { grid-template-columns: minmax(0, 1fr); }
  .exp-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .exp-actions .btn { padding-left: 10px; padding-right: 10px; white-space: normal; text-align: center; }
  .variations li { grid-template-columns: 1fr; }
  .prev-next { grid-template-columns: 1fr 1fr; }
  .prev-next .random { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .past-days li { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions .btn { flex: 1; }
  .quiz-card { padding: 18px 16px; }
  .quiz-top { grid-template-columns: auto auto; }
  .quiz-top .progress-bar { grid-column: 1 / -1; grid-row: 2; }
  .refine-label { min-width: 0; width: 100%; }
  .exercise-setup { padding: 18px; }
  .exercise-setup > .btn { justify-self: stretch; }
  .contact-form { padding: 18px; }
  .contact-form .btn { justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .exp-actions, .toc, .exp-aside, .prev-next, .compare-tray, .cookie-banner, .ad-slot, .quiz-card { display: none !important; }
  body { background: #fff; }
}
