/* ==========================================================================
   CPAExam.com V2 — Regulatory & Fintech Authority Design System
   Pure Semantic HTML5 & CSS3 | Zero WordPress Dependencies
   ========================================================================== */

:root {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --ink-950: #090f1d;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --border-light: #e2e8f0;
  --border-strong: #cbd5e1;

  --brand-700: #1e40af;
  --brand-600: #1d4ed8;
  --brand-500: #2563eb;
  --brand-100: #dbeafe;
  --brand-50: #eff6ff;

  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-200: #a7f3d0;
  --emerald-50: #ecfdf5;

  --amber-800: #92400e;
  --amber-200: #fde68a;
  --amber-50: #fffbeb;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.07), 0 12px 28px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);

  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--ink-700);
  overflow-x: clip;
}

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

.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;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 16px;
  background: var(--ink-900);
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

/* 1. Regulatory Trust Topbar & Sticky Header */
.f2-topbar {
  background: var(--ink-900);
  color: #cbd5e1;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.f2-topbar__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 7px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.f2-topbar__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6ee7b7;
  font-weight: 600;
}
.f2-topbar__meta { color: #94a3b8; }

.f2-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}
.f2-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 68px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.f2-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-900);
  flex-shrink: 0;
}
.f2-brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ink-900) 0%, var(--brand-700) 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
}
.f2-brand__text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink-900);
}
.f2-brand__text span {
  color: var(--brand-600);
  font-weight: 600;
}

.f2-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.f2-nav__item { position: relative; }
.f2-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.f2-nav__link:hover,
.f2-nav__link[aria-current="page"] {
  background: var(--bg-subtle);
  color: var(--brand-600);
}
.f2-nav__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 230px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  list-style: none;
  margin: 0;
  z-index: 950;
}
.f2-nav__item:hover .f2-nav__dropdown,
.f2-nav__item:focus-within .f2-nav__dropdown { display: block; }
.f2-nav__dropdown a {
  display: block;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-700);
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.f2-nav__dropdown a:hover { background: var(--brand-50); color: var(--brand-600); }

.f2-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.f2-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-page);
  color: var(--ink-600);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.f2-search-btn:hover { border-color: var(--brand-500); color: var(--ink-900); }
.f2-search-btn kbd {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 5px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  color: var(--ink-500);
}
.f2-quiz-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--emerald-700);
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.f2-quiz-trigger:hover { background: var(--emerald-800); }

.f2-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--ink-900);
  cursor: pointer;
}

@media (max-width: 1180px) {
  .f2-search-btn kbd { display: none; }
  .f2-nav__link { padding: 7px 8px; font-size: 13.5px; }
}
@media (max-width: 1090px) {
  .f2-topbar__meta { display: none; }
  .f2-burger { display: inline-flex; }
  .f2-quiz-trigger { display: none; }
  .f2-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    padding: 14px 20px 18px;
    box-shadow: var(--shadow-lg);
  }
  .f2-nav.is-open { display: block; }
  .f2-nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .f2-nav__dropdown { position: static; display: block; box-shadow: none; border: none; padding-left: 14px; }
}

/* 2. Buttons & Badges */
.f2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none !important;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.f2-btn--primary {
  background: var(--brand-600);
  color: #ffffff !important;
}
.f2-btn--primary:hover { background: var(--brand-700); color: #ffffff !important; }
.f2-btn--emerald {
  background: var(--emerald-700);
  color: #ffffff !important;
}
.f2-btn--emerald:hover { background: var(--emerald-800); color: #ffffff !important; }
.f2-btn--outline {
  background: #ffffff;
  border-color: var(--border-strong);
  color: var(--ink-900) !important;
}
.f2-btn--outline:hover {
  border-color: var(--brand-600);
  background: var(--brand-50);
  color: var(--brand-700) !important;
}
.f2-btn--sm { padding: 8px 13px; font-size: 13px; border-radius: 8px; }

.f2-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .f2-pill { font-size: 10.5px; padding: 3px 8px; }
}
.f2-pill--emerald { background: var(--emerald-50); color: var(--emerald-800); border: 1px solid var(--emerald-200); }
.f2-pill--brand { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); }
.f2-pill--amber { background: var(--amber-50); color: var(--amber-800); border: 1px solid var(--amber-200); }

/* 3. Flagship Homepage Hero (Light Fintech Authority Split) */
.f2-hero {
  background: radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 12% 85%, rgba(5, 150, 105, 0.07) 0%, transparent 40%),
              #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 44px 20px 52px;
}
.f2-hero__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 44px;
  align-items: stretch;
}
.f2-hero__inner > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}
.f2-finder { width: 100%; }
.f2-preview-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.f2-hero__title {
  margin: 14px 0 14px;
  font-size: clamp(2.1rem, 3.6vw, 3.05rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink-950);
}
.f2-hero__sub {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-600);
  max-width: 580px;
}

/* Searchable Combobox */
.f2-finder {
  background: var(--bg-page);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.f2-finder__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-600);
  margin-bottom: 8px;
}
.f2-finder__row {
  display: flex;
  gap: 10px;
}
.f2-combobox {
  position: relative;
  flex: 1;
  min-width: 0;
}
.f2-combobox__wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.f2-combobox__icon {
  position: absolute;
  left: 12px;
  color: var(--ink-500);
  pointer-events: none;
}
.f2-combobox__input {
  width: 100%;
  height: 46px;
  padding: 0 36px 0 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
}
.f2-combobox__input:focus {
  outline: 2px solid var(--brand-500);
  border-color: var(--brand-500);
}
.f2-combobox__toggle {
  position: absolute;
  right: 6px;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--ink-500);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.f2-combobox__list {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 270px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 960;
}
.f2-combobox.is-open .f2-combobox__list { display: block; }
.f2-combobox--up .f2-combobox__list {
  top: auto;
  bottom: calc(100% + 6px);
}
.f2-combobox__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-900);
}
.f2-combobox__opt:hover,
.f2-combobox__opt.is-active { background: var(--brand-50); color: var(--brand-700); }
.f2-combobox__opt-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
  font-variant-numeric: tabular-nums;
}
.f2-combobox__empty { padding: 10px 12px; font-size: 13.5px; color: var(--ink-500); }

.f2-quick-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.f2-quick-chips__label { font-size: 12.5px; color: var(--ink-500); font-weight: 500; margin-right: 2px; }
.f2-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--ink-700);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.f2-chip:hover,
.f2-chip.is-active {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #ffffff;
}

/* Hero Live State Preview Card */
.f2-preview-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--brand-600);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-md);
}
.f2-preview-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.f2-preview-card__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.f2-preview-card__sub {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--ink-500);
}
.f2-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.f2-stat-tile {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.f2-stat-tile__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-500);
  margin-bottom: 4px;
}
.f2-stat-tile__val {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}
.f2-stat-tile--highlight {
  background: var(--brand-50);
  border-color: var(--brand-100);
}
.f2-stat-tile--highlight .f2-stat-tile__val { color: var(--brand-700); }
.f2-preview-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.f2-preview-card__primary { grid-column: 1 / -1; }

@media (max-width: 980px) {
  .f2-hero { padding: 30px 18px 36px; }
  .f2-hero__inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .f2-finder__row { flex-direction: column; }
  .f2-preview-card { padding: 20px 18px; }
  .f2-stat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .f2-stat-tile { padding: 10px 11px; }
  .f2-stat-tile__val { font-size: 13.5px; }
  .f2-preview-card__actions { grid-template-columns: 1fr; }
}

/* 4. Interactive 53-State Rule Explorer & Filter Matrix */
.f2-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 20px;
}
.f2-section--tight { padding-top: 28px; padding-bottom: 44px; }
.f2-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}
.f2-section__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink-900);
}
.f2-section__desc {
  margin: 6px 0 0;
  font-size: 15.5px;
  color: var(--ink-600);
}

.f2-explorer {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.f2-explorer__controls {
  padding: 16px 20px;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.f2-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.f2-filter-btn {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink-700);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.f2-filter-btn:hover { border-color: var(--brand-600); color: var(--brand-700); }
.f2-filter-btn.is-active {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #ffffff;
}
.f2-explorer__search {
  width: 240px;
  max-width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
}
.f2-explorer__table-wrap {
  width: 100%;
  overflow-x: auto;
}
.f2-explorer__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}
.f2-explorer__table th {
  background: #f8fafc;
  padding: 12px 16px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-500);
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}
.f2-explorer__table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--ink-700);
  vertical-align: middle;
}
.f2-explorer__table tbody tr:hover { background: var(--brand-50); }
.f2-explorer__state-link {
  font-weight: 700;
  color: var(--ink-900);
  text-decoration: none;
}
.f2-explorer__state-link:hover { color: var(--brand-600); text-decoration: underline; }
.f2-explorer__footer {
  padding: 14px 20px;
  text-align: center;
  background: var(--bg-page);
  border-top: 1px solid var(--border-light);
}

/* Mobile Card-Rows for 53-State Explorer (<= 740px: Zero Horizontal Clipping!) */
@media (max-width: 740px) {
  .f2-explorer__controls { padding: 14px 16px; }
  .f2-explorer__search { width: 100%; }
  .f2-explorer__table-wrap { overflow-x: visible; }
  .f2-explorer__table,
  .f2-explorer__table tbody { display: block; width: 100%; }
  .f2-explorer__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .f2-explorer__table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 15px 16px;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
  }
  .f2-explorer__table td {
    padding: 0;
    border: none;
  }
  .f2-exp-col-state { font-size: 16px; }
  .f2-exp-col-sit { justify-self: end; }
  .f2-exp-col-meta {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    color: var(--ink-600);
    padding-top: 2px !important;
  }
  .f2-exp-col-meta::before {
    content: attr(data-label);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink-500);
  }
  .f2-exp-col-cta {
    grid-column: 1 / -1;
    margin-top: 4px;
  }
  .f2-exp-col-cta .f2-btn { width: 100%; }
}

/* 5. Page Header Banner (Inner Routes) */
.f2-page-head {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 28px 20px 26px;
}
.f2-page-head__inner {
  max-width: 1240px;
  margin: 0 auto;
}
.f2-page-head--narrow .f2-page-head__inner {
  max-width: 820px;
}
.f2-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-500);
  margin-bottom: 12px;
}
.f2-breadcrumbs a { color: var(--ink-600); text-decoration: none; font-weight: 500; }
.f2-breadcrumbs a:hover { color: var(--brand-600); text-decoration: underline; }
.f2-page-head__title {
  margin: 10px 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: var(--ink-950);
}
.f2-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
  font-size: 13.5px;
  color: var(--ink-500);
}
.f2-meta-row__verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--emerald-700);
  font-weight: 600;
}
.f2-meta-row a {
  color: var(--brand-600);
  font-weight: 600;
  text-decoration: none;
}
.f2-meta-row a:hover { text-decoration: underline; }

/* 6. Intent-Matched Page Shells */
.f2-shell-2col {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 40px;
  align-items: start;
}
.f2-shell-reader {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}
.f2-shell-full {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}
.f2-main-col { min-width: 0; }

@media (max-width: 1023px) {
  .f2-shell-2col {
    grid-template-columns: 1fr;
    padding: 24px 18px 48px;
    gap: 32px;
  }
  .f2-shell-reader, .f2-shell-full { padding: 24px 18px 48px; }
  .f2-page-head { padding: 22px 18px 20px; }
}

/* 7. At-a-Glance Regulatory Scorecard & Jump-Nav */
.f2-scorecard {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--emerald-600);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.f2-scorecard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.f2-scorecard__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink-900);
}
.f2-scorecard__lead {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-700);
}
.f2-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0;
}
.f2-metric {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 12px;
}
.f2-metric dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-500);
  margin-bottom: 3px;
}
.f2-metric dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
@media (max-width: 720px) {
  .f2-metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 440px) {
  .f2-scorecard { padding: 18px; }
  .f2-metrics { grid-template-columns: 1fr; }
}

/* Clean 2-Column Numbered TOC Grid (Collapsible on Mobile) */
.f2-toc {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.f2-toc__details summary {
  list-style: none;
  padding: 14px 20px;
  background: var(--bg-page);
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.f2-toc__details[open] summary {
  border-bottom-color: var(--border-light);
}
.f2-toc__details summary::-webkit-details-marker { display: none; }
.f2-toc__heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-900);
}
.f2-toc__count {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-500);
  text-transform: none;
  letter-spacing: 0;
}
.f2-toc__toggle-icon {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-600);
}
.f2-toc__details[open] .f2-toc__toggle-icon::before { content: "Hide ↑"; }
.f2-toc__details:not([open]) .f2-toc__toggle-icon::before { content: "Show ↓"; }

.f2-toc__list {
  list-style: none;
  margin: 0;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
}
.f2-toc__list--single {
  grid-template-columns: 1fr;
}
.f2-toc__item a {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 5px 8px;
  margin: 0 -8px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition: background 0.14s ease, color 0.14s ease;
}
.f2-toc__item a:hover {
  background: var(--brand-50);
  color: var(--brand-700);
}
.f2-toc__num {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--brand-600);
  background: var(--brand-50);
  border-radius: 4px;
  padding: 1px 6px;
}
@media (max-width: 680px) {
  .f2-toc__list { grid-template-columns: 1fr; padding: 12px 16px; gap: 6px; }
  .f2-toc__details summary { padding: 12px 16px; }
}

/* 8. Editorial Article Surface & High-Contrast Prose */
.f2-article-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 34px;
  box-shadow: var(--shadow-xs);
}
@media (max-width: 640px) {
  .f2-article-card { padding: 22px 18px; }
}

.f2-prose {
  font-size: 16.25px;
  line-height: 1.72;
  color: var(--ink-700);
}
.f2-prose section + section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
}
.f2-prose h2 {
  margin: 0 0 14px;
  font-size: clamp(1.32rem, 2vw, 1.58rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.f2-prose h3 {
  margin: 22px 0 10px;
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.38;
  color: var(--ink-900);
}
.f2-prose h4 {
  margin: 18px 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink-900);
}
.f2-prose p { margin: 0 0 15px; }
.f2-prose p:last-child { margin-bottom: 0; }
.f2-prose ul, .f2-prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.f2-prose li { margin-bottom: 7px; }
.f2-prose strong { color: var(--ink-900); font-weight: 700; }

/* Unmistakable High-Contrast Blue Links */
.f2-prose a:not(.f2-btn) {
  color: var(--brand-600);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(29, 78, 216, 0.4);
  text-underline-offset: 3px;
}
.f2-prose a:not(.f2-btn):hover {
  color: var(--brand-700);
  text-decoration-color: var(--brand-700);
}

.f2-callout {
  margin: 18px 0;
  padding: 14px 18px;
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  border-left: 4px solid #d97706;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--ink-900);
  font-size: 15px;
}
.f2-callout p { margin: 0; }

.f2-cta-wrap { margin: 20px 0; }

.f2-figure {
  margin: 20px 0;
  text-align: center;
}
.f2-figure--logo {
  display: inline-flex;
  padding: 12px 18px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}
.f2-figure img {
  display: inline-block;
  border-radius: 8px;
}

/* Clean Data Tables */
.f2-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
}
.f2-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.f2-table-wrap thead th {
  background: var(--bg-page);
  color: var(--ink-900);
  font-weight: 700;
  text-align: left;
  padding: 11px 15px;
  border-bottom: 1px solid var(--border-strong);
}
.f2-table-wrap tbody th[scope="row"] {
  width: 38%;
  background: #f8fafc;
  color: var(--ink-900);
  font-weight: 600;
  text-align: left;
  padding: 11px 15px;
  border-bottom: 1px solid #eef2f7;
  border-right: 1px solid #eef2f7;
}
.f2-table-wrap tbody td {
  padding: 11px 15px;
  border-bottom: 1px solid #eef2f7;
  color: var(--ink-700);
  vertical-align: top;
}
.f2-table-wrap tbody tr:nth-child(even) td { background: #fcfdff; }
.f2-table-wrap tbody tr:last-child th,
.f2-table-wrap tbody tr:last-child td { border-bottom: none; }

/* Mobile Comparison Cards for 3+ Column Prose Tables & Clean 2-Col KV Sizing (<= 680px) */
@media (max-width: 680px) {
  .f2-table-wrap:has(.f2-matrix-table) {
    border: none;
    background: transparent;
    overflow-x: visible;
  }
  .f2-matrix-table,
  .f2-matrix-table tbody {
    display: block;
    width: 100%;
  }
  .f2-matrix-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .f2-matrix-table tbody tr {
    display: block;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
  }
  .f2-matrix-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    text-align: right;
    background: #ffffff !important;
  }
  .f2-matrix-table tbody td:first-child {
    background: var(--bg-page) !important;
    font-weight: 800;
    color: var(--ink-900);
    text-align: left;
    justify-content: flex-start;
  }
  .f2-matrix-table tbody td:first-child::before { display: none; }
  .f2-matrix-table tbody td[data-label]::before {
    content: attr(data-label);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink-500);
    text-align: left;
    flex-shrink: 0;
    max-width: 46%;
  }
  .f2-kv-table tbody th[scope="row"],
  .f2-kv-table tbody td {
    padding: 9px 11px;
    font-size: 13.5px;
  }
}

/* Wistia Responsive Video Frame */
.f2-video-card {
  margin: 22px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 9;
  background: var(--ink-950);
}
.f2-video-card .wistia_embed { width: 100%; height: 100%; }

/* 9. Frictionless Inline Progressive Lead Card */
.f2-lead-card {
  margin: 28px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: center;
  box-shadow: var(--shadow-md);
}
.f2-lead-card__badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(110, 231, 183, 0.4);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.f2-lead-card__title {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff !important;
}
.f2-lead-card__desc {
  margin: 0 0 12px;
  font-size: 14.5px;
  color: #cbd5e1;
  line-height: 1.55;
}
.f2-lead-card__perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13.5px;
  color: #e2e8f0;
}
.f2-lead-card__form-box {
  background: #ffffff;
  color: var(--ink-900);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
@media (max-width: 760px) {
  .f2-lead-card {
    grid-template-columns: 1fr;
    padding: 22px 20px;
    gap: 18px;
  }
}

/* Shared Form Controls (.cpa-form) */
.cpa-form { display: flex; flex-direction: column; gap: 12px; }
.cpa-field label, .cpa-field__group-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 5px;
}
.cpa-field input[type="text"],
.cpa-field input[type="email"],
.cpa-field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink-900);
  background: #ffffff;
}
.cpa-field input:focus, .cpa-field textarea:focus {
  outline: 2px solid var(--brand-500);
  border-color: var(--brand-500);
}
.cpa-radios { display: flex; flex-direction: column; gap: 7px; }
.cpa-radio-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-page);
  font-size: 14px;
  cursor: pointer;
}
.cpa-radio-option:hover { border-color: var(--brand-500); background: var(--brand-50); }
.cpa-submit-btn {
  width: 100%;
  padding: 11px 16px;
  border: none;
  border-radius: 8px;
  background: var(--emerald-700);
  color: #ffffff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.cpa-submit-btn:hover { background: var(--emerald-800); }
.cpa-form-success {
  padding: 14px;
  border-radius: 8px;
  background: var(--emerald-50);
  border: 1px solid var(--emerald-200);
  color: var(--emerald-800);
  font-size: 14px;
  font-weight: 600;
}
.cpa-form-success a { color: var(--brand-700); font-weight: 700; }

/* 6-Step Quiz Progress */
.cpa-quiz-progress { margin-bottom: 6px; }
.cpa-quiz-progress__meta {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-600);
  margin-bottom: 6px;
}
.cpa-quiz-progress__track {
  height: 7px;
  background: var(--bg-subtle);
  border-radius: 999px;
  overflow: hidden;
}
.cpa-quiz-progress__bar {
  height: 100%;
  background: var(--emerald-600);
  transition: width 0.2s ease;
}
.cpa-quiz-step { border: none; padding: 0; margin: 0; }
.cpa-quiz-legend {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 12px;
}
.cpa-quiz-nav { display: flex; gap: 10px; margin-top: 6px; }
.cpa-quiz-back {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink-700);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}
.cpa-quiz-hint { color: #dc2626; font-size: 13px; font-weight: 600; margin: 0; }

/* 10. Native <details> FAQ Accordions */
.f2-faq-section {
  margin-top: 28px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-xs);
}
.f2-faq-section__title {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink-900);
}
.f2-faq-list { display: flex; flex-direction: column; gap: 10px; }
.f2-faq {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-page);
  overflow: hidden;
}
.f2-faq[open] {
  background: #ffffff;
  border-color: var(--brand-500);
  box-shadow: var(--shadow-xs);
}
.f2-faq summary {
  list-style: none;
  padding: 15px 18px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.f2-faq summary::-webkit-details-marker { display: none; }
.f2-faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-600);
}
.f2-faq[open] summary::after {
  content: "−";
  background: var(--brand-50);
  border-color: var(--brand-500);
}
.f2-faq__body {
  padding: 0 18px 16px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-700);
}
.f2-faq__body p { margin: 0 0 10px; }
.f2-faq__body p:last-child { margin-bottom: 0; }
.f2-faq__body a { color: var(--brand-600); font-weight: 600; text-decoration: underline; }

/* 11. Official State Board Contact Directory Card */
.f2-board-card {
  margin-top: 28px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--ink-900);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-xs);
}
.f2-board-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.f2-board-card__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink-900);
}
.f2-board-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.f2-board-item {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.f2-board-item__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-500);
  margin-bottom: 4px;
}
.f2-board-item__val {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
  word-break: break-word;
}
.f2-board-item__val a { color: var(--brand-600); text-decoration: underline; }
@media (max-width: 640px) {
  .f2-board-grid { grid-template-columns: 1fr; }
  .f2-faq-section, .f2-board-card { padding: 20px 18px; }
}

/* 12. Sticky Right Conversion Rail & Honest Course Verdict Cards */
.f2-rail {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.f2-rail-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-xs);
}
.f2-rail-card__title {
  margin: 0 0 12px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink-900);
}
.f2-course-list { display: flex; flex-direction: column; gap: 10px; }
.f2-course-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--bg-page);
}
.f2-course-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
}
.f2-course-item__name {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-900);
}
.f2-course-item__badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--emerald-50);
  color: var(--emerald-800);
  border: 1px solid var(--emerald-200);
  white-space: nowrap;
}
.f2-course-item__desc {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-600);
}
.f2-course-item__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

/* Horizontal 4-Card Course Verdict Matrix (Home & Review Money Pages) */
.f2-verdict-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.f2-verdict-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
}
.f2-verdict-card h3 {
  margin: 10px 0 6px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink-900);
}
.f2-verdict-card p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ink-600);
  flex: 1;
}
.f2-verdict-card__btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (max-width: 980px) { .f2-verdict-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .f2-verdict-grid { grid-template-columns: 1fr; } }

/* 13. Related Guides 3-Card Grid & Brand Modular Grid */
.f2-related {
  margin-top: 28px;
}
.f2-related__title {
  margin: 0 0 14px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink-900);
}
.f2-card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.f2-link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.f2-link-card:hover {
  border-color: var(--brand-500);
  transform: translateY(-2px);
}
.f2-link-card__kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--emerald-700);
  margin-bottom: 6px;
}
.f2-link-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 8px;
  line-height: 1.35;
}
.f2-link-card__cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-600);
}
@media (max-width: 760px) { .f2-card-grid-3 { grid-template-columns: 1fr; } }

/* 14. Footer & Modals */
.f2-footer {
  background: var(--ink-950);
  color: #cbd5e1;
  padding: 52px 20px 36px;
  margin-top: 48px;
}
.f2-footer__inner {
  max-width: 1240px;
  margin: 0 auto;
}
.f2-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.f2-footer__brand {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}
.f2-footer__desc {
  font-size: 14px;
  color: #94a3b8;
  margin: 0 0 14px;
  max-width: 340px;
}
.f2-footer h3 {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin: 0 0 12px;
}
.f2-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.f2-footer a { color: #cbd5e1; font-size: 14px; text-decoration: none; }
.f2-footer a:hover { color: #ffffff; text-decoration: underline; }
.f2-footer__bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #94a3b8;
}
@media (max-width: 860px) { .f2-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .f2-footer__grid { grid-template-columns: 1fr; } }

/* Dialog Modals */
.f2-modal {
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 0;
  background: #ffffff;
  color: var(--ink-900);
  box-shadow: var(--shadow-lg);
}
.f2-modal::backdrop {
  background: rgba(9, 15, 29, 0.6);
  backdrop-filter: blur(3px);
}
.f2-modal__head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.f2-modal__head h3 { margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--ink-900); }
.f2-modal__close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--bg-page);
  color: var(--ink-700);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.f2-modal__body { padding: 20px 22px; overflow-y: auto; }
.f2-search-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 12px;
}
.f2-search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.f2-search-results a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--ink-900);
  font-weight: 600;
  font-size: 14px;
}
.f2-search-results a:hover { background: var(--brand-50); border-color: var(--brand-500); color: var(--brand-700); }
.f2-search-results small { display: block; font-weight: 400; color: var(--ink-500); margin-top: 2px; }
