/* ===== Custom Properties ===== */
:root {
  --navy-900: #0f1b3d;
  --navy-800: #1a2a5e;
  --navy-700: #243680;
  --navy-100: #e8ecf4;
  --navy-50: #f4f6fb;
  --brand-700: #1E3A8A;
  --brand-600: #2563EB;
  --brand-50: #eef4ff;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --max-w: 1200px;
  /* Light-editorial tokens */
  --paper: #FBFAF7;
  --ink: #12161f;
  --rule: #E7E5DF;
  --max-w-text: 68ch;
  --font-display: 'Fraunces', 'Plus Jakarta Sans', Georgia, serif;
  /* Concurso status hues (dot + text, never filled) */
  --st-open: #0e7a4d;
  --st-edital: #2563EB;
  --st-pipeline: #6b7280;
  --st-done: #243680;
  --st-alert: #b45309;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  color: var(--navy-900);
  line-height: 1.2;
}
h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

@media (min-width: 768px) {
  h1 { font-size: 3.25rem; }
  h2 { font-size: 2.5rem; }
}

/* ===== Utilities ===== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 5rem 0;
}
.section-alt {
  background: var(--navy-50);
}
.section-dark {
  background: var(--navy-800);
  color: var(--white);
}
.section-dark h2,
.section-dark h3 {
  color: var(--white);
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-header p {
  margin-top: .75rem;
  color: var(--gray-500);
  font-size: 1.125rem;
}
.section-dark .section-header p {
  color: var(--navy-100);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: .875rem 2rem;
  border-radius: 100px;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--brand-700);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--brand-600);
  box-shadow: var(--shadow-lg);
}
.btn-secondary {
  color: var(--navy-800);
  font-weight: 500;
}
.btn-secondary:hover {
  color: var(--brand-600);
}
.btn-lg {
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
}
.badge {
  display: inline-block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--brand-700);
  background: rgba(37,99,235,.1);
  padding: .375rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: .75rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--navy-900);
}
.logo-mark {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}
.logo-word {
  line-height: 1;
}
.nav { display: none; align-items: center; gap: 2rem; }
.nav a {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color .2s;
}
.nav a:hover { color: var(--navy-900); }
.nav a.btn-primary {
  color: var(--white);
}
.nav a.btn-primary:hover {
  color: var(--white);
}
.nav-cta { display: none; }
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy-900);
}
.mobile-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--navy-900);
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .nav { display: flex; }
  .nav-cta { display: inline-flex; }
  .hamburger { display: none; }
}

/* ===== Hero ===== */
.hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--navy-50) 0%, var(--white) 60%);
}
.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.hero-content { max-width: 560px; }
.hero h1 { margin-bottom: 1.25rem; }
.hero p.subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.hero-mockup {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
}
.mockup-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}
.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-200);
}
.mockup-dot:first-child { background: #ef4444; }
.mockup-dot:nth-child(2) { background: var(--brand-600); }
.mockup-dot:nth-child(3) { background: #22c55e; }
.mockup-badge {
  font-size: .75rem;
  font-weight: 600;
  background: var(--navy-50);
  color: var(--navy-800);
  padding: .25rem .75rem;
  border-radius: 100px;
  margin-left: auto;
}
.mockup-question {
  font-size: .9375rem;
  color: var(--navy-900);
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.mockup-option {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  margin-bottom: .5rem;
  font-size: .875rem;
  color: var(--gray-700);
  transition: border-color .2s;
}
.mockup-option.correct {
  border-color: var(--brand-600);
  background: rgba(37,99,235,.08);
  color: var(--navy-900);
  font-weight: 500;
}
.mockup-letter {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  background: var(--gray-100);
  color: var(--gray-700);
  flex-shrink: 0;
}
.mockup-option.correct .mockup-letter {
  background: var(--brand-600);
  color: var(--white);
}
.mockup-footer {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mockup-keys {
  display: flex;
  gap: .375rem;
}
.mockup-key {
  font-size: .6875rem;
  font-weight: 600;
  padding: .25rem .5rem;
  border-radius: 4px;
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
  color: var(--gray-500);
}
.mockup-progress {
  font-size: .75rem;
  color: var(--gray-500);
}

@media (min-width: 768px) {
  .hero { padding: 10rem 0 5rem; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  gap: 1.5rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: var(--navy-50);
}
.feature-card h3 {
  margin-bottom: .5rem;
}
.feature-card p {
  color: var(--gray-500);
  font-size: .9375rem;
}

@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== How It Works ===== */
.steps-grid {
  display: grid;
  gap: 2rem;
  counter-reset: step;
}
.step {
  text-align: center;
  counter-increment: step;
}
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-700);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.step h3 {
  margin-bottom: .5rem;
}
.step p {
  color: var(--gray-500);
  max-width: 300px;
  margin: 0 auto;
  font-size: .9375rem;
}

@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

/* ===== Exams ===== */
.exams-grid {
  display: grid;
  gap: 1.5rem;
}
.exam-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: box-shadow .2s;
}
.exam-card:hover {
  box-shadow: var(--shadow-md);
}
.exam-info h3 {
  margin-bottom: .25rem;
}
.exam-info p {
  font-size: .875rem;
  color: var(--gray-500);
}
.exam-btn {
  font-size: .875rem;
  font-weight: 600;
  padding: .625rem 1.5rem;
  border-radius: 100px;
  background: var(--navy-50);
  color: var(--navy-800);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.exam-btn:hover {
  background: var(--brand-700);
  color: var(--white);
}

@media (min-width: 768px) {
  .exams-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .exams-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--brand-700);
}
.pricing-label {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-700);
  color: var(--white);
  font-weight: 700;
  font-size: .8125rem;
  padding: .25rem 1rem;
  border-radius: 100px;
}
.pricing-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.pricing-price {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: .25rem;
}
.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-500);
}
.pricing-desc {
  font-size: .875rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
}
.pricing-features {
  text-align: left;
  margin-bottom: 2rem;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem 0;
  font-size: .9375rem;
  color: var(--gray-700);
}
.pricing-features .check {
  color: var(--brand-600);
  font-weight: 700;
  flex-shrink: 0;
}
.pricing-card.dimmed {
  opacity: .6;
}
.pricing-card.dimmed .pricing-price {
  color: var(--gray-500);
}

@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--navy-900);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gray-500);
  transition: transform .2s;
}
.faq-item[open] summary::after {
  content: '\2212';
}
.faq-answer {
  padding: 0 0 1.25rem;
  color: var(--gray-500);
  line-height: 1.7;
  font-size: .9375rem;
}

/* ===== Final CTA ===== */
.final-cta {
  text-align: center;
  padding: 5rem 0;
}
.final-cta h2 {
  margin-bottom: 1rem;
}
.final-cta p.subtitle {
  font-size: 1.125rem;
  color: var(--navy-100);
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.trust-line {
  margin-top: 1rem;
  font-size: .875rem;
  color: var(--gray-500);
}
.section-dark .trust-line {
  color: var(--navy-100);
}

/* ===== Footer ===== */
.footer {
  background: var(--navy-900);
  color: var(--navy-100);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand .logo {
  margin-bottom: .75rem;
  color: var(--white);
}
.footer-brand p {
  font-size: .875rem;
  color: var(--gray-500);
  max-width: 280px;
}
.footer-col h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: .875rem;
  color: var(--gray-500);
  padding: .25rem 0;
  transition: color .2s;
}
.footer-col a:hover {
  color: var(--brand-600);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .8125rem;
  color: var(--gray-500);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ===== Legal Pages ===== */
.legal-page {
  padding: 8rem 0 5rem;
  background: linear-gradient(180deg, var(--navy-50) 0%, var(--white) 24%);
}
.legal-shell {
  max-width: 880px;
  margin: 0 auto;
}
.legal-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand-700);
  margin-bottom: 1rem;
}
.legal-header {
  margin-bottom: 2rem;
}
.legal-header p {
  margin-top: 1rem;
  color: var(--gray-500);
  font-size: 1.0625rem;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  margin-top: 1.25rem;
  font-size: .875rem;
  color: var(--gray-500);
}
.legal-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.legal-content section {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.legal-content h2 {
  font-size: 1.4rem;
}
.legal-content h3 {
  font-size: 1.05rem;
}
.legal-content p,
.legal-content li {
  color: var(--gray-700);
  line-height: 1.75;
}
.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
}
.legal-content ol {
  list-style: decimal;
  padding-left: 1.25rem;
}
.legal-note {
  background: var(--brand-50);
  border: 1px solid rgba(37,99,235,.15);
  border-radius: var(--radius-lg);
  padding: 1rem 1.125rem;
}
.legal-note p {
  font-size: .9375rem;
  color: var(--navy-800);
}
.legal-contact {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--brand-700);
  font-weight: 600;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}
.legal-table th {
  background: var(--navy-50);
  color: var(--navy-900);
  font-size: .875rem;
}
.legal-table td {
  font-size: .9375rem;
  color: var(--gray-700);
}
.legal-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 767px) {
  .legal-page {
    padding: 7rem 0 4rem;
  }
  .legal-card {
    padding: 1.5rem;
  }
  .legal-table,
  .legal-table thead,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display: block;
  }
  .legal-table thead {
    display: none;
  }
  .legal-table tr {
    border-bottom: 1px solid var(--gray-200);
    padding: .5rem 0;
  }
  .legal-table td {
    border: none;
    padding: .4rem 0;
  }
}


/* ── from Breadcrumb.astro ── */
.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
  }
  .breadcrumb li {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  .breadcrumb a {
    color: var(--brand-700);
    text-decoration: none;
    transition: color 0.2s;
  }
  .breadcrumb a:hover {
    color: var(--brand-600);
    text-decoration: underline;
  }
  .breadcrumb span[aria-current] {
    color: var(--gray-500);
  }
  .sep {
    color: var(--gray-500);
    margin: 0 0.125rem;
  }


/* ── from ChoiceList.astro ── */
.choice-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  .choice-btn {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    background: var(--white);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    width: 100%;
  }
  .choice-btn:hover {
    border-color: var(--brand-600);
    background: rgba(37, 99, 235, 0.04);
  }
  .choice-btn.chosen {
    border-color: var(--brand-600);
    background: rgba(37, 99, 235, 0.06);
  }
  .choice-letter {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    background: var(--gray-100);
    color: var(--gray-700);
    flex-shrink: 0;
  }
  .choice-btn.chosen .choice-letter {
    background: var(--brand-600);
    color: white;
  }
  .choice-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--gray-700);
    padding-top: 0.125rem;
  }

  /* Feedback */
  .choice-feedback {
    margin-bottom: 1.5rem;
  }
  /* Without JavaScript the gate stays visible, so its link still works;
     with it, the gate opens once an alternative is chosen. */
  .js .choice-feedback:not(.open) {
    display: none;
  }
  .feedback-gate {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    text-align: center;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.18);
  }
  .feedback-title {
    font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--navy-900);
  }
  .feedback-text {
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
  }
  .feedback-cta {
    font-size: 0.9375rem;
    padding: 0.75rem 1.75rem;
    text-decoration: none;
  }


/* ── from QuestionCard.astro ── */
.question-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
  }
  .question-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }
  .qc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
  }
  .qc-subject {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand-700);
    background: rgba(37, 99, 235, 0.1);
    padding: 0.2rem 0.625rem;
    border-radius: 100px;
  }
  .qc-meta {
    display: flex;
    gap: 0.375rem;
  }
  .qc-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
    background: var(--gray-100);
    color: var(--gray-700);
  }
  .qc-stem {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
  }
  .qc-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand-700);
  }


/* ── from QuestionMeta.astro ── */
.question-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  .meta-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    white-space: nowrap;
  }
  .meta-badge.subject {
    background: rgba(37, 99, 235, 0.1);
    color: var(--brand-700);
    text-decoration: none;
    transition: background 0.2s;
  }
  .meta-badge.subject:hover {
    background: rgba(37, 99, 235, 0.18);
  }
  .meta-badge.banca {
    background: var(--navy-50);
    color: var(--navy-800);
  }
  .meta-badge.institution {
    background: var(--gray-100);
    color: var(--gray-700);
  }
  .meta-badge.year {
    background: var(--gray-100);
    color: var(--gray-700);
  }
  .meta-badge.difficulty {
    background: color-mix(in srgb, var(--diff-color) 12%, transparent);
    color: var(--diff-color);
  }


/* ── from QuestionStem.astro ── */
.question-stem {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    white-space: pre-wrap;
  }
  .question-stem .stem-figure {
    margin: 1rem 0;
    text-align: center;
  }
  .question-stem .stem-figure img {
    max-width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
  }
  .question-stem .stem-figure figcaption {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
  }
  /* Structured content (server/src/www/content_html.rs). */
  .question-stem p,
  .question-passage p {
    margin: 0 0 0.75rem;
    white-space: normal;
  }
  .question-stem p:last-child,
  .question-passage p:last-child {
    margin-bottom: 0;
  }
  .question-stem ol, .question-stem ul,
  .question-passage ol, .question-passage ul {
    margin: 0 0 0.75rem 1.25rem;
    white-space: normal;
  }
  .question-passage {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--gray-900);
  }
  .question-passage-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin: 0 0 0.5rem;
  }
  .content-table {
    overflow-x: auto;
    margin: 0.75rem 0;
    white-space: normal;
  }
  .content-table table {
    border-collapse: collapse;
    font-size: 0.9375rem;
  }
  .content-table td {
    border: 1px solid var(--gray-200);
    padding: 0.25rem 0.5rem;
    vertical-align: top;
  }
  .content-image-missing {
    font-style: italic;
    color: var(--gray-500);
  }


/* ── from StudyAppCta.astro ── */
.study-cta {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--navy-50) 0%, var(--brand-50) 100%);
    border: 1px solid rgba(37, 99, 235, 0.12);
    margin-bottom: 2rem;
  }
  .cta-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--brand-700);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cta-content {
    flex: 1;
  }
  .cta-title {
    font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--navy-900);
    margin-bottom: 0.375rem;
  }
  .cta-text {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 1rem;
  }
  .cta-btn {
    font-size: 0.875rem;
    padding: 0.625rem 1.5rem;
    text-decoration: none;
  }
  @media (max-width: 640px) {
    .study-cta {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  }


/* ── from TagCloud.astro ── */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1.5rem;
  }
  .tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
    background: var(--navy-50);
    color: var(--navy-800);
  }


/* ── from [bancaSlug].astro ── */
.listing-page {
    padding: 7rem 0 4rem;
    background: linear-gradient(180deg, var(--navy-50) 0%, var(--white) 12%);
    min-height: 100vh;
  }
  .listing-shell {
    max-width: 960px;
    margin: 0 auto;
  }
  .subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    line-height: 1.7;
  }
  .year-section {
    margin-bottom: 2.5rem;
  }
  .year-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--navy-50);
  }
  .questions-grid {
    display: grid;
    gap: 1rem;
  }
  @media (min-width: 768px) {
    .questions-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }


/* ── from index.astro ── */
.listing-page {
    padding: 7rem 0 4rem;
    background: linear-gradient(180deg, var(--navy-50) 0%, var(--white) 12%);
    min-height: 100vh;
  }
  .listing-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
  }
  .listing-header h1 {
    margin-bottom: 0.75rem;
  }
  .subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    line-height: 1.7;
  }
  .bancas-grid {
    display: grid;
    gap: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
  }
  .banca-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
  }
  .banca-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }
  .banca-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.375rem;
  }
  .bc-count {
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
  }
  .bc-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand-700);
  }
  @media (min-width: 768px) {
    .bancas-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }


/* ── from index.astro ── */
.listing-page {
    padding: 7rem 0 4rem;
    background: linear-gradient(180deg, var(--navy-50) 0%, var(--white) 12%);
    min-height: 100vh;
  }
  .listing-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
  }
  .listing-header h1 {
    margin-bottom: 0.75rem;
  }
  .subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    line-height: 1.7;
  }
  .subjects-grid {
    display: grid;
    gap: 1.25rem;
  }
  .subject-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
  }
  .subject-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }
  .subject-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.375rem;
  }
  .sc-count {
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
  }
  .sc-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand-700);
  }
  @media (min-width: 768px) {
    .subjects-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media (min-width: 1024px) {
    .subjects-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }


/* ── from [slug].astro ── */
.question-page {
    padding: 7rem 0 4rem;
    background: linear-gradient(180deg, var(--navy-50) 0%, var(--white) 16%);
    min-height: 100vh;
  }
  .question-shell {
    max-width: 780px;
    margin: 0 auto;
  }
  .question-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem 0 1.25rem;
    color: var(--navy-900);
  }
  @media (min-width: 768px) {
    .question-title {
      font-size: 1.75rem;
    }
  }


/* ── from [bancaSlug].astro ── */
.listing-page {
    padding: 7rem 0 4rem;
    background: linear-gradient(180deg, var(--navy-50) 0%, var(--white) 12%);
    min-height: 100vh;
  }
  .listing-shell {
    max-width: 960px;
    margin: 0 auto;
  }
  .subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    line-height: 1.7;
  }
  .subject-section {
    margin-bottom: 2.5rem;
  }
  .subject-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--navy-50);
  }
  .questions-grid {
    display: grid;
    gap: 1rem;
  }
  @media (min-width: 768px) {
    .questions-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }


/* ── from index.astro ── */
.listing-page {
    padding: 7rem 0 4rem;
    background: linear-gradient(180deg, var(--navy-50) 0%, var(--white) 12%);
    min-height: 100vh;
  }
  .listing-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
  }
  .listing-header h1 {
    margin-bottom: 0.75rem;
  }
  .subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    line-height: 1.7;
  }
  .subject-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 3rem;
  }
  .subject-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
  }
  .subject-chip:hover {
    border-color: var(--brand-600);
    background: rgba(37, 99, 235, 0.04);
    color: var(--brand-700);
  }
  .chip-count {
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--gray-100);
    color: var(--gray-500);
    padding: 0.125rem 0.375rem;
    border-radius: 100px;
  }
  .subject-section {
    margin-bottom: 3rem;
  }
  .subject-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--navy-50);
  }
  .questions-grid {
    display: grid;
    gap: 1rem;
  }
  .see-all {
    margin-top: 1rem;
    text-align: center;
  }
  .see-all a {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--brand-700);
    text-decoration: none;
  }
  .see-all a:hover {
    text-decoration: underline;
  }
  @media (min-width: 768px) {
    .questions-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media (min-width: 1024px) {
    .questions-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }


/* ── from [topicSlug].astro ── */
.listing-page {
    padding: 7rem 0 4rem;
    background: linear-gradient(180deg, var(--navy-50) 0%, var(--white) 12%);
    min-height: 100vh;
  }
  .listing-shell {
    max-width: 960px;
    margin: 0 auto;
  }
  .subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    line-height: 1.7;
  }
  .questions-grid {
    display: grid;
    gap: 1rem;
  }
  @media (min-width: 768px) {
    .questions-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

/* ═════ Light-editorial landing + concursos hub (evolution) ═════ */

/* --- Editorial typography --- */
.landing { background: var(--paper); }
.landing h1,
.landing h2 {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.landing h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  line-height: 1.05;
}
.landing h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  line-height: 1.12;
}
.landing .section-dark h2 { color: var(--white); }
.eyebrow {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--brand-700);
}
.section-pad { padding: clamp(5rem, 10vh, 8rem) 0; }
.landing .section-header { margin-bottom: 3rem; }
.landing .section-header p {
  max-width: var(--max-w-text);
}

/* --- Calm buttons & links --- */
.landing .btn-primary {
  background: var(--navy-900);
  transform: none;
}
.landing .btn-primary:hover {
  background: var(--brand-700);
  transform: none;
}
.btn-light {
  background: var(--white);
  color: var(--navy-900);
  padding: .875rem 2rem;
  border-radius: 100px;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  display: inline-block;
  transition: background .2s ease, color .2s ease;
}
.btn-light:hover { background: var(--navy-100); }
.link-arrow {
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--brand-700); }
.link-arrow-light { color: var(--navy-100); }
.link-arrow-light:hover { color: var(--white); }

/* --- Hero --- */
.hero-editorial {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: clamp(5rem, 14vh, 9rem) 0 clamp(4rem, 9vh, 6rem);
}
.hero-editorial .eyebrow { display: block; margin-bottom: 1.25rem; }
.hero-editorial h1 { max-width: 21ch; }
.hero-sub {
  max-width: var(--max-w-text);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-top: 1.5rem;
  color: var(--gray-700);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.hero-microline {
  margin-top: 1.25rem;
  font-size: .875rem;
  color: var(--gray-500);
}

/* --- Product proof (question player) --- */
.product-proof { border-bottom: 1px solid var(--rule); }
.player-widget {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
}
.player-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.player-badge {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-size: .75rem;
  font-weight: 600;
  color: var(--brand-700);
  background: var(--brand-50);
  border-radius: 100px;
  padding: .25rem .75rem;
}
.player-progress { font-size: .8125rem; color: var(--gray-500); }
.player-question {
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 1rem;
}
.player-option {
  display: flex;
  align-items: center;
  gap: .75rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: .625rem .875rem;
  font-size: .875rem;
  margin-bottom: .5rem;
  color: var(--gray-700);
}
.player-option.correct {
  border-color: var(--st-open);
  background: #f0faf5;
  color: var(--ink);
}
.player-letter {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: .75rem;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.player-option.correct .player-letter {
  border-color: var(--st-open);
  color: var(--st-open);
}
.player-feedback {
  border-top: 1px solid var(--rule);
  margin-top: 1rem;
  padding-top: 1rem;
  font-size: .875rem;
  color: var(--gray-700);
}
.fsrs-chip {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-size: .75rem;
  font-weight: 600;
  color: var(--st-open);
  background: #f0faf5;
  border: 1px solid #cdeeda;
  border-radius: 100px;
  padding: .25rem .75rem;
  margin-bottom: .625rem;
}
.player-keys {
  display: flex;
  gap: .5rem;
  margin-top: 1.25rem;
}
.key {
  font-size: .75rem;
  color: var(--gray-500);
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: .25rem .625rem;
  background: var(--white);
}
.key-wide { padding-inline: 1.5rem; }
.player-caption {
  text-align: center;
  font-size: .9375rem;
  color: var(--gray-500);
  margin-top: 1.5rem;
}

/* --- Método (credibility band) --- */
.metodo-grid {
  display: grid;
  gap: 2.5rem;
}
.metodo-col h3 {
  color: var(--white);
  font-size: 1.0625rem;
  margin-bottom: .75rem;
}
.metodo-col p { color: var(--navy-100); line-height: 1.75; }
.metodo-more { margin-top: 2.5rem; }
@media (min-width: 768px) {
  .metodo-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

/* --- Features (editorial rows) --- */
.features-list { border-top: 1px solid var(--rule); }
.feature-row {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}
.feature-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 560;
  color: var(--brand-700);
  line-height: 1;
  min-width: 3.5rem;
}
.feature-row h3 { margin-bottom: .375rem; color: var(--ink); }
.feature-row p { max-width: var(--max-w-text); }

/* --- Como funciona --- */
.landing .section-alt { background: var(--white); border-block: 1px solid var(--rule); }
.how-grid { display: grid; gap: 2.5rem; }
.how-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 560;
  color: var(--rule);
  display: block;
  margin-bottom: .75rem;
  line-height: 1;
}
.how-step h3 { margin-bottom: .5rem; color: var(--ink); }
@media (min-width: 768px) {
  .how-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Status pills (shared: landing strip + hub + detail) --- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-size: .75rem;
  font-weight: 600;
  color: var(--st-pipeline);
  letter-spacing: .01em;
}
.status-dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: currentColor;
}
.status-inscricoes_abertas { color: var(--st-open); }
.status-edital_publicado { color: var(--st-edital); }
.status-autorizado, .status-previsto { color: var(--st-pipeline); }
.status-inscricoes_encerradas, .status-suspenso { color: var(--st-alert); }
.status-provas_realizadas, .status-finalizado { color: var(--st-done); }

/* --- Concursos promo strip (landing) --- */
.status-legend {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  padding: 1.75rem 0;
  border-block: 1px solid var(--rule);
}
.destaques-strip {
  display: grid;
  gap: 1rem;
}
.destaque-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  transition: border-color .2s ease;
}
.destaque-card:hover { border-color: var(--brand-600); }
.destaque-card h3 { font-size: 1rem; color: var(--ink); margin-top: .625rem; }
.destaque-card p { font-size: .8125rem; color: var(--gray-500); margin-top: .25rem; }
.section-cta { margin-top: 2rem; }
@media (min-width: 768px) {
  .destaques-strip { grid-template-columns: repeat(3, 1fr); }
}

/* --- Hub index rows (Explore o acervo) --- */
.hubs-list { border-top: 1px solid var(--rule); }
.hub-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "title arrow" "text arrow";
  column-gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left .2s ease;
}
.hub-row:hover { padding-left: .5rem; }
.hub-row h3 {
  grid-area: title;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.375rem;
  color: var(--ink);
}
.hub-row p { grid-area: text; margin-top: .25rem; max-width: var(--max-w-text); }
.hub-arrow {
  grid-area: arrow;
  align-self: center;
  font-size: 1.5rem;
  color: var(--brand-700);
}

/* --- Pricing (hairline restyle) --- */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 880px;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}
.price-card-featured { background: var(--brand-50); border-color: var(--brand-600); }
.price-card h3 { font-size: 1.25rem; color: var(--ink); }
.price-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 560;
  color: var(--ink);
}
.price-period { font-size: .875rem; color: var(--gray-500); margin-left: .5rem; }
.price-card ul { display: grid; gap: .5rem; font-size: .9375rem; }
.price-card li::before { content: "— "; color: var(--brand-700); }
.pricing-note { font-size: .8125rem; color: var(--gray-500); }
@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Concursos hub page --- */
.concursos-page .status-section { margin-bottom: 3.5rem; }
.status-section h2 {
  font-size: 1.375rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.5rem;
}
.concursos-grid {
  display: grid;
  gap: 1rem;
}
.concurso-card {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.concurso-card:hover { border-color: var(--brand-600); box-shadow: var(--shadow-sm); }
.cc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}
.concurso-card h3 { font-size: 1.0625rem; color: var(--ink); line-height: 1.35; }
.cc-orgao { font-size: .8125rem; color: var(--gray-500); }
.cc-badges { display: flex; flex-wrap: wrap; gap: .375rem; }
.cc-badge {
  font-size: .6875rem;
  font-weight: 500;
  color: var(--gray-700);
  background: var(--gray-100);
  border-radius: 100px;
  padding: .2rem .625rem;
  white-space: nowrap;
}
.cc-facts {
  display: grid;
  gap: .25rem;
  font-size: .8125rem;
  color: var(--gray-700);
}
.cc-facts li::before { content: "· "; color: var(--gray-500); }
.cc-link {
  margin-top: auto;
  font-size: .875rem;
  font-weight: 500;
  color: var(--brand-700);
}
@media (min-width: 768px) {
  .concursos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .concursos-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Concurso detail --- */
.concurso-facts {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: .5rem 1.5rem;
  margin-bottom: 2.5rem;
}
.fact-row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: .9375rem;
}
.fact-row:last-child { border-bottom: none; }
.fact-row dt { color: var(--gray-500); }
.fact-row dd { color: var(--gray-900); }
.fact-row dd a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .fact-row { grid-template-columns: 1fr; gap: .125rem; }
}
.provas-section, .related-section, .syllabus-section { margin-bottom: 2.5rem; }
.syllabus-section h2 { font-size: 1.375rem; margin-bottom: 1rem; }
.syllabus-discipline { border-top: 1px solid var(--rule); padding: .625rem 0; }
.syllabus-discipline:last-child { border-bottom: 1px solid var(--rule); }
.syllabus-discipline summary { cursor: pointer; font-weight: 600; color: var(--gray-900); }
.syllabus-meta { font-weight: 400; font-size: .8125rem; color: var(--gray-500); margin-left: .5rem; }
.syllabus-discipline ul { display: grid; gap: .375rem; margin: .75rem 0 .25rem; padding-left: 0; list-style: none; font-size: .9375rem; line-height: 1.5; }
.syllabus-path { color: var(--gray-500); font-variant-numeric: tabular-nums; margin-right: .25rem; }
.syllabus-count { font-size: .75rem; color: var(--brand-700); background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 0 .5rem; margin-left: .375rem; white-space: nowrap; }
.provas-section h2, .related-section h2 {
  font-size: 1.375rem;
  margin-bottom: 1rem;
}
.provas-list { display: grid; gap: .375rem; font-size: .9375rem; }
.provas-list a { color: var(--brand-700); }
.provas-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.concurso-cta {
  background: var(--navy-900);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
}
.concurso-cta h2 { color: var(--white); font-size: 1.5rem; margin-bottom: .5rem; }
.concurso-cta p { color: var(--navy-100); margin-bottom: 1.5rem; }

/* --- Scroll reveal (JS-gated; readable without JS) --- */
.js .reveal {
  opacity: 0;
  translate: 0 14px;
  transition: opacity .5s ease, translate .5s ease;
}
.js .reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; translate: none; transition: none; }
}
