/* ──────────────────────────────────────────────────────────
   BASE — reset + primitivos compartilhados + nav + footer +
   breadcrumb. Portado de ranqiahub-frontend/app/globals.css e
   dos componentes Nav/Footer. Carregado em todas as páginas.
   ────────────────────────────────────────────────────────── */

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

main {
  flex: 1;
}

.tnum {
  font-variant-numeric: tabular-nums;
}

/* Layout compartilhado ------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 24px;
}

/* Primitivos: cards, badges, tags ------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.badge-ver {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--verify-soft);
  color: var(--verify);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.tag {
  font-size: 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  padding: 7px 13px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.12s;
  font-weight: 500;
}

.tag:hover {
  border-color: var(--brand-2);
  color: var(--brand);
  background: var(--brand-soft);
}

.label-mono {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Foco acessível ------------------------------------------------------- */
:where(a, button, summary, input):focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── NAV (sticky) ── portado de components/Nav.module.css --------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--brand);
  flex: none;
}

.nav-logo .mark img {
  height: 30px;
  width: auto;
  display: block;
}

.nav-logo .brand {
  display: inline-flex;
  align-items: baseline;
}

.nav-logo .tld {
  color: var(--brand-2);
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}

.nav-links a {
  color: var(--ink-2);
}

.nav-links a:hover {
  color: var(--brand);
}

@media (max-width: 880px) {
  .nav-links {
    gap: 16px;
  }
}

/* ── BREADCRUMB ── ------------------------------------------------------ */
.breadcrumb {
  border-bottom: 1px solid var(--line-2);
  background: var(--surface);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 11px 0;
  font-size: 12.5px;
  color: var(--muted);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li::after {
  content: "›";
  color: var(--faint);
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb a {
  color: var(--brand-2);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb li:last-child span {
  color: var(--ink-2);
  font-weight: 600;
}

/* ── FOOTER (escuro) ── portado de components/Footer.module.css -------- */
.footer {
  background: #0e1726;
  color: #8b9bb4;
  margin-top: 60px;
  padding: 44px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: #fff;
}

.footer-logo .tld {
  color: var(--gold);
  margin-left: 2px;
}

.footer-tagline {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
  max-width: 34ch;
}

.footer-col-title {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 9px;
}

.footer li a {
  font-size: 13px;
  color: #8b9bb4;
}

.footer li a:hover {
  color: #fff;
}

.footer-legal {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #1c2940;
  font-size: 12px;
  color: #63738c;
}
