/* The homepage's first two bands: the search box beside the state map on a dark ground, then one
   real record. Loaded after home.css, whose colours, type and map styles these build on. */
.top { border-bottom: 1px solid #ffffff17; }
.pf-live { position: relative; isolation: isolate; }
.pf-live section { padding-block: 0; }
.pf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Band 1: search and map on the same dark ground as a facility page's header */
.pf-hero {
  position: relative; color: #eff6fb;
  overflow-x: clip; /* the map's canvas is wider than a phone; unclipped, the whole page scrolls sideways */
  background:
    radial-gradient(880px 540px at 76% 44%, rgba(59, 130, 246, .26), transparent 62%),
    radial-gradient(620px 420px at 8% 100%, rgba(63, 216, 189, .09), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, #0b1c33 46%, #08152a 100%);
}
/* A faint grid that is brightest behind the map and gone by the edges */
.pf-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(rgba(140, 180, 255, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 180, 255, .14) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 72% at 72% 44%, #000 18%, transparent 76%);
  mask-image: radial-gradient(ellipse 70% 72% at 72% 44%, #000 18%, transparent 76%);
}
.pf-hero > .wrap { position: relative; }
.pf-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  gap: clamp(28px, 4.5vw, 72px); padding-block: clamp(30px, 4vw, 56px);
}
.pf-copy { min-width: 0; }
.pf-eyebrow { margin-bottom: 14px; color: #a9d4ff; font-size: 16px; font-weight: 650; }
.pf-hero h1 {
  max-width: 14ch; margin: 0 0 20px; color: #fff; text-wrap: balance;
  font: 700 clamp(44.7px, 5.2vw, 72.2px)/1.03 var(--serif); letter-spacing: -.032em;
}
.pf-lede { max-width: 38ch; margin: 0 0 28px; color: #dce8f3; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; }
.pf-or { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; margin: 22px 0 0; font-size: 17px; }
.pf-or > span { color: var(--on-dark-muted); }
.pf-or a { white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; color: #fff; font-weight: 650; text-underline-offset: 4px; text-decoration-color: #ffffff66; }
.pf-or a:hover { text-decoration-color: #fff; }
.pf-or a:focus-visible, .pf-stage :focus-visible { outline-color: var(--signal); }
.pf-hero .home-search-row { border-color: #fff; box-shadow: 0 10px 30px -14px #000a; padding: 5px; }
.pf-hero .home-search-row:focus-within { box-shadow: 0 0 0 3px #96caff; border-color: #fff; }
.pf-hero .home-search-row input { min-height: 56px; font-size: 19px; padding-inline: 14px; }
.pf-hero .home-search-row button { padding-inline: 26px; font-size: 18px; }
.pf-free { margin: 14px 0 0; color: var(--on-dark-muted); font-size: 16px; line-height: 1.45; }
.pf-free strong { color: #fff; font-weight: 650; }

.pf-stage { display: flex; flex-direction: column; align-items: center; min-width: 0; --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace; }
/* Top of the map: the state's name with its count under it, and one chip per state beside them */
.pf-stage .stage-head {
  order: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px;
  width: min(100%, 540px); margin-bottom: 2px;
}
.pf-stage .stage-state { flex: none; flex-direction: column; gap: 8px; margin-right: 0; }
.pf-stage .stage-state b { font-size: clamp(38px, 3.6vw, 48px); line-height: 1; letter-spacing: -.01em; }
.pf-stage .stage-state > span { font: 400 11.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #a9bbd6; white-space: nowrap; }
.pf-stage .stage-state.enter :is(b, span) { animation: pf-state-in 1s .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pf-state-in { from { opacity: 0; transform: translateY(14px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.pf-stage .stage-chips { flex: 0 1 290px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; min-width: 0; }
.pf-stage .stage-chips button {
  min-width: 42px; min-height: 32px; padding: 0 8px; border: 1px solid rgba(140, 180, 255, .28); border-radius: 7px;
  background: rgba(140, 180, 255, .07); color: #dce8f7; font: 600 12px/1 var(--sans); letter-spacing: .08em; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.pf-stage .stage-chips button:hover { border-color: #a9d4ff; background: rgba(140, 180, 255, .16); color: #fff; }
.pf-stage .stage-chips button.on { border-color: var(--signal); background: var(--signal); color: #1a1204; }
/* The dots and the changed homes glow against the dark */
.pf-stage #hero-dots, .pf-stage .fl-map { filter: drop-shadow(0 0 18px rgba(92, 160, 255, .3)); }
.pf-stage .hit .core { stroke: none; filter: drop-shadow(0 0 5px var(--signal)); }
.pf-stage .hit .ring { stroke: var(--signal); stroke-width: 1.4px; animation-name: pf-ping; }
@keyframes pf-ping { 0% { transform: scale(1); opacity: .9; } 60% { transform: scale(5.5); opacity: 0; } 100% { opacity: 0; } }
.pf-stage .stage-changes { order: 3; width: min(100%, 540px); margin: 12px 0 0; font-size: 15px; }
.pf-map { order: 1; width: min(100%, 540px); touch-action: manipulation; }
.pf-map.on-dot { cursor: pointer; }
.pf-stage .fl-map { width: 100%; margin: 0; }
.pf-ring { fill: none; stroke: #fff; stroke-width: 2.2px; }
.pf-ring.open { stroke: var(--signal); stroke-width: 3px; }
.pf-map-foot .stage-label b { display: block; margin-top: 6px; font-weight: 500; color: #e6f0f8; }
.pf-key, #home-map-key { display: block; margin: 0; font: 400 11.5px/1.75 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #a9bbd6; }
#home-map-key i { color: var(--signal); }
.pf-map-foot .stage-label .d-change { width: 7px; height: 7px; vertical-align: .06em; box-shadow: 0 0 8px 1px rgba(255, 192, 113, .7); }

/* The card that opens on a dot: the homes drawn there, each a link to its record */
/* One changed home named at a time while the map moves by itself */
.pf-spot {
  position: absolute; z-index: 5; display: block; width: max-content; max-width: 270px; padding: 13px 16px 13px;
  border: 1px solid rgba(140, 180, 255, .22); border-radius: 14px; background: rgba(12, 26, 51, .78); color: #fff; text-decoration: none;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(14px);
  transition: opacity .6s cubic-bezier(.2, .8, .2, 1), transform .6s cubic-bezier(.2, .8, .2, 1), border-color .15s;
}
.pf-spot.on { opacity: 1; transform: none; }
.pf-spot:hover, .pf-spot:focus-visible { border-color: var(--signal); }
.pf-spot small { display: block; color: var(--signal); font: 500 10.5px/1.4 "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.pf-spot b { display: block; margin-top: 7px; font-size: 16px; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.pf-spot span { display: block; margin-top: 2px; color: #a9bbd6; font-size: 13px; }
.pf-spot i { display: block; margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(140, 180, 255, .14); color: #cfe4ff; font-size: 13px; font-style: normal; font-weight: 600; }
.pf-spot:hover i { text-decoration: underline; text-underline-offset: 3px; }
.pf-spot-ring { fill: none; stroke: var(--signal); stroke-width: 2px; pointer-events: none; filter: drop-shadow(0 0 6px var(--signal)); }
.pf-pop {
  position: absolute; z-index: 6; width: min(320px, calc(100% - 24px)); padding: 12px 6px 6px;
  border: 1px solid #d9e1e6; border-radius: 12px; background: #fff; color: var(--ink);
  box-shadow: 0 18px 44px -16px rgba(4, 14, 26, .7);
}
.pf-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 8px 6px 10px; }
.pf-pop-head p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 650; }
.pf-pop-head button { width: 32px; height: 32px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 22px; line-height: 1; }
.pf-pop-head button:hover { background: #e9edf5; }
.pf-pop ul { list-style: none; margin: 0; padding: 0; max-height: min(300px, 46vh); overflow-y: auto; }
.pf-pop li a { display: block; padding: 9px 10px; border-radius: 7px; color: var(--ink); text-decoration: none; }
.pf-pop li a:hover, .pf-pop li a:focus-visible { background: #e9edf5; }
.pf-pop li b { display: block; font-size: 16px; line-height: 1.3; }
.pf-pop li span { display: block; margin-top: 1px; color: var(--muted); font-size: 13px; }
.pf-pop-note { margin: 0; padding: 8px 10px; color: var(--muted); font-size: 13px; }
.pf-stage #home-map-feedback { order: 1; }
.pf-map-foot {
  order: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  width: min(100%, 540px);
}
.pf-map-foot .stage-label { order: 0; margin: 0; font-size: 13px; }
.pf-map-controls { order: 1; display: flex; align-items: center; gap: 8px; margin-left: auto; }
.pf-map-controls .home-map-toggle {
  min-height: 34px; padding: 4px 2px; border: 0; background: none; color: var(--on-dark-muted);
  font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px;
}

/* Band 2: one real record, with the question it raises */
.pf-now { background: #f5f3eb; border-bottom: 1px solid #d7d7cb; }
.pf-now-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center;
  gap: clamp(26px, 4vw, 60px); padding-block: clamp(34px, 4.4vw, 60px);
}
.pf-example-tag { margin: 0 0 12px; color: var(--muted); font-size: 16px; }
/* The example record: a small copy of a facility page (dark header, pills, the four at-a-glance tiles) */
.pf-rec { overflow: hidden; border: 1px solid #cccec4; border-radius: 14px; background: #fff; box-shadow: 0 18px 40px -26px rgba(16, 35, 51, .55); }
.pf-rec-head { padding: clamp(20px, 2.4vw, 30px) clamp(18px, 2.4vw, 30px); background: linear-gradient(115deg, var(--night), #183447); color: #eff1f5; }
.pf-rec-eyebrow { margin: 0; color: #a9c8ff; font-size: 14px; font-weight: 600; }
.pf-rec-head h3 { max-width: 24ch; margin: 8px 0 0; color: #fff; font: 700 clamp(25.8px, 2.7vw, 37.8px)/1.08 var(--serif); letter-spacing: -.032em; text-wrap: balance; }
.pf-rec-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.pf-rec-pills span { padding: 5px 11px; border: 1px solid rgba(140, 180, 255, .2); border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 14px; }
.pf-rec-glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; }
.pf-rec-glance .g {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; align-content: start;
  padding: 18px clamp(16px, 2.2vw, 26px); box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line);
}
.pf-rec-glance .badge { grid-row: span 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #e6e9f0; color: var(--blue-deep); }
.pf-rec-glance .badge svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pf-rec-glance .k { color: var(--muted); font-size: 14px; font-weight: 650; }
.pf-rec-glance .v { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pf-rec-glance .s { color: var(--muted); font-size: 14px; line-height: 1.4; }
.pf-rec .stars { display: inline-flex; gap: 2px; }
.pf-rec .stars .st { width: 22px; height: 22px; fill: #d9dbdf; }
.pf-rec .stars .st.on { fill: var(--blue-deep); }
.pf-rec-note { margin: 0; padding: 12px clamp(16px, 2.2vw, 26px); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.pf-rec-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px clamp(16px, 2.2vw, 26px);
  border-top: 1px solid var(--line); background: #f7f7f1; color: var(--ink); font-size: 18px; font-weight: 650; text-decoration: none;
}
.pf-rec-link:hover { text-decoration: underline; }
.pf-rec-link span { color: var(--blue-deep); }
.pf-side { align-self: center; }
.pf-side .record-showcase-question { margin: 0; }

/* The wording beside the example record */
.pf-side h2 { margin: 0 0 12px; font-size: clamp(28px, 2.9vw, 40px); text-wrap: balance; }
.pf-side-lede { margin: 0 0 20px; color: #404756; font-size: 18px; line-height: 1.5; }
.pf-ask { margin: 0 0 26px; border-bottom: 1px solid #cfd0c4; }
.pf-ask > div { padding: 12px 0; border-top: 1px solid #cfd0c4; }
.pf-ask dt { font-size: 16px; font-weight: 650; }
.pf-ask dd { margin: 2px 0 0; color: #404756; font-size: 16px; line-height: 1.45; }

/* The follow band: the page's one ask, on a dark ground so it stands apart from the reading bands */
.pf-follow-band { padding-block: 0; background: #16284a; color: #eef3fb; }
.pf-follow-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center;
  gap: clamp(28px, 5vw, 80px); padding-block: clamp(38px, 5vw, 70px);
}
.pf-follow-band h2 { max-width: 17ch; margin: 0 0 20px; color: #fff; font-size: clamp(32px, 3.6vw, 50px); text-wrap: balance; }
.pf-follow-copy ul { list-style: none; margin: 0 0 28px; padding: 0; }
.pf-follow-copy li { position: relative; padding: 9px 0 9px 26px; border-top: 1px solid #ffffff24; color: #dbe5f5; font-size: 18px; }
.pf-follow-copy li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }
.pf-follow-cta {
  display: inline-flex; align-items: center; gap: 9px; min-height: 52px; padding: 10px 24px; border-radius: 8px;
  background: var(--signal); color: #2a1c05; font-size: 18px; font-weight: 650; text-decoration: none;
}
.pf-follow-cta:hover { background: #ffd09a; }
.pf-follow-band :focus-visible { outline-color: #fff; }
.pf-mail { margin: 0; }
.pf-mail figcaption { margin: 0 0 8px; color: #b9c8e2; font-size: 13px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.pf-mail-card { padding: 22px 24px 16px; border-radius: 12px; background: #fffefa; color: var(--ink); box-shadow: 0 24px 50px -22px #000c; }
.pf-mail-card p { margin: 0; }
.pf-mail-from { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; }
.pf-mail-from span { color: var(--muted); font-weight: 450; }
.pf-mail-subject { margin: 10px 0 14px !important; font: 700 24.1px/1.15 var(--serif); letter-spacing: -.032em; }
.pf-mail-row { padding: 11px 0; border-top: 1px solid #d6d8ce; }
.pf-mail-row b { display: block; font-size: 16px; font-weight: 650; }
.pf-mail-row span { display: block; color: var(--muted); font-size: 15px; }
.pf-mail-link { padding: 12px 0; border-top: 1px solid #d6d8ce; color: var(--blue-deep); font-weight: 650; }
.pf-mail-foot { color: var(--muted); font-size: 13px; }

/* Browse by state: every live state as plain links, above the state check and the waitlist */
.pf-state-list {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 0 clamp(24px, 4vw, 56px);
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); border-bottom: 1px solid var(--line);
}
.pf-state-list li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; min-height: 50px; padding: 10px 0;
  border-top: 1px solid var(--line);
}
.pf-state-list b { margin-right: auto; font-size: 18px; font-weight: 650; }
.pf-state-list a { font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.pf-state-list a:hover { text-decoration: underline; }
.pf-state-list a em { font-style: normal; font-weight: 450; color: var(--muted); }
.pf-states { background: #fff; }
.pf-states h2 { margin: 0 0 16px; font-size: clamp(28px, 2.9vw, 40px); }
.pf-states-note { margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.pf-states-note button { padding: 0; border: 0; background: none; color: var(--blue-deep); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* The waitlist opens under the note: a state still to open, an email, one button */
.pf-states [hidden] { display: none; }
.cov-wait { max-width: 720px; margin-top: 14px; }
.cov-wait-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cov-wait-row select, .cov-wait-row input[type=email] { min-width: 0; min-height: 46px; padding: 9px 12px; border: 1px solid #787f91; border-radius: 6px; background-color: #fff; color: var(--ink); font: inherit; }
.cov-wait-row select { flex: 0 1 220px; }
.cov-wait-row input[type=email] { flex: 1 1 200px; }
.cov-wait-row button:disabled { opacity: .65; cursor: wait; }
.cov-wait .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cov-wait .form-msg:not(:empty) { margin-top: 8px; }
.pf-states :is(button, select, input, a):focus-visible { outline: 3px solid #233a71; outline-offset: 3px; }

@media (min-width: 1240px) {
  .pf-stage .stage-head, .pf-map, .pf-map-foot, .pf-stage .stage-changes { width: min(100%, 600px); }
}
@media (max-width: 1020px) {
  .pf-stage .stage-head { flex-wrap: wrap; }
  .pf-stage .stage-state { flex: 0 1 auto; }
  .pf-stage .stage-state > span { white-space: normal; }
  .pf-stage .stage-chips { flex-basis: 100%; max-width: none; justify-content: flex-start; }
}
@media (max-width: 860px) {
  .pf-hero-grid, .pf-now-grid, .pf-follow-grid { grid-template-columns: minmax(0, 1fr); }
  .pf-hero h1 { max-width: 16ch; margin-bottom: 22px; }
  .pf-stage .stage-head, .pf-map, .pf-map-foot, .pf-stage .stage-changes { width: min(100%, 420px); }
  .pf-side { margin-top: 0; }
  .pf-stage .stage-chips button { min-width: 46px; min-height: 40px; font-size: 13px; }
  .pf-hero::before { -webkit-mask-image: radial-gradient(ellipse 90% 50% at 50% 70%, #000 18%, transparent 76%); mask-image: radial-gradient(ellipse 90% 50% at 50% 70%, #000 18%, transparent 76%); }
}
@media (max-width: 480px) {
  .pf-rec-glance { grid-template-columns: minmax(0, 1fr); }
  .pf-hero h1 { font-size: clamp(44px, 12.6vw, 54px); }
  .pf-hero .home-search-row button { padding-inline: 16px; }
  .pf-map-controls { margin-left: 0; }
  .pf-state-list { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .pf-stage .stage-state.enter :is(b, span) { animation: none; }
}
