/* ============================================================
   Clinically AI · /states/ pages (2027 readiness by state)
   Loads after lean.css. Pages are generated by
   tools/state-pages/build.py; edit the generator, not the HTML.
   Everything here is scoped with an st- prefix.
   ============================================================ */
.st-page {
  --st-glass: rgba(255, 255, 255, .055);
  --st-glass-2: rgba(255, 255, 255, .09);
  --st-line: rgba(255, 255, 255, .12);
  --st-line-hi: rgba(255, 255, 255, .24);
  --st-ink: #F1E9F7;
  --st-soft: rgba(241, 233, 247, .74);
  --st-mute: rgba(241, 233, 247, .6);
  --st-orange: #FFBB51;
  --st-pink: #FF7CC0;
  --st-lilac: #E7A6EE;
  --st-exp: #9C7BFF;
  --st-par: #F0A0D0;
  --st-non: #5E4A86;
  --st-grad: linear-gradient(135deg, #8aa4ff 0%, #c08bff 50%, #ff7cc0 100%);
}

/* ---------- hero ---------- */
.st-hero { padding: 40px 0 72px; }
.st-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr);
  gap: 40px 56px;
  align-items: center;
}
.st-hero .lead { color: rgba(255, 255, 255, .9); max-width: 44rem; }
.st-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.st-crumbs {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: .9rem; color: var(--st-mute); margin-bottom: 22px;
}
.st-crumbs a { color: var(--st-soft); }
.st-crumbs [aria-current] { color: #fff; font-weight: 600; }
.st-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.st-tags li {
  font-size: .84rem; font-weight: 600; line-height: 1.2;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--st-line-hi); background: rgba(255, 255, 255, .08); color: #fff;
}
.st-hero .btn-row { margin-top: 28px; }
.st-hero .st-talk-note { margin: 12px 0 0; font-size: .9rem; color: rgba(255, 255, 255, .8); }

.st-glance {
  background: rgba(20, 8, 40, .52);
  border: 1px solid var(--st-line-hi);
  border-radius: 22px;
  padding: 26px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.st-glance-k {
  text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700;
  color: var(--st-orange); margin: 0 0 16px;
}
.st-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.st-kpi {
  background: var(--st-glass); border: 1px solid var(--st-line);
  border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px;
}
.st-kpi strong {
  font-family: var(--font-head); font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.05;
  background-image: var(--st-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; width: fit-content;
}
.st-kpi span { font-size: .9rem; line-height: 1.4; color: var(--st-soft); }
.st-glance-src { margin: 14px 0 0; font-size: .78rem; color: var(--st-mute); }

/* photo hero: a state's header photo (tools/state-pages/import-headers.py),
   dark on the left where the copy sits, open on the right, fading into the
   page at the bottom. lean.css's .page-hero::after wash is softened to match. */
.st-hero--photo { padding-bottom: 92px; }
.st-photo { overflow: hidden; background: #1a0830; }
.st-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.page-hero > .st-scrim {
  background:
    linear-gradient(90deg, rgba(21, 7, 38, .93) 0%, rgba(21, 7, 38, .82) 34%, rgba(21, 7, 38, .42) 66%, rgba(21, 7, 38, .3) 100%);
}
.st-hero--photo::after {
  background: linear-gradient(180deg, rgba(18, 6, 34, .3) 0%, rgba(18, 6, 34, 0) 30%, rgba(18, 6, 34, 0) 70%, #1a0830 100%);
}
.st-hero--photo .st-glance { background: rgba(20, 8, 40, .7); }
.page-hero > .st-credit {
  position: absolute; z-index: 2; right: 18px; bottom: 12px; margin: 0;
  max-width: calc(100% - 36px); text-align: right;
  font-size: .72rem; color: rgba(255, 255, 255, .62);
}
.st-credit a { color: rgba(255, 255, 255, .78); text-decoration: underline; text-underline-offset: 2px; }
.st-glance--map { padding: 22px 22px 16px; }

/* lean.css underlines every `main li > a` (0,1,3). Tiles, map squares and
   state cards are links by shape, so match that specificity and win on order. */
main li.st-prod > a, main .st-map li > a, main .st-cards li > a { text-decoration: none; }

/* ---------- shared ---------- */
.st-intro { margin-bottom: 40px; }
.st-intro .lead { max-width: 52rem; margin-inline: auto; }
.st-h3 { font-size: 1.12rem; color: #F3ECF7; margin: 30px 0 14px; }
.st-textlink { color: var(--st-lilac); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- what providers are carrying ---------- */
.st-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px 56px; align-items: start; }
.st-split > div > p { color: var(--st-soft); font-size: 1.04rem; }
.st-imp { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.st-imp li {
  position: relative; padding: 14px 16px 14px 20px; border-radius: 12px;
  background: var(--st-glass); border: 1px solid var(--st-line); color: var(--st-ink); line-height: 1.5;
}
.st-imp li::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--st-orange), var(--st-pink));
}
.st-signals {
  background: var(--st-glass); border: 1px solid var(--st-line); border-radius: 20px; padding: 6px 24px 22px;
}
.st-signals ul { list-style: none; padding: 0; margin: 0; }
.st-signals li { padding: 14px 0; border-top: 1px solid var(--st-line); display: grid; gap: 4px; }
.st-signals li:first-child { border-top: 0; padding-top: 4px; }
.st-signals b {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--st-orange);
}
.st-signals span { color: var(--st-ink); line-height: 1.5; font-size: .98rem; }

/* ---------- two forces ---------- */
.st-forces { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.st-force {
  position: relative; overflow: hidden;
  background: var(--st-glass); border: 1px solid var(--st-line); border-radius: 20px; padding: 28px;
  display: flex; flex-direction: column;
}
.st-force::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; }
.st-force--hr1::before { background: linear-gradient(90deg, #FFBB51, #EF8819); }
.st-force--pi::before { background: linear-gradient(90deg, #FF7CC0, #C08BFF); }
.st-force-k { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700; margin: 0 0 8px; }
.st-force--hr1 .st-force-k { color: var(--st-orange); }
.st-force--pi .st-force-k { color: var(--st-pink); }
.st-force h3 { color: #F3ECF7; font-size: 1.45rem; margin-bottom: 10px; }
.st-reach {
  display: inline-block; align-self: flex-start; margin: 0 0 16px; padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--st-line-hi); font-size: .88rem; font-weight: 600; color: #fff;
}
.st-force ul { margin: 0 0 18px; padding-left: 20px; color: var(--st-soft); display: grid; gap: 8px; }
.st-role { color: var(--st-ink); margin: auto 0 16px; padding-top: 16px; border-top: 1px solid var(--st-line); }
.st-role b { color: #fff; }
.st-pull { margin-top: 48px; }

/* ---------- product chips ---------- */
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.st-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--st-line-hi);
  color: #fff; font-weight: 600; font-size: .9rem; line-height: 1.2; text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.st-chip:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .4); text-decoration: none; }
.st-chip-mk { width: 24px; height: 24px; display: inline-flex; }
.st-chip-mk svg { width: 100%; height: 100%; }
.st-chip-s { font-size: .72rem; font-weight: 600; color: var(--st-mute); }

/* ---------- where to start ---------- */
.st-starts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
[data-theme="dark"] .card.st-start { display: flex; flex-direction: column; gap: 4px; padding: 26px; }
.st-start-k { text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 700; color: var(--st-orange); margin: 0 0 6px; }
.st-start p:not(.st-start-k) { color: var(--st-ink); flex: 1; }

/* ---------- platform ---------- */
.st-prods { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.st-prod a {
  height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 18px;
  background: var(--st-glass); border: 1px solid var(--st-line); color: var(--st-ink); text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.st-prod a:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .32); background: var(--st-glass-2); text-decoration: none; }
.st-prod.is-hot a {
  border-color: transparent;
  background:
    linear-gradient(#211037, #211037) padding-box,
    linear-gradient(135deg, #FFBB51, #FF7CC0 55%, #C08BFF) border-box;
  border: 1px solid transparent;
}
.st-prod-mk { width: 44px; height: 44px; display: block; margin-bottom: 6px; }
.st-prod-mk svg { width: 100%; height: 100%; }
.st-prod-n { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: #fff; }
.st-prod-kind { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--st-mute); font-weight: 600; }
.st-prod-v { color: var(--st-soft); font-size: .95rem; line-height: 1.5; flex: 1; margin-top: 4px; }
.st-prod-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.st-prod-s, .st-prod-hot {
  font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; line-height: 1.3;
}
.st-prod-s { background: rgba(120, 220, 170, .14); color: #9FE7C4; border: 1px solid rgba(120, 220, 170, .35); }
.st-prod-s.is-beta { background: rgba(192, 139, 255, .14); color: #D8C2FF; border-color: rgba(192, 139, 255, .4); }
.st-prod-hot { background: rgba(255, 187, 81, .14); color: var(--st-orange); border: 1px solid rgba(255, 187, 81, .45); }

/* ---------- proof ---------- */
[data-theme="dark"] .st-proof { background: linear-gradient(180deg, #1f0d3a 0%, #1a0830 100%); }
.st-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; margin-bottom: 40px; }
.st-case {
  background: var(--st-glass); border: 1px solid var(--st-line); border-radius: 20px; padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.st-case-head { display: flex; gap: 16px; align-items: center; }
.st-case-head .tq-av { flex: none; }
.st-case-org { margin: 0; font-weight: 700; color: #fff; }
.st-case-stat { margin: 2px 0 0; color: var(--st-soft); line-height: 1.4; }
.st-case-stat strong { font-family: var(--font-head); color: var(--st-orange); font-size: 1.15rem; }
.st-case > p { color: var(--st-soft); margin: 0; }
.st-case blockquote {
  margin: auto 0 0; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .05);
  border-left: 3px solid var(--st-pink); color: #fff; font-size: 1.02rem; line-height: 1.5;
}
.st-case cite { display: block; margin-top: 8px; font-style: normal; font-size: .86rem; color: var(--st-mute); }
.st-proof-tiles .stat .num { font-size: clamp(1.7rem, 3vw, 2.4rem); height: auto; min-height: 66px; text-align: center; }
.st-proof-tiles .stat .lbl small { display: block; margin-top: 8px; font-size: .8rem; color: var(--st-mute); }
.st-proof-tiles .stat.is-local { border-radius: 18px; background: rgba(255, 187, 81, .08); outline: 1px solid rgba(255, 187, 81, .4); }

/* ---------- governance ---------- */
.st-govs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 30px; }
[data-theme="dark"] .card.st-gov { padding: 26px; }
.st-gov h3 { font-size: 1.2rem; }
.st-gov--law { background: linear-gradient(135deg, rgba(255, 187, 81, .1), rgba(255, 124, 192, .08)) !important; }

/* ---------- assessment band ---------- */
.st-assess { text-align: left; }
.st-assess-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px 56px; align-items: center; }
.st-assess .lead { margin: 0 0 18px; max-width: 40rem; }
.st-assess .eyebrow { color: #FFE0B8; }
.st-gets { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; color: #fff; }
.st-gets li { position: relative; padding-left: 30px; line-height: 1.5; }
.st-gets li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(90deg, #FFBB51, #EF8819);
}
.st-gets li::after {
  content: ""; position: absolute; left: 6px; top: 9px; width: 8px; height: 5px;
  border-left: 2px solid #3a1f04; border-bottom: 2px solid #3a1f04; transform: rotate(-45deg);
}
.st-checks {
  background: rgba(20, 6, 36, .42); border: 1px solid rgba(255, 255, 255, .26); border-radius: 20px; padding: 6px 24px 18px;
}
.st-checks .st-h3 { color: #fff; margin-top: 18px; }
.st-checks ul { list-style: none; padding: 0; margin: 0; }
.st-checks li { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .16); display: grid; gap: 3px; }
.st-checks b { color: #fff; }
.st-checks span { color: rgba(255, 255, 255, .8); font-size: .92rem; line-height: 1.45; }
.st-assess .btn-row { justify-content: flex-start; }

/* ---------- explore + sources ---------- */
.st-more { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px 56px; align-items: start; }
.st-more p { color: var(--st-soft); }
.st-src { margin-top: 26px; border: 1px solid var(--st-line); border-radius: 14px; padding: 4px 18px; background: var(--st-glass); }
.st-src summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: #fff; }
.st-src ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; font-size: .9rem; color: var(--st-soft); }
.st-src p { font-size: .84rem; color: var(--st-mute); }
.st-src a { color: var(--st-lilac); }

/* ---------- tile map ---------- */
.st-map {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px;
}
.st-map li { aspect-ratio: 1 / 1; min-width: 0; }
.st-map a {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  border-radius: 6px; font-size: clamp(.58rem, 1.05vw, .82rem); font-weight: 700; letter-spacing: .02em;
  color: #fff; text-decoration: none; line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
}
.st-map .t-exp a { background: var(--st-exp); }
.st-map .t-par a { background: var(--st-par); color: #2a0b2e; }
.st-map .t-non a { background: var(--st-non); color: rgba(255, 255, 255, .92); }
.st-map a:hover, .st-map a:focus-visible { transform: scale(1.12); box-shadow: 0 6px 18px rgba(0, 0, 0, .45); text-decoration: none; position: relative; z-index: 1; }
.st-map .is-current a { background: linear-gradient(135deg, #FFBB51, #EF8819); color: #3a1f04; box-shadow: 0 0 0 3px rgba(255, 187, 81, .35); }
.st-map li.is-dim a { opacity: .18; }
.st-map--big { gap: 6px; }
.st-map--big a { font-size: clamp(.6rem, 1.15vw, .92rem); border-radius: 8px; }
.st-map-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; font-size: .8rem; color: var(--st-mute); }
.st-map-key span { display: inline-flex; align-items: center; gap: 6px; }
.st-map-key i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.st-map-key .k-exp { background: var(--st-exp); }
.st-map-key .k-par { background: var(--st-par); }
.st-map-key .k-non { background: var(--st-non); }

/* ---------- hub ---------- */
.st-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 24px; }
.st-jump label { font-weight: 600; color: #fff; }
.st-jump select {
  min-height: 46px; min-width: 240px; padding: 0 14px; border-radius: 12px; font: inherit; font-size: 1rem;
  color: #fff; background: rgba(20, 8, 40, .6); border: 1px solid var(--st-line-hi);
}
.st-jump select option { color: #1a0830; }
.st-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; }
.st-filters button {
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--st-ink); cursor: pointer;
  padding: 8px 14px; border-radius: 999px; background: var(--st-glass); border: 1px solid var(--st-line-hi);
}
.st-filters button[aria-pressed="true"] { background: linear-gradient(90deg, #FFBB51, #EF8819); color: #3a1f04; border-color: transparent; }
.st-count { text-align: center; color: var(--st-mute); font-size: .9rem; min-height: 1.4em; margin: 0 0 14px; }
.st-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.st-card {
  height: 100%; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr; gap: 2px 14px;
  padding: 16px; border-radius: 16px; background: var(--st-glass); border: 1px solid var(--st-line);
  color: var(--st-ink); text-decoration: none; transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.st-card:hover { border-color: rgba(255, 255, 255, .32); background: var(--st-glass-2); transform: translateY(-2px); text-decoration: none; }
.st-card-ab {
  grid-row: 1 / span 3; width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; color: #fff; background: linear-gradient(135deg, #6c8eff, #b36cff 55%, #ff5db1);
}
.st-card-n { font-weight: 700; color: #fff; font-size: 1.05rem; }
.st-card-t { font-size: .8rem; color: var(--st-mute); line-height: 1.35; }
.st-card-s { font-size: .86rem; color: var(--st-soft); margin-top: 6px; line-height: 1.35; }
.st-card-s b { color: var(--st-orange); }
.st-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.st-num { background: var(--st-glass); border: 1px solid var(--st-line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.st-num strong {
  font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1;
  background-image: var(--st-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; width: fit-content;
}
.st-num span { color: var(--st-ink); line-height: 1.45; flex: 1; }
.st-num small { color: var(--st-mute); font-size: .8rem; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .st-prods, .st-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .st-hero-grid, .st-split, .st-assess-grid, .st-more { grid-template-columns: minmax(0, 1fr); }
  .st-starts { grid-template-columns: minmax(0, 1fr); }
  .st-forces, .st-govs { grid-template-columns: minmax(0, 1fr); }
  /* copy runs full width over the photo, so darken it evenly */
  .page-hero > .st-scrim { background: rgba(21, 7, 38, .78); }
}
@media (max-width: 600px) {
  .st-hero { padding: 28px 0 56px; }
  .st-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .st-kpi { padding: 12px; }
  .st-glance { padding: 18px; }
  .st-prods, .st-nums { grid-template-columns: minmax(0, 1fr); }
  .st-cases { grid-template-columns: minmax(0, 1fr); }
  .st-force, .st-case { padding: 22px; }
  .st-map { gap: 3px; }
  .st-map a { border-radius: 4px; font-size: .56rem; }
  .st-jump select { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .st-prod a, .st-card, .st-map a { transition: none; }
}
