/* Shared styles for inner pages (articles). The home page keeps its own inline styles; tokens match. */
:root {
  --royal: #1F3FA8;
  --royal-bright: #4169E1;
  --navy: #0B1F4D;
  --red: #D0101A;
  --red-dark: #A30B12;
  --yellow: #FFD21F;
  --paper: #F7F8FC;
  --line: #D9DEEC;
  --muted: #4A5573;
  --white: #FFFFFF;
  --font-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", Roboto, Arial, sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--navy); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--royal-bright); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.eyebrow { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.82rem; }

body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--navy); }
.topbar { background: var(--navy); color: var(--white); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; border-bottom: 4px solid var(--red); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; min-width: 0; }
.brand img { width: 46px; }
.brand b { font-family: var(--font-display); font-weight: 900; font-stretch: 112%; font-size: 1.5rem; letter-spacing: 0.02em; line-height: 1; }
.brand small { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.topbar nav { display: flex; align-items: center; gap: 22px; }
.navlink { color: var(--white); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.navlink:hover, .navlink[aria-current] { color: var(--yellow); }
.phone { color: var(--yellow); font-family: var(--font-display); font-weight: 700; text-decoration: none; white-space: nowrap; font-size: 1.05rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-stretch: 112%; text-transform: uppercase; letter-spacing: 0.04em; border: 0; border-radius: 8px; padding: 14px 22px; cursor: pointer; text-decoration: none; font-size: 1rem; transition: transform .12s ease, background .12s ease; }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 3px 0 var(--red-dark); }
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); }
@media (max-width: 1060px) { .navlink { display: none; } }
@media (max-width: 860px) { .brand small { display: none; } }
@media (max-width: 420px) { .topbar .btn { display: none; } }

/* Page band */
.band { background: var(--royal); color: var(--white); }
.band .wrap { padding-block: 44px 48px; display: grid; gap: 14px; }
.band .eyebrow { color: var(--yellow); }
.band h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); font-weight: 900; font-stretch: 112%; max-width: 22ch; }
.band .dek { font-size: 1.2rem; max-width: 60ch; color: #E3E9FB; }
.crumbs { font-size: 0.88rem; color: #C9D4F5; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--white); }
.meta { font-size: 0.9rem; color: #C9D4F5; display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Article listing */
.list { padding-block: 48px 72px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.card { background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 22px; border-top: 6px solid var(--yellow); }
.card .tag { color: var(--red); font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; }
.card h2 { font-size: 1.35rem; font-weight: 800; }
.card h2 a { color: var(--navy); text-decoration: none; }
.card h2 a:hover { color: var(--royal); text-decoration: underline; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card .more { font-weight: 700; font-size: 0.92rem; color: var(--muted); }
.card.has-photo { grid-template-rows: auto auto 1fr auto; }
.card .card-photo { display: block; width: calc(100% + 44px); max-width: none; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; margin: -22px -22px 4px; }
.article-photo { margin: 0 0 6px; display: grid; gap: 6px; }
.article-photo img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 12px; display: block; }
.article-photo figcaption { color: var(--muted); font-size: 0.85rem; }
.article-photo figcaption a { color: inherit; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.list-note { margin-top: 28px; color: var(--muted); font-size: 0.95rem; }

/* Article body */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-block: 48px 72px; align-items: start; }
@media (max-width: 900px) { .article-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.prose { max-width: 68ch; min-width: 0; display: grid; gap: 18px; }
.prose h2 { font-size: 1.6rem; font-weight: 800; margin-top: 18px; }
.prose h3 { font-size: 1.2rem; font-weight: 800; margin-top: 6px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.prose li::marker { color: var(--red); font-weight: 700; }
.prose strong { color: var(--navy); }
.prose .lead { font-size: 1.2rem; }
.callout { background: var(--white); border: 1.5px solid var(--line); border-left: 6px solid var(--royal); border-radius: 8px; padding: 16px 18px; }
.table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.96rem; background: var(--white); }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--font-display); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; background: var(--paper); }
.prose code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.disclaimer { font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 10px; }

.aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); display: grid; gap: 16px; }
.cta-card { background: var(--navy); color: var(--white); border-radius: 12px; padding: 22px; display: grid; gap: 12px; border-top: 6px solid var(--yellow); }
.cta-card img { width: 120px; }
.cta-card h2 { font-size: 1.35rem; font-weight: 900; font-stretch: 112%; }
.cta-card p { color: #C9D2EE; font-size: 0.98rem; }
.cta-card .phone { font-size: 1.2rem; }
@media (max-width: 900px) { .aside { position: static; } }

.related { border-top: 1.5px solid var(--line); padding-block: 48px 64px; }
.related h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 20px; }

footer { background: var(--navy); color: #C9D2EE; font-size: 0.95rem; }
footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; padding-block: 48px 32px; }
footer h3 { color: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
footer a { color: var(--white); }
footer .fine .mct { display: block; width: 160px; height: auto; margin-bottom: 10px; }
footer .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; font-size: 0.82rem; }
footer .brand img { width: 60px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Article listing: topic jump links and groups */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip-link { color: var(--white); text-decoration: none; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 5px 12px; font-size: 0.88rem; font-weight: 700; }
.chip-link:hover { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.group-title { font-size: 1.5rem; font-weight: 800; margin: 36px 0 16px; scroll-margin-top: 90px; display: flex; align-items: baseline; gap: 10px; }
.group-title:first-child { margin-top: 0; }
.group-title span { font-family: var(--font-body); font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.prose .sources { font-size: 0.92rem; }
.prose .sources li::marker { color: var(--muted); }

/* Share bar, FAQs, service and state pages */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 36px; padding-top: 20px; border-top: 1.5px solid var(--line); }
.share span { font-family: var(--font-display); font-weight: 700; color: var(--navy); margin-right: 4px; }
.share a, .share button { font: inherit; font-size: 0.92rem; font-weight: 700; color: var(--royal); background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px; text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--royal); }
.faq { margin-top: 36px; }
.faq details { border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); padding: 14px 18px; margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.faq details p { margin-top: 10px; }
.prose ul.checks, .prose ul.std, .prose ul.svc-links { list-style: none; padding: 0; display: grid; gap: 8px; }
.prose ul.checks li { padding-left: 30px; position: relative; }
.prose ul.checks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230B1F4D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.prose ul.std { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 600px) { .prose ul.std { grid-template-columns: minmax(0, 1fr); } }
.prose ul.std li { background: var(--white); border: 1.5px solid var(--line); border-left: 5px solid var(--red); border-radius: 10px; padding: 14px 16px; display: grid; gap: 4px; }
.prose ul.std li span { color: var(--muted); font-size: 0.95rem; }
.prose ul.svc-links { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.prose ul.svc-links a, .state-grid a { display: block; background: var(--white); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px; font-weight: 700; text-decoration: none; }
.state-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.band-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.7); box-shadow: none; }
.btn-ghost:hover { border-color: #FFD21F; color: #FFD21F; }
.band .meta a { color: var(--yellow); font-weight: 700; }

/* Spanish labels run longer: keep nav items on one line */
.topbar nav a, .topbar .btn { white-space: nowrap; }
html[lang="es"] .topbar nav { gap: 16px; }
@media (max-width: 1240px) { html[lang="es"] .topbar .navlink { font-size: 0.92rem; } }

/* Site search: header icon, and the search box on /search/ and /articles/ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav-search { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: var(--white); border: 1px solid rgba(255,255,255,.35); flex: none; }
.nav-search:hover, .nav-search:focus-visible { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.site-search { display: flex; gap: 10px; margin-top: 6px; max-width: 720px; }
.site-search input { flex: 1; min-width: 0; font: inherit; font-size: 1.1rem; padding: 13px 16px; border-radius: 10px; border: 2px solid transparent; background: var(--white); color: var(--navy); }
.site-search input:focus { outline: none; border-color: var(--yellow); }
.site-search .btn { flex: none; }
@media (max-width: 420px) { .site-search .btn { padding-inline: 16px; } }
