/* Radar Brasil — tech-blue-gray data-light newsroom */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --bg: #eef1f5;
  --surface: #ffffff;
  --surface-alt: #f7f9fb;
  --text: #152232;
  --text-muted: #5c6d80;
  --text-light: #8a9bb0;
  --accent: #1e5a96;
  --accent-hover: #164878;
  --accent-soft: #dce8f4;
  --accent-muted: #4a7fb5;
  --border: #cdd6e0;
  --border-light: #e4eaf0;
  --category-dados: #2d6a9f;
  --category-economia: #3d7a6e;
  --category-politica: #7a4d8f;
  --category-tecnologia: #4a6fa5;
  --category-analise: #8b6914;
  --radius: 8px;
  --radius-lg: 12px;
  --container: 960px;
  --header-h: 64px;
  --shadow-sm: 0 1px 3px rgba(21, 34, 50, 0.06);
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

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

/* ── Header ── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--accent); }
.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-mark svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
  transition: var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.main-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
}
.main-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(21, 34, 50, 0.4);
  z-index: 90;
}
.nav-overlay.visible { display: block; }

/* ── Hero (text-only lead) ── */
.hero-lead {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border-light);
  background: var(--surface);
}
.hero-lead .category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--category-dados);
  margin-bottom: 12px;
}
.hero-lead h1 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: 720px;
}
.hero-lead h1 a { color: inherit; }
.hero-lead h1 a:hover { color: var(--accent); }
.hero-lead .dek {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--text-light);
}
.hero-meta strong { color: var(--text-muted); font-weight: 500; }

/* ── Numbered article list ── */
.feed-section {
  padding: 40px 0 56px;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.numbered-feed {
  list-style: none;
  counter-reset: feed;
}
.numbered-feed li {
  counter-increment: feed;
  border-bottom: 1px solid var(--border-light);
}
.numbered-feed li:last-child { border-bottom: none; }

.feed-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px 0;
  align-items: start;
}
.feed-item::before {
  content: counter(feed, decimal-leading-zero);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-soft);
  background: var(--surface);
  line-height: 1;
  padding-top: 2px;
  -webkit-text-stroke: 1px var(--accent-muted);
  color: transparent;
}
.feed-item-body h2 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.feed-item-body h2 a { color: var(--text); }
.feed-item-body h2 a:hover { color: var(--accent); }
.feed-item-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.55;
}
.feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ── Category tags ── */
.tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
}
.tag--dados { background: #dceaf5; color: var(--category-dados); }
.tag--economia { background: #dceee9; color: var(--category-economia); }
.tag--politica { background: #eadcf0; color: var(--category-politica); }
.tag--tecnologia { background: #dce5f0; color: var(--category-tecnologia); }
.tag--analise { background: #f0eadc; color: var(--category-analise); }

/* ── Cards (flat) ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-flat { box-shadow: none; }

/* ── Article grid (split-content-rail) ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 40px 0 56px;
}
@media (min-width: 768px) {
  .article-layout {
    grid-template-columns: 1fr 280px;
    gap: 48px;
  }
}

.article-main { min-width: 0; }

.article-header { margin-bottom: 32px; }
.article-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 12px 0 16px;
}
.article-header .dek {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.article-content h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 32px 0 12px;
  letter-spacing: -0.02em;
}
.article-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 24px 0 10px;
}
.article-content p {
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.7;
}
.article-content ul, .article-content ol {
  margin: 0 0 18px 24px;
  line-height: 1.7;
}
.article-content li { margin-bottom: 6px; }
.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--surface-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}
.article-content .data-point {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.9375rem;
}
.article-content .data-point strong {
  display: block;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.article-figure {
  margin: 28px 0;
}
.article-figure img,
.article-figure svg {
  border-radius: var(--radius-lg);
  width: 100%;
}
.article-figure figcaption {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-top: 8px;
}

.article-updated {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

/* ── Sidebar (author widget only) ── */
.article-sidebar { min-width: 0; }
.author-widget {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.author-widget-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--accent-soft);
}
.author-widget h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.author-widget .role {
  font-size: 0.8125rem;
  color: var(--accent-muted);
  margin-bottom: 12px;
}
.author-widget p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Page layouts ── */
.page-header {
  padding: 40px 0 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
}
.page-header h1 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.page-header p {
  color: var(--text-muted);
  max-width: 600px;
}

.page-content {
  padding: 40px 0 56px;
}
.page-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 28px 0 12px;
}
.page-content p {
  margin-bottom: 16px;
  line-height: 1.7;
}
.page-content ul, .page-content ol {
  margin: 0 0 16px 24px;
  line-height: 1.7;
}

/* ── Articles listing ── */
.articles-grid {
  display: grid;
  gap: 24px;
}
.article-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}
.article-card:hover { border-color: var(--border); }
@media (min-width: 600px) {
  .article-card {
    grid-template-columns: 200px 1fr;
  }
}
.article-card-thumb {
  aspect-ratio: 3/2;
  background: var(--accent-soft);
  overflow: hidden;
}
.article-card-thumb img,
.article-card-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.article-card-body {
  padding: 20px;
}
.article-card-body h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 8px 0;
  line-height: 1.35;
}
.article-card-body h2 a { color: var(--text); }
.article-card-body h2 a:hover { color: var(--accent); }
.article-card-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Contact form ── */
.contact-form {
  max-width: 520px;
  margin-top: 24px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9375rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { min-height: 140px; resize: vertical; }

.btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}
.btn:hover { background: var(--accent-hover); color: #fff; }

/* ── Footer (stacked links) ── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  padding: 40px 0 24px;
  margin-top: auto;
}
.footer-brand {
  margin-bottom: 28px;
}
.footer-brand .logo { margin-bottom: 8px; }
.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 400px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 4px 0;
}
.footer-links a:hover { color: var(--accent); }

.footer-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8125rem;
  color: var(--text-light);
}
.footer-bottom p { margin-bottom: 8px; }

/* ── Cookie inline footer note ── */
.cookie-note {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--surface-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}
.cookie-note a { text-decoration: underline; }

/* ── Homepage intro block ── */
.home-intro {
  padding: 32px 0;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border-light);
}
.home-intro p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.65;
}

/* ── Mobile drawer nav ── */
@media (max-width: 767px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    z-index: 110;
    padding: 80px 24px 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 24px rgba(21, 34, 50, 0.12);
  }
  .main-nav.open { transform: translateX(0); }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }
  .main-nav a {
    padding: 12px 16px;
    font-size: 1rem;
  }
}

/* ── Utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
