/* Portal IR — estilo blog informativo */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #1a2332;
  --muted: #5c6b7f;
  --accent: #0d47a1;
  --accent-soft: #e3ecf8;
  --border: #d8e0ea;
  --success: #1b5e20;
  --warning: #bf360c;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(13, 71, 161, 0.08);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
}

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

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

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: 0.5rem;
  }

  .site-nav.is-open {
    display: flex;
  }
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}

@media (min-width: 901px) {
  .site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
  }
}

.hero {
  background: linear-gradient(145deg, #0d47a1 0%, #1565c0 45%, #1976d2 100%);
  color: #fff;
  padding: 3rem 1.25rem 3.5rem;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero-lead {
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 42rem;
  margin: 0 0 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: #fff;
  color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-soft);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.layout-sidebar {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .layout-sidebar {
    grid-template-columns: 1fr 280px;
    align-items: start;
  }
}

.content article {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.content h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-top: 0;
  line-height: 1.25;
}

.content h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  margin-top: 2rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.content h2:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.content h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
}

.sidebar {
  position: sticky;
  top: 5.5rem;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.sidebar-card h2 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
}

.sidebar-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.sidebar-card li {
  margin-bottom: 0.4rem;
}

.sidebar-card a {
  color: var(--text);
}

.key-dates {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

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

.key-date {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

.key-date strong {
  display: block;
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.key-date span {
  font-size: 1.1rem;
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.85rem;
  text-align: left;
}

th {
  background: var(--accent-soft);
  font-weight: 600;
}

tbody tr:nth-child(even) {
  background: #fafbfd;
}

.callout {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.callout.warning {
  border-left-color: var(--warning);
  background: #fff3e0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0;
}

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

.topic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.topic-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(13, 71, 161, 0.12);
}

.topic-card h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  border: none;
  padding: 0;
}

.topic-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.topic-card .btn {
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
}

.topic-card .btn:hover {
  filter: brightness(1.08);
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
  background: var(--surface);
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
}

.faq details[open] summary {
  margin-bottom: 0.5rem;
}

.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 2.5rem 1.25rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.site-footer a {
  color: #93c5fd;
}

.site-footer p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.footer-meta {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

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

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

ol.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

ol.steps li {
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 1.25rem;
  min-height: 2rem;
}

ol.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}
