@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Lora:ital,wght@0,400;0,500;1,400;1,500&display=swap');

:root {
  --bg:       #f5f4f0;
  --white:    #ffffff;
  --surface:  #ffffff;
  --surface2: #f0efe9;

  --border:   #e2e0d8;
  --border2:  #cac8be;

  --text:     #1a1916;
  --text2:    #4a4840;
  --text3:    #8a8780;
  --text4:    #b5b3ab;

  --blue:     #2853c8;
  --blue-bg:  #eef1fc;
  --red:      #c42b28;
  --red-bg:   #fdf1f0;
  --green:    #1d6b3c;
  --green-bg: #edf7f2;
  --amber:    #92600a;
  --amber-bg: #fdf5e6;

  --font-ui:   'Syne', system-ui, sans-serif;
  --font-text: 'Lora', Georgia, serif;
  /* Tipografia exclusiva do título “Palavras em destaque” — alinha ao wordmark (Syne, peso forte) */
  --font-wod-head: 'Syne', system-ui, sans-serif;
  --font-section:  'Lora', Georgia, serif;

  --r: 6px;
  --t: 180ms ease;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow:    0 2px 8px rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
}

a { color: inherit; text-decoration: none; transition: color var(--t); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px 1.35rem;
  gap: 12px 1rem;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.header-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
}

.header-vsep {
  width: 1px;
  height: 34px;
  background: var(--border2);
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
}

.logo-mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.logo-wordmark {
  height: 30px;
  width: auto;
  max-width: min(240px, 42vw);
  object-fit: contain;
  object-position: left center;
  display: block;
}

.header-search-wrap {
  flex: 1 1 220px;
  max-width: 440px;
  margin-left: auto;
  min-width: 160px;
  transition: opacity 0.22s ease, max-width 0.28s ease, margin 0.28s ease, min-width 0.28s ease;
}

.header-search-wrap--collapsible.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  max-width: 0;
  min-width: 0;
  flex: 0 0 0;
  margin-left: 0;
  overflow: hidden;
}

.header-search {
  width: 100%;
  position: relative;
}

.header-search-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  background: var(--bg);
  padding: 9px 40px 9px 14px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--t), background var(--t);
}
.header-search-input::placeholder { color: var(--text3); }
.header-search-input:focus { border-color: var(--blue); background: var(--white); }

.header-search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text3);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color var(--t);
}
.header-search-btn:hover { color: var(--blue); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.header-nav a {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text2);
  padding: 6px 11px;
  border-radius: var(--r);
  transition: all var(--t);
  white-space: nowrap;
}
.header-nav a:hover { background: var(--bg); color: var(--text); }
.header-nav a.active { color: var(--blue); }

/* ── AUTOCOMPLETE ── */
.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 200;
  display: none;
}
.search-suggestions.open { display: block; }

.suggestion-item {
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--text2);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background var(--t);
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--bg); color: var(--text); }

.suggestion-icon { color: var(--text3); flex-shrink: 0; }

/* ── HERO / SEARCH AREA ── */
.hero {
  position: relative;
  overflow: hidden;
  overflow-x: clip;
  isolation: isolate;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 1.5rem;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.hero-float-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-float-word {
  position: absolute;
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  user-select: none;
  will-change: transform;
  line-height: 1;
  max-width: min(42vw, 220px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.6rem;
  -webkit-text-stroke: 4px rgba(255, 255, 255, 0.95);
  paint-order: stroke fill;
  text-shadow:
    -4px -4px 0 rgba(255, 255, 255, 0.35),
    4px -4px 0 rgba(255, 255, 255, 0.35),
    -4px 4px 0 rgba(255, 255, 255, 0.35),
    4px 4px 0 rgba(255, 255, 255, 0.35),
    -4px 0 0 rgba(255, 255, 255, 0.35),
    4px 0 0 rgba(255, 255, 255, 0.35),
    0 -4px 0 rgba(255, 255, 255, 0.35),
    0 4px 0 rgba(255, 255, 255, 0.35),
    0 0 28px rgba(255, 255, 255, 0.88),
    0 0 12px rgba(255, 255, 255, 0.75);
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.72));
}

.hero-title em {
  font-family: var(--font-text);
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
  -webkit-text-stroke: 4px rgba(255, 255, 255, 0.95);
  paint-order: stroke fill;
  text-shadow:
    -4px -4px 0 rgba(255, 255, 255, 0.3),
    4px -4px 0 rgba(255, 255, 255, 0.3),
    -4px 4px 0 rgba(255, 255, 255, 0.3),
    4px 4px 0 rgba(255, 255, 255, 0.3),
    0 0 20px rgba(255, 255, 255, 0.82);
}

.hero-sub {
  font-size: 1rem;
  color: var(--text2);
  margin-bottom: 2rem;
  -webkit-text-stroke: 4px rgba(255, 255, 255, 0.92);
  paint-order: stroke fill;
  text-shadow:
    -4px -4px 0 rgba(255, 255, 255, 0.28),
    4px -4px 0 rgba(255, 255, 255, 0.28),
    -4px 4px 0 rgba(255, 255, 255, 0.28),
    4px 4px 0 rgba(255, 255, 255, 0.28),
    -4px 0 0 rgba(255, 255, 255, 0.28),
    4px 0 0 rgba(255, 255, 255, 0.28),
    0 0 22px rgba(255, 255, 255, 0.85);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.62));
}

@keyframes hero-float-1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(48px, -72px) rotate(2.5deg); }
  66% { transform: translate(-38px, 42px) rotate(-2deg); }
}

@keyframes hero-float-2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(36px, 28px) rotate(1.5deg); }
  50% { transform: translate(-58px, -55px) rotate(-2.5deg); }
  75% { transform: translate(22px, -40px) rotate(1deg); }
}

@keyframes hero-float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(32px, -88px) scale(1.06) rotate(1.2deg); }
  66% { transform: translate(-45px, 55px) scale(0.94) rotate(-1.5deg); }
}

.hero-search-wrap {
  display: flex;
  border: 2px solid var(--border2);
  border-radius: var(--r);
  overflow: visible;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(1px) saturate(1.06);
  -webkit-backdrop-filter: blur(1px) saturate(1.06);
  transition: border-color var(--t), box-shadow var(--t);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.98),
    0 0 0 8px rgba(255, 255, 255, 0.4),
    0 2px 16px rgba(255, 255, 255, 0.5),
    var(--shadow-sm);
  position: relative;
}
.hero-search-wrap:focus-within {
  border-color: var(--blue);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.98),
    0 0 0 8px rgba(255, 255, 255, 0.4),
    0 0 0 12px rgba(40, 83, 200, 0.14),
    0 2px 16px rgba(255, 255, 255, 0.5);
}

.hero-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 18px;
  font-family: var(--font-text);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
  outline: none;
  min-width: 0;
}
.hero-search-input::placeholder { color: var(--text3); }

.hero-search-submit {
  background: var(--blue);
  border: none;
  padding: 0 22px;
  cursor: pointer;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--t);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.hero-search-submit:hover { background: #1e42b0; }

.hero-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 200;
  display: none;
}
.hero-suggestions.open { display: block; }

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
  position: relative;
  z-index: 1;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid var(--border2);
  border-radius: var(--r);
  padding: 8px 16px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text2);
  cursor: pointer;
  transition: all var(--t);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-bg); }

/* Botão no hero: vidro leve + mesma borda do btn-ghost */
.hero-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(1px) saturate(1.05);
  -webkit-backdrop-filter: blur(1px) saturate(1.05);
  border: 1.5px solid var(--border2);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.96),
    0 0 0 8px rgba(255, 255, 255, 0.35),
    var(--shadow-sm);
  color: var(--text2);
}
.hero-actions .btn-ghost:hover {
  background: var(--blue-bg);
  backdrop-filter: blur(1px) saturate(1.05);
  -webkit-backdrop-filter: blur(1px) saturate(1.05);
  border-color: var(--blue);
  color: var(--blue);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.92),
    0 0 0 8px rgba(255, 255, 255, 0.28),
    0 2px 8px rgba(40, 83, 200, 0.12);
}

/* ── MAIN LAYOUT ── */
.container {
  max-width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0 1.5rem;
  min-width: 0;
  box-sizing: border-box;
}

.page-body {
  padding: 3rem 0;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* Início: palavras em destaque | descubra mais (lado a lado) */
.home-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.5rem;
  align-items: start;
}

.home-col .section-head {
  margin-bottom: 1.25rem;
}

.cards-grid--home-col {
  grid-template-columns: 1fr;
}

/* Desktop: coluna WOD estica até a altura da coluna dos cards + cards preenchem o vazio */
@media (min-width: 901px) {
  .home-two-col {
    align-items: stretch;
  }
  .home-col--wod {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .home-col--wod #wod-container {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .home-col--wod #wod-container > .wod-stack {
    flex: 1;
    min-height: 0;
  }
  .home-col--wod #wod-container > .loading-state,
  .home-col--wod #wod-container > .error-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .wod-stack .wod-card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .wod-stack .wod-card .wod-header {
    flex-shrink: 0;
  }
  .wod-stack .wod-card .wod-def,
  .wod-stack .wod-card p.wod-def--aux {
    flex: 1 1 auto;
    min-height: 0;
  }
  .wod-stack .wod-card .wod-example {
    flex-shrink: 0;
  }
  .wod-stack .wod-card .wod-footer {
    flex-shrink: 0;
    margin-top: auto;
  }
}

@media (max-width: 900px) {
  .home-two-col {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .cards-grid--home-col {
    grid-template-columns: 1fr;
  }
}


/* ── SECTION ── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--text);
  padding-bottom: 0.75rem;
  gap: 1rem;
}

.section-title {
  font-family: var(--font-section);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text2);
}

.section-title--brand {
  font-family: var(--font-wod-head);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  font-style: normal;
  color: var(--text);
}

.section-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text3);
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 5px 12px;
  cursor: pointer;
  font-family: var(--font-ui);
  transition: all var(--t);
}
.section-action:hover { border-color: var(--blue); color: var(--blue); }

/* ── WORD OF DAY ── */
.wod-stack {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.wod-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-sm);
}

/* Cards após o primeiro: mais compactos (vários blocos empilhados) */
.wod-stack .wod-card ~ .wod-card {
  padding: 1.65rem 2rem;
}
.wod-stack .wod-card ~ .wod-card .wod-header {
  margin-bottom: 1.1rem;
}
.wod-stack .wod-card ~ .wod-card .wod-term {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
}
.wod-stack .wod-card ~ .wod-card .wod-def,
.wod-stack .wod-card ~ .wod-card p.wod-def--aux {
  font-size: 1rem;
  margin-bottom: 1rem;
}
.wod-stack .wod-card ~ .wod-card .wod-example {
  margin-bottom: 1.15rem;
  padding: 0.75rem 1.1rem;
  font-size: 0.9rem;
}

.wod-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.wod-title-block { flex: 1; }

.wod-term {
  font-family: var(--font-text);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.wod-term a:hover { color: var(--blue); }

.wod-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid transparent;
}

.badge-type { background: var(--blue-bg); color: var(--blue); border-color: #c7d3f5; }
.badge-verb { background: var(--red-bg); color: var(--red); border-color: #f5c7c6; }
.badge-adj  { background: var(--green-bg); color: var(--green); border-color: #c0e4d0; }

.wod-pron {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--text3);
  letter-spacing: 0.02em;
}

.wod-tonic {
  font-family: var(--font-text);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text3);
}

.wod-def {
  font-family: var(--font-text);
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.wod-def--aux {
  color: var(--text2);
  font-size: 0.98rem;
}

.wod-example {
  background: var(--blue-bg);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 0.875rem 1.25rem;
  font-family: var(--font-text);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.wod-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.wod-date {
  font-size: 0.72rem;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 5px;
}

.wod-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-bg);
  border: 1.5px solid #c7d3f5;
  border-radius: var(--r);
  padding: 7px 14px;
  transition: all var(--t);
}
.wod-link:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── RANDOM CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.word-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  display: block;
  transition: all var(--t);
  box-shadow: var(--shadow-sm);
}
.word-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.word-card-name {
  font-family: var(--font-text);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.word-card-type {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}

.word-card-def {
  font-size: 0.875rem;
  color: var(--text2);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.6em;
}

/* ── LETTER GRID ── */
.letters-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 6px;
}

.letter-btn {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--t);
  gap: 2px;
}
.letter-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
}
.letter-btn:hover .letter-char { color: #fff; }

.letter-char {
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
  transition: color var(--t);
  line-height: 1;
}

/* ── TERM PAGE ── */
.term-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text3);
  margin-bottom: 2rem;
}
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb-sep { color: var(--border2); }

.term-header {
  border-bottom: 2px solid var(--text);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.term-title {
  font-family: var(--font-text);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.0;
  margin-bottom: 1rem;
}

.term-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* ── ENTRY ITEMS ── */
.entries { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }

.entry {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1.25rem;
  row-gap: 0.75rem;
  align-items: start;
}

.entry-num {
  grid-column: 2;
  grid-row: 1;
  position: static;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.entry-name {
  font-family: var(--font-text);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 0.75rem;
  padding-right: 3rem;
}

.entry-def {
  font-family: var(--font-text);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.85;
  margin: 0;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.entry-example {
  background: var(--blue-bg);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 0.75rem 1rem;
  font-family: var(--font-text);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text2);
  line-height: 1.7;
  grid-column: 1 / -1;
  margin: 0;
}

.entry-date {
  margin: 0;
  font-size: 0.7rem;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 5px;
  grid-column: 1 / -1;
}

/* ── INFO BOXES ── */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
}

.info-box-title {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tags { display: flex; flex-wrap: wrap; gap: 5px; }

.tag {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 0.8rem;
  color: var(--text2);
  text-decoration: none;
  transition: all var(--t);
}
.tag:hover { background: var(--blue-bg); border-color: #c7d3f5; color: var(--blue); }

.flexion-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.flexion-table tr:not(:last-child) td { border-bottom: 1px solid var(--border); }
.flexion-table td { padding: 7px 0; color: var(--text2); }
.flexion-table td:first-child { color: var(--text); font-family: var(--font-text); font-size: 0.95rem; }
.flexion-table td:last-child { text-align: right; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text3); }

/* ── RHYMES ── */
.rhymes-box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.rhymes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-height: 130px;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.rhymes-list.expanded { max-height: 9999px; }

.show-more-btn {
  background: none;
  border: none;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  cursor: pointer;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.show-more-btn:hover { opacity: 0.75; }

/* ── EXTRA INFO ── */
.extra-info {
  background: var(--surface2);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.extra-info ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.extra-info li {
  font-size: 0.82rem;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.extra-info li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── PÁGINA SOBRE ── */
.about-page {
  padding: 2.25rem 1.35rem 4rem;
  background: var(--bg);
  min-height: 50vh;
}
.about-inner {
  max-width: min(720px, 100%);
  margin: 0 auto;
}
.about-page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1.5px solid var(--border);
}
.about-page-title {
  font-family: var(--font-ui);
  font-size: clamp(1.65rem, 4.2vw, 2.15rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.about-page-lead {
  font-family: var(--font-text);
  font-size: 1.05rem;
  color: var(--text2);
  margin-top: 0.85rem;
  line-height: 1.65;
}
.about-body {
  font-family: var(--font-text);
  font-size: 0.98rem;
  color: var(--text2);
  line-height: 1.75;
}
.about-body h2 {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text4);
  margin: 1.85rem 0 0.65rem;
}
.about-body h2:first-of-type { margin-top: 0; }
.about-body p { margin: 0 0 1rem; }
.about-body p:last-child { margin-bottom: 0; }
.about-body strong { color: var(--text); font-weight: 600; }
.about-body em { font-style: italic; color: var(--text3); }

/* ── BROWSE PAGE ── */
.browse-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.browse-page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--text);
}

.browse-page-title {
  font-family: var(--font-text);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.1;
}
.browse-page-title span { color: var(--blue); }

.browse-meta {
  font-size: 0.82rem;
  color: var(--text3);
  margin-top: 0.5rem;
}

.browse-letter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 2rem;
}

.bln-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text2);
  text-decoration: none;
  transition: all var(--t);
}
.bln-item:hover, .bln-item.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.browse-terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 5px;
  margin-bottom: 2rem;
}

.browse-term-link {
  display: block;
  padding: 8px 12px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--text2);
  text-decoration: none;
  transition: all var(--t);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browse-term-link:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-bg); }

/* ── PAGINATION ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.pg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  font-family: var(--font-ui);
  transition: all var(--t);
  text-decoration: none;
}
.pg-btn:hover { border-color: var(--blue); color: var(--blue); }
.pg-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.pg-btn:disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }

/* ── FOOTER ── */
.site-footer {
  background: #1e1e22;
  color: rgba(255,255,255,0.55);
  margin-top: 3rem;
  max-width: 100%;
  overflow-x: clip;
}

.footer-main {
  max-width: min(1200px, 100%);
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1.6fr 1fr auto minmax(12rem, 1.35fr);
  gap: 2rem 2.5rem;
  min-width: 0;
}

.footer-col-spacer {
  height: 1em;
  margin-bottom: 0.85rem;
}

.footer-copyright-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: right;
}

.footer-copyright-line {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.45;
}

.footer-col--copyright .footer-by {
  display: block;
  text-align: right;
}

.footer-col--social {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-col-title--contact {
  width: 100%;
  text-align: center;
  margin: 0 0 0.85rem 0;
}

.footer-social-nav {
  display: grid;
  grid-template-columns: repeat(3, 2.1rem);
  grid-template-rows: repeat(3, 2.1rem);
  gap: 0.32rem 0.45rem;
  justify-content: center;
  justify-items: center;
  align-items: center;
  margin: 0 auto;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  color: rgba(255, 255, 255, 0.52);
  border-radius: 6px;
  transition: color var(--t), background var(--t);
}
.footer-social-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.footer-social-link svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-di-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-di-logo-img {
  height: 40px;
  width: auto;
  max-width: 58px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity var(--t);
}

.footer-di-nome {
  height: 22px;
  width: auto;
  max-width: min(200px, 40vw);
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity var(--t);
}

.footer-di-brand:hover .footer-di-logo-img,
.footer-di-brand:hover .footer-di-nome { opacity: 0.85; }

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-contact-link {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--t);
}
.footer-contact-link:hover { color: #fff; }

.footer-col-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  margin: 0 0 0.85rem 0;
}

.footer-col-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col-list a,
.footer-link-btn {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-family: inherit;
  transition: color var(--t);
}
.footer-col-list a:hover,
.footer-link-btn:hover { color: #fff; }
.footer-col-list a[aria-current="page"] {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom-inner {
  max-width: min(1200px, 100%);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
  min-width: 0;
  box-sizing: border-box;
}

.footer-by {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.25);
}

/* A–Z: 2 linhas horizontais (A–M e N–Z), 13 letras por linha */
.footer-letters-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col-list.footer-letters-row {
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.42rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 3px 4px;
  box-sizing: border-box;
}

.footer-col-list.footer-letters-row > li {
  flex-shrink: 0;
}

.footer-bottom-badges {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
  justify-content: flex-start;
}

.footer-store-link {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  opacity: 0.8;
  transition: opacity var(--t);
}
.footer-store-link:hover { opacity: 1; }

.footer-badge {
  height: auto;
  width: auto;
  max-width: 100%;
  max-height: 48px;
  display: block;
  object-fit: contain;
}

.footer-bottom-inner .footer-virtues-link {
  flex-shrink: 0;
}

.footer-virtues-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: opacity var(--t);
}
.footer-virtues-link:hover { opacity: 0.85; color: #fff; }

.footer-virtues-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
}
.footer-virtues-text { font-family: var(--font-ui); letter-spacing: 0.02em; }

/* ── SUGGESTIONS MODAL ── */
.fmodal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.fmodal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.fmodal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.22s;
}
.fmodal-overlay.open .fmodal {
  transform: translateY(0) scale(1);
}
.fmodal-header {
  padding: 1.1rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid var(--border);
}
.fmodal-tabs { display: flex; gap: 0; }
.fmodal-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text3);
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  margin-bottom: -1.5px;
  transition: color 0.15s, border-color 0.15s;
  font-family: inherit;
}
.fmodal-tab-icon { display: inline-flex; flex-shrink: 0; line-height: 0; }
.fmodal-tab-icon svg { display: block; }
.fmodal-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.fmodal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text3);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.15rem 0.25rem;
  transition: color 0.15s;
  font-family: inherit;
}
.fmodal-close:hover { color: var(--text); }
.fmodal-body { padding: 1.5rem; }
.fform-group { margin-bottom: 1rem; }
.fform-hint {
  font-size: 0.8rem;
  color: var(--text3);
  margin: 0 0 0.85rem;
  line-height: 1.35;
}
.fform-hint strong { color: var(--text2); font-weight: 700; }
.fform-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 0.4rem;
}
.fform-input,
.fform-textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
  background: var(--white);
}
.fform-input:focus,
.fform-textarea:focus { border-color: var(--blue); }
.fform-textarea { resize: vertical; min-height: 88px; }
.fform-submit {
  width: 100%;
  padding: 0.78rem;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 0.25rem;
  font-family: inherit;
}
.fform-submit:hover { opacity: 0.88; }
.fform-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.fmodal-msg {
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-size: 0.83rem;
  margin-bottom: 1rem;
}
.fmodal-msg.success { background: #edf9f0; border: 1.5px solid #a3e4b7; color: #1a7a3f; }
.fmodal-msg.error   { background: #fff0f0; border: 1.5px solid #ffc5c5; color: #b00; }
.fmodal-success-view {
  text-align: center;
  padding: 2rem 1.5rem;
}
.fmodal-success-icon {
  margin-bottom: 0.75rem;
  line-height: 0;
  color: #1a7a3f;
}
.fmodal-success-icon svg { display: block; margin: 0 auto; }
.fmodal-success-title { font-weight: 800; font-size: 1.1rem; color: var(--text); margin-bottom: 0.4rem; }
.fmodal-success-desc { font-size: 0.85rem; color: var(--text3); }

/* ── STATES ── */
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  flex-direction: column;
  gap: 1rem;
}
.spinner {
  width: 26px; height: 26px;
  border: 2px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-txt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
}

.error-state { text-align: center; padding: 3rem 1.5rem; }
.error-title { font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.error-desc { font-size: 0.875rem; color: var(--text2); }

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--text);
  border-radius: var(--r);
  padding: 0.875rem 1.25rem;
  font-size: 0.85rem;
  color: #fff;
  z-index: 1000;
  transform: translateY(60px);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ─────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────── */

/* ── ≤ 768px — tablets/phones ── */
@media (max-width: 768px) {
  /* Layout geral */
  .container { padding: 0 1rem; }
  .page-body { padding: 2rem 0; gap: 2.5rem; }

  /* Header */
  .site-header { padding: 8px 1rem; min-height: 60px; gap: 8px 0.75rem; }
  .header-search-wrap { flex: 1 1 100%; max-width: 100%; width: 100%; order: 3; }
  .header-brand-row { flex: 1; }

  /* Hero */
  .hero { padding: 2.5rem 1rem; }

  /* Grids */
  .letters-grid { grid-template-columns: repeat(9, 1fr); }
  .cards-grid   { grid-template-columns: 1fr; }
  .info-grid    { grid-template-columns: 1fr; }

  /* WOD */
  .wod-card { padding: 1.5rem 1.25rem; }

  /* Footer — main (duas colunas; não forçar CONTATO em linha inteira) */
  .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 2rem 1rem 1.5rem;
    gap: 1.5rem 1rem;
  }
  .footer-brand-col,
  .footer-col--copyright {
    grid-column: 1 / -1;
  }
  .footer-main > .footer-col,
  .footer-main > .footer-brand-col {
    min-width: 0;
  }
  /* NAVEGAR + CONTATO: alinhados à direita; letras em exatamente 2 linhas (A–M / N–Z) */
  /* sem overflow:hidden no bloco: com flex-end a linha N–Z cortava o “N” à esquerda */
  .footer-col--letters {
    justify-self: end;
    text-align: right;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
  }
  .footer-col--letters .footer-col-title {
    text-align: right;
    width: 100%;
  }
  .footer-col--letters .footer-letters-grid {
    align-items: flex-end;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
  }
  .footer-col--letters .footer-col-list.footer-letters-row {
    flex-wrap: nowrap;
    justify-content: flex-end;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    gap: 0.28rem;
    scrollbar-width: thin;
    padding-inline: 4px;
  }
  .footer-col--social {
    justify-self: end;
    align-items: flex-end;
  }
  .site-footer .footer-col--social .footer-col-title--contact {
    text-align: right;
  }
  .footer-col--social .footer-social-nav {
    margin-left: auto;
    margin-right: 0;
  }
  .footer-copyright-block,
  .footer-col--copyright .footer-by { text-align: center; }

  /* Footer — barra inferior */
  .footer-bottom-inner {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    text-align: center;
  }
  .footer-bottom-badges { flex-wrap: wrap; justify-content: center; }
  .footer-bottom-inner .footer-virtues-link { justify-content: center; }
}

/* ── ≤ 540px — phones ── */
@media (max-width: 540px) {
  /* Header */
  .site-header { padding: 7px 0.85rem; }
  .header-vsep { display: none; }
  .header-nav a { font-size: 0.73rem; padding: 5px 8px; }
  .logo-mark { width: 40px; height: 40px; }
  .logo-wordmark { height: 22px; max-width: 44vw; }

  /* Hero */
  .hero { padding: 2rem 0.85rem; }
  .hero-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .hero-sub   { font-size: 0.9rem; margin-bottom: 1.5rem; }
  .hero-search-wrap { flex-direction: column; overflow: visible; }
  .hero-search-input { padding: 12px 14px; font-size: 1rem; }
  .hero-search-submit { width: 100%; justify-content: center; padding: 12px; border-radius: 0; }

  /* Letras A–Z no index */
  .letters-grid { grid-template-columns: repeat(6, 1fr); gap: 5px; }

  /* WOD */
  .wod-card { padding: 1.25rem 1rem; }
  .wod-term { font-size: clamp(1.5rem, 6vw, 2rem); }

  /* Entry */
  .entry { padding: 1.25rem 1rem; column-gap: 0.75rem; }
  .entry-num { font-size: 1.8rem; }
  .entry-name { padding-right: 0; }

  /* Browse */
  .browse-page        { padding: 1.5rem 1rem 4rem; }
  .browse-page-header { padding-bottom: 1rem; }
  .browse-page-title  { font-size: 1.6rem; }
  .browse-letter-nav  { gap: 4px; }
  .browse-terms-grid  { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
  .bln-item           { width: 32px; height: 32px; font-size: 0.8rem; }

  /* Term page */
  .term-page  { padding: 1.5rem 1rem 4rem; }
  .term-title { font-size: clamp(1.5rem, 5.5vw, 2rem); }
  .entry      { padding: 1.25rem 1rem; }

  /* Footer — duas colunas (col. esquerda não estoura a direita) */
  .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem 0.75rem;
    padding: 1.5rem 1rem 1.75rem;
    align-items: start;
  }
  .footer-col--dic .footer-link-btn,
  .footer-col--dic a,
  .footer-col--legal a,
  .footer-contact-link {
    overflow-wrap: anywhere;
  }
  .footer-brand-col {
    grid-column: 1 / -1;
    max-width: none;
  }
  .footer-col--copyright {
    grid-column: 1 / -1;
  }
  .footer-col--copyright .footer-copyright-block,
  .footer-col--copyright .footer-by {
    text-align: center;
  }
  /* Selos + virtues.ag em grid 3×3 (8 selos + link no canto) */
  .footer-bottom-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    gap: 0.55rem 0.4rem;
    padding: 1rem 0.85rem 1.25rem;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .footer-bottom-badges {
    display: contents;
  }
  .footer-bottom-inner .footer-store-link {
    flex: none;
    min-width: 0;
    justify-content: center;
  }
  .footer-bottom-inner .footer-virtues-link {
    grid-column: 3;
    grid-row: 3;
    justify-self: end;
    align-self: center;
    margin: 0;
  }
  .footer-badge {
    max-height: 42px;
    margin: 0 auto;
  }

  /* Drawer — 100% evita barra lateral por causa de 100vw + barra de rolagem */
  .drawer { width: 100%; max-width: 100%; }
  .drawer-body { padding: 1rem; }

  /* Modal */
  .fmodal { border-radius: 10px; }
  .fmodal-body { padding: 1rem; }

  /* Toast */
  .toast { left: 1rem; right: 1rem; bottom: 1rem; }
}

/* Reduzir movimento */
@media (prefers-reduced-motion: reduce) {
  .hero-float-word { animation: none !important; }
}

/* ── TERM PAGE — BLOCOS DE CONTEÚDO ── */
.tp-section-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 1rem;
}

.tp-block {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.tp-block-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 0.875rem;
}

.tp-count {
  font-weight: 600;
  font-size: 0.65rem;
  color: var(--text3);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1px 7px;
  margin-left: 2px;
}

.tag-red:hover {
  background: var(--red-bg);
  border-color: #f5c7c6;
  color: var(--red);
}

.flexions-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 5px;
}

.flexion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--bg);
  border-radius: 4px;
  gap: 8px;
}

.flexion-form {
  font-family: var(--font-text);
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.flexion-type {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  text-align: right;
}

.tp-extra-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tp-extra-list li {
  font-family: var(--font-text);
  font-size: 0.875rem;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tp-extra-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── TERM DRAWER ── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 14, 26, 0.5);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 520px;
  max-width: 100%;
  background: var(--white);
  border-left: 1.5px solid var(--border);
  z-index: 501;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
}
.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1.5px solid var(--border);
  flex-shrink: 0;
  gap: 1rem;
}

.drawer-title {
  font-family: var(--font-text);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.1;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 3px;
}

.drawer-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.drawer-close {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  color: var(--text2);
  transition: all var(--t);
  flex-shrink: 0;
}
.drawer-close:hover {
  background: var(--red-bg);
  border-color: #f5c7c6;
  color: var(--red);
}

.drawer-open-page {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-bg);
  border: 1.5px solid #c7d3f5;
  border-radius: var(--r);
  padding: 6px 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--t);
}
.drawer-open-page:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.drawer-body .entry {
  margin-bottom: 1rem;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1rem;
  row-gap: 0.6rem;
  align-items: start;
}

.drawer-body .entry-num {
  font-size: 1.5rem;
  grid-column: 2;
  grid-row: 1;
  position: static;
  padding-top: 0;
}

.drawer-body .entry-def {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.drawer-body .entry-example,
.drawer-body .entry-date {
  grid-column: 1 / -1;
}

.drawer-body .tp-block {
  margin-bottom: 0.875rem;
  padding: 1rem 1.25rem;
}

.drawer-body .tp-block-title {
  font-size: 0.65rem;
  margin-bottom: 0.6rem;
}

.drawer-body .tag {
  font-size: 0.75rem;
  padding: 3px 8px;
}

.drawer-body .term-header {
  display: none; /* header already in drawer-header */
}

.drawer-body .breadcrumb {
  display: none;
}

.drawer-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  padding: 3rem;
}

@media (max-width: 560px) {
  .drawer {
    width: 100%;
    max-width: 100%;
    border-left: none;
    border-top: 1.5px solid var(--border);
  }
}

/* ── ENTRY FOCUS / DESTAQUE ── */
.entry {
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.entry-focused {
  box-shadow: 0 0 0 2px var(--blue) !important;
  background: var(--blue-bg) !important;
}
.entry-num {
  transition: color 0.15s ease, transform 0.15s ease;
}
.entry-num:hover {
  color: var(--blue);
  transform: scale(1.1);
}
.entry-num:active {
  transform: scale(0.95);
}

/* ── SIMILAR TERMS LOADING ── */
.similar-loading {
  opacity: 0.6;
}
.similar-loading .tp-block-title {
  font-style: italic;
}
