/* CEP Busca — Source Sans 3 (leitura fácil), light/dark, motion */
:root,
[data-theme="light"] {
  --bg: #e8eef2;
  --bg-elev: #f4f7f9;
  --ink: #0b1620;
  --muted: #5a6b78;
  --accent: #0d9488;
  --accent-2: #0369a1;
  --accent-soft: rgba(13, 148, 136, 0.12);
  --line: rgba(11, 22, 32, 0.1);
  --panel: #ffffff;
  --panel-2: #f0f5f8;
  --shadow: 0 14px 40px rgba(11, 22, 32, 0.07);
  --danger: #dc2626;
  --ok: #059669;
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --display: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --radius: 16px;
  --header-h: 4.25rem;
  --space: 1rem;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0a1016;
  --bg-elev: #101820;
  --ink: #e8eef3;
  --muted: #8fa0ae;
  --accent: #2dd4bf;
  --accent-2: #38bdf8;
  --accent-soft: rgba(45, 212, 191, 0.14);
  --line: rgba(232, 238, 243, 0.1);
  --panel: #141c26;
  --panel-2: #1a2430;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --danger: #f87171;
  --ok: #34d399;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(13, 148, 136, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at -10% 20%, rgba(3, 105, 161, 0.14), transparent 50%),
    linear-gradient(165deg, var(--bg-elev), var(--bg) 45%, var(--bg));
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[data-theme="dark"] body,
html[data-theme="dark"] body {
  background:
    radial-gradient(ellipse 70% 45% at 90% 0%, rgba(45, 212, 191, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 30%, rgba(56, 189, 248, 0.08), transparent 45%),
    linear-gradient(165deg, #0d1520, var(--bg));
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color 0.2s ease; }
a:hover { color: var(--accent-2); }

/* Títulos: sempre maiúsculos + Bold */
h1, h2, h3, .title-case {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  color: var(--ink);
}
h1 { font-size: clamp(1.65rem, 4vw, 2.35rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h3 { font-size: 1rem; }

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg-elev) 82%, transparent);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }

.header-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand-text span {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0.75rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}
.nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-1px);
}
.nav a.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}
.nav a i, .nav a svg { width: 16px; height: 16px; }
.nav-more { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(8, 16, 24, 0.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.2s, background 0.2s;
}
.theme-toggle:hover { transform: rotate(-12deg) scale(1.05); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* Voltar ao topo */
.back-top {
  position: fixed;
  right: max(1rem, calc((100vw - 1120px) / 2));
  bottom: 1.25rem;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  color: var(--accent);
  box-shadow: var(--shadow);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s, background 0.2s;
}
.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-top:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.back-top svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .header-inner { position: relative; }
  .header-actions { margin-left: auto; }
  .nav {
    position: fixed;
    top: calc(var(--header-h) + 0.45rem);
    right: 1rem;
    left: auto;
    margin-left: 0;
    width: min(20.5rem, calc(100vw - 2rem));
    max-height: calc(100dvh - var(--header-h) - 1.25rem);
    overflow: auto;
    overscroll-behavior: contain;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.7rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--bg-elev);
    box-shadow: var(--shadow-lg, 0 18px 50px rgba(8, 16, 24, 0.18));
    z-index: 55;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px) scale(0.98);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }
  .site-header.nav-open .nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .site-header.nav-open .nav-backdrop {
    display: block;
  }
  .nav a {
    width: 100%;
    justify-content: flex-start;
    padding: 0.78rem 0.9rem;
    border-radius: 12px;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: none;
  }
  .nav a:hover { transform: none; }
  .nav a span { display: inline !important; }
  .nav-more {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 0.45rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--line);
  }
  .nav-more-label {
    margin: 0 0 0.25rem;
    padding: 0 0.9rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .nav-more a {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.02em;
  }
  body.nav-locked {
    overflow: hidden;
    touch-action: none;
  }
}

/* —— Footer (cedo no arquivo: se o CSS truncar no fim, o rodapé ainda estiliza) —— */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, transparent), transparent 7rem),
    color-mix(in srgb, var(--panel) 82%, transparent);
  margin-top: auto;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
  opacity: 0.85;
}
.footer-inner {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.75rem 0 1.75rem;
  display: grid;
  grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  align-items: start;
}
.footer-brand-link {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}
.footer-brand .logo-foot {
  width: min(240px, 100%);
  color: var(--ink);
  margin-bottom: 0.85rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.footer-brand-link:hover .logo-foot {
  opacity: 0.88;
  transform: translateY(-1px);
}
.footer-brand > p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 1rem;
  max-width: 28rem;
}
.footer-badges {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.footer-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-badges svg,
.footer-badges i {
  width: 13px;
  height: 13px;
  color: var(--accent);
}
.footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-cta-btn,
.footer-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s, background 0.2s, color 0.2s;
}
.footer-cta-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.footer-cta-btn:hover { transform: translateY(-1px); color: #fff; }
.footer-cta-ghost {
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
}
.footer-cta-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.footer-cta-btn svg,
.footer-cta-btn i,
.footer-cta-ghost svg,
.footer-cta-ghost i {
  width: 14px;
  height: 14px;
}

.footer-col h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  margin: 0 0 0.95rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.footer-col h3 svg,
.footer-col h3 i {
  width: 15px;
  height: 15px;
  color: var(--accent);
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.15rem;
}
.footer-col li { margin: 0; }
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.45rem 0.38rem 0.35rem;
  margin-left: -0.35rem;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.footer-col a:hover {
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateX(2px);
}
.footer-col a svg,
.footer-col a i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.85;
}

.footer-bottom {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-copy { font-weight: 600; }
.footer-legal {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.footer-legal a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.footer-legal a:hover { color: var(--accent); }
@media (max-width: 1080px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1.5rem;
  }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-legal { justify-content: center; }
}

/* —— Main —— */
.site-main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
  flex: 1 0 auto;
}
.site-main:focus { outline: none; }

/* —— Home hero —— */
.home-hero {
  position: relative;
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 1.5rem 2.25rem;
  align-items: center;
  padding: 1.35rem 0 0.25rem;
  animation: rise 0.7s ease both;
}
.home-hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.home-hero .logo-hero {
  width: min(360px, 82vw);
  height: auto;
  color: var(--ink);
  margin-bottom: 1.1rem;
  filter: drop-shadow(0 12px 30px rgba(13, 148, 136, 0.2));
  animation: rise 0.8s 0.05s ease both;
}
.home-hero h1,
.home-hero .home-title {
  font-size: clamp(1.95rem, 5.2vw, 3.15rem);
  max-width: 18ch;
  margin-bottom: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.12;
  color: var(--ink);
  animation: rise 0.8s 0.12s ease both;
}
.home-title-accent {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
.home-title-mark {
  position: relative;
  display: inline;
  color: var(--accent);
  font-weight: 800;
  background: linear-gradient(
    180deg,
    transparent 58%,
    color-mix(in srgb, var(--accent) 22%, transparent) 58%
  );
  padding: 0 0.06em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.lead {
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  max-width: 40rem;
  margin: 0 0 1.25rem;
  line-height: 1.55;
}
.home-hero .lead,
.home-hero .home-lead {
  margin: 0 0 1.45rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.4vw, 1.22rem);
  font-weight: 500;
  line-height: 1.55;
  color: color-mix(in srgb, var(--ink) 55%, var(--muted));
  animation: rise 0.8s 0.18s ease both;
}
.home-lead strong {
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.01em;
}

/* Vista de busca: hero compacto + resultados logo abaixo */
.home-hero--searching {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 0 0.25rem;
  min-height: 0;
  gap: 0;
}
.home-hero--searching .logo-hero {
  width: min(280px, 70vw);
  margin-bottom: 0.75rem;
}
.home-hero--searching h1 {
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  max-width: none;
  margin-bottom: 0.4rem;
}
.home-hero--searching .home-title-accent,
.home-hero--searching .home-title-mark {
  color: inherit;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}
.home-hero--searching .lead {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  max-width: 36rem;
}
.home-hero--searching .home-lead strong {
  color: var(--accent);
}

/* Painel visual compartilhado (home + páginas) */
.page-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 1.25rem 2rem;
  align-items: center;
  margin: 0 0 1.5rem;
}
.page-hero-copy { min-width: 0; }
.page-hero-copy > .eyebrow { margin-bottom: 0.55rem; }
.page-hero-copy > h1,
.page-hero-copy > .page-title,
.page-hero-copy > .tools-hero-title,
.page-hero-copy > .blog-title {
  margin-bottom: 0.45rem;
}
.page-hero-copy > .page-title-sub {
  margin-bottom: 0.85rem;
}
.page-hero-copy > .page-title-topics {
  margin-bottom: 1rem;
}
.page-hero-copy > .lead,
.page-hero-copy > .prose {
  margin-bottom: 0;
}
.page-hero-copy > .prose { max-width: 36rem; }
.page-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  pointer-events: none;
  user-select: none;
  animation: rise 0.9s 0.2s ease both;
}
.page-visual-glow {
  position: absolute;
  inset: 8% 4% 12% 8%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 45% 40%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 62%),
    radial-gradient(ellipse at 70% 65%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 55%);
  filter: blur(2px);
  z-index: 0;
}
.page-visual-stage {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  aspect-ratio: 1 / 0.92;
}
.page-visual-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--accent);
}
.page-visual-map-land {
  transform-origin: 55% 50%;
  animation: pageVisualBreathe 7s ease-in-out infinite;
}
.page-visual-pin {
  transform-origin: 204px 142px;
  animation: pageVisualPin 2.8s ease-in-out infinite;
}
.page-visual-dot--a { animation: pageVisualPulse 2.4s ease-in-out infinite; }
.page-visual-dot--b { animation: pageVisualPulse 2.4s 0.4s ease-in-out infinite; }
.page-visual-dot--c { animation: pageVisualPulse 2.4s 0.8s ease-in-out infinite; }
.page-visual-preview {
  position: absolute;
  left: 4%;
  right: 8%;
  bottom: 6%;
  padding: 0.95rem 1.05rem 0.9rem;
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: pageVisualFloat 5.5s ease-in-out infinite;
}
.page-visual--address .page-visual-preview {
  top: 18%;
  bottom: auto;
}
.page-visual-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}
.page-visual-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.page-visual-preview-badge svg,
.page-visual-preview-badge i {
  width: 13px;
  height: 13px;
}
.page-visual-preview-cep {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.page-visual-preview-street {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}
.page-visual-preview-meta {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 550;
}
.page-visual-preview-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 650;
  color: color-mix(in srgb, var(--ink) 62%, var(--muted));
}
.page-visual-preview-foot span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.page-visual-preview-foot svg,
.page-visual-preview-foot i {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

/* Variantes */
.page-visual-orbit {
  position: absolute;
  inset: 8% 12% 28% 12%;
}
.page-visual-orb {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--accent);
  animation: pageVisualFloat 4.8s ease-in-out infinite;
}
.page-visual-orb svg,
.page-visual-orb i { width: 1.15rem; height: 1.15rem; }
.page-visual-orb--1 { top: 8%; left: 8%; animation-delay: 0s; }
.page-visual-orb--2 { top: 0; right: 12%; animation-delay: 0.3s; }
.page-visual-orb--3 { top: 42%; left: 0; animation-delay: 0.6s; }
.page-visual-orb--4 { top: 38%; right: 0; animation-delay: 0.9s; }
.page-visual-orb--5 { bottom: 8%; left: 28%; animation-delay: 1.1s; }
.page-visual-orb--core {
  top: 28%;
  left: 50%;
  width: 3.4rem;
  height: 3.4rem;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: 0;
  animation: pageVisualCorePulse 3s ease-in-out infinite;
}
.page-visual-orb--core svg,
.page-visual-orb--core i { width: 1.4rem; height: 1.4rem; }

.page-visual-bigcode {
  position: absolute;
  top: 6%;
  left: 10%;
  right: 10%;
  text-align: center;
  padding: 1.1rem 1rem 0.9rem;
  border-radius: 20px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: pageVisualFloat 5s ease-in-out infinite;
}
.page-visual-bigcode-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.page-visual-bigcode-num {
  display: block;
  font-size: clamp(2.8rem, 8vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin: 0.15rem 0;
}
.page-visual-bigcode-place {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.page-visual-code {
  position: absolute;
  inset: 12% 4% 12% 4%;
  border-radius: 16px;
  background: #0f1720;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: pageVisualFloat 5.5s ease-in-out infinite;
  color: #d7e2ea;
}
.page-visual-code-bar {
  display: flex;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.page-visual-code-bar span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #475569;
}
.page-visual-code-bar span:nth-child(1) { background: #f87171; }
.page-visual-code-bar span:nth-child(2) { background: #fbbf24; }
.page-visual-code-bar span:nth-child(3) { background: #34d399; }
.page-visual-code pre {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.78rem;
  line-height: 1.55;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
}
.page-visual-code .pv-k { color: #2dd4bf; }
.page-visual-code .pv-v { color: #38bdf8; }
.page-visual-code .pv-s { color: #a5b4fc; }
.page-visual-code .pv-c { color: #64748b; }

.page-visual-mail {
  position: absolute;
  top: 8%;
  left: 18%;
  right: 18%;
  height: 42%;
  animation: pageVisualFloat 5s ease-in-out infinite;
}
.page-visual-mail-flap {
  height: 38%;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0.85;
  border-radius: 4px 4px 0 0;
}
.page-visual-mail-body {
  margin-top: -1px;
  height: 62%;
  padding: 0.85rem 1rem;
  border-radius: 0 0 16px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  justify-content: center;
}
.page-visual-mail-line {
  display: block;
  height: 0.35rem;
  border-radius: 99px;
  background: color-mix(in srgb, var(--muted) 28%, transparent);
}
.page-visual-mail-line--short { width: 55%; }

.page-visual-stack {
  position: absolute;
  top: 6%;
  left: 16%;
  right: 16%;
  height: 48%;
}
.page-visual-sheet {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.page-visual-sheet--1 { transform: rotate(-6deg) translate(-6%, 8%); opacity: 0.55; }
.page-visual-sheet--2 { transform: rotate(4deg) translate(6%, 4%); opacity: 0.75; }
.page-visual-sheet--3 {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  justify-content: center;
  padding: 1.1rem 1.2rem;
  animation: pageVisualFloat 5.2s ease-in-out infinite;
}
.page-visual-sheet-line {
  display: block;
  height: 0.4rem;
  border-radius: 99px;
  background: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.page-visual-sheet-line--mid { width: 78%; }
.page-visual-sheet-line--short { width: 48%; }

.page-visual-pillars {
  position: absolute;
  top: 8%;
  left: 8%;
  right: 8%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.page-visual-pillars > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 0.4rem;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
  animation: pageVisualFloat 4.8s ease-in-out infinite;
}
.page-visual-pillars > div:nth-child(2) { animation-delay: 0.25s; }
.page-visual-pillars > div:nth-child(3) { animation-delay: 0.5s; }
.page-visual-pillars span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.page-visual-pillars svg,
.page-visual-pillars i { width: 1rem; height: 1rem; }
.page-visual-pillars strong {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-visual-checks {
  position: absolute;
  inset: 16% 6%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  justify-content: center;
}
.page-visual-check {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-variant-numeric: tabular-nums;
  animation: pageVisualFloat 4.6s ease-in-out infinite;
}
.page-visual-check:nth-child(2) { animation-delay: 0.2s; }
.page-visual-check:nth-child(3) { animation-delay: 0.4s; }
.page-visual-check svg,
.page-visual-check i { width: 1.1rem; height: 1.1rem; }
.page-visual-check span { font-weight: 700; color: var(--ink); }
.page-visual-check em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.page-visual-check--ok { color: var(--ok); }
.page-visual-check--bad { color: var(--danger); }

.page-visual-chips {
  position: absolute;
  top: 8%;
  left: 6%;
  right: 6%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}
.page-visual-chip {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  animation: pageVisualFloat 4.2s ease-in-out infinite;
}
.page-visual-chip--alt {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}
.page-visual-chip:nth-child(2) { animation-delay: 0.15s; }
.page-visual-chip:nth-child(3) { animation-delay: 0.3s; }
.page-visual-chip:nth-child(4) { animation-delay: 0.45s; }

.page-visual-dice {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: var(--shadow);
  animation: pageVisualFloat 3.8s ease-in-out infinite;
}
.page-visual-dice svg,
.page-visual-dice i { width: 2.1rem; height: 2.1rem; }

.page-visual-404 {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
  animation: pageVisualFloat 4s ease-in-out infinite;
}
.page-visual-404-num {
  font-family: var(--display);
  font-size: clamp(3.4rem, 8vw, 4.6rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-visual-404-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-visual-address-note {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 10%;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted);
}

@keyframes pageVisualFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes pageVisualPin {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes pageVisualPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}
@keyframes pageVisualBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.018); }
}
@keyframes pageVisualCorePulse {
  0%, 100% { transform: translateX(-50%) scale(1); box-shadow: var(--shadow); }
  50% { transform: translateX(-50%) scale(1.06); box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 35%, transparent); }
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .page-hero-row {
    grid-template-columns: 1fr;
    margin-bottom: 1.1rem;
  }
  .page-visual,
  .home-hero .page-visual {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-visual-map-land,
  .page-visual-pin,
  .page-visual-dot--a,
  .page-visual-dot--b,
  .page-visual-dot--c,
  .page-visual-preview,
  .page-visual-orb,
  .page-visual-bigcode,
  .page-visual-code,
  .page-visual-mail,
  .page-visual-sheet--3,
  .page-visual-pillars > div,
  .page-visual-check,
  .page-visual-chip,
  .page-visual-dice,
  .page-visual-404 {
    animation: none !important;
  }
}

/* Páginas com visual: aproveitar largura do site */
.tools-hub:has(.page-hero-row),
.tool-page:has(.page-hero-row),
.about-page:has(.page-hero-row),
.glossary-page:has(.page-hero-row),
.contact-page:has(.page-hero-row),
.not-found-page:has(.page-hero-row) {
  max-width: min(1120px, 100%);
}

.home-results {
  margin: 0.65rem 0 0;
  padding: 1.15rem 1.2rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  animation: rise 0.45s ease both;
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}
.home-results-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.home-results-head h2 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
}
.home-results-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.home-results-clear {
  padding: 0.55rem 0.95rem;
  font-size: 0.72rem;
  white-space: nowrap;
}
.home-results-table {
  margin: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: auto;
}
.home-results-empty {
  padding: 0.35rem 0 0.15rem;
}
.home-results-empty > p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 40rem;
}
.home-results-empty .about-actions {
  margin: 0;
}


.search-xl {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
  max-width: 720px;
  animation: rise 0.8s 0.24s ease both;
}
.search-xl .field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.35rem 0.35rem 1.15rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.25s;
}
.search-xl .field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow);
}
.search-xl .field svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.search-xl input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  outline: none;
  min-width: 0;
  padding: 0.85rem 0;
}
.search-xl input::placeholder { color: var(--muted); }
.search-xl button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  padding: 0 1.6rem;
  min-width: 9.5rem;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.search-xl button:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.05); }
.search-xl button:active { transform: scale(0.98); }
.search-xl button svg { width: 18px; height: 18px; }

.search-xl-select {
  display: flex;
  align-items: stretch;
}
.search-xl-select select {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0 2rem 0 0.85rem;
  border-radius: 999px;
  min-height: 3.15rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.search-xl-select select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow);
}

.home-results-filter {
  margin: 0 0 1rem;
}
.home-results-related {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.home-results-related h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}
.home-results-related h3 svg { width: 18px; height: 18px; color: var(--accent); }
.home-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.home-related-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
}
.home-related-meta {
  color: var(--muted);
  font-size: 0.92rem;
}
.busca-result-filter {
  margin: 0 0 1rem;
}
.page-search--compact .page-search-field {
  min-height: 2.75rem;
}
.page-search--compact .page-search-field input {
  font-size: 0.98rem;
}

@media (max-width: 640px) {
  .search-xl { flex-direction: column; }
  .search-xl .field { border-radius: var(--radius); }
  .search-xl-select select {
    width: 100%;
    border-radius: var(--radius);
  }
  .search-xl button {
    width: 100%;
    min-height: 3.4rem;
    border-radius: var(--radius);
  }
  .nav a span { display: none; }
  .brand-text span { display: none; }
}

/* Atalhos sob a busca da home */
.home-hero .home-tools-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.9rem 0 0;
  padding: 0;
  max-width: 720px;
  animation: rise 0.8s 0.3s ease both;
}
.home-hero .home-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.84rem;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(11, 22, 32, 0.04);
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.home-hero .home-tool i,
.home-hero .home-tool svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--accent);
}
.home-hero .home-tool:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--accent);
  box-shadow: var(--shadow);
}
.home-hero .home-tool--more {
  border-style: dashed;
  color: var(--accent);
  background: var(--accent-soft);
}
.home-hero .home-tool--more:hover {
  border-style: solid;
}
@media (max-width: 640px) {
  .home-hero .home-tools-strip {
    gap: 0.4rem;
    margin-top: 0.75rem;
  }
  .home-hero .home-tool {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
  }
}

/* —— Home: destaques + ritmo de seções —— */
.home-highlights {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1.1rem 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  animation: rise 0.7s 0.32s ease both;
}
.home-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-width: 0;
}
.home-highlights svg,
.home-highlights i {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.12rem;
  color: var(--accent);
}
.home-highlights strong {
  display: block;
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}
.home-highlights span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 0.15rem;
  line-height: 1.35;
}
@media (max-width: 900px) {
  .home-highlights { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .home-highlights { grid-template-columns: 1fr; gap: 0.75rem; }
}

.home-block {
  margin: 2.35rem 0 0;
  padding: 2rem 0 0;
  border-top: 1px solid var(--line);
  animation: rise 0.65s ease both;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
}
.section-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent);
}
.section-link:hover { color: var(--accent-2); }
.section-link svg,
.section-link i {
  width: 14px;
  height: 14px;
}

/* —— About —— */
.about-home {
  margin-bottom: 0.5rem;
}
.about-home-prose {
  max-width: 42rem;
  margin: 0;
}
.about-home-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 2rem;
  align-items: start;
}
.about-home h2 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
}
.prose {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 42rem;
}
.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }
.about-tagline {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  color: var(--accent);
  margin: 1.25rem 0 0.75rem;
}
.about-aside {
  display: grid;
  gap: 0.75rem;
}
.about-aside-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.05rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s;
}
.about-aside-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.about-aside-item svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.about-aside-item strong {
  display: block;
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.about-aside-item span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.2rem;
}

.about-page {
  max-width: 720px;
  animation: rise 0.55s ease both;
}
.about-page h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.about-page .prose { margin-top: 1.25rem; }

/* —— Hub de ferramentas —— */
.tools-hub {
  max-width: 960px;
  margin: 0 auto;
  animation: rise 0.55s ease both;
  --tools-teal: #0d9488;
  --tools-sky: #0284c7;
  --tools-amber: #d97706;
  --tools-violet: #7c3aed;
  --tools-rose: #e11d48;
}
.tools-hub .tools-hero-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tools-teal);
  line-height: 1.15;
  margin: 0 0 0.85rem;
}
.tools-hub .tools-hero-title > svg,
.tools-hub .tools-hero-title > i {
  flex-shrink: 0;
  width: 1.15em;
  height: 1.15em;
  color: var(--tools-teal);
  padding: 0.35rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--tools-teal) 14%, transparent);
  box-sizing: content-box;
}
.tools-hub .lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40rem;
  margin: 0 0 1.75rem;
}
.tools-hub .page-hero-copy > .lead {
  margin-bottom: 0;
}
.page-hero-copy .dev-hero-actions {
  margin-top: 1rem;
}
.dev-hero.page-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 1.25rem 2rem;
  align-items: center;
}
.dev-docs .dev-callout-ok {
  margin-top: 1.25rem;
}

/* Títulos de seção: maiúsculas + ícone colorido */
.tools-hub .tools-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tools-teal);
  line-height: 1.3;
}
.tools-hub .tools-heading > svg,
.tools-hub .tools-heading > i {
  flex-shrink: 0;
  width: 1.15em;
  height: 1.15em;
  color: #fff;
  padding: 0.4rem;
  border-radius: 11px;
  background: var(--tools-teal);
  box-sizing: content-box;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--tools-teal) 35%, transparent);
}
.tools-hub .tools-heading--sky { color: var(--tools-sky); }
.tools-hub .tools-heading--sky > svg,
.tools-hub .tools-heading--sky > i {
  background: var(--tools-sky);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--tools-sky) 35%, transparent);
}
.tools-hub .tools-heading--amber { color: var(--tools-amber); }
.tools-hub .tools-heading--amber > svg,
.tools-hub .tools-heading--amber > i {
  background: var(--tools-amber);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--tools-amber) 35%, transparent);
}
.tools-hub .tools-heading--violet { color: var(--tools-violet); }
.tools-hub .tools-heading--violet > svg,
.tools-hub .tools-heading--violet > i {
  background: var(--tools-violet);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--tools-violet) 35%, transparent);
}
.tools-hub .tools-heading--rose { color: var(--tools-rose); }
.tools-hub .tools-heading--rose > svg,
.tools-hub .tools-heading--rose > i {
  background: var(--tools-rose);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--tools-rose) 35%, transparent);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.tools-sections {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.tools-section {
  scroll-margin-top: calc(var(--header-h) + 3.5rem);
}
.tools-section-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.75rem 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}
.tools-section:first-child .tools-section-head {
  margin-top: 0;
}
.tools-section-head > svg,
.tools-section-head > i {
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex-shrink: 0;
}
.tools-hub-jump-wrap {
  position: sticky;
  top: calc(var(--header-h) + 0.35rem);
  z-index: 4;
  margin: 0 0 0.25rem;
  padding: 0.4rem 0;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.tools-hub-jump {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 0.1rem 0 0.25rem;
}
.tools-hub-jump::-webkit-scrollbar { display: none; }
.tools-hub-jump-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(11, 22, 32, 0.04);
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.tools-hub-jump-link svg,
.tools-hub-jump-link i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--accent);
}
.tools-hub-jump-link:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--accent);
}
.tools-hub-jump-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.35rem 1.25rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 100%;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.tool-card strong {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--tools-teal);
}
.tool-card--gerador { --card-tone: var(--tools-teal); }
.tool-card--aleatorio { --card-tone: var(--tools-violet); }
.tool-card--validador { --card-tone: var(--tools-sky); }
.tool-card--buscar-cep { --card-tone: var(--tools-amber); }
.tool-card--buscar-rua { --card-tone: var(--tools-rose); }
.tool-card--buscar-cidade { --card-tone: #059669; }
.tool-card--endereco { --card-tone: #c2410c; }
.tool-card--formatador { --card-tone: #0d9488; }
.tool-card--prefixo { --card-tone: #7c3aed; }
.tool-card--cep-estado { --card-tone: #2563eb; }
.tool-card--proximas { --card-tone: #059669; }
.tool-card--regiao { --card-tone: #9333ea; }
.tool-card--distancia { --card-tone: #0284c7; }
.tool-card--consultor-ddd { --card-tone: #0369a1; }
.tool-card--end-cep { --card-tone: #b45309; }
.tool-card--bairro-cep { --card-tone: #be185d; }
.tool-card--export { --card-tone: #4338ca; }
.tool-card--stats { --card-tone: #7c3aed; }
.tool-card--cep-ddd { --card-tone: #dc2626; }
.tool-card--telefone { --card-tone: #0891b2; }
.tool-card--ligar { --card-tone: #4f46e5; }
.tool-card--comparador { --card-tone: #0d9488; }
.tool-card--etiqueta { --card-tone: #d97706; }
.tool-card--ddd { --card-tone: var(--tools-sky); }
.tool-card--ddi { --card-tone: #0369a1; }
.tool-card--gerador strong,
.tool-card--aleatorio strong,
.tool-card--validador strong,
.tool-card--buscar-cep strong,
.tool-card--buscar-rua strong,
.tool-card--buscar-cidade strong,
.tool-card--endereco strong,
.tool-card--formatador strong,
.tool-card--prefixo strong,
.tool-card--cep-estado strong,
.tool-card--proximas strong,
.tool-card--regiao strong,
.tool-card--distancia strong,
.tool-card--consultor-ddd strong,
.tool-card--end-cep strong,
.tool-card--bairro-cep strong,
.tool-card--export strong,
.tool-card--stats strong,
.tool-card--cep-ddd strong,
.tool-card--telefone strong,
.tool-card--ligar strong,
.tool-card--comparador strong,
.tool-card--etiqueta strong,
.tool-card--ddd strong,
.tool-card--ddi strong { color: var(--card-tone); }
.tool-card--gerador:hover,
.tool-card--aleatorio:hover,
.tool-card--validador:hover,
.tool-card--buscar-cep:hover,
.tool-card--buscar-rua:hover,
.tool-card--buscar-cidade:hover,
.tool-card--endereco:hover,
.tool-card--formatador:hover,
.tool-card--prefixo:hover,
.tool-card--cep-estado:hover,
.tool-card--proximas:hover,
.tool-card--regiao:hover,
.tool-card--distancia:hover,
.tool-card--consultor-ddd:hover,
.tool-card--end-cep:hover,
.tool-card--bairro-cep:hover,
.tool-card--export:hover,
.tool-card--stats:hover,
.tool-card--cep-ddd:hover,
.tool-card--telefone:hover,
.tool-card--ligar:hover,
.tool-card--comparador:hover,
.tool-card--etiqueta:hover,
.tool-card--ddd:hover,
.tool-card--ddi:hover {
  border-color: color-mix(in srgb, var(--card-tone) 45%, var(--line));
}
.tool-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--card-tone, var(--accent)) 14%, transparent);
  color: var(--card-tone, var(--accent));
  margin-bottom: 0.35rem;
}
.tool-card-icon svg {
  width: 22px;
  height: 22px;
}
.tool-card > span:not(.tool-card-icon):not(.tool-card-cta) {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
  flex: 1;
}
.tool-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--card-tone, var(--accent));
}
.tool-card-cta svg {
  width: 16px;
  height: 16px;
}
.tools-hub .tool-related {
  margin-top: 2.25rem;
}
.tools-hub-enrich {
  margin-top: 2.5rem;
  max-width: none;
}
.tools-hub .enrich-block .tools-heading {
  margin-bottom: 1rem;
}
.tools-compare-wrap {
  margin-top: 1rem;
}
.tools-hub-features {
  margin-top: 0.75rem;
}
.tools-hub-about .enrich-intro {
  margin-bottom: 0.5rem;
}
.tools-scenario-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.tools-scenario-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.75rem 0.9rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.tools-scenario-q {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.tools-scenario-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.tools-scenario-link:hover {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent-2);
}
.tools-scenario-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.tools-scenario-link > svg:last-child {
  width: 13px;
  height: 13px;
  opacity: 0.65;
}
.tools-hub-explore .enrich-intro {
  margin-bottom: 0.75rem;
}
.tools-hub-explore .about-actions {
  margin-top: 0;
  margin-bottom: 0;
}

.site-explore {
  margin-top: 2rem;
  padding: 1.35rem 1.35rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 4%, transparent);
}
.site-explore-head {
  margin-bottom: 1.1rem;
}
.site-explore-head .tools-heading {
  margin: 0 0 0.35rem;
}
.site-explore-head .enrich-intro {
  margin: 0;
}
.site-explore-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}
.site-explore-col h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-explore-col h3 svg,
.site-explore-col h3 i {
  width: 14px;
  height: 14px;
  color: var(--accent);
}
.site-explore-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.site-explore-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.35rem;
  margin-left: -0.35rem;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.35;
  transition: color 0.15s ease, background 0.15s ease;
}
.site-explore-links a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
.site-explore-links a svg,
.site-explore-links a i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--accent);
}
@media (max-width: 960px) {
  .site-explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .site-explore-grid { grid-template-columns: 1fr; }
  .site-explore { padding: 1.1rem 1rem; }
}

.tools-chooser {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.tools-chooser-group {
  --chooser-tone: var(--accent);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.tools-chooser-group--amber { --chooser-tone: #d97706; }
.tools-chooser-group--teal { --chooser-tone: #0d9488; }
.tools-chooser-group--sky { --chooser-tone: #0284c7; }
.tools-chooser-group--emerald { --chooser-tone: #059669; }
.tools-chooser-group--indigo { --chooser-tone: #4f46e5; }
.tools-chooser-group--violet { --chooser-tone: #7c3aed; }
.tools-chooser-group-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid color-mix(in srgb, var(--chooser-tone) 22%, var(--line));
}
.tools-chooser-group-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--chooser-tone) 14%, transparent);
  color: var(--chooser-tone);
  flex-shrink: 0;
}
.tools-chooser-group-badge svg,
.tools-chooser-group-badge i {
  width: 16px;
  height: 16px;
}
.tools-chooser-group-title {
  flex: 1;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--chooser-tone);
  line-height: 1.2;
}
.tools-chooser-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--chooser-tone) 12%, var(--panel));
  color: var(--chooser-tone);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}
.tools-chooser-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.tools-chooser-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.tools-chooser-item:hover {
  border-color: color-mix(in srgb, var(--chooser-tone) 40%, var(--line));
  transform: translateY(-1px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--chooser-tone) 10%, transparent);
}
.tools-chooser-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 11px;
  background: color-mix(in srgb, var(--chooser-tone) 12%, transparent);
  color: var(--chooser-tone);
  flex-shrink: 0;
}
.tools-chooser-item-icon svg,
.tools-chooser-item-icon i {
  width: 18px;
  height: 18px;
}
.tools-chooser-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.tools-chooser-item-situation {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}
.tools-chooser-item-tool {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--chooser-tone);
  line-height: 1.25;
}
.tools-chooser-item-why {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}
.tools-chooser-item-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  opacity: 0.55;
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.tools-chooser-item-arrow svg,
.tools-chooser-item-arrow i {
  width: 18px;
  height: 18px;
}
.tools-chooser-item:hover .tools-chooser-item-arrow {
  color: var(--chooser-tone);
  opacity: 1;
  transform: translateX(2px);
}
.tools-compare th,
.tools-compare td {
  white-space: normal;
  min-width: 7.5rem;
  vertical-align: top;
}
.tools-compare td:first-child {
  min-width: 9rem;
}
.tools-compare td a {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.tools-compare td a:hover {
  text-decoration: underline;
}
@media (max-width: 1100px) {
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools-chooser-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tools-hub-jump-wrap {
    margin-left: -0.15rem;
    margin-right: -0.15rem;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
  }
  .tools-hub .tool-related .about-actions {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  .tools-hub .tool-related .about-actions .btn-primary,
  .tools-hub .tool-related .about-actions .btn-ghost {
    flex: 1 1 calc(50% - 0.3rem);
    justify-content: center;
    min-width: 0;
    padding: 0.72rem 0.75rem;
    font-size: 0.74rem;
  }
}
@media (max-width: 560px) {
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .tools-hub .tool-card {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 0.75rem;
    row-gap: 0.3rem;
    padding: 0.95rem 1rem;
  }
  .tools-hub .tool-card-icon {
    grid-row: 1 / span 2;
    grid-column: 1;
    align-self: start;
    margin-bottom: 0;
    width: 2.35rem;
    height: 2.35rem;
  }
  .tools-hub .tool-card strong {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    font-size: 0.88rem;
  }
  .tools-hub .tool-card > span:not(.tool-card-icon):not(.tool-card-cta) {
    grid-column: 1 / -1;
    font-size: 0.86rem;
  }
  .tools-hub .tool-card-cta {
    grid-column: 1 / -1;
    margin-top: 0.25rem;
    font-size: 0.78rem;
  }
  .tools-hub .tools-heading {
    letter-spacing: 0.04em;
    font-size: 0.98rem;
    gap: 0.55rem;
  }
  .tools-section-head {
    margin-top: 1.35rem;
    margin-bottom: 0.65rem;
  }
  .tools-chooser-item {
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    padding: 0.85rem 0.9rem;
  }
  .tools-chooser-item-arrow {
    display: none;
  }
  .tools-chooser-item-tool {
    font-size: 0.84rem;
  }
  .tools-scenario-list li {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .tools-scenario-link {
    justify-content: center;
    width: 100%;
  }
}
@media (max-width: 400px) {
  .tools-hub .tool-related .about-actions .btn-primary,
  .tools-hub .tool-related .about-actions .btn-ghost {
    flex: 1 1 100%;
  }
}

/* —— Contato —— */
.contact-page {
  max-width: 760px;
  animation: rise 0.55s ease both;
}
.contact-page h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.contact-page .prose { margin-top: 1.25rem; }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: var(--shadow);
}
.contact-card svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.contact-card strong {
  font-size: 0.95rem;
  color: var(--ink);
}
.contact-card span {
  font-size: 0.85rem;
  color: var(--muted);
  word-break: break-word;
}
.contact-form {
  margin-top: 1.75rem;
  padding: 1.35rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}
.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-field-full { grid-column: 1 / -1; }
.contact-form-note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.contact-form .about-actions { margin-top: 1.15rem; }
.contact-form .btn-primary {
  border: none;
  cursor: pointer;
  font: inherit;
}
.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.45;
}
.contact-alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.contact-alert-ok {
  background: color-mix(in srgb, var(--ok) 12%, var(--panel));
  border-color: color-mix(in srgb, var(--ok) 35%, var(--line));
  color: var(--ink);
}
.contact-alert-ok svg { color: var(--ok); }
.contact-alert-err {
  background: color-mix(in srgb, var(--danger) 10%, var(--panel));
  border-color: color-mix(in srgb, var(--danger) 35%, var(--line));
  color: var(--ink);
}
.contact-alert-err svg { color: var(--danger); }
@media (max-width: 720px) {
  .contact-cards { grid-template-columns: 1fr; }
  .contact-form-grid { grid-template-columns: 1fr; }
}

/* —— Legal / Privacidade —— */
.legal-page {
  max-width: 760px;
  animation: rise 0.55s ease both;
}
.legal-page h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 0.4rem;
}
.legal-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
}
.legal-toc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.25rem 1.2rem;
  margin: 1.5rem 0 2rem;
  box-shadow: var(--shadow);
}
.legal-toc h2 {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.legal-toc ol {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
}
.legal-toc a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}
.legal-toc a:hover { color: var(--accent); }
.legal-section {
  margin: 0 0 1.75rem;
  padding-top: 0.25rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.legal-section h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
}
.legal-page .prose ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
}
.legal-page .prose li {
  margin: 0.35rem 0;
  line-height: 1.55;
}
.legal-page .prose strong { color: var(--ink); font-weight: 700; }

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s, color 0.2s;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; }
.btn-ghost {
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary svg, .btn-ghost svg { width: 16px; height: 16px; }
.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 0.5rem;
}
.about-pillars > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s;
}
.about-pillars > div:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.about-pillars svg { width: 24px; height: 24px; color: var(--accent); margin-bottom: 0.65rem; }
.about-pillars h3 {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.about-pillars p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font);
  font-weight: 500;
}

@media (max-width: 860px) {
  .about-home-grid { grid-template-columns: 1fr; }
  .about-pillars { grid-template-columns: 1fr; }
}

/* —— States section —— */
.states-section {
  padding-bottom: 0.25rem;
}
.states-after-results {
  margin-top: 1.75rem;
}

.uf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: stretch;
}
.uf-grid > li {
  display: flex;
  min-width: 0;
  margin: 0;
}

.uf-card {
  --uf: #0d9488;
  display: grid;
  grid-template-columns: 4.85rem minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  height: 100%;
  min-height: 5.6rem;
  padding: 0.85rem 0.95rem 0.85rem 0.85rem;
  border-radius: 15px;
  text-decoration: none;
  color: var(--ink);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--uf) 8%, transparent), transparent 42%),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(11, 22, 32, 0.04);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.uf-flag {
  width: 4.85rem;
  height: 3.25rem;
  flex-shrink: 0;
  border-radius: 9px;
  overflow: hidden;
  background: color-mix(in srgb, var(--uf) 18%, var(--panel-2));
  box-shadow:
    0 1px 3px rgba(11, 22, 32, 0.16),
    0 0 0 1px rgba(11, 22, 32, 0.08);
  align-self: center;
}
.uf-flag img,
.estado-flag img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}
.uf-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
  overflow: hidden;
}
.uf-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  min-width: 0;
}
.uf-chip {
  flex-shrink: 0;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--uf);
  background: color-mix(in srgb, var(--uf) 14%, var(--panel));
  line-height: 1.3;
}
.uf-name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uf-sub {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uf-cep {
  font-size: 0.74rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: var(--muted);
  letter-spacing: 0;
  line-height: 1.3;
  opacity: 0.92;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uf-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--uf) 48%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--uf) 14%, transparent), transparent 50%),
    var(--panel);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--uf) 18%, transparent);
  color: var(--ink);
}
.uf-card:hover .uf-flag {
  box-shadow:
    0 4px 12px color-mix(in srgb, var(--uf) 28%, transparent),
    0 0 0 2px color-mix(in srgb, var(--uf) 45%, transparent);
}
.uf-card:focus-visible {
  outline: 2px solid var(--uf);
  outline-offset: 2px;
}

.uf-card[data-uf="AC"], .estado-page[data-uf="AC"] { --uf: #16a34a; }
.uf-card[data-uf="AL"], .estado-page[data-uf="AL"] { --uf: #dc2626; }
.uf-card[data-uf="AP"], .estado-page[data-uf="AP"] { --uf: #059669; }
.uf-card[data-uf="AM"], .estado-page[data-uf="AM"] { --uf: #1d4ed8; }
.uf-card[data-uf="BA"], .estado-page[data-uf="BA"] { --uf: #2563eb; }
.uf-card[data-uf="CE"], .estado-page[data-uf="CE"] { --uf: #16a34a; }
.uf-card[data-uf="DF"], .estado-page[data-uf="DF"] { --uf: #16a34a; }
.uf-card[data-uf="ES"], .estado-page[data-uf="ES"] { --uf: #0891b2; }
.uf-card[data-uf="GO"], .estado-page[data-uf="GO"] { --uf: #1d4ed8; }
.uf-card[data-uf="MA"], .estado-page[data-uf="MA"] { --uf: #b91c1c; }
.uf-card[data-uf="MT"], .estado-page[data-uf="MT"] { --uf: #1d4ed8; }
.uf-card[data-uf="MS"], .estado-page[data-uf="MS"] { --uf: #0d9488; }
.uf-card[data-uf="MG"], .estado-page[data-uf="MG"] { --uf: #b91c1c; }
.uf-card[data-uf="PA"], .estado-page[data-uf="PA"] { --uf: #dc2626; }
.uf-card[data-uf="PB"], .estado-page[data-uf="PB"] { --uf: #b91c1c; }
.uf-card[data-uf="PR"], .estado-page[data-uf="PR"] { --uf: #15803d; }
.uf-card[data-uf="PE"], .estado-page[data-uf="PE"] { --uf: #1d4ed8; }
.uf-card[data-uf="PI"], .estado-page[data-uf="PI"] { --uf: #15803d; }
.uf-card[data-uf="RJ"], .estado-page[data-uf="RJ"] { --uf: #1e40af; }
.uf-card[data-uf="RN"], .estado-page[data-uf="RN"] { --uf: #dc2626; }
.uf-card[data-uf="RS"], .estado-page[data-uf="RS"] { --uf: #dc2626; }
.uf-card[data-uf="RO"], .estado-page[data-uf="RO"] { --uf: #1d4ed8; }
.uf-card[data-uf="RR"], .estado-page[data-uf="RR"] { --uf: #0f766e; }
.uf-card[data-uf="SC"], .estado-page[data-uf="SC"] { --uf: #e11d48; }
.uf-card[data-uf="SP"], .estado-page[data-uf="SP"] { --uf: #c40008; }
.uf-card[data-uf="SE"], .estado-page[data-uf="SE"] { --uf: #15803d; }
.uf-card[data-uf="TO"], .estado-page[data-uf="TO"] { --uf: #1d4ed8; }

@media (max-width: 960px) {
  .uf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
}
@media (max-width: 640px) {
  .uf-grid { gap: 0.65rem; }
  .uf-card {
    grid-template-columns: 3.6rem minmax(0, 1fr);
    gap: 0.65rem;
    min-height: 5rem;
    padding: 0.7rem 0.75rem 0.7rem 0.7rem;
    border-radius: 13px;
  }
  .uf-flag { width: 3.6rem; height: 2.4rem; border-radius: 7px; }
  .uf-name { font-size: 0.8rem; }
  .uf-sub { font-size: 0.74rem; }
  .uf-cep { font-size: 0.68rem; }
  .uf-chip { font-size: 0.64rem; padding: 0.08rem 0.35rem; }
}
@media (max-width: 420px) {
  .uf-grid { grid-template-columns: 1fr; }
  .uf-card {
    grid-template-columns: 4.25rem minmax(0, 1fr);
    min-height: 4.85rem;
  }
  .uf-flag { width: 4.25rem; height: 2.85rem; }
  .uf-name { font-size: 0.88rem; }
  .uf-sub { font-size: 0.8rem; }
  .uf-cep { font-size: 0.72rem; }
}

[data-theme="dark"] .uf-flag,
[data-theme="dark"] .estado-flag {
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.14);
}
[data-theme="dark"] .uf-card:hover .uf-flag {
  box-shadow:
    0 4px 14px color-mix(in srgb, var(--uf) 40%, transparent),
    0 0 0 2px color-mix(in srgb, var(--uf) 55%, transparent);
}
[data-theme="dark"] .estado-card {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

/* —— Índice /estados —— */
.estados-index.tool-page {
  max-width: none;
}
.estados-index .prose,
.estados-intro {
  margin: 0 0 0.5rem;
  max-width: 48rem;
}
.estados-hero {
  margin-bottom: 1.75rem;
}
/* Título padronizado (todas as páginas) */
.page-title,
.estados-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  margin: 0 0 0.45rem;
  font-size: clamp(1.9rem, 4.6vw, 2.85rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.12;
  color: var(--ink);
}
.page-title-accent,
.estados-title-accent {
  color: transparent;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
}
.page-title-sub,
.estados-title-sub {
  margin: 0 0 0.85rem;
  max-width: 34rem;
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: var(--muted);
  text-transform: none;
}
.page-title-topics,
.estados-title-topics {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.page-title-topics li,
.estados-title-topics li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 70%, var(--panel));
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.page-title-topics svg,
.page-title-topics i,
.estados-title-topics svg,
.estados-title-topics i {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}
.page-hero-row .lead,
.estados-hero .lead {
  max-width: 38rem;
  margin: 0;
}
.estado-card .page-title,
.cidade-hero .page-title,
.result .page-title,
.bairro-page .page-title,
.blog-post-head .page-title {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  margin-bottom: 0.35rem;
}
.estado-title-row .page-title,
.cidade-title-row .page-title {
  display: inline;
  flex: 0 1 auto;
}
.estado-card .page-title-sub,
.cidade-hero .page-title-sub,
.result .page-title-sub,
.bairro-page .page-title-sub {
  max-width: 40rem;
}
.estado-card .page-title-topics,
.cidade-hero .page-title-topics,
.result .page-title-topics,
.bairro-page .page-title-topics {
  margin-bottom: 0.65rem;
}
.legal-page .page-hero-row {
  margin-bottom: 1.25rem;
}
.legal-page .page-hero-row .page-visual { display: none; }
.page-section-head,
.estados-section-head {
  margin: 0 0 0.85rem;
}
.page-section-head .eyebrow,
.estados-section-head .eyebrow {
  margin-bottom: 0.35rem;
}
.page-section-head h2,
.estados-section-head h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.25rem, 2.8vw, 1.6rem);
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.page-section-intro,
.estados-section-head .estados-table-intro,
.estados-section-head + .enrich-intro,
.page-section-head + .enrich-intro {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 46rem;
}
.estados-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.75rem;
}
.estados-jump-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}
.estados-jump-chip span {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.8rem;
}
.estados-jump-chip:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--accent-soft);
  color: var(--ink);
  text-decoration: none;
}
.estados-region {
  margin: 0 0 2.4rem;
  padding: 1.15rem 1.15rem 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 88%, var(--accent-soft)), var(--panel));
  box-shadow: 0 1px 0 rgba(11, 22, 32, 0.03);
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}
.estados-region-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}
.estados-region-titles { min-width: 0; }
.estados-region-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: 0.04em;
  line-height: 1.15;
}
.estados-region-mark {
  width: 0.42rem;
  height: 1.15em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  flex-shrink: 0;
}
.estados-region-meta {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.88rem;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.45rem;
  justify-content: flex-end;
  text-align: right;
}
.estados-region-meta-n {
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.estados-region-meta-faixa {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.84em;
  font-weight: 600;
  color: var(--ink);
}
.estados-region-meta-sep { opacity: 0.55; }
.estados-region-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 46rem;
  line-height: 1.5;
}
.estados-empty {
  margin: 0 0 1.5rem;
  color: var(--muted);
}
.estados-table-wrap {
  margin: 2.25rem 0 0;
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}
.estados-table-intro {
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: 46rem;
}
.estados-index .mono {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.86em;
  font-variant-numeric: tabular-nums;
}
.estados-digit-table {
  margin-top: 1rem;
}
.estados-index #primeiro-digito,
.estados-index #como-funciona-estados,
.estados-index #faq-estados,
.estados-index #faixas-cep {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}
.estados-index .enrich .estados-section-head h2 {
  margin-bottom: 0.35rem;
}
@media (max-width: 720px) {
  .estados-region {
    padding: 1rem 0.9rem 1.1rem;
  }
  .estados-region-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .estados-region-meta {
    text-align: left;
    justify-content: flex-start;
  }
  .page-title-topics,
  .estados-title-topics {
    gap: 0.35rem;
  }
}

/* —— Page sections —— */
.page-hero, .result, .list-block {
  animation: rise 0.55s ease both;
}
.page-hero h1, .result h1, .list-block h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.eyebrow svg { width: 14px; height: 14px; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.facts > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.05rem;
  transition: transform 0.2s ease, box-shadow 0.2s;
}
.facts > div:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.facts dt {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}
.facts dt svg { width: 14px; height: 14px; }
.facts dd { margin: 0.4rem 0 0; font-size: 1.05rem; font-weight: 600; }

.table-wrap {
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.table th {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--panel-2);
}
.table tr:last-child td { border-bottom: 0; }
.table tr { transition: background 0.15s; }
.table tbody tr:hover { background: var(--accent-soft); }
.table a { font-weight: 700; text-decoration: none; }

.more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  text-decoration: none;
  margin-top: 1rem;
}
.more svg { width: 16px; height: 16px; }

.city-list {
  columns: 2;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.city-list li { margin: 0.4rem 0; break-inside: avoid; }
.city-list a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  transition: color 0.15s;
}
.city-list a:hover { color: var(--accent); }

@media (max-width: 640px) { .city-list { columns: 1; } }

/* —— Página /estado/{UF} —— */
.estado-page {
  animation: rise 0.5s ease both;
  --uf: var(--accent);
  display: grid;
  gap: 1rem;
}

.estado-panel {
  margin: 0;
  padding: 1.15rem 1.2rem 1.25rem;
  background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--uf) 14%, var(--line));
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(11, 22, 32, 0.03);
}
.estado-panel-head {
  margin-bottom: 0.85rem;
}
.estado-panel-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.3;
}
.estado-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
  max-width: 42rem;
}
.estado-page .related-block {
  margin: 0;
  border-top: 0;
}
.estado-page .estado-panel.related-block,
.estado-page .estado-panel.related-estados,
.estado-page .estado-panel.explore-links {
  padding: 1.15rem 1.2rem 1.25rem;
}
.estado-page .estado-panel .about-actions {
  margin: 0;
}
.estado-page .explore-links {
  margin-bottom: 0;
}
.estado-page .estado-panel .related-head,
.estado-page .related-head {
  margin-bottom: 0.85rem;
}
.estado-page .estado-panel .related-head h2,
.estado-page .related-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.3;
}
.estado-page .estado-panel .related-head p,
.estado-page .related-head p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.45;
}
.estado-page .enrich-block {
  margin: 0;
}
.estado-page .estado-panel .related-estados-more {
  margin: 0.85rem 0 0;
}
.estado-page .estado-panel.explore-links .about-actions {
  gap: 0.55rem;
}
.estado-panel .faq-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}
.estado-panel.enrich-block .faq-item {
  margin: 0;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: var(--panel-2);
  box-shadow: none;
  overflow: hidden;
  padding: 0;
}
.estado-panel.enrich-block .faq-item summary {
  padding: 0.75rem 0.9rem;
  font-weight: 650;
}
.estado-panel.enrich-block .faq-item p {
  margin: 0;
  padding: 0 0.9rem 0.85rem;
}
.estado-panel.estado-cidades .estado-cidades-head {
  margin-bottom: 0.85rem;
}
.estado-panel.estado-cidades .estado-count {
  margin: 0;
}
.estado-panel.estado-cidades .city-grid--rich {
  margin: 0;
}
.estado-panel.estado-cidades .city-infinite {
  margin-top: 0.85rem;
  padding-bottom: 0;
}
.estado-panel.related-estados .uf-grid--related {
  margin: 0;
}
.estado-facts > div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.estado-card {
  --uf: var(--accent);
  display: grid;
  gap: 1.1rem;
  margin-bottom: 0;
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: 18px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--uf) 10%, transparent), transparent 48%),
    var(--panel);
  border: 1px solid color-mix(in srgb, var(--uf) 16%, var(--line));
  box-shadow: 0 1px 0 rgba(11, 22, 32, 0.04);
}
.estado-card-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.15rem;
  align-items: start;
}
.estado-card-titles { min-width: 0; }
.estado-card-titles .eyebrow { margin-bottom: 0.35rem; }
.estado-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}
.estado-flag {
  width: 96px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: color-mix(in srgb, var(--uf) 14%, var(--panel-2));
  box-shadow:
    0 2px 10px rgba(11, 22, 32, 0.14),
    0 0 0 1px rgba(11, 22, 32, 0.08);
}
@media (max-width: 640px) {
  .estado-page { gap: 0.85rem; }
  .estado-panel { padding: 1rem 0.95rem 1.05rem; border-radius: 12px; }
  .estado-page .estado-panel.related-block,
  .estado-page .estado-panel.related-estados,
  .estado-page .estado-panel.explore-links {
    padding: 1rem 0.95rem 1.05rem;
  }
  .estado-card { padding: 1rem 0.95rem 1.05rem; border-radius: 16px; }
  .estado-card-head { grid-template-columns: 1fr; gap: 0.85rem; }
  .estado-flag { width: 72px; height: 48px; border-radius: 9px; }
  .estado-panel-head,
  .estado-page .related-head {
    margin-bottom: 0.75rem;
  }
  .estado-facts { grid-template-columns: 1fr; gap: 0.45rem; }
  .estado-facts > div:last-child:nth-child(odd) { grid-column: auto; }
  .estado-stats {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  .estado-stat { min-height: 0; }
  .estado-visao-grid,
  .estado-dados-map-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .estado-highlight-cards {
    grid-template-columns: 1fr 1fr;
  }
  .estado-facts--compact {
    grid-template-columns: 1fr;
  }
  .estado-stat { padding: 0.65rem 0.45rem; }
  .estado-stat .n { font-size: 1.05rem; }
  .estado-stat .l { font-size: 0.62rem; letter-spacing: 0.05em; }
  .estado-actions { gap: 0.45rem; }
  .estado-actions .btn-primary,
  .estado-actions .btn-ghost {
    flex: 1 1 calc(50% - 0.25rem);
    justify-content: center;
    min-width: 0;
    padding: 0.75rem 0.7rem;
    font-size: 0.74rem;
  }
  .estado-panel-map .map-frame {
    max-height: 240px;
    border-radius: 10px;
  }
  .estado-cidades-head {
    margin-bottom: 0.75rem;
    gap: 0.65rem;
  }
  .estado-page .estado-panel.explore-links .about-actions .btn-primary,
  .estado-page .estado-panel.explore-links .about-actions .btn-ghost {
    flex: 1 1 calc(50% - 0.25rem);
    justify-content: center;
    min-width: 0;
    padding: 0.75rem 0.7rem;
    font-size: 0.74rem;
  }
  .estado-page .estado-panel.related-estados .uf-grid--related {
    gap: 0.65rem;
  }
}
@media (max-width: 480px) {
  .estado-page .estado-panel.explore-links .about-actions .btn-primary,
  .estado-page .estado-panel.explore-links .about-actions .btn-ghost {
    flex: 1 1 100%;
  }
}
.estado-title-row h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3.5vw, 2.2rem);
  line-height: 1.15;
}
.estado-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, var(--uf, var(--accent)), color-mix(in srgb, var(--uf, var(--accent)) 55%, var(--accent-2)));
}
.estado-lead {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}
.estado-lead strong {
  color: var(--ink);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.estado-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.estado-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
}
.estado-facts > div {
  background: color-mix(in srgb, var(--panel) 88%, var(--uf) 4%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}
.estado-facts dt {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.estado-facts dt svg { width: 14px; height: 14px; color: var(--uf, var(--accent)); }
.estado-facts dd {
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.3;
}
.estado-facts dd a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 650;
}
.estado-facts dd a:hover { text-decoration: underline; }
.estado-facts .mono {
  font-variant-numeric: tabular-nums;
  font-size: 0.84rem;
}

.estado-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 0;
}
.estado-stat {
  --stat-tone: var(--uf, var(--accent));
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  overflow: hidden;
  min-height: 5.2rem;
  padding: 0.9rem 0.95rem;
  border-radius: 13px;
  border: 1px solid color-mix(in srgb, var(--stat-tone) 18%, var(--line));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--stat-tone) 10%, transparent), transparent 58%),
    color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: 0 1px 0 rgba(11, 22, 32, 0.03);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.estado-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--stat-tone), color-mix(in srgb, var(--stat-tone) 35%, var(--accent-2)));
}
.estado-stat:hover {
  border-color: color-mix(in srgb, var(--stat-tone) 42%, var(--line));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--stat-tone) 12%, transparent);
  transform: translateY(-1px);
}
.estado-stat--cidades { --stat-tone: #0369a1; }
.estado-stat--ceps { --stat-tone: #0d9488; }
.estado-stat--ddd { --stat-tone: #0f766e; }
[data-theme="dark"] .estado-stat--cidades { --stat-tone: #38bdf8; }
[data-theme="dark"] .estado-stat--ceps { --stat-tone: #2dd4bf; }
[data-theme="dark"] .estado-stat--ddd { --stat-tone: #5eead4; }

.estado-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  border-radius: 10px;
  color: var(--stat-tone);
  background: color-mix(in srgb, var(--stat-tone) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--stat-tone) 22%, transparent);
}
.estado-stat-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}
.estado-stat-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-top: 0.05rem;
}
.estado-stat .n {
  display: block;
  font-weight: 800;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-variant-numeric: tabular-nums;
  color: var(--stat-tone);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.estado-stat .estado-stat-text {
  font-size: 1rem;
  line-height: 1.2;
}
.estado-stat .l {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.estado-stat-meta {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--muted) 88%, var(--ink));
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.estado-stat-meta.mono {
  font-variant-numeric: tabular-nums;
  font-size: 0.7rem;
}

.estado-visao-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  gap: 1rem 1.15rem;
  align-items: start;
}
.estado-visao-copy .estado-resumo-body {
  max-width: none;
}
.estado-highlight-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.estado-highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.8rem;
  border-radius: 11px;
  border: 1px solid color-mix(in srgb, var(--uf) 14%, var(--line));
  background: color-mix(in srgb, var(--panel) 90%, var(--uf) 3%);
}
.estado-highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 9px;
  color: var(--uf, var(--accent));
  background: color-mix(in srgb, var(--uf) 12%, transparent);
}
.estado-highlight-icon svg {
  width: 0.95rem;
  height: 0.95rem;
}
.estado-highlight-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.estado-highlight-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.estado-highlight-value {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  word-break: break-word;
}
.estado-highlight-value a {
  color: var(--accent-2);
  text-decoration: none;
}
.estado-highlight-value a:hover { text-decoration: underline; }
.estado-highlight-meta {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}

.estado-dados-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  gap: 1rem 1.15rem;
  align-items: start;
}
.estado-dados-col .estado-panel-head {
  margin-bottom: 0.75rem;
}
.estado-map-col .estado-panel-map {
  margin: 0;
}
.estado-facts--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.estado-fact--wide {
  grid-column: 1 / -1;
}
.estado-fact-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}

.estado-resumo {
  margin: 0;
  padding-top: 0;
  border-top: 0;
}
.estado-resumo .estado-panel-head {
  margin-bottom: 0.7rem;
}
.estado-resumo h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}
.estado-resumo-body {
  display: grid;
  gap: 0.65rem;
  max-width: 46rem;
}
.estado-resumo-p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}
.estado-resumo-p strong {
  color: var(--ink);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.estado-resumo-extra {
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--uf) 6%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--uf) 12%, var(--line));
}

.estado-panel-map .map-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--uf) 14%, var(--line));
  background: var(--panel-2);
  aspect-ratio: 16 / 9;
  max-height: 320px;
}
.estado-panel-map .map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.estado-panel-map .map-foot {
  margin: 0.55rem 0 0;
  font-size: 0.84rem;
}

.estado-ddds { margin-bottom: 0; }
.estado-ddds .estado-panel-head { margin-bottom: 0.75rem; }
.estado-ddds-intro {
  margin: 0;
}

.faq-list .faq-item p strong {
  color: var(--ink);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.ddd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.ddd-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.ddd-chip:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}
.ddd-chip strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
}
.ddd-chip span {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.estado-cidades-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 22rem);
  align-items: end;
  gap: 0.85rem 1.25rem;
  margin-bottom: 1rem;
}
.estado-cidades-titles {
  min-width: 0;
}
.estado-cidades-head h2 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
}
.estado-cidades-head .estado-count {
  margin: 0;
}
.estado-filter {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  min-width: min(280px, 100%);
}
.estado-filter svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.estado-filter input {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  outline: none;
  width: 100%;
  padding: 0.35rem 0;
}
.estado-count {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 0.85rem;
}

/* —— Busca / filtro de página —— */
.page-search {
  position: relative;
  display: grid;
  gap: 0.4rem;
  width: 100%;
}
.page-search-field {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 3.15rem;
  padding: 0.55rem 2.75rem 0.55rem 1rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, #fff), var(--panel));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(11, 22, 32, 0.04);
  cursor: text;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.page-search-field:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}
.page-search-field:focus-within {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow:
    0 0 0 3px var(--accent-soft),
    0 10px 24px color-mix(in srgb, var(--accent) 10%, transparent);
  background: var(--panel);
}
.page-search-field svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0.9;
}
.page-search-field input {
  border: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  padding: 0.15rem 0;
}
.page-search-field input::placeholder {
  color: var(--muted);
  font-weight: 400;
}
.page-search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.page-search-clear {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2.05rem;
  height: 2.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.page-search-clear[hidden] { display: none !important; }
.page-search-clear svg {
  width: 16px;
  height: 16px;
}
.page-search-clear:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.page-search-clear:active { transform: scale(0.94); }
.page-search-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}
.page-search--estado {
  position: sticky;
  top: calc(var(--header-h) + 0.55rem);
  z-index: 8;
}
.page-search--estado .page-search-field {
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
}
.page-search--estados {
  margin: 1.15rem 0 0.65rem;
  max-width: 40rem;
}
.page-search--estados .page-search-field {
  min-height: 3.35rem;
  border-radius: 18px;
  padding-left: 1.1rem;
}
.page-search.is-active .page-search-field {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
}
[data-theme="dark"] .page-search-field {
  background: color-mix(in srgb, var(--panel) 96%, #000);
}
[data-theme="dark"] .page-search--estado .page-search-field {
  background: color-mix(in srgb, var(--panel) 88%, transparent);
}
@media (max-width: 820px) {
  .estado-cidades-head {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .page-search--estado {
    position: sticky;
    top: calc(var(--header-h) + 0.35rem);
  }
}

.city-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.45rem;
}
.city-grid a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.city-grid a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}
.city-grid .cn {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
}
.city-grid .cd {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Cards enriquecidos na listagem /estado/{UF} */
.city-grid--rich {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.7rem;
}
.city-grid--rich > li {
  position: relative;
  z-index: 0;
  animation: city-card-in 0.3s ease both;
}
.city-grid--rich > li:hover,
.city-grid--rich > li:focus-within {
  z-index: 2;
}
@keyframes city-card-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .city-grid--rich > li { animation: none; }
}

.city-grid a.city-card {
  --card-pad: 0.9rem 0.95rem 0.85rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 8.2rem;
  padding: var(--card-pad);
  border-radius: 12px;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--uf, var(--accent)) 8%, transparent), transparent 55%),
    var(--panel);
  border: 1px solid color-mix(in srgb, var(--uf, var(--accent)) 12%, var(--line));
  box-shadow: 0 1px 0 rgba(11, 22, 32, 0.03);
  text-decoration: none;
  color: var(--ink);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.city-grid a.city-card::after {
  content: "→";
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--uf, var(--accent));
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.city-grid a.city-card:hover,
.city-grid a.city-card:focus-visible {
  border-color: color-mix(in srgb, var(--uf, var(--accent)) 42%, var(--line));
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--uf, var(--accent)) 12%, transparent), transparent 58%),
    color-mix(in srgb, var(--uf, var(--accent)) 4%, var(--panel));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--uf, var(--accent)) 12%, transparent);
  transform: translateY(-2px);
  color: var(--ink);
  text-decoration: none;
}
.city-grid a.city-card:hover::after,
.city-grid a.city-card:focus-visible::after {
  opacity: 0.85;
  transform: translateX(0);
}
.city-grid a.city-card:focus-visible {
  outline: 2px solid var(--uf, var(--accent));
  outline-offset: 2px;
}

.city-card-title {
  display: block;
  padding-right: 1.35rem;
  min-width: 0;
}
.city-grid a.city-card .cn {
  display: block;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink);
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.city-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.city-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  padding: 0.22rem 0.5rem;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.city-badge-k {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.72;
}
.city-badge--ddd {
  color: #0f766e;
  background: color-mix(in srgb, #0d9488 13%, var(--panel));
  border: 1px solid color-mix(in srgb, #0d9488 24%, transparent);
}
.city-badge--ibge {
  color: #334155;
  background: color-mix(in srgb, #64748b 11%, var(--panel));
  border: 1px solid color-mix(in srgb, #64748b 20%, transparent);
  font-weight: 700;
}

.city-facts {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 90%, var(--uf, var(--accent)));
}
.city-fact {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.city-fact-k {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.city-fact-v {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.city-fact-v--accent {
  color: var(--uf, var(--accent));
}
.city-fact-v--muted {
  color: var(--muted);
  font-weight: 500;
}

[data-theme="dark"] .city-badge--ddd {
  color: #5eead4;
  background: color-mix(in srgb, #2dd4bf 15%, var(--panel));
  border-color: color-mix(in srgb, #2dd4bf 28%, transparent);
}
[data-theme="dark"] .city-badge--ibge {
  color: #cbd5e1;
  background: color-mix(in srgb, #94a3b8 12%, var(--panel));
  border-color: color-mix(in srgb, #94a3b8 22%, transparent);
}
[data-theme="dark"] .city-grid a.city-card:hover,
[data-theme="dark"] .city-grid a.city-card:focus-visible {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.city-infinite {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  padding: 0.25rem 0 0.5rem;
}
.city-infinite[hidden] { display: none; }
.city-infinite-sentinel { width: 1px; height: 1px; }
.city-infinite-status {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .estado-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .estado-stats { grid-template-columns: 1fr; }
  .estado-actions .btn-primary,
  .estado-actions .btn-ghost {
    flex: 1 1 100%;
  }
}
@media (max-width: 640px) {
  .city-grid { grid-template-columns: 1fr; }
  .city-grid--rich { grid-template-columns: 1fr; gap: 0.55rem; }
  .city-grid a.city-card {
    min-height: 0;
    padding: 0.85rem 0.9rem 0.8rem;
  }
  .city-grid a.city-card .cn { font-size: 1.05rem; }
}

/* —— Ferramentas: DDD + Gerador —— */
.tool-page {
  max-width: 960px;
  margin: 0 auto;
  animation: rise 0.55s ease both;
}
.tool-page .lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42rem;
  margin: 0 0 1.5rem;
}
.tool-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 0 1.5rem;
}
.tool-stats--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tool-stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.tool-stat .n {
  display: block;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.tool-stat .l {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.tool-filter {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem 1rem;
  margin: 1.25rem 0 1rem;
}
.tool-filter svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.tool-filter input {
  border: 0;
  background: transparent;
  width: 100%;
  font: inherit;
  color: var(--ink);
  outline: none;
}
.tool-count {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 0.85rem;
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--panel-2);
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: var(--accent-soft); }
.ddd-code {
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--accent);
}
.ddd-code:hover { color: var(--accent-2); }
.ddd-by-state,
.ddd-by-region { margin-top: 2.5rem; }
.ddd-state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.ddd-region-grid {
  display: grid;
  gap: 1rem;
}
.ddd-region-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
}
.ddd-region-card h3 { margin-bottom: 0.75rem; }

/* —— Página /ddd — lista em cards —— */
.ddd-list-section { margin-top: 1.5rem; }
.ddd-list-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 22rem);
  align-items: end;
  gap: 0.85rem 1.25rem;
  margin-bottom: 1rem;
}
.ddd-list-titles { min-width: 0; }
.ddd-list-titles .page-section-head { margin-bottom: 0.35rem; }
.ddd-list-titles .page-section-head h2 { margin-bottom: 0; }
.ddd-list-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.ddd-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}
.ddd-jump-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.ddd-jump-chip:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: var(--accent-soft);
}
.ddd-jump-chip.is-active {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}
.ddd-list-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.5rem;
}
.ddd-list-item { min-width: 0; }
.ddd-list-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(11, 22, 32, 0.03);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.ddd-list-item:hover .ddd-list-card,
.ddd-list-item:focus-within .ddd-list-card {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 8%, transparent);
  transform: translateY(-1px);
}
.ddd-list-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.65rem 0.55rem;
  text-decoration: none;
  color: inherit;
}
.ddd-list-main:hover { color: inherit; }
.ddd-list-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  min-width: 2.5rem;
  padding: 0.28rem 0.38rem;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--accent-soft), color-mix(in srgb, var(--accent) 6%, var(--panel)));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
}
.ddd-list-code svg {
  width: 0.72rem;
  height: 0.72rem;
  color: var(--accent);
}
.ddd-list-code strong {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.ddd-list-body {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.ddd-list-estados {
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ddd-list-mun {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
}
.ddd-list-arrow {
  display: flex;
  align-items: center;
  color: var(--muted);
  opacity: 0.45;
  transition: opacity 0.15s, transform 0.15s, color 0.15s;
}
.ddd-list-arrow svg { width: 0.95rem; height: 0.95rem; }
.ddd-list-main:hover .ddd-list-arrow,
.ddd-list-main:focus-visible .ddd-list-arrow {
  opacity: 1;
  color: var(--accent);
  transform: translateX(2px);
}
.ddd-regiao-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--regiao-tone, var(--accent));
  background: color-mix(in srgb, var(--regiao-tone, var(--accent)) 12%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--regiao-tone, var(--accent)) 22%, var(--line));
}
.ddd-regiao-badge--norte { --regiao-tone: #0d9488; }
.ddd-regiao-badge--nordeste { --regiao-tone: #ea580c; }
.ddd-regiao-badge--centro-oeste { --regiao-tone: #ca8a04; }
.ddd-regiao-badge--sudeste { --regiao-tone: #2563eb; }
.ddd-regiao-badge--sul { --regiao-tone: #7c3aed; }
[data-theme="dark"] .ddd-regiao-badge--norte { --regiao-tone: #2dd4bf; }
[data-theme="dark"] .ddd-regiao-badge--nordeste { --regiao-tone: #fb923c; }
[data-theme="dark"] .ddd-regiao-badge--centro-oeste { --regiao-tone: #facc15; }
[data-theme="dark"] .ddd-regiao-badge--sul { --regiao-tone: #a78bfa; }
.ddd-list-ufs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
  padding: 0.38rem 0.55rem 0.45rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-2) 55%, var(--panel));
}
.ddd-list-ufs .uf-chip {
  font-size: 0.62rem;
  padding: 0.08rem 0.38rem;
  text-decoration: none;
  transition: transform 0.12s, background 0.12s;
}
.ddd-list-ufs .uf-chip:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--uf) 22%, var(--panel));
}
.ddd-list-go {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  margin-left: auto;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  white-space: nowrap;
}
.ddd-list-go svg { width: 0.72rem; height: 0.72rem; }
.ddd-list-go:hover {
  color: var(--accent-2);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.ddd-empty {
  margin: 0.5rem 0 0;
  color: var(--muted);
  text-align: center;
  padding: 1.5rem;
  border: 1px dashed var(--line);
  border-radius: 14px;
}
.ddd-state-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.ddd-state-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}
.ddd-state-card-head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-decoration: none;
  color: inherit;
}
.ddd-state-card-head strong { font-size: 0.95rem; }
.ddd-state-card-head .muted { font-size: 0.78rem; color: var(--muted); }
.ddd-state-ddds { margin-top: 0.1rem; }
@media (max-width: 720px) {
  .ddd-list-head { grid-template-columns: 1fr; }
  .ddd-list-grid { grid-template-columns: 1fr; }
  .ddd-list-go { margin-left: 0; }
}

.gerador-box {
  display: grid;
  gap: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
  margin: 1.25rem 0 1.5rem;
  max-width: 560px;
}
.gerador-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 0.75rem;
}
.gerador-consulta { max-width: 560px; }
.gerador-consulta-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
}
.gerador-consulta-row input {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  min-width: 0;
}
.gerador-box .gerador-field input[type="search"],
.gerador-box .gerador-field input[type="text"] {
  font: inherit;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  box-sizing: border-box;
}
.busca-cep-page #buscaCepInput {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.gerador-consulta-row .btn-primary {
  white-space: nowrap;
}
.gerador-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.gerador-result-head h2 { margin: 0; }
.gerador-list {
  display: grid;
  gap: 1rem;
}
.gerador-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: var(--bg-elev);
}
.gerador-card-top {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.gerador-idx {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}
.gerador-cep-val {
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.gerador-card-actions { margin-top: 0.85rem; }
@media (max-width: 560px) {
  .gerador-row,
  .gerador-consulta-row { grid-template-columns: 1fr; }
}
.gerador-field {
  display: grid;
  gap: 0.4rem;
}
.gerador-field > span,
.gerador-pontuacao legend {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
  padding: 0;
}
.gerador-pontuacao {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}
.gerador-field select {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
}
.gerador-radios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.gerador-radio {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.gerador-radio:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.gerador-radio input {
  margin-top: 0.15rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.gerador-radio span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}
.gerador-radio small {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 520px) {
  .gerador-radios { grid-template-columns: 1fr; }
}
.gerador-box .btn-primary {
  justify-content: center;
  width: 100%;
}
.gerador-result {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  animation: rise 0.4s ease both;
}
.gerador-facts {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}
.gerador-facts > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}
.gerador-facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.gerador-facts dt {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
  padding-top: 0.2rem;
}
.gerador-facts dd {
  margin: 0;
  font-weight: 600;
  word-break: break-word;
}
.gerador-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* —— Ferramentas de telefone —— */
.telefone-card .ligar-route {
  margin: 0 0 0.75rem;
  font-weight: 700;
  font-size: 1.05rem;
}
.ligar-sequencias {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.ligar-seq strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.ligar-dial {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.65rem 0.85rem;
  background: var(--panel-2);
  border-radius: 10px;
  word-break: break-all;
}

/* —— Logística: comparador + etiqueta —— */
.comparador-table { font-size: 0.88rem; }
.comparador-table td,
.comparador-table th { vertical-align: top; }
.etiqueta-fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem 0.85rem;
  margin: 0 0 1rem;
}
.etiqueta-fieldset legend {
  font-weight: 700;
  padding: 0 0.35rem;
}
.etiqueta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.etiqueta-preview {
  margin: 0;
  padding: 1.25rem 1.35rem;
  background: #fff;
  color: #111;
  border: 2px dashed var(--line);
  border-radius: 12px;
  font: 600 0.95rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  max-width: 28rem;
}
[data-theme="dark"] .etiqueta-preview {
  background: var(--panel-2);
  color: var(--text);
}

.tool-related {
  margin: 1.75rem 0 0.5rem;
  max-width: 48rem;
}
.tool-related h2 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
}
.gerador-seo {
  margin-top: 2.5rem;
  max-width: 48rem;
}
.gerador-seo code,
.enrich code {
  font-size: 0.88em;
  background: var(--panel-2);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

/* —— Validador de CEP —— */
.validador-box {
  max-width: 640px;
}
.validador-box textarea {
  font: inherit;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  resize: vertical;
  min-height: 10rem;
  width: 100%;
  box-sizing: border-box;
}
.validador-box textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.validador-cap {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.25rem;
}
.validador-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
#validadorCount.is-over {
  color: #b45309;
  font-weight: 600;
}
[data-theme="dark"] #validadorCount.is-over {
  color: #fbbf24;
}
.validador-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.validador-sum strong {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin-right: 0.2rem;
}
.validador-card .gerador-card-top {
  flex-wrap: wrap;
  align-items: center;
}
.validador-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  white-space: nowrap;
  margin-left: auto;
}
.validador-status-legend {
  align-items: flex-start;
}
.validador-status-legend .validador-badge {
  margin: 0.15rem 0 0;
  flex-shrink: 0;
}
.validador-badge.is-valid {
  background: color-mix(in srgb, #10b981 16%, var(--panel));
  border-color: color-mix(in srgb, #10b981 40%, var(--line));
  color: #047857;
}
.validador-badge.is-invalid {
  background: color-mix(in srgb, #f59e0b 16%, var(--panel));
  border-color: color-mix(in srgb, #f59e0b 40%, var(--line));
  color: #b45309;
}
.validador-badge.is-missing {
  background: color-mix(in srgb, #ef4444 14%, var(--panel));
  border-color: color-mix(in srgb, #ef4444 38%, var(--line));
  color: #b91c1c;
}
.validador-badge.is-unverified {
  background: color-mix(in srgb, #64748b 14%, var(--panel));
  border-color: color-mix(in srgb, #64748b 35%, var(--line));
  color: #475569;
}
[data-theme="dark"] .validador-badge.is-valid { color: #6ee7b7; }
[data-theme="dark"] .validador-badge.is-invalid { color: #fcd34d; }
[data-theme="dark"] .validador-badge.is-missing { color: #fca5a5; }
[data-theme="dark"] .validador-badge.is-unverified { color: #cbd5e1; }
.validador-card.status-valid {
  border-color: color-mix(in srgb, #10b981 35%, var(--line));
}
.validador-card.status-invalid_format {
  border-color: color-mix(in srgb, #f59e0b 35%, var(--line));
}
.validador-card.status-not_found {
  border-color: color-mix(in srgb, #ef4444 32%, var(--line));
}
.validador-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* —— Enriquecimento (Como funciona / FAQ) —— */
.enrich {
  margin-top: 2.75rem;
  max-width: 48rem;
}
.enrich-block {
  margin: 0 0 2.25rem;
}
.enrich-block h2 { margin-bottom: 0.75rem; }
.enrich-intro {
  color: var(--muted);
  margin: 0 0 1.25rem;
}
.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.how-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.how-n {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}
.how-steps strong {
  display: block;
  margin-bottom: 0.25rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
}
.how-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.enrich-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.enrich-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
.enrich-features svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.enrich-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.enrich-cards > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.05rem 1.1rem;
  box-shadow: var(--shadow);
}
.enrich-cards h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
}
.enrich-cards svg { width: 18px; height: 18px; color: var(--accent); }
.enrich-cards p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.enrich-tags {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.enrich-tags li {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}
.faq-list {
  display: grid;
  gap: 0.65rem;
}
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.15rem 1rem 0.15rem;
  box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.9rem 0;
  list-style: none;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
@media (max-width: 800px) {
  .enrich-cards { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .tool-stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .tool-stats { grid-template-columns: 1fr; }
  .tool-stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gerador-facts > div { grid-template-columns: 1fr; gap: 0.15rem; }
}
@media (max-width: 480px) {
  .tool-stats--4 { grid-template-columns: 1fr; }
}

/* —— Docs / Desenvolvedores —— */
.dev-docs {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 3rem;
  animation: rise 0.55s ease both;
}
.dev-hero .lead {
  color: var(--muted);
  max-width: 42rem;
  font-size: 1.08rem;
}
.dev-mark {
  background: linear-gradient(120deg, rgba(13, 148, 136, 0.22), rgba(3, 105, 161, 0.18));
  color: var(--ink);
  padding: 0.08em 0.35em;
  border-radius: 0.35em;
  font-style: normal;
  font-weight: 700;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.dev-mark.warn {
  background: rgba(245, 158, 11, 0.22);
  color: var(--ink);
}
.dev-mark.ok {
  background: rgba(5, 150, 105, 0.2);
}
.dev-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0 1.15rem;
}
.dev-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.25rem 0 0;
}
.dev-stats .tool-stat {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
  border: 1px solid var(--line);
}
.dev-stats .tool-stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}
.dev-stats .tool-stat .n {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Callouts */
.dev-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  margin: 1rem 0 1.35rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  animation: rise 0.5s ease both;
}
.dev-callout svg {
  width: 22px;
  height: 22px;
  margin-top: 0.1rem;
  flex-shrink: 0;
}
.dev-callout strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
}
.dev-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}
.dev-callout-ok {
  border-color: color-mix(in srgb, var(--ok) 45%, var(--line));
  background:
    linear-gradient(135deg, rgba(5, 150, 105, 0.1), transparent 55%),
    var(--panel);
}
.dev-callout-ok svg { color: var(--ok); }
.dev-callout-info {
  border-color: color-mix(in srgb, var(--accent-2) 45%, var(--line));
  background:
    linear-gradient(135deg, rgba(3, 105, 161, 0.1), transparent 55%),
    var(--panel);
}
.dev-callout-info svg { color: var(--accent-2); }
.dev-callout-tip {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 60%),
    var(--panel);
}
.dev-callout-tip svg { color: var(--accent); }
.dev-callout-warn {
  border-color: color-mix(in srgb, #f59e0b 50%, var(--line));
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.12), transparent 55%),
    var(--panel);
}
.dev-callout-warn svg { color: #d97706; }
[data-theme="dark"] .dev-callout-warn svg { color: #fbbf24; }

.dev-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin-top: 0.75rem;
}
.dev-toc {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 0.85rem;
  box-shadow: var(--shadow);
}
.dev-toc-title {
  margin: 0 0 0.65rem;
  padding: 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.dev-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}
.dev-toc a {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s, transform 0.15s;
}
.dev-toc a span {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  color: var(--accent);
  opacity: 0.85;
}
.dev-toc a:hover {
  color: var(--ink);
  background: var(--accent-soft);
  transform: translateX(2px);
}
.dev-section {
  margin: 0 0 2.75rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.dev-section h2 {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.55rem;
}
.dev-num {
  color: var(--accent);
  font-size: 0.85em;
  letter-spacing: 0.04em;
}
.dev-lead {
  color: var(--muted);
  margin: 0 0 1.15rem;
  max-width: 46rem;
  font-size: 1.02rem;
}
.dev-sub {
  margin: 1.75rem 0 0.85rem;
  font-size: 1rem;
  text-transform: uppercase;
}
.dev-pillars { margin-top: 0.25rem; }
.dev-pillars > div {
  transition: transform 0.25s ease, box-shadow 0.25s;
}
.dev-code-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin: 0.85rem 0;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dev-code-block:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.dev-code-block.compact { box-shadow: none; }
.dev-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dev-code-block pre {
  margin: 0;
  padding: 0.95rem 1rem;
  overflow-x: auto;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink);
  background: transparent;
}
.dev-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.dev-copy svg { width: 14px; height: 14px; }
.dev-copy:hover { border-color: var(--accent); color: var(--accent); }
.dev-copy.is-copied {
  background: rgba(5, 150, 105, 0.15);
  border-color: var(--ok);
  color: var(--ok);
  transform: scale(1.03);
}
.dev-auth-grid {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}
.dev-auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  display: grid;
  gap: 0.45rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.dev-auth-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.dev-auth-card.preferred {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background:
    linear-gradient(120deg, var(--accent-soft), transparent 50%),
    var(--panel);
}
.dev-auth-card code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.9rem;
  color: var(--ink);
  word-break: break-all;
}
.dev-auth-hint {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.dev-badge {
  width: fit-content;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}
.dev-badge.muted {
  background: var(--panel-2);
  color: var(--muted);
}
.dev-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.75rem 0 0;
}
.dev-note svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.dev-base-url {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-weight: 700;
}
.dev-play {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.dev-play::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 200% 100%;
  animation: devShine 4s linear infinite;
}
@keyframes devShine {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
.dev-play-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.dev-play-hint {
  margin: 0.45rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.dev-play-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}
.dev-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.7rem;
  border-radius: 10px;
  background: rgba(5, 150, 105, 0.14);
  color: var(--ok);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 700;
}
.dev-method-sm {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: rgba(5, 150, 105, 0.14);
  color: var(--ok);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 700;
}
.dev-play-row input {
  flex: 1;
  min-width: 180px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.88rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dev-play-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.dev-play-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0 0.75rem;
}
.dev-play-presets button {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.dev-play-presets button:hover,
.dev-play-presets button.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.dev-play-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
}
.dev-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: ui-monospace, Menlo, monospace;
}
.dev-chip.ok {
  background: rgba(5, 150, 105, 0.15);
  border-color: color-mix(in srgb, var(--ok) 40%, var(--line));
  color: var(--ok);
}
.dev-chip.err {
  background: rgba(220, 38, 38, 0.12);
  border-color: color-mix(in srgb, var(--danger) 40%, var(--line));
  color: var(--danger);
}
.dev-chip.muted { color: var(--muted); font-weight: 600; }
.dev-play-out {
  margin: 0;
  max-height: 380px;
  overflow: auto;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dev-play-out.is-ok {
  border-color: color-mix(in srgb, var(--ok) 45%, var(--line));
  box-shadow: inset 3px 0 0 var(--ok);
}
.dev-play-out.is-err {
  border-color: color-mix(in srgb, var(--danger) 45%, var(--line));
  box-shadow: inset 3px 0 0 var(--danger);
}

.dev-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.55rem;
  margin: 0 0 1rem;
}
.dev-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  transition: transform 0.2s, border-color 0.2s;
}
.dev-field:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}
.dev-field code {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}
.dev-field span {
  font-size: 0.84rem;
  color: var(--muted);
}

.dev-ep {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin: 0.75rem 0;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.dev-ep:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  box-shadow: var(--shadow);
}
.dev-ep-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.88rem;
}
.dev-ep p {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.dev-ep code { font-size: 0.9em; }
.dev-ep-params {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.dev-ep-params li {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.35rem 0.55rem;
  background: var(--panel-2);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}
.dev-ep-params em {
  font-style: normal;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0.35rem;
}

.dev-auth-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
}
.dev-auth-pill.public {
  background: rgba(5, 150, 105, 0.14);
  color: var(--ok);
}

.dev-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.65rem;
}
.dev-status-grid > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.dev-status-grid > div:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.dev-status-grid strong {
  display: block;
  font-size: 1.2rem;
  font-family: ui-monospace, Menlo, monospace;
  margin-bottom: 0.2rem;
}
.dev-status-grid span {
  color: var(--muted);
  font-size: 0.85rem;
}
.dev-status-grid .st-ok {
  border-color: color-mix(in srgb, var(--ok) 40%, var(--line));
  background: linear-gradient(160deg, rgba(5, 150, 105, 0.1), var(--panel) 60%);
}
.dev-status-grid .st-ok strong { color: var(--ok); }
.dev-status-grid .st-warn {
  border-color: color-mix(in srgb, #f59e0b 40%, var(--line));
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.1), var(--panel) 60%);
}
.dev-status-grid .st-warn strong { color: #d97706; }
[data-theme="dark"] .dev-status-grid .st-warn strong { color: #fbbf24; }
.dev-status-grid .st-err {
  border-color: color-mix(in srgb, var(--danger) 40%, var(--line));
  background: linear-gradient(160deg, rgba(220, 38, 38, 0.1), var(--panel) 60%);
}
.dev-status-grid .st-err strong { color: var(--danger); }
.dev-status-grid .st-muted strong { color: var(--muted); }

.dev-docs .enrich-cards > div {
  transition: transform 0.25s ease, box-shadow 0.25s, border-color 0.25s;
}
.dev-docs .enrich-cards > div:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.dev-docs .enrich-cards code {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
}

@media (max-width: 900px) {
  .dev-layout { grid-template-columns: 1fr; }
  .dev-toc { position: static; }
  .dev-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .dev-play-row .btn-primary { width: 100%; justify-content: center; }
  .dev-callout { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .dev-play::before { animation: none; }
}

/* —— CEP Aleatório —— */
.aleatorio-box {
  max-width: 420px;
}
.aleatorio-hero {
  text-align: center;
  padding: 0.5rem 0 1.15rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.aleatorio-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.aleatorio-cep {
  display: block;
  font-size: clamp(1.85rem, 5vw, 2.45rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  line-height: 1.15;
  animation: rise 0.35s ease both;
}
.aleatorio-actions {
  margin-top: 0.25rem;
  flex-wrap: wrap;
}
.aleatorio-result .gerador-facts {
  margin-top: 1rem;
}

/* —— Motion —— */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* cache-bust 20260826145030 */

/* —— Blog —— */
/* Layout de leitura + relacionados + ferramentas */

.blog-index,
.blog-home,
.blog-article {
  margin: 0.35rem 0 2.25rem;
  animation: rise 0.4s ease both;
}

.blog-title,
.blog-index-head h1,
.blog-post-head h1,
.blog-card-title,
.blog-prose h2,
.blog-prose h3,
.blog-prose h4,
.blog-section-head h2,
.blog-home .section-head h2 {
  text-transform: none;
  letter-spacing: -0.018em;
  font-weight: 700;
}

/* —— Índice —— */
.blog-index-head {
  max-width: 44rem;
  margin: 0 auto 2rem;
  text-align: center;
}
.blog-index-head.page-hero-row {
  max-width: none;
  width: 100%;
  margin: 0 0 2rem;
  text-align: left;
  align-items: start;
}
.blog-index-head.page-hero-row .eyebrow {
  justify-content: flex-start;
}
.blog-index-head.page-hero-row .blog-index-lead {
  margin-left: 0;
  margin-right: 0;
}
.blog-index-head.page-hero-row .blog-index-stats {
  justify-content: flex-start;
  margin-left: 0;
}
.blog-index-head.page-hero-row .blog-topics {
  justify-content: flex-start;
}
.blog-index-head .eyebrow {
  justify-content: center;
  margin-bottom: 0.4rem;
}
.blog-index-head h1,
.blog-index-head .blog-title {
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  line-height: 1.18;
  margin: 0 0 0.65rem;
  color: var(--ink);
}
.blog-index-lead {
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 38rem;
}
.blog-index-stats {
  list-style: none;
  margin: 1.25rem auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}
.blog-index-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 7.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.blog-index-stats strong {
  font-size: 0.98rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.blog-index-stats span {
  font-size: 0.78rem;
  color: var(--muted);
}
.blog-topics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 1.15rem auto 0;
  max-width: 40rem;
}
.blog-topic {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.blog-topic svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}
.blog-topic:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: color-mix(in srgb, var(--accent) 7%, var(--panel));
  color: var(--accent-2);
}

.blog-featured {
  margin: 0 0 2.25rem;
}
.blog-section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.1rem;
}
.blog-section-head--row .eyebrow {
  margin-bottom: 0.25rem;
}
.blog-section-head--row h2 {
  margin: 0;
  font-size: 1.35rem;
}
.blog-section-note {
  margin: 0;
  max-width: 22rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.blog-featured-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 1.1rem;
}
.blog-card--featured {
  min-height: 100%;
}
.blog-card--hero .blog-card-title {
  font-size: 1.22rem;
  line-height: 1.35;
}
.blog-card--hero .blog-card-excerpt {
  -webkit-line-clamp: 4;
  line-clamp: 4;
}
.blog-all {
  margin: 0 0 1.5rem;
}
.blog-all .blog-section-head {
  margin-bottom: 1.1rem;
}
.blog-index-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin: 2.25rem 0 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 14px;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--accent) 8%, var(--panel)) 0%,
      var(--panel) 55%,
      color-mix(in srgb, var(--accent-2) 6%, var(--panel)) 100%);
}
.blog-index-cta-copy {
  max-width: 28rem;
}
.blog-index-cta-copy h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  color: var(--ink);
}
.blog-index-cta-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.blog-index-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
.blog-grid--home,
.blog-grid--related { margin-top: 0.15rem; }

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--ink) 7%, transparent);
}
.blog-card:hover .blog-card-title { color: var(--accent-2); }
.blog-card-cover {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--panel-2);
  overflow: hidden;
}
.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card-cover--empty {
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--panel-2);
}
.blog-card-cover--empty svg { width: 24px; height: 24px; }
.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.05rem 1.15rem;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.blog-card-chip {
  color: var(--muted);
  font-weight: 500;
}
.blog-card-title {
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--ink);
}
.blog-card-excerpt {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-more {
  margin-top: auto;
  padding-top: 0.45rem;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}
.blog-card-more svg { width: 15px; height: 15px; }

.blog-home .section-head h2 {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.site-crumbs,
.blog-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.2rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.site-crumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-crumbs-item {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
}
.site-crumbs-sep {
  display: inline-flex;
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}
.site-crumbs-sep svg,
.site-crumbs-sep i {
  width: 14px;
  height: 14px;
}
.site-crumbs a,
.blog-crumbs a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.12rem 0.28rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.site-crumbs a:hover,
.blog-crumbs a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}
.site-crumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  max-width: min(100%, 28rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-crumbs-home {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}
.site-crumbs-home svg,
.site-crumbs-home i {
  width: 14px;
  height: 14px;
}
@media (max-width: 520px) {
  .site-crumbs-home-label { display: none; }
}

/* —— Página do artigo —— */
.blog-article {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.35rem;
  align-items: start;
}
.blog-layout-main {
  min-width: 0;
}
.blog-post {
  max-width: none;
  margin: 0;
  padding: 1.35rem 1.45rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--accent) 5%, var(--panel)) 0%,
      var(--panel) 11rem);
  box-shadow: 0 14px 36px color-mix(in srgb, var(--ink) 5%, transparent);
}
.blog-post-head {
  margin-bottom: 0;
  padding-bottom: 1.25rem;
  border-bottom: none;
  position: relative;
}
.blog-post-head::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 3px;
  margin-top: 1.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.blog-post-head .eyebrow {
  margin-bottom: 0.55rem;
}
.blog-post-head h1,
.blog-post-head .blog-title {
  font-size: clamp(1.65rem, 3.6vw, 2.2rem);
  line-height: 1.22;
  margin: 0 0 0.9rem;
  color: var(--ink);
  letter-spacing: -0.025em;
}
.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.95rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.blog-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 70%, var(--panel-2));
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
}
.blog-meta-pill svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}
.blog-meta-sep {
  margin: 0 0.35rem;
  opacity: 0.55;
}
.blog-post-deck {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 40rem;
}

.blog-post-cover {
  margin: 1.35rem 0 1.75rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-2);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--ink) 6%, transparent);
  aspect-ratio: 16 / 9;
}
.blog-post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tipografia de leitura */
.blog-prose {
  font-size: 1.125rem;
  line-height: 1.8;
  color: color-mix(in srgb, var(--ink) 94%, var(--muted));
  font-weight: 400;
  letter-spacing: 0.005em;
}
.blog-prose > *:first-child { margin-top: 0; }
.blog-prose > p:first-of-type {
  font-size: 1.18rem;
  line-height: 1.75;
  color: color-mix(in srgb, var(--ink) 88%, var(--muted));
}
.blog-prose p {
  margin: 0 0 1.3rem;
}
.blog-prose h2,
.blog-prose h3,
.blog-prose h4 {
  margin: 2.25rem 0 0.75rem;
  line-height: 1.3;
  color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 0.8rem);
}
.blog-prose h2 {
  font-size: 1.38rem;
  padding: 0.15rem 0 0.55rem 0.85rem;
  border-bottom: none;
  border-left: 3px solid var(--accent);
  letter-spacing: -0.02em;
}
.blog-prose h3 {
  font-size: 1.16rem;
  margin-top: 1.65rem;
  padding-left: 0.15rem;
}
.blog-prose h4 { font-size: 1.05rem; }
.blog-prose ul,
.blog-prose ol {
  margin: 0 0 1.35rem;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.blog-prose li {
  margin: 0;
  line-height: 1.7;
  padding: 0.7rem 0.85rem 0.7rem 2.55rem;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel-2) 55%, var(--panel));
}
.blog-prose ul > li::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 1.05rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.blog-prose ol {
  counter-reset: blog-step;
}
.blog-prose ol > li {
  counter-increment: blog-step;
}
.blog-prose ol > li::before {
  content: counter(blog-step);
  position: absolute;
  left: 0.7rem;
  top: 0.65rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}
.blog-prose li::marker { color: var(--muted); }
.blog-prose li > ul,
.blog-prose li > ol {
  margin: 0.65rem 0 0.15rem;
  gap: 0.4rem;
}
.blog-prose li > ul > li,
.blog-prose li > ol > li {
  background: transparent;
  border: none;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-radius: 0;
}
.blog-prose li > ul > li::before {
  left: 0;
  top: 0.7rem;
  width: 0.4rem;
  height: 0.4rem;
  box-shadow: none;
}
.blog-prose a {
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--accent-2) 35%, transparent);
}
.blog-prose a:hover {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.blog-prose strong {
  color: var(--ink);
  font-weight: 700;
}
.blog-prose blockquote {
  margin: 0.35rem 0 1.5rem;
  padding: 1rem 1.1rem 1rem 1.15rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0;
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
  font-size: 1.05rem;
  line-height: 1.7;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--accent) 10%, var(--panel)) 0%,
      color-mix(in srgb, var(--accent-2) 6%, var(--panel)) 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 14%, var(--line));
}
.blog-prose blockquote p { margin-bottom: 0.55rem; }
.blog-prose blockquote p:last-child { margin-bottom: 0; }
.blog-prose blockquote strong:first-child {
  display: inline-block;
  margin-bottom: 0.15rem;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.blog-prose table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0.35rem 0 1.5rem;
  font-size: 0.98rem;
  line-height: 1.5;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--ink) 4%, transparent);
}
.blog-prose th,
.blog-prose td {
  text-align: left;
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.blog-prose th {
  background: color-mix(in srgb, var(--accent) 8%, var(--panel-2));
  color: var(--ink);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
}
.blog-prose tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--panel-2) 45%, transparent);
}
.blog-prose tr:last-child td { border-bottom: none; }
.blog-prose em { font-style: italic; }
.blog-prose hr {
  border: 0;
  height: 1px;
  margin: 2rem 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.blog-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0.5rem 0 1.2rem;
  border: 1px solid var(--line);
}
.blog-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: color-mix(in srgb, var(--accent) 8%, var(--panel-2));
  color: var(--ink);
  padding: 0.14em 0.42em;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  font-weight: 550;
}
.blog-prose pre {
  margin: 0 0 1.4rem;
  padding: 1rem 1.05rem;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.blog-prose pre code {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 0.9em;
}

/* —— Sidebar de widgets —— */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.blog-sidebar {
  display: grid;
  gap: 0.85rem;
  position: sticky;
  top: calc(var(--header-h) + 0.85rem);
}
.blog-side-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 0.95rem 1rem 1.05rem;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--ink) 4%, transparent);
}
.blog-side-card h2 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.blog-side-card h2 svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex-shrink: 0;
}
.blog-side-card > p {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}
.blog-side-search {
  display: grid;
  gap: 0.45rem;
}
.blog-side-search input {
  font: inherit;
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
}
.blog-side-search input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 1px;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}
.blog-side-search .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
}
.blog-side-tools {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.blog-side-tools a {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.55rem 0.5rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.blog-side-tools a:hover {
  background: color-mix(in srgb, var(--accent) 6%, var(--panel-2));
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
}
.blog-side-tool-ico {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.blog-side-tool-ico svg { width: 14px; height: 14px; }
.blog-side-tool-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.blog-side-tool-text strong {
  font-size: 0.86rem;
  color: var(--ink);
  font-weight: 700;
}
.blog-side-tool-text span {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}
.blog-side-examples {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.blog-side-examples a {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  text-decoration: none;
  color: inherit;
}
.blog-side-examples a:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, var(--panel));
}
.blog-side-examples strong {
  font-size: 0.95rem;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}
.blog-side-examples span {
  font-size: 0.78rem;
  color: var(--muted);
}
.blog-side-related {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.blog-side-related a {
  display: block;
  font-size: 0.86rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
}
.blog-side-related li:last-child a { border-bottom: none; padding-bottom: 0; }
.blog-side-related a:hover { color: var(--accent-2); }
.blog-side-more {
  margin: 0.7rem 0 0;
  font-size: 0.82rem;
}
.blog-side-more a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--accent-2);
}
.blog-side-more a:hover { text-decoration: underline; }
.blog-side-more svg { width: 14px; height: 14px; }

.blog-layout-main .blog-grid--related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .blog-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .blog-layout-main .blog-grid--related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .blog-sidebar { grid-template-columns: 1fr; }
  .blog-layout-main .blog-grid--related { grid-template-columns: 1fr; }
}

/* Seções auxiliares */
.blog-section-head {
  margin: 0 0 1rem;
}
.blog-section-head h2 {
  font-size: 1.2rem;
  margin: 0 0 0.3rem;
  color: var(--ink);
}
.blog-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.blog-tools,
.blog-related {
  margin-top: 2.15rem;
  padding: 1.35rem 1.35rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 4%, transparent);
}

.blog-post-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 5%, var(--panel));
}

.blog-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
.blog-tool {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.blog-tool:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 5%, var(--panel));
}
.blog-tool-ico {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.blog-tool-ico svg { width: 17px; height: 17px; }
.blog-tool-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.blog-tool-text strong {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}
.blog-tool-text span {
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--muted);
}
.blog-tools-more {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
}
.blog-tools-more a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--accent-2);
}
.blog-tools-more a:hover { text-decoration: underline; }
.blog-tools-more svg { width: 15px; height: 15px; }

.blog-infinite {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.35rem 0 0.75rem;
}
.blog-infinite[hidden] { display: none; }
.blog-infinite-sentinel { width: 1px; height: 1px; }
.blog-infinite-status {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.blog-card-cover img,
.blog-post-cover img {
  content-visibility: auto;
  background: var(--panel-2);
}

@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-featured-grid { grid-template-columns: 1fr 1fr; }
  .blog-card--hero { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .blog-grid,
  .blog-grid--home,
  .blog-grid--related,
  .blog-featured-grid { grid-template-columns: 1fr; }
  .blog-card--hero { grid-column: auto; }
  .blog-tools-grid { grid-template-columns: 1fr; }
  .blog-article { width: 100%; }
  .blog-post {
    padding: 1.05rem 0.95rem 1.25rem;
    border-radius: 14px;
  }
  .blog-prose {
    font-size: 1.05rem;
    line-height: 1.75;
  }
  .blog-prose > p:first-of-type {
    font-size: 1.1rem;
  }
  .blog-prose li {
    padding-left: 2.35rem;
  }
  .blog-post-head h1,
  .blog-post-head .blog-title {
    font-size: 1.45rem;
  }
  .blog-index-head { text-align: left; margin-left: 0; }
  .blog-index-head .eyebrow { justify-content: flex-start; }
  .blog-index-stats { justify-content: flex-start; }
  .blog-topics { justify-content: flex-start; }
  .blog-index-cta { padding: 1.1rem; }
  .blog-section-head--row { align-items: start; }
}

/* cache-bust blog-layout 20260826153500 */

/* —— SEO enrich / related pages —— */
.result-lead {
  max-width: 42rem;
  margin: 0.35rem 0 1.15rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}
.result-actions {
  margin-top: 1.15rem;
}
.facts a {
  color: var(--accent-2);
  font-weight: 650;
  text-decoration: none;
}
.facts a:hover { text-decoration: underline; }
.fact-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.fact-map-link svg { width: 13px; height: 13px; }

.related-block {
  margin: 1.75rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
}
.related-head {
  margin-bottom: 0.85rem;
}
.related-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}
.related-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 40rem;
}
.related-estados {
  margin-top: 0;
}
.related-estados .uf-grid--related {
  margin-top: 0.15rem;
}
.related-estados-more {
  margin: 0.95rem 0 0;
}
.related-estados-more .section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  text-decoration: none;
}
.related-estados-more .section-link svg {
  width: 16px;
  height: 16px;
}
.related-estados-more .section-link:hover {
  color: var(--accent-2);
}
.cidade-ceps-head {
  margin-top: 1.5rem;
  padding-top: 0;
  border-top: 0;
}

/* —— Página /estado/{UF}/{slug} —— */
.cidade-page {
  animation: rise 0.5s ease both;
}
.cidade-hero {
  margin-bottom: 1.25rem;
  max-width: 46rem;
}
.cidade-title-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}
.cidade-title-row h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.15;
}
.cidade-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 28%, transparent);
  flex-shrink: 0;
}
.cidade-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  padding: 0.32rem 0.6rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.cidade-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.cidade-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0 0 1.35rem;
}
.cidade-stat {
  --stat-tone: var(--accent);
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  overflow: hidden;
  min-height: 5.6rem;
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--stat-tone) 18%, var(--line));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--stat-tone) 10%, transparent), transparent 58%),
    var(--panel);
  box-shadow: 0 1px 0 rgba(11, 22, 32, 0.03);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.cidade-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--stat-tone), color-mix(in srgb, var(--stat-tone) 35%, var(--accent-2)));
}
.cidade-stat:hover {
  border-color: color-mix(in srgb, var(--stat-tone) 42%, var(--line));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--stat-tone) 14%, transparent);
  transform: translateY(-2px);
}
.cidade-stat--ceps { --stat-tone: #0d9488; }
.cidade-stat--bairros { --stat-tone: #0369a1; }
.cidade-stat--regiao { --stat-tone: #0f766e; }
[data-theme="dark"] .cidade-stat--ceps { --stat-tone: #2dd4bf; }
[data-theme="dark"] .cidade-stat--bairros { --stat-tone: #38bdf8; }
[data-theme="dark"] .cidade-stat--regiao { --stat-tone: #5eead4; }

.cidade-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  flex-shrink: 0;
  border-radius: 11px;
  color: var(--stat-tone);
  background: color-mix(in srgb, var(--stat-tone) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--stat-tone) 22%, transparent);
}
.cidade-stat-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}
.cidade-stat-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding-top: 0.05rem;
}
.cidade-stat .n {
  display: block;
  font-weight: 800;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-variant-numeric: tabular-nums;
  color: var(--stat-tone);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.cidade-stat .n a {
  color: inherit;
  text-decoration: none;
}
.cidade-stat .n a:hover { text-decoration: underline; }
.cidade-stat .cidade-stat-text {
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.cidade-stat .l {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cidade-stat-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--muted) 88%, var(--ink));
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cidade-stat-meta.mono {
  font-variant-numeric: tabular-nums;
  font-size: 0.74rem;
  letter-spacing: 0.01em;
}

.cidade-dados,
.cidade-panel {
  margin: 0 0 1.15rem;
  padding: 1.15rem 1.2rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(11, 22, 32, 0.03);
}
.cidade-dados .cidade-section-head,
.cidade-panel .cidade-section-head {
  margin-bottom: 0.95rem;
}
.cidade-dados .cidade-section-head h2,
.cidade-panel .cidade-section-head h2 {
  font-size: 1.1rem;
}
.cidade-panel .cidade-section-head a {
  color: var(--accent-2);
  font-weight: 650;
  text-decoration: none;
}
.cidade-panel .cidade-section-head a:hover { text-decoration: underline; }
.cidade-dados-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 0;
}
.cidade-dado {
  background: var(--panel-2);
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  min-width: 0;
}
.cidade-dado--wide {
  grid-column: span 2;
}
.cidade-dado dt {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.cidade-dado dt svg { width: 14px; height: 14px; flex-shrink: 0; }
.cidade-dado dd {
  margin: 0.4rem 0 0;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
  word-break: break-word;
}
.cidade-dado .mono {
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}
.cidade-dado a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 700;
}
.cidade-dado a:hover { text-decoration: underline; }
.cidade-dado .meta {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85rem;
}

.cidade-map .map-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-2);
  aspect-ratio: 16 / 9;
  max-height: 320px;
}
.cidade-map .map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.cidade-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 0 0.9rem;
}
.cidade-section-head h2 {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
}
.cidade-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
  max-width: 42rem;
}
.cidade-ceps-jump {
  flex-shrink: 0;
}

.cidade-bairros .cidade-section-head--compact {
  margin-bottom: 0.75rem;
}
.cidade-bairros .cidade-section-head--compact h2 {
  margin-bottom: 0.25rem;
}
.cidade-bairros .cidade-section-head--compact p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--muted);
  max-width: 40rem;
}
.cidade-bairros-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.35rem;
  padding: 0.18rem 0.55rem 0.18rem 0.4rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0369a1;
  background: color-mix(in srgb, #0369a1 10%, transparent);
  border: 1px solid color-mix(in srgb, #0369a1 18%, transparent);
}
[data-theme="dark"] .cidade-bairros-eyebrow {
  color: #38bdf8;
  background: color-mix(in srgb, #38bdf8 12%, transparent);
  border-color: color-mix(in srgb, #38bdf8 24%, transparent);
}
.cidade-bairros-eyebrow svg {
  width: 0.85rem;
  height: 0.85rem;
}

.bairro-insights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.55rem;
}
.bairro-insight {
  --bairro-tone: #0369a1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--bairro-tone) 14%, var(--line));
  background: color-mix(in srgb, var(--bairro-tone) 6%, var(--panel-2));
  min-width: 0;
}
[data-theme="dark"] .bairro-insight {
  --bairro-tone: #38bdf8;
}
.bairro-insight--top {
  border-color: color-mix(in srgb, var(--bairro-tone) 28%, var(--line));
  background: color-mix(in srgb, var(--bairro-tone) 10%, var(--panel-2));
}
.bairro-insight-k {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.bairro-insight-v {
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--bairro-tone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
}
.bairro-insight-v a {
  color: inherit;
  text-decoration: none;
}
.bairro-insight-v a:hover {
  text-decoration: underline;
}
.bairro-insight-meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--muted) 88%, var(--ink));
  white-space: nowrap;
}

.bairro-list {
  list-style: none;
  margin: 0;
  padding: 0.22rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  overflow: hidden;
}

.cidade-panel .bairro-row {
  --bairro-tone: #0369a1;
  --bairro-pct: 0%;
  position: relative;
  display: grid;
  grid-template-columns: 1.55rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem 0.55rem;
  padding: 0.4rem 0.55rem;
  border-radius: 7px;
  border: 1px solid transparent;
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
[data-theme="dark"] .cidade-panel .bairro-row {
  --bairro-tone: #38bdf8;
}
.bairro-row--top {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--bairro-tone) 8%, transparent), transparent 42%),
    var(--panel);
}
.cidade-panel .bairro-row:hover,
.cidade-panel .bairro-row:focus-visible {
  border-color: color-mix(in srgb, var(--bairro-tone) 36%, var(--line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--bairro-tone) 10%, transparent), transparent 50%),
    var(--panel);
  color: inherit;
  text-decoration: none;
}
.cidade-panel .bairro-row:focus-visible {
  outline: 2px solid var(--bairro-tone);
  outline-offset: 1px;
}
.bairro-row-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  background: color-mix(in srgb, var(--bairro-tone) 82%, #0b1620);
  flex-shrink: 0;
}
.bairro-row--top .bairro-row-rank {
  background: linear-gradient(135deg, var(--bairro-tone), color-mix(in srgb, var(--bairro-tone) 55%, var(--accent)));
}
.bairro-row-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}
.bairro-row-name {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bairro-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.25;
}
.bairro-row-ceps {
  color: var(--bairro-tone);
  font-weight: 700;
}
.bairro-row-share {
  color: color-mix(in srgb, var(--muted) 70%, var(--bairro-tone));
}
.bairro-row-faixa {
  font-size: 0.72rem;
  font-weight: 650;
  color: color-mix(in srgb, var(--muted) 92%, var(--ink));
}
.bairro-row-bar {
  display: none;
  grid-column: 2 / -1;
  height: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bairro-tone) 12%, var(--line));
  overflow: hidden;
}
.bairro-row-bar-fill {
  display: block;
  height: 100%;
  width: var(--bairro-pct);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bairro-tone), color-mix(in srgb, var(--bairro-tone) 45%, var(--accent)));
}
.bairro-row-go {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bairro-tone);
  opacity: 0.35;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.cidade-panel .bairro-row:hover .bairro-row-go,
.cidade-panel .bairro-row:focus-visible .bairro-row-go {
  opacity: 0.95;
  transform: translateX(2px);
}

@media (min-width: 720px) {
  .cidade-panel .bairro-row {
    grid-template-columns: 1.85rem minmax(0, 1fr) minmax(7rem, auto) auto;
    gap: 0.55rem 0.85rem;
  }
  .bairro-row-bar {
    display: block;
    grid-column: auto;
    width: min(7.5rem, 100%);
    align-self: center;
  }
  .bairro-row-meta .bairro-row-faixa {
    display: inline;
  }
}

.bairro-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.7rem 0 0;
  padding: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}
.bairro-tip svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: #0369a1;
}
[data-theme="dark"] .bairro-tip svg {
  color: #38bdf8;
}
.bairro-tip a {
  font-weight: 700;
}

.cidade-nearby .city-grid--nearby {
  margin: 0;
  list-style: none;
  padding: 0;
}
.cidade-nearby .city-grid a.city-card {
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--uf, var(--accent)) 8%, transparent), transparent 55%),
    var(--panel-2);
}

.cidade-ceps .table-wrap {
  box-shadow: none;
  border-radius: 12px;
  background: var(--panel-2);
}
.cidade-ceps .page-pager {
  margin-top: 0.9rem;
  margin-bottom: 0;
}
.cidade-ceps .page-pager-btn {
  background: var(--panel-2);
}

.cidade-faq {
  margin-top: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.cidade-faq-title {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.cidade-panel .faq-list {
  display: grid;
  gap: 0.5rem;
}
.cidade-panel .faq-item {
  margin: 0;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: var(--panel-2);
  overflow: hidden;
}
.cidade-panel .faq-item summary {
  padding: 0.75rem 0.9rem;
  font-weight: 650;
}
.cidade-panel .faq-item p {
  margin: 0;
  padding: 0 0.9rem 0.85rem;
}

@media (max-width: 860px) {
  .cidade-dados-grid { grid-template-columns: 1fr 1fr; }
  .cidade-dado--wide { grid-column: span 2; }
}
@media (max-width: 720px) {
  .cidade-stats { grid-template-columns: 1fr; }
  .cidade-stat { min-height: 0; }
}
@media (max-width: 640px) {
  .cidade-dados-grid { grid-template-columns: 1fr; }
  .cidade-dado--wide { grid-column: auto; }
  .bairro-insight-v { max-width: 10rem; }
  .cidade-avatar { width: 2.6rem; height: 2.6rem; font-size: 0.85rem; border-radius: 10px; }
  .cidade-map .map-frame { aspect-ratio: 4 / 3; max-height: 260px; }
}
.table--compact td,
.table--compact th {
  padding: 0.55rem 0.65rem;
  font-size: 0.92rem;
}

.link-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.55rem;
}
.link-chip {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.link-chip:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.link-chip strong {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}
.link-chip span {
  font-size: 0.78rem;
  color: var(--muted);
}

.page-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin: 1rem 0 0.25rem;
}
.page-pager-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.9rem;
}
.page-pager-btn:hover:not(.is-disabled) {
  border-color: var(--accent);
  color: var(--accent-2);
}
.page-pager-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.page-pager-btn svg { width: 16px; height: 16px; }
.page-pager-meta {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

.map-block .map-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-2);
  aspect-ratio: 16 / 9;
  max-height: 320px;
}
.map-block iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.map-foot {
  margin: 0.55rem 0 0;
  font-size: 0.84rem;
}
.map-foot a {
  color: var(--accent-2);
  font-weight: 650;
  text-decoration: none;
}
.map-foot a:hover { text-decoration: underline; }

.cidade-map .map-foot {
  margin-top: 0.65rem;
}

.result-seo {
  margin-top: 1.75rem;
}
.explore-links {
  margin-bottom: 0.5rem;
}

.bairro-page {
  animation: rise 0.5s ease both;
}
.bairro-page .cidade-panel + .cidade-panel {
  margin-top: 1rem;
}
.bairro-page .cidade-ceps .bairro-tip {
  margin: 1rem 0 0;
}
.bairro-hero .page-title {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
}

.cidade-page .lead a,
.bairro-page .lead a {
  color: var(--accent-2);
  font-weight: 650;
  text-decoration: none;
}
.cidade-page .lead a:hover,
.bairro-page .lead a:hover {
  text-decoration: underline;
}

.cidade-page > .explore-links.related-block,
.cidade-page > .related-block.explore-links,
.bairro-page > .explore-links.related-block,
.bairro-page > .related-block.explore-links {
  margin: 0 0 0.5rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-top: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(11, 22, 32, 0.03);
}
.cidade-page > .explore-links .related-head h2,
.bairro-page > .explore-links .related-head h2 {
  font-size: 1.1rem;
}

@media (max-width: 640px) {
  .link-chips { grid-template-columns: 1fr 1fr; }
  .map-block .map-frame { aspect-ratio: 4 / 3; max-height: 260px; }
  .page-pager { justify-content: center; }
}

/* cache-bust ddd-detail-page 20260826191500 */
.ddd-detail {
  max-width: 980px;
}
.ddd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}
.ddd-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.15rem;
}
.ddd-stat {
  --stat-tone: var(--accent);
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  overflow: hidden;
  min-height: 5rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--stat-tone) 18%, var(--line));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--stat-tone) 10%, transparent), transparent 58%),
    var(--panel);
  box-shadow: 0 1px 0 rgba(11, 22, 32, 0.03);
}
.ddd-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--stat-tone), color-mix(in srgb, var(--stat-tone) 35%, var(--accent-2)));
}
.ddd-stat--mun { --stat-tone: #0369a1; }
.ddd-stat--cep { --stat-tone: #0d9488; }
.ddd-stat--regiao { --stat-tone: #0f766e; }
[data-theme="dark"] .ddd-stat--mun { --stat-tone: #38bdf8; }
[data-theme="dark"] .ddd-stat--cep { --stat-tone: #2dd4bf; }
[data-theme="dark"] .ddd-stat--regiao { --stat-tone: #5eead4; }
.ddd-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  border-radius: 10px;
  color: var(--stat-tone);
  background: color-mix(in srgb, var(--stat-tone) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--stat-tone) 22%, transparent);
}
.ddd-stat-icon svg { width: 1.05rem; height: 1.05rem; }
.ddd-stat-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.ddd-stat .n {
  display: block;
  font-weight: 800;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-variant-numeric: tabular-nums;
  color: var(--stat-tone);
  line-height: 1.05;
}
.ddd-stat .ddd-stat-text {
  font-size: 1rem;
  line-height: 1.2;
}
.ddd-stat .l {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ddd-stat-meta {
  display: block;
  margin-top: 0.16rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--muted) 88%, var(--ink));
  line-height: 1.3;
}

.ddd-panel {
  margin: 0 0 1rem;
  padding: 1.15rem 1.2rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(11, 22, 32, 0.03);
}
.ddd-panel-head {
  margin-bottom: 0.85rem;
}
.ddd-panel-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.3;
}
.ddd-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
  max-width: 42rem;
}
.ddd-visao-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.85fr);
  gap: 1rem 1.15rem;
  align-items: start;
}
.ddd-resumo-p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}
.ddd-resumo-p + .ddd-resumo-p { margin-top: 0.65rem; }
.ddd-resumo-p strong {
  color: var(--ink);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.ddd-resumo-extra {
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 6%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--accent) 12%, var(--line));
}
.ddd-highlight-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ddd-highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 0.8rem;
  border-radius: 11px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  background: color-mix(in srgb, var(--panel) 90%, var(--accent) 3%);
}
.ddd-highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 9px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.ddd-highlight-icon svg { width: 0.95rem; height: 0.95rem; }
.ddd-highlight-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.ddd-highlight-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.ddd-highlight-value {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  word-break: break-word;
}
.ddd-highlight-value a {
  color: var(--accent-2);
  text-decoration: none;
}
.ddd-highlight-value a:hover { text-decoration: underline; }
.ddd-highlight-meta {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}

.ddd-top-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ddd-top-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.ddd-top-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.ddd-top-card strong {
  font-size: 0.92rem;
  line-height: 1.25;
}
.ddd-top-card span {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 500;
}

.ddd-municipios-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.75fr);
  gap: 0.85rem 1rem;
  align-items: end;
  margin-bottom: 0.65rem;
}
.ddd-municipios-head .ddd-panel-head { margin-bottom: 0; }
.ddd-panel .tool-count { margin: 0 0 0.75rem; }
.ddd-panel.enrich-block .faq-item {
  margin: 0;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: var(--panel-2);
  overflow: hidden;
  padding: 0;
}
.ddd-panel.enrich-block .faq-item summary {
  padding: 0.75rem 0.9rem;
  font-weight: 650;
}
.ddd-panel.enrich-block .faq-item p {
  margin: 0;
  padding: 0 0.9rem 0.85rem;
}
.ddd-panel.explore-links .about-actions { margin: 0; gap: 0.55rem; }

@media (max-width: 768px) {
  .ddd-stats { grid-template-columns: 1fr; }
  .ddd-stat { min-height: 0; }
  .ddd-visao-grid,
  .ddd-municipios-head { grid-template-columns: 1fr; }
  .ddd-top-grid { grid-template-columns: 1fr 1fr; }
  .ddd-highlight-cards { grid-template-columns: 1fr 1fr; }
  .ddd-hero-actions .btn-primary,
  .ddd-hero-actions .btn-ghost {
    flex: 1 1 calc(50% - 0.25rem);
    justify-content: center;
    min-width: 0;
  }
}
@media (max-width: 480px) {
  .ddd-top-grid,
  .ddd-highlight-cards { grid-template-columns: 1fr; }
  .ddd-hero-actions .btn-primary,
  .ddd-hero-actions .btn-ghost { flex: 1 1 100%; }
}

/* —— DDI Internacional —— */
.ddi-page .tool-stats { margin-bottom: 1.25rem; }
.ddi-main {
  margin-bottom: 2.5rem;
}
.ddi-main-head {
  margin-bottom: 1rem;
}
.ddi-main-head h2 {
  margin-bottom: 0.35rem;
}
.ddi-main-head p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  max-width: 40rem;
}
.ddi-world-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.05rem 1.15rem 0.95rem;
  margin: 0 0 1.15rem;
  box-shadow: var(--shadow);
}
.ddi-world-panel-head {
  margin-bottom: 0.65rem;
}
.ddi-world-panel-head h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 700;
}
.ddi-world-panel-head p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.ddi-world-stage {
  color: var(--muted);
  margin-bottom: 0.85rem;
  border-radius: 14px;
  overflow: hidden;
  background: color-mix(in srgb, #0ea5e9 7%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.ddi-world-map {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
}
.ddi-ocean {
  fill: color-mix(in srgb, #0ea5e9 10%, var(--bg));
}
.ddi-land {
  cursor: pointer;
  outline: none;
  transition: opacity 0.18s ease;
}
.ddi-land path {
  stroke: color-mix(in srgb, var(--panel) 55%, transparent);
  stroke-width: 0.35;
  stroke-linejoin: round;
  transition: fill 0.18s ease, stroke 0.18s ease, opacity 0.18s ease, filter 0.18s ease;
}
.ddi-land--north path { fill: #38bdf8; }
.ddi-land--central path { fill: #2dd4bf; }
.ddi-land--south path { fill: #34d399; }
.ddi-land--europe path { fill: #a78bfa; }
.ddi-land--africa path { fill: #fbbf24; }
.ddi-land--asia path { fill: #fb7185; }
.ddi-land--oceania path { fill: #60a5fa; }
.ddi-land-label {
  fill: color-mix(in srgb, var(--ink) 82%, transparent);
  font-size: 15px;
  font-weight: 700;
  font-family: "Source Sans 3", system-ui, sans-serif;
  pointer-events: none;
  paint-order: stroke;
  stroke: color-mix(in srgb, var(--panel) 90%, transparent);
  stroke-width: 3.5px;
  stroke-linejoin: round;
}
.ddi-land:hover path,
.ddi-land:focus-visible path {
  filter: brightness(1.08);
  stroke: color-mix(in srgb, var(--ink) 22%, transparent);
  stroke-width: 0.5;
}
.ddi-land.is-active path {
  stroke: color-mix(in srgb, var(--ink) 45%, transparent);
  stroke-width: 0.7;
  filter: brightness(1.06) saturate(1.12);
}
.ddi-land.is-dim {
  opacity: 0.22;
}
.ddi-land.is-dim .ddi-land-label {
  opacity: 0.45;
}
.ddi-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ddi-map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 999px;
  padding: 0.32rem 0.7rem 0.32rem 0.5rem;
  font: inherit;
  font-size: 0.74rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.12s;
}
.ddi-map-legend-item:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.ddi-map-legend-item em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.ddi-map-legend-item.is-active {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
  color: var(--ink);
  transform: translateY(-1px);
}
.ddi-map-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 55%, var(--line));
  flex-shrink: 0;
}
.ddi-map-legend-item--north .ddi-map-dot { background: #38bdf8; }
.ddi-map-legend-item--central .ddi-map-dot { background: #2dd4bf; }
.ddi-map-legend-item--south .ddi-map-dot { background: #34d399; }
.ddi-map-legend-item--europe .ddi-map-dot { background: #a78bfa; }
.ddi-map-legend-item--africa .ddi-map-dot { background: #fbbf24; }
.ddi-map-legend-item--asia .ddi-map-dot { background: #fb7185; }
.ddi-map-legend-item--oceania .ddi-map-dot { background: #60a5fa; }
[data-theme="dark"] .ddi-ocean {
  fill: color-mix(in srgb, #0369a1 22%, var(--bg));
}
[data-theme="dark"] .ddi-world-stage {
  background: color-mix(in srgb, #0369a1 14%, var(--bg));
}
[data-theme="dark"] .ddi-land path {
  stroke: color-mix(in srgb, var(--bg) 40%, transparent);
}
[data-theme="dark"] .ddi-land-label {
  fill: color-mix(in srgb, #fff 90%, transparent);
  stroke: color-mix(in srgb, var(--panel) 75%, transparent);
}
[data-theme="dark"] .ddi-land--north path { fill: #0ea5e9; }
[data-theme="dark"] .ddi-land--central path { fill: #14b8a6; }
[data-theme="dark"] .ddi-land--south path { fill: #10b981; }
[data-theme="dark"] .ddi-land--europe path { fill: #8b5cf6; }
[data-theme="dark"] .ddi-land--africa path { fill: #f59e0b; }
[data-theme="dark"] .ddi-land--asia path { fill: #f43f5e; }
[data-theme="dark"] .ddi-land--oceania path { fill: #3b82f6; }
.ddi-flag-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1rem;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent);
}
.ddi-flag {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ddi-flag-wrap.is-fallback {
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
  box-shadow: inset 0 0 0 1px var(--line);
}
.ddi-flag-wrap.is-fallback::before {
  content: "🌐";
  font-size: 0.62rem;
  line-height: 1;
}
.ddi-country-cell {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.ddi-country-cell span {
  min-width: 0;
}
.ddi-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}
.ddi-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 0.32rem 0.7rem 0.32rem 0.55rem;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.ddi-quick-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, var(--panel));
}
.ddi-quick-btn strong {
  color: var(--accent);
  font-size: 0.82rem;
}
.ddi-quick-btn span {
  color: var(--muted);
  max-width: 9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ddi-toolbar {
  margin-bottom: 0.75rem;
}
.ddi-toolbar .tool-filter {
  margin-top: 0;
  margin-bottom: 0.65rem;
}
.ddi-continent-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ddi-tab {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.ddi-tab:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.ddi-tab.is-active {
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--accent);
  font-weight: 600;
}
.ddi-code {
  display: inline-block;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.ddi-iso {
  font-size: 0.82rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ddi-cont-cell {
  font-size: 0.84rem;
  color: var(--muted);
}
.ddi-enrich .enrich-block + .enrich-block {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.ddi-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  background: color-mix(in srgb, var(--accent) 7%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
}
.ddi-formula-part {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
  font-weight: 600;
  color: var(--accent);
}
.ddi-formula-sep {
  color: var(--muted);
  font-size: 0.75rem;
}
.ddi-examples-compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.ddi-ex-row {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
.ddi-ex-row h3 {
  font-size: 0.9rem;
  margin: 0 0 0.4rem;
}
.ddi-ex-formula {
  margin: 0 0 0.4rem;
}
.ddi-ex-formula code {
  font-size: 0.78rem;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  border-radius: 6px;
  padding: 0.2rem 0.45rem;
}
.ddi-ex-detail {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}
.ddi-compare td:first-child { white-space: nowrap; }
.page-visual-orbit--globe .page-visual-orb--core-ddi {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ddi-popular-grid {
  margin: 0 0 1.75rem;
}
.ddi-country-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.65rem;
}
.ddi-country-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-height: 100%;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.ddi-country-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-1px);
}
.ddi-country-card-code {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-top: 0.25rem;
}
.ddi-country-card strong {
  font-size: 0.92rem;
  line-height: 1.25;
}
.ddi-country-card em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
}
.ddi-country-cell a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: inherit;
  text-decoration: none;
}
.ddi-country-cell a:hover span {
  color: var(--accent);
  text-decoration: underline;
}
a.ddi-code { text-decoration: none; }
a.ddi-code:hover { text-decoration: underline; }
a.ddi-quick-btn {
  text-decoration: none;
  color: inherit;
}
.ddi-detail .ddi-detail-flagline {
  display: flex;
  justify-content: flex-end;
  margin: -0.5rem 0 0.85rem;
}
.ddi-detail .ddi-detail-flagline .ddi-flag-wrap {
  width: 3rem;
  height: 2.15rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ddi-detail .ddi-detail-flagline .ddi-flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ddi-detail-stats .ddi-stat-value {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  line-height: 1.2;
  word-break: break-word;
}
.ddi-detail-map {
  margin-top: 0.25rem;
}
.ddi-detail-map .map-block {
  margin: 0;
}
.ddi-detail-map .map-frame {
  max-height: 360px;
}
.ddi-format-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  font-size: 0.88rem;
}
.ddi-format-pill span {
  font-weight: 700;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ddi-format-pill code {
  font-weight: 700;
  color: var(--accent);
}
.ddi-steps {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
  color: var(--ink);
}
.ddi-steps li {
  padding-left: 0.2rem;
  line-height: 1.45;
}
.ddi-city-table .ddi-code { font-weight: 700; }
.ddi-inline-note {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.ddi-extra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.ddi-extra-card {
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 92%, var(--bg));
}
.ddi-extra-card h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
}
.ddi-extra-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}
.ddi-extra-card--tip {
  background: color-mix(in srgb, #fbbf24 8%, var(--panel));
  border-color: color-mix(in srgb, #fbbf24 28%, var(--line));
}
.ddi-em-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.ddi-em-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.ddi-em-list span { color: var(--muted); }
.ddi-carrier-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ddi-carrier-chip {
  display: inline-flex;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 0.78rem;
  font-weight: 600;
}
.ddi-related-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.ddi-related-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}
.ddi-related-chip span {
  font-size: 0.78rem;
  color: var(--muted);
}
.ddi-facts-row {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.5rem;
}
.ddi-facts-row li {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.ddi-facts-row span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}
.ddi-facts-row strong {
  font-size: 0.88rem;
  line-height: 1.3;
}
.ddi-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin: 0 0 1.25rem;
  font-size: 0.84rem;
}
.ddi-toc a { color: var(--accent); }
.ddi-subh {
  margin: 1.1rem 0 0.45rem;
  font-size: 0.92rem;
}
.ddi-ops {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ddi-ops li {
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.8rem;
}
.ddi-ops strong { color: var(--accent); margin-right: 0.2rem; }
.ddi-dial-box {
  margin-top: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, var(--panel));
}
.ddi-dial-box label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}
.ddi-dial-box input {
  width: 100%;
  max-width: 22rem;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: inherit;
  font-size: 1rem;
}
.ddi-dial-hint {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.ddi-dial-out {
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.35rem;
}
.ddi-dial-out p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  align-items: baseline;
}
.ddi-dial-out span {
  font-size: 0.75rem;
  color: var(--muted);
  min-width: 7.5rem;
}
.ddi-dial-out code { font-weight: 700; color: var(--accent); }
.ddi-by-continent { margin: 0 0 2rem; }
.ddi-cont-block { margin: 0 0 1.1rem; }
.ddi-cont-block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}
.ddi-cont-block-head h3 { margin: 0; font-size: 1rem; }
.ddi-cont-block-head a { font-size: 0.82rem; }
.ddi-cont-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.ddi-cont-chips a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  font-size: 0.78rem;
}
.ddi-cont-chips a:hover { border-color: var(--accent); }
.ddi-cont-more { font-weight: 700; color: var(--accent); }
.ddi-country-cards--region { margin-top: 0.85rem; }
.ddi-visao-copy p + p { margin-top: 0.75rem; }
@media (max-width: 720px) {
  .ddi-examples-compact { grid-template-columns: 1fr; }
  .ddi-extra-grid { grid-template-columns: 1fr; }
  .ddi-country-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ddi-facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .ddi-tab { font-size: 0.7rem; padding: 0.3rem 0.6rem; }
  .ddi-quick-btn span { max-width: 6.5rem; }
  .ddi-world-map { max-height: 220px; }
  .ddi-land-label { font-size: 12px; }
  .ddi-map-legend-item { font-size: 0.68rem; }
}

/* —— Glossário —— */
.glossary-page {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 3rem;
  animation: rise 0.55s ease both;
}
.glossary-layout {
  display: grid;
  grid-template-columns: min(260px, 100%) 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
}
.glossary-sidebar {
  position: sticky;
  top: calc(var(--header-h, 64px) + 1rem);
  display: grid;
  gap: 1.25rem;
  padding: 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.page-search--glossary .page-search-field {
  border-radius: 12px;
}
.glossary-result-count {
  margin: -0.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}
.glossary-alpha-label,
.glossary-cat-nav-label {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.glossary-alpha-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.glossary-alpha-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 2.1rem;
  justify-content: center;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.glossary-alpha-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.glossary-alpha-count {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
}
.glossary-cat-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.glossary-cat-nav-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.glossary-cat-nav-link svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}
.glossary-cat-nav-link:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.glossary-main {
  min-width: 0;
  display: grid;
  gap: 2.5rem;
}
.glossary-index-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}
.glossary-index-groups {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}
.glossary-index-group {
  scroll-margin-top: calc(var(--header-h, 64px) + 1rem);
}
.glossary-index-letter {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  border-bottom: 2px solid var(--accent-soft);
  padding-bottom: 0.35rem;
}
.glossary-index-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
}
.glossary-index-links a {
  display: inline-block;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.glossary-index-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.glossary-empty {
  margin: 1rem 0 0;
  padding: 1rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 8%, var(--panel));
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}
.glossary-category {
  scroll-margin-top: calc(var(--header-h, 64px) + 1rem);
}
.glossary-category-head h2 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.45rem;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
}
.glossary-category-head h2 svg {
  width: 1.15em;
  height: 1.15em;
  color: var(--accent);
  flex-shrink: 0;
}
.glossary-category-head p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}
.glossary-term-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 0.85rem;
  margin-top: 1.15rem;
}
.glossary-term {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.05rem 1.05rem;
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h, 64px) + 1rem);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.glossary-term:target {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.glossary-term-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}
.glossary-term-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}
.glossary-term-abbr {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.glossary-term-full {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.glossary-term-def {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.55;
}
.glossary-term-example {
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.65rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: color-mix(in srgb, var(--accent) 6%, var(--panel));
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}
.glossary-term-example span {
  font-weight: 700;
  color: var(--accent);
}
.glossary-term-link {
  margin: 0.65rem 0 0;
}
.glossary-term-link .section-link {
  font-size: 0.84rem;
}
.glossary-faq .faq-item p a {
  color: var(--accent);
  font-weight: 600;
}
.glossary-cta {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--panel)), var(--panel));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem 1.4rem;
  text-align: center;
}
.glossary-cta h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}
.glossary-cta p {
  margin: 0 0 1rem;
  color: var(--muted);
}
.glossary-cta .about-actions {
  justify-content: center;
}
.glossary-enrich {
  margin: 0 0 2rem;
  display: grid;
  gap: 0.25rem;
}
.glossary-intro-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}
.glossary-intro-copy {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}
.glossary-intro-p {
  margin: 0 0 0.85rem;
}
.glossary-intro-p:last-child {
  margin-bottom: 0;
}
.glossary-intro-note {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 7%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
}
.glossary-steps {
  margin-top: 0.5rem;
}
.glossary-example-block {
  margin: 1rem 0 0;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}
.glossary-example-block strong {
  color: var(--ink);
}
.glossary-cep-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--bg);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}
.glossary-cep-table a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.glossary-cep-table a:hover {
  text-decoration: underline;
}
.glossary-cep-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}
.glossary-cep-note a {
  color: var(--accent);
  font-weight: 600;
}
.glossary-audience-cards h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.45rem;
  font-size: 1rem;
}
.glossary-audience-cards h3 svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}
.glossary-category-enrich {
  margin: 0.65rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 5%, var(--panel));
  border-left: 3px solid var(--accent);
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 48rem;
}
.glossary-explore {
  text-align: center;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.glossary-explore h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
}
.glossary-explore p {
  margin: 0 0 1rem;
  color: var(--muted);
}
.glossary-explore .about-actions {
  justify-content: center;
}
@media (max-width: 960px) {
  .glossary-layout {
    grid-template-columns: 1fr;
  }
  .glossary-sidebar {
    position: static;
  }
}
@media (max-width: 560px) {
  .glossary-term-grid {
    grid-template-columns: 1fr;
  }
  .glossary-page {
    width: min(1120px, calc(100% - 1.25rem));
  }
}

/* cache-bust estado-page-cards 20260826190000 */

/* —— Página 404 (URL não encontrada) —— */
.not-found-page {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 2.5rem;
}
.not-found-page .page-hero-copy > .not-found-url {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1rem 0 0;
  max-width: 100%;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 8%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  font-size: 0.9rem;
  color: var(--muted);
}
.not-found-page .not-found-url svg,
.not-found-page .not-found-url i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
}
.not-found-page .not-found-url code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(28rem, 70vw);
}
.not-found-actions {
  margin-top: 1.1rem;
  flex-wrap: wrap;
}
.not-found-search {
  margin: 0 0 1.75rem;
}
.not-found-shortcuts {
  margin: 0 0 2rem;
}
.not-found-tools {
  margin-top: 1rem;
}
.not-found-states {
  margin: 0 0 0.5rem;
}
.not-found-enrich {
  max-width: none;
}
.not-found-enrich .enrich-block h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.not-found-enrich .enrich-block h2 svg,
.not-found-enrich .enrich-block h2 i {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--accent);
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .not-found-page .tools-grid--6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .not-found-page {
    width: min(1120px, calc(100% - 1.25rem));
  }
  .not-found-page .tools-grid--6 {
    grid-template-columns: 1fr;
  }
}


/* Ferramentas SEO extras */
.tools-seo-checks { list-style: none; padding: 0; margin: 0.75rem 0 1rem; display: grid; gap: 0.5rem; }
.tools-seo-checks li { padding: 0.55rem 0.75rem; border-radius: 10px; border: 1px solid var(--border, #e5e7eb); background: var(--surface, #fff); }
.tools-seo-checks li.is-ok { border-color: color-mix(in srgb, #059669 35%, transparent); background: color-mix(in srgb, #059669 8%, transparent); }
.tools-seo-checks li.is-bad { border-color: color-mix(in srgb, #dc2626 35%, transparent); background: color-mix(in srgb, #dc2626 8%, transparent); }
.tools-seo-muni-list { columns: 2; gap: 1rem; margin: 0.5rem 0 0; padding-left: 1.1rem; }
.tools-seo-pick { display: block; width: 100%; text-align: left; cursor: pointer; margin-bottom: 0.5rem; border: 1px solid var(--border, #e5e7eb); background: var(--surface, #fff); }
.tools-seo-pick:hover { border-color: var(--accent, #0ea5e9); }
@media (max-width: 640px) {
  .tools-seo-muni-list { columns: 1; }
}

/* —— Estatísticas / rankings do Brasil —— */
.stats-brasil-page .stats-updated {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
  margin: -0.5rem 0 1.25rem;
}
.stats-brasil-page .stats-updated svg { width: 16px; height: 16px; flex-shrink: 0; }
.stats-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
}
.stats-jump-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.stats-jump-chip svg { width: 14px; height: 14px; color: var(--accent); }
.stats-jump-chip:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--accent-soft);
}
.stats-section {
  margin: 0 0 2.25rem;
  scroll-margin-top: 5.5rem;
}
.stats-section-head h2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
}
.stats-section-head h2 svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.stats-section-head p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 0.85rem;
}
.stats-table td.stats-wrap {
  white-space: normal;
  min-width: 10rem;
  max-width: 18rem;
}
.stats-muted {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.15rem;
}
.stats-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--panel-2);
  color: var(--muted);
}
.stats-rank--1 { background: #fef3c7; color: #b45309; }
.stats-rank--2 { background: #f1f5f9; color: #475569; }
.stats-rank--3 { background: #ffedd5; color: #c2410c; }
[data-theme="dark"] .stats-rank--1 { background: #78350f; color: #fde68a; }
[data-theme="dark"] .stats-rank--2 { background: #334155; color: #e2e8f0; }
[data-theme="dark"] .stats-rank--3 { background: #7c2d12; color: #fed7aa; }
.stats-coords-cell {
  min-width: 11rem;
  white-space: nowrap;
}
.stats-coords-cell .stats-bar {
  display: inline-block;
  vertical-align: middle;
  width: min(8rem, 42vw);
  margin-right: 0.5rem;
}
.stats-coords-pct {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}
.stats-bar {
  height: 0.45rem;
  border-radius: 999px;
  background: var(--panel-2);
  overflow: hidden;
}
.stats-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0d9488, #14b8a6);
}
.stats-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 2rem;
}
.stats-enrich { margin-top: 0.5rem; }
@media (max-width: 640px) {
  .stats-table--coords .stats-coords-cell { white-space: normal; }
  .stats-coords-cell .stats-bar { display: block; width: 100%; margin: 0 0 0.35rem; }
}

/* Hub e páginas dedicadas de rankings */
.stats-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 0 2rem;
}
.stats-hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.stats-hub-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-1px);
}
.stats-hub-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.stats-hub-card-icon svg { width: 18px; height: 18px; }
.stats-hub-card strong { font-size: 1.02rem; color: var(--accent); }
.stats-hub-card-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.45; }
.stats-hub-card-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.stats-hub-card-meta em { font-style: normal; color: var(--ink); font-weight: 600; }
.stats-hub-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}
.stats-hub-card-cta svg { width: 14px; height: 14px; }
.stats-related { margin: 2rem 0 1.5rem; }
.stats-related-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.05rem;
  margin: 0 0 0.85rem;
}
.stats-related-title svg { width: 18px; height: 18px; color: var(--accent); }
.stats-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.stats-related-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  font-size: 0.88rem;
}
.stats-related-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--accent-soft); }
.stats-related-icon svg { width: 16px; height: 16px; color: var(--accent); }
.stats-related-card strong { font-size: 0.92rem; }
.stats-related-card span { color: var(--muted); line-height: 1.4; }
.stats-related-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.2rem;
}
.stats-related-cta svg { width: 13px; height: 13px; }
.stats-brasil-ranking .stats-updated a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.35rem;
  font-weight: 600;
}
@media (max-width: 768px) {
  .stats-hub-grid,
  .stats-related-grid { grid-template-columns: 1fr; }
}

/* Pódio, insights e resumo SEO */
.stats-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: end;
  margin: 0 0 1.5rem;
}
.stats-podium-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem 0.75rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.stats-podium-card--1 {
  order: 2;
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
  border-color: color-mix(in srgb, #f59e0b 45%, var(--line));
  background: color-mix(in srgb, #fef3c7 35%, var(--panel));
}
.stats-podium-card--2 { order: 1; }
.stats-podium-card--3 { order: 3; }
.stats-podium-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.stats-podium-card strong { font-size: 0.95rem; line-height: 1.3; }
.stats-podium-sub { font-size: 0.78rem; color: var(--muted); }
.stats-podium-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
[data-theme="dark"] .stats-podium-card--1 {
  background: color-mix(in srgb, #78350f 25%, var(--panel));
  border-color: color-mix(in srgb, #f59e0b 35%, var(--line));
}
.stats-insights { margin: 0 0 1.5rem; }
.stats-insights-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}
.stats-insights-title svg { width: 18px; height: 18px; color: var(--accent); }
.stats-insights-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.stats-insight-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 0.86rem;
}
.stats-insight-icon svg { width: 16px; height: 16px; color: var(--accent); }
.stats-insight-card strong { font-size: 0.88rem; }
.stats-insight-card span:last-child { color: var(--muted); line-height: 1.45; }
.stats-summary-p { margin: 0 0 0.65rem; line-height: 1.55; }
.stats-summary-p:last-child { margin-bottom: 0; }
.stats-resumo .enrich-intro { margin-bottom: 0.65rem; }
.stats-compare-table td:first-child a { font-weight: 600; }
.stats-enrich .enrich-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}
@media (max-width: 768px) {
  .stats-podium { grid-template-columns: 1fr; }
  .stats-podium-card--1,
  .stats-podium-card--2,
  .stats-podium-card--3 { order: unset; }
  .stats-insights-grid { grid-template-columns: 1fr; }
}

/* CEP page — popularidade e endereços alternativos */
.cep-pop-wrap { margin: 0.75rem 0 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.cep-pop-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.65rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 600;
}
.cep-pop-badge--very-high { background: #fef3c7; color: #92400e; }
.cep-pop-badge--high { background: #ffedd5; color: #c2410c; }
.cep-pop-badge--medium { background: #dbeafe; color: #1d4ed8; }
.cep-pop-badge--low { background: #ecfdf5; color: #047857; }
.cep-pop-meta { font-size: 0.8125rem; color: var(--muted, #64748b); }
.cep-alt-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.cep-alt-item { padding: 0.75rem 1rem; border: 1px solid var(--border, #e2e8f0); border-radius: 0.5rem; background: var(--surface, #fff); }
.cep-alt-meta { color: var(--muted, #64748b); font-weight: 400; }
.cep-alt-tags { display: flex; gap: 0.35rem; margin-top: 0.35rem; flex-wrap: wrap; }
.cep-alt-tag { font-size: 0.75rem; padding: 0.1rem 0.45rem; border-radius: 0.25rem; background: #f1f5f9; color: #475569; }
.cep-bairro-panel .facts--compact { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.heatmap-wrap { margin: 1.25rem 0; }
.heatmap-canvas { width: 100%; max-width: 900px; height: auto; border: 1px solid var(--border, #e2e8f0); border-radius: 0.75rem; background: #f8fafc; }
.tool-card--frete { --card-tone: #ea580c; }
.tool-card--cnefe { --card-tone: #0891b2; }
.tool-card--heatmap { --card-tone: #dc2626; }
.tool-card--regioes { --card-tone: #7c3aed; }
.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-list .chip { display: inline-block; padding: 0.35rem 0.75rem; border-radius: 999px; background: #f0fdfa; color: #0f766e; text-decoration: none; font-size: 0.875rem; border: 1px solid #99f6e4; }
.chip-list .chip:hover { background: #ccfbf1; }
