/* THE STATE RULES MAP (/iv-therapy-rules-by-state, 2026-10-20). One clickable US map over our 29 state guides and 14
   city guides. Ink ground continuing the hero; aqua = a state we have a guide for; white = the state on show. The panel
   beside the map copies the state's entry from the A to Z list below it. Nothing is hidden until an animation runs. */

/* ---------- hero: short, centred, with the plain-words warning ---------- */
.sm-hero { padding-top: clamp(108px, 12vh, 132px); padding-bottom: clamp(26px, 3vw, 40px); }
.sm-hero .pg-hero-in { max-width: 1080px; }
.sm-hero h1 { font-size: clamp(2.3rem, 4.4vw, 4.1rem); }
.sm-hero .pg-lede { max-width: 66ch; }
.sm-hero .pg-acts { justify-content: center; }
.sm-note { display: flex; gap: 10px; align-items: flex-start; max-width: 62ch; margin: 22px auto 0; font-size: 13.5px; line-height: 1.5; color: var(--mute-d); text-align: left; }
.sm-note svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--aqua); stroke-width: 2; stroke-linecap: round; }

/* ---------- the map band ---------- */
.sm-sec { background: var(--ink); color: var(--bone); padding: 0 var(--gut) clamp(56px, 7vw, 96px); }
.sm-in { max-width: var(--max); margin: 0 auto; }
.sm-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 20px 0 18px; border-top: 1px solid var(--line-d); }
.sm-bar-h { font-family: var(--wide); font-weight: 700; font-size: 1.15rem; letter-spacing: -.03em; color: #fff; }
.sm-key { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13.5px; color: #c9c8cd; }
.sm-key li { display: flex; align-items: center; gap: 8px; }
.sm-key i { flex: none; width: 14px; height: 14px; border-radius: 4px; }
.sm-key .sm-key-g { background: var(--aqua); }
.sm-key .sm-key-n { background: #2e2e33; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.sm-key .sm-key-c { width: 10px; height: 10px; margin: 0 2px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 0 0 3.5px #fff; }
.sm-key .sm-key-s { background: #fff; }

.sm-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(380px, 36vw, 520px); gap: clamp(20px, 2.4vw, 32px); align-items: start; }
.sm-map { position: relative; margin: 0; padding: clamp(10px, 1.8vw, 26px); border-radius: 28px; background: #121214; border: 1px solid rgba(255, 255, 255, .07); }
.sm-svg { display: block; width: 100%; height: auto; overflow: visible; }

/* states: grey without a guide, aqua with one, white when on show */
.sm-st { cursor: pointer; outline: none; }
.sm-st path, .sm-st .sm-chip-r { fill: #2e2e33; stroke: #121214; stroke-width: 1; stroke-linejoin: round; transition: fill .15s; }
.sm-st.is-guide path, .sm-st.is-guide .sm-chip-r { fill: var(--aqua); }
.sm-st:hover path, .sm-st:hover .sm-chip-r { fill: #44444b; }
.sm-st.is-guide:hover path, .sm-st.is-guide:hover .sm-chip-r { fill: #9af5ec; }
.sm-st.is-sel path, .sm-st.is-sel .sm-chip-r, .sm-st.is-sel:hover path, .sm-st.is-sel:hover .sm-chip-r { fill: #fff; }
.sm-hl { fill: none; pointer-events: none; stroke-linejoin: round; }
.sm-hl-sel { stroke: var(--ink); stroke-width: 1.6; }
.sm-hl-foc { visibility: hidden; }
.sm-hl-foc1 { stroke: var(--ink); stroke-width: 6; }
.sm-hl-foc2 { stroke: #fff; stroke-width: 2.6; }
.sm-map.has-focus .sm-hl-foc { visibility: visible; }
.sm-lbl { font: 600 11px var(--sans); letter-spacing: .03em; fill: #a3a2a8; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.sm-lbl.is-guide, .sm-lbl.is-sel { fill: var(--ink); }
.sm-lines path { fill: none; stroke: rgba(255, 255, 255, .26); stroke-width: 1; }
.sm-lines circle { fill: rgba(255, 255, 255, .55); }
.sm-dots circle { fill: #fff; stroke: var(--ink); stroke-width: 1.6; pointer-events: none; }

/* the name under the pointer (mouse only; decoration, the panel says it all) */
.sm-tip { position: absolute; left: 0; top: 0; z-index: 2; padding: 8px 12px; border-radius: 12px; background: #fff; color: var(--ink); font-size: 13.5px; line-height: 1.3; white-space: nowrap; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7); pointer-events: none; opacity: 0; transition: opacity .12s; }
.sm-tip.on { opacity: 1; }
.sm-tip b { display: block; font-weight: 700; }
.sm-tip span { display: block; font-size: 12.5px; color: var(--mute); }

.sm-skip, .sm-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sm-skip:focus { z-index: 3; left: 16px; top: 16px; width: auto; height: auto; clip: auto; clip-path: none; padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; }

/* every state, A to Z, under the map (wide screens; the list further down does this job on smaller ones) */
.sm-hint { display: none; margin-top: 12px; text-align: center; font-size: 13.5px; line-height: 1.5; color: var(--mute-d); }
.sm-hint a { color: #fff; text-decoration: underline; text-decoration-color: var(--aqua); text-underline-offset: 3px; }
.sm-index { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 6px; }
.sm-ix { display: flex; align-items: center; min-height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); font-size: 13px; font-weight: 600; white-space: nowrap; color: #a3a2a8; transition: background .15s, color .15s, border-color .15s; }
.sm-ix.is-guide { color: #fff; border-color: rgba(34, 224, 207, .5); background: rgba(34, 224, 207, .1); }
.sm-ix:hover { border-color: var(--aqua); color: #fff; }
.sm-ix.is-sel { background: #fff; border-color: #fff; color: var(--ink); }
.sm-ix:focus-visible, .sm-city:focus-visible, .sm-src:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }

/* ---------- the answers panel (and the same blocks inside each list entry) ---------- */
.sm-panel { border-radius: 28px; background: #fff; color: var(--ink); padding: clamp(22px, 2.2vw, 32px); }
.sm-k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--aqua-ink); }
.sm-name { margin-top: 8px; font-family: var(--wide); font-weight: 800; font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1.05; letter-spacing: -.045em; outline: none; }
.sm-one { margin-top: 10px; font-size: 16px; line-height: 1.45; color: #3f3e3b; }
.sm-qa { margin-top: 16px; }
.sm-qa-i { padding: 14px 0; border-top: 1px solid var(--line); }
.sm-qa dt { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sm-qa dt svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--aqua-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sm-qa dd { margin: 6px 0 0 26px; }
.sm-qa dd p { font-size: 15px; line-height: 1.5; color: #2b2a28; }
.sm-src { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--aqua-ink); border-bottom: 1px solid rgba(10, 118, 108, .35); }
.sm-src:hover { border-color: var(--aqua-ink); }
.sm-go { margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.sm-read { min-height: 50px; padding: 12px 24px; white-space: normal; text-align: center; line-height: 1.25; }
.sm-cities { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sm-cities span { margin-right: 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.sm-city { display: inline-flex; align-items: center; min-height: 38px; padding: 0 15px; border-radius: 999px; border: 1.5px solid var(--ink); font-size: 14px; font-weight: 600; transition: background .15s, color .15s; }
.sm-city:hover { background: var(--ink); color: #fff; }
.sm-fine { margin-top: 14px; font-size: 12.5px; line-height: 1.5; color: var(--mute); }
.sm-none { margin-top: 14px; font-size: 16px; line-height: 1.5; }
.sm-none-2 { margin: 10px 0 18px; font-size: 15px; line-height: 1.5; color: #3f3e3b; }
.sm-legal { margin: clamp(22px, 2.6vw, 34px) auto 0; max-width: 80ch; text-align: center; font-size: 12.5px; line-height: 1.5; color: var(--mute-d); }

/* ---------- the same answers as a list ---------- */
.sm-search { max-width: 620px; margin: 0 auto clamp(26px, 3vw, 40px); }
.sm-search label { display: block; margin-bottom: 10px; text-align: center; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.sm-q-wrap { position: relative; }
.sm-q-wrap svg { position: absolute; left: 20px; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: none; stroke: var(--mute); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
#sm-q { width: 100%; min-height: 56px; padding: 0 20px 0 52px; border-radius: 999px; border: 1.5px solid rgba(12, 12, 13, .22); background: var(--bone); color: var(--ink); font: 500 16px var(--sans); }
#sm-q::placeholder { color: #77746d; }
#sm-q:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(34, 224, 207, .5); }
.sm-count { min-height: 1.5em; margin-top: 10px; text-align: center; font-size: 14px; color: var(--mute); }
.sm-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 2.6vw, 40px); align-items: start; }
.sm-row { border-bottom: 1px solid var(--line); }
.sm-row[hidden] { display: none; }
.sm-col .sm-row:first-child { border-top: 1px solid var(--line); }
.sm-row summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 30px; column-gap: 14px; row-gap: 4px; align-items: center; padding: 16px 0; }
.sm-row summary::-webkit-details-marker { display: none; }
.sm-row summary::after { content: '+'; grid-column: 2; grid-row: 1; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--bone); color: var(--aqua-ink); font-size: 20px; font-weight: 600; transition: transform .2s; }
.sm-row[open] summary::after { transform: rotate(45deg); }
.sm-row summary:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; border-radius: 6px; }
.sm-row-h { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.sm-row-h b { font-size: 17px; font-weight: 700; }
.sm-tag { padding: 4px 9px; border-radius: 999px; background: #dcf7f3; color: var(--aqua-ink); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sm-row:not(.is-guide) .sm-tag { background: var(--bone); color: var(--mute); }
.sm-row-one { grid-column: 1 / -1; font-size: 14.5px; line-height: 1.45; color: #3f3e3b; }
.sm-row .sm-body { padding: 0 0 22px; }
.sm-row .sm-qa { margin-top: 0; }

/* ---------- read next ---------- */
.sm-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sm-card { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.2vw, 28px); border-radius: 22px; background: var(--bone); transition: transform .2s, box-shadow .2s; }
.sm-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(12, 12, 13, .45); }
.sm-card-ink { background: var(--ink); color: var(--bone); }
.sm-card-k { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--aqua-ink); }
.sm-card-ink .sm-card-k { color: var(--aqua); }
.sm-card b { font-family: var(--wide); font-weight: 700; font-size: 1.12rem; line-height: 1.22; letter-spacing: -.03em; }
.sm-card-s { font-size: 14.5px; line-height: 1.5; color: #3f3e3b; }
.sm-card-ink .sm-card-s { color: #c9c8cd; }
.sm-card .more { margin-top: auto; width: fit-content; font-size: 14px; }

/* ---------- smaller screens: map, then the panel, then the list ---------- */
@media (max-width: 1180px) {
  .sm-grid { grid-template-columns: 1fr; }
  .sm-index { display: none; }
  .sm-hint { display: block; }
  .sm-panel .sm-qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .sm-list { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
  .sm-col + .sm-col .sm-row:first-child { border-top: 0; }
  .sm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .sm-bar { justify-content: center; text-align: center; }
  .sm-key { justify-content: center; gap: 8px 16px; }
  .sm-map { padding: 8px; border-radius: 18px; overflow: hidden; }
  /* too small for names: drop the labels and the small-state chips (the list below has every state), and let the map
     use the strip the chips sat in */
  .sm-lbl, .sm-lines, .sm-chip-r { display: none; }
  .sm-svg { width: calc(100% * 960 / 890); max-width: none; }
  .sm-panel { border-radius: 22px; }
  .sm-panel .sm-qa { display: block; }
  .sm-cards { grid-template-columns: 1fr; }
  .sm-note { font-size: 13px; }
}
