/* Shared site chrome — header + footer for Ventanilla Social */
/* Complements page-local styles; does not change article content */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy, #0B1F3A);
  color: var(--white, #fff);
  border-bottom: 2px solid var(--gold, #C5A017);
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.18);
}

.site-header .header-inner {
  width: min(calc(100% - 32px), 1100px);
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  padding: 8px 0;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white, #fff);
  text-decoration: none;
  flex-shrink: 0;
  z-index: 2;
}

.site-header .brand:hover {
  color: var(--white, #fff);
}

.site-header .brand-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(220px, 58vw);
  object-fit: contain;
}

.site-header .brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(197, 160, 23, 0.28), rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(197, 160, 23, 0.45);
  color: var(--white, #fff);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.03em;
}

.site-header .brand-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.site-header .brand-sub {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 500;
}

.site-header .brand-text {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 2;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  justify-content: flex-end;
}

.nav-groups {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.nav-group-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold, #C5A017);
  line-height: 1;
  white-space: nowrap;
}

.nav-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  align-items: center;
}

.nav-group a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 9px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-group a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-group a[aria-current="page"] {
  color: #1A1505;
  background: var(--gold, #C5A017);
}

.site-header .header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--cta-green, #1B7A4E);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.18s ease, transform 0.18s ease;
}

.site-header .header-link:hover {
  color: #fff;
  background: #156640;
  transform: translateY(-1px);
}

/* Footer */
.site-footer {
  margin-top: 28px;
  background: var(--navy, #0B1F3A);
  color: rgba(255, 255, 255, 0.88);
  border-top: 0;
}

/* Gold independence disclaimer — FOOTER ONLY (never in header) */
.site-footer > .footer-disclaimer,
.footer-disclaimer {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: linear-gradient(90deg, #B8940F 0%, #C5A017 18%, #D4A017 50%, #C5A017 82%, #B8940F 100%) !important;
  background-color: #C5A017 !important;
  color: #1A1505 !important;
  border-top: 2px solid #0B1F3A !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.site-footer > .footer-disclaimer .footer-disclaimer-inner,
.footer-disclaimer-inner {
  display: block !important;
  width: min(calc(100% - 32px), 1100px) !important;
  margin: 0 auto !important;
  padding: 14px 0 15px !important;
  text-align: center !important;
  color: #1A1505 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 1.55 !important;
  letter-spacing: 0.01em;
}

/*
 * Heading bars — SCOPED ONLY to .section-bar / .h-bar / .faq-bar
 * and FAQ accordion summaries. Never paint navy bars on global h1/h2/h3
 * or as full-viewport (100vw) washes.
 */
.section-bar,
.h-bar,
.faq-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 18px !important;
  padding: 16px 18px !important;
  box-sizing: border-box;
  background: #0B1F3A !important;
  color: #fff;
  text-align: left !important;
  position: relative;
  border: 0;
  border-bottom: 3px solid #C5A017 !important;
  border-radius: 0;
  box-shadow: none;
}

.section-bar::after,
.h-bar::after,
.faq-bar::after {
  content: none !important;
  display: none !important;
}

.section-bar-icon,
.h-bar-icon,
.faq-bar-icon,
.section-bar .section-bar-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #061526 !important;
  border: 1.5px solid #C5A017 !important;
  color: #C5A017 !important;
  font-family: var(--font-serif, "Source Serif 4", Georgia, serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.section-bar h2,
.h-bar h2,
.faq-bar h2,
.section-bar .section-bar-title {
  margin: 0 !important;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none !important;
  color: #fff !important;
  font-family: var(--font-serif, "Source Serif 4", Georgia, serif) !important;
  font-size: clamp(16px, 2.4vw, 20px) !important;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-align: left !important;
}

/* FAQ / accordion questions — same navy+gold bar, content column only */
.faq-list details,
.faq-section details.faq-item {
  border: 0;
  background: transparent;
  overflow: hidden;
  margin: 0 0 10px;
}

.faq-list summary,
.faq-section details.faq-item summary,
details.faq-item > summary {
  position: relative;
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 14px 48px 14px 16px !important;
  box-sizing: border-box;
  background: #0B1F3A !important;
  color: #fff !important;
  border: 0;
  border-bottom: 3px solid #C5A017 !important;
  border-radius: 0 !important;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-serif, "Source Serif 4", Georgia, serif) !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left !important;
}

.faq-list summary::-webkit-details-marker,
.faq-section details.faq-item summary::-webkit-details-marker,
details.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after,
.faq-section details.faq-item summary::after,
details.faq-item > summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: #C5A017;
  font-size: 20px;
  font-weight: 400;
  font-family: var(--font-sans, system-ui, sans-serif);
}

.faq-list details[open] > summary,
.faq-section details.faq-item[open] > summary,
details.faq-item[open] > summary {
  border-radius: 0 !important;
}

.faq-list details[open] > summary::after,
.faq-section details.faq-item[open] > summary::after,
details.faq-item[open] > summary::after {
  content: "\2212";
}

/* Body H3: subtle gold accent only — NOT navy full bars */
.content-section h3,
.article h3,
.section-body h3 {
  position: relative;
  padding-left: 14px;
  border-left: 4px solid var(--gold, #C5A017);
  background: transparent !important;
  color: var(--navy, #0B1F3A);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Civic infographics (WebP) — content column only */
figure.infografia {
  margin: 18px 0 22px;
  padding: 0;
  width: 100%;
  max-width: 100%;
  border: 0;
  background: transparent;
}

figure.infografia img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border: 1px solid #D5DEE9;
  border-bottom: 3px solid var(--gold, #C5A017);
  background: #F7F8FA;
}

figure.infografia figcaption {
  margin: 8px 2px 0;
  color: #5A6E84;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}

/* Responsive Facebook / institutional video embeds (16:9) */
figure.video-example {
  margin: 18px 0 16px;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

.video-embed {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0B1F3A;
  border: 1px solid #D5DEE9;
  border-bottom: 3px solid var(--gold, #C5A017);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
}

figure.video-example figcaption {
  margin: 8px 2px 0;
  color: #5A6E84;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}

.video-fallback {
  margin: 0 0 8px;
  color: #405A76;
  font-size: 14px;
  line-height: 1.5;
}

.hero-brand {
  display: block;
  margin: 0 0 10px;
  color: var(--navy, #0B1F3A);
  font-family: var(--font-serif, "Source Serif 4", Georgia, serif);
  font-size: clamp(34px, 5.4vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-brand .hero-year {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 10px 4px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--gold, #C5A017), #E2C45A);
  color: #1A1505;
  font-size: 0.42em;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: middle;
  transform: translateY(-0.28em);
}

.hero h1,
h1.page-title {
  font-family: var(--font-serif, "Source Serif 4", Georgia, serif);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 3px;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--gold, #C5A017);
  vertical-align: middle;
}

.site-footer .footer-inner {
  width: min(calc(100% - 32px), 1100px);
  margin: 0 auto;
  padding: 32px 0 28px;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 28px 24px;
}

/* Never show gold disclaimer under the header */
.site-header + .trust-strip,
.trust-strip.header-trust {
  display: none !important;
}

.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #fff;
  text-decoration: none;
}

.site-footer .footer-brand:hover {
  color: #fff;
}

.site-footer .footer-brand .brand-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.site-footer .footer-brand .brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(197, 160, 23, 0.22);
  border: 1px solid rgba(197, 160, 23, 0.4);
  font-weight: 700;
  font-size: 13px;
}

.site-footer .footer-brand-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.site-footer .footer-brand-text {
  display: none;
}

.site-footer .footer-col h3 {
  margin: 0 0 12px;
  color: var(--gold, #C5A017);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.site-footer .footer-col p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
  line-height: 1.55;
}

.site-footer .footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .footer-col li {
  margin: 0 0 8px;
}

.site-footer .footer-col a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}

.site-footer .footer-col a:hover {
  color: var(--gold-2, #D4A017);
  text-decoration: underline;
}

.site-footer .footer-col a[aria-current="page"] {
  color: var(--gold, #C5A017);
  font-weight: 700;
}

.site-footer .footer-bottom {
  width: min(calc(100% - 32px), 1100px);
  margin: 0 auto;
  padding: 14px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.62);
}

.site-footer .footer-bottom a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  text-decoration: none;
}

.site-footer .footer-bottom a:hover {
  color: var(--gold-2, #D4A017);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 22px), 1100px);
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
    background: var(--navy-2, #122C4A);
    border: 1px solid rgba(197, 160, 23, 0.35);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(11, 31, 58, 0.35);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-groups {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .nav-group ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-group a {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .site-header .header-link {
    width: 100%;
  }

  .site-footer .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .site-header .header-inner,
  .site-footer .footer-inner,
  .site-footer .footer-bottom {
    width: min(calc(100% - 22px), 1100px);
  }

  .site-header .brand-sub {
    display: none;
  }

  .site-header .brand-logo {
    height: 34px;
    max-width: min(190px, 62vw);
  }

  .site-footer .footer-brand .brand-logo {
    height: 32px;
  }

  .site-footer .footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media print {
  .site-header .site-nav,
  .site-header .nav-toggle {
    display: none !important;
  }
}

/* ===== Rank Math-class mobile hygiene (shared) ===== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  overflow-x: hidden;
}

img,
video,
svg,
canvas,
iframe {
  max-width: 100%;
  height: auto;
}

pre,
code,
.hero-intro code,
.answer-lead code,
a[href^="http"] {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.table-wrap,
.comparison-table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.table-wrap table,
.comparison-table-wrap table {
  min-width: 480px;
  width: 100%;
}

.btn,
.hero-actions .btn,
.quick-panel .btn,
.site-header .header-link {
  max-width: 100%;
}

.faq-list summary,
.faq-section details.faq-item summary,
details.faq-item > summary {
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: center;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.footer-legal a:hover {
  color: var(--gold-2, #D4A017);
}

.footer-legal a[aria-current="page"] {
  color: var(--gold, #C5A017);
}

@media (max-width: 980px) {
  .nav-group a,
  .site-header .header-link {
    min-height: 44px;
  }

  .site-nav {
    max-height: min(78vh, 640px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 430px) {
  .hero-brand {
    font-size: clamp(28px, 8.5vw, 36px);
  }

  .hero-brand .hero-year {
    margin-left: 6px;
    padding: 2px 8px 3px;
  }

  .h1-sub {
    display: block;
    margin-top: 8px;
    font-size: clamp(1.05rem, 4.6vw, 1.25rem);
    line-height: 1.35;
  }

  .section-bar,
  .h-bar,
  .faq-bar {
    padding: 12px 14px !important;
    gap: 10px;
  }

  .section-bar h2,
  .h-bar h2,
  .faq-bar h2 {
    font-size: 15px !important;
  }

  .footer-disclaimer-inner {
    font-size: 12px !important;
    padding: 12px 0 13px !important;
  }

  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 360px) {
  .site-header .brand-logo {
    max-width: min(150px, 52vw);
    height: 30px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
  }
}


/* Internal linking: home guide map */
.guide-map {
  margin: 12px 0 0;
  padding-left: 1.15rem;
}
.guide-map li {
  margin: 0.45rem 0;
  line-height: 1.55;
}
