/* ============================================
   Portal Notícias — visual "jornal / portal"
   ============================================ */

:root {
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --muted: #777;
  --accent: #b71c1c;
  --accent-dark: #8e1414;
  --navy: #0f2a4a;
  --navy-dark: #0a1e36;
  --paper: #ffffff;
  --paper-alt: #f7f6f3;
  --line: #ddd8ce;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Reset e base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover, a:focus {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button {
  font-family: inherit;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 300;
  border-radius: 0 0 6px 0;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ Barra superior ============ */
.top-bar {
  background: var(--ink);
  color: #d6d3cd;
  font-size: 0.8rem;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 7px;
  padding-bottom: 7px;
}

.top-bar-date {
  text-transform: capitalize;
}

.top-bar-note strong {
  color: #fff;
}

/* ============ Masthead ============ */
.masthead {
  background: var(--paper);
  border-bottom: 3px double var(--ink);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover, .brand:focus {
  text-decoration: none;
}

.brand-name {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-name em {
  color: var(--accent);
  font-style: normal;
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
}

.masthead-aside {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
  line-height: 1.5;
}

/* ============ Navegação de seções ============ */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.nav-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 8px 12px;
  margin: 8px 0;
  border-radius: 4px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
}

.main-nav a {
  color: #e8e6e1;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 13px 14px;
  text-decoration: none;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:first-child {
  border-left: none;
}

.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* ============ Manchete ============ */
.headline {
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 36px;
}

.kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 3px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 8px;
}

.headline h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 820px;
  margin-bottom: 16px;
}

.headline h1 em {
  color: var(--accent);
  font-style: italic;
}

.headline .lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 760px;
  margin-bottom: 20px;
}

.headline-flags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 18px;
}

.headline-flags li {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  padding-left: 16px;
  position: relative;
}

.headline-flags li::before {
  content: "▪";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.byline {
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  max-width: 760px;
}

/* ============ Layout com sidebar ============ */
.layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  padding: 36px 0 8px;
}

/* ============ Títulos de seção ============ */
.section-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 800;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.section-title span {
  color: var(--accent);
}

.section-intro {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.content-col section {
  margin-bottom: 40px;
}

/* ============ Grade de notícias ============ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.news-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.news-card:nth-child(odd) {
  padding-right: 22px;
  border-right: 1px solid var(--line);
}

.news-card:nth-child(even) {
  padding-left: 22px;
}

.news-card .kicker {
  font-size: 0.68rem;
  margin-bottom: 6px;
}

.news-card h3 {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
}

.news-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.news-meta {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============ Timeline de etapas ============ */
.steps {
  counter-reset: step;
  list-style: none;
  border-top: 1px solid var(--line);
}

.steps li {
  position: relative;
  padding: 18px 0 18px 56px;
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}

.steps li strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.steps li p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ============ Cards de disciplinas ============ */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.topic-card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  background: var(--paper);
  padding: 16px 18px;
}

.topic-card h3 {
  font-family: var(--serif);
  font-size: 1rem;
  margin-bottom: 6px;
}

.topic-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ============ Box de fontes oficiais ============ */
.official-box {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-left: 5px solid var(--navy);
  padding: 22px 24px;
}

.official-box ul {
  list-style: none;
}

.official-box li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.official-box li:last-child {
  border-bottom: none;
}

.official-box a {
  font-weight: 700;
}

.official-warning {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--accent-dark);
  font-weight: 600;
}

/* ============ FAQ ============ */
.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  padding: 16px 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding: 0 0 16px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
  max-width: 700px;
}

/* ============ Sidebar ============ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.aside-box {
  border: 1px solid var(--line);
  background: var(--paper-alt);
  padding: 18px 20px;
}

.aside-box.alert {
  background: #fbf3e8;
  border-color: #e6cfa8;
  border-top: 4px solid var(--accent);
}

.aside-box h2, .aside-box h3 {
  font-family: var(--serif);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.aside-box p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.aside-list {
  list-style: none;
  counter-reset: read;
}

.aside-list li {
  counter-increment: read;
  padding: 10px 0 10px 34px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  line-height: 1.45;
}

.aside-list li:last-child {
  border-bottom: none;
}

.aside-list li::before {
  content: counter(read);
  position: absolute;
  left: 0;
  top: 10px;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
}

.aside-list a {
  color: var(--ink);
  font-weight: 600;
}

.aside-list a:hover {
  color: var(--accent);
  text-decoration: none;
}

.aside-box .info-list {
  list-style: none;
  font-size: 0.85rem;
}

.aside-box .info-list li {
  margin-bottom: 8px;
}

/* ============ Botões ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.15s ease;
  cursor: pointer;
  border: none;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

.btn:hover, .btn:focus {
  background: var(--accent);
  text-decoration: none;
}

/* ============ Rodapé ============ */
.site-footer {
  background: var(--ink);
  color: #b8b4ac;
  padding: 44px 0 24px;
  font-size: 0.88rem;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand em {
  color: var(--accent);
  font-style: normal;
}

.footer-disclaimer {
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: #a39e94;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  border-bottom: 1px solid #3a3a3a;
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a,
.site-footer a {
  color: #b8b4ac;
}

.footer-links a:hover, .footer-links a:focus,
.site-footer a:hover, .site-footer a:focus {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #3a3a3a;
  padding-top: 18px;
  color: #8a867e;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============ Páginas internas / legais ============ */
.legal-page {
  padding: 32px 0 8px;
}

.legal-page h1 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 8px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--ink);
}

.legal-page h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-top: 30px;
  margin-bottom: 8px;
}

.legal-page h3 {
  font-size: 1.05rem;
  margin: 18px 0 6px;
}

.legal-page p, .legal-page li {
  color: var(--ink-soft);
}

.legal-page p {
  margin-bottom: 12px;
}

.legal-page ul, .legal-page ol {
  padding-left: 22px;
  margin-bottom: 14px;
}

.legal-page li {
  margin-bottom: 8px;
}

.legal-page .info-list {
  list-style: none;
  padding-left: 0;
  margin-top: 14px;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}

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

.placeholder {
  color: #b45309;
  font-weight: 600;
  background: #fffbeb;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ============ Responsivo ============ */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .aside-box {
    flex: 1 1 260px;
  }
}

@media (max-width: 768px) {
  .masthead-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
    gap: 6px;
  }

  .masthead-aside {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-bar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 8px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 4px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card:nth-child(odd) {
    padding-right: 0;
    border-right: none;
  }

  .news-card:nth-child(even) {
    padding-left: 0;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .top-bar-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
  }

  .headline {
    padding: 30px 0 26px;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}
