/* ==========================================================================
   BuscadorEstatusMex.com - Civic Editorial Clarity Design System (2026)
   ========================================================================== */

:root {
  --primary: #42001d;
  --primary-container: #611232;
  --primary-hover: #4a0d26;
  --primary-tint: #fdf2f4;
  --secondary: #545f73;
  --on-surface: #0b1c30;
  --text-body: #334155;
  --text-muted: #64748b;
  --bg-surface: #f8f9ff;
  --bg-card: #ffffff;
  --bg-card-alt: #eff4ff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  
  /* Status Colors */
  --status-active: #0d9488;
  --status-active-bg: #f0fdf4;
  --status-active-border: #bbf7d0;
  --status-active-text: #166534;

  --status-process: #d97706;
  --status-process-bg: #fffbeb;
  --status-process-border: #fde68a;
  --status-process-text: #92400e;

  --status-baja: #be123c;
  --status-baja-bg: #fff1f2;
  --status-baja-border: #fecdd3;
  --status-baja-text: #9f1239;

  --status-info: #0284c7;
  --status-info-bg: #f0f9ff;
  --status-info-border: #bae6fd;
  --status-info-text: #0369a1;

  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--on-surface);
  background-color: var(--bg-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a {
  color: var(--primary-container);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--on-surface);
  font-weight: 700;
  line-height: 1.25;
}

.text-hero {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.text-h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.text-h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.lead-text {
  font-size: 1.125rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* 1. Official Sticky Alert */
.official-alert {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #fffbeb;
  color: #92400e;
  border-bottom: 1px solid #fde68a;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.official-alert-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.official-alert-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.official-alert-link {
  font-weight: 700;
  color: var(--primary-container);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.official-alert-link:hover {
  text-decoration: underline;
}

/* 2. Main Site Header (Despejado, Espacioso, Proporcional hacia los lados) */
.header-fluid-container,
.official-alert .container,
.site-header .container {
  width: 100%;
  max-width: 1760px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.site-header {
  position: sticky;
  top: 37px;
  z-index: 40;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 2rem;
  flex-wrap: nowrap;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.official-alert-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.8125rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 3.25rem;
  width: auto;
}

.header-tools-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.header-search-wrap {
  position: relative;
  width: 300px;
}

.header-search-wrap input {
  width: 100%;
  padding: 0.6rem 0.85rem 0.6rem 2.35rem;
  font-size: 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background-color: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.header-search-wrap input:focus {
  border-color: var(--primary-container);
  background-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(97, 18, 50, 0.12);
}

.header-search-wrap .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
  color: var(--text-muted);
}

.btn-official-header {
  background-color: var(--primary-container);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-official-header:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

/* Main Navigation Bar (100% EN UNA SOLA LÍNEA, EXPANDIDO A LOS LADOS) */
.main-nav-bar {
  background-color: var(--primary-container);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  width: 100%;
}

.main-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center; /* Centrado visual armónico */
  padding: 0;
  width: 100%;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center; /* Centrado visual armónico */
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap !important; /* NUNCA EN DOS LÍNEAS */
  white-space: nowrap !important;
}

.nav-item {
  position: relative;
  flex-shrink: 0;
}

.nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.8rem 0.95rem;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  border-radius: var(--radius-sm);
}

.nav-link-btn:hover, .nav-item:hover > .nav-link-btn {
  background-color: var(--primary-hover);
  color: #fde68a;
}

.arrow-icon {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.nav-item:hover .arrow-icon {
  transform: rotate(180deg);
}

/* Dropdown Menus */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary-container);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.18);
  display: none;
  z-index: 100;
  padding: 0.5rem 0;
}

.nav-item:hover .dropdown-menu {
  display: block;
}

.dropdown-link {
  display: block;
  padding: 0.55rem 1.15rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--on-surface);
  text-decoration: none;
  border-bottom: 1px solid #f8fafc;
  transition: all 0.12s ease;
}

.dropdown-link:hover {
  background-color: var(--primary-tint);
  color: var(--primary-container);
  padding-left: 1.35rem;
  font-weight: 600;
}

/* Fila 3: Accesos Directos (100% EN UNA SOLA LÍNEA, CENTRADO) */
.quick-access-wrap {
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 0;
  overflow: visible;
  width: 100%;
}

.quick-access-inner {
  display: flex;
  align-items: center;
  justify-content: center; /* Centrado visual armónico */
  gap: 0.65rem;
  flex-wrap: nowrap !important; /* NUNCA EN DOS LÍNEAS */
  white-space: nowrap !important;
  width: 100%;
}

.quick-access-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary-container);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-right: 0.4rem;
  flex-shrink: 0;
}

.quick-tag {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-body);
  background-color: #ffffff;
  border: 1px solid var(--border);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  flex-shrink: 0;
  white-space: nowrap;
}

.quick-tag:hover {
  color: var(--primary-container);
  border-color: var(--primary-container);
  background-color: var(--primary-tint);
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 0.75rem 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.breadcrumbs a:hover {
  color: var(--primary-container);
  text-decoration: underline;
}

.breadcrumbs .current {
  color: var(--on-surface);
  font-weight: 600;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.badge-verified {
  background-color: var(--status-active-bg);
  color: var(--status-active-text);
  border: 1px solid var(--status-active-border);
}

.badge-warning {
  background-color: var(--status-process-bg);
  color: var(--status-process-text);
  border: 1px solid var(--status-process-border);
}

.badge-alert {
  background-color: var(--status-baja-bg);
  color: var(--status-baja-text);
  border: 1px solid var(--status-baja-border);
}

.badge-info {
  background-color: var(--status-info-bg);
  color: var(--status-info-text);
  border: 1px solid var(--status-info-border);
}

.dot-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.dot-green { background-color: #10b981; }
.dot-amber { background-color: #f59e0b; }
.dot-red { background-color: #ef4444; }

/* Callout Cards */
.callout-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary-container);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 1.25rem 0;
  box-shadow: var(--shadow-sm);
}

.callout-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-container);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.callout-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 0.5rem;
}

.callout-desc {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* Security Notice Box */
.security-notice {
  background-color: #f8fafc;
  border: 1px dashed #94a3b8;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.security-notice .icon {
  color: var(--status-active);
  font-size: 1.75rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.security-notice h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 0.35rem;
}

.security-notice p {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.55;
}

/* Step Pipeline */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.step-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.step-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.step-number {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: var(--primary-container);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.step-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 0.35rem;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.step-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-surface);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  align-self: flex-start;
}

/* Status Cards Grid */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.status-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.status-card.active-state { border-left: 4px solid var(--status-active); }
.status-card.process-state { border-left: 4px solid var(--status-process); }
.status-card.baja-state { border-left: 4px solid var(--status-baja); }
.status-card.info-state { border-left: 4px solid var(--status-info); }

.status-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.status-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 0.35rem;
}

.status-card-desc {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.status-card-tip {
  background-color: #f8fafc;
  border-radius: var(--radius-md);
  padding: 0.65rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-body);
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-card);
}

.editorial-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  text-align: left;
}

.editorial-table th {
  background-color: #f8fafc;
  color: var(--on-surface);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.875rem 1rem;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.editorial-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
  vertical-align: top;
  font-variant-numeric: tabular-nums;
}

.editorial-table tr:last-child td {
  border-bottom: none;
}

.editorial-table tr:hover td {
  background-color: #f8fafc;
}

/* FAQs Accordion */
.faq-section {
  margin: 2.5rem 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.faq-item[open] {
  border-color: var(--primary-container);
  box-shadow: 0 4px 14px rgba(97, 18, 50, 0.08);
}

.faq-summary {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--on-surface);
  padding: 1.1rem 1.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
  transition: background-color 0.15s ease;
  gap: 1rem;
}

.faq-summary:hover {
  background-color: #f8fafc;
}

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

.faq-icon {
  font-size: 1.35rem;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--primary-container);
}

.faq-body {
  padding: 0.85rem 1.35rem 1.35rem 1.35rem;
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.65;
  border-top: 1px solid var(--border);
}

/* Stitch Homepage Hero (Foto destacada & 2 Columnas) */
.home-hero-section {
  padding: 2.5rem 0 3rem 0;
  border-bottom: 1px solid var(--border);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .home-hero-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.home-hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.home-hero-right {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-md);
}

.home-hero-right img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.home-hero-caption {
  padding: 0.75rem 1rem;
  background-color: #ffffff;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

.quick-answer-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary-container);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.quick-answer-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary-container);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.quick-answer-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 0.4rem;
}

.quick-answer-text {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.55;
  margin: 0;
}

.steps-pipeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

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

@media (min-width: 1024px) {
  .steps-pipeline-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Pillars Bento Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.pillar-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
}

.pillar-card.p-rita::before { background-color: var(--primary-container); }
.pillar-card.p-benito::before { background-color: var(--status-active); }
.pillar-card.p-pension::before { background-color: var(--status-process); }
.pillar-card.p-mujeres::before { background-color: #be123c; }

.pillar-amount {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin: 0.5rem 0 0.25rem 0;
}

/* Official Help Box */
.helpline-box {
  background-color: var(--primary-container);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin: 2.5rem 0;
}

.helpline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .helpline-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

.helpline-card {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  color: #ffffff;
}

.helpline-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0.25rem 0;
}

/* Site Footer */
.site-footer {
  background-color: #f1f5f9;
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding: 3rem 0 1.5rem 0;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--on-surface);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-body);
}

.footer-col a:hover {
  color: var(--primary-container);
  text-decoration: underline;
}

.footer-disclaimer {
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary-container);
  text-decoration: underline;
}

/* Button & Action Elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-container);
  color: #ffffff !important;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: var(--bg-card);
  border-color: var(--border-strong);
  color: var(--on-surface) !important;
}

.btn-outline:hover {
  background-color: #f8fafc;
  border-color: var(--on-surface);
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
}

/* Article Editorial Content */
.prose {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.7;
}

.prose p {
  margin-bottom: 1.15rem;
}

.prose ul, .prose ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose strong {
  color: var(--on-surface);
  font-weight: 600;
}

.prose img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin: 1.5rem 0;
}

/* Two-column layout with sidebar */
.editorial-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 2rem 0;
}

@media (min-width: 1024px) {
  .editorial-layout {
    grid-template-columns: 8fr 4fr;
  }
}

.sidebar-sticky {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-widget {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h4 {
  font-size: 0.9375rem;
  color: var(--on-surface);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* Material Symbols */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  font-size: 1.25rem;
  display: inline-block;
}

/* Interactive Letter Filter for Calendars */
.letter-filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1rem 0;
}

.letter-btn {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: #ffffff;
  color: var(--on-surface);
  cursor: pointer;
  transition: all 0.15s ease;
}

.letter-btn:hover, .letter-btn.active {
  background-color: var(--primary-container);
  color: #ffffff;
  border-color: var(--primary-container);
}

/* Cookie Notice */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 600px;
  margin: 0 auto;
  z-index: 100;
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
