:root {
  --max: 1020px;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: rgba(17,24,39,0.10);
  --shadow: 0 8px 24px rgba(17,24,39,0.08);
  --shadow-sm: 0 2px 10px rgba(17,24,39,0.06);
  --radius: 18px;
  --accent: #0b1f3a;
  --accent-2: #1f4f8a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

/* Prevent long words/URLs from blowing out layouts (e.g., guide titles on hub pages) */
.content, .card, .card *, main, article {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.container { max-width: var(--max); margin: 0 auto; padding: 16px; }
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-weight: 700; text-decoration: none; color: inherit; }

.brand-wrap{display:flex;flex-direction:column;gap:2px}
.publisher{font-size:12px;opacity:0.8}

.top-nav { display: flex; gap: 12px; flex-wrap: wrap; }
.top-nav a { text-decoration: none; color: inherit; padding: 6px 8px; border-radius: 8px; }
.top-nav a:hover { background: rgba(17,24,39,0.06); }
.market-nav { border-bottom: 1px solid #eee; margin: 0; padding: 8px 16px; list-style: none; display: flex; gap: 10px; flex-wrap: wrap; }
.market-nav a { text-decoration: none; }
.hero { padding: 24px 0 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border: 1px solid #ddd; border-radius: 999px; }
.footer-nav { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; }
.listings { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.listing-card, .sponsor-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.badges { display: flex; gap: 8px; margin-bottom: 8px; }
.badge-verified { }
.badge-sponsored { }
.notice {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11,31,58,0.04);
}

/* --- Enterprise polish (safe additions) --- */
h1, h2, h3 { line-height: 1.2; margin: 0.4em 0 0.2em; }
p { margin: 0.6em 0; }
a { color: inherit; }
a.button, .button {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
a.button:hover, .button:hover { background: rgba(17,24,39,0.04); }
.button-primary {
  background: var(--accent);
  color: #fff;
  border-color: rgba(255,255,255,0.18);
}
.button-primary:hover { background: var(--accent-2); }
.kicker { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.section { padding: 14px 0; }

/* Content rhythm */
.hero + .sponsor-stack { margin-top: 18px; }
.sponsor-stack + .hero { margin-top: 18px; }

.section + .sponsor-stack { margin-top: 26px; }
.sponsor-stack + .section { margin-top: 26px; }
.sponsor-stack + .sponsor-stack { margin-top: 18px; }

.hr { height: 1px; background: #eee; margin: 16px 0; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border: 1px solid #eee; padding: 10px; vertical-align: top; text-align: left; }
.table th { background: #fafafa; font-weight: 600; }
/* Sponsor inventory blocks (shared + buyouts) */
.sponsor-stack { margin: 22px 0; }
.sponsor-stack__inner {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: var(--surface);
}
.sponsor-stack.is-buyout-hero .sponsor-stack__inner {
  border-color: transparent;
  padding: 0;
  background: transparent;
}
.sponsor-stack__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px 0;
}
.sponsor-stack__meta {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .sponsor-stack__header { flex-direction: column; align-items: flex-start; }
  .sponsor-stack__meta { white-space: normal; }
}

.sponsor-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }

/* Buyout hero: same Top inventory surface, but rendered as a hero block (no new slot). */
.sponsor-stack.is-buyout-hero {
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 22px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.06), rgba(255,255,255,0));
}
.sponsor-stack.is-buyout-hero .sponsor-label { font-weight: 800; }
.sponsor-stack.is-buyout-hero .sponsor-items { grid-template-columns: 1fr; }
.sponsor-stack.is-buyout-hero .sponsor-card { border-color: rgba(15,23,42,0.16); }
.price-card { border: 1px solid #eee; border-radius: 16px; padding: 14px; }
.price { font-size: 22px; font-weight: 700; margin-top: 6px; }
.muted { color: var(--muted); }

/* Markets list: multi-column to avoid endless scroll */
.markets-status-list { columns: 2; column-gap: 24px; padding-left: 18px; }
@media (min-width: 900px) { .markets-status-list { columns: 3; } }
.markets-status-list li { break-inside: avoid; padding: 2px 0; }

/* --- Authority-safe connection bubble (bottom-of-page utility) --- */
.connection-bubble {
  margin: 22px 0 10px;
}
.connection-bubble__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-sm);
}
.connection-bubble__title {
  font-size: 16px;
  margin: 0 0 6px 0;
}
.connection-bubble__subtext {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.connection-bubble__actions {
  flex: 0 0 auto;
}
@media (max-width: 720px) {
  .connection-bubble__inner { flex-direction: column; align-items: flex-start; }
  .connection-bubble__actions { width: 100%; }
  .connection-bubble__actions .button { width: 100%; text-align: center; }
}

/* FAQ accordion (closed by default) */
.faq-accordion { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 0; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.faq-item > summary { cursor: pointer; padding: 12px 14px; list-style: none; font-weight: 650; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item[open] > summary { border-bottom: 1px solid #eee; background: #fafafa; }
.faq-answer { padding: 10px 14px 14px; }

/* ===== Footer (locked markup: <footer> + .footer-meta + .footer-nav) ===== */
footer{
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  background: #0b1f3a;          /* dark blue */
  color: rgba(255,255,255,0.88);
  font-size: 0.85rem;           /* global footer shrink */
  line-height: 1.35;
}

footer p{
  margin: 0.35rem 0;            /* tighten vertical space */
  font-size: 0.82rem;           /* make disclaimer paragraphs smaller */
  color: rgba(255,255,255,0.82);
}

footer .footer-meta{
  margin-top: 0.75rem;
  font-size: 0.78rem;           /* smaller copyright line */
  color: rgba(255,255,255,0.75);
}

footer .footer-nav{
  margin-top: 0.5rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

footer .footer-nav a{
  color: rgba(255,255,255,0.92);
  text-decoration: underline;   /* make them look like links */
  text-underline-offset: 3px;
  font-weight: 600;
  font-size: 0.82rem;
}

footer .footer-nav a:hover{
  color: #ffffff;
}

/* ===== Guides micro-note ("If you only read one thing") ===== */
.callout{
  margin: 0.5rem 0 0.75rem;
  padding: 0;
  border: none;
  background: transparent;
  max-width: 100%;
  opacity: 0.95;
}

.callout strong{
  font-weight: 400;          /* keep it soft */
  font-style: italic;
}

.callout p{
  display: block;            /* allow normal wrapping */
  margin: 0;                 /* avoid default paragraph spacing weirdness */
  font-size: 0.78rem;        /* match “independent educational publisher” */
  font-style: italic;
  color: #6b7280;            /* soft neutral gray */
  line-height: 1.25;

  white-space: normal;       /* allow wrapping */
  overflow-wrap: anywhere;   /* prevents long runs from breaking layout */
  word-break: normal;

}

/* ===== Ad block micro styling (very low visual priority) ===== */
.ad-block,
.advertising,
.ad,
[class*="ad-"]{
  font-size: 0.68rem;          /* ultra subtle */
  line-height: 1.25;
}

.ad-block *,
.advertising *,
.ad *,
[class*="ad-"] *{
  font-weight: 400;            /* remove bold */
  color: #9ca3af;              /* soft gray */
}

/* De-emphasize "Advertise here" */
.ad-block strong,
.advertising strong,
.ad strong{
  font-weight: 400;
  text-transform: none;
}

/* Extra subtle disclosure line */
.ad-block .disclosure,
.ad-block .ad-sub,
.advertising .disclosure{
  font-size: 0.68rem;
  opacity: 0.65;
}
/* ===== Guides hub cards: fix underline + oversized headings ===== */
.card a {
  text-decoration: none;   /* remove default underline in cards */
  display: block;          /* makes the click target cleaner */
}

.card a:hover {
  text-decoration: underline; /* optional: keep hover affordance */
  text-underline-offset: 3px; /* matches footer style */
}

.card h2, .card h3 {
  font-size: 1.05rem;      /* tighten “giant” headings inside cards */
  margin: 0 0 6px;         /* override global heading margins */
}

.card p {
  margin: 0.35em 0 0;      /* reduce card copy spacing */
  font-size: 0.95rem;
  opacity: 0.85;
}
/* ===== Guides hub card polish ===== */
.guide-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.guide-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.25;
}

.guide-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 400;
  color: #6b7280; /* lighter */
  font-style: italic; /* optional: makes it feel like “supporting text” */
}

/* Optional: subtle hover affordance */
.guide-card:hover {
  background: #fafafa;
  border-color: #e5e7eb;
}


/* ===== City page interaction + polish (Accordion + CTA + softer background) ===== */
:root{
  --bg-soft: #f6f7f9;
  --panel: #ffffff;
  --border-soft: #e7e9ee;
  --shadow-sm: 0 6px 18px rgba(17,24,39,.08);
  --shadow-md: 0 10px 30px rgba(17,24,39,.10);
}

body{
  background: var(--bg-soft);
}

/* Make main content feel like panels, not endless white */
.section{
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 16px;
}

/* Stronger CTA hierarchy */
.start-here .cta-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-title{ margin:0; font-size: 20px; letter-spacing: -0.01em; }
.cta-sub{ margin: 6px 0 0; color: #4b5563; }

.cta-actions{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
}

a.button.button-primary{
  background:#111827;
  color:#ffffff;
  border-color:#111827;
}
a.button.button-primary:hover{ background:#0b1220; }

a.button.button-secondary{
  background:#ffffff;
  color:#111827;
}

/* Accordion using <details> (no JS required) */
details.accordion{
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  margin: 0 0 12px;
}

details.accordion > summary{
  cursor: pointer;
  padding: 12px 14px;
  list-style: none;
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
}

/* Chevron indicator (requested UX) */
details.accordion > summary::after{
  content: "▾";
  font-weight: 800;
  color: #6b7280;
  transform: rotate(0deg);
  transition: transform .15s ease;
  font-size: 18px;
}
details.accordion[open] > summary::after{
  transform: rotate(180deg);
}

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

details.accordion[open] > summary{
  border-bottom: 1px solid var(--border-soft);
  background: #fafafa;
}

.accordion-meta{
  font-weight: 500;
  color: #6b7280;
  font-size: 13px;
}

.accordion-panel{
  padding: 12px 14px 14px;
}

/* Make FAQ blocks visually loud (without changing editorial meaning) */
details.accordion#city-faq,
details.accordion#state-faq{
  border-color: rgba(31,79,138,0.35);
  box-shadow: var(--shadow-md);
}

details.accordion#city-faq > summary,
details.accordion#state-faq > summary{
  font-size: 20px;
  padding: 14px 16px;
}

details.accordion#city-faq > summary::after,
details.accordion#state-faq > summary::after{
  font-size: 22px;
}

details.accordion#city-faq .accordion-meta,
details.accordion#state-faq .accordion-meta{
  font-size: 14px;
}

/* FAQ item rows: bigger click target + clearer chevron */
.faq-item > summary{
  position: relative;
  padding-right: 44px;
  font-size: 16px;
}
.faq-item > summary::after{
  content: "▸";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform .15s ease;
  font-weight: 800;
  color: #6b7280;
}
.faq-item[open] > summary::after{
  transform: translateY(-50%) rotate(90deg);
}

/* PI directory: align CSS to actual markup + upgrade table density */
.pi-dir-table-wrap{ overflow-x:auto; }
.pi-dir-table,
.pi-directory-table{
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.pi-dir-table th,
.pi-dir-table td,
.pi-directory-table th,
.pi-directory-table td{
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}
.pi-dir-table th,
.pi-directory-table th{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7280;
}
.pi-dir-site .mono,
.pi-url{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  color:#374151;
  word-break: break-all;
}

/* Sponsored module (PI city pages) */
.sponsored-placement{
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}
.sponsored-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 10px; }
.sponsor-meta{ margin-top: 10px; font-size: 12px; color:#6b7280; }

/* PI state page: cities list should fit and feel intentional */
.state-cities-list{
  columns: 2;
  column-gap: 24px;
  padding-left: 18px;
}
@media (min-width: 900px){ .state-cities-list{ columns: 3; } }
.state-cities-list li{ break-inside: avoid; padding: 2px 0; }


details.accordion#city-faq > summary::after,
details.accordion#state-faq > summary::after{
  font-size: 22px;
  color: #1f4f8a;
}

/* FAQ items: bigger hit area + clearer chevron */
.faq-item > summary{
  position: relative;
  padding-right: 44px;
}
.faq-item > summary::after{
  content: "▸";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-weight: 900;
  font-size: 18px;
  color: #1f4f8a;
  transition: transform .15s ease;
}
.faq-item[open] > summary::after{
  transform: translateY(-50%) rotate(90deg);
}

/* PI directory: fix class mismatch + make it feel enterprise */
.pi-dir-table-wrap,
.pi-directory-table-wrap{
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fff;
}

.pi-dir-table,
.pi-directory-table{
  width: 100%;
  border-collapse: collapse;
}

.pi-dir-table th,
.pi-dir-table td,
.pi-directory-table th,
.pi-directory-table td{
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
  vertical-align: top;
}

.pi-dir-table th,
.pi-directory-table th{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7280;
  background: #fafafa;
}

.pi-dir-name{ font-weight: 650; }
.pi-url, .mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  color:#374151;
  word-break: break-all;
}

/* Sponsored placement module (PI) */
.sponsored-placement{
  border: 1px solid rgba(31,79,138,0.25);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(31,79,138,0.06), rgba(255,255,255,0));
  padding: 14px;
  margin: 10px 0 14px;
}
.sponsored-placement .kicker{ opacity: 0.9; }
.sponsored-actions{ display:flex; gap:10px; flex-wrap: wrap; margin-top: 10px; }
.sponsor-meta{ margin-top: 10px; font-size: 12px; color:#6b7280; }

/* PI primary CTA block */
.pi-primary-cta{
  border: 1px solid rgba(17,24,39,0.12);
  background: #0b1f3a;
  border-radius: 16px;
  padding: 14px;
  margin: 12px 0 16px;
}
.pi-primary-cta a{
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.pi-primary-cta a:hover{ text-decoration: underline; }

/* PI state pages: city list should fit + feel structured */
.pi-state-directory{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.pi-state-cities-list{
  columns: 2;
  column-gap: 24px;
  padding-left: 18px;
}
@media (min-width: 900px){ .pi-state-cities-list{ columns: 3; } }
.pi-state-cities-list li{ break-inside: avoid; padding: 3px 0; }

/* Sleeker guide/listing cards (less bloggy) */
.card,
.listing-card,
.sponsor-card{
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.card:hover,
.listing-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #d9dde6;
}

/* Tighten guide tile typography */
.city-guides .card h3{ font-size: 15px; }
.city-guides .card p{ font-size: 13px; color:#6b7280; }

/* PI Sponsored + Directory (professional table) */
.pi-sponsored{
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  background: #fff;
}
.pi-disclosure{
  font-size: 12px; /* smaller than body text */
  color: #6b7280;
  margin: 0 0 10px 0;
}
.pi-sponsored-card{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.pi-sponsored-card h3{
  margin:0 0 6px 0;
  font-size:16px;
}
.pi-sponsored-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width: 220px;
}
.pi-primary-cta{
  margin: 12px 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background:#fafafa;
}
.pi-primary-cta .btn{
  display:inline-block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #111827;
  background:#111827;
  color:#fff;
  text-decoration:none;
  font-weight:700;
}
.pi-directory-table{
  width:100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.pi-directory-table th,
.pi-directory-table td{
  text-align:left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}
.pi-directory-table th{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color:#6b7280;
}
.pi-url{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  color:#374151;
  word-break: break-all;
}
.pi-other-listings details > summary{
  cursor:pointer;
  user-select:none;
}
.pi-arrow{
  display:inline-block;
  margin-left:8px;
  transform: translateY(1px);
  font-size: 12px;
  color:#6b7280;
}


/* =========================
   UX Overhaul v1 (no data/validator changes)
   - Deeper hierarchy + softer surface
   - PI states hub: 5x10 grid on /states/
   - Directory tables: enterprise polish
   - FAQ: visually dominant + default open (handled in base.html)
   ========================= */

:root{
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --border: #e6e8ef;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 10px 24px rgba(15,23,42,.08);
}

body{
  background: var(--surface-2);
}

main{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

/* Headings: stronger hierarchy */
h1{ letter-spacing:-0.02em; }
h2{ margin-top: 32px; padding-top: 8px; border-top: 1px solid var(--border); }
h3{ margin-top: 20px; }

/* Card/tile depth */
.card, .tile{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover, .tile:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* PI States hub grid: 5 columns desktop, responsive collapse */
.state-grid{
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1100px){
  .state-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px){
  .state-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px){
  .state-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Directory tables: cleaner, aligned, scannable */
main table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
main table thead th{
  background: #f2f4f8;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
main table tbody td{
  padding: 12px 14px;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
main table tbody tr:nth-child(even){
  background: #fafbfe;
}
main table tbody tr:hover{
  background: #f3f6ff;
}

/* Make any “listings directory” blocks look less like a Word doc */
main ul, main ol{
  padding-left: 22px;
}

/* FAQ: loud, obvious, and easy to scan */
.faq, #faq, [data-zone="faq"], [data-section="faq"], .faq-block{
  margin-top: 28px;
  padding: 18px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fbfcff;
  box-shadow: var(--shadow-md);
}
.faq h2, #faq h2, .faq-block h2{
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.faq details, #faq details, .faq-block details{
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  margin: 10px 0;
  overflow: hidden;
}
.faq summary, #faq summary, .faq-block summary{
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-size: 1.05rem;
  font-weight: 750;
  display:flex;
  align-items:center;
  justify-content: space-between;
}
.faq summary::-webkit-details-marker,
#faq summary::-webkit-details-marker,
.faq-block summary::-webkit-details-marker{
  display:none;
}
.faq summary::after, #faq summary::after, .faq-block summary::after{
  content: "▾";
  font-size: 1.35rem;
  line-height: 1;
  opacity: .85;
  transform: translateY(-1px);
  transition: transform .12s ease;
}
.faq details[open] summary::after,
#faq details[open] summary::after,
.faq-block details[open] summary::after{
  transform: rotate(180deg);
}
.faq details > *:not(summary),
#faq details > *:not(summary),
.faq-block details > *:not(summary){
  padding: 0 16px 14px 16px;
  color: #1f2937;
}

/* Publisher lockup (umbrella brand) */
.brand-lockup{display:flex;flex-direction:column;line-height:1.1}
.publisher{font-size:12px;opacity:.75;margin-bottom:4px}

/* =============================================================================
   Enterprise UX upgrades (for-providers + guides)
   ============================================================================= */

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .tiers-grid { grid-template-columns: 1fr; }
}

.tier-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(16,24,40,0.06);
}

.tier-card h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
}

.tier-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.tier-meta .pill {
  border: 1px solid var(--border);
  background: var(--soft);
  border-radius: 999px;
  padding: 4px 10px;
}

.tier-price {
  font-size: 22px;
  font-weight: 700;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .visual-grid { grid-template-columns: 1fr; }
}

.wireframe {
  background: #0b1020;
  color: #dbe6ff;
  border-radius: 14px;
  padding: 14px;
  overflow-x: auto;
  line-height: 1.25;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

.wireframe kbd {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-bottom-color: rgba(255,255,255,0.24);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 11px;
}

.calc-box {
  border: 1px solid var(--border);
  background: var(--soft);
  border-radius: 14px;
  padding: 14px;
  margin-top: 12px;
}

.calc-box code {
  font-size: 13px;
}

/* Guide pages: make sections feel like product blocks, not docx */
.guide-shell {
  padding: 18px 0 28px;
}

.guide-article {
  max-width: 980px;
  margin: 0 auto;
}

/* Guide editorial rhythm */
.guide-section {
  margin-bottom: 3rem;
}

.guide-sponsor {
  margin: 4rem 0;
  padding: 2rem;
  border-radius: 14px;
  background: #f9fafb;
}

.guide-article .muted {
  color: #4b5563;
}

.guide-article h2 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.guide-article h3 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.guide-article h1 {
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.guide-article p,
.guide-article li {
  font-size: 18px;
  line-height: 1.7;
  color: #111827;
}

.guide-article p { margin: 12px 0; }
.guide-article ul,
.guide-article ol { padding-left: 1.2rem; }
.guide-article li { margin: 8px 0; }
.guide-article blockquote {
  margin: 14px 0;
  padding: 14px 16px;
  border-left: 4px solid rgba(59, 130, 246, 0.6);
  background: rgba(59, 130, 246, 0.06);
  border-radius: 10px;
}
.guide-article code {
  font-size: 0.95em;
  background: rgba(15, 23, 42, 0.06);
  padding: 0.15em 0.35em;
  border-radius: 8px;
}

.guide-article pre {
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  padding: 14px;
  overflow-x: auto;
}

.guide-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 16px;
}

.guide-article th,
.guide-article td {
  border: 1px solid rgba(17, 24, 39, 0.12);
  padding: 10px;
  vertical-align: top;
}

.guide-article th {
  background: rgba(17, 24, 39, 0.04);
  font-weight: 800;
}

.guide-article .section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin: 14px 0;
  box-shadow: 0 6px 18px rgba(16,24,40,0.06);
}

@media (max-width: 900px) {
  .guide-article { padding: 0 10px; }
  .guide-article h1 { font-size: 38px; }
}

.guide-article .section h2,
.guide-article .section h3 {
  margin-top: 0;
}

.callout strong {
  font-weight: 700;
  font-style: normal;
}

/* Replace legacy "why" line wherever it may remain */
.why { display: none !important; }

/* ==============================
   For-Providers page: visuals + buttons
   ============================== */

/* Button styling for mailto CTAs (used across the site) */
a.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: #111827;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  line-height: 1;
}
a.btn:hover,
button.btn:hover {
  filter: brightness(1.05);
}
a.btn.primary {
  background: #111827;
}
a.btn:focus,
button.btn:focus {
  outline: 3px solid rgba(59, 130, 246, 0.35);
  outline-offset: 2px;
}

/* Card/grid layout for the inventory visuals */
.visuals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 16px;
}
/* Single-column list layout for for-providers visuals (prevents 2x2 fades/overflows) */
.visuals-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 16px;
}

/* Note copy under each visual (smaller + clearer, per canonical) */
.note {
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(17, 24, 39, 0.78);
}
.note strong {
  color: rgba(17, 24, 39, 0.92);
}
.visual-card {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.10);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.visual-card h3 {
  margin-top: 0;
}

/* Make SVGs readable (the art itself is intentionally light; we boost contrast here) */
.svg-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  overflow: auto;

  /* Do not wash out inline SVGs */
  opacity: 1;
  filter: none;
}
.svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
  /* Push contrast up so the diagrams are legible on laptops + mobile. */
  filter: none;
  opacity: 1;
}

/* Muted helper copy: keep it readable */
.muted {
  color: rgba(17, 24, 39, 0.70);
}

/* For-providers: smaller parenthetical in section title */
.h2-sub {
  font-size: 0.78em;
  font-weight: 700;
  color: rgba(17, 24, 39, 0.70);
}


/* =========================================================
   Command Center Design Pass
   ========================================================= */
:root {
  --max: 1140px;
  --content-max: 760px;
  --bg: #f7f7f2;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 1px 0 rgba(15, 23, 42, 0.04);
  --radius: 10px;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --cta: #f97316;
  --cta-2: #ea580c;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 242, 0.92);
  backdrop-filter: blur(10px);
}

.container {
  max-width: var(--max);
  padding: 0 20px;
}

.site-main {
  max-width: calc(var(--content-max) + 40px);
  padding-top: 34px;
  padding-bottom: 18px;
}

.brand {
  display: inline-block;
  color: var(--text);
  font-family: "Inter Tight", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.top-nav {
  gap: 10px;
}

.top-nav a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 8px 0;
  text-transform: uppercase;
}

.top-nav a:hover {
  background: transparent;
  color: var(--text);
}

.hero {
  padding: 4px 0 0;
}

.hero .kicker,
.kicker,
.connection-bubble__eyebrow,
.conversion-cta__eyebrow {
  display: inline-block;
  margin: 0 0 12px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3, .brand {
  font-family: "Inter Tight", Inter, ui-sans-serif, system-ui, sans-serif;
}

h1 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(1.55rem, 2.6vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.14;
}

h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p, li, td, th, label, input, textarea, select, summary {
  font-size: 1rem;
}

p {
  margin: 0 0 16px;
  color: var(--text);
}

.muted,
.notice,
.connection-bubble__subtext,
.footer-meta,
.note,
.sponsor-stack__meta {
  color: var(--muted);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--accent-2); }

.hero p:last-child,
.section p:last-child,
.card p:last-child,
.conversion-cta__panel p:last-child,
.connection-bubble__copy p:last-child {
  margin-bottom: 0;
}

.section {
  padding: 0;
  margin: 0 0 56px;
}

.card,
.listing-card,
.sponsor-card,
.notice,
.price-card,
.visual-card,
.faq-item,
.connection-bubble__inner,
.conversion-cta__panel,
.sponsor-stack__inner {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}

.card,
.listing-card,
.sponsor-card,
.notice,
.price-card,
.visual-card,
.sponsor-stack__inner {
  padding: 22px;
}

.grid,
.listings,
.sponsor-items,
.visuals-grid {
  gap: 16px;
}

.button,
a.button,
a.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: none;
}

.button:hover,
a.button:hover,
a.btn:hover,
button.btn:hover {
  background: #fff;
  border-color: #cbd5e1;
  color: var(--text);
  filter: none;
}

.button-primary,
a.button-primary,
a.btn.primary {
  border-color: var(--cta);
  background: var(--cta);
  color: #fff;
}

.button-primary:hover,
a.button-primary:hover,
a.btn.primary:hover {
  border-color: var(--cta-2);
  background: var(--cta-2);
  color: #fff;
}

.market-nav {
  margin: 0 0 24px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
  gap: 14px;
}

.market-nav a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-nav a,
.footer-nav a:hover {
  color: rgba(255,255,255,0.92);
}

.table th,
.table td {
  border-color: var(--line);
  padding: 12px 14px;
}

.table th {
  background: #f8fafc;
  color: var(--text);
}

.conversion-cta {
  margin: 0 0 44px;
}

.conversion-cta__panel {
  padding: 24px 26px;
}

.conversion-cta__panel--primary {
  border-width: 1px;
}

.conversion-cta__panel--inline {
  background: #fbfcfe;
  padding: 22px 24px;
}

.conversion-cta__heading {
  margin: 0 0 10px;
  max-width: 14ch;
}

.conversion-cta__body {
  max-width: 60ch;
  color: var(--muted);
}

.conversion-cta__actions {
  margin: 18px 0 0;
}

.connection-bubble {
  width: 100%;
  max-width: none;
  margin: 0 0 28px;
  padding: 0;
}

.connection-bubble__inner {
  width: 100%;
  align-items: flex-end;
  gap: 18px;
  padding: 24px 28px;
  background: var(--surface);
}

.connection-bubble__title {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.connection-bubble__subtext {
  font-size: 0.98rem;
  line-height: 1.6;
}

.listing-card h3,
.sponsor-card h3,
.card h3 {
  margin-top: 0;
}

.faq-item {
  background: var(--surface);
}

.faq-item > summary {
  padding: 16px 18px;
  font-weight: 750;
}

.faq-item[open] > summary {
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}

.faq-answer {
  padding: 16px 18px 18px;
}

footer {
  margin-top: 1rem;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: #0f172a;
}

footer p {
  color: rgba(255,255,255,0.78);
}

footer .footer-nav {
  gap: 1rem;
}

.callout {
  margin: 0;
  max-width: none;
}

.badge {
  border-color: var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sponsor-stack {
  margin: 32px 0 44px;
}

.sponsor-stack.is-buyout-hero {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(37,99,235,0.04), rgba(255,255,255,0));
}

.sponsor-stack.is-buyout-hero .sponsor-stack__inner {
  border: none;
}

.site-main > :last-child,
.site-main article > :last-child {
  margin-bottom: 0;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus,
.button:focus,
a.button:focus,
a.btn:focus,
button.btn:focus {
  outline: 3px solid rgba(37, 99, 235, 0.18);
  outline-offset: 2px;
}

@media (max-width: 960px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .top-nav {
    row-gap: 4px;
  }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .site-main { padding-top: 26px; }
  .section { margin-bottom: 40px; }
  .card,
  .listing-card,
  .sponsor-card,
  .notice,
  .price-card,
  .visual-card,
  .sponsor-stack__inner,
  .conversion-cta__panel,
  .connection-bubble__inner { padding: 18px; }

  .connection-bubble {
    padding: 0;
  }

  .connection-bubble__inner {
    align-items: flex-start;
  }

  .conversion-cta__heading,
  .connection-bubble__title {
    max-width: none;
  }

  .button,
  a.button,
  a.btn,
  button.btn,
  .connection-bubble__actions .button,
  .conversion-cta__actions .button {
    width: 100%;
  }
}

.fanout-query-cluster {
  border: 1px solid rgba(11,31,58,.12);
  border-radius: 20px;
  background: #f7fafc;
}
.fanout-query-group + .fanout-query-group {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(11,31,58,.08);
}
.fanout-query-list {
  margin: 0;
  padding-left: 20px;
}
.fanout-query-item {
  margin: 0 0 8px 0;
}
.fanout-query-path {
  color: #516173;
}


/* UX cleanup pass: footer, CTA, distribution scaffolding */
.site-footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #0f172a;
  color: rgba(255,255,255,0.72);
  padding: 18px 0 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.site-footer .footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-footer p,
.site-footer .footer-meta,
.site-footer .footer-nav a {
  font-size: 12px;
  line-height: 1.45;
}

.site-footer p {
  margin: 0 0 6px;
  color: rgba(255,255,255,0.74);
}

.site-footer .footer-meta {
  margin-top: 8px;
  color: rgba(255,255,255,0.64);
}

.site-footer .footer-nav {
  margin-top: 8px;
  gap: 14px;
}

.site-footer .footer-nav a {
  color: rgba(255,255,255,0.82);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}


.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.section.distribution-priority {
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
  padding: 14px 16px;
}

.section.distribution-priority h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.section.distribution-fresh {
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
  padding: 12px 16px;
}

.section.distribution-fresh h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.section.distribution-fresh ul,
.section.distribution-fresh li,
.section.distribution-fresh p {
  font-size: 0.95rem;
}

.section.distribution-fresh--quiet {
  margin-top: 24px;
  padding: 10px 14px;
  border-color: rgba(11, 31, 58, 0.08);
  background: rgba(11, 31, 58, 0.015);
}

.section.distribution-fresh--quiet h3 {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.section.distribution-fresh--quiet ul,
.section.distribution-fresh--quiet li,
.section.distribution-fresh--quiet p,
.section.distribution-fresh--quiet a {
  font-size: 0.9rem;
}

.conversion-cta {
  margin-top: 16px;
}

.conversion-cta__panel--primary {
  padding: 16px 18px;
}


/* ===== Accessibility and stress-state readability hardening ===== */
:root {
  --focus-ring: #1f4f8a;
  --focus-ring-soft: rgba(31,79,138,0.22);
}

html {
  scroll-padding-top: 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ffffff;
  color: #0b1f3a;
  border: 2px solid #0b1f3a;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
}

.top-nav {
  align-items: center;
}

.top-nav a,
.footer-nav a,
.brand,
a.button,
.button,
summary,
input,
select,
textarea,
button {
  transition: box-shadow 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.top-nav a[aria-current="page"] {
  background: rgba(11,31,58,0.08);
  font-weight: 700;
}

:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--focus-ring-soft);
}

:where(a, button, summary, input, select, textarea):focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

.sponsor-stack {
  margin: 30px 0;
}

.sponsor-stack__inner {
  padding: 18px;
}

.sponsor-card,
.listing-card,
.notice,
[data-sales-page-contract="true"] {
  padding: 16px;
}

.sponsor-stack__inner,
.sponsor-card,
.listing-card,
.notice,
[data-sales-page-contract="true"],
.pi-dir-table-wrap,
.faq-item,
.connection-bubble__inner,
.card,
.ra-primary-card,
.ra-soft-card,
.ra-side-note {
  scroll-margin-top: 24px;
}

.pi-dir-table-wrap,
[data-sales-page-contract="true"] {
  margin-top: 12px;
}

.faq-item > summary {
  position: relative;
}

.faq-item > summary:hover {
  background: rgba(17,24,39,0.03);
}

@media (max-width: 720px) {
  .container {
    padding: 14px;
  }

  .site-main {
    padding-top: 8px;
  }

  .top-nav {
    gap: 8px;
  }

  .top-nav a,
  .footer-nav a,
  a.button,
  .button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .sponsor-stack {
    margin: 34px 0;
  }

  .sponsor-stack__inner,
  .notice,
  [data-sales-page-contract="true"] {
    padding: 18px;
  }
}

/* ==============================
   2026-04 hierarchy pass (cumulative)
   ============================== */

main {
  max-width: min(1140px, calc(100vw - 32px));
}

.site-main > .section,
.site-main > .hero,
.site-main > details.accordion,
.site-main > [data-example-providers="true"],
.site-main > [data-pi-home-directory="true"] {
  margin-top: 28px;
}

.section + .section,
.hero + .section,
.section + details.accordion,
details.accordion + .section {
  margin-top: 28px;
}

.section-subhead {
  margin: 6px 0 10px;
  color: #475569;
  font-size: 0.98rem;
  font-weight: 600;
}

/* Keep the shell quieter so content leads */
.top-nav {
  font-size: 0.9rem;
  opacity: 0.9;
}

.top-nav a {
  letter-spacing: 0.04em;
}

/* Core decision-support sections */
.section-decision-support,
.pi-home-directory,
[data-example-providers="true"] {
  margin-top: 32px;
}

[data-example-providers="true"] h2,
.pi-directory-header h2 {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
  line-height: 1.12;
}

.provider-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.provider-item {
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.provider-name {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
}

.provider-meta {
  margin-top: 4px;
  color: #536074;
  font-size: 0.94rem;
}

.pi-home-directory {
  border: 1px solid #dbe2ea;
  border-radius: 16px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.pi-directory-header .muted {
  font-size: 0.98rem;
  color: #536074;
}

/* State lookup becomes the primary action rail on non-PI pages */
details#state-lookup {
  border-color: rgba(15, 23, 42, 0.18);
  background: #f8fafc;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

details#state-lookup > summary {
  font-size: 1.15rem;
  font-weight: 800;
  padding: 16px 18px;
}

details#state-lookup .accordion-meta {
  color: #475569;
  font-size: 0.9rem;
}

.state-lookup-cta {
  border: 1px solid #d9e2ec;
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
}

.state-lookup-cta .lookup-title {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.state-lookup-tip {
  font-size: 0.83rem;
}

/* FAQ becomes quiet support */
details.accordion#city-faq,
details.accordion#state-faq,
.faq, #faq, [data-zone="faq"], [data-section="faq"], .faq-block {
  border-color: #d8dee8;
  box-shadow: 0 4px 12px rgba(15,23,42,.04);
  background: #fcfdff;
}

details.accordion#city-faq > summary,
details.accordion#state-faq > summary,
.faq summary, #faq summary, .faq-block summary {
  font-size: 1rem;
  font-weight: 750;
}

details.accordion#city-faq .accordion-meta,
details.accordion#state-faq .accordion-meta {
  color: #64748b;
  font-size: 0.88rem;
}

/* Ads remain visible but separated */
.sponsor-stack,
[data-sponsored-placement] {
  margin-top: 24px;
  margin-bottom: 24px;
}

/* Request assistance: calmer intake desk */
.request-assistance-shell .ra-pill-list {
  gap: 8px;
}

.request-assistance-shell .ra-pill {
  padding: 7px 10px;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  font-size: 12px;
}

.request-assistance-shell .ra-hero-note,
.request-assistance-shell .ra-side-note,
.request-assistance-shell .ra-soft-card {
  box-shadow: 0 8px 20px rgba(15,23,42,.05);
}

.request-assistance-shell .ra-primary-head h2 {
  font-size: 30px;
}

/* For-providers: stronger editorial spine without touching contract block */
.for-providers-hero {
  background: #fff;
  border: 1px solid #dde3ec;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 8px 20px rgba(15,23,42,.05);
}

.for-providers-hero h1 {
  margin-bottom: 8px;
}

.for-providers-summary,
.for-providers-commercial,
.for-providers-mechanics,
.for-providers-inquiry {
  border: 1px solid #e3e8ef;
  border-radius: 16px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(15,23,42,.04);
}

.for-providers-commercial {
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
}

.for-providers-mechanics,
.for-providers-inquiry {
  background: #fbfcfe;
}

.for-providers-mechanics .visual-card {
  box-shadow: 0 6px 18px rgba(15,23,42,.05);
}

/* Mobile stress-state pass */
@media (max-width: 860px) {
  main {
    max-width: calc(100vw - 20px);
    border-radius: 14px;
  }

  .provider-item,
  .state-lookup-cta,
  .pi-home-directory,
  .for-providers-summary,
  .for-providers-commercial,
  .for-providers-mechanics,
  .for-providers-inquiry {
    padding: 14px;
  }

  .top-nav {
    font-size: 0.84rem;
  }
}



/* Answer-surface authority upgrades */
.answer-block,
.citation-summary {
  margin: 0 0 24px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.96));
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.answer-block p:last-child,
.citation-summary p:last-child {
  margin-bottom: 0;
}
.answer-block strong,
.citation-summary strong {
  font-weight: 800;
}
.answer-when,
.answer-tradeoff,
.answer-context,
.citation-summary ul {
  color: var(--text);
}
.answer-microcopy,
.citation-summary .muted {
  color: var(--muted);
}
.comparison-block,
.localized-conclusion,
.state-authority-block {
  margin: 20px 0 24px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.comparison-block ul,
.localized-conclusion ul,
.state-authority-block ul {
  margin: 10px 0 0 0;
}
.decision-links-list li {
  margin: 0.5rem 0;
}
.recently-refreshed,
[data-distribution-priority-block="true"] .small-tertiary-note,
.local-routes-touched,
.local-routes {
  font-size: 0.82rem;
}


.evaluation-framework-decision,
.answer-best-for,
.answer-avoid-if,
.answer-cost-outcome,
.guide-opening-block {
  margin-top: 0.75rem;
}

.decision-routing-block [data-decision-anchor="true"],
.decision-links-list [data-decision-anchor="true"] {
  font-weight: 600;
}

.state-authority-block,
.localized-conclusion,
.guide-opening-block {
  background: rgba(0,0,0,0.02);
}

.recently-refreshed,
.distribution-fresh--quiet {
  margin-top: 2.5rem;
}

/* Master plan UX hierarchy pass */
main { max-width: 1240px; }
.container, .shell, .page-shell { max-width: 1240px; }
.section { margin-block: 3.75rem; }
.hero { padding: 2.5rem 0 1.5rem; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -0.02em; }
.hero .muted { max-width: 70ch; font-size: 1.08rem; }
.answer-block, .citation-summary.answer-block { background: #f6f4ef; border: 1px solid #e4dfd1; border-radius: 18px; padding: 1.2rem 1.25rem; max-width: 78ch; }
.tertiary-support, .fanout-query-cluster--tertiary { opacity: .82; }
.tertiary-support .support-links, .fanout-query-cluster--tertiary a { font-size: .95rem; }
.state-card-grid, .state-city-grid, .provider-directory-grid, .guide-group-grid { display: grid; gap: 1rem; }
.state-card-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.state-city-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.provider-directory-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.guide-group-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.state-card, .state-city-card { display: block; border: 1px solid #d8d3c6; border-radius: 18px; padding: 1rem 1.05rem; background: #fffdfa; text-decoration: none; color: inherit; }
.state-card__name, .state-city-card__name { display:block; font-weight: 700; font-size: 1.08rem; margin-bottom: .2rem; }
.state-card__meta, .state-city-card__meta { display:block; color:#70685d; font-size: .92rem; }
.provider-directory-section--preview { margin-top: 1.25rem; }
.provider-card { border: 1px solid #d9d4c7; border-radius: 20px; padding: 1rem 1.1rem; background: #ffffff; box-shadow: 0 8px 28px rgba(23,16,7,.05); }
.provider-card__name { margin: 0 0 .35rem; font-size: 1.18rem; }
.provider-card__meta { margin: 0 0 .7rem; color: #6b655b; font-size: .94rem; }
.provider-card__attributes { margin: 0; padding-left: 1.1rem; }
.provider-card__attributes li { margin-bottom: .35rem; }
.provider-card__verify { margin-top: .75rem; font-size: .94rem; }
.guide-group-card { border: 1px solid #ddd7ca; border-radius: 20px; padding: 1rem 1.05rem; background: #fbfaf7; }
.guide-group-card h3 { margin-top: 0; font-size: 1.05rem; }
.faq-entry-card { border: 1px solid #d7d1c3; border-radius: 20px; padding: 1.1rem 1.2rem; background: #faf8f2; }
[data-branded-links="true"] { display:none !important; }
.markets-status-list, .state-cities-list { list-style: none; padding: 0; margin: 0; }
@media (max-width: 840px) {
  main, .container, .shell, .page-shell { max-width: 100%; }
  .section { margin-block: 2.5rem; }
}


/* Remediation pass: stronger hierarchy without deleting fanout */
.hero { padding: 3rem 0 1.75rem; }
.hero .kicker { letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; color: #6d6558; }
[data-primary-conversion-cta="true"] { margin-top: .5rem; }
[data-inline-conversion-cta="true"] { margin-top: 1.25rem; }
[data-inline-conversion-cta="true"] .conversion-card,
[data-primary-conversion-cta="true"] .conversion-card { border-radius: 22px; }
.answer-block, .citation-summary.answer-block { background: #f5f1e8; }
.provider-directory-section, .faq-entry-card, .state-cities-block, .request-city-block, .state-guides-support { background: #fffdfa; border-radius: 22px; }
.state-guides-support .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); display:grid; gap:1rem; }
.tertiary-support, .fanout-query-cluster--tertiary { opacity: .66; }
.fanout-query-cluster--tertiary summary { font-size: .98rem; }
.fanout-query-cluster--tertiary .accordion-meta, .tertiary-support .muted { font-size: .9rem; }
[data-pi-state-faq="true"], [data-disciplinary-lookup="true"] { background: #fbfaf7; }
.provider-card__verify a { font-weight: 600; }
.guide-opening-block { background: #f8f5ee; }
.guide-opening-block p:last-child { margin-bottom: 0; }
.guide-groups.comparison-block { background: #fbfaf7; }


.connection-bubble__inner { border-radius: 24px; }


.for-providers-visual {
  margin: 0;
}

.for-providers-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.for-providers-visual figcaption {
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(17, 24, 39, 0.78);
}

.price-anchor {
  margin: 8px 0 10px;
  font-weight: 800;
  font-size: 1.08rem;
  color: #10233f;
}

/* Sponsor media containment contract */
.runtime-next-steps-media,
.conversion-cta__media {
  margin: 1rem 0;
  width: 100%;
  max-width: 960px;
}

.runtime-next-steps-media img,
.conversion-cta__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 360px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
}

.sponsored-cta-surface {
  overflow: hidden;
}

@media (max-width: 840px) {
  .runtime-next-steps-media img,
  .conversion-cta__media img {
    max-height: 260px;
    border-radius: 12px;
  }
}

@media print {
  .sponsored-cta-surface,
  .runtime-next-steps-media,
  .conversion-cta__media {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .runtime-next-steps-media img,
  .conversion-cta__media img {
    max-height: 240px;
  }
}

