@tailwind base;
@tailwind components;
@tailwind utilities;

/* ===== tokens (BRAND.md) — transplanted from index_10 :root ===== */
:root{
  --black:#000000; --white:#FFFFFF; --red:#DD0000;
  --gold:#C9B896; --gray:#D6D7D8; --ink:#0A0A0A;
  --fita-azul:#0A1A3D; --ink-2:#3A3A3A; --muted:#6E6E6E;
  --line:#E5E5E5; --bg-2:#F5F5F5; --bg-3:#FAFAFA;

  /* ===== theme surfaces (light = current) ===== */
  --page-bg: var(--red);
  --hero-bg: linear-gradient(180deg,#F0F0F0 0%,#F5F5F5 18%,#FAFAFA 45%,#FDFDFD 70%,#FFFFFF 82%,#FFFFFF 100%);
  --hero-text: var(--ink);
  --panel: var(--white);
  --panel-text: var(--ink);
  --section-bg: var(--black);
  --footer-bg: var(--red);
  /* hairline dos cards (mesma geometria nos dois temas; só a cor muda) */
  --card-hair: rgba(0,0,0,.12);
  /* header text over the hero (transparent state) — ink on light white hero */
  --header-hero-text: var(--ink);
}

[data-theme="dark"]{
  --page-bg: #5C0000;     /* deep tricolor red */
  --hero-bg: #000000;     /* black hero (index9) */
  --hero-text: var(--white);
  --panel: #141414;
  --panel-text: var(--white);
  --section-bg: #0E0E0E;
  --footer-bg: #5C0000;
  --line: rgba(255,255,255,.14);
  --bg-2: #1B1B1B;
  --bg-3: #161616;
  --muted: #9A9A9A;
  --card-hair: rgba(255,255,255,.12);
  /* header text over the black hero (transparent state) — white on dark */
  --header-hero-text: var(--white);
}
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:var(--font-inter),'Inter',system-ui,sans-serif;background:#FFFFFF;color:#0A0A0A;-webkit-font-smoothing:antialiased;font-size:16px;line-height:1.5;min-height:100vh}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
ul{list-style:none}
.container{max-width:1320px;margin:0 auto;padding:0 24px}
@media (max-width:768px){.container{padding:0 16px}}

/* ===== header + drawer ===== */

/* ============== HEADER (smart: transparent → white on scroll-up, hidden on scroll-down) ============== */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:100;
  background:transparent;
  color:var(--header-hero-text);
  transition:transform .35s cubic-bezier(.4,0,.2,1), background .25s ease, color .25s ease, border-color .25s ease;
  border-bottom:1px solid transparent;
}
.site-header.scrolled{
  background:var(--panel);
  color:var(--panel-text);
  border-bottom-color:var(--line);
  box-shadow:0 1px 0 rgba(0,0,0,.04), 0 10px 30px -20px rgba(0,0,0,.15);
}
.site-header.hide{ transform:translateY(-110%); }

/* Header layout PSG-fidelity: MENU + CREST + links | spacer | ENTRAR + INGRESSOS + LOJA + PT▾ */
.header-inner{
  display:flex;
  align-items:center;
  height:64px;
  padding:0 24px;
  gap:28px;
}
.header-left{display:flex;align-items:center;gap:26px;flex:0 0 auto}
.header-center{display:none}
.header-right{display:flex;align-items:center;justify-content:flex-end;gap:24px;margin-left:auto}

.menu-trigger{
  display:flex;align-items:center;gap:8px;
  font-weight:800;text-transform:uppercase;letter-spacing:.16em;font-size:13px;
  padding:4px 2px;
  color:currentColor;
  transition:opacity .2s;
}
.menu-trigger:hover{opacity:.7}
.menu-trigger .bars{display:inline-flex;flex-direction:column;gap:3px}
.menu-trigger .bars span{display:block;width:18px;height:2px;background:currentColor;transition:transform .25s, opacity .2s}

.header-logo{display:flex;align-items:center}
.header-logo img{height:50px;width:auto;transition:height .25s ease}
/* BRAND.md §3: nenhum efeito (sombra/blur/etc) no escudo — drop-shadow removido do original */
.header-logo-text{display:none}

.header-lang{
  display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.14em;
  color:inherit;
  transition:color .25s ease;
  position:relative;cursor:pointer;
}

/* Lang trigger button */
.lang-trigger{
  display:inline-flex;align-items:center;gap:6px;
  font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.14em;
  color:inherit;padding:4px 2px;
  background:none;border:none;cursor:pointer;
  transition:opacity .2s;
}
.lang-trigger:hover{opacity:.7}
.lang-trigger .lang-caret{
  display:inline-block;
  width:6px;height:6px;
  border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;
  transform:rotate(45deg) translate(-1px,-2px);
  transition:transform .2s;
}
.lang-trigger[aria-expanded="true"] .lang-caret{
  transform:rotate(-135deg) translate(-1px,1px);
}

/* Lang dropdown panel */
.lang-menu{
  position:absolute;top:calc(100% + 10px);right:0;
  min-width:80px;
  background:var(--panel);
  border:1px solid var(--line);
  box-shadow:0 8px 24px -8px rgba(0,0,0,.55);
  z-index:150;
  overflow:hidden;
  /* hidden state */
  opacity:0;pointer-events:none;
  transform:translateY(-6px);
  transition:opacity .18s ease, transform .18s ease;
}
.lang-menu.open{
  opacity:1;pointer-events:auto;
  transform:translateY(0);
}
.lang-menu button{
  display:block;width:100%;
  padding:10px 16px;
  font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.14em;
  color:var(--panel-text);
  text-align:left;
  background:none;border:none;cursor:pointer;
  transition:background .15s, color .15s;
}
.lang-menu button:hover{background:var(--bg-2);color:var(--red)}
.lang-menu button[aria-current="true"]{color:var(--red);font-weight:900}
.lang-menu button:not(:last-child){border-bottom:1px solid var(--line)}

/* Legacy anchor style kept for fallback compatibility */
.header-lang a{padding:2px 0;transition:color .2s}
.header-lang a:hover,.header-lang a.active{color:currentColor}
.header-lang a.active{font-weight:800}

.header-link{
  font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.14em;
  color:inherit;padding:4px 0;
  display:inline-flex;align-items:center;gap:7px;
  position:relative;
}
.header-link::after{
  content:"";position:absolute;left:0;right:0;bottom:-3px;
  height:1px;background:currentColor;
  transform:scaleX(0);transform-origin:left;
  transition:transform .25s ease;
}
.header-link:hover::after{transform:scaleX(1)}
.header-link svg{width:14px;height:14px}

.btn-pill{
  display:inline-flex;align-items:center;gap:6px;
  padding:8px 14px;border-radius:999px;
  font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.12em;
  background:var(--red);color:var(--white);
  /* Contorno branco fino — separa o vermelho de qualquer fundo (regra BRAND.md) */
  box-shadow:0 0 0 1.5px var(--white);
  transition:transform .2s, background .2s, box-shadow .2s;
}
.btn-pill:hover{transform:translateY(-1px);background:#B80000;box-shadow:0 0 0 1.5px var(--white), 0 6px 16px -6px rgba(221,0,0,.6)}
.btn-pill--ghost{background:transparent;color:var(--white);border:1.5px solid rgba(255,255,255,.3)}
.btn-pill--ghost:hover{background:var(--white);color:var(--ink);border-color:var(--white)}

@media (min-width:1025px){
  /* desktop: the inline section dropdowns are the nav — hide the hamburger (redundant) */
  .menu-trigger{display:none}
}
@media (max-width:1024px){
  .header-right .header-link.hide-mobile{display:none}
  /* small screens: hide the inline nav — the hamburger/drawer takes over.
     Scoped to .header-inner so it outranks the base .header-nav{display:flex}
     defined later in the stylesheet. */
  .header-inner .header-nav{display:none}
}
@media (max-width:768px){
  .header-inner{grid-template-columns:auto 1fr auto;height:60px;padding:0 16px}
  .header-logo-text{display:none}
  /* BRAND.md §3: escudo nunca abaixo de 50px digital — mantém 50px no mobile (era 38px no original) */
  .menu-trigger span.label{display:none}
  .header-lang{display:none}
  .header-right .header-link{display:none}
}

/* ============== DRAWER (sidebar menu) ============== */
.drawer-overlay{
  position:fixed;inset:0;
  background:rgba(0,0,0,.5);
  opacity:0;pointer-events:none;
  transition:opacity .3s;
  z-index:200;
}
.drawer-overlay.open{opacity:1;pointer-events:auto}

.drawer{
  position:fixed;top:0;left:0;bottom:0;
  width:380px;max-width:90vw;
  background:var(--panel);
  transform:translateX(-100%);
  transition:transform .35s cubic-bezier(.4,.0,.2,1);
  z-index:210;
  overflow-y:auto;
  display:flex;flex-direction:column;
}
.drawer.open{transform:translateX(0)}

.drawer-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:24px 28px;border-bottom:1px solid var(--line);
}
.drawer-head img{height:42px}
.drawer-close{
  width:36px;height:36px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:20px;color:var(--ink);
  transition:background .2s;
}
.drawer-close:hover{background:var(--bg-2)}

.drawer-nav{padding:8px 0;flex:1}
.drawer-item{border-bottom:1px solid var(--line)}
.drawer-item-trigger{
  display:flex;align-items:center;justify-content:space-between;
  width:100%;text-align:left;
  padding:20px 28px;
  font-size:18px;font-weight:700;letter-spacing:-.01em;
  color:var(--ink);
  transition:background .2s,color .2s;
}
.drawer-item-trigger:hover{background:var(--bg-2);color:var(--red)}
.drawer-item-trigger .chevron{
  width:10px;height:10px;
  border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(-45deg);
  transition:transform .25s;
}
.drawer-item.open .drawer-item-trigger .chevron{transform:rotate(45deg)}
.drawer-sub{
  max-height:0;overflow:hidden;
  transition:max-height .35s ease;
  background:var(--bg-3);
}
.drawer-item.open .drawer-sub{max-height:500px}
.drawer-sub a{
  display:block;padding:14px 28px 14px 44px;
  font-size:14px;font-weight:400;color:var(--ink-2);
  border-top:1px solid var(--line);
  transition:color .2s,background .2s;
}
.drawer-sub a:hover{color:var(--red);background:var(--white)}

.drawer-foot{
  padding:24px 28px;border-top:1px solid var(--line);
  display:flex;flex-direction:column;gap:12px;
}
.drawer-foot a{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 18px;border-radius:8px;
  font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;
  transition:background .2s;
}
.drawer-foot a.primary{background:var(--red);color:var(--white);box-shadow:0 0 0 1.5px var(--white)}
.drawer-foot a.primary:hover{background:#B80000}
.drawer-foot a.outline{background:var(--bg-2);color:var(--ink)}
.drawer-foot a.outline:hover{background:var(--line)}

/* Drawer controls: theme + language — shown on mobile, hidden on desktop */
.drawer-controls{
  display:none; /* hidden by default; shown on mobile via @media below */
  flex-direction:column;gap:0;
  border-top:1px solid var(--line);
}
.drawer-controls-row{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 28px;
  border-bottom:1px solid var(--line);
}
.drawer-controls-label{
  font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.16em;
  color:var(--muted);
}
.drawer-lang-btns{
  display:flex;gap:4px;
}
.drawer-lang-btn{
  padding:5px 12px;border-radius:4px;
  font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.12em;
  color:var(--panel-text);
  background:var(--bg-2);
  border:1px solid var(--line);
  cursor:pointer;
  transition:background .15s, color .15s, border-color .15s;
}
.drawer-lang-btn:hover{background:var(--line)}
.drawer-lang-btn.active{
  background:var(--red);color:var(--white);
  border-color:var(--red);
  box-shadow:0 0 0 1.5px var(--white); /* BRAND.md: white ring separates red from dark panel */
}

@media (max-width:768px){
  /* Show drawer controls on mobile */
  .drawer-controls{display:flex}
  /* Hide theme toggle in header bar on mobile — it lives in the drawer */
  .theme-toggle{display:none}
}

/* ===== utils ===== */
/* body scroll lock while the drawer is open (toggled by HeaderClient) */
.no-scroll{overflow:hidden}

/* ===== hero + calendar ===== */
/* ============== HERO PSG-fidelity (foto + gradient navy + calendar carrossel — Fita Azul unifica tudo) ============== */
.hero{
  position:relative;
  /* Alvorada vertical: ouro denso herda do header → champagne → branco puro exatamente onde o
     calendário pousa (≈82% da altura do hero). Cor-ouro alinhada com BRAND.md (#C9B896).
     Dark mode: var(--hero-bg) resolves to #000000 (pure black hero). */
  background:var(--hero-bg);
  display:flex;flex-direction:column;
}
.hero-stage{
  position:relative;
  flex:0 0 auto;
  /* Stage ocupa a maior parte do viewport — calendar peek mostra título + stripe + primeira linha (comp · date) */
  height:calc(100vh - 130px);
  min-height:580px;
  overflow:hidden;
  background:transparent;
}
/* Camada 1: foto da apresentação — full bleed, sem filtros agressivos */
.hero-backdrop{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;object-position:center top;
  filter:brightness(.95) saturate(1.05) contrast(1.04);
  z-index:0;
}
/* Overlay editorial: amarrar a foto ao gradient vertical do .hero — dourado no topo (zona do
   header), transparente no meio (foto livre, hero card legível) e branco-difuso na base
   (handoff suave para o calendário branco). Sem vignette dramático. */
.hero-grad{
  position:absolute;inset:0;pointer-events:none;z-index:1;
  /* Light: top 0–15% stays opaque enough so ink header text is legible against the
     header zone. Mid/lower sections are now much lighter so the backdrop photo reads
     clearly. Only the very base (≥88%) ramps back to white for the calendar handoff. */
  background:
    linear-gradient(180deg,
      rgba(255,255,255,.92) 0%,
      rgba(255,255,255,.82) 8%,
      rgba(255,255,255,.60) 16%,
      rgba(255,255,255,.28) 32%,
      rgba(255,255,255,.14) 50%,
      rgba(255,255,255,.22) 68%,
      rgba(255,255,255,.62) 84%,
      rgba(255,255,255,.92) 92%,
      rgba(255,255,255,1)   100%
    );
}
/* .hero-bg removido — agora só o backdrop full-bleed faz o trabalho visual */
/* Camada 4: grain noise pra textura cinematográfica */
.hero-grain{
  position:absolute;inset:0;pointer-events:none;z-index:3;
  filter:url(#grain);opacity:.5;mix-blend-mode:overlay;
}
/* Camada 5: fade pro preto na base — costura com o carrossel */
/* (.hero-stage::after removido — sem fade no rodapé do hero) */
@media (max-width:900px){
  .hero-bg{left:65%;height:90%;opacity:.45}
}
/* Hero card centralizado verticalmente, ancorado à esquerda do palco */
/* Hero card justificado à esquerda, mas posicionado mais pro centro (não cola na borda esquerda) — PSG style */
.hero-card{
  position:absolute;
  left:14%;bottom:80px;
  max-width:560px;
  text-align:left;
  color:var(--hero-text);
  z-index:5;
  opacity:0;transform:translateY(24px);
  animation:heroIn 1s .4s cubic-bezier(.2,.7,.2,1) forwards;
}
/* Light-mode local scrim behind hero-card so ink text stays legible over the now-more-visible photo.
   Radial soft white glow expanding from card area — tasteful, not a heavy box. */
/* (removed the radial scrim behind the hero-card — it read as a disconnected white box;
   legibility comes from the hero-title text-shadow instead) */
@keyframes heroIn{ to{ opacity:1; transform:translateY(0) } }
@media (max-width:1100px){.hero-card{left:6%;bottom:60px;max-width:460px}}
/* (heroIn definido inline acima — translateX -50% mantido) */

/* Indicador editorial: chapter mark + tag categoria */
.hero-eyebrow{
  display:flex;align-items:center;gap:14px;
  margin-bottom:18px;
  font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.28em;
}
.hero-eyebrow .num{
  color:var(--gold);font-variant-numeric:tabular-nums;
}
.hero-eyebrow .div{
  flex:0 0 32px;height:1px;background:rgba(0,0,0,.25);
}
.hero-eyebrow .cat{color:rgba(0,0,0,.75)}

.hero-tag{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 11px;background:var(--red);color:var(--white);
  font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.2em;
  margin-bottom:18px;
  box-shadow:0 0 0 1.5px var(--white); /* BRAND.md: anel branco isola o vermelho (igual nos dois temas) */
}
.hero-tag::before{
  content:"";width:6px;height:6px;border-radius:50%;
  background:var(--white);box-shadow:0 0 0 2px rgba(255,255,255,.35);
  animation:livePulse 1.6s infinite ease-out;
}
@keyframes livePulse{
  0%{ box-shadow:0 0 0 0 rgba(255,255,255,.6) }
  70%{ box-shadow:0 0 0 8px rgba(255,255,255,0) }
  100%{ box-shadow:0 0 0 0 rgba(255,255,255,0) }
}
.hero-title{
  font-size:clamp(40px,5.4vw,68px);font-weight:900;line-height:1.02;letter-spacing:-.025em;
  margin-bottom:22px;text-transform:uppercase;
  /* sem text-shadow — paridade com o dark (estrutura idêntica nos dois temas) */
}
.hero-title .ht-l1,
.hero-title .ht-l2{display:block}
/* Segunda linha começa alinhada com o "A" de CORAL (~3 caracteres de offset no peso 900 uppercase) */
.hero-title .ht-l2{padding-left:2.05em}
/* "DO TRICOLOR" volta a vermelho — sem stroke (BRAND.md: separação branco/preto não se aplica em bg light) */
.hero-title em{
  color:var(--red);font-style:normal;
}
.hero-title q{
  font-weight:600;color:rgba(10,10,10,.85);quotes:'"' '"';
  display:block;font-size:.74em;letter-spacing:-.02em;margin-top:6px;
}
.hero-cta{
  display:inline-flex;align-items:center;gap:10px;
  padding:0;background:transparent;color:var(--ink);
  font-size:15px;font-weight:800;text-transform:uppercase;letter-spacing:.18em;
  transition:gap .25s, color .25s;
  border-bottom:1px solid rgba(0,0,0,.4);padding-bottom:6px;
}
.hero-cta:hover{gap:16px;color:var(--red);border-color:var(--red)}
.hero-cta svg{width:14px;height:14px}

@media (max-width:768px){
  .hero-card{left:20px;right:20px;bottom:32px}
}

/* Calendar bg sólido — transição smokey feita pelo ::before com backdrop-filter blur */
.hero-calendar{
  position:relative;
  z-index:2;
  padding:14px 0 26px;
  color:var(--ink);
  /* Calendário pousa em branco puro (light) / panel escuro (dark) */
  background:var(--panel);
  /* sem glow — paridade com o dark; a costura fica por conta do ::before (gradiente temável) */
}
/* Pseudo de transição mantido como blur sutil — a costura cromática vem do .hero gradient */
.hero-calendar::before{
  content:"";
  position:absolute;
  left:0;right:0;
  top:-40px;height:40px;
  backdrop-filter:blur(10px) saturate(1.02);
  -webkit-backdrop-filter:blur(10px) saturate(1.02);
  background:linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 60%, rgba(255,255,255,.7) 100%);
  mask-image:linear-gradient(180deg, transparent 0%, #000 50%, #000 100%);
  -webkit-mask-image:linear-gradient(180deg, transparent 0%, #000 50%, #000 100%);
  pointer-events:none;
  z-index:1;
}
/* Inner sem max-width — só o título alinha com o hero card (14%); cards tomam a tela toda */
.hero-calendar-inner{
  max-width:none;
  padding:0;
}
.hero-calendar-head{padding-left:14%;padding-right:24px}
.carousel-wrap{padding-left:24px}
@media (max-width:1100px){
  .hero-calendar-head{padding-left:6%}
}
.hero-calendar-head{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:14px;
}
.hero-calendar-title{
  display:flex;align-items:center;gap:16px;
  font-size:28px;font-weight:800;letter-spacing:-.01em;text-transform:uppercase;line-height:1;
}
.hero-calendar-title .dot{
  width:7px;height:7px;border-radius:50%;background:var(--gold);
}
.hero-calendar-title a{
  color:var(--muted);font-size:13px;font-weight:700;letter-spacing:.16em;
  margin-left:10px;transition:color .2s;
}
.hero-calendar-title a:hover{color:var(--ink)}
.cal-controls{display:flex;gap:8px}
.cal-btn{
  width:34px;height:34px;border-radius:50%;
  background:rgba(0,0,0,.04);
  border:1px solid rgba(0,0,0,.12);
  color:var(--ink);
  display:flex;align-items:center;justify-content:center;
  transition:background .2s, border-color .2s, opacity .2s, transform .2s;
}
.cal-btn:hover{background:rgba(0,0,0,.08);border-color:rgba(0,0,0,.25)}
.cal-btn:active{transform:scale(.94)}
.cal-btn:disabled{opacity:.25;cursor:default}
.cal-btn svg{width:14px;height:14px}

.carousel-wrap{
  position:relative;
}
.carousel-wrap::before,
.carousel-wrap::after{
  content:"";position:absolute;top:0;bottom:0;width:28px;pointer-events:none;z-index:2;
}
.carousel-wrap::before{left:0;background:linear-gradient(90deg, rgba(255,255,255,.85), transparent)}
.carousel-wrap::after {right:0;background:linear-gradient(270deg, rgba(255,255,255,.85), transparent)}

.carousel{
  display:flex;gap:10px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none;
  padding:6px 4px 12px;
}
.carousel::-webkit-scrollbar{display:none}

/* Match card: 360×184px (retangular ALONGADO NA HORIZONTAL), 24px padding owned by the card.
   Children use NO horizontal/edge padding — the card's own padding is the single inset. */
.match{
  flex:0 0 360px;
  width:360px;
  height:184px;
  scroll-snap-align:start;
  background:var(--bg-2);color:var(--ink);
  display:flex;flex-direction:column;
  justify-content:center;
  overflow:hidden;
  transition:transform .2s, box-shadow .2s;
  cursor:pointer;
  position:relative;
  /* 24px padding is the single inset; children inherit this spacing */
  padding:24px;
  /* hairline + elevação iguais nos dois temas (estrutura do dark é a referência) */
  box-shadow:
    inset 0 0 0 1px var(--card-hair),
    0 4px 18px -6px rgba(0,0,0,.55);
  /* PSG signature: corner clip bottom-right 24px diagonal */
  clip-path:polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}
.match:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 1px var(--card-hair), 0 10px 24px -14px rgba(0,0,0,.55)}
/* Stripe top — 2px de margem branca acima separa o vermelho do preto da calendar bg (BRAND.md compliance)
   box-shadow: banda branca de 2px acima + filetes laterais de 1px (mesma geometria nos dois temas) */
.match::before{
  content:"";position:absolute;left:0;right:0;top:2px;
  height:4px;background:var(--red);z-index:1;
  box-shadow:
    0 -2px 0 0 var(--white),
    inset 1px 0 0 0 var(--white),
    inset -1px 0 0 0 var(--white);
}
.match[data-comp="nordeste"]::before{background:var(--gold);top:2px}
.match[data-comp="copa-br"]::before {background:var(--gold);top:2px}

/* Comp + status inline: COMP · WEEKDAY DATE · TIME/FINAL
   No horizontal padding — card's 24px handles it.
   Compact top: pt-6 accounts for the 4px stripe + 2px gap above it */
.match-comp{
  display:flex;align-items:center;gap:6px;flex-wrap:nowrap;
  padding:0;
  font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.12em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.match-comp .badge{
  padding:0;background:none;box-shadow:none;
  font-size:10px;letter-spacing:.12em;font-weight:800;color:var(--ink);
  text-shadow:none;overflow:visible;
}
.match-comp .badge::before{display:none}
.match-comp .badge.red,.match-comp .badge.gold{background:none}
.match-comp .badge::after{
  content:"·";display:inline-block;margin:0 6px;color:var(--muted);font-weight:700;
}
.match-comp .status{color:var(--muted);font-size:10px;letter-spacing:.12em;font-weight:700}
.match-comp .status.live{color:var(--red);font-weight:900}

/* 2 rows — no horizontal/edge padding; 12px gap now that match-center is removed */
.match-rows{
  display:flex;flex-direction:column;gap:12px;
  padding:14px 0 0;
}
.match-row{
  display:flex;align-items:center;gap:10px;
}
.match-row-shield{
  width:28px;height:28px;border-radius:50%;
  background:var(--panel);
  display:flex;align-items:center;justify-content:center;
  font-weight:900;font-size:10px;letter-spacing:.04em;color:var(--ink);
  border:1px solid var(--line);
  flex-shrink:0;overflow:hidden;
}
.match-row-shield.home{background:transparent;border:none;width:38px;height:38px}
.match-row-shield img{width:100%;height:100%;object-fit:contain}
/* escudo do adversário: mesmo tamanho/estilo do escudo do Santa (.home) —
   transparente, sem bolinha/borda, 32px, imagem contida */
.match-row-shield.has-crest{background:transparent;border:none;border-radius:0;width:32px;height:32px;padding:0;overflow:visible}
/* rivais (Sport/Náutico): escudo levemente inclinado + negativo SUAVE —
   rivalidade, sem desrespeito às instituições (efeito discreto, sem passar do tom) */
.match-row-shield.is-rival img{transform:rotate(-5deg);filter:invert(.12) grayscale(.05);opacity:.95}

/* card FIXO de memória — 7×0 no Sport (1934): acento dourado (cor comemorativa, BRAND.md §1) */
.match--legacy{box-shadow:inset 0 0 0 1px rgba(201,184,150,.55), 0 4px 18px -6px rgba(0,0,0,.55)}
[data-theme="dark"] .match--legacy{box-shadow:inset 0 0 0 1px rgba(201,184,150,.40), 0 4px 18px -6px rgba(0,0,0,.55)}
.match[data-comp="legacy"]::before{background:var(--gold)}
.match--legacy .status.legacy{color:#8a6f2e;font-weight:900;letter-spacing:.14em}
[data-theme="dark"] .match--legacy .status.legacy{color:var(--gold)}
.match-row-name{
  font-size:14px;font-weight:800;color:var(--ink);
  text-transform:uppercase;letter-spacing:.02em;
  flex:1;min-width:0;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
/* club name: full on desktop, short on mobile (avoids "Santa Cr..." truncation) */
.club-short{display:none}
.match-row-score{
  font-size:20px;font-weight:900;color:var(--ink);
  letter-spacing:-.02em;min-width:20px;text-align:right;
}

/* match-center removed — card now shows only comp/status + two team rows */

@media (max-width:768px){
  .hero-stage{min-height:480px}
  .hero-card{left:20px;right:20px;bottom:32px}
  .hero-calendar{padding:16px 0 28px}
  .carousel-wrap::before,.carousel-wrap::after{width:32px}
  .match{flex:0 0 300px;width:300px}
}

/* ===== news ===== */

/* ============== SECTION HEAD (compartilhado) ============== */
.section-head{
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  margin-bottom:28px;flex-wrap:wrap;
}
.section-title{
  font-size:clamp(22px,2.4vw,30px);font-weight:900;letter-spacing:-.01em;line-height:1;
  text-transform:uppercase;
}
.section-title em{color:var(--gold);font-style:normal}
.section-link{
  font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.16em;
  display:inline-flex;align-items:center;gap:6px;
  color:var(--white);transition:color .2s,gap .2s;
}
.section-link:hover{color:var(--gold);gap:10px}
.section-link svg{width:12px;height:12px}

/* ============== NEWS (PSG-style: featured sticky cinemático + strip vertical) ============== */
.news-section{padding:64px 0 72px;background:var(--section-bg);color:var(--white)}
.news-grid{
  display:grid;
  grid-template-columns:1.05fr 1fr;
  gap:28px;
  align-items:start; /* CRITICAL: align-items:start permite o sticky funcionar */
}

/* FEATURED — cartaz sticky: imagem full-bleed, gradient bottom-up, texto overlaid */
.news-feature{
  position:sticky;
  top:96px;
  display:block;
  overflow:hidden;
  aspect-ratio:4/5;
  text-decoration:none;
  background:var(--ink);
  isolation:isolate;
  clip-path:polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}
.news-feature .img-wrap{
  position:absolute;inset:0;
  aspect-ratio:auto;overflow:hidden;
  z-index:0;
}
.news-feature .img-wrap img{
  width:100%;height:100%;
  object-fit:cover;
  transition:transform .8s cubic-bezier(.2,.7,.2,1);
}
.news-feature:hover .img-wrap img{transform:scale(1.04)}
/* Gradient DENTRO da imagem: transparente no topo, preto denso na base — texto pousa nele */
.news-feature::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,
    rgba(0,0,0,0)   30%,
    rgba(0,0,0,.35) 55%,
    rgba(0,0,0,.78) 82%,
    rgba(0,0,0,.92) 100%
  );
  z-index:1;pointer-events:none;
}
.news-feature .meta{
  position:absolute;left:0;right:0;bottom:0;
  padding:0 36px 38px;
  z-index:2;color:var(--white);
}
.news-feature .tag{
  display:inline-flex;align-items:center;
  padding:5px 10px;
  background:var(--gold);color:var(--ink);
  font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.18em;
  margin-bottom:18px;
}
.news-feature h3{
  font-size:clamp(24px,2.4vw,38px);
  font-weight:900;line-height:1.04;letter-spacing:-.02em;
  text-transform:uppercase;
  color:var(--white);margin-bottom:14px;
  text-shadow:0 2px 12px rgba(0,0,0,.45);
}
.news-feature .date{
  font-size:11px;color:rgba(255,255,255,.78);
  font-weight:700;letter-spacing:.18em;text-transform:uppercase;
}

/* GRID 2-col — tiles menores que o featured, rolam enquanto o sticky segura */
.news-list{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  align-content:start;
}
.news-item{
  position:relative;display:block;
  overflow:hidden;
  aspect-ratio:3/4;
  text-decoration:none;
  background:var(--ink);
  isolation:isolate;
  transition:transform .3s;
}
.news-item:hover{transform:translateY(-3px)}
.news-item .thumb{
  position:absolute;inset:0;
  aspect-ratio:auto;overflow:hidden;
  z-index:0;
}
.news-item .thumb img{
  width:100%;height:100%;
  object-fit:cover;
  transition:transform .6s cubic-bezier(.2,.7,.2,1);
}
.news-item:hover .thumb img{transform:scale(1.05)}
.news-item::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,
    rgba(0,0,0,0)   38%,
    rgba(0,0,0,.45) 68%,
    rgba(0,0,0,.88) 100%
  );
  z-index:1;pointer-events:none;
}
.news-item .body{
  position:absolute;left:0;right:0;bottom:0;
  padding:0 16px 16px;
  z-index:2;color:var(--white);
  display:flex;flex-direction:column;gap:5px;
}
.news-item .tag{
  align-self:flex-start;
  display:inline-flex;
  padding:3px 7px;
  background:var(--gold);color:var(--ink);
  font-size:8.5px;font-weight:800;text-transform:uppercase;letter-spacing:.16em;
  margin-bottom:4px;
}
.news-item h4{
  font-size:14px;font-weight:800;line-height:1.18;letter-spacing:-.005em;
  color:var(--white);
  text-shadow:0 2px 8px rgba(0,0,0,.45);
}
.news-item .photo-count{
  display:inline-flex;align-items:center;gap:5px;
  font-size:10px;color:rgba(255,255,255,.85);font-weight:600;margin-top:2px;
}
.news-item .photo-count svg{width:10px;height:10px}

/* ---- News: tablet (900px) collapses to single-column grid ---- */
@media (max-width:900px){
  .news-grid{
    grid-template-columns:1fr;
    /* align-items:start kept so sticky still works on mobile */
  }
}

/* ---- News: mobile (768px) — sticky featured ~40vh + 2-col scrolling list ---- */
@media (max-width:768px){
  /* Featured: sticky at header height, occupies 40vh of viewport */
  .news-feature{
    position:sticky;
    top:60px; /* header is 60px on mobile */
    height:40vh;
    min-height:200px;
    aspect-ratio:auto; /* override the desktop 4/5 ratio */
    clip-path:none;
    z-index:1;
  }
  /* Keep img fill and gradient legible at 40vh */
  .news-feature .img-wrap{
    position:absolute;inset:0;
    height:100%;
  }
  .news-feature::after{
    /* Stronger bottom gradient so text is always readable at small heights */
    background:linear-gradient(180deg,
      rgba(0,0,0,0)   20%,
      rgba(0,0,0,.40) 52%,
      rgba(0,0,0,.82) 80%,
      rgba(0,0,0,.95) 100%
    );
  }
  .news-feature .meta{
    padding:0 20px 20px;
  }
  .news-feature h3{
    font-size:clamp(18px,5vw,26px);
    margin-bottom:8px;
  }
  /* Tag + date compact at 40vh */
  .news-feature .tag{
    margin-bottom:10px;
  }

  /* List: 2 columns always — the list scrolls while the featured sticks */
  .news-list{
    grid-template-columns:1fr 1fr;
    gap:10px;
    /* Ensure it layers above the sticky featured when scrolling */
    position:relative;
    z-index:2;
  }

  /* List item h4 slightly smaller on mobile */
  .news-item h4{
    font-size:12px;
  }
  .news-item .body{
    padding:0 10px 12px;
  }
}

/* ---- News: very narrow (400px) — keep 2-col but tighten further ---- */
@media (max-width:400px){
  .news-list{
    gap:8px;
  }
  .news-item h4{
    font-size:11px;
    line-height:1.2;
  }
  .news-feature h3{
    font-size:16px;
  }
}

/* ===== cookie banner ===== */
.cookie-banner{
  position:fixed;left:0;right:0;bottom:0;z-index:300;
  background:var(--panel);color:var(--panel-text);
  border-top:1px solid var(--line);
  box-shadow:0 -8px 24px -16px rgba(0,0,0,.25);
  padding:16px 24px;
}
.cookie-banner-inner{
  max-width:1320px;margin:0 auto;
  display:flex;align-items:center;gap:24px;flex-wrap:wrap;justify-content:space-between;
}
.cookie-banner p{font-size:13px;line-height:1.5;color:var(--ink-2);max-width:80ch}
.cookie-banner a{color:var(--red);font-weight:700;text-decoration:underline;text-underline-offset:2px}
.cookie-accept{
  display:inline-flex;align-items:center;gap:6px;
  padding:10px 22px;border-radius:999px;
  font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.12em;
  background:var(--red);color:var(--white);
  box-shadow:0 0 0 1.5px var(--white); /* BRAND.md: white ring keeps red off any dark edge */
  transition:transform .2s, background .2s;
  white-space:nowrap;
}
.cookie-accept:hover{transform:translateY(-1px);background:#B80000}
@media (max-width:600px){
  .cookie-banner-inner{flex-direction:column;align-items:stretch;gap:14px}
  .cookie-accept{align-self:flex-end}
}

/* ===== institutional ===== */
.inst-section{padding:64px 0 80px;background:var(--section-bg);color:var(--white)}
.inst-section .section-head{margin-bottom:24px}
.inst-section .section-title{font-size:11px;font-weight:800;letter-spacing:.2em;color:rgba(255,255,255,.85)}
.inst-section .section-title em{color:var(--gold)}
.inst-grid{
  display:grid;
  grid-template-columns:1fr 1.4fr 1fr;
  grid-template-rows:repeat(2,minmax(180px,1fr));
  gap:14px;
  min-height:520px;
}
.inst-card{
  position:relative;
  overflow:hidden;
  background:var(--ink);
  color:var(--white);
  text-decoration:none;
}
.inst-card.span-rows{grid-row:span 2}
.inst-card img{
  position:absolute;inset:0;
  width:100%;height:100%;object-fit:cover;
  transition:transform .6s,filter .3s;
  filter:brightness(.7);
}
.inst-card:hover img{transform:scale(1.06);filter:brightness(.55)}
.inst-card .grad{
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,0) 45%,rgba(0,0,0,.85) 100%);
}
.inst-card .body{
  position:absolute;left:0;right:0;bottom:0;
  padding:24px 22px;
  display:flex;flex-direction:column;gap:8px;
}
.inst-card .eyebrow{
  font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.16em;
  color:rgba(255,255,255,.7);
}
.inst-card h3{
  font-size:20px;font-weight:800;line-height:1.1;letter-spacing:-.01em;text-transform:uppercase;
}
.inst-card.span-rows h3{font-size:28px}
.inst-card .cta{
  display:inline-flex;align-items:center;gap:6px;
  align-self:flex-start;margin-top:6px;
  font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.12em;
  color:rgba(255,255,255,.95);
  border-bottom:2px solid var(--gold);padding-bottom:3px;
  transition:gap .2s,color .2s;
}
.inst-card:hover .cta{gap:10px;color:var(--gold)}
.inst-card .cta svg{width:11px;height:11px}

@media (max-width:900px){
  .inst-grid{grid-template-columns:1fr 1fr;grid-template-rows:auto;min-height:auto}
  .inst-card.span-rows{grid-row:auto;grid-column:1/-1}
  .inst-card{aspect-ratio:4/3}
}
@media (max-width:540px){
  .inst-grid{grid-template-columns:1fr}
  .inst-card.span-rows{grid-column:auto}
}

/* ===== banner strip ===== */
.banner-strip{
  padding:24px 0 56px;background:var(--black);
}
.banner-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:20px;
}
.banner-card{
  position:relative;
  aspect-ratio:21/9;
  overflow:hidden;
  background:var(--ink);color:var(--white);
  text-decoration:none;
  display:flex;align-items:stretch;
  transition:transform .3s;
}
.banner-card:hover{transform:translateY(-3px)}
.banner-card img{
  position:absolute;inset:0;
  width:100%;height:100%;object-fit:cover;
  transition:transform .6s, filter .3s;
  filter:brightness(.55);
}
.banner-card:hover img{transform:scale(1.05);filter:brightness(.42)}
.banner-card .grad{
  position:absolute;inset:0;
  background:linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 60%, rgba(0,0,0,.1) 100%);
}
.banner-card .body{
  position:relative;z-index:2;
  padding:32px 36px;
  display:flex;flex-direction:column;justify-content:center;gap:8px;
  max-width:60%;
}
.banner-card .eyebrow{
  font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.22em;
  color:var(--gold);
}
.banner-card h3{
  font-size:clamp(20px,1.8vw,26px);font-weight:800;line-height:1.05;letter-spacing:-.015em;
  text-transform:uppercase;
}
.banner-card .cta{
  display:inline-flex;align-items:center;gap:8px;
  margin-top:10px;align-self:flex-start;
  font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.18em;
  color:var(--white);border-bottom:1px solid rgba(255,255,255,.5);padding-bottom:4px;
  transition:gap .2s, color .2s, border-color .2s;
}
.banner-card:hover .cta{gap:14px;color:var(--gold);border-color:var(--gold)}
.banner-card .cta svg{width:11px;height:11px}
@media (max-width:768px){
  .banner-grid{grid-template-columns:1fr;gap:14px}
  .banner-card{aspect-ratio:16/9}
}

/* ===== sponsors ===== */
/* ============== SPONSORS (master + fornecedor grandes em cima · resto pequeno abaixo, sem labels) ============== */
.sponsors-section{padding:72px 0 72px;background:var(--section-bg);border-top:1px solid rgba(255,255,255,.18);color:var(--white)}

/* Master + Fornecedor — linha centralizada, logos grandes, sem moldura */
.sponsors-master{
  display:flex;justify-content:center;align-items:center;
  gap:120px;
  margin:0 auto 56px;
  flex-wrap:wrap;
}
.sponsors-master .item{
  display:inline-flex;align-items:center;justify-content:center;
  text-decoration:none;
  transition:opacity .25s, transform .25s;
}
.sponsors-master .item:hover{opacity:.7;transform:translateY(-1px)}
.sponsors-master .item img{height:64px;width:auto;display:block;object-fit:contain}

/* Outros patrocinadores — menores, centralizados, grid auto-wrap */
.sponsors-grid{
  display:flex;justify-content:center;align-items:center;
  gap:56px 64px;flex-wrap:wrap;
  max-width:1200px;margin:0 auto;
}
.sponsors-grid .item{
  display:inline-flex;align-items:center;justify-content:center;
  transition:opacity .2s, transform .2s;
}
.sponsors-grid .item:hover{opacity:.65;transform:translateY(-1px)}
.sponsors-grid .item img{height:34px;width:auto;display:block;object-fit:contain}

/* Logos monocromáticas brancas — no bg escuro do index_10 ficam visíveis nativamente */
.sponsors-section img{filter:none}

@media (max-width:768px){
  .sponsors-master{gap:48px}
  .sponsors-grid{gap:36px 40px}
  .sponsors-master .item img{height:48px}
  .sponsors-grid .item img{height:28px}
}

/* ===== social strip ===== */
/* ---- social strip (fundo branco, entre patrocinadores e footer escuro) ---- */
.social-strip{
  background:var(--panel);color:var(--panel-text);
  padding:36px 0 40px;
  position:relative;z-index:2;
}
.social-strip .row{
  display:flex;justify-content:center;align-items:center;gap:28px;flex-wrap:wrap;
}
.social-strip a{
  width:38px;height:38px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:var(--ink);transition:color .2s, transform .2s;
}
.social-strip a:hover{color:var(--red);transform:translateY(-2px)}
.social-strip svg{width:18px;height:18px;fill:currentColor}

/* ===== footer + parallax ===== */
/* ============== PARALLAX REVEAL — footer fixo no fundo do viewport, conteúdo sobe e revela ============== */
body{ background:var(--page-bg) }
/* todas as seções principais sentam por cima do footer */
.hero,
.news-section,
.banner-strip,
.inst-section,
.sponsors-section{
  position:relative;
  z-index:2;
}

/* ============== FOOTER (fixed, revealed by parallax) — Fita Azul ============== */
.site-footer{
  position:fixed;left:0;right:0;bottom:0;
  z-index:0;
  background:var(--footer-bg);color:var(--white);
  padding:56px 0 20px;
  overflow:hidden;
}
/* Mobile/tablet: parallax desligado (footer rola normalmente) — evita corte vertical em viewports menores */
@media (max-width:900px){
  .site-footer{position:static}
  body{padding-bottom:0 !important}
}

/* ---- chant final — slogan da torcida no FIM absoluto, centralizado, staggered ---- */
.footer-chant{
  position:relative;
  padding:60px 0 44px;
  border-top:1px solid rgba(0,0,0,.22);
  overflow:hidden;
}
.footer-chant .container{
  max-width:1200px;
}
.chant{
  position:relative;
  display:block;
  font-size:clamp(44px,9.5vw,140px);
  font-weight:900;line-height:1.1;letter-spacing:-.04em;
  text-transform:uppercase;color:var(--white);
}
.chant .line{display:block;white-space:nowrap}
.chant .line-2{margin-left:28%}
/* TRADIÇÃO preto com contorno branco sobre bandeira vermelha — regra BRAND.md cumprida ao pé da letra */
.chant em{
  color:var(--black); font-style:normal;
  -webkit-text-stroke:2.5px var(--white);
  paint-order:stroke fill;
  /* Sombra suave pra dar peso de cartaz */
  text-shadow:0 4px 0 rgba(0,0,0,.18);
}

.chant-meta{
  position:absolute;top:48px;right:32px;
  display:flex;flex-direction:column;gap:18px;text-align:right;
}
.chant-stat small{
  display:block;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.32em;
  color:rgba(255,255,255,.72);
}
.chant-stat strong{
  display:block;margin-top:6px;
  font-size:13px;font-weight:800;letter-spacing:.04em;color:var(--white);
}
/* Tri-Supercampeonato — feito exclusivo do clube (1957, 1976, 1983).
   3 estrelas tricolor; em bandeira vermelha, a estrela vermelha ganha contorno branco pra
   sobreviver (regra BRAND.md: branco separa preto/vermelho). */
.chant-stat--tri .stars{
  display:flex;justify-content:flex-end;gap:3px;
  margin-top:6px;font-size:14px;line-height:1;
}
.chant-stat--tri .stars i{font-style:normal}
.chant-stat--tri .s-black{color:#000;-webkit-text-stroke:.7px rgba(255,255,255,.55)}
.chant-stat--tri .s-white{color:#fff}
.chant-stat--tri .s-red  {
  color:var(--red);
  -webkit-text-stroke:1px var(--white);
  paint-order:stroke fill;
}
.chant-stat--tri strong{margin-top:5px;font-size:11px;color:rgba(255,255,255,.92)}
@media (max-width:900px){
  .footer-chant{padding:56px 0 44px}
  .chant .line-2{margin-left:18%}
  .chant-meta{position:static;text-align:left;margin-bottom:18px}
}
.footer-top{
  display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr 1.4fr;gap:48px;
  padding-bottom:48px;border-bottom:1px solid rgba(0,0,0,.22);
}
.footer-col--apps{display:flex;flex-direction:column}
.footer-apps-blurb{font-size:13px;color:rgba(255,255,255,.82);line-height:1.55;margin-top:-4px;margin-bottom:16px;max-width:300px}
.footer-col--apps .footer-apps{display:flex;flex-direction:column;gap:10px}
.footer-brand img{height:64px;margin-bottom:20px;display:block}
.footer-brand p{font-size:13px;color:rgba(255,255,255,.85);line-height:1.5;max-width:320px}
.footer-col h5{
  font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.16em;
  margin-bottom:18px;color:var(--white);
}
.footer-col ul{display:flex;flex-direction:column;gap:10px}
.footer-col a{font-size:13px;color:rgba(255,255,255,.88);transition:color .2s, transform .2s, padding-left .2s}
.footer-col a:hover{color:var(--gold);padding-left:4px}

.footer-apps{display:flex;gap:12px}
.footer-app{
  display:inline-flex;align-items:center;gap:10px;
  padding:8px 16px;border-radius:8px;
  background:rgba(0,0,0,.22);
  font-size:12px;color:rgba(255,255,255,.92);
  transition:background .2s, transform .2s;
}
.footer-app:hover{background:rgba(0,0,0,.45);box-shadow:0 0 0 1.5px var(--white);transform:translateY(-1px)}
.footer-app strong{display:block;font-size:13px;color:var(--white);font-weight:700;letter-spacing:-.01em}
.footer-app span{font-size:10px;letter-spacing:.05em;text-transform:uppercase;color:rgba(255,255,255,.78)}
/* Apps em breve (desabilitados) */
.footer-app--soon{opacity:.6;cursor:default;pointer-events:none}
.footer-app--soon:hover{background:rgba(0,0,0,.22);box-shadow:none;transform:none}
.footer-app .footer-app-soon{margin-left:auto;font-size:9px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#1a1205;background:var(--gold);padding:3px 8px;border-radius:999px}
/* Linha legal compacta (dentro do chant): copyright + acesso administrativo */
.footer-legal{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:26px}
.footer-copy{font-size:12px;color:rgba(255,255,255,.55)}
.footer-dev a{color:inherit;font-weight:700;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.35)}
.footer-dev a:hover{color:#fff;border-bottom-color:rgba(255,255,255,.7)}
/* Cadeado discreto — NÃO parece botão (sem borda/fundo/pill), só um ícone esmaecido */
.footer-admin-link{display:inline-flex;align-items:center;color:rgba(255,255,255,.25);transition:color .2s}
.footer-admin-link:hover{color:rgba(255,255,255,.5)}

@media (max-width:1100px){
  .footer-top{grid-template-columns:1fr 1fr 1fr;gap:36px}
  .footer-brand,.footer-col--apps{grid-column:span 1}
}
@media (max-width:720px){
  .footer-top{grid-template-columns:1fr 1fr;gap:28px}
  .footer-brand,.footer-col--apps{grid-column:span 2}
}

/* ============== UTILS ============== */
/* .no-scroll is defined above in the header/drawer section */

/* ===== dark theme contrast overrides ===== */
[data-theme="dark"] .hero-title q{ color:rgba(255,255,255,.85) }
[data-theme="dark"] .hero-cta{ color:var(--white); border-color:rgba(255,255,255,.4) }
[data-theme="dark"] .hero-calendar{ color:var(--panel-text) }
[data-theme="dark"] .hero-calendar-title,
[data-theme="dark"] .match-comp .badge,
[data-theme="dark"] .match-row-name,
[data-theme="dark"] .match-row-score{ color:var(--white) }
[data-theme="dark"] .drawer-item-trigger{ color:var(--white) }
[data-theme="dark"] .drawer-sub a{ color:rgba(255,255,255,.8) }
[data-theme="dark"] .drawer-head{ border-color:var(--line) }
[data-theme="dark"] .cookie-banner p{ color:rgba(255,255,255,.78) }
/* Secondary dark text — eyebrows, status badges, hero-eyebrow */
[data-theme="dark"] .hero-eyebrow .cat{ color:rgba(255,255,255,.72) }
[data-theme="dark"] .hero-eyebrow .div{ background:rgba(255,255,255,.22) }
[data-theme="dark"] .match-comp .status{ color:var(--muted) }
[data-theme="dark"] .cal-btn{ background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.14); color:var(--white) }
[data-theme="dark"] .cal-btn:hover{ background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.28) }
[data-theme="dark"] .carousel-wrap::before{ background:linear-gradient(90deg, rgba(27,27,27,.9), transparent) }
[data-theme="dark"] .carousel-wrap::after{ background:linear-gradient(270deg, rgba(27,27,27,.9), transparent) }
[data-theme="dark"] .drawer-close{ color:var(--white) }
/* red accent text/links would touch near-black panels in dark — use gold (BRAND.md: no red on black; navy is too dark to read on near-black) */
[data-theme="dark"] .drawer-item-trigger:hover{ background:var(--bg-2); color:var(--gold) }
[data-theme="dark"] .drawer-sub a:hover{ background:var(--bg-2); color:var(--gold) }
[data-theme="dark"] .cookie-banner a{ color:var(--gold) }
/* Social strip in dark: white band separates near-black sections from deep-red footer (BRAND.md: black/red never touch) */
[data-theme="dark"] .social-strip{ background:var(--white); color:var(--ink) }
/* Icons dark on the now-white strip (remove white override; base .social-strip a{color:var(--ink)} applies) */
[data-theme="dark"] .social-strip a{ color:var(--ink) }

/* ===== BRAND.md: red must not touch near-black without white between (dark theme) =====
   Estrutura (anéis/hairlines/sombras) agora vive nas regras BASE — aqui só sobra COR. */
[data-theme="dark"] .match{ background:#232323 }

/* ===== dark theme: suppress light-backdrop artifacts + fallback text ===== */
/* default inherited text color flips to white on dark surfaces */
[data-theme="dark"] body{ color:var(--white) }
/* hero photo overlay: the light gold/white editorial fade would smear on the black hero — replace with a dark scrim that also keeps the hero-card text legible */
[data-theme="dark"] .hero-grad{ background:linear-gradient(180deg, rgba(0,0,0,.40) 0%, rgba(0,0,0,0) 38%, rgba(0,0,0,0) 66%, rgba(0,0,0,.90) 100%) }
/* calendar: recolor the blur transition to dark */
[data-theme="dark"] .hero-calendar::before{ background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.70) 100%) }
/* drawer outline button + calendar "ver todos" hover were near-black text on a dark panel */
[data-theme="dark"] .drawer-foot a.outline{ color:var(--white) }
[data-theme="dark"] .hero-calendar-title a:hover{ color:var(--white) }

/* ===== dark theme: lang dropdown ===== */
[data-theme="dark"] .lang-menu button:hover{ color:var(--gold) }
[data-theme="dark"] .lang-menu button[aria-current="true"]{ color:var(--gold) }

/* dark-theme drawer controls */
[data-theme="dark"] .drawer-lang-btn{
  background:var(--bg-2);color:var(--white);border-color:var(--line);
}
[data-theme="dark"] .drawer-lang-btn:hover{background:rgba(255,255,255,.1)}

/* ===== theme toggle ===== */
.theme-toggle{
  display:inline-flex;align-items:center;justify-content:center;
  width:34px;height:34px;border-radius:50%;
  color:inherit;
  transition:background .2s,color .2s,transform .2s;
}
.theme-toggle:hover{background:rgba(127,127,127,.16)}
.theme-toggle:active{transform:scale(.94)}

/* ===== MOBILE POLISH — Task D (≤768px / ≤540px) ===== */
/* Applies to both light and dark themes; dark overrides above take precedence where needed */

@media (max-width:768px){

  /* ---- Hero ---- */
  .hero-stage{min-height:420px}
  .hero-card{
    left:16px;right:16px;bottom:24px;
    max-width:100%;
  }
  .hero-title{
    font-size:clamp(28px,8.5vw,44px);
    margin-bottom:14px;
  }
  .hero-title .ht-l2{
    /* On very small screens the offset looks broken — reduce it */
    padding-left:1.2em;
  }
  .hero-eyebrow{margin-bottom:12px}
  .hero-tag{margin-bottom:12px}
  .hero-cta{font-size:13px;letter-spacing:.14em}

  /* ---- Calendar ---- */
  .hero-calendar{padding:12px 0 20px}
  .hero-calendar-head{padding-left:16px;padding-right:16px}
  .hero-calendar-title{font-size:20px;gap:10px}
  .carousel-wrap{padding-left:16px}
  .carousel{gap:8px;padding:4px 4px 10px}
  /* Cards slightly narrower on mobile for better thumb-reach */
  .match{flex:0 0 240px;width:240px}

  /* ---- Banner strip ---- */
  .banner-strip{padding:16px 0 32px}
  .banner-grid{gap:12px}
  .banner-card{aspect-ratio:16/9}
  .banner-card .body{padding:20px 22px;gap:6px}
  .banner-card .eyebrow{font-size:9px;letter-spacing:.18em}
  .banner-card h3{font-size:clamp(16px,4.5vw,22px)}
  .banner-card .cta{font-size:10px;margin-top:6px}

  /* ---- Institutional grid ---- */
  .inst-section{padding:40px 0 52px}
  .inst-grid{
    grid-template-columns:1fr 1fr;
    grid-template-rows:auto;
    min-height:auto;
    gap:10px;
  }
  .inst-card.span-rows{grid-row:auto;grid-column:1/-1}
  .inst-card{aspect-ratio:4/3}
  .inst-card .body{padding:16px 16px}
  .inst-card h3{font-size:16px}
  .inst-card.span-rows h3{font-size:20px}

  /* ---- Sponsors ---- */
  .sponsors-section{padding:44px 0 44px}
  .sponsors-master{gap:36px;margin-bottom:36px}
  .sponsors-master .item img{height:44px}
  .sponsors-grid{gap:28px 32px}
  .sponsors-grid .item img{height:26px}

  /* ---- Social strip ---- */
  .social-strip{padding:24px 0 28px}
  .social-strip .row{gap:20px}
  .social-strip a{width:34px;height:34px}
  .social-strip svg{width:16px;height:16px}

  /* ---- Footer ---- */
  /* club name: short form on mobile */
  .match .club-full{display:none}
  .match .club-short{display:inline}

  /* footer-top: brand full-width, 3 link cols SIDE BY SIDE, apps full-width bottom */
  .site-footer{padding:56px 0 20px}
  .footer-top{
    grid-template-columns:repeat(3,1fr);
    gap:28px 14px;
    padding-bottom:36px;
  }
  /* brand block: full-width at top */
  .footer-brand{grid-column:1 / -1}
  /* link columns: columns 1 & 2 naturally (3rd wraps to next row at col 1) */
  /* apps block: full-width at bottom */
  .footer-col--apps{grid-column:1 / -1}
  .footer-brand img{height:52px;margin-bottom:14px}
  .footer-brand p{font-size:13px;max-width:100%;line-height:1.55}
  .footer-col h5{font-size:11px;margin-bottom:12px;letter-spacing:.14em}
  .footer-col ul{gap:9px}
  .footer-col a{font-size:13px}
  /* apps column: blurb + buttons side-by-side (fits at 768px) */
  .footer-apps-blurb{font-size:13px;margin-bottom:14px;max-width:100%;line-height:1.5}
  .footer-col--apps .footer-apps{flex-direction:row;gap:10px;flex-wrap:wrap}
  .footer-app{padding:9px 16px;gap:10px;flex:1 1 auto;min-width:140px}
  .footer-app strong{font-size:12px}

  /* ---- Chant area ---- */
  .footer-chant{padding:40px 0 36px}
  /* chant-meta: horizontal strip of 3 heritage stats (Desde 1914 | Tri Super ★ | Fita Azul 1979) */
  .chant-meta{
    position:static;
    display:flex;flex-direction:row;
    align-items:flex-start;
    justify-content:flex-start;
    gap:0;
    text-align:left;
    margin-bottom:28px;
    border-top:1px solid rgba(255,255,255,.18);
    padding-top:20px;
  }
  .chant-stat{
    flex:1;
    padding:0 12px;
    border-left:1px solid rgba(255,255,255,.18);
  }
  .chant-stat:first-child{padding-left:0;border-left:none}
  .chant-stat small{font-size:9px;letter-spacing:.28em}
  .chant-stat strong{font-size:13px;margin-top:5px}
  /* tri stars: left-aligned on mobile */
  .chant-stat--tri .stars{justify-content:flex-start}
  /* chant headline: scale to fit 390px viewport — impactful but no overflow */
  .chant{font-size:clamp(28px,8.5vw,56px);letter-spacing:-.038em}
  .chant .line-2{margin-left:10%}

  /* ---- Global overflow guard ---- */
  /* Prevent any element from causing horizontal scroll */
  body{overflow-x:hidden}
  .hero,.news-section,.banner-strip,.inst-section,.sponsors-section,.social-strip,.site-footer{
    max-width:100vw;overflow-x:hidden;
  }
}

@media (max-width:540px){

  /* ---- Institutional ---- */
  .inst-grid{grid-template-columns:1fr}
  .inst-card.span-rows{grid-column:auto}
  .inst-card{aspect-ratio:3/2}

  /* ---- Footer: 3 link columns side-by-side (compact, uses full width) ---- */
  .site-footer{padding:48px 0 18px}
  .footer-top{grid-template-columns:repeat(3,1fr);gap:24px 12px;padding-bottom:28px}
  .footer-brand{grid-column:1 / -1}
  .footer-col--apps{grid-column:1 / -1}
  .footer-brand img{height:50px;margin-bottom:12px}
  .footer-col h5{font-size:10px;margin-bottom:10px;letter-spacing:.1em}
  .footer-col ul{gap:8px}
  .footer-col a{font-size:12px;line-height:1.3}
  /* apps: stack the two store buttons vertically, full width */
  .footer-col--apps .footer-apps{flex-direction:column;gap:10px}
  .footer-app{flex:none;width:100%;max-width:100%;padding:10px 16px}

  /* ---- chant-meta: 3 stats in a row, tight on narrow ---- */
  .chant-meta{
    gap:0;
    margin-bottom:24px;
    padding-top:18px;
  }
  .chant-stat{padding:0 10px}
  .chant-stat small{font-size:8.5px;letter-spacing:.22em}
  .chant-stat strong{font-size:12px;margin-top:4px}
  .chant-stat--tri strong{font-size:10px}
  .chant-stat--tri .stars{font-size:12px;gap:2px}

  /* ---- Chant headline: fits ~390px without overflowing ---- */
  /* At 390px: clamp(26px, 9.5vw, 40px) → ~37px; "É tradição," ≈ 12 chars × 0.62 × 37 ≈ 275px — fits in 342px inner */
  /* line-2 "não é moda." + 6% offset: ~260px + 21px = 281px — fits */
  .chant{font-size:clamp(26px,9.5vw,40px);letter-spacing:-.032em}
  .chant .line-2{margin-left:6%}

  /* ---- Hero on very narrow ---- */
  .hero-card{bottom:16px}
  .hero-title{font-size:clamp(24px,8vw,36px)}
  .hero-title .ht-l2{padding-left:.8em}

  /* ---- Calendar card smallest ---- */
  .match{flex:0 0 270px;width:270px}

  /* ---- Banner: single column (already covered by 768 rule, reinforce) ---- */
  .banner-card .body{padding:16px 18px}
  .banner-card h3{font-size:clamp(14px,4vw,20px)}

  /* ---- Sponsors compact ---- */
  .sponsors-master{gap:24px}
  .sponsors-master .item img{height:36px}
  .sponsors-grid{gap:20px 24px}
  .sponsors-grid .item img{height:22px}
}

/* ===== login / entrar ===== */

/* Page wrapper: full-height centered, brand backdrop */
.login-page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:32px 16px;
  /* Light: very subtle warm-neutral — not the site's red page-bg, keeps the card focal */
  background:#F4F4F4;
  position:relative;
}
[data-theme="dark"] .login-page{
  background:#0A0A0A;
}

/* Decorative accent: a thin red bar at very top of viewport */
.login-accent-strip{
  position:fixed;
  top:0;left:0;right:0;
  height:3px;
  background:var(--red);
  z-index:1;
}

/* Card */
.login-card{
  background:var(--panel);
  color:var(--panel-text);
  border:1px solid var(--line);
  border-radius:12px;
  padding:40px 40px 36px;
  width:100%;
  max-width:420px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:0;
  /* Sombra idêntica nos dois temas (intensidade do dark é a referência) */
  box-shadow:0 4px 40px -8px rgba(0,0,0,.7), 0 1px 4px rgba(0,0,0,.4);
  /* Red top accent border — signature brand touch, white card never touches red directly:
     the card bg (white/dark panel) naturally acts as separator */
  border-top:3px solid var(--red);
  position:relative;
  z-index:2;
}
[data-theme="dark"] .login-card{
  /* BRAND.md: no escuro o acento de topo vira dourado (vermelho não toca o near-black) */
  border-top-color:var(--gold);
}

/* Escudo — BRAND.md §3: ≥50px, no effects (no shadow/blur/gradient) */
.login-crest-wrap{
  margin-bottom:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  /* Protective margin = X/4 on all sides where X = 72px → 18px */
  padding:4px;
}
.login-crest{
  width:72px;
  height:72px;
  object-fit:contain;
  display:block;
  /* Explicitly: no filter, no box-shadow, no transform */
}

/* Heading group */
.login-hgroup{
  text-align:center;
  margin-bottom:28px;
}
.login-title{
  font-size:22px;
  font-weight:800;
  letter-spacing:-.02em;
  color:var(--panel-text);
  margin-bottom:4px;
  line-height:1.1;
}
.login-subtitle{
  font-size:13px;
  font-weight:400;
  color:var(--muted);
  letter-spacing:.01em;
}

/* Form root */
.login-form-root{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:0;
}

/* Google button — neutral outline (NOT red), readable in both themes */
.login-google-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:11px 16px;
  border-radius:8px;
  border:1.5px solid var(--line);
  background:var(--panel);
  color:var(--panel-text);
  font-family:inherit;
  font-size:14px;
  font-weight:600;
  letter-spacing:.01em;
  cursor:pointer;
  transition:background .18s ease, border-color .18s ease;
  margin-bottom:20px;
}
.login-google-btn:hover{
  background:var(--bg-2);
  border-color:var(--muted);
}
[data-theme="dark"] .login-google-btn:hover{
  background:#1E1E1E;
}
.login-google-icon{
  flex-shrink:0;
}

/* Divider */
.login-divider{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:20px;
}
.login-divider-line{
  flex:1;
  height:1px;
  background:var(--line);
}
.login-divider-text{
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:var(--muted);
  white-space:nowrap;
}

/* Fields form */
.login-fields-form{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:16px;
  margin-bottom:0;
}

/* Field group */
.login-field{
  display:flex;
  flex-direction:column;
  gap:5px;
}
.login-label{
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.1em;
  color:var(--panel-text);
  opacity:.75;
}
.login-input{
  font-family:inherit;
  font-size:15px;
  font-weight:400;
  color:var(--panel-text);
  background:var(--bg-3);
  border:1.5px solid var(--line);
  border-radius:7px;
  padding:10px 13px;
  width:100%;
  transition:border-color .18s ease, box-shadow .18s ease;
  outline:none;
}
[data-theme="dark"] .login-input{
  background:#1A1A1A;
}
.login-input:focus{
  border-color:var(--red);
  box-shadow:0 0 0 3px rgba(221,0,0,.12);
}
.login-input--error{
  border-color:var(--red);
}
.login-input--error:focus{
  box-shadow:0 0 0 3px rgba(221,0,0,.16);
}

/* Field error text — red text on panel bg is legible (BRAND.md: red on white/dark panel as text is OK) */
.login-field-error{
  font-size:12px;
  font-weight:600;
  color:var(--red);
  letter-spacing:.01em;
}

/* Submit button — RED with white ring (BRAND.md: btn-pill pattern) */
.login-submit-btn{
  margin-top:8px;
  width:100%;
  padding:12px 16px;
  border-radius:8px;
  font-family:inherit;
  font-size:14px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.1em;
  background:var(--red);
  color:var(--white);
  /* White ring separates red from any surrounding element — BRAND.md rule */
  box-shadow:0 0 0 1.5px var(--white);
  border:none;
  cursor:pointer;
  transition:background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.login-submit-btn:hover{
  background:#B80000;
  transform:translateY(-1px);
  box-shadow:0 0 0 1.5px var(--white), 0 6px 20px -6px rgba(221,0,0,.55);
}
.login-submit-btn:active{
  transform:translateY(0);
}
/* keyboard focus indicators (a11y) — visible in both themes */
.login-google-btn:focus-visible,
.login-submit-btn:focus-visible{
  outline:2px solid var(--red);
  outline-offset:3px;
}

/* Stub "soon" notice */
.login-soon-notice{
  margin-top:16px;
  padding:12px 14px;
  border-radius:7px;
  border:1.5px solid var(--gold);
  background:rgba(201,184,150,.10);
  color:var(--panel-text);
  font-size:13px;
  font-weight:600;
  text-align:center;
  letter-spacing:.01em;
}
[data-theme="dark"] .login-soon-notice{
  background:rgba(201,184,150,.08);
}

/* Back to site link */
.login-back-link{
  display:inline-block;
  margin-top:24px;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.1em;
  color:var(--muted);
  text-decoration:none;
  transition:color .18s ease;
}
.login-back-link:hover{
  color:var(--panel-text);
}

/* Responsive: mobile — card nearly full-width with comfortable padding */
@media (max-width:480px){
  .login-card{
    padding:32px 24px 28px;
    border-radius:10px;
    /* Extend card to almost full width on small screens */
    max-width:100%;
  }
  .login-title{font-size:20px}
}

/* ===== admin ===== */

/* ── Admin surface tokens ──────────────────────────────────────────
   Sidebar is always darker than content to create depth.
   Light: sidebar = near-black (#111) so escudo pill reads cleanly.
   Dark:  sidebar = near-black (#0A0A0A) matching the page bg.
   Content uses --page-bg / --panel tokens.
   BRAND.md: --red never directly adjacent to #111 without white.
   The active nav uses a white 2px sliver + 3px red left border.
──────────────────────────────────────────────────────────────────── */
:root {
  --admin-sidebar-bg: #111111;
  --admin-sidebar-text: rgba(255,255,255,.82);
  --admin-sidebar-muted: rgba(255,255,255,.44);
  --admin-sidebar-line: rgba(255,255,255,.10);
  --admin-sidebar-hover-bg: rgba(255,255,255,.06);
  --admin-sidebar-active-bg: rgba(255,255,255,.10);
  --admin-topbar-bg: var(--panel);
  --admin-topbar-border: var(--line);
  --admin-content-bg: var(--bg-3);
  --admin-sidebar-width: 240px;
  --admin-topbar-height: 60px;
}
[data-theme="dark"] {
  --admin-sidebar-bg: #0A0A0A;
  --admin-sidebar-text: rgba(255,255,255,.80);
  --admin-sidebar-muted: rgba(255,255,255,.38);
  --admin-sidebar-line: rgba(255,255,255,.08);
  --admin-sidebar-hover-bg: rgba(255,255,255,.05);
  --admin-sidebar-active-bg: rgba(255,255,255,.08);
  --admin-topbar-bg: #141414;
  --admin-topbar-border: rgba(255,255,255,.10);
  --admin-content-bg: #0E0E0E;
}

/* ── Shell layout ────────────────────────────────────────────────── */
.admin-shell {
  display: grid;
  grid-template-columns: var(--admin-sidebar-width) 1fr;
  grid-template-rows: 1fr;
  min-height: 100vh;
  background: var(--admin-content-bg);
  font-family: var(--font-inter), 'Inter', system-ui, sans-serif;
  position: relative;
}

/* ── Sidebar ─────────────────────────────────────────────────────── */
.admin-sidebar {
  grid-column: 1;
  grid-row: 1;
  background: var(--admin-sidebar-bg);
  color: var(--admin-sidebar-text);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  /* Scrollbar invisible but functional */
  scrollbar-width: none;
  z-index: 50;
}
.admin-sidebar::-webkit-scrollbar { display: none }

/* ── Brand row ───────────────────────────────────────────────────── */
.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 18px;
  border-bottom: 1px solid var(--admin-sidebar-line);
  flex-shrink: 0;
}

/* White pill: ensures escudo (colorful version) never sits on dark sidebar directly.
   BRAND.md §3: logo may appear on white or red — we use white.
   Protective padding = X/4 = 50/4 ≈ 12px → 8px padding (inside the pill) is enough. */
.admin-brand-crest {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: #FFFFFF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  /* No shadow/glow — BRAND.md §3: escudo no effects */
}
.admin-brand-crest img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  /* NO filter, NO shadow, NO transform */
}

.admin-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.admin-brand-club {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #FFFFFF;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-brand-section {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--admin-sidebar-muted);
  line-height: 1;
}

/* ── Nav ─────────────────────────────────────────────────────────── */
.admin-nav {
  flex: 1;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--admin-sidebar-text);
  text-decoration: none;
  border-radius: 0;
  transition: background .15s ease, color .15s ease;
  position: relative;
  /* Left accent: 2px white separator gap + 3px red bar */
  border-left: 5px solid transparent;
}
.admin-nav-link:hover {
  background: var(--admin-sidebar-hover-bg);
  color: #FFFFFF;
}
/* Active state: red left accent with white sliver (BRAND.md: red never touches dark bg) */
.admin-nav-link.active {
  background: var(--admin-sidebar-active-bg);
  color: #FFFFFF;
  font-weight: 700;
  /* The 5px left border = 2px white + 3px red, encoded as a gradient on the border */
  border-left-color: transparent;
  /* Use box-shadow inset trick: white 2px + red 3px stacked left */
  box-shadow:
    inset 3px 0 0 0 var(--red),
    inset 5px 0 0 0 #FFFFFF;
}
.admin-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: .7;
  transition: opacity .15s;
}
.admin-nav-link:hover .admin-nav-icon,
.admin-nav-link.active .admin-nav-icon {
  opacity: 1;
}
.admin-nav-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Sidebar footer ──────────────────────────────────────────────── */
.admin-sidebar-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--admin-sidebar-line);
  flex-shrink: 0;
}
.admin-sidebar-ver {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--admin-sidebar-muted);
}

/* ── Main column ─────────────────────────────────────────────────── */
.admin-main {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--admin-content-bg);
}

/* ── Topbar ──────────────────────────────────────────────────────── */
.admin-topbar {
  height: var(--admin-topbar-height);
  background: var(--admin-topbar-bg);
  border-bottom: 1px solid var(--admin-topbar-border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 40;
  flex-shrink: 0;
}
.admin-topbar-spacer { flex: 1 }
.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Hamburger — hidden desktop, visible mobile */
.admin-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background .15s;
  flex-shrink: 0;
}
.admin-hamburger:hover { background: var(--bg-2) }
.admin-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 1px;
  transition: transform .2s, opacity .2s;
}
[data-theme="dark"] .admin-hamburger span { background: #FFFFFF }

/* ── User info ───────────────────────────────────────────────────── */
.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red);
  color: #FFFFFF;
  /* White ring: BRAND.md — red element on panel/dark surface needs white separation */
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3px var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: 0;
}
.admin-user-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.admin-user-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
[data-theme="dark"] .admin-user-name { color: #FFFFFF }
.admin-user-email {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.2;
}

/* ── Logout button ───────────────────────────────────────────────── */
.admin-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.admin-logout-btn:hover {
  background: var(--bg-2);
  border-color: var(--muted);
}
.admin-logout-btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
[data-theme="dark"] .admin-logout-btn {
  color: rgba(255,255,255,.82);
  border-color: rgba(255,255,255,.14);
}
[data-theme="dark"] .admin-logout-btn:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.28);
}

/* ── Content area ────────────────────────────────────────────────── */
.admin-content {
  flex: 1;
  padding: 32px 32px 48px;
  background: var(--admin-content-bg);
  color: var(--ink);
}
[data-theme="dark"] .admin-content { color: #FFFFFF }

/* ── Page layout helpers ─────────────────────────────────────────── */
.admin-page {
  max-width: 1400px;
}
.admin-page-head {
  margin-bottom: 32px;
}
.admin-page-title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 900;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 6px;
}
[data-theme="dark"] .admin-page-title { color: #FFFFFF }
.admin-page-sub {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
  max-width: 60ch;
}

/* ──────────────────────────────────────────────────────────────────
   REUSABLE ADMIN UI PRIMITIVES — used by AR2 (dashboard + editor)
   and AR3 (news admin). Keep these canonical; do NOT redefine in
   page-specific CSS. Primitives documented below:

   .admin-btn                — base button reset + shared geometry
   .admin-btn--primary       — red fill, white ring (BRAND.md rule)
   .admin-btn--ghost         — transparent, bordered
   .admin-btn--sm            — compact size variant
   .admin-badge              — status/info pill
   .admin-badge--stat        — neutral stat pill
   .admin-badge--soon        — gold "em breve" pill
   .admin-badge--published   — solid ink/white published pill
   .admin-badge--draft       — muted draft pill
   .admin-card               — surface card with red top accent
   .admin-card--active       — interactive (link) card
   .admin-card--muted        — non-interactive / coming-soon card
   .admin-card-footer        — row at bottom of card for actions/badges
   .admin-field              — field wrapper (label + input)
   .admin-label              — field label
   .admin-label-hint         — muted inline hint next to label
   .admin-input              — text input
   .admin-topbar-title       — topbar breadcrumb + separator
──────────────────────────────────────────────────────────────────── */

/* ── Buttons ─────────────────────────────────────────────────────── */
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-family: var(--font-inter), 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .10em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease, color .15s ease;
}
.admin-btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
/* Primary: red fill + white ring (BRAND.md: red element on any surface needs white separation) */
.admin-btn--primary {
  background: var(--red);
  color: #FFFFFF;
  box-shadow: 0 0 0 1.5px #FFFFFF;
}
.admin-btn--primary:hover:not(:disabled) {
  background: #B80000;
  box-shadow: 0 0 0 1.5px #FFFFFF, 0 4px 16px -4px rgba(221,0,0,.55);
  transform: translateY(-1px);
}
.admin-btn--primary:active:not(:disabled) { transform: translateY(0) }
.admin-btn--primary:disabled {
  opacity: .55;
  cursor: not-allowed;
}
/* Ghost: transparent, bordered */
.admin-btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: none;
}
.admin-btn--ghost:hover:not(:disabled) {
  background: var(--bg-2);
  border-color: var(--muted);
}
[data-theme="dark"] .admin-btn--ghost {
  color: rgba(255,255,255,.82);
  border-color: rgba(255,255,255,.14);
}
[data-theme="dark"] .admin-btn--ghost:hover:not(:disabled) {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.28);
}
/* Small size variant */
.admin-btn--sm {
  padding: 7px 14px;
  font-size: 11px;
}

/* ── Badges ──────────────────────────────────────────────────────── */
.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  border-radius: 3px;
  border: 1px solid transparent;
  line-height: 1.4;
  white-space: nowrap;
}
/* Neutral stat — shows counts */
.admin-badge--stat {
  background: var(--bg-2);
  color: var(--muted);
  border-color: var(--line);
}
[data-theme="dark"] .admin-badge--stat {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.5);
  border-color: rgba(255,255,255,.10);
}
/* Gold "em breve" */
.admin-badge--soon {
  background: rgba(201,184,150,.18);
  color: #8C7A52;
  border-color: rgba(201,184,150,.45);
}
[data-theme="dark"] .admin-badge--soon {
  background: rgba(201,184,150,.12);
  color: var(--gold);
  border-color: rgba(201,184,150,.25);
}
/* Published — green */
/* Published — solid on-brand badge (BRAND.md palette: ink/white only, no off-palette green) */
.admin-badge--published {
  background: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
}
[data-theme="dark"] .admin-badge--published {
  /* invert on dark panels so the badge stands out */
  background: #FFFFFF;
  color: var(--ink);
  border-color: #FFFFFF;
}
/* Draft — muted */
.admin-badge--draft {
  background: var(--bg-2);
  color: var(--muted);
  border-color: var(--line);
}
[data-theme="dark"] .admin-badge--draft {
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.38);
  border-color: rgba(255,255,255,.08);
}
/* Archived — neutral gray, visually distinct from draft (slightly darker border, italic-like tone) */
.admin-badge--archived {
  background: rgba(110,110,110,.10);
  color: #5A5A5A;
  border-color: rgba(110,110,110,.28);
}
[data-theme="dark"] .admin-badge--archived {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.45);
  border-color: rgba(255,255,255,.16);
}

/* ── Module cards grid ───────────────────────────────────────────── */
.admin-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* Base card surface */
.admin-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  /* Red top accent — panel bg separates it from any dark surface (BRAND.md) */
  border-top: 3px solid var(--red);
  color: var(--ink);
  text-decoration: none;
}
[data-theme="dark"] .admin-card {
  background: #1A1A1A;
  border-color: rgba(255,255,255,.10);
  color: #FFFFFF;
}

/* Interactive link card */
.admin-card--active {
  transition: border-color .18s, box-shadow .18s, transform .18s;
  cursor: pointer;
}
.admin-card--active:hover {
  border-color: var(--muted);
  box-shadow: 0 6px 24px -8px rgba(0,0,0,.6);
  transform: translateY(-2px);
}
[data-theme="dark"] .admin-card--active:hover {
  border-color: rgba(255,255,255,.22);
}

/* Non-interactive / coming-soon card */
.admin-card--muted {
  opacity: .72;
  cursor: default;
}

.admin-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
}
[data-theme="dark"] .admin-card-icon {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
}

.admin-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-card-title {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.1;
}
.admin-card-desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
}

/* Card footer: row for badges/actions at card bottom */
.admin-card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ── Field primitives ─────────────────────────────────────────────
   Used in content-editor AND news form (AR3). */
.admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  line-height: 1;
}
.admin-label-hint {
  font-size: 10px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  opacity: .7;
}
.admin-input {
  font-family: var(--font-inter), 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg-3);
  border: 1.5px solid var(--line);
  border-radius: 4px;
  padding: 9px 12px;
  width: 100%;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
[data-theme="dark"] .admin-input {
  background: #1E1E1E;
  color: #FFFFFF;
  border-color: rgba(255,255,255,.14);
}
.admin-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(221,0,0,.18);
}
.admin-input::placeholder { color: var(--muted); opacity: .6 }
/* Textarea variant */
textarea.admin-input {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

/* ── Topbar breadcrumb title ─────────────────────────────────────── */
.admin-topbar-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-topbar-separator {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  opacity: .5;
  user-select: none;
}
.admin-topbar-title-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink);
}
[data-theme="dark"] .admin-topbar-title-text { color: rgba(255,255,255,.82) }

/* ── Placeholder pages ───────────────────────────────────────────── */
.admin-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 64px 24px;
  text-align: center;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  max-width: 540px;
}
[data-theme="dark"] .admin-placeholder {
  background: #1A1A1A;
  border-color: rgba(255,255,255,.08);
}
.admin-placeholder-icon {
  opacity: .35;
}
.admin-placeholder p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 40ch;
}

/* ── Mobile: sidebar collapses to drawer via checkbox toggle ─────── */
/* Hidden checkbox powers the togglable sidebar with CSS only */
.admin-sidebar-toggle-input {
  position: fixed;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* Overlay (mobile only) */
.admin-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 49;
  cursor: pointer;
}

@media (max-width: 768px) {
  /* Shell: single column, sidebar hidden off-screen */
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--admin-sidebar-width);
    max-width: 85vw;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    height: 100dvh;
  }
  /* Show sidebar when checkbox is checked (checkbox is the shell's first child → ~ reaches the sidebar) */
  .admin-sidebar-toggle-input:checked ~ .admin-sidebar {
    transform: translateX(0);
  }
  /* Overlay shown when open */
  .admin-sidebar-overlay {
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
  }
  .admin-sidebar-toggle-input:checked ~ .admin-sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }
  /* Main takes full width */
  .admin-main {
    grid-column: 1;
    width: 100%;
  }
  /* Show hamburger */
  .admin-hamburger {
    display: flex;
  }
  /* Topbar padding tighter on mobile */
  .admin-topbar {
    padding: 0 16px;
  }
  /* Content padding mobile */
  .admin-content {
    padding: 24px 16px 40px;
  }
  /* Hide user info details, keep just avatar */
  .admin-user-info {
    display: none;
  }
  /* Topbar right: tighter gap */
  .admin-topbar-right {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  /* Cards: single column */
  .admin-cards-grid {
    grid-template-columns: 1fr;
  }
  .admin-page-title {
    font-size: 20px;
  }
  /* Logout: icon only on very small screens */
  .admin-logout-btn span {
    display: none;
  }
  .admin-logout-btn {
    padding: 7px 10px;
  }
}

/* ===== admin content editor ===== */

/* ── Outer wrapper ────────────────────────────────────────────────── */
.content-editor {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 80px; /* room for the sticky save bar */
  max-width: 760px;
}

/* ── Controls bar: language toggle + section tabs ─────────────────── */
.ce-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
[data-theme="dark"] .ce-controls {
  border-bottom-color: rgba(255,255,255,.10);
}

/* Language toggle: PT | EN pill buttons */
.ce-lang-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  flex-shrink: 0;
}
[data-theme="dark"] .ce-lang-toggle {
  border-color: rgba(255,255,255,.14);
}

.ce-lang-btn {
  padding: 6px 14px;
  font-family: var(--font-inter), 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background .13s, color .13s;
  line-height: 1;
}
.ce-lang-btn:hover { background: var(--bg-2); color: var(--ink) }
[data-theme="dark"] .ce-lang-btn:hover { background: rgba(255,255,255,.06); color: #FFFFFF }
/* Active lang: red pill with a full white ring so red never touches the dark track/sibling (BRAND.md) */
.ce-lang-btn.active {
  background: var(--red);
  color: #FFFFFF;
  box-shadow: 0 0 0 1.5px #FFFFFF;
}
.ce-lang-btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* Section tab switcher */
.ce-section-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  flex-wrap: wrap;
}

.ce-section-tab {
  padding: 8px 16px;
  font-family: var(--font-inter), 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
  margin-bottom: -1px; /* align with .ce-controls border-bottom */
}
.ce-section-tab:hover { color: var(--ink) }
[data-theme="dark"] .ce-section-tab:hover { color: #FFFFFF }
.ce-section-tab.active {
  color: var(--ink);
  font-weight: 700;
  /* Red underline tab indicator (sits on the panel bg, not on dark) */
  border-bottom-color: var(--red);
}
[data-theme="dark"] .ce-section-tab.active { color: #FFFFFF }
.ce-section-tab:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Section fields panel ─────────────────────────────────────────── */
.ce-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 24px;
}
[data-theme="dark"] .ce-panel {
  background: #1A1A1A;
  border-color: rgba(255,255,255,.10);
}

.ce-section-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Card group (banner / institutional items) ────────────────────── */
.ce-card-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
}
[data-theme="dark"] .ce-card-group {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.08);
}

.ce-card-index {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
  line-height: 1;
}

/* ── Status messages ──────────────────────────────────────────────── */
.ce-status {
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.ce-status--success {
  background: rgba(0,128,64,.08);
  border: 1px solid rgba(0,128,64,.25);
  color: #006030;
}
[data-theme="dark"] .ce-status--success {
  background: rgba(0,200,80,.07);
  border-color: rgba(0,200,80,.2);
  color: #3DD880;
}
.ce-status--error {
  background: rgba(221,0,0,.06);
  border: 1px solid rgba(221,0,0,.22);
  color: var(--red);
}
[data-theme="dark"] .ce-status--error {
  background: rgba(221,0,0,.10);
  border-color: rgba(221,0,0,.30);
}

/* ── Save bar ─────────────────────────────────────────────────────── */
/* Sticks to the bottom of .admin-content */
.ce-save-bar {
  position: sticky;
  bottom: 0;
  padding: 14px 0 4px;
  background: var(--admin-content-bg);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 8px;
}
[data-theme="dark"] .ce-save-bar {
  border-top-color: rgba(255,255,255,.10);
}

/* Save btn: reuses .admin-btn--primary — override size only */
.ce-save-btn {
  padding: 11px 32px;
  font-size: 13px;
  letter-spacing: .12em;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .content-editor {
    gap: 12px;
    padding-bottom: 72px;
  }
  .ce-controls {
    gap: 10px;
  }
  .ce-section-tabs {
    gap: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .ce-section-tabs::-webkit-scrollbar { display: none }
  .ce-section-tab {
    padding: 8px 12px;
    font-size: 11px;
  }
  .ce-panel {
    padding: 16px;
  }
  .ce-card-group {
    padding: 12px;
    gap: 12px;
  }
}

/* ===== content editor previews ===== */
/* Isolated .ce-preview-* namespace — never touches public .hero/.banner-card/.inst-card */

/* ── Layout: two-column (fields | preview) ────────────────────────── */
.content-editor {
  max-width: 1100px; /* widen to accommodate two-column preview layout */
}

/* Hero & Footer sections: two-column side-by-side */
.ce-section-with-preview {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

/* Banner / institutional card groups: fields left, preview right */
.ce-card-group--with-preview {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: start;
}

/* Fields column inside a card-group-with-preview */
.ce-card-group-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Preview column: sticky so it follows the fields on scroll */
.ce-preview-col {
  position: sticky;
  top: 80px; /* clear the sticky topbar */
}

/* ── Preview wrapper ──────────────────────────────────────────────── */
.ce-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-inter), 'Inter', system-ui, sans-serif;
}

/* Small "Preview" eyebrow label above each preview box */
.ce-preview-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
  line-height: 1;
  user-select: none;
}

/* ── Shared placeholder when image is empty / broken ─────────────── */
.ce-preview-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-2);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}
[data-theme="dark"] .ce-preview-img-placeholder {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.35);
}
.ce-preview-img-placeholder svg {
  width: 28px;
  height: 28px;
  opacity: .5;
}

/* Placeholder text when content fields are empty */
.ce-preview-placeholder-text {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  font-style: italic;
}

/* ── Hero preview ─────────────────────────────────────────────────── */
.ce-preview--hero .ce-preview-hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 3px;
}
[data-theme="dark"] .ce-preview--hero .ce-preview-hero-stage {
  border-color: rgba(255,255,255,.10);
}

.ce-preview-hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(.95) saturate(1.05);
}

/* Light-mode gradient: mimics .hero-grad but lighter (preview needs legibility at small size) */
.ce-preview-hero-grad {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.80) 0%,
    rgba(255,255,255,.55) 15%,
    rgba(255,255,255,.20) 35%,
    rgba(255,255,255,.10) 55%,
    rgba(255,255,255,.35) 78%,
    rgba(255,255,255,.80) 100%
  );
}
[data-theme="dark"] .ce-preview-hero-grad {
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.50) 0%,
    rgba(0,0,0,0) 35%,
    rgba(0,0,0,0) 60%,
    rgba(0,0,0,.85) 100%
  );
}

.ce-preview-hero-card {
  position: absolute;
  left: 12%;
  bottom: 14%;
  max-width: 72%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink);
}
[data-theme="dark"] .ce-preview-hero-card {
  color: var(--white);
}

.ce-preview-hero-title {
  font-size: clamp(12px, 3.5vw, 18px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin: 0;
}
.ce-preview-ht-l1,
.ce-preview-ht-l2 {
  display: block;
}
.ce-preview-ht-l2 {
  padding-left: 1.8em;
}
.ce-preview-hero-tagline {
  margin: 6px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  max-width: 90%;
}
[data-theme="dark"] .ce-preview-hero-tagline { color: rgba(255,255,255,.8); }

.ce-preview-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--ink);
  border-bottom: 1px solid rgba(0,0,0,.4);
  padding-bottom: 3px;
}
[data-theme="dark"] .ce-preview-hero-cta {
  color: var(--white);
  border-bottom-color: rgba(255,255,255,.4);
}
.ce-preview-hero-cta svg {
  width: 8px;
  height: 8px;
}

/* ── Banner preview ───────────────────────────────────────────────── */
.ce-preview--banner .ce-preview-banner-card {
  position: relative;
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
  background: var(--ink);
  border-radius: 3px;
}

.ce-preview-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.55);
}

/* Left-to-right dark gradient — mimics .banner-card .grad */
.ce-preview-banner-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.88) 0%,
    rgba(0,0,0,.35) 55%,
    rgba(0,0,0,.08) 100%
  );
}

.ce-preview-banner-body {
  position: relative;
  z-index: 2;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  height: 100%;
  max-width: 65%;
}

.ce-preview-banner-eyebrow {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .20em;
  color: var(--gold);
  line-height: 1;
}

.ce-preview-banner-title {
  font-size: clamp(10px, 2.5vw, 14px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0;
}

.ce-preview-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(255,255,255,.9);
  /* White line beneath CTA: keeps white over the dark gradient — BRAND.md separation not needed here
     because CTA is white-on-dark, no red involved */
  border-bottom: 1px solid rgba(255,255,255,.45);
  padding-bottom: 2px;
  align-self: flex-start;
}
.ce-preview-banner-cta svg {
  width: 7px;
  height: 7px;
}

/* ── Institutional card preview ───────────────────────────────────── */
.ce-preview--inst .ce-preview-inst-card,
.ce-preview--inst-span .ce-preview-inst-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--ink);
  border-radius: 3px;
}

/* Span variant: slightly taller aspect ratio to hint at larger size */
.ce-preview--inst-span .ce-preview-inst-card {
  aspect-ratio: 3/2;
}

.ce-preview-inst-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.70);
}

/* Bottom-to-top dark gradient — mimics .inst-card .grad */
.ce-preview-inst-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 40%,
    rgba(0,0,0,.88) 100%
  );
}

.ce-preview-inst-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ce-preview-inst-eyebrow {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(255,255,255,.7);
  line-height: 1;
}

.ce-preview-inst-title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0;
}

.ce-preview-inst-title--span {
  font-size: 16px;
}

.ce-preview-inst-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.95);
  /* Gold underline on dark bg — no red, no white-separation needed here */
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 2px;
  align-self: flex-start;
}
.ce-preview-inst-cta svg {
  width: 7px;
  height: 7px;
}

/* ── Footer preview ───────────────────────────────────────────────── */
.ce-preview--footer .ce-preview-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
[data-theme="dark"] .ce-preview--footer .ce-preview-footer-inner {
  border-color: rgba(255,255,255,.10);
}

/* Chant: red strip — BRAND.md: white text on red (no black touching red) */
.ce-preview-footer-chant {
  background: var(--red);
  padding: 16px 20px;
  /* White ring buffer: the card border is the panel bg (white/near-white) — so red never touches
     a dark edge directly. The border-radius clip ensures the red strip stays inside the border. */
}
/* match the live dark footer (deep tricolor red) so the preview is accurate in dark mode */
[data-theme="dark"] .ce-preview-footer-chant { background: #5C0000; }

.ce-preview-footer-chant-text {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.3;
  color: #FFFFFF; /* white text on red — BRAND.md compliant */
  margin: 0;
}

/* Chant emphasis: black text with white stroke — same treatment as the live footer.
   BRAND.md: black cannot touch red directly → white stroke acts as the separator. */
.ce-preview-footer-chant-em {
  font-style: normal;
  color: #000000;
  /* 1px white stroke around the black text acts as the mandatory white separation */
  -webkit-text-stroke: 3px #FFFFFF;
  paint-order: stroke fill;
}

/* Brand blurb below the chant strip, on a neutral surface */
.ce-preview-footer-blurb {
  padding: 12px 20px 14px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
  background: var(--panel);
  margin: 0;
}
[data-theme="dark"] .ce-preview-footer-blurb {
  background: #1A1A1A;
  color: rgba(255,255,255,.55);
}

/* ── Responsive: stack previews below fields on narrow screens ────── */
@media (max-width: 960px) {
  .ce-section-with-preview {
    grid-template-columns: 1fr;
  }
  .ce-card-group--with-preview {
    grid-template-columns: 1fr;
  }
  /* On mobile: preview appears above the fields (more prominent) */
  .ce-section-with-preview .ce-preview-col {
    order: -1;
    position: static;
  }
  .ce-card-group--with-preview .ce-preview-col {
    order: -1;
    position: static;
  }
  /* Restore max-width when single column */
  .content-editor {
    max-width: 760px;
  }
}

/* ===== admin news ===== */

/* ── Page-level overrides for wider news pages ─────────────────────────── */
.admin-page--wide {
  max-width: 1400px;
}

/* ── Page header row: title + action ────────────────────────────────────── */
.admin-news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.admin-news-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 56px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  text-align: center;
  color: var(--muted);
}
[data-theme="dark"] .admin-news-empty {
  background: #1A1A1A;
  border-color: rgba(255,255,255,.10);
}
.admin-news-empty-icon {
  opacity: .35;
}
.admin-news-empty p {
  font-size: 14px;
  font-weight: 500;
}

/* ── List wrapper ────────────────────────────────────────────────────────── */
.admin-news-list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
}
[data-theme="dark"] .admin-news-list {
  background: #1A1A1A;
  border-color: rgba(255,255,255,.10);
}

/* Column header row */
.admin-news-list-head {
  display: grid;
  grid-template-columns: 1fr 120px 110px 90px 290px;
  gap: 12px;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
}
[data-theme="dark"] .admin-news-list-head {
  border-bottom-color: rgba(255,255,255,.08);
}

/* Each news row */
.admin-news-row {
  display: grid;
  grid-template-columns: 1fr 120px 110px 90px 290px;
  gap: 12px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  transition: background .13s;
}
.admin-news-row:last-child { border-bottom: none }
.admin-news-row:hover { background: var(--bg-2) }
[data-theme="dark"] .admin-news-row { border-bottom-color: rgba(255,255,255,.06) }
[data-theme="dark"] .admin-news-row:hover { background: rgba(255,255,255,.03) }

/* Article cell: thumb + title/slug */
.admin-news-row-article {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.admin-news-row-thumb {
  flex-shrink: 0;
  width: 52px;
  height: 40px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
[data-theme="dark"] .admin-news-row-thumb {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.08);
}
.admin-news-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.admin-news-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-2);
}
.admin-news-row-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.admin-news-row-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}
[data-theme="dark"] .admin-news-row-title { color: #FFFFFF }
.admin-news-no-title {
  font-style: italic;
  opacity: .5;
}
.admin-news-featured-star {
  color: var(--gold);
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
}
.admin-news-row-slug {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  letter-spacing: 0;
}

/* Tag cell */
.admin-news-row-tag {
  min-width: 0;
}
.admin-news-tag-pill {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .10em;
  background: rgba(201,184,150,.16);
  color: #7A6840;
  border: 1px solid rgba(201,184,150,.40);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}
[data-theme="dark"] .admin-news-tag-pill {
  background: rgba(201,184,150,.10);
  color: var(--gold);
  border-color: rgba(201,184,150,.22);
}

/* Status cell */
.admin-news-row-status { }

/* Date cell */
.admin-news-row-date {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* Actions cell */
.admin-news-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

/* Danger ghost variant (delete) */
.admin-btn--danger {
  color: var(--red);
  border-color: rgba(221,0,0,.22);
}
.admin-btn--danger:hover:not(:disabled) {
  background: rgba(221,0,0,.06);
  border-color: rgba(221,0,0,.45);
  color: var(--red);
}
[data-theme="dark"] .admin-btn--danger {
  color: #FF4444;
  border-color: rgba(255,68,68,.22);
}
[data-theme="dark"] .admin-btn--danger:hover:not(:disabled) {
  background: rgba(255,68,68,.08);
  border-color: rgba(255,68,68,.40);
}

/* ── Admin · Jogos (partidas + clubes) ─────────────────────────────────── */
.admin-jogos-section { margin-top: 36px; }
.admin-jogos-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
[data-theme="dark"] .admin-jogos-head { border-bottom-color: rgba(255,255,255,.10); }
.admin-jogos-h2 {
  font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--ink);
}
[data-theme="dark"] .admin-jogos-h2 { color: #fff; }
.admin-jogos-hint { font-size: 13px; color: var(--muted); padding: 12px 0; }
.admin-jogos-form { gap: 16px; margin-bottom: 16px; }
.admin-jogos-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; align-items: end;
}
.admin-jogos-field--wide { grid-column: span 2; }
.admin-jogos-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.admin-jogos-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
[data-theme="dark"] .admin-jogos-list, [data-theme="dark"] .admin-jogos-list { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.08); }
.admin-jogos-row {
  display: grid; grid-template-columns: 120px 1fr auto auto; gap: 14px; align-items: center;
  padding: 12px 16px; background: var(--panel);
}
[data-theme="dark"] .admin-jogos-row { background: #1A1A1A; }
.admin-jogos-teams { font-size: 14px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 10px; min-width: 0; }
[data-theme="dark"] .admin-jogos-teams { color: #fff; }
.admin-jogos-teams small { color: var(--muted); font-weight: 600; }
.admin-jogos-crest {
  flex: 0 0 auto; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  font-size: 10px; font-weight: 800; color: var(--ink);
}
.admin-jogos-crest img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.admin-jogos-crest--preview { width: 48px; height: 48px; align-self: center; }
.admin-jogos-score { font-size: 14px; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
[data-theme="dark"] .admin-jogos-score { color: #fff; }
.admin-jogos-url { color: var(--muted); }
.admin-jogos-actions { display: flex; gap: 8px; }
.admin-elenco-group { margin-top: 16px; }
.admin-elenco-group-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 14px 0 8px; }

/* ── Admin · Analytics (dashboard) ─────────────────────────────────────── */
.adm-an { margin-bottom: 36px; }
.adm-an-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.adm-an-title { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); }
[data-theme="dark"] .adm-an-title { color: #fff; }
.adm-an-head-meta { display: flex; align-items: center; gap: 10px; }
.adm-an-period { font-size: 12px; font-weight: 700; color: var(--muted); }

.adm-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 14px; }
.adm-kpi { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
[data-theme="dark"] .adm-kpi { background: #1A1A1A; border-color: rgba(255,255,255,.10); }
.adm-kpi-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.adm-kpi-value { font-size: 24px; font-weight: 900; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
[data-theme="dark"] .adm-kpi-value { color: #fff; }
.adm-kpi-delta { font-size: 11px; font-weight: 800; }
.adm-kpi-delta.up { color: #1a8f3c; }
.adm-kpi-delta.down { color: var(--red); }
[data-theme="dark"] .adm-kpi-delta.up { color: #46d36f; }

.adm-an-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.adm-card { background: var(--panel); border: 1px solid var(--line); padding: 18px; }
[data-theme="dark"] .adm-card { background: #1A1A1A; border-color: rgba(255,255,255,.10); }
.adm-an-card-title { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }

.adm-bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; }
.adm-bar { flex: 1; background: linear-gradient(180deg, #ff5a5a, var(--red)); min-height: 4px; border-radius: 3px 3px 0 0; }

.adm-an-sources-row { display: flex; align-items: center; gap: 22px; }
.adm-donut { width: 120px; height: 120px; border-radius: 50%; flex: 0 0 auto; position: relative; box-shadow: 0 0 0 2px rgba(255,255,255,.92); }
.adm-donut span { position: absolute; inset: 26px; background: var(--panel); border-radius: 50%; }
[data-theme="dark"] .adm-donut span { background: #1A1A1A; }
.adm-legend { display: flex; flex-direction: column; gap: 9px; font-size: 13px; color: var(--ink); flex: 1; }
[data-theme="dark"] .adm-legend { color: #fff; }
.adm-legend li { display: flex; align-items: center; gap: 8px; }
.adm-legend i { width: 12px; height: 12px; border-radius: 3px; flex: 0 0 auto; }
.adm-legend strong { margin-left: auto; font-variant-numeric: tabular-nums; }

.adm-rank { display: flex; flex-direction: column; gap: 11px; }
.adm-rank li { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.adm-rank-label { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-weight: 600; }
[data-theme="dark"] .adm-rank-label { color: #fff; }
.adm-rank-bar { flex: 0 0 38%; height: 8px; background: var(--bg-2); border-radius: 4px; overflow: hidden; }
[data-theme="dark"] .adm-rank-bar { background: rgba(255,255,255,.08); }
.adm-rank-bar i { display: block; height: 100%; background: var(--red); border-radius: 4px; }
.adm-rank-val { flex: 0 0 auto; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); font-size: 12px; white-space: nowrap; }
[data-theme="dark"] .adm-rank-val { color: #fff; }
.adm-empty { font-size: 13px; color: var(--muted); padding: 8px 0; }

@media (max-width: 1024px) { .adm-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .adm-an-grid { grid-template-columns: 1fr; } .adm-kpis { grid-template-columns: repeat(2, 1fr); } .adm-an-sources-row { flex-direction: column; align-items: flex-start; } }

/* ── BRAND.md · preto nunca toca vermelho ──────────────────────────────────
   No tema escuro as superfícies do admin são near-black (#1A1A1A/#111), então
   o acento VERMELHO decorativo encostaria no preto. Solução de marca: no escuro
   esses acentos viram DOURADO (cor de apoio, sem restrição de contato com preto).
   O vermelho permanece só onde há anel branco (botões, avatar, pills, status). */
[data-theme="dark"] .admin-card,
[data-theme="dark"] .ce-panel,
[data-theme="dark"] .admin-news-empty,
[data-theme="dark"] .admin-news-list,
[data-theme="dark"] .adm-kpi {
  border-top-color: var(--gold);
}
[data-theme="dark"] .adm-bar { background: linear-gradient(180deg, #E6D9B4, var(--gold)); }
[data-theme="dark"] .adm-rank-bar i { background: var(--gold); }
[data-theme="dark"] .adm-kpi-delta.down { color: var(--gold); }
/* Donut: anel branco (na base — igual nos dois temas) separa o arco vermelho da superfície do card */

/* ── Admin · Upload de imagem ──────────────────────────────────────────── */
.img-upload { display: flex; gap: 14px; align-items: flex-start; }
/* recorte arrastável: ajusta o object-position gravado na URL (#pos=x,y) */
.img-upload-adjust { position: relative; width: 100%; max-width: 340px; aspect-ratio: 16/9; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); cursor: grab; touch-action: none; }
.img-upload-adjust:active { cursor: grabbing; }
.img-upload-adjust img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; }
.img-upload-adjust-hint { display: block; font-size: 11px; color: var(--muted); margin: 6px 0 8px; }
.img-upload-preview { width: 84px; height: 84px; object-fit: cover; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2); flex: 0 0 auto; }
.img-upload-ph { width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); flex: 0 0 auto; }
[data-theme="dark"] .img-upload-ph, [data-theme="dark"] .img-upload-preview { border-color: rgba(255,255,255,.12); }
.img-upload-main { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.img-upload-actions { display: flex; gap: 8px; }
.img-upload-err { color: var(--red); font-size: 12px; font-weight: 600; }
.img-upload-ph--doc { border-style: solid; font-size: 12px; font-weight: 900; letter-spacing: .08em; color: var(--red); }
[data-theme="dark"] .img-upload-err { color: #ff7a7a; }

/* ── Área do Torcedor (perfil + estados internos) ──────────────────────── */
/* position/z-index/min-height/background: cobre o footer fixo (parallax) — sem isso
   páginas curtas deixam o footer vazar por trás (mesmo bug da página de atleta). */
.fan-area { position: relative; z-index: 2; background: var(--panel); min-height: 100vh; padding: 84px 0 110px; }
.fan-kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
[data-theme="dark"] .fan-kicker { color: var(--gold); }
.fan-title { font-size: clamp(32px, 5vw, 56px); font-weight: 900; letter-spacing: -.02em; line-height: 1.02; color: var(--ink); }
[data-theme="dark"] .fan-title { color: #fff; }
.fan-lead { max-width: 640px; margin: 18px 0 38px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.fan-soon { display: inline-block; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); border: 1px dashed var(--line); padding: 10px 16px; border-radius: 999px; }

/* ── Torcedor · landing/dashboard (/torcedor) — hero coral + deck ──────── */
.fan-stage { position: relative; z-index: 2; min-height: 100vh; display: flex; flex-direction: column; background: var(--panel); }
/* BRAND.md: vermelho não toca o near-black — filete branco separa a página do
   footer vermelho (igual nos dois temas; no claro funde com a superfície branca) */
.fan-stage::after, .fan-area::after, .fan-auth::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: var(--white); z-index: 1;
}
/* hero: mosaico da torcida + scrim + costura diagonal (mesma linguagem do login) */
.fan-hero {
  position: relative; overflow: hidden; background: #000;
  display: flex; align-items: flex-end;
  min-height: clamp(460px, 58vh, 600px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 100%);
}
.fan-hero--dash { min-height: clamp(360px, 44vh, 470px); }
.fan-hero::before { content: ""; position: absolute; inset: 0; background: url('/images/torcida_santa_cruz_mosaico.jpg') center/cover no-repeat; }
.fan-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.36) 0%, rgba(0,0,0,.18) 34%, rgba(0,0,0,.66) 66%, rgba(0,0,0,.94) 100%); }
.fan-hero-ghost {
  position: absolute; top: 84px; right: 40px; z-index: 1;
  font-size: clamp(110px, 13vw, 210px); font-weight: 900; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(201,184,150,.45);
  user-select: none; pointer-events: none;
}
.fan-hero-inner { position: relative; z-index: 1; width: 100%; padding-top: 120px; padding-bottom: 88px; }
.fan-hero-kicker {
  display: inline-flex; align-items: center; padding: 6px 11px;
  background: var(--red); color: var(--white);
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .2em;
  box-shadow: 0 0 0 1.5px var(--white); /* BRAND.md: anel branco isola o vermelho */
  margin-bottom: 18px;
}
.fan-hero-title { font-size: clamp(38px, 5vw, 64px); font-weight: 900; line-height: 1.03; letter-spacing: -.02em; text-transform: uppercase; color: var(--white); max-width: 780px; }
.fan-hero-title--dash { font-size: clamp(30px, 3.6vw, 48px); }
.fan-hero-lead { max-width: 600px; margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.78); }
.fan-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.fan-hero-id { display: flex; align-items: center; gap: 20px; }
.fan-hero-ava { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--red); flex: 0 0 auto; }
/* BRAND.md: no dark o anel inverte (branco por fora) — vermelho nunca toca o near-black */
[data-theme="dark"] .fan-hero-ava { box-shadow: 0 0 0 2px var(--red), 0 0 0 4px #fff; }
.fan-hero-ava--ph { display: flex; align-items: center; justify-content: center; background: var(--red); color: #fff; font-size: 34px; font-weight: 900; }
/* deck editorial: cards numerados sobre a superfície do tema */
.fan-deck { flex: 1 0 auto; background: var(--panel); padding: 64px 0 110px; position: relative; z-index: 0; }
/* marca d'água da área do torcedor — pattern Coral (um pattern por página) */
.fan-deck::before, .fan-area::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url('/images/patterns/Pattern-Coral.png') top left / 460px repeat;
  opacity: .06; /* Coral é saturado — acima disso briga com formulários/conteúdo */
  pointer-events: none;
}
.fan-deck-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 0 0 40px; padding: 0; }
.fan-deck-grid > li { list-style: none; }
.fan-deck-card { position: relative; display: block; height: 100%; padding: 26px 22px 34px; background: var(--panel); border: 1px solid var(--line); }
.fan-deck-num { display: block; font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.5px var(--red); margin-bottom: 16px; }
[data-theme="dark"] .fan-deck-num { -webkit-text-stroke-color: var(--gold); }
.fan-deck-card h3 { font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); margin-bottom: 8px; }
[data-theme="dark"] .fan-deck-card h3 { color: #fff; }
.fan-deck-card p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.fan-deck-card--link { text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s; padding-bottom: 58px; }
.fan-deck-card--link:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); border-color: var(--red); }
[data-theme="dark"] .fan-deck-card--link:hover { border-color: var(--gold); }
/* rótulo de ação explícito — diferencia o card-menu do card informativo */
.fan-deck-go {
  position: absolute; left: 22px; right: 22px; bottom: 18px;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em;
  color: var(--red);
}
[data-theme="dark"] .fan-deck-go { color: var(--gold); }
.fan-deck-go i { font-style: normal; font-weight: 900; transition: transform .18s; }
.fan-deck-card--link:hover .fan-deck-go i { transform: translateX(4px); }
@media (max-width: 720px) {
  .fan-hero { min-height: 440px; }
  .fan-hero-inner { padding-top: 96px; padding-bottom: 72px; }
  .fan-hero-ghost { top: 56px; right: 16px; }
  .fan-deck { padding: 48px 0 90px; }
}

/* ── Torcedor · botões / CTAs ─────────────────────────────────────────── */
.fan-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--red); color: #fff; box-shadow: 0 0 0 1.5px #fff; border: none; border-radius: 999px; padding: 13px 26px; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; transition: transform .15s, filter .15s; }
.fan-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.fan-btn:disabled { opacity: .6; cursor: default; transform: none; }
.fan-btn--ghost { background: transparent; color: var(--ink); box-shadow: none; border: 1.5px solid var(--line); }
[data-theme="dark"] .fan-btn--ghost { color: #fff; border-color: rgba(255,255,255,.25); }
/* outline branco — para CTAs sobre o hero escuro */
.fan-btn--outline { background: transparent; color: var(--white); box-shadow: none; border: 1.5px solid rgba(255,255,255,.55); }
.fan-btn--outline:hover { border-color: #fff; filter: none; }
.fan-btn--ghost:hover { filter: none; border-color: var(--red); color: var(--red); }
[data-theme="dark"] .fan-btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ── Torcedor · auth (login/cadastro) ─────────────────────────────────── */
/* Split editorial: mosaico da torcida à esquerda (costura diagonal — assinatura dos
   match cards), formulário sobre --panel à direita. O fundo deixa de ser o vermelho
   da página → a tela não se funde mais com o footer vermelho. Estrutura idêntica
   nos dois temas; só as cores (tokens) mudam. */
.fan-auth { position: relative; z-index: 2; min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; background: var(--panel); }
.fan-auth-visual {
  position: relative; overflow: hidden; background: #000;
  display: flex; align-items: flex-end;
  clip-path: polygon(0 0, 100% 0, calc(100% - 72px) 100%, 0 100%);
}
.fan-auth-visual::before {
  content: ""; position: absolute; inset: 0;
  background: url('/images/torcida_santa_cruz_mosaico.jpg') center/cover no-repeat;
}
.fan-auth-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.32) 0%, rgba(0,0,0,.08) 42%, rgba(0,0,0,.88) 100%);
}
/* ano de fundação como ghost number (linguagem dos heroes tipográficos .sc-dhero) */
.fan-auth-ghost {
  position: absolute; top: 84px; right: 44px; z-index: 1;
  font-size: clamp(96px, 10vw, 168px); font-weight: 900; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(201,184,150,.5);
  user-select: none; pointer-events: none;
}
.fan-auth-visual-copy { position: relative; z-index: 1; padding: 0 56px 60px; }
.fan-auth-kicker {
  display: inline-flex; align-items: center; padding: 6px 11px;
  background: var(--red); color: var(--white);
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .2em;
  box-shadow: 0 0 0 1.5px var(--white); /* BRAND.md: anel branco isola o vermelho */
  margin-bottom: 18px;
}
.fan-auth-display {
  font-size: clamp(34px, 3.6vw, 54px); font-weight: 900; line-height: 1.04; letter-spacing: -.02em;
  text-transform: uppercase; color: var(--white); max-width: 480px;
}
.fan-auth-panel { display: flex; align-items: center; justify-content: center; padding: 96px 48px; }
.fan-auth-card { width: 100%; max-width: 400px; }
.fan-auth-crest { display: block; margin-bottom: 18px; }
.fan-auth-title { font-size: clamp(24px, 2vw, 30px); font-weight: 900; letter-spacing: -.01em; text-transform: uppercase; line-height: 1.1; color: var(--ink); }
[data-theme="dark"] .fan-auth-title { color: #fff; }
.fan-auth-sub { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 10px 0 30px; }
@media (max-width: 960px) {
  .fan-auth { grid-template-columns: 1fr; }
  .fan-auth-visual { min-height: 300px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), 0 100%); }
  .fan-auth-visual-copy { padding: 0 24px 64px; }
  .fan-auth-ghost { top: 40px; right: 20px; }
  .fan-auth-panel { padding: 44px 20px 90px; }
}
.fan-auth-form { display: flex; flex-direction: column; gap: 16px; text-align: left; }
.fan-field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.fan-field input { width: 100%; min-width: 0; }
.fan-field span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.fan-field input { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--bg-2); color: var(--ink); font-size: 15px; }
.fan-field input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(221,0,0,.18); }
.fan-field input:disabled { opacity: .65; }
.fan-field small { font-size: 11px; color: var(--muted); }
[data-theme="dark"] .fan-field input { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.15); }
[data-theme="dark"] .fan-field input:focus { border-color: var(--gold); }
.fan-field-row { display: flex; gap: 12px; }
.fan-auth-err { font-size: 13px; font-weight: 700; color: var(--red); }
[data-theme="dark"] .fan-auth-err { color: #ff7a7a; }
.fan-auth-ok { font-size: 13px; font-weight: 700; color: #1a8f3c; }
[data-theme="dark"] .fan-auth-ok { color: #46d36f; }
.fan-auth-swap { margin-top: 22px; font-size: 13px; color: var(--muted); }
.fan-auth-swap a { color: var(--red); font-weight: 800; }
[data-theme="dark"] .fan-auth-swap a { color: var(--gold); }

/* ── Torcedor · perfil ────────────────────────────────────────────────── */
.fan-title--dash { font-size: clamp(26px, 4vw, 42px); }
.fan-narrow { max-width: 620px; }
.fan-back { display: block; width: fit-content; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 18px; }
.fan-back:hover { color: var(--red); }
.fan-profile { margin-top: 8px; }
.fan-profile-photo-row { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.fan-profile-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--red); flex: 0 0 auto; }
/* BRAND.md: no dark o anel inverte (branco por fora) — vermelho nunca toca o near-black */
[data-theme="dark"] .fan-profile-photo { box-shadow: 0 0 0 2px var(--red), 0 0 0 3.5px #fff; }
.fan-profile-photo-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fan-chip-initial { display: inline-flex; align-items: center; justify-content: center; background: var(--red); color: #fff; font-weight: 900; }
.fan-lgpd { margin-top: 26px; font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ── Torcedor · chip no header + véu do gate ──────────────────────────── */
.header-link--fan { gap: 8px; }
.fan-chip-photo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px #fff; font-size: 13px; }
.fan-chip-name { font-weight: 700; }
.fan-gate-veil { position: fixed; inset: 0; z-index: 80; background: var(--page-bg); }

/* ── Notícia · página do artigo ───────────────────────────────────────── */
.news-article { background: var(--page-bg); position: relative; z-index: 2; min-height: 100vh; display: flex; flex-direction: column; }
.news-article-hero { position: relative; min-height: 52vh; display: flex; align-items: flex-end; overflow: hidden; background: #0E0E0E; }
.news-article-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-article-hero-grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1) 30%, rgba(0,0,0,.82) 100%); }
.news-article-hero-body { position: relative; padding-top: 140px; padding-bottom: 42px; color: #fff; }
.news-article-tag { display: inline-block; padding: 6px 12px; background: var(--red); color: #fff; box-shadow: 0 0 0 1.5px #fff; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px; }
.news-article-hero-body h1 { font-size: clamp(28px, 4.6vw, 54px); font-weight: 900; letter-spacing: -.02em; line-height: 1.05; max-width: 860px; }
.news-article-hero-body time { display: block; margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.75); font-weight: 600; }
.news-article-body { max-width: 760px; padding-top: 48px; padding-bottom: 96px; flex: 1; }
.news-article-lead { font-size: 20px; line-height: 1.55; font-weight: 600; color: var(--ink); margin-bottom: 26px; }
[data-theme="dark"] .news-article-lead { color: #fff; }
.news-article-body > p:not(.news-article-lead) { font-size: 16px; line-height: 1.75; color: var(--muted); margin-bottom: 20px; }
.news-article-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
[data-theme="dark"] .news-article-back { color: var(--gold); }
.sc-form-err { font-size: 13px; font-weight: 700; color: var(--red); }
@media (max-width: 520px) { .fan-field-row { flex-direction: column; } }
@media (max-width: 640px) {
  .admin-jogos-row { grid-template-columns: 1fr auto; row-gap: 8px; }
  .admin-jogos-row .admin-badge { grid-column: 1 / -1; justify-self: start; }
  .admin-jogos-field--wide { grid-column: span 1; }
}

/* Archive ghost variant — muted gray, neutral tone */
.admin-btn--archive {
  color: var(--muted);
  border-color: rgba(110,110,110,.22);
}
.admin-btn--archive:hover:not(:disabled) {
  background: rgba(110,110,110,.06);
  border-color: rgba(110,110,110,.42);
  color: var(--ink);
}
[data-theme="dark"] .admin-btn--archive {
  color: rgba(255,255,255,.50);
  border-color: rgba(255,255,255,.14);
}
[data-theme="dark"] .admin-btn--archive:hover:not(:disabled) {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.28);
  color: rgba(255,255,255,.82);
}

/* ── NewsForm ─────────────────────────────────────────────────────────────── */

.admin-news-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.admin-news-form-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-news-form-controls {
  margin-bottom: 20px;
}

/* Two-column layout on desktop (content wide | meta narrow) */
.admin-news-form-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
  margin-bottom: 16px;
}

.admin-news-form-section {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.admin-news-section-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
  padding: 14px 20px 10px;
  border-bottom: 1px solid var(--line);
}
[data-theme="dark"] .admin-news-section-label {
  border-bottom-color: rgba(255,255,255,.08);
}

.admin-news-form-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
}

/* Side-by-side row inside meta section */
.admin-news-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Status segmented control */
.admin-news-status-ctrl {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--bg-2);
}
[data-theme="dark"] .admin-news-status-ctrl {
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
}

.admin-news-status-opt {
  padding: 7px 16px;
  font-family: var(--font-inter), 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background .13s, color .13s, box-shadow .13s;
  line-height: 1;
}
.admin-news-status-opt:hover {
  background: var(--bg-3);
  color: var(--ink);
}
[data-theme="dark"] .admin-news-status-opt:hover {
  background: rgba(255,255,255,.06);
  color: #FFFFFF;
}
/* Draft active: neutral white */
.admin-news-status-opt.active {
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: 0 1px 4px -1px rgba(0,0,0,.12);
}
[data-theme="dark"] .admin-news-status-opt.active {
  background: rgba(255,255,255,.12);
  color: #FFFFFF;
}
/* Published active: red + white ring (BRAND.md) */
.admin-news-status-opt.active.active--published {
  background: var(--red);
  color: #FFFFFF;
  box-shadow: 0 0 0 1.5px #FFFFFF;
}
/* Archived active: muted gray tone — clearly distinct from published and draft */
.admin-news-status-opt.active.active--archived {
  background: rgba(110,110,110,.14);
  color: #4A4A4A;
  box-shadow: 0 1px 4px -1px rgba(0,0,0,.08);
}
[data-theme="dark"] .admin-news-status-opt.active.active--archived {
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.65);
}
.admin-news-status-opt:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* Featured toggle */
.admin-news-featured-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.admin-news-featured-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.admin-news-featured-box {
  font-size: 20px;
  color: var(--muted);
  transition: color .15s, transform .15s;
  line-height: 1;
}
.admin-news-featured-check:checked ~ .admin-news-featured-box {
  color: var(--gold);
  transform: scale(1.15);
}
.admin-news-featured-toggle:hover .admin-news-featured-box {
  color: var(--gold);
}

/* Input error state */
.admin-input--error {
  border-color: var(--red);
}
.admin-input--error:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(221,0,0,.12);
}
.admin-field-error {
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  line-height: 1.3;
}

/* Required asterisk */
.admin-label-required {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  margin-left: 1px;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

/* News list: collapse columns on tablet */
@media (max-width: 900px) {
  .admin-news-list-head {
    grid-template-columns: 1fr 110px 290px;
    /* hide tag + date on tablet */
  }
  .admin-news-list-head span:nth-child(2),
  .admin-news-list-head span:nth-child(4) {
    display: none;
  }
  .admin-news-row {
    grid-template-columns: 1fr 110px 290px;
  }
  .admin-news-row-tag,
  .admin-news-row-date {
    display: none;
  }
}

@media (max-width: 600px) {
  .admin-news-list-head {
    display: none;
  }
  .admin-news-row {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px 14px;
  }
  .admin-news-row-status,
  .admin-news-row-tag,
  .admin-news-row-date {
    display: none;
  }
  .admin-news-row-actions {
    grid-column: 2;
    grid-row: 1;
    flex-direction: column;
  }
  .admin-news-row-article {
    grid-column: 1;
  }
}

/* News form: single column on tablet */
@media (max-width: 860px) {
  .admin-news-form-body {
    grid-template-columns: 1fr;
  }
  .admin-news-form-section--meta {
    order: -1; /* meta card goes on top for quick access on mobile */
  }
}

@media (max-width: 480px) {
  .admin-news-form-row {
    grid-template-columns: 1fr;
  }
  .admin-news-form-header-actions {
    flex-wrap: wrap;
  }
}

/* ===== player card → athlete detail link ===== */
.player-card-link{display:block;color:inherit;text-decoration:none}
.player-card-link:focus-visible{outline:2px solid var(--red);outline-offset:3px}

/* ================== ATHLETE DETAIL ==================
   Hero themed via tokens (light hero in light theme so the fixed header reads,
   black hero in dark). Red only as a chip-with-white-ring and as a white-edged
   number (BRAND.md: red never touches black without white). */
.athlete{display:flex;flex-direction:column;min-height:100vh}
/* dark filler — keeps short profiles (no bio) tall enough that the fixed parallax
   footer only reveals on scroll, not mid-page */
.athlete-fill{flex:1 0 auto;background:var(--section-bg);position:relative;z-index:2}
.athlete-hero{
  position:relative;z-index:2;overflow:hidden;
  /* fundo "estúdio" EXATAMENTE igual ao fundo das fotos (#DDDDDD) nos DOIS temas —
     sólido (sem gradiente) p/ a foto fundir totalmente, sem retângulo marcado. */
  background:#DDDDDD;
  color:var(--ink);
  --hero-text:#0A0A0A;
  padding:120px 0 0;
  border-bottom:1px solid rgba(0,0,0,.10);
}
.athlete-hero-inner{
  display:grid;grid-template-columns:1.05fr .95fr;gap:24px;align-items:end;min-height:440px;
}
.athlete-hero-text{position:relative;z-index:2;padding-bottom:44px}
.athlete-back{
  display:inline-block;margin-bottom:26px;
  font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);
  transition:color .2s;
}
.athlete-back:hover{color:var(--red)}
.athlete-pos{
  display:inline-flex;padding:6px 12px;margin-bottom:16px;
  background:var(--red);color:var(--white);box-shadow:0 0 0 1.5px var(--white);
  font-size:11px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;
}
.athlete-name{font-weight:900;line-height:.84;letter-spacing:-.03em;text-transform:uppercase}
.athlete-name-first{
  display:block;font-size:clamp(34px,5vw,72px);
  -webkit-text-fill-color:transparent;
  -webkit-text-stroke:1.6px var(--hero-text); /* stroke in the hero text colour (not currentColor, which is transparent) */
}
.athlete-name-last{display:block;font-size:clamp(44px,7vw,104px)}
.athlete-number{
  display:block;margin-top:6px;
  font-size:clamp(56px,8vw,120px);font-weight:900;line-height:.8;letter-spacing:-.04em;
  font-variant-numeric:tabular-nums;
  color:var(--red);-webkit-text-stroke:2px var(--white);paint-order:stroke fill;
}
/* z-index:1 → atrás do texto do hero (z-2) e do header fixo (z-100), acima do fundo do hero */
.athlete-photo{position:relative;z-index:1;align-self:end;min-height:440px}
.athlete-photo img{
  position:absolute;right:0;bottom:0;
  max-height:560px;max-width:100%;width:auto;object-fit:contain;object-position:bottom right;
  /* sem sombra. O fundo da foto tem leve GRADIENTE (mais escuro à direita), então a cor
     sólida do hero não cobre tudo — um feather nas bordas (topo + laterais) dissolve a
     divisão; a base fica sólida (pés ancorados). Combina com o bg exato por atleta. */
  -webkit-mask:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 8%, #000 100%);
  -webkit-mask-composite:source-in;
  mask:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 8%, #000 100%);
  mask-composite:intersect;
}
.athlete-silhouette{
  position:absolute;right:0;bottom:0;width:76%;height:94%;
  color:var(--hero-text);opacity:.12;line-height:0;
}
.athlete-silhouette svg{width:100%;height:100%}

/* data strip — dark band */
.athlete-detail{position:relative;z-index:2;background:var(--section-bg);color:var(--white)}
.athlete-detail-grid{display:flex;flex-wrap:wrap}
.athlete-detail-item{flex:1 1 150px;padding:22px 24px;border-left:1px solid rgba(255,255,255,.12)}
.athlete-detail-item:first-child{border-left:none}
.athlete-detail-item strong{display:block;font-size:22px;font-weight:900;letter-spacing:-.01em}
.athlete-detail-item small{
  display:block;margin-top:5px;font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);
}
/* bloco de números (Série C) — mesma faixa escura, com rótulo */
.athlete-stats{border-top:1px solid rgba(255,255,255,.12)}
.athlete-stats .athlete-detail-grid{padding-top:14px;padding-bottom:6px}
.athlete-stats-eyebrow{
  display:block;padding:18px 24px 0;
  font-size:10px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:var(--gold);
}

/* biography — dark band */
.athlete-bio{
  position:relative;z-index:2;background:var(--section-bg);color:var(--white);
  padding:48px 0 88px;border-top:1px solid rgba(255,255,255,.1);
}
.athlete-bio-title{font-size:clamp(18px,2.2vw,26px);font-weight:900;text-transform:uppercase;letter-spacing:-.01em;margin-bottom:20px}
.athlete-bio-title em{color:var(--gold);font-style:normal;font-weight:800}
.athlete-bio-text{max-width:72ch;display:flex;flex-direction:column;gap:14px;color:rgba(255,255,255,.85);line-height:1.75;font-size:15px}

/* dark theme: red text would touch near-black — use gold for the back-link hover */
[data-theme="dark"] .athlete-back:hover{color:var(--gold)}

@media (max-width:860px){
  .athlete-hero{padding:96px 0 0}
  .athlete-hero-inner{grid-template-columns:1fr;min-height:0}
  .athlete-hero-text{padding-bottom:32px}
  .athlete-photo{order:-1;min-height:0}
  .athlete-photo img{position:relative;display:block;margin:0 auto;max-height:380px}
  .athlete-silhouette{position:relative;width:62%;height:340px;margin:0 auto}
}

/* ================== HEADER NAV (desktop dropdowns) ================== */
.header-nav{display:flex;align-items:center;gap:2px;margin-left:10px}
.header-nav-item{position:relative}
.header-nav-label{
  padding:8px 12px;border:none;background:none;color:inherit;cursor:pointer;
  font-size:13px;font-weight:700;letter-spacing:.01em;
  display:inline-flex;align-items:center;gap:6px;
}
.header-nav-label::after{
  content:"";width:5px;height:5px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;
  transform:rotate(45deg);opacity:.6;margin-top:-2px;transition:transform .2s;
}
.header-nav-item:hover .header-nav-label::after,
.header-nav-item:focus-within .header-nav-label::after{transform:rotate(225deg);margin-top:2px}
.header-dropdown{
  position:absolute;top:calc(100% + 4px);left:0;min-width:230px;
  background:var(--panel);color:var(--panel-text);
  border:1px solid var(--line);border-radius:10px;
  box-shadow:0 16px 36px -12px rgba(0,0,0,.32);
  padding:8px;
  opacity:0;visibility:hidden;transform:translateY(6px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index:120;
}
.header-nav-item:hover .header-dropdown,
.header-nav-item:focus-within .header-dropdown{opacity:1;visibility:visible;transform:translateY(0)}
.header-dropdown-link{
  display:block;padding:9px 12px;border-radius:6px;
  font-size:13px;font-weight:600;color:var(--panel-text);white-space:nowrap;
  transition:background .15s, color .15s;
}
.header-dropdown-link:hover{background:var(--bg-2);color:var(--red)}
[data-theme="dark"] .header-dropdown-link:hover{color:var(--gold)} /* red would touch near-black panel */

/* ================== INTERNAL CONTENT PAGE (InfoPage) — editorial ================== */
.info{display:flex;flex-direction:column;min-height:100vh}
@keyframes infoUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

/* HERO */
.info-hero{
  position:relative;z-index:2;overflow:hidden;
  background:var(--hero-bg);color:var(--hero-text);
  padding:128px 0 52px;border-bottom:1px solid var(--line);
}
/* subtle coral-stripe corner texture (neutral gray → brand-safe in both themes) */
.info-hero::before{
  content:"";position:absolute;top:0;right:0;width:44%;height:100%;z-index:0;pointer-events:none;
  background:repeating-linear-gradient(122deg, rgba(128,128,128,.10) 0 3px, transparent 3px 17px);
  -webkit-mask:linear-gradient(90deg, transparent, #000);mask:linear-gradient(90deg, transparent, #000);
}
.info-hero-inner{position:relative;z-index:2}
.info-breadcrumb{
  display:flex;align-items:center;gap:8px;margin-bottom:18px;
  font-size:11px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);
  animation:infoUp .5s both;
}
.info-breadcrumb-sep{opacity:.45}
.info-breadcrumb-current{color:var(--red)}
[data-theme="dark"] .info-breadcrumb-current{color:var(--gold)}
.info-title{
  font-size:clamp(40px,6.5vw,92px);font-weight:900;line-height:.9;letter-spacing:-.03em;text-transform:uppercase;
  max-width:16ch;animation:infoUp .5s .05s both;
}
.info-title::after{content:"";display:block;width:72px;height:5px;background:var(--red);margin-top:22px}
.info-lead{
  margin-top:22px;max-width:56ch;font-size:clamp(16px,1.6vw,19px);line-height:1.55;font-weight:500;color:var(--muted);
  animation:infoUp .5s .1s both;
}

/* BODY + sticky aside */
.info-main{position:relative;z-index:2;background:var(--panel);color:var(--panel-text);padding:56px 0 64px}
.info-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:56px;align-items:start}
.info-content{min-width:0;max-width:74ch}
.info-content-lead{
  font-size:clamp(18px,2vw,22px);line-height:1.55;font-weight:600;
  padding-left:20px;border-left:3px solid var(--red);margin-bottom:32px;
}
[data-theme="dark"] .info-content-lead{border-left-color:var(--gold)}
.info-content h2{
  font-size:clamp(19px,2.2vw,26px);font-weight:900;text-transform:uppercase;letter-spacing:-.01em;
  margin:38px 0 14px;display:flex;align-items:center;gap:12px;
}
.info-content h2::before{content:"";width:22px;height:3px;background:var(--gold);flex:0 0 auto}
.info-content p{font-size:15.5px;line-height:1.85;margin-bottom:18px;opacity:.92}
.info-quote{
  margin:36px 0;padding:26px 30px;background:var(--bg-2);border-left:4px solid var(--red);
  font-size:clamp(18px,2.2vw,24px);font-weight:700;line-height:1.4;font-style:italic;
}
[data-theme="dark"] .info-quote{border-left-color:var(--gold)}
.info-quote cite{display:block;margin-top:14px;font-size:12px;font-weight:800;font-style:normal;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}

.info-aside{position:sticky;top:96px}
.info-facts{background:var(--bg-2);border:1px solid var(--line);border-radius:12px;padding:22px 22px 10px}
.info-facts h3{font-size:11px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:var(--red);margin-bottom:12px}
[data-theme="dark"] .info-facts h3{color:var(--gold)}
.info-facts .row{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-top:1px solid var(--line)}
.info-facts .row:first-of-type{border-top:none}
.info-facts dt{font-size:12px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.info-facts dd{font-size:13px;font-weight:800;text-align:right}

/* RELATED cards */
.info-related{position:relative;z-index:2;background:var(--section-bg);color:var(--white);padding:56px 0}
.info-related-title{font-size:clamp(18px,2.2vw,26px);font-weight:900;text-transform:uppercase;letter-spacing:-.01em;margin-bottom:26px}
.info-related-title em{color:var(--gold);font-style:normal}
.info-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.info-card{
  background:var(--ink);border:1px solid rgba(255,255,255,.08);padding:24px 22px 26px;
  display:flex;flex-direction:column;gap:10px;transition:transform .25s, border-color .25s;
}
.info-card:hover{transform:translateY(-4px);border-color:rgba(255,255,255,.22)}
.info-card-idx{font-size:13px;font-weight:900;color:var(--gold);font-variant-numeric:tabular-nums}
.info-card h3{font-size:17px;font-weight:800;line-height:1.15;color:var(--white)}
.info-card p{font-size:13.5px;line-height:1.6;color:rgba(255,255,255,.7)}
.info-card-more{margin-top:auto;font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);display:inline-flex;gap:6px}

/* CTA band — Fita Azul (#0A1A3D, herança de 1979): distinto do "Veja também"
   preto acima e do footer vermelho abaixo. White frame + red pill com anel
   branco mantêm a separação do BRAND.md. */
.info-cta{
  position:relative;z-index:2;background:var(--fita-azul);color:var(--white);
  border-top:3px solid var(--white);border-bottom:3px solid var(--white);
}
.info-cta-inner{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:44px 0;flex-wrap:wrap}
.info-cta-eyebrow{font-size:11px;font-weight:800;letter-spacing:.2em;text-transform:uppercase;color:var(--gold)}
.info-cta h2{font-size:clamp(22px,3vw,38px);font-weight:900;text-transform:uppercase;letter-spacing:-.02em;line-height:1;margin:8px 0 6px;max-width:18ch}
.info-cta p{font-size:14px;opacity:.85;max-width:42ch}
.info-cta-btn{
  flex:0 0 auto;display:inline-flex;align-items:center;gap:10px;
  background:var(--red);color:var(--white);padding:14px 24px;border-radius:999px;
  box-shadow:0 0 0 1.5px var(--white); /* white ring keeps red off the black band */
  font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  transition:transform .2s, gap .2s, background .2s;
}
.info-cta-btn:hover{transform:translateY(-2px);gap:14px;background:#B80000}

.info-fill{flex:1 0 auto;background:var(--section-bg);position:relative;z-index:2}

@media (max-width:900px){
  .info-grid{grid-template-columns:1fr;gap:36px}
  .info-aside{position:static}
  .info-cards{grid-template-columns:1fr}
}
@media (max-width:768px){
  .info-hero{padding:100px 0 40px}
  .info-cta-inner{flex-direction:column;align-items:flex-start;gap:18px}
}

/* ===== arquétipo Legal (documento utilitário — distinto do hero editorial) ===== */
.legal{display:flex;flex-direction:column;min-height:100vh}
.legal-head{
  position:relative;z-index:2;background:var(--panel);color:var(--panel-text);
  padding:120px 0 24px;border-bottom:1px solid var(--line);
}
.legal-eyebrow{display:block;font-size:11px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.legal-title{font-size:clamp(26px,3.2vw,40px);font-weight:800;letter-spacing:-.01em}
.legal-date{display:block;margin-top:10px;font-size:13px;color:var(--muted)}
.legal-body{position:relative;z-index:2;background:var(--panel);color:var(--panel-text);padding:36px 0 64px}
.legal-grid{display:grid;grid-template-columns:220px minmax(0,1fr);gap:48px;align-items:start}
.legal-toc{position:sticky;top:96px}
.legal-toc-label{display:block;font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);margin-bottom:12px}
.legal-toc nav{display:flex;flex-direction:column;border-left:2px solid var(--line)}
.legal-toc a{padding:7px 14px;font-size:13px;color:var(--muted);border-left:2px solid transparent;margin-left:-2px;transition:color .15s,border-color .15s}
.legal-toc a:hover{color:var(--red);border-left-color:var(--red)}
[data-theme="dark"] .legal-toc a:hover{color:var(--gold);border-left-color:var(--gold)}
.legal-article{max-width:70ch}
.legal-section{margin-bottom:26px;scroll-margin-top:90px}
.legal-section h2{font-size:16px;font-weight:800;margin-bottom:8px}
.legal-section p{font-size:14.5px;line-height:1.75;opacity:.85;margin-bottom:10px}
@media(max-width:860px){.legal-grid{grid-template-columns:1fr;gap:20px}.legal-toc{display:none}}

/* ===== arquétipo FAQ — cabeçalho central "Central de Ajuda" (distinto) ===== */
.faq{display:flex;flex-direction:column;min-height:100vh}
.faq-head{position:relative;z-index:2;background:var(--hero-bg);color:var(--hero-text);padding:120px 0 40px;text-align:center;border-bottom:1px solid var(--line)}
.faq-eyebrow{display:inline-block;padding:6px 12px;background:var(--red);color:var(--white);box-shadow:0 0 0 1.5px var(--white);font-size:11px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;margin-bottom:16px}
.faq-title{font-size:clamp(30px,4vw,52px);font-weight:900;text-transform:uppercase;letter-spacing:-.02em}
.faq-intro{max-width:52ch;margin:14px auto 0;color:var(--muted);font-size:15px}
.faq-body{position:relative;z-index:2;background:var(--panel);color:var(--panel-text);padding:40px 0 64px}

/* Editorial: drop-cap (cara de revista — separa do Legal/FAQ) */
.info-content section:first-of-type p:first-of-type::first-letter{
  float:left;font-size:3.4em;line-height:.78;font-weight:900;padding:6px 12px 0 0;color:var(--red);
}
[data-theme="dark"] .info-content section:first-of-type p:first-of-type::first-letter{color:var(--gold)}

/* ===== Editorial — hero cinematográfico (foto full-bleed, nível PSG/Bahia) ===== */
.ed-hero{position:relative;z-index:2;min-height:78vh;display:flex;align-items:flex-end;overflow:hidden;background:var(--ink)}
.ed-hero-media{position:absolute;inset:0;z-index:0}
.ed-hero-media img{width:100%;height:100%;object-fit:cover;object-position:center}
.ed-hero-overlay{position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(0,0,0,.55) 0%,rgba(0,0,0,.12) 32%,rgba(0,0,0,.55) 68%,rgba(0,0,0,.94) 100%)}
.ed-hero-inner{position:relative;z-index:2;width:100%;padding-bottom:clamp(40px,6vh,72px)}
.ed-hero-eyebrow{display:inline-flex;align-items:center;padding:7px 13px;margin-bottom:20px;background:var(--red);color:#fff;box-shadow:0 0 0 1.5px #fff;font-size:11px;font-weight:800;letter-spacing:.2em;text-transform:uppercase;animation:infoUp .5s both}
.ed-hero-title{color:#fff;font-size:clamp(44px,8vw,116px);font-weight:900;line-height:.86;letter-spacing:-.03em;text-transform:uppercase;max-width:15ch;text-shadow:0 2px 30px rgba(0,0,0,.45);animation:infoUp .5s .06s both}
.ed-hero-lead{color:rgba(255,255,255,.9);margin-top:22px;max-width:54ch;font-size:clamp(16px,1.7vw,20px);line-height:1.5;animation:infoUp .5s .12s both}

/* header branco quando a página tem hero escuro (não afeta a home, que tem hero claro) */
body:has(.page-hero-dark) .site-header:not(.scrolled){color:#fff}
body:has(.page-hero-dark) .site-header:not(.scrolled) .header-nav-label,
body:has(.page-hero-dark) .site-header:not(.scrolled) .header-link{color:#fff}

/* ficha do atleta: hero cinza claro nos dois temas → header com texto escuro (tinta) */
body:has(.athlete-hero) .site-header:not(.scrolled),
body:has(.athlete-hero) .site-header:not(.scrolled) .header-nav-label,
body:has(.athlete-hero) .site-header:not(.scrolled) .header-link{color:var(--ink)}
/* "voltar" legível no cinza em ambos os temas */
.athlete-hero .athlete-back{color:#5B5B5B}
.athlete-hero .athlete-back:hover{color:var(--red)}

/* ===== arquétipo FEATURE (página-bandeira: hero + manifesto + escudos + marcos + citação) ===== */
.feat-hero{position:relative;z-index:2;min-height:82vh;display:flex;align-items:flex-end;overflow:hidden;background:var(--ink)}
.feat-hero-media{position:absolute;inset:0;z-index:0}
.feat-hero-media img{width:100%;height:100%;object-fit:cover;object-position:center}
.feat-hero-overlay{position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(0,0,0,.5) 0%,rgba(0,0,0,.1) 30%,rgba(0,0,0,.5) 66%,rgba(0,0,0,.95) 100%)}
.feat-hero-inner{position:relative;z-index:2;width:100%;padding-bottom:clamp(40px,7vh,80px)}
.feat-kicker{display:block;font-size:clamp(13px,1.4vw,16px);font-weight:800;letter-spacing:.3em;text-transform:uppercase;color:var(--gold);margin-bottom:14px;animation:infoUp .5s both}
.feat-eyebrow{display:inline-flex;padding:6px 12px;background:var(--red);color:#fff;box-shadow:0 0 0 1.5px #fff;font-size:11px;font-weight:800;letter-spacing:.2em;text-transform:uppercase;margin-bottom:18px;animation:infoUp .5s .05s both}
.feat-title{color:#fff;font-size:clamp(56px,11vw,176px);font-weight:900;line-height:.82;letter-spacing:-.04em;text-transform:uppercase;text-shadow:0 2px 40px rgba(0,0,0,.5);animation:infoUp .5s .1s both}

.feat-intro{position:relative;z-index:2;background:var(--panel);color:var(--panel-text);padding:64px 0}
.feat-intro-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:48px;align-items:center}
.feat-lead{font-size:clamp(20px,2.6vw,32px);font-weight:600;line-height:1.35;letter-spacing:-.01em}
.feat-stats{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line)}
.feat-stat{padding:16px 0;border-bottom:1px solid var(--line)}
.feat-stat:nth-child(odd){padding-right:16px}
.feat-stat dt{font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.feat-stat dd{font-size:clamp(20px,2.2vw,28px);font-weight:900;letter-spacing:-.02em;margin-top:4px}
@media(max-width:860px){.feat-intro-grid{grid-template-columns:1fr;gap:28px}}

.feat-h2{font-size:clamp(20px,2.6vw,32px);font-weight:900;text-transform:uppercase;letter-spacing:-.02em;margin-bottom:28px;display:inline-block;padding-bottom:8px;border-bottom:3px solid var(--red)}
[data-theme="dark"] .feat-h2{border-bottom-color:var(--gold)}
.feat-h2--onDark{color:#fff;border-bottom-color:var(--gold)}

.feat-crests{position:relative;z-index:2;background:var(--bg-2);color:var(--panel-text);padding:64px 0}
.feat-crest-row{display:flex;gap:28px;flex-wrap:wrap;align-items:flex-end}
.feat-crest{display:flex;flex-direction:column;align-items:center;gap:14px;flex:1 1 150px;max-width:220px}
.feat-crest-tile{width:100%;aspect-ratio:1/1;background:#fff;border:1px solid var(--line);border-radius:14px;display:flex;align-items:center;justify-content:center;padding:22px;box-shadow:0 12px 32px -18px rgba(0,0,0,.45)}
.feat-crest-tile img{max-width:100%;max-height:100%;object-fit:contain}
.feat-crest figcaption{font-size:14px;font-weight:900;letter-spacing:.04em;color:var(--red)}
[data-theme="dark"] .feat-crest figcaption{color:var(--gold)}
.feat-crest-note{margin-top:28px;max-width:60ch;color:var(--muted);font-size:14px;line-height:1.6}

.feat-marcos{position:relative;z-index:2;background:var(--section-bg);color:#fff;padding:64px 0}
.feat-timeline{list-style:none;max-width:780px;position:relative;padding-left:8px}
.feat-timeline::before{content:"";position:absolute;left:6px;top:6px;bottom:6px;width:2px;background:rgba(255,255,255,.18)}
.feat-tl-item{position:relative;padding:0 0 30px 30px}
.feat-tl-item::before{content:"";position:absolute;left:0;top:6px;width:13px;height:13px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 3px var(--section-bg)}
.feat-tl-year{font-size:14px;font-weight:900;color:var(--gold);letter-spacing:.02em}
.feat-tl-body h3{font-size:19px;font-weight:800;margin:4px 0 6px;color:#fff}
.feat-tl-body p{font-size:14.5px;line-height:1.6;color:rgba(255,255,255,.78)}

.feat-quote{position:relative;z-index:2;background:var(--fita-azul);color:#fff;padding:72px 0;border-top:3px solid #fff;border-bottom:3px solid #fff}
.feat-quote-text{font-size:clamp(28px,5vw,60px);font-weight:900;line-height:1.02;letter-spacing:-.03em;text-transform:uppercase;max-width:20ch;font-style:normal}
.feat-quote-cite{display:block;margin-top:18px;font-size:12px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:var(--gold);font-style:normal}

/* ===== arquétipo Documentos (lista de downloads) ===== */
.doc{display:flex;flex-direction:column;min-height:100vh}
.doc-head{position:relative;z-index:2;background:var(--panel);color:var(--panel-text);padding:120px 0 26px;border-bottom:1px solid var(--line)}
.doc-eyebrow{display:block;font-size:11px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.doc-title{font-size:clamp(28px,3.6vw,46px);font-weight:900;text-transform:uppercase;letter-spacing:-.02em}
.doc-lead{margin-top:10px;color:var(--muted);font-size:15px;max-width:56ch}
.doc-body{position:relative;z-index:2;background:var(--panel);color:var(--panel-text);padding:32px 0 64px}
.doc-list{max-width:820px;margin:0 auto;list-style:none}
.doc-row{display:flex;align-items:center;gap:16px;padding:16px 18px;border:1px solid var(--line);border-radius:10px;margin-bottom:10px;color:inherit;transition:border-color .2s,transform .2s}
.doc-row:hover{border-color:var(--red);transform:translateX(2px)}
[data-theme="dark"] .doc-row:hover{border-color:var(--gold)}
.doc-icon{flex:0 0 auto;width:40px;height:40px;display:flex;align-items:center;justify-content:center;color:var(--red);background:var(--bg-2);border-radius:8px}
[data-theme="dark"] .doc-icon{color:var(--gold)}
.doc-icon svg{width:20px;height:20px}
.doc-info{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.doc-name{font-weight:800;font-size:15px}
.doc-meta{font-size:12px;color:var(--muted)}
.doc-kind{flex:0 0 auto;font-size:10px;font-weight:800;letter-spacing:.1em;padding:4px 8px;border:1px solid var(--line);border-radius:5px;color:var(--muted)}
.doc-dl{flex:0 0 auto;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--red)}
[data-theme="dark"] .doc-dl{color:var(--gold)}
@media(max-width:560px){.doc-kind,.doc-dl{display:none}}

/* ===== arquétipo Galeria ===== */
.gallery{display:flex;flex-direction:column;min-height:100vh}
.gallery-head{position:relative;z-index:2;background:var(--panel);color:var(--panel-text);padding:120px 0 24px;text-align:center}
.gallery-eyebrow{display:block;font-size:11px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:var(--red);margin-bottom:10px}
[data-theme="dark"] .gallery-eyebrow{color:var(--gold)}
.gallery-title{font-size:clamp(28px,3.6vw,46px);font-weight:900;text-transform:uppercase;letter-spacing:-.02em}
.gallery-lead{margin:8px auto 0;color:var(--muted);font-size:15px;max-width:52ch}
.gallery-body{position:relative;z-index:2;background:var(--section-bg);padding:32px 0 64px}
.gallery-grid{columns:4;column-gap:10px}
@media(max-width:1024px){.gallery-grid{columns:3}}
@media(max-width:680px){.gallery-grid{columns:2}}
.gallery-item{break-inside:avoid;margin:0 0 10px;overflow:hidden;border-radius:8px;background:var(--ink)}
.gallery-item img{width:100%;display:block;transition:transform .5s,filter .3s;filter:saturate(.95)}
.gallery-item:hover img{transform:scale(1.05);filter:saturate(1.1)}

/* ===== arquétipo Listagem ===== */
.listing{display:flex;flex-direction:column;min-height:100vh}
.listing-head{position:relative;z-index:2;background:var(--hero-bg);color:var(--hero-text);padding:120px 0 32px;border-bottom:1px solid var(--line)}
.listing-head-inner{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.listing-title{font-size:clamp(32px,4.5vw,60px);font-weight:900;text-transform:uppercase;letter-spacing:-.02em;margin-top:8px}
.listing-lead{margin-top:10px;color:var(--muted);font-size:15px}
.listing-count{flex:0 0 auto;font-size:clamp(40px,6vw,80px);font-weight:900;line-height:.8;color:transparent;-webkit-text-stroke:2px var(--red);font-variant-numeric:tabular-nums}
[data-theme="dark"] .listing-count{-webkit-text-stroke-color:var(--gold)}
.listing-body{position:relative;z-index:2;background:var(--panel);color:var(--panel-text);padding:36px 0 64px}
.listing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media(max-width:860px){.listing-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.listing-grid{grid-template-columns:1fr}}
.listing-card{border:1px solid var(--line);border-radius:10px;padding:20px;display:flex;flex-direction:column;gap:8px;min-height:120px;transition:transform .2s,border-color .2s}
.listing-card:hover{transform:translateY(-3px);border-color:var(--red)}
[data-theme="dark"] .listing-card:hover{border-color:var(--gold)}
.listing-tag{align-self:flex-start;font-size:9.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;padding:4px 8px;background:var(--bg-2);color:var(--red)}
[data-theme="dark"] .listing-tag{color:var(--gold)}
.listing-card-title{font-size:16px;font-weight:800;line-height:1.2}
.listing-meta{font-size:12px;color:var(--muted);font-weight:700;margin-top:auto}

/* ===== arquétipo Landing (hero escuro + CTA) ===== */
.landing{display:flex;flex-direction:column;min-height:100vh}
.landing-hero{position:relative;z-index:2;background:var(--section-bg);color:var(--white);padding:130px 0 56px;overflow:hidden}
.landing-hero::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:radial-gradient(60% 50% at 80% 0%,rgba(150,16,16,.22),transparent 60%)}
.landing-hero>.container{position:relative;z-index:1}
.landing-eyebrow{display:inline-block;padding:6px 12px;background:var(--red);color:var(--white);box-shadow:0 0 0 1.5px var(--white);font-size:11px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;margin-bottom:18px}
.landing-title{font-size:clamp(36px,6vw,80px);font-weight:900;text-transform:uppercase;letter-spacing:-.03em;line-height:.92;max-width:16ch}
.landing-lead{margin-top:18px;max-width:52ch;font-size:clamp(15px,1.6vw,18px);color:rgba(255,255,255,.8);line-height:1.5}
.landing-cta{display:inline-flex;align-items:center;gap:10px;margin-top:26px;background:var(--white);color:var(--ink);padding:15px 26px;border-radius:999px;font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;transition:transform .2s,gap .2s}
.landing-cta:hover{transform:translateY(-2px);gap:14px}
.landing-body{position:relative;z-index:2;background:var(--panel);color:var(--panel-text);padding:48px 0 64px}
.landing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media(max-width:780px){.landing-grid{grid-template-columns:1fr}}
.landing-card{border:1px solid var(--line);border-radius:12px;padding:26px 24px}
.landing-card-idx{font-size:13px;font-weight:900;color:var(--red);font-variant-numeric:tabular-nums}
[data-theme="dark"] .landing-card-idx{color:var(--gold)}
.landing-card h3{font-size:18px;font-weight:800;margin:8px 0}
.landing-card p{font-size:14px;line-height:1.6;opacity:.85}

/* ===== Pessoas — header centrado (distinto) ===== */
.people-head{position:relative;z-index:2;background:var(--panel);color:var(--panel-text);padding:120px 0 36px;text-align:center}
.people-eyebrow{display:block;font-size:11px;font-weight:800;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.people-title{font-size:clamp(30px,4vw,52px);font-weight:900;text-transform:uppercase;letter-spacing:-.02em}
.people-title::after{content:"";display:block;width:54px;height:4px;background:var(--gold);margin:18px auto 0}
.people-lead{margin:14px auto 0;color:var(--muted);font-size:15px;max-width:48ch}

/* ===== Locais — header com pin (distinto) ===== */
.loc-head{position:relative;z-index:2;background:var(--hero-bg);color:var(--hero-text);padding:120px 0 32px;border-bottom:1px solid var(--line)}
.loc-eyebrow{display:block;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--red);margin-bottom:10px}
[data-theme="dark"] .loc-eyebrow{color:var(--gold)}
.loc-title{font-size:clamp(30px,4.5vw,58px);font-weight:900;text-transform:uppercase;letter-spacing:-.02em}
.loc-lead{margin-top:10px;color:var(--muted);font-size:15px;max-width:54ch}

/* ===== arquétipo Formulário ===== */
.form-page{display:flex;flex-direction:column;min-height:100vh}
.form-head{position:relative;z-index:2;background:var(--hero-bg);color:var(--hero-text);padding:120px 0 32px;border-bottom:1px solid var(--line)}
.form-eyebrow{display:block;font-size:11px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:var(--red);margin-bottom:10px}
[data-theme="dark"] .form-eyebrow{color:var(--gold)}
.form-title{font-size:clamp(30px,4vw,52px);font-weight:900;text-transform:uppercase;letter-spacing:-.02em}
.form-lead{margin-top:10px;color:var(--muted);font-size:15px;max-width:52ch}
.form-body{position:relative;z-index:2;background:var(--panel);color:var(--panel-text);padding:40px 0 64px}
.form-card{max-width:620px;margin:0 auto;display:flex;flex-direction:column;gap:18px}
.form-field{display:flex;flex-direction:column;gap:7px}
.form-label{font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.form-label em{color:var(--red);font-style:normal}
.form-field input,.form-field select,.form-field textarea{
  font-family:inherit;font-size:15px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;
  background:var(--bg-2);color:var(--panel-text);width:100%;transition:border-color .2s;
}
.form-field input:focus,.form-field select:focus,.form-field textarea:focus{outline:none;border-color:var(--red)}
[data-theme="dark"] .form-field input:focus,[data-theme="dark"] .form-field select:focus,[data-theme="dark"] .form-field textarea:focus{border-color:var(--gold)}
.form-field textarea{resize:vertical}
.form-consent{display:flex;gap:10px;align-items:flex-start;font-size:13px;color:var(--muted);line-height:1.5}
.form-consent input{margin-top:3px;accent-color:var(--red)}
.form-submit{align-self:flex-start;background:var(--red);color:var(--white);box-shadow:0 0 0 1.5px var(--white);border-radius:999px;padding:14px 26px;font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;transition:transform .2s,background .2s}
.form-submit:hover{transform:translateY(-2px);background:#B80000}
.form-success{max-width:620px;margin:0 auto;text-align:center;padding:48px 24px;border:1px solid var(--line);border-radius:12px;background:var(--bg-2)}
.form-success strong{display:block;font-size:22px;font-weight:900;margin-bottom:8px}
.form-success p{color:var(--muted);font-size:14px}

/* ===== arquétipo Histórias ===== */
.stories{display:flex;flex-direction:column;min-height:100vh}
.stories-head{position:relative;z-index:2;background:var(--hero-bg);color:var(--hero-text);padding:120px 0 36px;border-bottom:1px solid var(--line)}
.stories-eyebrow{display:inline-block;padding:6px 12px;background:var(--red);color:var(--white);box-shadow:0 0 0 1.5px var(--white);font-size:11px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;margin-bottom:16px}
.stories-title{font-size:clamp(34px,5vw,68px);font-weight:900;text-transform:uppercase;letter-spacing:-.02em}
.stories-lead{margin-top:12px;color:var(--muted);font-size:15px;max-width:54ch}
.stories-cta{display:inline-flex;align-items:center;gap:8px;margin-top:20px;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--red);border-bottom:2px solid var(--red);padding-bottom:3px;transition:gap .2s}
[data-theme="dark"] .stories-cta{color:var(--gold);border-bottom-color:var(--gold)}
.stories-cta:hover{gap:12px}
.stories-body{position:relative;z-index:2;background:var(--section-bg);color:var(--white);padding:44px 0 64px}
.stories-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media(max-width:860px){.stories-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.stories-grid{grid-template-columns:1fr}}
.story-card{background:var(--ink);border:1px solid rgba(255,255,255,.08);border-left:3px solid var(--gold);border-radius:10px;padding:24px 22px;display:flex;flex-direction:column;gap:16px}
.story-quote{font-size:15.5px;line-height:1.6;font-style:italic;color:rgba(255,255,255,.92)}
.story-meta{margin-top:auto}
.story-author{display:block;font-weight:800;font-size:14px;color:var(--white)}
.story-tags{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--gold)}

/* ===== arquétipo FAQ (acordeão) ===== */
.faq-list{max-width:74ch;margin:0 auto;display:flex;flex-direction:column;gap:10px}
.faq-item{border:1px solid var(--line);border-radius:10px;background:var(--bg-2);overflow:hidden}
.faq-q{
  cursor:pointer;list-style:none;padding:18px 20px;
  font-size:15px;font-weight:800;display:flex;justify-content:space-between;align-items:center;
}
.faq-q::-webkit-details-marker{display:none}
.faq-q::after{content:"+";font-size:20px;font-weight:700;color:var(--red);line-height:1}
[data-theme="dark"] .faq-q::after{color:var(--gold)}
.faq-item[open] .faq-q::after{content:"–"}
.faq-a{padding:0 20px 18px;font-size:14.5px;line-height:1.7;opacity:.9}

/* ===== arquétipo Conquistas ===== */
.ach-stats{position:relative;z-index:2;background:var(--section-bg);color:var(--white);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.ach-stats-grid{display:grid;grid-template-columns:repeat(4,1fr)}
.ach-stat{padding:26px 20px;border-left:1px solid rgba(255,255,255,.12);text-align:center}
.ach-stat:first-child{border-left:none}
.ach-stat strong{display:block;font-size:clamp(28px,4vw,44px);font-weight:900;letter-spacing:-.02em}
.ach-stat small{display:block;margin-top:4px;font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
@media(max-width:680px){.ach-stats-grid{grid-template-columns:repeat(2,1fr)} .ach-stat:nth-child(3){border-left:none}}
.ach-timeline{max-width:760px;margin:0 auto;position:relative;padding-left:8px;list-style:none}
.ach-timeline::before{content:"";position:absolute;left:6px;top:6px;bottom:6px;width:2px;background:var(--line)}
.ach-tl-item{position:relative;padding:0 0 30px 28px}
.ach-tl-item::before{content:"";position:absolute;left:0;top:5px;width:13px;height:13px;border-radius:50%;background:var(--red);box-shadow:0 0 0 3px var(--panel)}
.ach-tl-year{font-size:13px;font-weight:900;color:var(--red);letter-spacing:.02em}
[data-theme="dark"] .ach-tl-year{color:var(--gold)}
[data-theme="dark"] .ach-tl-item::before{background:var(--gold)}
.ach-tl-body h3{font-size:18px;font-weight:800;margin:4px 0 6px}
.ach-tl-body p{font-size:14.5px;line-height:1.65;opacity:.9}
.ach-ranking{max-width:620px;margin:0 auto}
.ach-note{font-size:13px;color:var(--muted);margin-bottom:18px;font-style:italic}
.ach-rank-list{list-style:none}
.ach-rank-row{display:flex;align-items:center;gap:16px;padding:14px 4px;border-bottom:1px solid var(--line)}
.ach-rank-pos{font-size:14px;font-weight:900;color:var(--red);width:28px;font-variant-numeric:tabular-nums}
[data-theme="dark"] .ach-rank-pos{color:var(--gold)}
.ach-rank-name{flex:1;font-weight:700}
.ach-rank-val{font-weight:900;font-variant-numeric:tabular-nums}

/* ===== arquétipo Pessoas ===== */
.people-group{margin-bottom:44px}
.people-group-title{font-size:clamp(16px,2vw,22px);font-weight:900;text-transform:uppercase;letter-spacing:-.01em;margin-bottom:20px;padding-bottom:10px;border-bottom:2px solid var(--red)}
[data-theme="dark"] .people-group-title{border-bottom-color:var(--gold)}
.people-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
@media(max-width:860px){.people-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.people-grid{grid-template-columns:1fr}}
.person-card{background:var(--bg-2);border:1px solid var(--line);border-radius:10px;padding:22px;text-align:center}
.person-photo{width:84px;height:84px;margin:0 auto 14px;border-radius:50%;overflow:hidden;background:var(--bg-3);display:flex;align-items:flex-end;justify-content:center}
.person-silhouette{width:80%;height:84%;color:rgba(0,0,0,.18);line-height:0}
[data-theme="dark"] .person-silhouette{color:rgba(255,255,255,.22)}
.person-silhouette svg{width:100%;height:100%}
.person-role{font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--red)}
[data-theme="dark"] .person-role{color:var(--gold)}
.person-name{font-size:16px;font-weight:800;margin-top:4px}

/* ===== arquétipo Locais ===== */
.loc-group{margin-bottom:40px}
.loc-region{font-size:clamp(15px,1.8vw,20px);font-weight:900;text-transform:uppercase;letter-spacing:.04em;margin-bottom:18px;color:var(--muted)}
.loc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media(max-width:860px){.loc-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.loc-grid{grid-template-columns:1fr}}
.loc-card{background:var(--bg-2);border:1px solid var(--line);border-left:3px solid var(--red);border-radius:10px;padding:20px}
[data-theme="dark"] .loc-card{border-left-color:var(--gold)}
.loc-name{font-size:16px;font-weight:800;margin-bottom:8px}
.loc-addr{font-size:14px;line-height:1.5;opacity:.85;margin-bottom:8px}
.loc-city{font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}

/* ================== ELENCO / SQUAD ==================
   Connects to the home: light hero band (so the fixed transparent header reads
   identically), then the squad on the dark "stadium" canvas (--section-bg) with
   cinematic photo cards in the same language as the news/institutional sections.
   Brand-safe in both themes: red appears only as a filled chip with a white ring;
   accents on dark are gold/white (BRAND.md: red never touches black without white). */

/* ---- Hero band (light surface; mirrors home hero) ---- */
.squad-hero{
  position:relative;z-index:2; /* sit above the fixed (z-index:0) parallax footer */
  background:var(--hero-bg);
  color:var(--hero-text);
  padding:132px 0 48px; /* clears the fixed header */
  border-bottom:1px solid var(--line);
}
.squad-hero-inner{
  display:flex;align-items:flex-end;gap:28px;flex-wrap:wrap;
}
.squad-hero-shield{flex:0 0 auto;width:84px;height:84px}
.squad-hero-shield img{width:100%;height:100%;object-fit:contain}
.squad-hero-text{flex:1 1 320px;min-width:240px}
.squad-eyebrow{
  display:inline-flex;align-items:center;
  padding:6px 12px;margin-bottom:18px;
  background:var(--red);color:var(--white);
  font-size:11px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;
  box-shadow:0 0 0 1.5px var(--white); /* BRAND.md: white ring keeps red off the black hero in dark */
}
.squad-title{
  font-size:clamp(40px,7.5vw,96px);font-weight:900;line-height:.9;
  letter-spacing:-.03em;text-transform:uppercase;
}
.squad-subtitle{
  margin-top:12px;max-width:46ch;
  font-size:15px;font-weight:500;color:var(--muted);line-height:1.5;
}
.squad-hero-stats{display:flex;gap:32px;flex:0 0 auto}
.squad-stat{display:flex;flex-direction:column;gap:3px}
.squad-stat strong{font-size:34px;font-weight:900;line-height:1;letter-spacing:-.02em}
.squad-stat small{
  font-size:10px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);
}

/* ---- Sticky position nav ---- */
.squad-nav{
  /* top:0 — when the smart header hides on scroll-down the nav sits flush at the
     top (clean toolbar) instead of floating below an empty header gap; when the
     header scrolls back in (z-index:100) it sits above this nav (z-index:40). */
  position:sticky;top:0;z-index:40;
  background:var(--panel);border-bottom:1px solid var(--line);
}
.squad-nav-inner{
  display:flex;gap:8px;padding:12px 24px;overflow-x:auto;scrollbar-width:none;
}
.squad-nav-inner::-webkit-scrollbar{display:none}
.squad-nav a{
  flex:0 0 auto;padding:8px 16px;border-radius:999px;
  border:1px solid var(--line);color:var(--panel-text);
  font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;
  transition:background .2s,color .2s,border-color .2s,box-shadow .2s;
}
.squad-nav a:hover{
  background:var(--red);color:var(--white);border-color:var(--red);
  box-shadow:0 0 0 1.5px var(--white); /* red pill never touches the dark panel directly */
}

/* ---- Dark canvas body ---- */
.squad-body{
  position:relative;z-index:2;overflow:hidden;
  background:var(--section-bg);color:var(--white);
  padding:56px 0 84px;
}
/* marca d'água: pattern Vermelho (família Futebol) sobre o canvas escuro */
.squad-body::before{
  content:"";position:absolute;inset:0;z-index:0;
  background:url('/images/patterns/Pattern-Vermelho.png') top left / 460px repeat;
  opacity:.18; /* canvas preto engole o pattern — precisa de mais presença que os fundos claros */
  pointer-events:none;
}
.squad-body > *{position:relative;z-index:1}
.squad-group{scroll-margin-top:64px}
.squad-group + .squad-group{margin-top:56px}
.squad-group-head{display:flex;align-items:baseline;gap:14px;margin-bottom:24px}
.squad-group-index{font-size:13px;font-weight:900;color:var(--gold);font-variant-numeric:tabular-nums}
.squad-group-title{
  font-size:clamp(20px,2.4vw,30px);font-weight:900;text-transform:uppercase;letter-spacing:-.01em;
}
.squad-group-count{
  margin-left:auto;font-size:12px;font-weight:800;letter-spacing:.1em;color:var(--muted);
  font-variant-numeric:tabular-nums;
}

/* ---- Grid + player cards (news-card language + oversized shirt number) ---- */
.squad-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
@media (max-width:1100px){.squad-grid{grid-template-columns:repeat(4,1fr)}}
@media (max-width:860px){.squad-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:560px){.squad-grid{grid-template-columns:repeat(2,1fr);gap:10px}}

/* Bahia-style: light card + cutout photo + red footer bar with number + name */
.player-card{
  display:flex;flex-direction:column;overflow:hidden;
  background:#fff;
  /* white ring (BRAND.md): keeps the red bar from touching the dark canvas */
  box-shadow:0 0 0 2px #fff, 0 10px 26px -14px rgba(0,0,0,.55);
  transition:transform .3s, box-shadow .3s;
}
.player-card:hover{transform:translateY(-4px);box-shadow:0 0 0 2px #fff, 0 16px 34px -14px rgba(0,0,0,.6)}
.player-photo{
  position:relative;aspect-ratio:1/1;overflow:hidden;
  background:radial-gradient(120% 92% at 50% 0%, #ffffff 0%, #ebecf0 76%, #dcdde3 100%);
}
/* faint crest watermark inside the light card (behind the player) */
.player-photo::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:rgba(8,10,20,.05);
  -webkit-mask:url('/images/logo.png') no-repeat center 116% / 116% auto;
  mask:url('/images/logo.png') no-repeat center 116% / 116% auto;
}
.player-photo img{
  position:absolute;inset:0;z-index:2;width:100%;height:100%;
  object-fit:cover;object-position:top center;
  transition:transform .6s cubic-bezier(.2,.7,.2,1);
}
.player-card:hover .player-photo img{transform:scale(1.04)}
.player-silhouette{
  position:absolute;left:50%;bottom:0;transform:translateX(-50%);z-index:1;
  width:86%;height:88%;color:rgba(10,12,22,.16);line-height:0;
}
.player-silhouette svg{width:100%;height:100%}
.player-bar{
  display:flex;align-items:stretch;min-height:46px;
  background:var(--red);color:var(--white);
}
.player-num{
  flex:0 0 auto;min-width:48px;
  display:flex;align-items:center;justify-content:center;
  background:#A60000; /* darker-red chip — keeps red/red (no black touching red) */
  font-size:18px;font-weight:900;letter-spacing:-.02em;font-variant-numeric:tabular-nums;
}
.player-name{
  flex:1;display:flex;align-items:center;
  padding:8px 12px;
  font-size:13px;font-weight:800;line-height:1.08;letter-spacing:.01em;text-transform:uppercase;
  color:var(--white);
}

/* ---- Comissão técnica ---- */
.squad-staff{margin-top:72px;border-top:1px solid rgba(255,255,255,.12);padding-top:40px}
.squad-staff-title{
  font-size:clamp(18px,2vw,26px);font-weight:900;text-transform:uppercase;
  letter-spacing:-.01em;margin-bottom:22px;
}
.staff-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
@media (max-width:1100px){.staff-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:860px){.staff-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:480px){.staff-grid{grid-template-columns:1fr}}
.staff-card{
  display:flex;flex-direction:column;overflow:hidden;
  background:#fff;
  /* mesmo anel branco dos player-cards — BRAND.md: vermelho não toca o canvas escuro */
  box-shadow:0 0 0 2px var(--white);
}
.staff-photo{
  position:relative;aspect-ratio:4/5;background:var(--bg-3);
  display:flex;align-items:flex-end;justify-content:center;overflow:hidden;
}
.staff-photo img{
  width:100%;height:100%;object-fit:cover;object-position:center top;
  filter:grayscale(.3) contrast(1.05);
}
.staff-card[data-empty="true"] .staff-photo{
  background:var(--ink);color:var(--muted);
}
.staff-card[data-empty="true"] .staff-photo .player-silhouette{
  width:60%;height:auto;color:rgba(255,255,255,.18);
}
.staff-bar{
  background:var(--red);color:var(--white);
  padding:12px 14px;display:flex;flex-direction:column;gap:2px;
}
.staff-role{font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);line-height:1.1}
.staff-name{font-size:15px;font-weight:800;color:var(--white);line-height:1.15}

/* ---- Filtros do elenco — botões interativos (substitui .squad-nav âncora) ---- */
.squad-filters{
  position:sticky;top:0;z-index:40;
  background:var(--panel);border-bottom:1px solid var(--line);
}
.squad-filters-inner{
  display:flex;gap:8px;padding:12px 24px;overflow-x:auto;scrollbar-width:none;
}
.squad-filters-inner::-webkit-scrollbar{display:none}
.squad-filter{
  flex:0 0 auto;padding:8px 16px;border-radius:999px;
  border:1px solid var(--line);color:var(--panel-text);background:transparent;
  font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;
  font-family:inherit;cursor:pointer;
  transition:background .2s,color .2s,border-color .2s,box-shadow .2s;
}
.squad-filter:hover{
  background:var(--red);color:var(--white);border-color:var(--red);
  box-shadow:0 0 0 1.5px var(--white);
}
.squad-filter.is-active{
  background:var(--red);color:var(--white);border-color:var(--red);
  box-shadow:0 0 0 1.5px var(--white);
}
.squad-filter:focus-visible{ outline:2px solid var(--gold); outline-offset:2px; }

/* ---- Responsive ---- */
@media (max-width:768px){
  .squad-hero{padding:96px 0 36px}
  .squad-hero-stats{gap:24px}
  .squad-stat strong{font-size:26px}
  .squad-nav-inner{padding:10px 16px}
  .squad-group{scroll-margin-top:60px}
  .squad-body{padding:40px 0 64px}
}

/* ── Admin · Censo Coral (agregados) ──────────────────────────────────── */
.adm-cns-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.adm-cns-card { padding: 22px; }
.adm-cns-q { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 16px; }
[data-theme="dark"] .adm-cns-q { color: #fff; }
.adm-cns-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.adm-cns-row { display: grid; grid-template-columns: 130px 1fr 76px; align-items: center; gap: 10px; font-size: 12px; }
.adm-cns-label { color: var(--muted); font-weight: 700; }
.adm-cns-track { display: block; height: 10px; background: var(--bg-2); border-radius: 5px; overflow: hidden; }
.adm-cns-track i { display: block; height: 100%; background: var(--red); border-radius: 5px; }
[data-theme="dark"] .adm-cns-track i { background: var(--gold); }
.adm-cns-val { text-align: right; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
[data-theme="dark"] .adm-cns-val { color: #fff; }

/* ── Admin · Sorteios ─────────────────────────────────────────────────── */
.adm-draw-count { width: 72px; text-align: center; }
.adm-draw-check { flex-direction: row; align-items: center; gap: 8px; }
.adm-draw-check input { width: 16px; height: 16px; accent-color: var(--red); }
.adm-draw-winners { margin: 10px 0 0; padding: 12px 14px; background: var(--bg-2); border-radius: 6px; display: grid; gap: 6px; list-style: none; font-size: 13px; }
.adm-draw-winners small { color: var(--muted); }
.adm-draw-answer { display: block; color: var(--muted); font-style: italic; font-size: 12px; }

/* ── Torcedor · Sorteios ──────────────────────────────────────────────── */
.fdr-list { display: grid; gap: 18px; }
.fdr-card { border: 1px solid var(--line); padding: 24px 22px; background: var(--panel); }
.fdr-card--closed { opacity: .85; }
.fdr-badge { display: inline-block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); color: var(--muted); margin-bottom: 10px; }
.fdr-badge.is-open { background: var(--red); color: #fff; box-shadow: 0 0 0 1.5px #fff; }
.fdr-title { font-size: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; color: var(--ink); }
[data-theme="dark"] .fdr-title { color: #fff; }
.fdr-prize { font-size: 14px; font-weight: 700; color: var(--muted); margin: 6px 0 16px; }
.fdr-join { display: grid; gap: 12px; }
.fdr-join textarea { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--bg-2); color: var(--ink); font-size: 15px; font-family: inherit; resize: vertical; }
.fdr-join textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(221,0,0,.18); }
[data-theme="dark"] .fdr-join textarea { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.15); }
.fdr-join .fan-btn { justify-self: start; }
.fdr-ok { font-size: 14px; font-weight: 800; color: #1a8f3c; }
[data-theme="dark"] .fdr-ok { color: #46d36f; }
.fdr-myanswer { font-size: 13px; font-style: italic; color: var(--muted); margin: 6px 0 12px; }
.fdr-err { font-size: 13px; font-weight: 700; color: var(--red); }
[data-theme="dark"] .fdr-err { color: #ff7a7a; }
.fdr-empty { font-size: 15px; color: var(--muted); }
.fdr-winners h3 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 8px; }
.fdr-winners ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; font-weight: 700; color: var(--ink); }
[data-theme="dark"] .fdr-winners ol { color: #fff; }

/* ── Torcedor · Notificações ──────────────────────────────────────────── */
.fnt { margin: 0 0 36px; border: 1px solid var(--line); background: var(--panel); }
.fnt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.fnt-title { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--ink); }
[data-theme="dark"] .fnt-title { color: #fff; }
.fnt-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; box-shadow: 0 0 0 1.5px #fff; }
.fnt-readall { font-size: 12px; font-weight: 700; color: var(--red); background: none; border: 0; cursor: pointer; }
[data-theme="dark"] .fnt-readall { color: var(--gold); }
.fnt-readall:hover { text-decoration: underline; }
.fnt-list { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.fnt-item + .fnt-item { border-top: 1px solid var(--line); }
.fnt-link { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 14px 20px; text-decoration: none; color: inherit; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; }
.fnt-item.is-unread .fnt-link { background: var(--bg-3); }
.fnt-link:hover { background: var(--bg-2); }
.fnt-icon { font-size: 18px; line-height: 1.2; flex: 0 0 auto; }
.fnt-body { display: grid; gap: 2px; min-width: 0; }
.fnt-body strong { font-size: 14px; font-weight: 800; color: var(--ink); }
[data-theme="dark"] .fnt-body strong { color: #fff; }
.fnt-body small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.fnt-body time { font-size: 11px; color: var(--muted); opacity: .8; }
.fnt-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin: 6px 0 0 auto; box-shadow: 0 0 0 1.5px #fff; }

/* badge de não lidas no chip do header */
.fan-chip-ava { position: relative; display: inline-flex; }
.fan-chip-badge { position: absolute; top: -6px; right: -8px; display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; box-shadow: 0 0 0 1.5px #fff; }
