/*
Theme Name: AccidentFiling.ai
Theme URI: https://accidentfiling.ai
Author: AccidentFiling.ai
Description: Mobile-first editorial theme for independent U.S. accident information and local official resources.
Version: 0.6.12
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: accidentfiling
License: GNU General Public License v2 or later
*/

:root {
  --af-navy: #0b234f;
  --af-navy-2: #173a68;
  --af-blue: #1766ff;
  --af-blue-hover: #0d4fd4;
  --af-ink: #15233c;
  --af-muted: #526079;
  --af-border: #dbe3f2;
  --af-surface: #f7f9fe;
  --af-tint: #edf2ff;
  --af-lime: #d9ff71;
  --af-white: #fff;
  --af-max: 1180px;
  --af-radius: 16px;
  --af-shadow: 0 10px 28px rgba(14, 38, 86, .08);
}
* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; }
body { max-width: 100%; margin: 0; overflow-x: clip; background: var(--af-white); color: var(--af-ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.65; }
a { color: var(--af-blue); text-underline-offset: .18em; }
a:hover { color: var(--af-blue-hover); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, .af-button { min-height: 48px; }
:focus-visible { outline: 3px solid var(--af-lime); outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.af-shell { width: min(calc(100% - 40px), var(--af-max)); margin-inline: auto; }
.af-hero__grid > *, .af-search-band__inner > *, .af-type-grid > *, .af-guide-grid > *, .af-step > *, .af-local-help > * { min-width: 0; }
.af-section { padding: 34px 0; }
.af-section--tight { padding: 22px 0; }
.af-section-title { margin: 0 0 18px; color: var(--af-navy); font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.12; letter-spacing: -.03em; }
.af-card { background: var(--af-white); border: 1px solid var(--af-border); border-radius: var(--af-radius); box-shadow: 0 4px 16px rgba(14, 38, 86, .04); }
.af-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border: 1px solid var(--af-blue); border-radius: 9px; background: var(--af-blue); color: var(--af-white); font-weight: 750; line-height: 1.1; text-decoration: none; cursor: pointer; transition: .18s ease; }
.af-button:hover { background: var(--af-blue-hover); border-color: var(--af-blue-hover); color: var(--af-white); transform: translateY(-1px); }
.af-button--outline { background: var(--af-white); color: var(--af-blue); }
.af-button--outline:hover { color: var(--af-white); }
.af-kicker { margin: 0 0 10px; color: var(--af-navy); font-size: .82rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.site-header { position: relative; z-index: 20; border-bottom: 1px solid rgba(219,227,242,.7); background: rgba(255,255,255,.96); }
.site-header__inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.af-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--af-navy); font-size: 1.22rem; font-weight: 850; letter-spacing: -.025em; text-decoration: none; }
.af-brand:hover { color: var(--af-navy); }
.af-brand__mark { width: 34px; height: 40px; color: var(--af-blue); flex: none; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--af-navy); font-weight: 650; text-decoration: none; }
.site-nav a:hover { color: var(--af-blue); }
.site-nav .af-button { color: var(--af-white); }
.af-guide-search { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
.af-search-autocomplete { position: relative; flex: 1 1 auto; min-width: 0; }
.af-guide-search input[type="search"] { width: min(240px, 34vw); min-height: 48px; padding: 10px 13px; border: 1px solid #cbd5e7; border-radius: 9px; background: #fff; color: var(--af-ink); }
.af-guide-search .af-button { min-height: 48px; padding-inline: 16px; }
.af-search-suggestions { position: absolute; z-index: 1200; top: calc(100% + 7px); left: 0; right: 0; min-width: min(430px, 86vw); max-height: min(420px, 65vh); overflow-y: auto; padding: 7px; border: 1px solid var(--af-border); border-radius: 12px; background: #fff; box-shadow: 0 18px 48px rgba(11,35,79,.18); }
.af-search-suggestions[hidden] { display: none; }
.af-search-suggestion { display: grid; gap: 2px; padding: 11px 12px; border-radius: 8px; color: var(--af-ink); text-decoration: none; }
.af-search-suggestion:hover, .af-search-suggestion.is-active { background: var(--af-tint); color: var(--af-navy); }
.af-search-suggestion__label { font-size: .94rem; font-weight: 760; line-height: 1.28; }
.af-search-suggestion__meta { color: var(--af-muted); font-size: .75rem; line-height: 1.3; }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--af-navy); width: 48px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 3px; margin: 5px 0; border-radius: 4px; background: currentColor; }
.af-hero { background: linear-gradient(122deg, #eff3ff 0%, #e8f0ff 60%, #f7f9ff 100%); overflow: hidden; }
.af-hero__grid { min-height: 500px; display: grid; grid-template-columns: 1.12fr .88fr; gap: 46px; align-items: center; padding-block: 54px; }
.af-hero__content { max-width: 720px; }
.af-hero h1 { margin: 0; color: var(--af-navy); font-size: clamp(3rem, 5.4vw, 5.05rem); line-height: .98; letter-spacing: -.055em; }
.af-hero__lede { max-width: 620px; margin: 20px 0 24px; color: #3d4b64; font-size: clamp(1.08rem, 2vw, 1.35rem); line-height: 1.42; }
.af-hero__search { max-width: 660px; }
.af-hero__search .af-guide-search { gap: 10px; }
.af-hero__search .af-guide-search input[type="search"] { width: 100%; min-height: 60px; padding-inline: 18px; border-color: #b9c9e7; border-radius: 11px; box-shadow: 0 8px 20px rgba(14, 38, 86, .08); font-size: 1rem; }
.af-hero__search .af-button { min-height: 60px; padding-inline: 24px; border-radius: 11px; }
.af-emergency { margin: 14px 0 0; color: var(--af-ink); font-size: .96rem; }
.af-hero__media { position: relative; min-height: 400px; }
.af-hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: var(--af-shadow); }
.af-map-art { position: absolute; inset: 20px 0 20px 72%; overflow: hidden; border: 1px solid rgba(23,102,255,.16); border-radius: 18px; background-color: #f7f6ed; background-image: linear-gradient(38deg, transparent 44%, #cbd3df 45%, #cbd3df 47%, transparent 48%), linear-gradient(115deg, transparent 46%, #dae0e8 47%, #dae0e8 50%, transparent 51%), linear-gradient(0deg, transparent 47%, #b8dcf2 48%, #b8dcf2 58%, transparent 59%); background-size: 88px 74px, 96px 86px, 100% 100%; }
.af-map-art::after { content: ''; position: absolute; left: 48%; top: 42%; width: 28px; height: 36px; border-radius: 50% 50% 50% 0; background: var(--af-blue); transform: rotate(-45deg); box-shadow: 0 5px 12px rgba(23,102,255,.25); }
.af-map-art__label { position: absolute; right: 12px; bottom: 12px; padding: 5px 8px; border-radius: 6px; background: rgba(255,255,255,.92); color: var(--af-muted); font-size: .68rem; font-weight: 700; }
.af-search-band { margin-top: 18px; }
.af-search-band__inner { display: grid; grid-template-columns: minmax(220px, .75fr) minmax(360px, 1.35fr) auto; align-items: center; gap: 18px; padding: 18px 22px; background: var(--af-tint); border-radius: var(--af-radius); }
.af-search-band h2 { margin: 0; color: var(--af-navy); font-size: 1.45rem; line-height: 1.1; }
.af-search-band p { margin: 0; color: var(--af-muted); font-size: .96rem; line-height: 1.45; }
.af-search-band .af-guide-search { width: 100%; }
.af-search-band .af-guide-search input[type="search"] { width: 100%; min-height: 54px; }
.af-search-band .af-button { min-height: 54px; white-space: nowrap; }
.af-type-grid, .af-guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.af-type-card, .af-guide-card { min-height: 82px; display: flex; align-items: center; gap: 14px; padding: 18px; color: var(--af-navy); font-weight: 760; text-decoration: none; }
.af-type-card:hover, .af-guide-card:hover { color: var(--af-blue); border-color: #abc2fa; transform: translateY(-2px); }
.af-card-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--af-navy-2); font-size: 1.65rem; flex: none; }
.af-icon-svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.af-card-arrow { margin-left: auto; font-size: 1.35rem; }
.af-steps { padding: 24px; background: var(--af-tint); border-radius: var(--af-radius); }
.af-step-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.af-step { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 6px 24px; border-right: 1px solid #d8e1f5; }
.af-step:first-child { padding-left: 0; }
.af-step:last-child { padding-right: 0; border-right: 0; }
.af-step__number { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--af-lime); color: var(--af-navy); font-size: 1.2rem; font-weight: 850; }
.af-step h3 { margin: 1px 0 3px; color: var(--af-navy); font-size: 1rem; line-height: 1.2; }
.af-step p { margin: 0; color: var(--af-muted); font-size: .93rem; line-height: 1.4; }
.af-guide-grid { grid-template-columns: repeat(3, 1fr); }
.af-guide-card { min-height: 72px; }
.af-guide-card .af-card-icon { color: var(--af-blue); }
.af-trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.af-trust-panel { padding: 24px; border: 1px solid var(--af-border); border-radius: var(--af-radius); background: var(--af-surface); }
.af-trust-panel h3 { margin: 0 0 8px; color: var(--af-navy); font-size: 1.35rem; line-height: 1.2; }
.af-trust-panel p:last-child { margin-bottom: 0; color: var(--af-muted); }
.af-local-help { display: grid; grid-template-columns: 1.06fr .94fr; gap: 16px; align-items: stretch; }
.af-firm-panel, .af-intake-panel { padding: 22px; background: var(--af-tint); border-radius: var(--af-radius); }
.af-firm-panel h2, .af-intake-panel h2 { margin: 0 0 12px; color: var(--af-navy); font-size: 1.75rem; line-height: 1.1; }
.af-demo-map { height: 260px; display: grid; place-items: center; position: relative; overflow: hidden; border-radius: 12px 12px 0 0; background-color: #f7f6ed; background-image: linear-gradient(38deg, transparent 44%, #cbd3df 45%, #cbd3df 47%, transparent 48%), linear-gradient(115deg, transparent 46%, #dae0e8 47%, #dae0e8 50%, transparent 51%), linear-gradient(0deg, transparent 47%, #b8dcf2 48%, #b8dcf2 58%, transparent 59%); background-size: 110px 85px, 120px 95px, 100% 100%; color: var(--af-navy); font-weight: 850; font-size: 1.45rem; }
.af-map-pin { display: block; width: 30px; height: 38px; margin-bottom: 10px; border-radius: 50% 50% 50% 0; background: var(--af-blue); transform: rotate(-45deg); }
.af-demo-map small { position: absolute; right: 9px; bottom: 8px; padding: 4px 7px; border-radius: 5px; background: rgba(255,255,255,.9); color: var(--af-muted); font-size: .65rem; }
.af-firm-card { padding: 18px; border-radius: 0 0 12px 12px; background: #fff; }
.af-firm-card h3 { margin: 0 0 8px; color: var(--af-navy); font-size: 1.17rem; }
.af-demo-badge { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 99px; background: var(--af-lime); color: var(--af-navy); font-size: .66rem; font-weight: 850; letter-spacing: .04em; vertical-align: middle; }
.af-firm-card p { margin: 5px 0; font-size: .92rem; line-height: 1.35; }
.af-intake-panel__disclosure { color: var(--af-muted); font-size: .83rem; line-height: 1.45; }
.af-form-field { margin: 12px 0; }
.af-form-field label { display: block; margin-bottom: 5px; color: var(--af-navy); font-size: .88rem; font-weight: 700; }
.af-form-field input, .af-form-field select, .af-form-field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cbd5e7; border-radius: 8px; background: #fff; }
.af-check { display: grid; grid-template-columns: 22px 1fr; gap: 9px; align-items: start; margin: 14px 0; font-size: .86rem; }
.af-check input { width: 20px; height: 20px; margin: 2px 0 0; }
.af-intake-panel .af-button { width: 100%; }
.af-form-status { min-height: 24px; margin: 10px 0 0; font-size: .86rem; font-weight: 650; }
.af-staging-notice { padding: 11px 14px; border: 1px solid #f2d78c; border-radius: 8px; background: #fff8de; color: #66500b; font-size: .83rem; }
.af-article-shell { width: min(calc(100% - 40px), 820px); margin-inline: auto; padding: 44px 0 70px; }
.af-breadcrumbs { margin-bottom: 22px; color: var(--af-muted); font-size: .86rem; }
.af-breadcrumbs a { color: inherit; }
.af-article-header h1 { margin: 0; color: var(--af-navy); font-size: clamp(2.45rem, 5.6vw, 4.45rem); line-height: 1.02; letter-spacing: -.045em; }
.af-page-header { margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--af-border); }
.af-article-deck { margin: 18px 0; color: var(--af-muted); font-size: 1.18rem; line-height: 1.5; }
.af-article-meta { display: flex; flex-wrap: wrap; gap: 9px 18px; padding: 14px 0 22px; border-bottom: 1px solid var(--af-border); color: var(--af-muted); font-size: .84rem; }
.af-safety-note { margin: 26px 0; padding: 18px 20px; border-left: 5px solid var(--af-blue); border-radius: 8px; background: var(--af-tint); }
.af-safety-note strong { color: var(--af-navy); }
.entry-content { font-size: 1.04rem; }
.entry-content h2 { margin: 2.2em 0 .65em; color: var(--af-navy); font-size: 1.75rem; line-height: 1.18; letter-spacing: -.025em; }
.entry-content h3 { margin: 1.7em 0 .45em; color: var(--af-navy); font-size: 1.25rem; line-height: 1.25; }
.entry-content p, .entry-content li { max-width: 72ch; }
.entry-content li { margin: .48em 0; }
.entry-content blockquote { margin: 26px 0; padding: 16px 20px; border-left: 4px solid var(--af-lime); background: var(--af-surface); }
.entry-content table { width: 100%; display: block; overflow-x: auto; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--af-border); text-align: left; vertical-align: top; }
.entry-content th { background: var(--af-tint); color: var(--af-navy); }
.entry-content .footnote-ref { font-size: .72em; font-weight: 800; line-height: 1; }
.entry-content .footnote { margin-top: 38px; padding: 20px; border-radius: 12px; background: var(--af-surface); color: var(--af-muted); font-size: .88rem; }
.entry-content .footnote::before { content: 'Source notes'; display: block; margin-bottom: 12px; color: var(--af-navy); font-size: 1.15rem; font-weight: 800; }
.entry-content .footnote hr { display: none; }
.entry-content .footnote ol { margin: 0; padding-left: 22px; }
.entry-content .footnote li { margin: 10px 0; }
.entry-content .footnote-backref { margin-left: 5px; text-decoration: none; }
.af-help-quiz { margin: 42px 0; padding: 26px; overflow: hidden; border: 1px solid #b9cdf8; border-radius: var(--af-radius); background: linear-gradient(145deg, #edf3ff 0%, #f8faff 100%); box-shadow: var(--af-shadow); }
.af-help-quiz__intro h2 { margin: 0 0 10px; color: var(--af-navy); font-size: clamp(1.65rem, 4vw, 2.15rem); line-height: 1.12; letter-spacing: -.03em; }
.af-help-quiz__intro p:last-child { margin: 0; color: var(--af-muted); }
.af-help-quiz__disclosure { margin: 20px 0; padding: 16px 18px; border-left: 4px solid var(--af-blue); border-radius: 9px; background: #fff; color: #3e4c65; font-size: .88rem; line-height: 1.5; }
.af-help-quiz__disclosure p { margin: 0 0 8px; }
.af-help-quiz__disclosure p:last-child { margin-bottom: 0; }
.af-help-quiz__start { width: 100%; }
.af-help-quiz__links { margin: 12px 0 0; color: var(--af-muted); font-size: .8rem; text-align: center; }
.af-help-quiz__modal { position: fixed; inset: 0; z-index: 999999; padding: 0; background: #06132f; }
.af-help-quiz__modal[hidden] { display: none; }
.af-help-quiz__dialog { position: relative; width: 100%; height: 100%; height: 100dvh; overflow: hidden; background: #06132f; }
.af-help-quiz__close { position: absolute; z-index: 3; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); display: grid; width: 48px; height: 48px; place-items: center; padding: 0; border: 1px solid rgba(255, 255, 255, .48); border-radius: 999px; background: rgba(5, 18, 46, .46); color: #fff; font: inherit; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 28px rgba(0, 0, 0, .2); }
.af-help-quiz__close:hover, .af-help-quiz__close:focus-visible { border-color: #fff; background: rgba(5, 18, 46, .72); outline: 3px solid rgba(255, 255, 255, .55); outline-offset: 2px; }
.af-help-quiz__close span { font-size: 2rem; font-weight: 300; line-height: 1; transform: translateY(-1px); }
.af-help-quiz__widget { position: absolute; inset: 0; min-height: 0; overflow: hidden; background: #06132f; }
.af-help-quiz__widget[hidden] { display: none; }
.af-help-quiz__widget #fmc-widget { position: absolute; inset: 0; min-height: 0; overflow: hidden; }
.af-help-quiz__widget iframe { position: absolute !important; inset: 0; display: block; width: 100%; height: 100% !important; min-height: 0 !important; max-height: 100% !important; border: 0; background: #06132f; }
body.af-quiz-modal-open { overflow: hidden; }
.af-lawyer-quiz { margin: 26px 0 40px; padding: 24px; border: 1px solid #b9cdf8; border-radius: var(--af-radius); background: var(--af-tint); }
.af-lawyer-quiz h2 { margin: 0 0 12px; color: var(--af-navy); font-size: clamp(1.6rem, 4vw, 2rem); line-height: 1.17; }
.af-lawyer-quiz > p { margin: 10px 0; }
.af-lawyer-quiz__context { font-size: .94rem; color: var(--af-ink); }
.af-lawyer-quiz__frame-wrap { position: relative; width: 100%; height: min(760px, 86dvh); min-height: 520px; margin: 18px 0 8px; overflow: hidden; border-radius: 12px; background: #06132f; }
.af-lawyer-quiz__frame-wrap iframe { display: block; width: 100%; height: 100%; border: 0; }
.af-lawyer-quiz__loading, .af-lawyer-quiz__fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; background: #1149bc; color: #fff; text-align: center; }
.af-lawyer-quiz__loading { margin: 0; font-weight: 700; }
.af-lawyer-quiz__fallback[hidden], .af-lawyer-quiz__loading[hidden] { display: none; }
.af-lawyer-quiz__frame-wrap.is-unavailable { height: auto; min-height: 180px; }
.af-lawyer-quiz__frame-wrap.is-unavailable iframe { display: none; }
.af-lawyer-quiz__frame-wrap.is-unavailable .af-lawyer-quiz__fallback { position: relative; min-height: 180px; }
.af-lawyer-quiz__fallback p { max-width: 34ch; margin: 0; font-weight: 700; }
.af-lawyer-quiz__fallback .af-button { border-color: #d9ff71; background: #d9ff71; color: #0b234f; }
.af-lawyer-quiz__links { font-size: .86rem; }
.af-lawyer-quiz__disclosure { margin-top: 18px; padding: 16px 18px; border-left: 4px solid var(--af-blue); border-radius: 9px; background: #fff; color: #3e4c65; font-size: .84rem; line-height: 1.5; }
.af-lawyer-quiz__disclosure p { margin: 0 0 9px; }
.af-lawyer-quiz__disclosure p:last-child { margin-bottom: 0; }
.af-resources-quiz { position: relative; height: calc(100vh - 76px); height: calc(100dvh - 76px); min-height: 560px; overflow: hidden; background: #06132f; }
.af-resources-quiz__widget { position: absolute; inset: 0; overflow: hidden; background: #06132f; }
.af-resources-quiz__widget iframe { position: absolute !important; inset: 0; display: block; width: 100%; height: 100% !important; min-height: 0 !important; max-height: 100% !important; border: 0; background: #06132f; }
.af-resources-quiz__noscript { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 24px; background: var(--af-tint); text-align: center; }
.af-review-box, .af-sources-box { margin-top: 34px; padding: 20px; border-radius: 12px; background: var(--af-surface); }
.af-review-box h2, .af-sources-box h2 { margin-top: 0; font-size: 1.28rem; }
.af-index-shell { width: min(calc(100% - 40px), var(--af-max)); }
.af-index-shell .af-page-header { max-width: 820px; }
.af-index-shell .af-page-header .af-guide-search { margin-top: 20px; }
.af-index-shell .af-page-header .af-guide-search input[type="search"] { width: min(520px, 68vw); }
.af-index-intro { max-width: 820px; margin-bottom: 32px; }
.af-collection-insurance { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 22px; padding: 24px; background: var(--af-tint); }
.af-collection-insurance > div { max-width: 720px; }
.af-collection-insurance h2 { margin: 0 0 8px; color: var(--af-navy); font-size: 1.45rem; line-height: 1.18; }
.af-collection-insurance p:last-child { margin-bottom: 0; }
.af-collection-insurance .af-button { flex: none; max-width: 290px; text-align: center; }
.af-collection-switcher { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 28px; }
.af-collection-switcher a { padding: 9px 13px; border: 1px solid var(--af-border); border-radius: 999px; color: var(--af-navy); font-size: .82rem; font-weight: 760; text-decoration: none; }
.af-collection-switcher a:hover, .af-collection-switcher a.is-current { border-color: var(--af-blue); background: var(--af-blue); color: #fff; }
.af-collection-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; padding: 24px; border-radius: var(--af-radius); background: var(--af-navy); color: #fff; }
.af-collection-cta h2 { margin: 0; color: #fff; font-size: 1.4rem; }
.af-index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.af-index-card { display: flex; min-width: 0; flex-direction: column; padding: 22px; }
.af-index-card h2 { margin: 0 0 10px; color: var(--af-navy); font-size: 1.3rem; line-height: 1.22; letter-spacing: -.02em; }
.af-index-card h2 a { color: inherit; text-decoration: none; }
.af-index-card h2 a:hover { color: var(--af-blue); }
.af-index-card p { margin: 0 0 16px; color: var(--af-muted); font-size: .94rem; }
.af-index-card .af-index-meta { margin-bottom: 7px; color: var(--af-blue); font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.af-text-link { margin-top: auto; font-weight: 800; text-decoration: none; }
.af-empty-state { padding: 28px; }
.af-empty-state h2 { margin-top: 0; color: var(--af-navy); }
.af-pagination { margin-top: 36px; }
.af-pagination > .page-numbers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.af-pagination .page-numbers li { margin: 0; }
.af-pagination a, .af-pagination .current { display: grid; min-width: 44px; min-height: 44px; place-items: center; padding: 8px 11px; border: 1px solid transparent; border-radius: 9px; color: var(--af-navy); font-size: .92rem; font-weight: 720; line-height: 1; text-decoration: none; }
.af-pagination a:hover { border-color: #b9cdf8; background: var(--af-tint); color: var(--af-blue-hover); }
.af-pagination a:focus-visible { border-color: var(--af-blue); }
.af-pagination .current { border-color: var(--af-blue); background: var(--af-blue); color: #fff; box-shadow: 0 4px 10px rgba(23, 102, 255, .2); }
.af-pagination .dots { min-width: 24px; padding-inline: 2px; color: var(--af-muted); font-weight: 700; }
.navigation.pagination { margin-top: 36px; }
.navigation.pagination .nav-links { display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px; }
.navigation.pagination .page-numbers { display: inline-grid !important; flex: 0 0 auto !important; width: auto !important; min-width: 44px; min-height: 44px; place-items: center; padding: 8px 11px; border: 1px solid transparent; border-radius: 9px; color: var(--af-navy); font-size: .92rem; font-weight: 720; line-height: 1; text-decoration: none; }
.navigation.pagination a.page-numbers:hover { border-color: #b9cdf8; background: var(--af-tint); color: var(--af-blue-hover); }
.navigation.pagination a.page-numbers:focus-visible { border-color: var(--af-blue); }
.navigation.pagination .page-numbers.current { border-color: var(--af-blue); background: var(--af-blue); color: #fff; box-shadow: 0 4px 10px rgba(23, 102, 255, .2); }
.navigation.pagination .page-numbers.dots { min-width: 24px; padding-inline: 2px; color: var(--af-muted); font-weight: 700; }
.af-sitemap-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 18px; }
.af-sitemap-section { padding: 24px; }
.af-sitemap-section h2 { margin-top: 0; color: var(--af-navy); }
.af-sitemap-section ul { margin: 0; padding-left: 22px; }
.af-sitemap-section li { margin: 8px 0; }
.af-sitemap-xml { margin-top: 28px; padding: 16px 18px; border-radius: 10px; background: var(--af-surface); }
.site-footer { padding: 28px 0; background: var(--af-navy); color: #dbe6ff; }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer .af-brand { color: #fff; }
.site-footer p { margin: 2px 0 0; font-size: .78rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: #eef3ff; font-size: .85rem; text-decoration: none; }
.site-footer a:hover { color: var(--af-lime); }
@media (max-width: 900px) {
  .site-header__inner { min-height: 64px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; padding: 18px 20px 24px; background: #fff; border-bottom: 1px solid var(--af-border); box-shadow: var(--af-shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: grid; gap: 10px; }
  .site-nav a { display: block; padding: 8px; }
  .site-nav .af-guide-search { margin-top: 14px; }
  .site-nav .af-guide-search input[type="search"] { width: 100%; }
  .af-resources-quiz { height: calc(100vh - 64px); height: calc(100dvh - 64px); min-height: 500px; }
  .af-hero__grid { min-height: auto; grid-template-columns: 1fr 43%; gap: 18px; padding-block: 28px; }
  .af-hero h1 { font-size: clamp(2.35rem, 8.5vw, 4rem); }
  .af-hero__lede { font-size: 1rem; }
  .af-hero__media { min-height: 330px; }
  .af-hero__photo { inset: 0; width: 100%; }
  .af-map-art { display: none; }
  .af-search-band__inner { grid-template-columns: 1fr auto; }
  .af-search-band__inner > div { grid-column: 1 / -1; }
  .af-search-band .af-guide-search { min-width: 0; }
  .af-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .af-collection-insurance { align-items: flex-start; flex-direction: column; }
  .af-collection-insurance .af-button { width: 100%; max-width: none; }
  .af-sitemap-grid { grid-template-columns: 1fr; }
  .af-type-grid { grid-template-columns: repeat(2, 1fr); }
  .af-guide-grid { grid-template-columns: 1fr; }
  .af-trust-grid { grid-template-columns: 1fr; }
  .af-step-grid { grid-template-columns: 1fr; }
  .af-step { padding: 14px 0; border-right: 0; border-bottom: 1px solid #d8e1f5; }
  .af-step:last-child { border-bottom: 0; }
  .af-local-help { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .af-shell, .af-article-shell { width: min(calc(100% - 28px), var(--af-max)); }
  .af-brand { font-size: 1rem; }
  .af-brand__mark { width: 28px; height: 34px; }
  .af-section { padding: 24px 0; }
  .af-hero__grid { grid-template-columns: 1fr; gap: 22px; align-items: start; padding-block: 32px; }
  .af-hero h1 { font-size: clamp(2.3rem, 10vw, 3.1rem); }
  .af-hero__lede { margin: 12px 0 18px; line-height: 1.4; }
  .af-hero__search .af-guide-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .af-hero__search .af-guide-search .af-button { padding-inline: 16px; }
  .af-hero__search .af-guide-search input[type="search"], .af-hero__search .af-button { min-height: 56px; }
  .af-hero__media { min-height: 210px; }
  .af-search-band__inner { grid-template-columns: 1fr; padding: 14px; gap: 10px; }
  .af-search-band__inner > div { grid-column: auto; }
  .af-search-band .af-guide-search { display: grid; grid-template-columns: minmax(0, 1fr) 90px; }
  .af-search-band .af-guide-search .af-button { width: 90px; padding-inline: 8px; }
  .af-search-band__inner > .af-button { width: 100%; }
  .af-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .af-type-card { min-height: 78px; gap: 8px; padding: 11px; overflow-wrap: anywhere; font-size: .82rem; line-height: 1.18; }
  .af-type-card .af-card-arrow { display: none; }
  .af-card-icon { width: 32px; font-size: 1.38rem; }
  .af-steps { padding: 16px; }
  .af-step p, .af-intake-panel__disclosure, .af-check span { overflow-wrap: anywhere; }
  .af-firm-panel, .af-intake-panel { padding: 14px; }
  .af-demo-map { height: 220px; }
  .af-article-shell { padding-top: 28px; }
  .af-article-header h1 { font-size: 2.35rem; }
  .af-help-quiz { margin: 32px 0; padding: 18px; }
  .af-lawyer-quiz { margin: 32px 0; padding: 16px; }
  .af-lawyer-quiz__fallback .af-button { width: 100%; }
  .af-lawyer-quiz__frame-wrap { min-height: 600px; height: min(760px, 82dvh); }
  .af-lawyer-quiz__frame-wrap.is-unavailable { min-height: 180px; height: auto; }
  .af-help-quiz__close { top: max(9px, env(safe-area-inset-top)); right: max(9px, env(safe-area-inset-right)); width: 44px; height: 44px; }
  .af-index-shell .af-page-header .af-guide-search { display: grid; grid-template-columns: minmax(0, 1fr) 90px; }
  .af-index-shell .af-page-header .af-guide-search input[type="search"] { width: 100%; }
  .af-index-shell .af-page-header .af-guide-search .af-button { padding-inline: 8px; }
  .af-index-grid { grid-template-columns: 1fr; }
  .af-pagination { margin-top: 28px; }
  .af-pagination > .page-numbers { gap: 3px; }
  .af-pagination a, .af-pagination .current { min-width: 44px; padding-inline: 8px; }
  .af-pagination .dots { min-width: 18px; }
  .navigation.pagination { margin-top: 28px; }
  .navigation.pagination .nav-links { gap: 3px; }
  .navigation.pagination .page-numbers { min-width: 44px; padding-inline: 8px; }
  .navigation.pagination .page-numbers.dots { min-width: 18px; }
  .af-collection-cta { align-items: stretch; flex-direction: column; }
  .af-collection-cta .af-button { width: 100%; }
  .site-footer__inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }
