/* ==========================================================================
   COPARIO 2026 · sistema visual
   Referência estética: fb_surf (cabeçalho pílula em vidro, cartões de 20px,
   botões e abas em pílula, linhas de ranking, tema claro/escuro automático).
   Marca: verde-petróleo + laranja + esmeralda; Anton (display) e BlowBrush (acento).
   Todos os caminhos de arquivo são relativos (site pode ficar em subpasta).
   ========================================================================== */

@font-face { font-family: "Anton"; src: url("../assets/fonts/Anton-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "BlowBrush"; src: url("../assets/fonts/blowbrush.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../assets/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f5f1e6;
  --bg-rgb: 245 241 230;
  --surface: #ffffff;
  --surface-2: #ece6d6;
  --ink: #0a1f1b;
  --ink-2: #3b4f4a;
  --ink-3: #5c6e69;
  --line: rgb(10 31 27 / .13);
  --deep: #0a2622;
  --deep-2: #124039;
  --orange: #f5941f;
  --accent: #c26400;          /* laranja para texto sobre fundo claro (AA) */
  --accent-fill: #f5941f;
  --on-accent: #1a0f00;
  --green: #138a5d;
  --green-soft: rgb(24 159 109 / .14);
  --shadow: 0 18px 50px -24px rgb(4 24 20 / .4);

  --font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-body: "Geist", "Segoe UI", system-ui, sans-serif;
  --font-script: "BlowBrush", "Brush Script MT", cursive;

  --r-media: 20px; --r-field: 12px; --r-pill: 999px;
  --max: 1280px; --gutter: clamp(20px, 4vw, 56px);
  --sec: clamp(72px, 10vw, 140px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 62px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071a17; --bg-rgb: 7 26 23; --surface: #0e2a25; --surface-2: #143a33;
    --ink: #f3efe2; --ink-2: #bfcbc6; --ink-3: #93a7a1; --line: rgb(243 239 226 / .14);
    --accent: #ffae4c; --green: #2bbf88; --green-soft: rgb(43 191 136 / .16);
    --shadow: 0 18px 50px -24px rgb(0 0 0 / .8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1; letter-spacing: .01em; text-transform: uppercase; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--orange); color: #1a0f00; }
[hidden] { display: none !important; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--orange); color: #1a0f00; padding: 10px 16px; border-radius: var(--r-pill); transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.section { padding-block: var(--sec); }
.h2 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
.h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.55; color: var(--ink-2); max-width: 58ch; text-wrap: pretty; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 60px); }
.sec-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }

/* ---------- Botões, chips ---------- */
.btn { --_bg: var(--surface-2); --_fg: var(--ink); --_bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: 0 26px;
  border-radius: var(--r-pill); border: 1px solid var(--_bd); background: var(--_bg); color: var(--_fg);
  font: 600 .95rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: transform .45s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .3s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn .icon { transition: transform .45s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { --_bg: var(--orange); --_fg: #1a0f00; }
.btn--primary:hover { --_bg: #ffae4c; box-shadow: 0 14px 30px -14px rgb(245 148 31 / .85); }
.btn--ghost { --_bg: transparent; --_bd: var(--line); }
.btn--ghost:hover { --_bd: var(--ink); }
.btn--glass { --_bg: rgb(255 255 255 / .12); --_bd: rgb(255 255 255 / .34); --_fg: #fff; backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
.btn--glass:hover { --_bg: rgb(255 255 255 / .24); }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 1rem; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .88rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 12px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); font: 600 .76rem/1 var(--font-body); white-space: nowrap; }
.chip--ok { background: var(--green-soft); color: var(--green); }
.chip--live { background: var(--orange); color: #1a0f00; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; }
.link-arrow .icon { color: var(--accent); transition: transform .45s var(--ease); }
.link-arrow:hover .icon { transform: translateX(5px); }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Marca e cabeçalho ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 1.5rem/1 var(--font-display); letter-spacing: .03em; text-transform: uppercase; margin-right: auto; }
.brand img { width: 28px; height: auto; }
.brand em { font-style: normal; color: var(--orange); margin-left: .22em; }

.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 12px var(--gutter) 0; pointer-events: none; }
.site-header__bar { pointer-events: auto; width: min(100%, var(--max)); margin-inline: auto; height: var(--header-h); display: flex; align-items: center; gap: clamp(12px, 2vw, 28px);
  padding: 0 10px 0 22px; border-radius: var(--r-pill); border: 1px solid transparent; color: #fff;
  transition: background-color .4s, border-color .4s, box-shadow .4s, color .4s; }
.site-header.is-scrolled .site-header__bar { background: rgb(var(--bg-rgb) / .8); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow); backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); font-weight: 500; font-size: .94rem; text-decoration: none; transition: background-color .25s; }
.nav a:hover { background: rgb(255 255 255 / .16); }
.site-header.is-scrolled .nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: rgb(255 255 255 / .16); }
.site-header.is-scrolled .nav a[aria-current="page"] { background: var(--surface-2); }
.nav .nav__cta { margin-left: 8px; background: var(--orange); color: #1a0f00; font-weight: 700; padding-inline: 20px; }
.nav .nav__cta:hover, .site-header.is-scrolled .nav .nav__cta:hover { background: #ffae4c; }
.nav-toggle { display: none; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.nav-toggle span + span { margin-top: 5px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 899px) {
  .nav-toggle { display: grid; }
  .nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: stretch; gap: 6px; padding: calc(var(--header-h) + 52px) var(--gutter) 40px; background: var(--deep); color: #fff; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .35s, transform .5s var(--ease), visibility .35s; }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  body.nav-open .site-header__bar, body.nav-open .site-header.is-scrolled .site-header__bar { background: transparent; border-color: transparent; box-shadow: none; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav a { font: 400 2rem/1.1 var(--font-display); text-transform: uppercase; min-height: 56px; padding: 0 4px; border-radius: 12px; }
  .nav .nav__cta { margin: 16px 0 0; justify-content: center; font: 700 1.05rem/1 var(--font-body); min-height: 56px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 860px); display: flex; align-items: center; color: #fff; background: var(--deep); overflow: clip; isolation: isolate; border-radius: 0 0 32px 32px; }
.hero__bg { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(60% 55% at 78% 40%, rgb(24 159 109 / .32), transparent 70%),
  radial-gradient(45% 45% at 15% 100%, rgb(245 148 31 / .16), transparent 70%), var(--deep); }
.hero__bg::before, .page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../assets/img/texture.jpg") center/cover; opacity: .1; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(10 38 34 / .7), rgb(10 38 34 / 0) 55%); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); padding-inline: 22px; align-items: center; gap: 24px; padding-block: 96px clamp(40px, 7vh, 72px); }
.hero__mark { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgb(255 255 255 / .85); margin-bottom: 22px; }
.hero__mark i { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px rgb(245 148 31 / .25); }
.hero h1, .page-hero h1 { text-transform: none; letter-spacing: 0; }
.hero h1 { font-size: clamp(2.8rem, 7.4vw, 6.9rem); line-height: 1; }
.hero h1 span { color: var(--orange); }
.hero__sub { margin-top: 24px; max-width: 40ch; font-size: clamp(1.1rem, 1.8vw, 1.5rem); line-height: 1.5; color: rgb(255 255 255 / .9); }
.hero__sub strong { color: #fff; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__crest { justify-self: center; width: min(100%, 560px); filter: drop-shadow(0 30px 50px rgb(0 0 0 / .5)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 899px) { .hero__inner { grid-template-columns: 1fr; gap: 28px; padding-top: 110px; } .hero__crest { order: -1; width: min(52vw, 230px); } }

/* ---------- Manifesto + números ---------- */
.manifesto-text { font: 400 clamp(1.5rem, 3.4vw, 2.8rem)/1.2 var(--font-display); text-transform: uppercase; max-width: 26em; }
.manifesto-text em { font-style: normal; color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-top: clamp(36px, 5vw, 64px); }
.stat { padding: 26px; border-radius: var(--r-media); background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font: 400 clamp(3rem, 6vw, 4.6rem)/1 var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; color: var(--ink-2); font-size: .95rem; }

/* ---------- Tabelas (teaser na home) ---------- */
.teaser { background: var(--deep); color: #fff; border-radius: 32px; margin-inline: clamp(8px, 1.5vw, 20px); position: relative; overflow: clip; }
.teaser .lead { color: rgb(255 255 255 / .78); }
.teaser .eyebrow { color: var(--orange); }
.tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tcard { display: grid; gap: 20px; grid-template-rows: auto 1fr auto; min-height: 230px; padding: 24px; border-radius: var(--r-media); text-decoration: none; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .14);
  transition: transform .5s var(--ease), border-color .3s, background-color .3s; }
.tcard:hover { transform: translateY(-4px); border-color: var(--orange); background: rgb(255 255 255 / .1); }
.tcard__name { font: 400 2.4rem/1 var(--font-display); text-transform: uppercase; }
.tcard__meta { color: rgb(255 255 255 / .7); font-size: .9rem; margin-top: 8px; }
.tcard__next { align-self: start; font-size: .88rem; color: rgb(255 255 255 / .86); display: grid; gap: 3px; }
.tcard__next small { color: var(--orange); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .7rem; }
.tcard__go { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: .9rem; color: var(--orange); }
.tcard__go .icon { transition: transform .45s var(--ease); }
.tcard:hover .tcard__go .icon { transform: translateX(4px); }

/* ---------- Categorias ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cat { border-radius: var(--r-media); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: grid; }
.cat img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.cat div { padding: 22px 22px 26px; display: grid; gap: 10px; }
.cat h3 { font-size: 2rem; }
.cat p { color: var(--ink-2); font-size: .96rem; }

/* ---------- História ---------- */
.hist { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 999px) { .hist { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hist article:last-child { grid-column: 1 / -1; } .hist article:last-child .hist__crest { aspect-ratio: 21/9; } }
@media (max-width: 520px) { .hist { grid-template-columns: 1fr; } .hist article:last-child .hist__crest { aspect-ratio: 16/10; } }
.hist article { display: flex; flex-direction: column; border-radius: var(--r-media); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.hist img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.hist .hist__txt { padding: 18px 20px 22px; display: grid; gap: 8px; }
.hist .hist__year { font: 400 2rem/1 var(--font-display); color: var(--accent); }
.hist p { color: var(--ink-2); font-size: .94rem; }
.hist .hist__crest { position: relative; aspect-ratio: 16/10; background: var(--deep); }
.hist .hist__crest img { position: absolute; inset: 4%; width: 92%; height: 92%; aspect-ratio: auto; object-fit: contain; }

/* ---------- Calendário ---------- */
.schedule { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.facts { display: grid; gap: 12px; margin-top: 30px; }
.fact { display: flex; gap: 16px; align-items: center; padding: 16px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.fact .icon { width: 26px; height: 26px; color: var(--accent); }
.fact strong { display: block; }
.fact span { color: var(--ink-3); font-size: .9rem; }
.countdown { padding: clamp(24px, 3.5vw, 40px); border-radius: 28px; background: var(--deep); color: #fff; }
.countdown .eyebrow { color: var(--orange); }
.countdown h3 { font-size: 2rem; margin-bottom: 22px; }
.cd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cd-unit { padding: 18px 6px 14px; text-align: center; border-radius: 16px; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .12); }
.cd-unit b { display: block; font: 400 clamp(2.2rem, 5vw, 3.4rem)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.cd-unit span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / .66); }
.countdown .cd-live { font: 400 2.6rem/1 var(--font-script); color: var(--orange); }
@media (max-width: 860px) { .schedule { grid-template-columns: 1fr; } }

/* ---------- Galeria ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { min-height: 44px; padding: 0 20px; border: 1px solid var(--line); background: transparent; border-radius: var(--r-pill); font: 600 .94rem/1 var(--font-body); transition: background-color .3s, color .3s, border-color .3s; }
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--deep); color: #fff; border-color: var(--deep); }
@media (prefers-color-scheme: dark) { .tab[aria-selected="true"] { background: var(--orange); color: #1a0f00; border-color: var(--orange); } }
.gallery-grid { columns: 3 260px; column-gap: 12px; margin-top: 22px; }
.gallery-grid[hidden] { display: none; }
.gallery-item { display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--surface-2); break-inside: avoid; }
.gallery-item img { width: 100%; transition: transform .7s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-note { color: var(--ink-3); margin-top: 14px; }
.lightbox { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; background: rgb(3 14 12 / .94); }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 88vh; border-radius: 12px; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .3); background: rgb(255 255 255 / .1); color: #fff; }
.lb-btn:hover { background: rgb(255 255 255 / .22); }
.lb-btn .icon { width: 22px; height: 22px; }
.lb-close { top: 18px; right: 18px; } .lb-prev { left: 18px; } .lb-next { right: 18px; }

/* ---------- Ação social, estrutura, imprensa, apoio ---------- */
.mission { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.mission figure { margin: 0; border-radius: 28px; overflow: hidden; }
.mission-list { display: grid; gap: 10px; margin-top: 28px; }
.mission-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.mission-item .icon { color: var(--green); width: 22px; height: 22px; }
@media (max-width: 860px) { .mission { grid-template-columns: 1fr; } }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 12px; }
.bento figure { position: relative; margin: 0; border-radius: var(--r-media); overflow: hidden; background: var(--surface-2); }
.bento img { width: 100%; height: 100%; object-fit: cover; }
.bento figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: var(--r-pill); background: rgb(10 38 34 / .75); color: #fff; font-size: .8rem; font-weight: 600; backdrop-filter: blur(8px); }
.bento .b1 { grid-row: span 2; } .bento .b2 { grid-column: span 2; } .bento .b5 { grid-column: span 2; }
@media (max-width: 760px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento .b2, .bento .b5 { grid-column: span 2; } }

.press { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 56px); }
.news { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .4s var(--ease); }
.news:first-child { border-top: 1px solid var(--line); }
.news:hover { padding-inline: 14px; }
.news small { display: block; color: var(--accent); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; margin-bottom: 4px; }
.news span { font-weight: 600; font-size: 1.08rem; line-height: 1.35; }
@media (max-width: 860px) { .press { grid-template-columns: 1fr; } }

.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 16px; }
.pgroup.wide { grid-column: 1 / -1; }
.pgroup h4 { display: flex; align-items: center; gap: 14px; font: 600 .78rem/1 var(--font-body); letter-spacing: .16em; color: var(--ink-3); margin-bottom: 14px; }
.pgroup h4::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.plates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.plate { display: grid; place-items: center; height: 260px; padding: 28px; border-radius: 24px; background: #fff; border: 1px solid rgb(10 31 27 / .08); box-shadow: 0 1px 0 rgb(10 31 27 / .03); }
.plate img { max-height: 192px; max-width: 100%; width: auto; height: auto; }
.pgroup.wide .plate { height: 320px; } .pgroup.wide .plate img { max-height: 250px; }
.pgroup.wide .plate img.lg-light { max-height: 260px; } .pgroup.wide .plate img.lg-cnseg { max-height: 190px; }
.pgroup:not(.wide) .plate { height: 220px; } .plate img.lg-rj { max-height: 144px; } .plate img.lg-lep { max-height: 86px; } .plate img.lg-excess { max-height: 120px; }
@media (max-width: 760px) { .pgrid { grid-template-columns: 1fr; } .plate, .pgroup.wide .plate, .pgroup:not(.wide) .plate { height: 220px; } .plate img, .pgroup.wide .plate img { max-height: 168px; } .plate img.lg-rj { max-height: 144px; } .plate img.lg-lep { max-height: 86px; } .plate img.lg-excess { max-height: 120px; } .pgroup.wide .plate img.lg-light { max-height: 160px; } .pgroup.wide .plate img.lg-cnseg { max-height: 100px; } }

.final { position: relative; text-align: center; background: var(--deep); color: #fff; border-radius: 32px; margin-inline: clamp(8px, 1.5vw, 20px); overflow: clip; padding-block: clamp(80px, 11vw, 150px); }
.final .script { font: 400 clamp(2.6rem, 7vw, 5.6rem)/1 var(--font-script); color: var(--orange); }
.final .lead { color: rgb(255 255 255 / .8); margin: 22px auto 0; }
.final .hero__cta { justify-content: center; }
.final .mail { display: inline-block; margin-top: 26px; color: rgb(255 255 255 / .85); }

.site-footer { padding-block: 70px 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-grid h4 { font: 600 .74rem/1 var(--font-body); letter-spacing: .16em; color: var(--ink-3); margin-bottom: 16px; }
.footer-grid li + li { margin-top: 8px; }
.footer-grid a { text-decoration: none; } .footer-grid a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .86rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Revelar ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .hero__crest { animation: none; } html { scroll-behavior: auto; } }

/* ==========================================================================
   Página de tabelas
   ========================================================================== */
.page-hero { position: relative; color: #fff; background: var(--deep); border-radius: 0 0 32px 32px; overflow: clip; isolation: isolate; padding-block: 140px 56px; }
.page-hero { background: radial-gradient(50% 90% at 90% 0, rgb(24 159 109 / .3), transparent 70%), radial-gradient(40% 70% at 0 100%, rgb(245 148 31 / .16), transparent 70%), var(--deep); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1.02; }
.page-hero h1 span { color: var(--orange); }
.page-hero .container { padding-inline: 22px; }
.page-hero .lead { color: rgb(255 255 255 / .82); margin-top: 18px; }
.page-hero .eyebrow { color: var(--orange); }

.cat-bar { position: sticky; top: 84px; z-index: 40; margin-top: -28px; pointer-events: none; }
.cat-bar .tabs { pointer-events: auto; width: max-content; max-width: 100%; margin-inline: auto; padding: 6px; border-radius: var(--r-pill); background: rgb(var(--bg-rgb) / .86); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); overflow-x: auto; flex-wrap: nowrap; }
.cat-bar .tab { border-color: transparent; white-space: nowrap; }

.cat-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; margin-bottom: 28px; }
.cat-head h2 { font-size: clamp(2.8rem, 6vw, 5rem); }
.cat-head p { color: var(--ink-2); max-width: 60ch; margin-top: 12px; }
.cat-head .btns { display: flex; flex-wrap: wrap; gap: 10px; }

.block-title { display: flex; align-items: center; gap: 12px; font: 600 .78rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 44px 0 14px; }
.block-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.groups { display: grid; gap: 22px; }
.groups.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr)); }
.group-card { border-radius: var(--r-media); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.group-card > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px 14px; }
.group-card h3 { font-size: 1.7rem; }
.table-wrap { overflow-x: auto; }
.rank-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
.rank-table th, .rank-table td { padding: 12px 10px; text-align: center; white-space: nowrap; }
.rank-table thead th { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); padding-block: 10px; }
.rank-table tbody tr { border-top: 1px solid var(--line); }
.rank-table .pos { width: 52px; padding-left: 22px; text-align: left; font: 400 1.3rem/1 var(--font-display); color: var(--ink-3); }
.rank-table .team { text-align: left; font-weight: 600; white-space: normal; min-width: 150px; }
.rank-table thead .team { text-align: left; }
.rank-table .pts { font: 400 1.25rem/1 var(--font-display); }
.rank-table thead .pts { font: 700 .72rem/1 var(--font-body); }
.rank-table td.sg { font-weight: 700; }
.rank-table .pos-d { color: var(--ink-3); }
.rank-table tr.is-q { box-shadow: inset 3px 0 0 var(--green); }
.rank-table tr.is-q .pos { color: var(--green); }
.rank-table tr.is-q .pts { color: var(--green); }
.sg.neg { color: #c0392b; } @media (prefers-color-scheme: dark) { .sg.neg { color: #ff8a7a; } }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 14px 22px 18px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .82rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--green); margin-right: 8px; }
@media (max-width: 640px) {
  .rank-table th, .rank-table td { padding-inline: 7px; }
  .rank-table .hide-sm { display: none; }
  .rank-table .pos { padding-left: 14px; width: 38px; }
  .rank-table .team { min-width: 120px; }
}

.rounds { display: grid; gap: 28px; }
.round > h4 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font: 400 1.5rem/1 var(--font-display); margin-bottom: 12px; }
.round > h4 small { font: 500 .88rem var(--font-body); color: var(--ink-3); text-transform: none; letter-spacing: 0; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 10px; }
.game { padding: 14px 18px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; }
.game__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .78rem; color: var(--ink-3); }
.game__meta b { color: var(--ink); font-weight: 700; }
.game__meta .chip { margin-left: auto; }
.game__main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.game__team { font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.game__team.away { text-align: right; }
.game__team.tbd { color: var(--ink-3); font-weight: 500; font-style: italic; }
.game__team.win { color: var(--green); }
.score { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 12px; background: var(--surface-2); font: 400 1.5rem/1 var(--font-display); font-variant-numeric: tabular-nums; min-width: 84px; justify-content: center; }
.score.empty { color: var(--ink-3); font-size: 1.05rem; letter-spacing: .1em; }
.score small { font: 600 .7rem var(--font-body); color: var(--ink-3); }
.game--ko { border-color: rgb(245 148 31 / .55); }
.folga { margin-top: 10px; padding: 10px 16px; border-radius: 12px; border: 1px dashed var(--line); color: var(--ink-3); font-size: .88rem; }
.folga b { color: var(--ink-2); }
.next-ribbon { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding: 14px 20px; border-radius: 16px; background: var(--green-soft); color: var(--ink); margin-bottom: 8px; font-size: .94rem; }
.next-ribbon b { color: var(--green); }
.sheet-note { margin-top: 36px; padding: 18px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-3); font-size: .88rem; }
.sheet-imgs { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.sheet-imgs a { display: block; width: 150px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.sheet-imgs img { width: 100%; }
@media (max-width: 520px) { .game__main { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 6px; } .game__team.away { text-align: center; } }

/* ---------- Painel (admin) ---------- */
.admin { padding-block: 120px 80px; }
.admin h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); text-transform: none; }
.card { padding: 20px; border-radius: var(--r-media); background: var(--surface); border: 1px solid var(--line); }
.card p { color: var(--ink-3); font-size: .88rem; }
.stack { display: grid; gap: 10px; }
.field, select.field { width: 100%; height: 48px; padding: 0 14px; border-radius: var(--r-field); border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
.field:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field:disabled { opacity: .5; }
.pin { width: 68px; height: 56px; padding: 0; text-align: center; font: 400 1.9rem var(--font-display); }
.pin.sm { width: 52px; height: 42px; font-size: 1.3rem; }
.login-card { max-width: 420px; margin: 4vh auto 0; padding: 32px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.login-card h1 { font-size: 2.4rem; }
.form-error { min-height: 1.4em; margin-top: 10px; color: #c0392b; font-size: .9rem; font-weight: 600; }
@media (prefers-color-scheme: dark) { .form-error { color: #ff8a7a; } }
.adm-bar { display: grid; gap: 12px; margin: 28px 0 22px; }
.adm-bar .tabs { flex-wrap: wrap; }
.adm-bar .tab { white-space: nowrap; }
.adm-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px; align-items: start; }
.adm-side { position: sticky; top: 90px; display: grid; gap: 14px; }
.adm-side .groups { gap: 12px; }
.adm-det summary { cursor: pointer; font-weight: 600; }
.adm-det[open] summary { margin-bottom: 14px; }
.teams-edit { display: grid; gap: 6px; }
.teams-edit label { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink-3); }
.adm-games { display: grid; gap: 12px; }
.jcard { display: grid; gap: 14px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.jcard.is-done { border-color: rgb(24 159 109 / .5); }
.jcard.is-dirty { border-color: var(--orange); box-shadow: 0 0 0 3px rgb(245 148 31 / .18); }
.jmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .8rem; color: var(--ink-3); }
.jmeta b { color: var(--ink); }
.jmeta .chip { margin-left: auto; }
.jmain { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.jteam { font-weight: 700; font-size: 1.05rem; line-height: 1.25; overflow-wrap: anywhere; }
.jteam.r { text-align: right; }
.jteam.tbd { color: var(--ink-3); font-weight: 500; font-style: italic; }
.jscore { display: inline-flex; align-items: center; gap: 8px; }
.jscore i, .jpen i { font-style: normal; color: var(--ink-3); font-weight: 700; }
.jpen { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink-3); font-size: .85rem; }
.jpen[hidden] { display: none; }
.jnote { color: var(--ink-3); font-size: .85rem; }
.jdet summary { cursor: pointer; font-size: .85rem; color: var(--ink-3); }
.jwhen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.jwhen .field { width: auto; height: 42px; }
.jbtns { display: flex; flex-wrap: wrap; gap: 10px; }
.jbtns .btn { flex: 1 1 160px; min-height: 52px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; z-index: 99; max-width: calc(100% - 32px); padding: 14px 22px; border-radius: var(--r-pill); background: var(--deep); color: #fff; font-weight: 600; font-size: .92rem; text-align: center; transition: opacity .3s, transform .5s var(--ease); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: #b3261e; }
@media (max-width: 960px) { .adm-grid { grid-template-columns: 1fr; } .adm-side { position: static; } }
@media (max-width: 520px) { .jmain { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; } .jteam.r { text-align: center; } .pin { width: 76px; } }
