/* Concursos Atual — editorial news portal */
:root {
  --ink: #0f1c2e;
  --ink-soft: #2a3a4f;
  --muted: #5a6b7d;
  --line: #d8e0ea;
  --paper: #f7f9fc;
  --white: #ffffff;
  --brand: #0b6e4f;
  --brand-dark: #08553c;
  --brand-light: #e8f5ef;
  --accent: #c45c26;
  --hero-from: #0a2744;
  --hero-to: #0b6e4f;
  --ad-bg: #f0f3f7;
  --radius: 6px;
  --shadow: 0 8px 28px rgba(15, 28, 46, 0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Skip link — accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Top bar */
.topbar {
  background: var(--ink);
  color: #c9d4e2;
  font-size: 0.8rem;
  padding: 0.45rem 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.topbar a {
  color: #c9d4e2;
  text-decoration: none;
}

.topbar a:hover {
  color: #fff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--hero-from), var(--brand));
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--brand-light);
  color: var(--brand-dark);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(11, 110, 79, 0.55), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(196, 92, 38, 0.25), transparent 50%),
    linear-gradient(135deg, var(--hero-from) 0%, #123a5c 45%, var(--brand-dark) 100%);
  overflow: hidden;
  padding: 3.5rem 0 4rem;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ee0c4;
  margin-bottom: 0.85rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  max-width: 18ch;
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.1rem;
  max-width: 42ch;
  color: #d5e4f2;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #fff;
  color: var(--hero-from);
}

.btn-primary:hover {
  background: #e8f5ef;
  color: var(--brand-dark);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-solid {
  background: var(--brand);
  color: #fff;
}

.btn-solid:hover {
  background: var(--brand-dark);
  color: #fff;
}

/* Layout */
.section {
  padding: 3rem 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
}

.section-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--brand);
  white-space: nowrap;
}

/* Featured grid */
.featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
}

.story {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.story:hover {
  box-shadow: var(--shadow);
  border-color: #c5d3e2;
}

.story-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #123a5c, #0b6e4f);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.story-media.prf {
  background:
    linear-gradient(160deg, rgba(10, 39, 68, 0.2), rgba(10, 39, 68, 0.75)),
    linear-gradient(135deg, #0a2744, #1a5c8a 40%, #0b6e4f);
}

.story-media.federal {
  background: linear-gradient(135deg, #1e3a5f, #2d6a8f);
}

.story-media.estadual {
  background: linear-gradient(135deg, #2c4a3e, #4a7c59);
}

.story-media.guia {
  background: linear-gradient(135deg, #4a3728, #8b5e3c);
}

.story-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
}

.story-body {
  padding: 1.15rem 1.25rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.story h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
}

.story h3 a {
  color: inherit;
  text-decoration: none;
}

.story h3 a:hover {
  color: var(--brand);
}

.story-excerpt {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex: 1;
}

.story-more {
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.story-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.story-list .story {
  flex-direction: row;
  min-height: 0;
}

.story-list .story-media {
  width: 38%;
  aspect-ratio: auto;
  min-height: 100%;
  flex-shrink: 0;
}

.story-list .story-body {
  padding: 1rem 1.1rem;
}

.story-list h3 {
  font-size: 1.05rem;
}

/* Category chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
}

.chip {
  display: inline-flex;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}

.chip:hover,
.chip[aria-current="page"] {
  border-color: var(--brand);
  background: var(--brand-light);
  color: var(--brand-dark);
}

/* Grid of stories */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* Ad slots — clearly labeled for AdSense compliance */
.ad-slot {
  background: var(--ad-bg);
  border: 1px dashed #b8c4d4;
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  margin: 1.5rem 0;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.ad-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ad-slot p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Disclaimer strip */
.disclaimer {
  background: #fff8f0;
  border-top: 1px solid #f0dcc4;
  border-bottom: 1px solid #f0dcc4;
  padding: 0.9rem 0;
  font-size: 0.88rem;
  color: #6b4e32;
}

.disclaimer strong {
  color: #4a3420;
}

/* Article page */
.article-hero {
  padding: 2.5rem 0 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.article-cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.article-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  max-width: 22ch;
  margin: 0 0 1rem;
}

.article-deck {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 55ch;
  margin-bottom: 1.25rem;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  align-items: center;
}

.byline-author {
  font-weight: 700;
  color: var(--ink-soft);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2.5rem;
  padding: 2.5rem 0 3.5rem;
  align-items: start;
}

.prose {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.prose h2 {
  font-size: 1.45rem;
  margin: 1.75rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.2rem;
  margin: 1.4rem 0 0.6rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--brand);
  background: var(--brand-light);
  color: var(--ink-soft);
  font-style: italic;
}

.prose .callout {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.prose .callout strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.widget {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.widget h3 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.widget li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.widget a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.widget a:hover {
  color: var(--brand);
}

/* Static pages */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
}

.page-hero p {
  color: var(--muted);
  margin: 0;
  max-width: 50ch;
}

.page-content {
  padding: 2.5rem 0 3.5rem;
}

.page-content .prose {
  max-width: 760px;
}

/* Contact form */
.form {
  display: grid;
  gap: 1rem;
  max-width: 560px;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.form input,
.form textarea,
.form select {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
}

.form-note {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Category page header */
.cat-banner {
  padding: 2.75rem 0;
  color: #fff;
  background: linear-gradient(135deg, var(--hero-from), var(--brand-dark));
}

.cat-banner.prf {
  background: linear-gradient(135deg, #0a2744, #1565a8 50%, #0b6e4f);
}

.cat-banner h1 {
  color: #fff;
  margin: 0 0 0.5rem;
}

.cat-banner p {
  margin: 0;
  color: #cfe0f0;
  max-width: 48ch;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #a8b8c9;
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: #a8b8c9;
  text-decoration: none;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-brand .brand-name {
  color: #fff;
  font-size: 1.25rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  max-width: 32ch;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* Animations */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1,
.hero-lead,
.hero-actions {
  animation: fade-up 0.55s ease both;
}

.hero-lead {
  animation-delay: 0.08s;
}

.hero-actions {
  animation-delay: 0.16s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .featured,
  .article-layout,
  .footer-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .story-list .story {
    flex-direction: column;
  }

  .story-list .story-media {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .sidebar {
    position: static;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Cookie notice — LGPD / AdSense transparency */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  max-width: 560px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1rem 1.15rem;
  display: none;
  gap: 0.85rem;
  align-items: flex-start;
}

.cookie-banner.is-visible {
  display: flex;
  flex-wrap: wrap;
  animation: fade-up 0.35s ease both;
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 240px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.cookie-banner .btn {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

@media (max-width: 780px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    gap: 0.15rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    border-radius: 8px;
  }
}

/* Status hub — /concurso-prf/ */
.status-hero {
  padding: 2.75rem 0 2rem;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 60% at 90% 10%, rgba(11, 110, 79, 0.45), transparent 55%),
    linear-gradient(135deg, #0a2744 0%, #123a5c 50%, #08553c 100%);
}

.status-hero h1 {
  color: #fff;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin: 0 0 0.65rem;
  max-width: 18ch;
}

.status-hero .deck {
  margin: 0;
  color: #cfe0f0;
  font-size: 1.12rem;
  max-width: 42ch;
}

.status-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.35rem 1.5rem;
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow);
}

.status-card.alert {
  border-left: 5px solid var(--accent);
  background: #fffaf6;
}

.status-card .label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.status-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.75rem 0;
}

.status-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.1rem;
}

.status-item .k {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.status-item .v {
  font-weight: 700;
  color: var(--ink);
  font-size: 1.02rem;
}

.official-links {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.official-links li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.official-links a {
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  .status-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .status-grid {
    grid-template-columns: 1fr;
  }
}
