/* ================================================================
   dicionarios.app — stylesheet
   Palette: paper #F7F4EE · forest #1A3C2B · accent #f46826 (logo) · charcoal #16140F
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #F7F4EE;
  --bg-tint:      #EFEBD9;
  --surface:      #FFFFFF;
  --border:       #E2DDCF;
  --border-mid:   #D4CEBC;

  --text:         #16140F;
  --text-mid:     #46423A;
  --text-muted:   #7A7568;
  --text-faint:   #B0AA98;

  --green:        #1A3C2B;
  --green-dark:   #112A1E;
  --green-light:  #E8F2EC;
  --green-text:   #1D4D35;

  --amber:        #f46826;
  --amber-dark:   #e05518;
  --amber-light:  #fff0ea;
  --amber-text:   #9a3d16;
  --amber-band:   #cb551e;

  --footer-muted-opacity: 0.38;
  --footer-muted: rgba(255, 255, 255, var(--footer-muted-opacity));

  --radius-sm:    5px;
  --radius:       10px;
  --radius-lg:    14px;
  --shadow-card:  0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.06);
  --shadow-lift:  0 2px 8px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.08);

  --font-serif:   'DM Serif Display', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;
  --wrap:         1160px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--font-sans); cursor: pointer; }
img, svg { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ---- Carregamento inicial: logo.png + barra (fim quando Goudy Initialen carregar) */
body.site-loader-pending { overflow: hidden; }
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: var(--bg);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.site-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: min(280px, 85vw);
}
.site-loader-logo {
  height: clamp(64px, 16vw, 100px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: none;
}
.site-loader-bar {
  width: 100%;
  height: 5px;
  border-radius: 99px;
  background: var(--border);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}
.site-loader-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--green-text));
  transition: width 0.35s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .site-loader { transition-duration: 0.15s; }
  .site-loader-bar-fill { transition-duration: 0.1s; }
}

/* Verbete / painel detalhe: só girador (sem logo nem barra) */
.site-loader.site-loader--spinner-only {
  gap: 0;
}
.site-loader.site-loader--spinner-only .site-loader-spinner-ring {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: entry-spin 0.7s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .site-loader.site-loader--spinner-only .site-loader-spinner-ring {
    animation: entry-spin-pulse 1.2s ease-in-out infinite;
  }
}

.entry-loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  min-height: 140px;
}
.entry-loading-spinner .entry-loading-spinner-ring {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: entry-spin 0.7s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .entry-loading-spinner .entry-loading-spinner-ring {
    animation: entry-spin-pulse 1.2s ease-in-out infinite;
  }
}
@keyframes entry-spin {
  to { transform: rotate(360deg); }
}
@keyframes entry-spin-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ---- Brand ----------------------------------------------- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-logo {
  height: 36px;
  width: auto;
  max-width: min(176px, 36vw);
  display: block;
  object-fit: contain;
}
.brand-name-img {
  height: 22px;
  width: auto;
  max-width: min(200px, 40vw);
  display: block;
  object-fit: contain;
}
/* Mesmo tom do texto do rodapé (--footer-muted): branco + mesma opacidade */
.brand--footer .brand-logo,
.brand--footer .brand-name-img {
  filter: brightness(0) invert(1);
  opacity: var(--footer-muted-opacity);
}
.brand--footer .brand-logo {
  height: 36px;
  max-width: 160px;
}
.brand--footer .brand-name-img {
  height: 22px;
  max-width: 180px;
}
.brand--footer {
  cursor: default;
}

/* ---- Tags ------------------------------------------------ */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 3px 10px;
  border-radius: 99px;
}
.tag--green  { background: rgba(255,255,255,.18); color: rgba(255,255,255,.9); }
.tag--amber  { background: var(--amber-light); color: var(--amber-text); }
.tag--muted  { background: var(--bg-tint); color: var(--text-muted); }

/* ---- Buttons --------------------------------------------- */
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid rgba(255,255,255,.5);
  background: transparent;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 99px;
  transition: all .15s;
  cursor: pointer;
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: #fff; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 99px;
  transition: all .15s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-mid); }
.btn-ghost svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-icon { flex-shrink: 0; }

/* ================================================================
   SITE HEADER
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  height: 60px;
}

/* Compact search (shows when hero is out of view) */
.header-search {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  overflow: hidden;
  transition: opacity .2s, border-color .2s;
  max-width: 440px;
  width: 100%;
  justify-self: center;
  opacity: 0;
  pointer-events: none;
}
.header-search.visible {
  opacity: 1;
  pointer-events: all;
}
.header-search:focus-within {
  border-color: var(--green);
}
.header-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  padding: 8px 14px;
  min-width: 0;
}
.header-search input::placeholder { color: var(--text-faint); }
.header-search button {
  border: none;
  background: none;
  padding: 8px 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color .15s;
}
.header-search button svg { width: 17px; height: 17px; }
.header-search button:hover { color: var(--green); }

/* Header: Artigos, Listas, Caça-palavras (à direita) */
.header-browse {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  justify-self: end;
}
.header-browse-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 6px 12px;
  border-radius: 99px;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap;
}
.header-browse-btn:hover {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-light);
}
.header-browse-btn.active {
  color: #fff;
  font-weight: 600;
  background: var(--green);
  border-color: var(--green);
}
.browse-hidden { display: none !important; }

/* Lado direito — âmbar / destaque */
.split-right {
  background: var(--amber-band);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.split-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Ccircle cx='80' cy='80' r='28' fill='none' stroke='white' stroke-width='1.2'/%3E%3Ccircle cx='80' cy='80' r='10' fill='none' stroke='white' stroke-width='1'/%3E%3Cpath d='M80 46 C83 58 83 68 80 70' fill='none' stroke='white' stroke-width='1'/%3E%3Cpath d='M80 110 C77 98 77 88 80 90' fill='none' stroke='white' stroke-width='1'/%3E%3Cpath d='M46 80 C58 77 68 77 70 80' fill='none' stroke='white' stroke-width='1'/%3E%3Cpath d='M114 80 C102 83 92 83 90 80' fill='none' stroke='white' stroke-width='1'/%3E%3Cpath d='M56 56 C64 66 70 74 66 76' fill='none' stroke='white' stroke-width='0.8'/%3E%3Cpath d='M104 56 C96 66 90 74 94 76' fill='none' stroke='white' stroke-width='0.8'/%3E%3Cpath d='M56 104 C64 94 70 86 66 84' fill='none' stroke='white' stroke-width='0.8'/%3E%3Cpath d='M104 104 C96 94 90 86 94 84' fill='none' stroke='white' stroke-width='0.8'/%3E%3Cpath d='M80 108 C80 160 75 200 70 240' fill='none' stroke='white' stroke-width='1'/%3E%3Cpath d='M76 148 C60 140 48 148 52 160 C64 158 76 154 76 148Z' fill='none' stroke='white' stroke-width='1'/%3E%3Cpath d='M72 188 C56 180 44 190 50 202 C62 198 72 194 72 188Z' fill='none' stroke='white' stroke-width='1'/%3E%3Cpath d='M250 180 C290 160 318 190 300 220 C280 240 248 236 240 210 C234 192 242 180 250 180Z' fill='none' stroke='white' stroke-width='1.2'/%3E%3Cpath d='M252 184 C272 198 290 210 298 218' fill='none' stroke='white' stroke-width='0.7'/%3E%3Cpath d='M260 190 C264 200 264 210 260 216' fill='none' stroke='white' stroke-width='0.5'/%3E%3Cpath d='M274 196 C278 206 278 216 274 222' fill='none' stroke='white' stroke-width='0.5'/%3E%3Ccircle cx='268' cy='42' r='7' fill='none' stroke='white' stroke-width='0.9'/%3E%3Ccircle cx='268' cy='42' r='2.5' fill='none' stroke='white' stroke-width='0.8'/%3E%3Ccircle cx='200' cy='28' r='2.5' fill='white'/%3E%3Ccircle cx='214' cy='18' r='1.8' fill='white'/%3E%3Ccircle cx='188' cy='16' r='1.5' fill='white'/%3E%3Ccircle cx='300' cy='290' r='2' fill='white'/%3E%3Ccircle cx='288' cy='304' r='1.5' fill='white'/%3E%3C/svg%3E");
  background-size: 320px 320px;
  opacity: 0.16;
  pointer-events: none;
}
.split-right-inner {
  padding: 64px 48px;
  max-width: 520px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.tag--amber-soft {
  background: rgba(255,255,255,.18);
  color: rgba(255,255,255,.9);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 3px 10px;
  border-radius: 99px;
  display: inline-block;
  margin-bottom: 14px;
}
/* Título em destaque: inicial Goudy Initialen solta + restante */
.featured-title-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: nowrap;
  gap: 0.25em 0.06em;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 6px;
  max-width: 100%;
  min-width: 0;
}
.featured-initial-mount:empty {
  display: none;
}
.featured-initial-mount:not(:empty) {
  flex-shrink: 0;
  line-height: 1;
  margin-right: -0.06em;
}
.featured-initial-letter {
  font-family: "Goudy Initialen", serif !important;
  font-size: clamp(4.275rem, 10.5vw, 6.15rem);
  line-height: 0.95;
  color: #fffef8;
  display: inline-block;
  translate: 0 0.04em;
  font-synthesis: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.25);
}
.featured-title-rest {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.12;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  overflow-wrap: break-word;
  word-break: normal;
}
.featured-pos {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,.55);
  font-style: italic;
  margin-bottom: 18px;
  font-family: var(--font-serif);
}
.featured-text {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255,255,255,.82);
  margin-bottom: 28px;
  max-width: 460px;
}

/* ================================================================
   HERO (dentro do split-left)
   ================================================================ */
.split-left .hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--amber);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-eyebrow::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--amber);
  border-radius: 2px;
  display: block;
}
.split-left h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.72);
  margin-bottom: 36px;
  max-width: 460px;
}
.hero-sub strong { color: #fff; font-weight: 600; }

/* Hero search */
.hero-search { width: 100%; max-width: 720px; }
.hero-search-row {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.hero-search-row:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(26,60,43,.07), var(--shadow-card);
}
.hs-icon {
  width: 20px; height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 18px;
}
#search-input {
  flex: 1;
  border: none; outline: none; background: transparent;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--text);
  padding: 17px 14px;
  min-width: 0;
}
#search-input::placeholder { color: var(--text-faint); }
.hs-btn {
  border: none;
  background: var(--amber);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0 28px;
  height: 58px;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.hs-btn:hover { background: var(--amber-band); }

/* Alphabet */
.alpha-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 18px;
}
.alpha-row button {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  background: transparent;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-sm);
  padding: 4px 9px;
  transition: all .15s;
}
.alpha-row button:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.6);
  color: #fff;
}
.alpha-row a {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  background: transparent;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-sm);
  padding: 4px 9px;
  transition: all .15s;
  text-decoration: none;
}
.alpha-row a:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.6);
  color: #fff;
}

/* ================================================================
   STATS BAR — destaque “Mais de N palavras!”
   ================================================================ */
.stats-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background:
    radial-gradient(ellipse 130% 85% at 50% -20%, rgba(122, 117, 104, 0.09) 0%, transparent 52%),
    radial-gradient(ellipse 90% 70% at 80% 110%, rgba(176, 170, 152, 0.08) 0%, transparent 48%),
    radial-gradient(ellipse 80% 60% at 12% 85%, rgba(138, 133, 120, 0.07) 0%, transparent 45%),
    url("./assets/stats-floral.svg");
  background-size: 100% 100%, 100% 100%, 100% 100%, 320px 320px;
  background-position: center, center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
}
/* Barra de stats em largura total; número na coluna central (1fr | auto | 1fr) */
.stats-bar .stats-inner.wrap {
  max-width: none;
  width: 100%;
}
.stats-inner {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0;
  min-height: 0;
}
.stats-showcase {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 0.45em;
  row-gap: 0.25em;
  width: 100%;
  padding: 22px 20px 26px;
  box-sizing: border-box;
}
.stats-pretext {
  font-family: var(--font-sans);
  font-size: clamp(0.78rem, 2.4vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  justify-self: end;
  text-align: right;
}
.stats-count-wrap {
  display: block;
  min-width: 4ch;
  justify-self: center;
  text-align: center;
}
.stats-count-num {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--amber);
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
  font-variant-numeric: tabular-nums;
  transition: transform 0.15s ease;
}
.stats-posttext {
  font-family: var(--font-sans);
  font-size: clamp(0.78rem, 2.4vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
/* Continuação da frase (“ mil palavras!”, “ milhão de palavras!”) — destaque legível */
.stats-tail {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 3.1vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.25;
  text-transform: none;
  color: var(--text);
  justify-self: start;
  text-align: left;
}

/* ================================================================
   SPLIT HERO — busca (esq) + destaque (dir)
   ================================================================ */
.split-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

/* Lado esquerdo — verde / busca */
.split-left {
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.split-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cpath d='M160 24 C210 44 235 105 200 158 C172 200 118 214 80 184 C42 154 32 93 70 57 C96 32 138 18 160 24Z' fill='none' stroke='white' stroke-width='1.4'/%3E%3Cpath d='M115 55 C138 100 162 140 196 162' fill='none' stroke='white' stroke-width='0.8'/%3E%3Cpath d='M123 75 C133 80 138 90 133 98' fill='none' stroke='white' stroke-width='0.5'/%3E%3Cpath d='M135 100 C147 104 152 114 147 122' fill='none' stroke='white' stroke-width='0.5'/%3E%3Cpath d='M152 126 C163 128 168 138 162 145' fill='none' stroke='white' stroke-width='0.5'/%3E%3Cpath d='M18 240 C30 210 62 200 66 228 C52 232 34 240 18 240Z' fill='none' stroke='white' stroke-width='1.2'/%3E%3Cpath d='M42 206 C46 218 50 226 58 230' fill='none' stroke='white' stroke-width='0.6'/%3E%3Ccircle cx='278' cy='48' r='12' fill='none' stroke='white' stroke-width='1'/%3E%3Ccircle cx='278' cy='48' r='4' fill='none' stroke='white' stroke-width='0.8'/%3E%3Cpath d='M266 36 L270 44' stroke='white' stroke-width='0.7'/%3E%3Cpath d='M290 36 L286 44' stroke='white' stroke-width='0.7'/%3E%3Cpath d='M266 60 L270 52' stroke='white' stroke-width='0.7'/%3E%3Cpath d='M290 60 L286 52' stroke='white' stroke-width='0.7'/%3E%3Cpath d='M280 130 C272 160 258 185 242 210' fill='none' stroke='white' stroke-width='1'/%3E%3Cpath d='M272 150 C258 148 248 154 250 164 C262 162 272 158 272 150Z' fill='none' stroke='white' stroke-width='1'/%3E%3Cpath d='M258 176 C244 174 236 182 240 192 C252 188 260 184 258 176Z' fill='none' stroke='white' stroke-width='1'/%3E%3Ccircle cx='48' cy='290' r='2.5' fill='white'/%3E%3Ccircle cx='62' cy='302' r='1.8' fill='white'/%3E%3Ccircle cx='36' cy='306' r='1.5' fill='white'/%3E%3Ccircle cx='304' cy='250' r='2' fill='white'/%3E%3Ccircle cx='314' cy='266' r='1.5' fill='white'/%3E%3C/svg%3E");
  background-size: 320px 320px;
  opacity: 0.14;
  pointer-events: none;
}
.split-left-inner {
  padding: 64px 48px;
  max-width: 580px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ================================================================
   BROWSE SECTION (tabbed)
   ================================================================ */
.browse-section {
  padding: 56px 0 72px;
}
.browse-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
  overflow-x: auto;
  scrollbar-width: none;
}
.browse-tabs::-webkit-scrollbar { display: none; }
.btab {
  border: none; background: none;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px 18px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.btab:hover { color: var(--text); }
.btab.active { color: var(--green); font-weight: 600; border-color: var(--green); }

/* ================================================================
   SEARCH / DETAIL PANELS
   ================================================================ */
#search-panel,
#detail-panel {
  padding: 48px 0 72px;
  min-height: 60vh;
}
.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.panel-meta {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.panel-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ================================================================
   DETAIL BODY
   ================================================================ */
.detail-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--text);
  letter-spacing: -0.03em;
  margin-top: 10px;
  line-height: 1.1;
}
.detail-body { max-width: 760px; padding-top: 8px; }

.word-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.word-badge {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--green-light);
  color: var(--green-text);
}
.word-badge.pos {
  background: var(--amber-light);
  color: var(--amber-text);
}

.meanings-block { margin-bottom: 36px; }
.meanings-block > h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.meaning-item {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.meaning-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--amber-text);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 5px;
  display: block;
}
.meaning-text { font-size: 1rem; color: var(--text); line-height: 1.65; }
.meaning-example {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
  padding-left: 12px;
  border-left: 2px solid var(--border-mid);
}

.detail-block { margin-bottom: 28px; }
.detail-block > h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 7px; }
.pill {
  font-size: 0.875rem;
  padding: 5px 13px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all .15s;
  cursor: pointer;
  font-family: var(--font-sans);
}
a.pill {
  text-decoration: none;
}
.pill-syn { background: var(--green-light); color: var(--green-text); }
.pill-syn:hover { background: var(--green); color: #fff; }
.pill-ant { background: #FEF2F2; color: #991B1B; cursor: default; }
.pill-word { background: var(--bg-tint); color: var(--text-mid); cursor: default; }

.detail-block ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.detail-block li { font-size: 0.95rem; color: var(--text); }
.detail-block p   { font-size: 0.95rem; color: var(--text); line-height: 1.65; }
.detail-source a  { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* ================================================================
   CARD GRID & CARDS
   ================================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}
.card-btn {
  width: 100%; border: none; background: none;
  text-align: left;
  padding: 18px 20px 20px;
  display: flex; flex-direction: column;
  gap: 7px;
  min-height: 120px;
}
.card-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--amber-text);
  background: var(--amber-light);
  padding: 2px 8px;
  border-radius: 4px;
  align-self: flex-start;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.card-excerpt {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: auto;
}

/* ================================================================
   SKELETON / STATES
   ================================================================ */
.state-empty, .state-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-faint);
  font-size: 0.95rem;
}
.skel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 9px;
}
.skel {
  background: var(--bg-tint);
  border-radius: 4px;
  animation: skel-pulse 1.5s ease-in-out infinite;
}
.skel-tag { height: 16px; width: 56px; }
.skel-h   { height: 20px; width: 72%; }
.skel-p1  { height: 13px; width: 100%; margin-top: 4px; }
.skel-p2  { height: 13px; width: 65%; }
@keyframes skel-pulse {
  0%,100% { opacity: 1; }
  50% { opacity: .45; }
}

/* ================================================================
   PÁGINA « LETRA » (lista alfabética paginada)
   ================================================================ */
.letter-page .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.letter-page-actions {
  justify-self: end;
}
.btn-back-home {
  white-space: nowrap;
}

.letter-main {
  padding: 36px 24px 72px;
}
.letter-alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.letter-alpha-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color .15s, border-color .15s, background .15s;
}
.letter-alpha-pill:hover {
  color: var(--green);
  border-color: var(--green);
}
.letter-alpha-pill.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.letter-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--amber-text);
  margin-bottom: 8px;
}
.letter-head h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}
.letter-meta {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.letter-card-grid {
  margin-bottom: 40px;
}
.letter-card .card-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
  min-height: unset;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.letter-card .card-link:hover .card-title {
  color: var(--green);
}
.letter-card .card-title {
  font-size: 1.05rem;
  margin: 0;
}

.letter-pagination {
  margin-top: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.page-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.page-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color .15s, background .15s;
}
.page-link:hover:not(.is-disabled) {
  border-color: var(--green);
  background: var(--green-light);
}
.page-link.is-disabled {
  color: var(--text-faint);
  border-color: var(--border-light);
  cursor: not-allowed;
  opacity: 0.7;
}
.page-nums {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}
.page-num:hover {
  background: var(--bg-tint);
  color: var(--green);
}
.page-num.is-current {
  background: var(--green);
  color: #fff;
  font-weight: 600;
}
button.page-link,
button.page-num {
  font: inherit;
  cursor: pointer;
  box-sizing: border-box;
}
button.page-num {
  background: transparent;
}
.page-summary {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.home-all-words-block {
  margin-top: 8px;
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 28%);
}
.home-all-words-head {
  margin-bottom: 22px;
  max-width: 52rem;
}
.home-all-words-title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 8px;
}
.home-all-words-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ================================================================
   CAÇA-PALAVRAS (sopa de letras)
   ================================================================ */
.wordsearch-page {
  margin-top: 8px;
}
.wordsearch-lead {
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 20px;
  max-width: 48rem;
}
.wordsearch-fail {
  color: var(--text-muted);
  margin-bottom: 16px;
}
.wordsearch-hint {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 14px;
  max-width: 40rem;
}
.wordsearch-layout {
  display: grid;
  grid-template-columns: 1fr minmax(11rem, 15rem);
  gap: 28px 32px;
  align-items: start;
}
@media (max-width: 720px) {
  .wordsearch-layout {
    grid-template-columns: 1fr;
  }
}
.wordsearch-board-wrap {
  overflow-x: auto;
  padding: 4px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}
.wordsearch-table {
  border-collapse: collapse;
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.wordsearch-cell {
  width: 1.9rem;
  height: 1.9rem;
  min-width: 1.9rem;
  box-sizing: border-box;
  text-align: center;
  vertical-align: middle;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid var(--border-mid);
  cursor: pointer;
  background: var(--bg);
  color: var(--text);
  transition: background 0.12s ease;
}
.wordsearch-cell:hover {
  background: var(--bg-tint);
}
.wordsearch-cell.is-selecting {
  background: var(--amber-light);
  color: var(--amber-text);
}
.wordsearch-cell.is-found {
  background: var(--green-light);
  color: var(--green-text);
  border-color: var(--green);
}
.wordsearch-status {
  margin-top: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--green-text);
}
.wordsearch-bank-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.wordsearch-bank {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wordsearch-bank-item {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-tint);
  border: 1px solid var(--border-light);
  transition: opacity 0.15s ease;
}
.wordsearch-bank-item.is-found {
  text-decoration: line-through;
  opacity: 0.55;
}
.wordsearch-related ul {
  padding-left: 1.1rem;
}
.wordsearch-related a {
  color: var(--green);
  font-weight: 500;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--text);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--footer-muted);
  max-width: 480px;
  line-height: 1.6;
}

/* Parceria / Virtues — logo pequeno + texto; ícones centrados sob o bloco logo+texto */
.footer-virtues {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 280px;
}
.footer-virtues .footer-virtues-apps {
  margin-top: 14px;
}
.footer-virtues-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  line-height: 1;
}
.footer-virtues-brand:hover {
  text-decoration: underline;
}
.footer-virtues-logo {
  height: 36px;
  width: auto;
  max-width: 120px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}
.footer-virtues-name {
  color: #fff;
  white-space: nowrap;
}
.footer-virtues-apps {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  padding-top: 4px;
}
.footer-store-link {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  opacity: 0.98;
  transition: opacity 0.15s;
}
.footer-store-link:hover {
  opacity: 1;
}
/* Badges oficiais: largura fixa, altura automática — preserva proporção dos PNG (não forçar height). */
.footer-badge {
  display: block;
  width: 155px;
  max-width: min(155px, 85vw);
  height: auto;
  object-fit: contain;
}

/* ================================================================
   PÁGINA « PALAVRA » (verbete isolado: cabeçalho + definição + relacionadas)
   ================================================================ */
.word-page .word-page-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  height: auto;
  min-height: 60px;
  padding: 8px 0;
}
.word-page .word-page-search {
  opacity: 1;
  pointer-events: all;
  max-width: 420px;
  flex: 1 1 220px;
}
.word-page-main {
  padding: 28px 24px 72px;
}
.word-page-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 28px;
}
.word-page-back,
.word-page-alpha {
  font-size: 0.88rem;
}
.word-page-kind {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 8px;
}
.word-page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.15;
}
.word-page-body {
  max-width: 760px;
}
.word-recommendations {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  max-width: 760px;
}
.word-rec-heading {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 20px;
  color: var(--text);
  font-weight: 600;
}
.word-rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}
.word-rec-card {
  display: block;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.word-rec-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-card);
}
.word-rec-card.word-rec-card--static {
  cursor: default;
  opacity: 0.92;
}
.word-rec-card.word-rec-card--static:hover {
  border-color: var(--border);
  box-shadow: none;
}
.word-rec-label {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 860px) {
  /* Índice: marca + atalhos na mesma linha; atalhos numa só linha (scroll horizontal se preciso) */
  .header-inner:has(.header-browse) {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .header-search { display: none; }
  .word-page .word-page-search {
    display: flex;
  }
  .brand-logo { height: 32px; max-width: 32vw; }
  .brand-name-img { height: 19px; max-width: 38vw; }
  .header-browse {
    gap: 4px;
    max-width: min(56vw, 320px);
    justify-content: flex-end;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .header-browse::-webkit-scrollbar {
    display: none;
  }
  .header-browse-btn {
    padding: 5px 8px;
    font-size: 0.72rem;
    flex: 0 0 auto;
  }

  .split-hero { grid-template-columns: 1fr; }
  .split-left-inner  { padding: 48px 24px; max-width: 100%; }
  .split-right-inner { padding: 48px 24px; max-width: 100%; }

  .hero h1 { font-size: 2rem; }
}

/* Celular: marca centrada; Artigos / Listas / Caça-palavras numa linha logo abaixo */
@media (max-width: 720px) {
  .header-inner:has(.header-browse) {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    min-height: 0;
    padding-block: 10px;
    gap: 12px;
    align-items: stretch;
  }
  .header-inner:has(.header-browse) .brand {
    justify-self: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
  }
  .header-inner:has(.header-browse) .brand-logo {
    height: 34px;
    max-width: min(200px, 44vw);
  }
  .header-inner:has(.header-browse) .brand-name-img {
    height: 21px;
    max-width: min(220px, 52vw);
  }
  .header-inner:has(.header-browse) .header-browse {
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    justify-content: space-between;
    flex-wrap: nowrap;
    overflow-x: visible;
    gap: 6px;
    padding-inline: 2px;
  }
  .header-inner:has(.header-browse) .header-browse-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 4px;
    font-size: clamp(0.62rem, 2.85vw, 0.74rem);
    text-align: center;
    line-height: 1.15;
  }
}
@media (max-width: 600px) {
  .hero { padding: 56px 0 48px; }
  #search-input { font-size: 0.95rem; }
  .hs-btn { padding: 0 18px; }
  .stats-showcase { padding: 18px 16px 22px; }
  .card-grid { grid-template-columns: 1fr; }
  .panel-header { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; }
}
