/* state-guide.css: /hospice/staff-requirements-by-state only (the state finder).
   Ported from Volunteer Ledger's v821 state guide (2026-10-14) onto PL's
   tokens. Light theme only; no entrance animation (hover and focus only). */

/* ---- Hero: the state finder is the focal point ---- */
.sg-hero { padding-bottom: 2.6rem; }
.sg-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; max-width: 760px; margin: 0 auto .9rem; }
.sg-hero-top .eyebrow { margin: 0; }
.sg-count { font-size: .84rem; font-weight: 700; color: var(--pl-text-soft); }
.sg-hero .lp-hero-copy { text-align: left; }
.sg-hero .lp-hero-sub { margin-left: 0; margin-right: 0; }
.sg-hero .lp-breadcrumb { max-width: 760px; margin-left: auto; margin-right: auto; text-align: left; }
.sg-hero h1 { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sg-find { max-width: 760px; margin: 1.6rem auto 0; background: var(--pl-surface); border: 1px solid var(--pl-border); border-radius: var(--pl-radius); padding: 1.4rem 1.5rem 1.2rem; box-shadow: var(--pl-shadow); }
.sg-find-label { display: block; font-family: var(--pl-display); font-size: 1.2rem; font-weight: 700; color: var(--pl-text); margin: 0 0 .8rem; text-wrap: balance; }
.sg-select { width: 100%; appearance: none; -webkit-appearance: none; padding: .9rem 2.8rem .9rem 1rem; font: inherit; font-size: 1.05rem; color: var(--pl-text); background: var(--pl-field-bg) var(--pl-select-chev) no-repeat right 1rem center; border: 1px solid var(--pl-border-strong); border-radius: 12px; cursor: pointer; }
.sg-select:focus { outline: none; border-color: var(--pl-primary); box-shadow: 0 0 0 3px var(--pl-primary-glow), 0 0 0 1px var(--pl-primary-ring); }
.sg-find-btn { width: 100%; justify-content: center; margin-top: .8rem; }
.sg-find-note { text-align: center; font-size: .9rem; color: var(--pl-text-soft); margin: .7rem 0 0; }
.sg-trust { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; list-style: none; padding: 0; max-width: 760px; margin: 1rem auto 0; }
.sg-trust li { display: inline-flex; align-items: center; gap: .4rem; font-size: .92rem; color: var(--pl-text-soft); }
.sg-trust svg { color: var(--pl-primary); flex: none; }
.sg-reviewed { max-width: 760px; margin: .7rem auto 0; font-size: .86rem; color: var(--pl-text-soft); }

/* ---- Three steps ---- */
.sg-steps { display: flex; align-items: center; justify-content: center; gap: .6rem; list-style: none; margin: 0 auto; padding: 1rem 1.2rem; max-width: 820px; background: var(--pl-surface); border: 1px solid var(--pl-border); border-radius: 16px; }
.sg-steps li { flex: 1 1 0; text-align: center; }
.sg-steps a { display: inline-flex; flex-direction: column; align-items: center; gap: .35rem; font-weight: 700; font-size: .95rem; color: var(--pl-text); text-decoration: none; }
.sg-steps a:hover { color: var(--pl-primary); }
.sg-steps svg { color: var(--pl-primary); }
.sg-steps .sg-arrow { flex: 0 0 auto; color: var(--pl-text-soft); }
@media (max-width: 560px) { .sg-steps { gap: .3rem; padding: .9rem .6rem; } .sg-steps a { font-size: .84rem; } }

/* ---- Results: no state yet ---- */
.sg-empty { text-align: center; }
.sg-empty .section-lead { margin-bottom: 1.4rem; }
.sg-statelist { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .45rem; max-width: 960px; margin: 0 auto; text-align: left; }
.sg-statelist a { display: block; padding: .5rem .8rem; border: 1px solid var(--pl-border); border-radius: 10px; background: var(--pl-surface); color: var(--pl-text); font-weight: 600; font-size: .94rem; text-decoration: none; }
.sg-statelist a:hover { border-color: var(--pl-primary); color: var(--pl-primary); }

/* ---- Results: the selected state's panel ---- */
.sg-panel { max-width: 880px; margin: 0 auto; background: var(--pl-surface); border: 1px solid var(--pl-border); border-radius: var(--pl-radius); box-shadow: var(--pl-shadow); padding: 1.8rem 1.9rem; }
.sg-panel:focus { outline: none; }
.sg-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sg-kicker { display: block; font-size: .78rem; font-weight: 700; color: var(--pl-primary); margin-bottom: .25rem; }
.sg-panel-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); margin: 0; }
.sg-panel-rev { font-size: .9rem; color: var(--pl-text-soft); margin: .3rem 0 0; }
.sg-change { white-space: nowrap; }
.sg-glance { margin-top: 1.4rem; background: var(--pl-bg); border: 1px solid var(--pl-border); border-radius: 14px; padding: 1.1rem 1.3rem; }
.sg-glance h3 { font-size: 1.05rem; margin: 0 0 .5rem; }
.sg-glance p { margin: 0; line-height: 1.65; color: var(--pl-text); }
.sg-glance p + p { margin-top: .6rem; font-size: .95rem; color: var(--pl-text-soft); }
.sg-src { font-size: .88rem; color: var(--pl-text-soft); }
.sg-src a { color: var(--pl-primary); }
.sg-roles { margin-top: 1.5rem; }
.sg-roles-q { font-weight: 700; font-size: .98rem; margin: 0 0 .55rem; }
.sg-role-btns { display: flex; flex-wrap: wrap; gap: .45rem; }
.sg-role-btns button { font: inherit; font-size: .88rem; font-weight: 700; padding: .45rem .9rem; border-radius: 100px; border: 1px solid var(--pl-border-strong); background: var(--pl-surface); color: var(--pl-text-soft); cursor: pointer; }
.sg-role-btns button:hover { border-color: var(--pl-primary); color: var(--pl-primary); }
.sg-role-btns button[aria-pressed="true"] { background: var(--pl-primary); border-color: var(--pl-primary); color: var(--pl-on-primary); }
.sg-reqs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 1.6rem 0 .7rem; }
.sg-reqs-head h3 { font-size: 1.15rem; margin: 0; }
.sg-reqs-head span { font-size: .84rem; color: var(--pl-text-soft); }
.sg-req { border: 1px solid var(--pl-border); border-radius: 12px; background: var(--pl-surface); margin-bottom: .55rem; }
.sg-req[open] { border-color: var(--pl-primary-line); }
.sg-req summary { list-style: none; display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; cursor: pointer; }
.sg-req summary::-webkit-details-marker { display: none; }
.sg-req-title { flex: 1 1 auto; min-width: 0; }
.sg-req-title strong { display: block; font-size: 1rem; color: var(--pl-text); }
.sg-req-title span { display: block; font-size: .87rem; color: var(--pl-text-soft); margin-top: .1rem; }
.sg-req-title em { display: block; font-style: normal; font-size: .85rem; font-weight: 700; color: var(--st-due); margin-top: .15rem; }
.sg-chev { flex: none; color: var(--pl-text-soft); transition: transform .15s; }
.sg-req[open] .sg-chev { transform: rotate(180deg); }
.sg-req-body { padding: 0 1rem 1rem; border-top: 1px solid var(--pl-border); }
.sg-req-body dl { display: grid; grid-template-columns: 11rem 1fr; gap: .55rem 1rem; margin: .9rem 0 0; }
.sg-req-body dt { font-size: .84rem; font-weight: 700; color: var(--pl-text-soft); }
.sg-req-body dd { margin: 0; font-size: .94rem; line-height: 1.55; color: var(--pl-text); }
.sg-req-body dd a { color: var(--pl-primary); }
@media (max-width: 640px) { .sg-req-body dl { grid-template-columns: 1fr; gap: .15rem; } .sg-req-body dd { margin-bottom: .55rem; } .sg-panel { padding: 1.3rem 1.1rem; } }
/* Subdued, consistent source tags (where a rule comes from, not a status). */
.sg-tag { flex: none; font-size: .74rem; font-weight: 700; padding: .22rem .6rem; border-radius: 100px; white-space: nowrap; }
.sg-tag--federal { background: var(--pl-primary-soft); color: var(--pl-primary-dark); }
.sg-tag--state { background: #E7EEF4; color: #34506A; }
.sg-tag--cond { background: var(--st-due-bg); color: var(--st-due); }
.sg-tag--policy { background: var(--pl-surface-muted); color: var(--pl-text-soft); }
.sg-tag--unk { background: var(--pl-surface); color: var(--pl-text-soft); border: 1px dashed var(--pl-border-strong); }
.sg-common { margin-top: 1rem; font-size: .92rem; color: var(--pl-text-soft); line-height: 1.6; }
.sg-common strong { color: var(--pl-text); }
.sg-notusual { margin-top: .5rem; font-size: .9rem; color: var(--pl-text-soft); }
.sg-panel-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.sg-panel-actions .btn { display: inline-flex; align-items: center; gap: .45rem; }
.sg-sourcebox { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--pl-border); font-size: .9rem; color: var(--pl-text-soft); line-height: 1.6; }
.sg-sourcebox h3 { font-size: .95rem; color: var(--pl-text); margin: 0 0 .4rem; }
.sg-sourcebox p { margin: .2rem 0; }
.sg-sourcebox a { color: var(--pl-primary); }

/* ---- Checklist band ---- */
.sg-check { max-width: 880px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; flex-wrap: wrap; background: var(--pl-surface); border: 1px solid var(--pl-border); border-radius: var(--pl-radius); padding: 1.4rem 1.6rem; }
.sg-check h2 { font-size: 1.35rem; margin: 0 0 .35rem; }
.sg-check p { margin: 0; color: var(--pl-text-soft); font-size: .96rem; line-height: 1.55; max-width: 520px; }

/* ---- Track them easily ---- */
.sg-track { max-width: 880px; margin: 0 auto; background: var(--pl-surface); border: 1px solid var(--pl-border); border-radius: var(--pl-radius); padding: 1.8rem 1.9rem; box-shadow: var(--pl-shadow); }
.sg-track h2 { display: flex; gap: .6rem; align-items: flex-start; font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin: 0 0 .6rem; text-wrap: balance; }
.sg-track h2 svg { flex: none; color: var(--pl-primary); margin-top: .3rem; }
.sg-track > p { margin: 0; color: var(--pl-text-soft); line-height: 1.6; }
.sg-feats { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 2rem; list-style: none; padding: 0; margin: 1.3rem 0 1.5rem; }
.sg-feats li { display: flex; gap: .6rem; align-items: flex-start; font-size: .96rem; line-height: 1.45; color: var(--pl-text-soft); }
.sg-feats strong { display: block; color: var(--pl-text); }
.sg-feats svg { flex: none; color: var(--pl-primary); margin-top: .15rem; }
@media (max-width: 640px) { .sg-feats { grid-template-columns: 1fr; } .sg-track { padding: 1.3rem 1.1rem; } }
.sg-track .btn { width: 100%; justify-content: center; }
.sg-track-note { text-align: center; font-size: .9rem; color: var(--pl-text-soft); margin: .65rem 0 0; }
.sg-track-fine { font-size: .86rem; color: var(--pl-text-soft); margin: 1.1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--pl-border); }
.sg-shot { max-width: 1080px; margin: 2.2rem auto 0; }
.sg-shot figcaption { text-align: center; font-size: .9rem; color: var(--pl-text-soft); margin-top: .8rem; }

/* ---- Compare states: one searchable matrix ---- */
.sg-mx-controls { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; margin: 1.6rem 0 .8rem; }
.sg-mx-search { flex: 1 1 240px; max-width: 340px; padding: .6rem .9rem; border: 1px solid var(--pl-border-strong); border-radius: 10px; font: inherit; font-size: .95rem; background: var(--pl-field-bg); color: var(--pl-text); }
.sg-mx-search:focus { outline: none; border-color: var(--pl-primary); box-shadow: 0 0 0 3px var(--pl-primary-glow); }
.sg-view { display: inline-flex; border: 1px solid var(--pl-border-strong); border-radius: 100px; overflow: hidden; }
.sg-view button { border: 0; background: var(--pl-surface); color: var(--pl-text-soft); font: inherit; font-size: .86rem; font-weight: 700; padding: .5rem 1.1rem; cursor: pointer; }
.sg-view button[aria-pressed="true"] { background: var(--pl-primary); color: var(--pl-on-primary); }
.sg-mx-note { font-size: .9rem; color: var(--pl-text-soft); line-height: 1.55; margin: 0 0 .9rem; }
.sg-mx-wrap { position: relative; border: 1px solid var(--pl-border); border-radius: 14px; overflow: auto; max-height: 680px; background: var(--pl-surface); }
.sg-mx { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sg-mx th, .sg-mx td { padding: .6rem .8rem; border-bottom: 1px solid var(--pl-border); text-align: left; vertical-align: top; }
.sg-mx thead th { position: sticky; top: 0; z-index: 2; background: var(--pl-surface-muted); font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--pl-text-soft); }
.sg-mx tbody th { position: sticky; left: 0; z-index: 1; background: var(--pl-surface); white-space: nowrap; }
.sg-mx thead th:first-child { left: 0; z-index: 3; }
.sg-mx tbody tr:last-child th, .sg-mx tbody tr:last-child td { border-bottom: 0; }
.sg-mx tr[id] { scroll-margin-top: 92px; }
.sg-mx-state { font-weight: 700; color: var(--pl-primary); text-decoration: none; }
.sg-mx-state:hover { text-decoration: underline; }
.sg-mx-v { font-weight: 600; color: var(--pl-text); }
.sg-mx-v--none { font-weight: 400; color: var(--pl-text-soft); }
.sg-mx-v--unk { font-weight: 400; font-style: italic; color: var(--pl-text-soft); }
.sg-mx details summary { cursor: pointer; color: var(--pl-primary); font-weight: 700; font-size: .86rem; }
.sg-mx details p { margin: .4rem 0 0; font-size: .88rem; line-height: 1.5; color: var(--pl-text-soft); min-width: 260px; max-width: 420px; }
.sg-mx details .sg-src { display: block; margin-top: .35rem; }
.sg-mx.is-simple .sg-col-d { display: none; }
.sg-mx-empty { text-align: center; color: var(--pl-text-soft); padding: 1.2rem; font-style: italic; }

/* ---- Federal and state rules, explained ---- */
.sg-explain { max-width: 820px; margin: 1.6rem auto 0; }
.sg-explain details { border: 1px solid var(--pl-border); border-radius: 12px; background: var(--pl-surface); margin-bottom: .6rem; }
.sg-explain summary { cursor: pointer; padding: .95rem 1.1rem; font-weight: 700; color: var(--pl-text); }
.sg-explain .sg-explain-body { padding: 0 1.1rem 1rem; font-size: .96rem; line-height: 1.65; color: var(--pl-text); }
.sg-explain ul { margin: .4rem 0 .6rem; padding-left: 1.2rem; }
.sg-explain li { margin: .2rem 0; }
.sg-explain a { color: var(--pl-primary); }

#results, #checklist, #track, #compare, #who-sets { scroll-margin-top: 96px; }

/* ---- Printed checklist (#rqPrint, filled on demand). Printing from the
     button hides the rest of the page via html.rq-printing; Ctrl+P on its
     own prints the page. ---- */
#rqPrint { display: none; }
@media print {
  @page { size: letter portrait; margin: .5in; }
  html.rq-printing body > *:not(#rqPrint) { display: none !important; }
  html.rq-printing #rqPrint { display: block; }
  html.rq-printing body { background: #fff !important; }
}
.rqp { font-family: var(--pl-font); color: #2E2028; font-size: 10pt; line-height: 1.35; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rqp-kicker { font-size: 9pt; font-weight: 700; color: #7A3158; margin: 0; }
.rqp .rqp-title { font-family: var(--pl-display); font-size: 19pt; font-weight: 700; line-height: 1.2; margin: .1rem 0 .2rem; }
.rqp-role { font-size: 9.5pt; color: #4a3f45; margin: 0 0 .5rem; }
.rqp-fields { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: .4rem 1.2rem; margin: 0 0 .8rem; }
.rqp-fields div { border-bottom: 1px solid #6E646A; padding-top: 1.1rem; font-size: 8.5pt; color: #5c5258; }
.rqp table { width: 100%; border-collapse: collapse; margin-top: .3rem; }
.rqp th { text-align: left; font-size: 8pt; text-transform: uppercase; letter-spacing: .04em; color: #5c5258; border-bottom: 1.5px solid #7A3158; padding: .25rem .3rem; }
.rqp td { border-bottom: 1px solid #ECE2E7; padding: .32rem .3rem; vertical-align: top; break-inside: avoid; }
.rqp td.rqp-blank { width: .9in; }
.rqp td.rqp-done { width: .55in; }
.rqp-cite { display: block; color: #5c5258; font-size: 8pt; }
.rqp h2 { font-family: var(--pl-display); font-size: 11.5pt; font-weight: 700; margin: .8rem 0 .1rem; }
.rqp-note { font-size: 8.8pt; color: #4a3f45; margin: .4rem 0 0; }
.rqp-foot { margin-top: .9rem; font-size: 8pt; color: #5c5258; border-top: 1px solid #ECE2E7; padding-top: .45rem; }
