/* mycatspacecafe.com — folha de estilo única.
   Paleta do projeto: espresso #3B2A22, creme #F7EFE3, verde-sálvia #8FA98B, rosa-queimado #D9826B.
   Fontes (hospedadas aqui): Young Serif (títulos) e Work Sans (texto). */

@font-face { font-family: "Young Serif"; src: url("/assets/fonts/young-serif-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/assets/fonts/work-sans-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/assets/fonts/work-sans-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --espresso: #3B2A22;
  --creme: #F7EFE3;
  --salvia: #8FA98B;
  --rosa: #D9826B;

  --creme-2: #EFE3D1;
  --creme-3: #E5D5BC;
  --papel: #FFFAF2;
  --linha: #DCCBB2;
  --linha-forte: #A8927A;
  --texto: #3B2A22;
  --texto-suave: #5E4A3F;
  --link: #9B4630;
  --link-hover: #6F2F1E;
  --salvia-clara: #DCE5D6;
  --salvia-escura: #3F5A3E;
  --erro: #9B2C1F;
  --erro-fundo: #FBE4DE;

  --c1: #D9826B; --c1-ink: #3B2A22; --c1-soft: #F3D5CA;
  --c2: #3B2A22; --c2-ink: #F7EFE3; --c2-soft: #EFE3D1;
  --c3: #D8B98F; --c3-ink: #3B2A22; --c3-soft: #EBD9BC;
  --c4: #8FA98B; --c4-ink: #3B2A22; --c4-soft: #DCE5D6;
  --c5: #6E5A4E; --c5-ink: #F7EFE3; --c5-soft: #E7DDD0;

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --largura: 72rem;
  --medida: 68ch;
  --raio: 6px;
  --borda: 2px solid var(--espresso);
  --sombra: 4px 4px 0;
}

.cor-1 { --c: var(--c1); --c-ink: var(--c1-ink); --c-soft: var(--c1-soft); }
.cor-2 { --c: var(--c2); --c-ink: var(--c2-ink); --c-soft: var(--c2-soft); }
.cor-3 { --c: var(--c3); --c-ink: var(--c3-ink); --c-soft: var(--c3-soft); }
.cor-4 { --c: var(--c4); --c-ink: var(--c4-ink); --c-soft: var(--c4-soft); }
.cor-5 { --c: var(--c5); --c-ink: var(--c5-ink); --c-soft: var(--c5-soft); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--creme); color: var(--texto);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  font-kerning: normal; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--espresso); outline-offset: 3px; border-radius: 2px; box-shadow: 0 0 0 6px var(--creme); }
main:focus { outline: none; }
::selection { background: var(--rosa); color: var(--espresso); }

h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
h1 { font-family: var(--serif); font-size: clamp(2.15rem, 1.35rem + 3.7vw, 3.9rem); line-height: 1.06; letter-spacing: -0.012em; }
h2 { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.15rem); line-height: 1.15; }
h3 { font-family: var(--sans); font-weight: 700; font-size: 1.2rem; line-height: 1.3; }
h4 { font-family: var(--sans); font-weight: 650; font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, p, li, dd, dt, td, th, figcaption { overflow-wrap: break-word; }
h1 { overflow-wrap: anywhere; }

.oculto-visual { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pular { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--espresso); color: var(--creme); padding: 0.6rem 1rem; border-radius: var(--raio); }
.pular:focus { top: 1rem; }
.miolo { width: min(100% - 2rem, var(--largura)); margin-inline: auto; }
.lide { font-size: 1.2rem; line-height: 1.55; color: var(--texto-suave); max-width: 46rem; }
/* Título de seção em forma de abinha de pasta: a abinha fica sobre uma linha que corre a largura toda. */
.titulo-secao { margin: 0 0 2rem; border-bottom: 3px solid var(--espresso); font-family: var(--serif); font-weight: 400; line-height: 1.1; font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem); }
.titulo-secao > span { display: inline-block; position: relative; margin-bottom: -3px; padding: 0.55rem 1.4rem 0.45rem; background: var(--tab-fundo, var(--creme)); border: 3px solid var(--espresso); border-bottom-color: var(--tab-fundo, var(--creme)); border-radius: 10px 10px 0 0; }
.relacionados { --tab-fundo: var(--creme-2); }
.titulo-bloco { font-weight: 700; font-size: 1rem; margin: 0 0 0.6rem; }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.55rem 1.15rem; border: var(--borda); border-radius: var(--raio);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  background: var(--papel); color: var(--espresso); box-shadow: 3px 3px 0 var(--espresso);
}
.botao:hover { color: var(--espresso); background: var(--creme-2); }
.botao:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--espresso); }
.botao-primario { background: var(--espresso); color: var(--creme); box-shadow: 3px 3px 0 var(--rosa); }
.botao-primario:hover { background: var(--rosa); color: var(--espresso); box-shadow: 3px 3px 0 var(--espresso); }
.botao-leve { background: transparent; }
.botao[aria-pressed="true"] { background: var(--salvia); }
.botao[hidden] { display: none; }

/* ---------- Topo e rodapé ---------- */
.topo { border-bottom: 3px solid var(--espresso); background: var(--creme); }
/* Faixa com as cores das cinco categorias: lombada do catálogo */
.topo::before { content: ""; display: block; height: 0.65rem; background: linear-gradient(90deg, var(--c1) 0 20%, var(--c2) 20% 40%, var(--c3) 40% 60%, var(--c4) 60% 80%, var(--c5) 80% 100%); border-bottom: 3px solid var(--espresso); }
.topo-in { width: min(100% - 2rem, var(--largura)); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; padding: 0.95rem 0; }
.marca { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--espresso); text-decoration: none; }
.marca:hover { color: var(--espresso); }
.marca-icone { flex: none; }
.marca-nome { font-family: var(--serif); font-size: 1.35rem; line-height: 1; letter-spacing: -0.01em; }
.menu ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.menu a { display: inline-block; padding: 0.45rem 0.8rem; color: var(--espresso); text-decoration: none; font-weight: 600; border-radius: var(--raio); border: 2px solid transparent; }
.menu a:hover { border-color: var(--espresso); background: var(--papel); }
.menu a[aria-current="page"] { background: var(--espresso); color: var(--creme); }
.contagem { display: inline-block; min-width: 1.4em; padding: 0 0.35em; margin-left: 0.25em; background: var(--rosa); color: var(--espresso); border-radius: 99px; font-size: 0.8rem; text-align: center; font-weight: 700; }
.menu a[aria-current="page"] .contagem { background: var(--creme); }

.rodape { background: var(--espresso); color: var(--creme); margin-top: 5rem; }
.rodape a { color: var(--creme); }
.rodape a:hover { color: var(--rosa); }
.rodape :focus-visible { outline-color: var(--creme); box-shadow: 0 0 0 6px var(--espresso); }
.rodape-in { width: min(100% - 2rem, var(--largura)); margin-inline: auto; padding: 3.5rem 0 2rem; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.rodape h2 { font-family: var(--sans); font-weight: 700; font-size: 1rem; margin-bottom: 0.75rem; color: var(--salvia); }
.rodape ul { list-style: none; display: grid; gap: 0.35rem; }
.rodape p { font-size: 0.95rem; max-width: 30rem; }
.marca-clara { color: var(--creme); margin-bottom: 1rem; }
.marca-clara:hover { color: var(--creme); }
.rodape-contato { margin-top: 1rem; }
.rodape .rodape-fim { width: min(100% - 2rem, var(--largura)); max-width: none; margin: 0 auto; padding: 1.25rem 0 2rem; border-top: 1px solid #5E4A3F; font-size: 0.875rem; color: #D9C9B3; }
.rodape::before { content: ""; display: block; height: 0.65rem; background: linear-gradient(90deg, var(--c1) 0 20%, var(--c2) 20% 40%, var(--c3) 40% 60%, var(--c4) 60% 80%, var(--c5) 80% 100%); border-bottom: 3px solid var(--creme); }
.pagina-home .rodape { margin-top: 0; }
@media (min-width: 62rem) { .secao-home .cartoes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Trilha ---------- */
.trilha ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.15rem 0.6rem; font-size: 0.9rem; margin-bottom: 1.25rem; color: var(--texto-suave); }
.trilha li + li::before { content: "/"; margin-right: 0.6rem; color: var(--linha-forte); }
.trilha a { color: var(--texto-suave); }

/* ---------- Ficha (abinha colorida e campos com pontilhado) ---------- */
.ficha, .mini-ficha { position: relative; background: var(--papel); border: var(--borda); border-radius: var(--raio); box-shadow: 5px 5px 0 var(--c, var(--rosa)); padding: 1.35rem 1.1rem 0.8rem; margin-top: 2rem; }
.ficha-aba { position: absolute; left: 0.9rem; top: -1.95rem; margin: 0; padding: 0.15rem 0.8rem 0.1rem; background: var(--c, var(--rosa)); color: var(--c-ink, var(--espresso)); border: var(--borda); border-bottom: 0; border-radius: var(--raio) var(--raio) 0 0; font-size: 0.82rem; font-weight: 650; line-height: 1.6; max-width: calc(100% - 1.8rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ficha-campos { margin: 0; }
.ficha-campos > div { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.28rem 0; font-size: 0.94rem; line-height: 1.4; }
.ficha-campos dt { flex: 1 1 auto; display: flex; align-items: baseline; gap: 0.5rem; color: var(--texto-suave); font-weight: 500; min-width: 0; }
.ficha-campos dt::after { content: ""; flex: 1 1 1rem; min-width: 0.75rem; border-bottom: 2px dotted var(--linha-forte); transform: translateY(-0.22em); }
.ficha-campos dd { margin: 0; flex: 0 1 auto; max-width: 64%; text-align: right; font-weight: 650; }
.ficha-campos > div.ficha-longo { flex-direction: column; gap: 0.05rem; padding: 0.4rem 0; }
.ficha-longo dt::after { display: none; }
.ficha-longo dd { max-width: none; text-align: left; font-weight: 600; }

/* ---------- Cartões de verbete ---------- */
.cartoes { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); gap: 2.5rem 1.6rem; padding-top: 0.5rem; }
.cartao { position: relative; display: flex; flex-direction: column; background: var(--papel); border: var(--borda); border-radius: var(--raio); box-shadow: var(--sombra) var(--c, var(--rosa)); margin-top: 0.4rem; }
.cartao[hidden] { display: none; }
.cartao-aba { position: absolute; left: 0.8rem; top: -1.75rem; margin: 0; padding: 0.1rem 0.7rem; background: var(--c); color: var(--c-ink); border: var(--borda); border-bottom: 0; border-radius: var(--raio) var(--raio) 0 0; font-size: 0.78rem; font-weight: 650; line-height: 1.6; max-width: calc(100% - 4.2rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cartao-link { display: flex; flex-direction: column; flex: 1; color: var(--texto); text-decoration: none; }
.cartao-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--raio); }
.cartao-link:hover .cartao-titulo { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.cartao-link:focus-visible { outline: none; }
.cartao-link:focus-visible::after { outline: 3px solid var(--espresso); outline-offset: 3px; box-shadow: 0 0 0 6px var(--creme); }
.cartao-img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-bottom: var(--borda); border-radius: 4px 4px 0 0; background: var(--c-soft); }
.cartao-titulo { font-family: var(--serif); font-size: 1.28rem; line-height: 1.2; padding: 0.95rem 1rem 0.2rem; }
.cartao-resumo { font-size: 0.95rem; line-height: 1.5; color: var(--texto-suave); padding: 0 1rem 0.8rem; }
.cartao-etiquetas { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0 1rem 1rem; margin-top: auto; }
.cartao-etiquetas li { font-size: 0.78rem; font-weight: 600; padding: 0.1rem 0.55rem; border: 1.5px solid var(--linha-forte); border-radius: 4px; background: var(--creme); }
.fav { position: absolute; right: 0.55rem; top: 0.55rem; z-index: 2; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; background: var(--creme); border: var(--borda); border-radius: var(--raio); cursor: pointer; padding: 0; }
.fav[hidden] { display: none; }
.fav svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: var(--espresso); stroke-width: 2; stroke-linejoin: round; }
.fav:hover { background: var(--c-soft); }
.fav[aria-pressed="true"] svg { fill: var(--rosa); }

@media (prefers-reduced-motion: no-preference) {
  .cartao { transition: transform 0.12s ease, box-shadow 0.12s ease; }
  .cartao:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--c); }
}

/* ---------- Página inicial ---------- */
.heroi { padding: 3rem 0 3.5rem; }
.heroi-grade { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem; align-items: center; }
.heroi h1 { font-size: clamp(2.6rem, 1.4rem + 5vw, 5rem); }
.heroi-lide { font-size: 1.25rem; line-height: 1.55; margin: 1.5rem 0 1.75rem; max-width: 34rem; color: var(--texto-suave); }
.heroi-acoes { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 0; }
.heroi-fichas { position: relative; height: 24.5rem; max-width: 30rem; margin-inline: auto; width: 100%; }
.heroi-img { position: absolute; top: 0.4rem; right: 0.4rem; width: 21.5rem; max-width: 82%; aspect-ratio: 8 / 5; object-fit: cover; background: var(--c1-soft); border: var(--borda); border-radius: var(--raio); box-shadow: 6px 6px 0 var(--rosa); rotate: 2.2deg; z-index: 0; }
.mini-ficha { position: absolute; width: 17rem; max-width: 90%; margin: 0; background: var(--papel); }
.mini-titulo { font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; margin: 0 0 0.6rem; }
.mini-1 { top: 11.4rem; left: 0.2rem; width: 18rem; rotate: -2.4deg; z-index: 1; }
/* Um único momento animado: as fichas são "distribuídas" na mesa ao abrir a página. */
@media (prefers-reduced-motion: no-preference) {
  .heroi-img, .mini-ficha { animation: distribuir 0.8s cubic-bezier(0.2, 0.8, 0.25, 1) both; }
  .mini-1 { animation-delay: 0.2s; }
}
@keyframes distribuir { from { translate: 0 2.4rem; rotate: 0deg; } }

.busca-destaque { background: var(--salvia); border-block: 3px solid var(--espresso); padding: 3rem 0; }
.busca-grade { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; align-items: start; }
.busca-destaque h2 { margin-bottom: 0.6rem; }
.busca-destaque p { margin: 0; max-width: 28rem; }
.busca-form label { display: block; font-weight: 650; margin-bottom: 0.4rem; }
.busca-linha { display: flex; gap: 0.6rem; }
.busca-linha input[type="search"], .busca-linha input[type="text"] { flex: 1; min-width: 0; }
input[type="search"], input[type="text"], input[type="email"], textarea, select {
  font: inherit; color: var(--texto); background: var(--papel); border: var(--borda); border-radius: var(--raio); padding: 0.65rem 0.85rem; min-height: 2.75rem; width: 100%;
}
select { width: auto; max-width: 100%; }
textarea { resize: vertical; min-height: 9rem; }
input::placeholder, textarea::placeholder { color: #75604F; opacity: 1; }
.atalhos { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.atalhos a { display: inline-block; padding: 0.3rem 0.8rem; border: var(--borda); border-radius: var(--raio); background: var(--papel); color: var(--espresso); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.atalhos a:hover { background: var(--creme); }

.secao-home { padding: 4rem 0 0; }
.secao-clara { padding-bottom: 0.5rem; }
.gavetas { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.6rem; }
/* Cada categoria é uma gaveta do catálogo: o que tem dentro (ilustração) e a frente com etiqueta e puxador. */
.gaveta { grid-column: span 2; position: relative; background: var(--c); color: var(--c-ink); border: var(--borda); border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra) var(--espresso); }
.gaveta:nth-child(-n+2) { grid-column: span 3; }
.gaveta a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.gaveta a::after { content: ""; position: absolute; inset: 0; }
.gaveta a:focus-visible { outline: none; }
.gaveta a:focus-visible::after { outline: 3px solid var(--espresso); outline-offset: -6px; box-shadow: inset 0 0 0 6px var(--creme); }
.gaveta img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-bottom: var(--borda); background: var(--c-soft); }
.gaveta:nth-child(-n+2) img { aspect-ratio: 2 / 1; }
.gaveta-frente { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.95rem; padding: 1.4rem 1.25rem 1.5rem; text-align: center; }
.gaveta-etiqueta { position: relative; display: flex; flex-direction: column; align-items: center; width: min(100%, 17rem); padding: 0.65rem 1.9rem 0.55rem; background: var(--papel); color: var(--espresso); border: 2px solid var(--espresso); border-radius: 4px; box-shadow: inset 0 0 0 3px var(--papel), inset 0 0 0 4.5px var(--linha-forte); }
.gaveta-etiqueta::before, .gaveta-etiqueta::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--espresso); }
.gaveta-etiqueta::before { left: 0.6rem; }
.gaveta-etiqueta::after { right: 0.6rem; }
.gaveta-nome { font-family: var(--serif); font-size: 1.3rem; line-height: 1.15; }
.gaveta-conta { margin-top: 0.15rem; font-size: 0.85rem; font-weight: 650; color: var(--texto-suave); }
.gaveta-desc { max-width: 30rem; font-size: 0.97rem; line-height: 1.5; }
.gaveta-puxador { margin-top: auto; width: 3.6rem; height: 1.05rem; background: var(--papel); border: 2px solid var(--espresso); border-radius: 99px; box-shadow: 0 3px 0 rgba(59, 42, 34, 0.5); }
.gaveta a:hover .gaveta-nome { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
@media (prefers-reduced-motion: no-preference) {
  .gaveta { transition: transform 0.12s ease, box-shadow 0.12s ease; }
  .gaveta:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--espresso); }
}

.transparencia { margin-top: 5rem; background: var(--creme-2); border-block: 3px solid var(--espresso); padding: 3.5rem 0; }
.transparencia-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.transparencia h2 { margin-bottom: 1rem; }
.transparencia-lista { list-style: none; display: grid; gap: 0.9rem; }
.transparencia-lista li { position: relative; padding-left: 2.1rem; }
.transparencia-lista li::before, .lista-check li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 1.15rem; height: 1.15rem; border: 2px solid var(--espresso); border-radius: 3px; background: var(--papel); }

/* ---------- Biblioteca ---------- */
.biblioteca { padding: 2.5rem 0 0; }
.biblioteca-topo h1 { margin-bottom: 0.6rem; }
.biblioteca-form { margin-top: 1.75rem; }
.busca-grande input[type="search"] { font-size: 1.15rem; min-height: 3.25rem; }
.busca-grande .botao { min-height: 3.25rem; }
.biblioteca-grade { display: grid; grid-template-columns: 17.5rem minmax(0, 1fr); gap: 2.5rem; margin-top: 1.75rem; align-items: start; }
.filtros { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; padding: 0 9px 9px 0; }
.filtros-corpo { padding: 1.3rem 1.15rem 0.6rem; background: var(--papel); border: var(--borda); border-radius: var(--raio); box-shadow: 5px 5px 0 var(--salvia); }
.filtro { border: 0; margin: 0 0 1.25rem; padding: 0; min-width: 0; }
.filtro legend { font-weight: 700; padding: 0; margin-bottom: 0.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { position: relative; display: inline-block; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 0.25rem 0.75rem; border: 2px solid var(--linha-forte); border-radius: var(--raio); background: var(--papel); font-size: 0.92rem; font-weight: 550; }
.chip input:checked + span { background: var(--espresso); border-color: var(--espresso); color: var(--creme); }
.chip input:focus-visible + span { outline: 3px solid var(--espresso); outline-offset: 2px; box-shadow: 0 0 0 5px var(--creme); }
.filtros-acoes { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.5rem 0 0; }
.filtros-botao, .filtros-botao[hidden] { display: none; }
.biblioteca .cartoes { grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); }
.resultados-barra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; margin-bottom: 1.5rem; padding-bottom: 0.9rem; border-bottom: 2px dotted var(--linha-forte); }
.contador { margin: 0; font-weight: 650; }
.ordem { display: flex; align-items: center; gap: 0.6rem; font-weight: 550; }
.ordem select { min-height: 2.5rem; padding: 0.4rem 0.7rem; }
.vazio { padding: 1.5rem; background: var(--papel); border: 2px dashed var(--linha-forte); border-radius: var(--raio); }
.vazio[hidden] { display: none; }
.vazio h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.vazio .cartoes { margin-top: 1.5rem; padding-top: 1.2rem; }
.biblioteca-nota { margin-top: 3.5rem; padding: 1.1rem 1.25rem; border: 2px dashed var(--linha-forte); border-radius: var(--raio); font-size: 0.95rem; color: var(--texto-suave); max-width: 52rem; }
.biblioteca-nota p { margin: 0; }

/* ---------- Páginas de texto ---------- */
.pagina-texto { padding: 2.5rem 0 0; }
.pagina-texto > h1, .pagina-texto > .texto > h1 { margin-bottom: 1rem; }
.pagina-texto > .lide { margin-bottom: 2rem; }
.texto { max-width: var(--medida); }
.texto > p, .texto li { text-wrap: pretty; }
.texto h2 { margin: 2.6rem 0 0.9rem; padding-top: 1.4rem; border-top: 2px dotted var(--linha-forte); }
.texto > h2:first-child, .texto > .lide + h2 { border-top: 0; }
.texto h3 { margin: 1.8rem 0 0.6rem; }
.texto .lide { font-size: 1.2rem; }
.lista { margin: 0 0 1.2em; padding-left: 1.3rem; }
.lista li { margin-bottom: 0.45em; padding-left: 0.2rem; }
.lista li::marker { color: var(--rosa); }
ol.lista li::marker { color: var(--espresso); font-weight: 700; }
.lista-check { list-style: none; margin: 0 0 1.2em; }
.lista-check li { position: relative; padding-left: 2.1rem; margin-bottom: 0.6em; }
.nota { margin: 1.5em 0; padding: 0.9rem 1.1rem; background: var(--c-soft, var(--creme-2)); border: var(--borda); border-radius: var(--raio); }
.nota p { margin: 0; }
.tabela-rolagem { margin: 1.5em 0; overflow-x: auto; background: var(--papel); border: var(--borda); border-radius: var(--raio); }
.tabela-rolagem:focus-visible { outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; min-width: 32rem; font-size: 0.97rem; line-height: 1.45; }
caption { text-align: left; font-weight: 700; padding: 0.8rem 1rem; border-bottom: var(--borda); background: var(--creme-2); }
th, td { text-align: left; vertical-align: top; padding: 0.65rem 1rem; border-bottom: 1px solid var(--linha); }
thead th { background: var(--c-soft, var(--creme-3)); border-bottom: var(--borda); font-weight: 700; }
tbody th { font-weight: 650; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* ---------- Glossário ---------- */
.glossario-ferramentas { margin: 1.5rem 0 2rem; display: grid; gap: 0.9rem; max-width: 40rem; }
.letras ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.letras a { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: var(--borda); border-radius: var(--raio); background: var(--papel); font-weight: 700; color: var(--espresso); text-decoration: none; }
.letras a:hover { background: var(--salvia); }
.letra-grupo { margin-bottom: 2rem; }
.letra-grupo > h2 { padding: 0.2rem 0 0.4rem; border-bottom: 3px solid var(--espresso); margin-bottom: 1.2rem; }
.termo { max-width: var(--medida); padding: 0 0 1.6rem; margin-bottom: 1.4rem; border-bottom: 2px dotted var(--linha-forte); scroll-margin-top: 1.5rem; }
.termo:target h3 { background: var(--salvia); box-shadow: 0 0 0 0.3rem var(--salvia); border-radius: 2px; }
.termo h3 { display: inline-block; font-family: var(--serif); font-weight: 400; font-size: 1.45rem; margin: 0 0 0.5rem; }
.termo p { margin-bottom: 0.5em; }
.termo-sin, .termo-ver, .termo-em { font-size: 0.93rem; color: var(--texto-suave); }
.termo-mais { font-size: 0.93rem; color: var(--texto-suave); }
.termo-mais summary { cursor: pointer; font-weight: 600; color: var(--link); width: fit-content; }
.termo-mais[open] summary { margin-bottom: 0.4rem; }
.termo-mais p { margin: 0; }
.vazio-glossario { padding: 1rem 1.25rem; border: 2px dashed var(--linha-forte); border-radius: var(--raio); }

/* ---------- Explorador de artigos ---------- */
.salto { margin: 1.5rem 0 1rem; }
.etiquetas { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.etiquetas a { display: inline-block; padding: 0.3rem 0.85rem; border: var(--borda); border-radius: var(--raio); background: var(--papel); color: var(--espresso); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.etiquetas a:hover { background: var(--c-soft, var(--salvia)); }
.grupo { margin-top: 3rem; scroll-margin-top: 1.5rem; }
.grupo h2 { display: inline-block; padding: 0.1rem 0.7rem 0.15rem; background: var(--c); color: var(--c-ink); border: var(--borda); border-radius: var(--raio); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
.grupo h2 a { color: inherit; text-decoration: none; }
.grupo h2 a:hover { text-decoration: underline; }
.grupo-desc { margin: 0.75rem 0 1rem; color: var(--texto-suave); max-width: 46rem; }
.indice-artigos { list-style: none; display: grid; gap: 0; border-top: 2px solid var(--espresso); }
.indice-artigos li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 1.5rem; padding: 0.9rem 0; border-bottom: 2px dotted var(--linha-forte); }
.indice-titulo { font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; color: var(--texto); }
.indice-resumo { grid-column: 1; color: var(--texto-suave); font-size: 0.95rem; line-height: 1.5; }
.indice-meta { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 0.85rem; font-weight: 600; text-align: right; color: var(--texto-suave); max-width: 14rem; }

/* ---------- Categoria ---------- */
.categoria-topo { background: var(--c-soft); border-bottom: 3px solid var(--espresso); padding: 2.5rem 0 3rem; }
.categoria-grade { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2.5rem; align-items: center; }
.categoria-topo h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); margin-bottom: 1rem; }
.categoria-img { width: 100%; border: var(--borda); border-radius: var(--raio); box-shadow: 6px 6px 0 var(--c); background: var(--c-soft); aspect-ratio: 8 / 5; object-fit: cover; }
.categoria-texto { padding-top: 3rem; }
.categoria-lista { margin-top: 3.5rem; }
.categoria-rodape { margin-top: 2rem; }

/* ---------- Verbete ---------- */
.artigo-topo { background: var(--c-soft); border-bottom: 3px solid var(--espresso); padding: 2.25rem 0 2.25rem; }
.artigo-topo h1 { max-width: 20ch; font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); }
.artigo-resumo { font-size: 1.2rem; line-height: 1.5; color: var(--texto-suave); max-width: 44rem; margin: 1rem 0 1.1rem; }
.artigo-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0; font-size: 0.92rem; color: var(--texto-suave); margin: 0 0 1.25rem; }
.artigo-meta span + span { margin-left: 1rem; padding-left: 1rem; border-left: 2px solid var(--linha-forte); }
.acoes { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0; }
.acoes[hidden] { display: none; }
.artigo-grade { display: grid; grid-template-columns: minmax(0, 1fr) 19.5rem; gap: 3.5rem; padding-top: 2.5rem; align-items: start; }
.artigo-corpo { grid-column: 1; grid-row: 1; min-width: 0; }
.artigo-lateral { grid-column: 2; grid-row: 1; position: sticky; top: 1rem; }
.artigo-lateral .ficha { margin-top: 2rem; }
.indice { margin-top: 1.75rem; padding: 1rem 1.1rem; border: 2px dashed var(--linha-forte); border-radius: var(--raio); font-size: 0.95rem; }
.indice ol { list-style: none; display: grid; gap: 0.35rem; }
.indice a { color: var(--texto); }
.artigo-figura { margin: 0 0 2rem; }
.artigo-figura img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border: var(--borda); border-radius: var(--raio); box-shadow: 6px 6px 0 var(--c); background: var(--c-soft); }
.intro { font-size: 1.15rem; line-height: 1.65; }
.intro p:first-child { font-size: 1.28rem; line-height: 1.55; }
.artigo-corpo .secao { margin-top: 2.8rem; }
.artigo-corpo .secao > h2 { margin-bottom: 1rem; }
.texto .receita > h2 { margin: 0 0 0.6rem; padding: 0; border-top: 0; }
.texto .receita h3 { margin: 0 0 0.6rem; }
.receita { margin: 2.4rem 0; padding: 1.5rem 1.5rem 1.1rem; background: var(--papel); border: var(--borda); border-radius: var(--raio); box-shadow: 5px 5px 0 var(--c); max-width: none; }
.receita-rende { font-weight: 600; color: var(--texto-suave); margin-bottom: 1.1rem; }
.receita-cols { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1.75rem; }
.receita h3, .receita h4 { margin-bottom: 0.6rem; font-size: 1.05rem; }
.passos { counter-reset: passo; list-style: none; padding-left: 0; }
.passos li { counter-increment: passo; position: relative; padding-left: 2.4rem; margin-bottom: 0.7em; }
.passos li::before { content: counter(passo); position: absolute; left: 0; top: 0.05em; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; background: var(--espresso); color: var(--creme); border-radius: 50%; font-size: 0.88rem; font-weight: 700; line-height: 1; }
.receita-limite { margin: 0.6rem 0 0.3rem; padding-top: 0.8rem; border-top: 2px dotted var(--linha-forte); font-size: 0.93rem; color: var(--texto-suave); }
.erros { list-style: none; display: grid; gap: 0.9rem; }
.erros li { padding: 0.85rem 1.1rem; background: var(--papel); border: var(--borda); border-radius: var(--raio); }
.erros p { margin: 0; }
.erro-titulo { font-weight: 700; margin-bottom: 0.2rem !important; }
.faq { margin: 0; }
.faq > div { padding: 1rem 0; border-bottom: 2px dotted var(--linha-forte); }
.faq > div:first-child { border-top: 2px dotted var(--linha-forte); }
.faq dt { font-weight: 700; margin-bottom: 0.35rem; }
.faq dd { margin: 0; }
.aviso-limites { margin: 2.5rem 0 1.5rem; padding: 1rem 1.2rem; background: var(--creme-2); border: 2px dashed var(--linha-forte); border-radius: var(--raio); font-size: 0.95rem; }
.aviso-limites p { margin: 0; }
.fontes { margin-top: 2rem; }
.fontes ul { list-style: none; display: grid; gap: 0.8rem; }
.fontes li { padding-left: 0; font-size: 0.95rem; line-height: 1.5; }
.fonte-orgao, .fonte-uso { display: block; color: var(--texto-suave); }
.fontes-nota { margin-top: 1rem; font-size: 0.93rem; }
.termos { margin-top: 2rem; }
.relacionados { margin-top: 4rem; padding: 3rem 0 0.5rem; background: var(--creme-2); border-top: 3px solid var(--espresso); }
.relacionados .titulo-secao { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem); }

/* ---------- Contato ---------- */
.formulario { max-width: 40rem; margin-top: 1.5rem; }
.campo { margin-bottom: 1.4rem; }
.campo label { display: block; font-weight: 650; margin-bottom: 0.35rem; }
.campo-ajuda { font-size: 0.9rem; color: var(--texto-suave); margin: 0.35rem 0 0; }
.campo-msg { margin: 0.4rem 0 0; color: var(--erro); font-weight: 600; font-size: 0.95rem; }
.campo-erro input, .campo-erro textarea { border-color: var(--erro); background: var(--erro-fundo); }
.isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aviso { max-width: 40rem; padding: 0.9rem 1.2rem; border: var(--borda); border-radius: var(--raio); margin: 1.2rem 0; }
.aviso p { margin: 0; }
.aviso-ok { background: var(--salvia-clara); }
.aviso-erro { background: var(--erro-fundo); border-color: var(--erro); }
.aviso-js { padding: 0.9rem 1.2rem; border: 2px dashed var(--erro); border-radius: var(--raio); }

/* ---------- Minha lista ---------- */
.privacidade-lista { max-width: 46rem; padding: 0.9rem 1.2rem; background: var(--creme-2); border: 2px dashed var(--linha-forte); border-radius: var(--raio); font-size: 0.95rem; margin-bottom: 1.5rem; }
.privacidade-lista p { margin: 0; }
.lista-pagina .titulo-secao { margin-top: 2.5rem; }
.vazio-lista { padding: 1rem 1.2rem; border: 2px dashed var(--linha-forte); border-radius: var(--raio); max-width: 46rem; }
.vazio-lista[hidden] { display: none; }
.lista-fichas { display: grid; gap: 3rem; }
.ficha-impressa { position: relative; background: var(--papel); border: var(--borda); border-radius: var(--raio); box-shadow: 5px 5px 0 var(--c); padding: 1.5rem 1.4rem 1.2rem; margin-top: 1.5rem; }
.ficha-impressa h3 { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; margin-bottom: 0.8rem; }
.ficha-impressa h3 a { color: var(--texto); }
.ficha-impressa .ficha-campos { max-width: 32rem; margin-bottom: 1.2rem; }
.ficha-impressa .botao { margin-top: 0.8rem; }
.favoritos { list-style: none; display: grid; gap: 0.6rem; max-width: 46rem; }
.favoritos li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.7rem 1rem; background: var(--papel); border: var(--borda); border-radius: var(--raio); }
.favoritos a { font-weight: 650; }
.favoritos small { color: var(--texto-suave); display: block; }
.favoritos .botao { min-height: 2.25rem; padding: 0.25rem 0.8rem; font-size: 0.9rem; box-shadow: 2px 2px 0 var(--espresso); }

/* ---------- Telas menores ---------- */
@media (max-width: 62rem) {
  .rodape-in { grid-template-columns: 1fr 1fr; }
  .rodape-marca { grid-column: 1 / -1; }
  .heroi-grade, .busca-grade, .transparencia-grade, .categoria-grade { grid-template-columns: 1fr; gap: 2rem; }
  .heroi-fichas { margin-inline: 0; }
  .gavetas { grid-template-columns: repeat(2, 1fr); }
  .gaveta, .gaveta:nth-child(-n+2) { grid-column: span 1; }
  .gaveta:nth-child(-n+2) img { aspect-ratio: 8 / 5; }
  .gaveta:last-child { grid-column: 1 / -1; }
  .biblioteca-grade { grid-template-columns: 1fr; gap: 1.25rem; }
  .filtros { position: static; max-height: none; overflow: visible; padding: 0; }
  html.js .filtros-botao { display: inline-flex; margin-bottom: 1rem; }
  html.js .filtros-botao[hidden] { display: none; }
  html.js .filtros-corpo { display: none; }
  html.js .filtros-corpo.aberto { display: block; margin-bottom: 1rem; padding: 1.1rem 1.1rem 0.4rem; background: var(--papel); border: var(--borda); border-radius: var(--raio); }
  .artigo-grade { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .artigo-corpo, .artigo-lateral { grid-column: 1; grid-row: auto; }
  .artigo-lateral { position: static; order: -1; max-width: 32rem; margin-bottom: 1.5rem; }
  .artigo-lateral .indice { display: none; }
  .receita-cols { grid-template-columns: 1fr; }
}
@media (max-width: 38rem) {
  body { font-size: 1rem; }
  .topo-in { justify-content: flex-start; }
  .menu { width: 100%; margin-left: -0.5rem; }
  .menu ul { gap: 0.1rem 0.1rem; flex-wrap: nowrap; }
  .menu a { padding: 0.4rem 0.5rem; font-size: 0.92rem; }
  .rodape-in { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.5rem; }
  .heroi { padding-top: 2rem; }
  .heroi-fichas { height: 21.5rem; }
  .heroi-img { width: 16rem; }
  .mini-ficha { width: 16.5rem; }
  .mini-1 { top: 7.6rem; left: 0; }
  .gavetas { grid-template-columns: 1fr; }
  .busca-linha { flex-direction: column; }
  .busca-linha .botao { width: 100%; }
  .indice-artigos li { grid-template-columns: 1fr; }
  .indice-meta { grid-column: 1; grid-row: auto; text-align: left; max-width: none; margin-top: 0.3rem; }
  .artigo-meta span + span { margin-left: 0; padding-left: 0; border-left: 0; flex-basis: 100%; }
  .receita { padding: 1.2rem 1rem 0.9rem; }
  .cartoes { grid-template-columns: 1fr; }
}

/* Telas muito estreitas (até 384 px): o menu volta a quebrar linha em vez de estourar a largura */
@media (max-width: 24rem) {
  .menu ul { flex-wrap: wrap; }
  .menu a { padding: 0.4rem 0.45rem; font-size: 0.9rem; }
}

/* ---------- Impressão: ficha de receita ---------- */
@media print {
  @page { margin: 1.6cm; }
  html { font-size: 11pt; }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.45; }
  .topo, .rodape, .nao-imprimir, .pular, .acoes, .relacionados, .fav, .indice, .trilha, .artigo-figura, .botao, .termos, .biblioteca-nota { display: none !important; }
  .artigo-topo { background: none; border: 0; padding: 0 0 0.4cm; }
  .artigo-topo::before { content: "mycatspacecafe.com"; display: block; font-family: var(--serif); font-size: 10pt; margin-bottom: 0.2cm; }
  .artigo-topo h1 { font-size: 22pt; max-width: none; }
  .artigo-resumo { font-size: 11pt; color: #000; }
  .artigo-grade, .receita-cols { display: block; padding-top: 0; }
  .artigo-lateral { position: static; margin-bottom: 0.6cm; max-width: none; }
  .ficha, .receita, .ficha-impressa, .erros li { box-shadow: none; border: 1.2pt solid #000; background: #fff; break-inside: avoid; }
  .ficha-aba { background: #fff; color: #000; border: 1.2pt solid #000; border-bottom: 0; }
  .receita-cols > div { margin-bottom: 0.4cm; }
  a { color: #000; text-decoration: none; }
  .artigo-corpo a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  h2, h3 { break-after: avoid; }
  .tabela-rolagem, table { break-inside: avoid; }
  .tabela-rolagem { overflow: visible; border-color: #000; }
  table { min-width: 0; }
  .lista-fichas { gap: 0.8cm; }
  .ficha-impressa { margin-top: 0.8cm; }
  .ficha-impressa .botao { display: none !important; }
  body.so-ficha .intro, body.so-ficha .secao, body.so-ficha .aviso-limites, body.so-ficha .faq, body.so-ficha .fontes { display: none !important; }
  .lista-pagina .privacidade-lista, .lista-pagina .vazio-lista[hidden] { display: none !important; }
}
