/* ============================================================
   label.info — sistema visual
   Editorial e silencioso: muito branco, fio de 1px no lugar de
   caixas, UMA cor de ação. A foto da máquina é o elemento forte;
   tudo em volta recua. Mobile-first: o layout nasce em 1 coluna.
   ============================================================ */

/* ── Tokens ───────────────────────────────────────────────── */
:root {
  --ink:        #0f1115;
  --ink-soft:   #3c434f;
  --muted:      #737b8a;
  --line:       #e8eaf0;
  --line-soft:  #f1f3f8;
  --bg:         #ffffff;
  --bg-soft:    #f8f9fc;

  --brand:      #1b1ca8;   /* azul do logotipo — estrutura e links */
  --brand-ink:  #12136f;
  --brand-soft: #eff0ff;
  --accent:     #e0431f;   /* vermelho-laranja do rolo — só a ação principal */
  --accent-ink: #b8351a;

  --radius:    16px;
  --radius-sm: 10px;
  --radius-xs: 8px;

  --shadow-sm: 0 1px 2px rgba(15,17,21,.05);
  --shadow:    0 2px 4px rgba(15,17,21,.04), 0 12px 32px -16px rgba(15,17,21,.24);

  --step: clamp(3rem, 7vw, 5.5rem);   /* respiro vertical entre seções */
  --container: 1180px;
  --header-h: 80px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
          "Noto Sans", "Noto Sans Arabic", "Noto Sans Devanagari",
          "Noto Sans SC", "Noto Sans JP", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Árabe/devanágari ficam visualmente menores que o latino no mesmo px. */
[dir="rtl"] body, html[lang="hi"] body { font-size: 17px; }

img, video { max-width: 100%; height: auto; display: block; }
/* Ícone quase sempre acompanha texto — block o jogaria para a linha de baixo. */
svg { display: inline-block; vertical-align: -.15em; flex: 0 0 auto; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.18;
  letter-spacing: -.021em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 5.2vw, 3.1rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); }
h3 { font-size: 1.05rem; }
p  { margin: 0 0 1rem; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { margin: 0 0 1rem; padding-inline-start: 1.2rem; }
.plain-list { list-style: none; margin: 0; padding: 0; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

::selection { background: var(--brand-soft); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (max-width: 640px) { .container { padding-inline: 16px; } }

.section { padding-block: var(--step); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--soft { background: var(--bg-soft); }

/* Grade fluida: cai de 4 → 3 → 2 → 1 coluna sozinha, sem media query. */
.grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 260px)), 1fr));
}

.stack > * + * { margin-top: var(--gap, 1rem); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.grow { flex: 1 1 auto; min-width: 0; }

/* ── Tipografia auxiliar ──────────────────────────────────── */
.eyebrow {
  font-size: .74rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .6rem;
}
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink-soft); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny  { font-size: .8rem; }
.strong { font-weight: 600; }
.center { text-align: center; }
.truncate-2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Botões ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit; font-weight: 600; font-size: .94rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .12s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); color: #fff; }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }

.btn--outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }

.btn--ghost { background: transparent; color: var(--ink-soft); padding-inline: .6rem; }
.btn--ghost:hover { color: var(--ink); background: var(--line-soft); }

.btn--sm { padding: .45rem .75rem; font-size: .85rem; }
.btn--block { width: 100%; }
.btn--danger { background: #fff; border-color: #f0c9c1; color: var(--accent-ink); }
.btn--danger:hover { background: #fdf3f1; }

/* ── Campos ───────────────────────────────────────────────── */
.label {
  display: block; margin-bottom: .35rem;
  font-size: .82rem; font-weight: 500; color: var(--ink-soft);
}
.field {
  width: 100%;
  padding: .68rem .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit; font-size: .95rem;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
.field:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field::placeholder { color: #a3aab8; }
textarea.field { min-height: 8rem; resize: vertical; line-height: 1.6; }
select.field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23737b8a' stroke-width='1.6' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-inline-end: 2.2rem;
}
[dir="rtl"] select.field { background-position: left .85rem center; padding-inline-end: .85rem; padding-inline-start: 2.2rem; }
.hint { margin-top: .3rem; font-size: .78rem; color: var(--muted); }
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form-grid .span-all { grid-column: 1 / -1; }

.check { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; }
.check input { margin-top: .25rem; accent-color: var(--brand); }

/* ── Cabeçalho ────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: clamp(10px, 2.5vw, 32px);
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 46px; width: auto; }
@media (max-width: 900px) { :root { --header-h: 64px; } }
@media (max-width: 640px) { .brand img { height: 36px; } }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: .5rem .7rem;
  border-radius: var(--radius-xs);
  color: var(--ink-soft); font-weight: 500; font-size: .94rem;
}
.nav a:hover { color: var(--ink); background: var(--line-soft); text-decoration: none; }
.nav a[aria-current] { color: var(--ink); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }

.header-search { position: relative; width: min(260px, 26vw); }
.header-search .field { padding-inline-start: 2.3rem; padding-block: .5rem; font-size: .9rem; }
.header-search .icon {
  position: absolute; inset-inline-start: .7rem; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}

/* Menu e idiomas usam <details> — funcionam sem JavaScript. */
.dropdown { position: relative; }
.dropdown > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .7rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 500; color: var(--ink-soft);
  background: #fff;
  user-select: none;
}
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown > summary:hover { border-color: var(--ink); color: var(--ink); }
.dropdown[open] > summary { border-color: var(--ink); color: var(--ink); }

.dropdown-panel {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60;
  min-width: 232px; max-height: min(70vh, 460px); overflow-y: auto;
  padding: 6px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.dropdown-panel a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .5rem .65rem; border-radius: var(--radius-xs);
  color: var(--ink); font-size: .9rem;
}
.dropdown-panel a:hover { background: var(--line-soft); text-decoration: none; }
.dropdown-panel a[aria-current] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.dropdown-panel .native { font-weight: 500; }
.dropdown-panel .english { color: var(--muted); font-size: .78rem; }

/* Navegação móvel — mesmo <details>, painel de largura total. */
.nav-toggle { display: none; }
.mobile-nav { display: none; }

@media (max-width: 900px) {
  .nav, .header-search { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav { display: block; }
  .mobile-nav[open] .mobile-panel { display: block; }
  .mobile-panel {
    position: fixed; inset-inline: 0; top: var(--header-h); bottom: 0; z-index: 55;
    display: none;
    padding: 20px 16px 40px;
    background: #fff; border-top: 1px solid var(--line);
    overflow-y: auto;
  }
  .mobile-panel a {
    display: block; padding: .85rem 0;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink); font-size: 1.05rem; font-weight: 500;
  }
  .mobile-panel a:hover { text-decoration: none; }
  .mobile-panel .btn { margin-top: 1.25rem; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(180deg, var(--brand-soft) 0%, rgba(255,255,255,0) 78%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 780px; margin-inline: auto; }
.hero h1 { margin-bottom: .75rem; }
.hero .lead { margin-bottom: 2rem; margin-inline: auto; max-width: 42rem; }

.searchbar { display: flex; gap: 8px; max-width: 620px; margin-inline: auto; }
.searchbar .field { padding-block: .95rem; font-size: 1.02rem; border-radius: var(--radius-sm); }
.searchbar .btn { padding-inline: 1.35rem; }

.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.25rem; margin-top: 2rem; }
.fact b { display: block; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.fact span { font-size: .84rem; color: var(--muted); }

/* ── Cartão de anúncio ────────────────────────────────────── */
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.card-media {
  position: relative; display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.035); }
.card-media .placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; color: #c8cdd9;
}
.card-media .placeholder svg { vertical-align: middle; }

.card-body { padding: .9rem .15rem 0; }
.card-title { margin: 0 0 .3rem; font-size: .98rem; font-weight: 600; line-height: 1.35; }
.card-title a { color: var(--ink); }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-title a:hover { text-decoration: none; }
.card:hover .card-title a { color: var(--brand); }
.card-meta { font-size: .82rem; color: var(--muted); margin: 0 0 .45rem; }
.card-price { font-size: 1.02rem; font-weight: 700; letter-spacing: -.015em; margin: 0 0 .35rem; }
.card-place { display: flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--muted); margin: 0; }

.tag {
  position: absolute; z-index: 2; top: 10px; inset-inline-start: 10px;
  padding: .22rem .5rem;
  border-radius: 999px;
  font-size: .7rem; font-weight: 600; letter-spacing: .02em;
  background: rgba(255,255,255,.94); color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.tag--accent { background: var(--accent); color: #fff; }
.tag--dark { background: var(--ink); color: #fff; inset-inline-start: auto; inset-inline-end: 10px; }
.tag--local { position: static; background: var(--brand-soft); color: var(--brand-ink); }

/* ── Chips e listas de links ──────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .38rem .8rem;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .85rem; color: var(--ink-soft); background: #fff;
}
.chip:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.chip b { font-weight: 600; }
.chip .count { color: var(--muted); font-size: .78rem; }

.linklist { columns: 2; column-gap: 2.5rem; }
@media (min-width: 800px) { .linklist { columns: 3; } }
.linklist a {
  display: block; padding: .42rem 0; break-inside: avoid;
  color: var(--ink-soft); font-size: .93rem;
}
.linklist a:hover { color: var(--brand); }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: .4rem;
  padding: 1.1rem 0 0; margin: 0; list-style: none;
  font-size: .82rem; color: var(--muted);
}
.breadcrumb li + li::before { content: "/"; margin-inline-end: .4rem; color: #c3c9d5; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }

/* ── Marketplace ──────────────────────────────────────────── */
.market {
  display: grid; gap: clamp(1.5rem, 3vw, 2.75rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 960px) {
  .market { grid-template-columns: 236px 1fr; }
  .filters { position: sticky; top: calc(var(--header-h) + 16px); }
}
.filters .filter-block { padding-block: 1.1rem; border-top: 1px solid var(--line); }
.filters .filter-block:first-child { border-top: 0; padding-top: 0; }
.filters h3 {
  font-size: .74rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .7rem;
}
.filters .field { font-size: .9rem; padding-block: .55rem; }
.filters .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Em telas pequenas os filtros viram um acordeão fechado. */
@media (max-width: 959px) {
  .filters-wrap > summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    padding: .8rem 1rem;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-weight: 600; font-size: .92rem;
  }
  .filters-wrap > summary::-webkit-details-marker { display: none; }
  .filters-wrap[open] > summary { margin-bottom: 1rem; }
}
@media (min-width: 960px) {
  .filters-wrap > summary { display: none; }
}

.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.5rem;
}
.toolbar .field { width: auto; padding-block: .45rem; font-size: .88rem; }

/* ── Paginação ────────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: 3rem; font-size: .9rem;
}
.pagination .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* ── Detalhe do anúncio ───────────────────────────────────── */
.detail {
  display: grid; gap: clamp(1.75rem, 3.5vw, 3rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 980px) { .detail { grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr); } }

.gallery-main {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-soft);
}
.gallery-main img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #fff; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs img {
  width: 84px; height: 64px; flex: 0 0 auto; object-fit: cover;
  border: 1px solid var(--line); border-radius: var(--radius-xs); cursor: pointer;
  transition: border-color .15s;
}
.gallery-thumbs img:hover { border-color: var(--ink); }

.speclist { border-top: 1px solid var(--line); margin: 0; }
.speclist > div {
  display: flex; justify-content: space-between; gap: 2rem;
  padding: .78rem 0; border-bottom: 1px solid var(--line-soft);
  font-size: .94rem;
}
.speclist dt { color: var(--muted); margin: 0; }
.speclist dd { margin: 0; font-weight: 500; text-align: end; }

.sidebar-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff;
}
@media (min-width: 980px) { .sidebar-sticky { position: sticky; top: calc(var(--header-h) + 16px); } }
.sidebar-card .price-head { padding: 1.25rem 1.25rem 1rem; border-bottom: 1px solid var(--line); }
.sidebar-card .price { font-size: 1.65rem; font-weight: 700; letter-spacing: -.025em; }
.sidebar-card .body { padding: 1.25rem; }

.seller { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; }
.seller img { width: 42px; height: 42px; border-radius: 10px; object-fit: contain; border: 1px solid var(--line); }
.verified { color: var(--brand); vertical-align: -2px; }

.notice {
  padding: .7rem .9rem;
  border: 1px solid #f2e2c6; background: #fdf8ef;
  border-radius: var(--radius-sm);
  font-size: .84rem; color: #7a5a24;
}
.alert {
  padding: .8rem 1rem; border-radius: var(--radius-sm);
  font-size: .9rem; border: 1px solid var(--line);
}
.alert--ok { background: #f1faf3; border-color: #cfe9d6; color: #1d6b34; }
.alert--bad { background: #fdf3f1; border-color: #f0cfc7; color: var(--accent-ink); }
.alert--warn { background: #fdf8ef; border-color: #f2e2c6; color: #7a5a24; }

/* ── Conteúdo editorial ───────────────────────────────────── */
.prose { max-width: 44rem; font-size: 1.05rem; line-height: 1.75; color: var(--ink-soft); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2.4rem; color: var(--ink); font-size: 1.4rem; }
.prose h3 { margin-top: 1.8rem; color: var(--ink); font-size: 1.1rem; }
.prose img { border-radius: var(--radius); margin-block: 1.5rem; }
.prose blockquote {
  margin: 1.5rem 0; padding-inline-start: 1.1rem;
  border-inline-start: 3px solid var(--line); color: var(--muted);
}
.prose code { background: var(--line-soft); padding: .12em .35em; border-radius: 4px; font-size: .9em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.prose th, .prose td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); text-align: start; }
.prose th { color: var(--muted); font-weight: 600; }

.article-card { display: block; }
.article-card h3 { margin: .9rem 0 .35rem; font-size: 1.05rem; }
.article-card:hover h3 { color: var(--brand); }
.article-card .cover {
  aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--line);
}
.article-card .cover img { width: 100%; height: 100%; object-fit: cover; }

/* ── Passos / colunas de texto ────────────────────────────── */
.steps { counter-reset: step; }
.step-num {
  display: grid; place-items: center;
  width: 30px; height: 30px; margin-bottom: .8rem;
  border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink);
  font-size: .82rem; font-weight: 700;
}

/* ── Faixa de chamada ─────────────────────────────────────── */
.cta {
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--ink); color: #fff;
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.72); max-width: 34rem; margin-inline: auto; }

/* ── Rodapé ───────────────────────────────────────────────── */
.site-footer {
  margin-top: var(--step);
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
  background: #0d0e1a; color: rgba(255,255,255,.66);
  font-size: .9rem;
}
/* `width`/`height` no HTML entram como dica de estilo: sem `width: auto` o
   640px do atributo vence e a marca sai esticada. */
.site-footer .footer-logo { height: 34px; width: auto; }
.site-footer a { color: rgba(255,255,255,.66); }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer h4 {
  font-size: .74rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: rgba(255,255,255,.42); margin-bottom: .9rem;
}
.footer-grid {
  display: grid; gap: 2rem clamp(1rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}
.footer-grid > :first-child { grid-column: 1 / -1; max-width: 22rem; }
@media (min-width: 900px) { .footer-grid > :first-child { grid-column: auto; } }
.footer-langs { display: flex; flex-wrap: wrap; gap: .3rem 1.35rem; font-size: .84rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem; color: rgba(255,255,255,.42);
}

/* ── Painel (dashboard/admin) ─────────────────────────────── */
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.panel-pad { padding: clamp(1.1rem, 2.5vw, 1.75rem); }
.panel-row { padding: 1rem clamp(1.1rem, 2.5vw, 1.5rem); border-top: 1px solid var(--line-soft); }
.panel-row:first-child { border-top: 0; }

.stat b { display: block; font-size: 1.75rem; font-weight: 700; letter-spacing: -.025em; }
.stat span { font-size: .82rem; color: var(--muted); }

.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .55rem; border-radius: 999px;
  border: 1px solid var(--line);
  font-size: .76rem; font-weight: 500; color: var(--ink-soft);
}
.dot { width: .5rem; height: .5rem; border-radius: 50%; flex: 0 0 auto; }
.dot--ok { background: #18a957; }
.dot--wait { background: #e0a020; }
.dot--off { background: #b6bcc9; }
.dot--bad { background: var(--accent); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th {
  text-align: start; font-weight: 600; color: var(--muted);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
  padding: .7rem 1rem; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: .8rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }

details.inline > summary {
  list-style: none; cursor: pointer;
  font-size: .86rem; color: var(--brand); font-weight: 500;
  padding: .35rem 0;
}
details.inline > summary::-webkit-details-marker { display: none; }

.empty { padding: clamp(3rem, 8vw, 5rem) 1rem; text-align: center; color: var(--muted); }
.empty svg { display: block; margin-inline: auto; margin-bottom: 1rem; color: #ccd2de; }

/* ── Utilidades ───────────────────────────────────────────── */
.hidden { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── Bandeiras do seletor de idioma ───────────────────────── */
.flag {
  width: 20px; height: 15px;
  border-radius: 2px;
  object-fit: cover;
  flex: 0 0 auto;
  /* Bandeira quase branca (Japão) sumiria no fundo branco. */
  box-shadow: 0 0 0 1px rgba(15,17,21,.09);
}
.lang-picker > summary { gap: .45rem; }
.lang-picker .lang-code {
  font-variant-numeric: tabular-nums;
  font-weight: 600; font-size: .8rem; letter-spacing: .02em;
}
/* No celular fica só a bandeira — o código não cabe. */
@media (max-width: 720px) {
  .lang-picker .lang-code { display: none; }
}

/* ── Ajustes de cabeçalho no celular ──────────────────────── */
@media (max-width: 900px) {
  /* Entrar/anunciar moram na gaveta; na barra ficam só marca,
     idioma e menu — senão o botão laranja empurra tudo para fora. */
  .header-actions > .btn:not(.nav-toggle) { display: none; }
}

/* O <details> dos filtros: no desktop o conteúdo aparece sempre, mesmo
   fechado (o resumo fica escondido e não há como reabrir). */
@media (min-width: 960px) {
  .filters-wrap:not([open]) > .filters { display: block; }
}
