:root {
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --teal-900: #0b3b3c;
  --teal-700: #0f5e5b;
  --teal-600: #137c77;
  --teal-100: #e3f2f0;
  --teal-50: #f2f9f8;
  --graphite: #1c2430;
  --slate: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f7f9fa;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --shadow-md: 0 14px 32px -12px rgba(11,59,60,.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--graphite);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 700; line-height: 1.25; color: var(--graphite); letter-spacing: -0.01em; }

a { color: var(--teal-700); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--teal-600); outline-offset: 2px; border-radius: 4px;
}

img, svg { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--teal-900); color: #fff; padding: 12px 20px;
  z-index: 50; text-decoration: none; font-weight: 700;
}
.skip-link:focus { left: 0; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal-600); margin-bottom: 10px;
}

.muted-text { font-size: .85rem; color: var(--muted); }

/* Barra de aviso de independencia */
.disclaimer-bar {
  background: #7c2d12; color: #fff;
  font-size: .86rem; padding: 10px 0; line-height: 1.5;
}
.disclaimer-bar strong { color: #fff; }
.disclaimer-bar a { color: #fff; text-decoration: underline; font-weight: 600; }

/* Header */
header {
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 16px 0; position: sticky; top: 0; z-index: 20;
}
header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: var(--teal-700); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
}
.brand h1 { font-size: 1.3rem; font-weight: 800; color: var(--graphite); }
.brand h1 span { color: var(--teal-600); }
.brand p { font-size: .78rem; color: var(--muted); margin-top: -2px; }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-cta .btn { padding: 10px 18px; font-size: .88rem; }
.update-stamp {
  font-size: .8rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px; background: var(--bg-soft);
}

/* Nav */
nav { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
nav .container { display: flex; gap: 1.6rem; flex-wrap: wrap; padding: 12px 24px; }
nav a { color: var(--slate); text-decoration: none; font-size: .9rem; font-weight: 500; }
nav a:hover { color: var(--teal-700); }

/* Sections */
main { padding: 0; }
section { padding: 56px 0; }
section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

h2 { font-size: 1.7rem; margin-bottom: 14px; }
h3 { font-size: 1.25rem; margin: 0 0 8px; }
h4 { font-size: 1.02rem; margin: 24px 0 6px; color: var(--teal-900); }
p { margin-bottom: 12px; }
.lead { font-size: 1.08rem; color: var(--slate); max-width: 760px; }
.meta { font-size: .84rem; color: var(--muted); }

/* Kicker / editoria */
.kicker {
  display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--teal-600); margin-bottom: 10px;
}

/* Cabecalho de secao */
.section-head { max-width: 760px; margin-bottom: 4px; }
.section-head h2 { margin-bottom: 8px; }
.section-head p { color: var(--slate); margin: 0; }

/* Materia de destaque */
.lead-section {
  background: linear-gradient(180deg, var(--teal-50) 0%, #fff 100%);
  padding: 48px 0 56px; border-bottom: 1px solid var(--line);
}
.lead-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 44px; align-items: start; }
.lead-story h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.4rem); font-weight: 800;
  line-height: 1.2; letter-spacing: -0.022em; margin-bottom: 14px;
}
.lead-standfirst { font-size: 1.12rem; color: var(--slate); font-weight: 500; margin-bottom: 14px; }
.lead-story p { color: var(--slate); }
.byline {
  font-size: .82rem; color: var(--muted); padding-bottom: 14px;
  border-bottom: 1px solid var(--line); margin-bottom: 16px;
}
.byline strong { color: var(--slate); }
.read-more { display: inline-block; font-weight: 700; font-size: .92rem; margin-top: 4px; }
.lead-aside { position: sticky; top: 96px; }

/* Painel de status */
.status-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  box-shadow: var(--shadow-md); margin-bottom: 18px;
}

.status-tag {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--teal-100); color: var(--teal-700); padding: 5px 10px; border-radius: 6px; margin-bottom: 12px;
}
.status-card h3 { font-size: 1.25rem; color: var(--teal-900); margin-bottom: 16px; }
.status-table { width: 100%; border-collapse: collapse; }
.status-table td { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--slate); }
.status-table td:last-child { text-align: right; }
.status-table tr:last-child td { border-bottom: none; }
.status-no, .status-wait {
  display: inline-block; font-weight: 700; font-size: .82rem;
  padding: 3px 10px; border-radius: 20px; white-space: nowrap;
}
.status-no { background: #fee2e2; color: #991b1b; }
.status-wait { background: #fef3c7; color: #92400e; }
.status-foot { font-size: .82rem; color: var(--muted); margin: 16px 0 0; }

/* Timeline */
.timeline { list-style: none; margin: 28px 0 0; padding: 0 0 0 26px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line);
}
.timeline li { position: relative; padding: 0 0 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -26px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--teal-600); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--teal-100);
}
.timeline-date {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--teal-600); margin-bottom: 3px;
}
.timeline strong { display: block; font-size: 1.02rem; color: var(--graphite); margin-bottom: 4px; }
.timeline p { color: var(--slate); font-size: .95rem; margin: 0; max-width: 720px; }
.timeline-compact li { padding-bottom: 20px; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none;
  padding: 14px 26px; border-radius: 10px;
  font-weight: 700; font-size: .96rem; font-family: inherit;
  border: 2px solid var(--teal-700); cursor: pointer;
  background: var(--teal-700); color: #fff;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--teal-900); border-color: var(--teal-900); }
.btn-outline { background: transparent; color: var(--teal-700); }
.btn-outline:hover { background: var(--teal-100); color: var(--teal-900); border-color: var(--teal-900); }

/* Two columns */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* Grade de materias */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px;
}
.story-card {
  display: flex; flex-direction: column;
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit; background: #fff; box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.story-card:hover { border-color: var(--teal-600); box-shadow: var(--shadow-md); }
.story-card .kicker { margin-bottom: 8px; }
.story-card h3 { font-size: 1.05rem; line-height: 1.35; margin-bottom: 8px; color: var(--graphite); }
.story-card p { font-size: .92rem; color: var(--slate); margin-bottom: 14px; flex: 1; }
.card-meta { font-size: .78rem; color: var(--muted); }

/* Materias completas */
.article {
  max-width: 800px; margin-top: 48px; padding-top: 36px; border-top: 2px solid var(--line);
  scroll-margin-top: 100px;
}
.article:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.article h2 { font-size: clamp(1.5rem, 2.8vw, 1.9rem); margin-bottom: 12px; letter-spacing: -0.018em; }
.article h3 { font-size: 1.18rem; margin: 26px 0 6px; color: var(--teal-900); }
.article p, .article li { color: var(--slate); }
.article ul { margin: 8px 0 14px 22px; }
.article li { margin-bottom: 6px; }
.numbered-list { margin: 8px 0 14px 22px; }
.numbered-list li { margin-bottom: 6px; color: var(--slate); }
.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .92em; }

/* Info table */
.info-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.info-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table tr:last-child td { border-bottom: none; }
.info-table td.label { font-weight: 700; width: 38%; color: var(--teal-900); background: var(--bg-soft); }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; margin-top: 10px; background: #fff; }
.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none;
  position: relative; padding-right: 30px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 13px; color: var(--teal-600); font-size: 1.3rem; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 0 16px; color: var(--slate); font-size: .95rem; margin: 0; }

/* Callout */
.callout {
  border-left: 4px solid var(--teal-600); background: var(--teal-50);
  padding: 18px 20px; border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 18px; color: var(--teal-900); font-size: .94rem;
}
.callout strong { display: block; margin-bottom: 6px; }
.callout p { margin: 0; color: var(--teal-900); }
.callout-warn { border-left-color: #b45309; background: #fffbeb; color: #78350f; }
.callout-warn p, .callout-warn strong { color: #78350f; }
.callout-warn a { color: #78350f; }

/* Legal notice */
.legal-notice {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px;
  color: var(--slate); font-size: .88rem; margin-top: 28px;
}

/* Footer */
footer { background: var(--teal-900); color: rgba(255,255,255,.75); padding: 44px 0 28px; font-size: .88rem; }
footer .container { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
footer p { margin-bottom: 0; }
footer strong { color: #fff; }
footer h4 { color: #fff; font-size: .9rem; margin: 0 0 10px; }
footer a { color: rgba(255,255,255,.75); text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer ul { list-style: none; }
footer li { margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px;
  font-size: .8rem; color: rgba(255,255,255,.6);
}
.footer-bottom .container { display: block; }

/* Utilities */
.mt-sm { margin-top: 10px; }
.mt-md { margin-top: 22px; }
.mt-lg { margin-top: 28px; }

/* Error page */
.error-page { text-align: center; padding: 88px 0; }
.error-page h2 { font-size: 2rem; }
.error-page p { color: var(--slate); max-width: 520px; margin: 0 auto 24px; }

/* Responsive */
@media (max-width: 1000px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .lead-grid { grid-template-columns: 1fr; gap: 32px; }
  .lead-aside { position: static; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .card-grid { grid-template-columns: 1fr; }
  footer .container { grid-template-columns: 1fr; }
  header { position: static; }
}
@media (max-width: 600px) {
  .lead-section { padding: 32px 0 40px; }
  section { padding: 44px 0; }
  .update-stamp { font-size: .74rem; }
  h2 { font-size: 1.5rem; }
  .info-table td { display: block; width: 100%; }
  .info-table td.label { width: 100%; }
  .status-table td { display: block; width: 100%; padding: 6px 0; }
  .status-table td:last-child { text-align: left; padding-bottom: 12px; }
  .header-cta { width: 100%; }
  .header-cta .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
