/* Daily's Treasures — identidade visual "arquivo editorial claro"
   Tipografia: Fraunces (títulos) + Inter (texto). Paleta: papel, tinta, âmbar e petróleo. */

:root {
  --paper: #f6f1e8;
  --paper-2: #fcfaf5;
  --paper-3: #efe8db;
  --ink: #1c1915;
  --ink-2: #463f37;
  --muted: #7a7066;
  --line: #e2dacc;
  --line-2: #cfc5b3;
  --amber: #b5712a;
  --amber-2: #8f561d;
  --amber-soft: #f6e7d2;
  --teal: #1e5a66;
  --teal-2: #164650;
  --teal-soft: #e1edef;
  --ok: #2f6b3a;
  --radius: 14px;
  --radius-s: 8px;
  --shadow: 0 1px 2px rgba(28, 25, 21, .06), 0 8px 24px -12px rgba(28, 25, 21, .18);
  --shadow-lg: 0 2px 4px rgba(28, 25, 21, .06), 0 24px 48px -24px rgba(28, 25, 21, .28);
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(181, 113, 42, .10), transparent 60%),
    radial-gradient(900px 400px at -10% 20%, rgba(30, 90, 102, .08), transparent 60%);
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-2); }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); font-variation-settings: "opsz" 144, "SOFT" 30; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
small { font-size: .875em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.narrow { max-width: 780px; }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--tight { padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.eyebrow { font-family: var(--font-sans); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-2); margin-bottom: .6rem; }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: .25rem 0 0; color: var(--muted); }

/* Botões */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.15rem; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600; font-size: .95rem; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.btn:hover { background: #2d2823; color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn--amber { background: var(--amber); border-color: var(--amber); }
.btn--amber:hover { background: var(--amber-2); }
.btn--sm { padding: .45rem .85rem; font-size: .85rem; }
.btn svg { width: 18px; height: 18px; }

/* Cabeçalho */
.header { position: sticky; top: 0; z-index: 50; background: rgba(246, 241, 232, .88); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand__mark { width: 38px; height: 38px; flex: 0 0 auto; }
.brand__name { font-family: var(--font-serif); font-weight: 700; font-size: 1.25rem; line-height: 1; letter-spacing: -.01em; }
.brand__tag { display: block; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .25rem; font-family: var(--font-sans); font-weight: 600; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .5rem .75rem; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper-3); color: var(--ink); }
.nav a[aria-current="page"] { font-weight: 600; }
.nav__cta { margin-left: .4rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); background: var(--paper-2); border-radius: 10px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: calc(var(--header-h) + 1px); left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper-2); border-bottom: 1px solid var(--line); padding: .75rem var(--gutter) 1rem; box-shadow: var(--shadow-lg); }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem .75rem; border-radius: 10px; }
  .nav__cta { margin: .4rem 0 0; justify-content: center; }
  .brand__tag { display: none; }
}

/* Breadcrumbs */
.crumbs { font-size: .85rem; color: var(--muted); margin: 1.2rem 0 1rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem .4rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); }

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.hero h1 { max-width: 14ch; }
.hero h1 em { font-style: italic; color: var(--amber-2); font-variation-settings: "opsz" 144, "SOFT" 100; }
.hero__search { margin-top: 1.6rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; }
.stat b { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 600; line-height: 1; color: var(--ink); }
.stat span { font-size: .8rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: .35rem; font-weight: 600; }
.hero__mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hero__mosaic a { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--paper-3); }
.hero__mosaic a:nth-child(1) { grid-row: span 2; aspect-ratio: auto; }
.hero__mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hero__mosaic a:hover img { transform: scale(1.04); }
.hero__mosaic span { position: absolute; left: 10px; bottom: 10px; background: rgba(28, 25, 21, .78); color: #fff; font-size: .75rem; font-weight: 600; padding: .3rem .6rem; border-radius: 999px; }
@media (max-width: 800px) { .hero__grid { grid-template-columns: 1fr; } .hero__mosaic { grid-template-columns: repeat(3, 1fr); } .hero__mosaic a:nth-child(1) { grid-row: auto; aspect-ratio: 1; } }

/* Busca */
.search { display: flex; align-items: stretch; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 4px 4px 16px; box-shadow: var(--shadow); max-width: 620px; }
.search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.search svg { width: 20px; height: 20px; align-self: center; color: var(--muted); flex: 0 0 auto; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .7rem .75rem; font-size: 1rem; color: var(--ink); outline: none; }
.search input::placeholder { color: var(--muted); }
.search button { border-radius: 999px; }

/* Grade de cards */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card__media { aspect-ratio: 3 / 2; background: var(--paper-3); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card__meta { display: flex; align-items: center; gap: .5rem; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-2); }
.card__meta .tag { margin-left: auto; }
.card h3 { margin: 0; font-size: 1.28rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { margin: 0; color: var(--ink-2); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; padding-top: .6rem; font-size: .82rem; color: var(--muted); display: flex; gap: .6rem; align-items: center; }
.card__foot .dot::before { content: "·"; margin-right: .6rem; }
.card--mini .card__media { aspect-ratio: 16 / 9; }

.tag { display: inline-flex; align-items: center; gap: .3rem; background: var(--teal-soft); color: var(--teal-2); font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: .22rem .55rem; border-radius: 999px; text-transform: none; white-space: nowrap; }
.tag--amber { background: var(--amber-soft); color: var(--amber-2); }
.tag--ink { background: var(--ink); color: #fff; }

/* Favoritar */
.fav { position: absolute; z-index: 2; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .6); background: rgba(252, 250, 245, .9); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow); transition: transform .15s ease; }
.fav:hover { transform: scale(1.08); }
.fav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.fav[aria-pressed="true"] { background: var(--amber); color: #fff; border-color: var(--amber); }
.fav[aria-pressed="true"] svg { fill: currentColor; }
.fav--inline { position: static; width: auto; height: auto; padding: .55rem 1rem; gap: .5rem; border: 1px solid var(--line-2); font-weight: 600; font-size: .9rem; border-radius: 999px; }

/* Categorias */
.cats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.cat { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.15rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.cat:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.cat__icon { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px; background: var(--amber-soft); color: var(--amber-2); display: grid; place-items: center; }
.cat__icon svg { width: 24px; height: 24px; }
.cat h3 { margin: 0 0 .2rem; font-size: 1.12rem; }
.cat p { margin: 0; font-size: .9rem; color: var(--muted); }
.cat small { display: block; margin-top: .45rem; color: var(--amber-2); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }

/* Faixas */
.band { background: var(--ink); color: #efe9dd; border-radius: calc(var(--radius) + 6px); padding: clamp(1.6rem, 4vw, 2.8rem); display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
.band h2 { color: #fff; }
.band p { color: #cfc6b8; }
.band .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.band .btn--ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.band__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.band__list li { display: flex; gap: .7rem; align-items: baseline; padding: .7rem .9rem; background: rgba(255, 255, 255, .06); border-radius: 10px; }
.band__list b { font-family: var(--font-serif); color: #f0c48a; font-size: 1.1rem; min-width: 5.5ch; }
.band__list a { color: #fff; text-decoration: none; }
.band__list a:hover { text-decoration: underline; }
@media (max-width: 800px) { .band { grid-template-columns: 1fr; } }

/* Biblioteca: filtros */
.toolbar { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin: 1rem 0 1.2rem; }
.filters label { display: flex; flex-direction: column; gap: .3rem; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.filters select, .sort select { font: inherit; font-size: .95rem; padding: .6rem 2.2rem .6rem .8rem; border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a7066' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .7rem center; appearance: none; color: var(--ink); }
.sort { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); }
@media (max-width: 800px) { .filters { grid-template-columns: repeat(2, 1fr); } .toolbar { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1.2rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper-2); color: var(--ink-2); font-size: .85rem; font-weight: 500; text-decoration: none; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip__x { font-weight: 700; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.empty { text-align: center; padding: 3rem 1rem; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.empty h3 { color: var(--ink); }

/* Verbete */
.entry-head { padding-top: .5rem; }
.entry-head__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.entry-head h1 { margin-bottom: .6rem; }
.entry-head .sub { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); color: var(--ink-2); line-height: 1.4; margin-bottom: 1.2rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.meta-row a.tag { text-decoration: none; }
.meta-row a.tag:hover { background: var(--teal); color: #fff; }
.entry-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-3); box-shadow: var(--shadow-lg); }
.figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.figure figcaption { font-size: .78rem; color: var(--muted); padding: .6rem .9rem; background: var(--paper-2); border-top: 1px solid var(--line); }
@media (max-width: 860px) { .entry-head__grid { grid-template-columns: 1fr; } .entry-head .figure { order: -1; } }

.entry { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); padding-top: clamp(2rem, 4vw, 3rem); }
.entry__main { min-width: 0; max-width: 72ch; }
.entry__main > section { margin-bottom: clamp(2.2rem, 5vw, 3.2rem); scroll-margin-top: calc(var(--header-h) + 20px); }
.entry__main h2 { display: flex; align-items: baseline; gap: .7rem; padding-bottom: .5rem; border-bottom: 2px solid var(--ink); margin-bottom: 1.1rem; }
.entry__main h2 .num { font-family: var(--font-sans); font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--amber-2); }
.entry__main p { font-size: 1.07rem; line-height: 1.75; }
.entry__main .drop::first-letter { font-family: var(--font-serif); font-size: 3.4em; float: left; line-height: .85; padding: .08em .12em 0 0; color: var(--amber-2); font-weight: 600; }
.entry__aside { position: relative; }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 1.2rem; }
@media (max-width: 960px) { .entry { grid-template-columns: 1fr; } .aside-sticky { position: static; } }

.panel { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.panel h3 { font-size: .8rem; font-family: var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--amber-2); margin-bottom: .8rem; }
.ficha { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ficha th, .ficha td { text-align: left; vertical-align: top; padding: .5rem 0; border-top: 1px solid var(--line); }
.ficha th { font-weight: 600; color: var(--muted); width: 42%; padding-right: .6rem; }
.ficha tr:first-child th, .ficha tr:first-child td { border-top: 0; }
.toc { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.toc a { display: flex; gap: .6rem; padding: .4rem .5rem; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .92rem; }
.toc a:hover { background: var(--paper-3); color: var(--ink); }
.toc a b { color: var(--amber-2); font-size: .72rem; font-weight: 700; letter-spacing: .08em; min-width: 2.2ch; padding-top: .25em; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1rem; }
.steps li { position: relative; padding: 1.1rem 1.2rem 1.1rem 4.2rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 1.1rem; top: 1rem; font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; color: var(--amber); line-height: 1; }
.steps h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.steps p { margin: 0; font-size: 1rem !important; }

.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.facts li { padding: 1rem 1.1rem 1rem 1.1rem; border-left: 4px solid var(--amber); background: var(--amber-soft); border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: .97rem; line-height: 1.55; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }

.callout { background: var(--teal-soft); border: 1px solid #c9dde1; border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.callout h2 { border-bottom-color: var(--teal) !important; }
.callout p:last-child { margin-bottom: 0; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 1.6rem; border-left: 2px solid var(--line-2); display: grid; gap: 1.1rem; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.6rem - 7px); top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 3px solid var(--amber); }
.timeline time, .timeline .yr { display: block; font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.timeline p { margin: .1rem 0 0; font-size: 1rem !important; color: var(--ink-2); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 480px; }
.compare caption { text-align: left; font-family: var(--font-serif); font-weight: 600; font-size: 1.1rem; padding: .9rem 1rem .5rem; }
.compare th, .compare td { padding: .7rem 1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.compare thead th { background: var(--paper-3); color: var(--ink); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; border-top: 0; }
.compare tbody th { font-weight: 600; color: var(--ink-2); width: 26%; }

.faq details { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--paper-2); margin-bottom: .6rem; }
.faq summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .faq__a { padding: 0 1.1rem 1rem; color: var(--ink-2); }
.faq .faq__a p { font-size: 1rem !important; margin: 0; }

.sources { font-size: .92rem; color: var(--ink-2); }
.sources li { margin-bottom: .35rem; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.pager a { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); text-decoration: none; color: var(--ink); }
.pager a:hover { border-color: var(--ink); }
.pager small { color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.pager b { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; }
.pager a:last-child { text-align: right; align-items: flex-end; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager a:last-child { text-align: left; align-items: flex-start; } }

/* Linha do tempo geral */
.era { margin-bottom: 2.5rem; scroll-margin-top: calc(var(--header-h) + 20px); }
.era__head { display: flex; align-items: baseline; gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: .5rem; margin-bottom: 1.2rem; }
.era__head h2 { margin: 0; }
.era__head span { color: var(--muted); font-size: .9rem; }
.era-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 2rem; position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; background: var(--paper); padding: .5rem 0; }
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.tl-item { display: flex; gap: .8rem; align-items: center; padding: .7rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-s); text-decoration: none; color: var(--ink); }
.tl-item:hover { border-color: var(--ink); }
.tl-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: var(--paper-3); }
.tl-item b { display: block; font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; line-height: 1.2; }
.tl-item span { font-size: .8rem; color: var(--muted); }
.tl-item .yr { color: var(--amber-2); font-weight: 600; }

/* Descobrir */
.discover { text-align: center; max-width: 720px; margin-inline: auto; }
.discover__card { margin-top: 2rem; text-align: left; }
.discover__card .figure img { aspect-ratio: 16 / 9; }
.discover__card .body { padding: 1.4rem 1.5rem; background: var(--paper-2); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.discover__card .figure { border-radius: var(--radius) var(--radius) 0 0; box-shadow: none; }

/* Páginas de texto */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose p, .prose li { font-size: 1.05rem; line-height: 1.75; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1rem 0 1.5rem; }
.prose th, .prose td { text-align: left; padding: .6rem .8rem; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--paper-3); }
.prose .note { background: var(--amber-soft); border-left: 4px solid var(--amber); padding: 1rem 1.2rem; border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.page-head { padding: clamp(2rem, 5vw, 3.5rem) 0 1rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.page-head h1 { margin-bottom: .4rem; }
.page-head .lead { margin: 0; }

/* Formulário */
.form { display: grid; gap: 1rem; max-width: 640px; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; }
.form input, .form textarea, .form select { font: inherit; padding: .75rem .9rem; border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper-2); color: var(--ink); }
.form input:focus, .form textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 4px var(--teal-soft); }
.form textarea { min-height: 160px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form .hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Rodapé */
.footer { margin-top: clamp(3rem, 8vw, 6rem); background: var(--ink); color: #cfc6b8; padding: 3rem 0 2rem; }
.footer a { color: #efe9dd; text-decoration: none; }
.footer a:hover { color: #f0c48a; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4 { color: #fff; font-family: var(--font-sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .95rem; }
.footer .brand { color: #fff; margin-bottom: .8rem; }
.footer .brand__tag { color: #a89e8f; }
.footer p { font-size: .92rem; max-width: 40ch; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.5rem; padding-top: 1.3rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: #a89e8f; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* Banner de cookies */
.cookie { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(100% - 32px, 720px); background: var(--paper-2); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1rem 1.2rem; z-index: 90; display: none; gap: 1rem; align-items: center; flex-wrap: wrap; }
.cookie.is-visible { display: flex; }
.cookie p { margin: 0; flex: 1 1 320px; font-size: .9rem; color: var(--ink-2); }
.cookie__actions { display: flex; gap: .5rem; }

/* Utilidades */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 999px; font-size: .9rem; opacity: 0; transition: opacity .2s, transform .2s; z-index: 95; pointer-events: none; }
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.hidden { display: none !important; }
.count-badge { display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; padding: 0 .35em; border-radius: 999px; background: var(--amber); color: #fff; font-size: .72rem; font-weight: 700; margin-left: .3rem; }
.ad-slot { min-height: 0; }
@media print { .header, .footer, .cookie, .fav, .nav-toggle, .pager, .entry-actions { display: none !important; } body { background: #fff; } }
