/* Slice builder (#explore on the state page). Tokens come from styles.css. */
.ex { padding: 4px 0 24px; }
.ex h2 { margin: 0 0 8px; }
.ex-lede { margin: 0 0 20px; max-width: 70ch; color: var(--ink-soft); }
.ex-form { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 22px; }
.ex-form #ex-opts { display: flex; flex-direction: column; gap: 22px; }
.ex fieldset.ex-sect { border-top: 1px solid var(--line-soft); padding-top: 16px; }
.ex-sect > legend { float: left; width: 100%; margin-bottom: 12px; font-size: 13px; color: var(--navy); }
.ex-sect > legend + * { clear: both; }
.ex-phone { display: none; margin: 0; padding: 14px 0; max-width: 60ch; line-height: 1.5; }
.ex-phone a { color: var(--teal); font-weight: 600; }
.ex-loading { margin: 0; padding: 18px 0; color: var(--ink-soft); font-size: 14.5px; }
.ex fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ex legend { padding: 0; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.ex-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; position: relative; }
.ex-field label { font-size: 13px; font-weight: 600; color: var(--navy); }
.ex-lab { display: flex; align-items: center; }
.ex-lab .sp-info { background: none; border: 0; padding: 0; margin-left: 6px; }
.ex-locked select { opacity: .55; cursor: not-allowed; }
.ex-field .ex-pop { left: 0; right: auto; max-width: min(280px, 80vw); }
.ex select, .ex input[type="text"], .ex input[type="number"] { font: inherit; font-size: 14.5px; min-height: 40px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); width: 100%; box-sizing: border-box; }
.ex select:disabled { opacity: .55; cursor: not-allowed; }
.ex select:focus-visible, .ex input:focus-visible, .ex button:focus-visible, .ex a:focus-visible, .ex .ex-wrap:focus-visible, .ex .sp-info:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.ex-hint { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--ink-soft); }
.ex-span { grid-column: 1 / -1; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px 16px; align-items: start; }
.ex-seg { display: flex; flex-wrap: wrap; gap: 0; }
.ex-seg legend { width: 100%; margin-bottom: 8px; }
.ex-combo { margin-top: 14px; }
.ex-seg label { position: relative; }
.ex-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ex-seg span { display: block; padding: 9px 16px; min-height: 40px; box-sizing: border-box; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); font-size: 14.5px; }
.ex-seg label:first-child span { border-radius: 10px 0 0 10px; }
.ex-seg label:last-child span { border-radius: 0 10px 10px 0; border-left: 0; }
.ex-seg input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }
.ex-seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 1px; }
.ex-combo { max-width: 560px; }
.ex-list { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; margin: 2px 0 0; padding: 4px 0; list-style: none; max-height: 320px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 22px rgba(18, 48, 74, .16); }
.ex-list[hidden] { display: none; }
.ex-grp { padding: 8px 12px 3px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.ex-none { padding: 10px 12px; font-size: 14px; color: var(--ink-soft); }
.ex-list [role="option"] { padding: 8px 12px; font-size: 14.5px; cursor: pointer; color: var(--ink); }
.ex-list [role="option"]:hover, .ex-list .ex-active { background: var(--teal-soft); }
.ex-list [aria-selected="true"] { font-weight: 600; color: var(--navy); }
.ex-checks { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ex-checks label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; min-height: 32px; cursor: pointer; }
.ex-checks input { width: 18px; height: 18px; accent-color: var(--teal); }
.ex-years { grid-column: 1 / -1; }
.ex-filters { display: flex; flex-direction: column; gap: 16px; }
.ex fieldset.ex-bands { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line-soft); border-radius: 10px; padding: 14px 16px; background: var(--teal-mist); }
.ex-bands > legend { float: none; width: auto; padding: 0 6px; margin: 0; }
.ex-bandslot + .ex-bandslot { border-top: 1px solid var(--line-soft); padding-top: 12px; }
.ex-bandslot { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 6px 16px; align-items: end; }
.ex-actions { display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--line-soft); padding-top: 16px; }
.ex-actions .ex-status { margin: 0; }
.ex-run, .ex-csv { font: inherit; font-size: 14.5px; font-weight: 600; min-height: 42px; padding: 8px 22px; border-radius: 10px; border: 1px solid var(--teal); background: var(--teal); color: #fff; cursor: pointer; }
.ex-run:disabled { opacity: .6; cursor: progress; }
.ex-csv { background: #fff; color: var(--teal); padding: 6px 16px; min-height: 38px; }
.ex-status { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--ink-soft); }
.ex-result { margin-top: 28px; }
.ex-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0 0 10px; }
.ex-count { margin: 0; font-size: 15px; font-weight: 600; color: var(--navy); }
.ex-links { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.ex-links a { color: var(--teal); font-weight: 600; text-decoration: none; }
.ex-links a:hover { text-decoration: underline; }
.ex-wrap { max-height: 70vh; overflow: auto; border: 1px solid var(--line-soft); border-radius: 10px; }
.ex-wrap:has(.ex-narrow) { max-width: 640px; }
.ex-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.ex-table caption { text-align: left; padding: 8px 12px; font-size: 13px; color: var(--ink-soft); caption-side: top; }
.ex-table th, .ex-table td { padding: 8px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; white-space: nowrap; background: #fff; }
.ex-table thead th { position: sticky; top: 0; z-index: 2; background: var(--teal-mist); color: var(--navy); font-weight: 600; font-size: 13px; vertical-align: bottom; }
.ex-table th.ex-num, .ex-table td.ex-num { text-align: right; }
.ex-table tbody th { font-weight: 600; color: var(--navy); }
.ex-sort { font: inherit; font-weight: inherit; color: inherit; background: none; border: 0; padding: 4px 0; cursor: pointer; text-align: inherit; }
.ex-sort::after { content: ""; display: inline-block; margin-left: 5px; border: 4px solid transparent; border-top-color: var(--line); vertical-align: middle; }
th[aria-sort="ascending"] .ex-sort::after { border-top-color: transparent; border-bottom-color: var(--teal); margin-top: -4px; }
th[aria-sort="descending"] .ex-sort::after { border-top-color: var(--teal); }
.ex-supp { color: var(--muted); font-size: 13px; }
.ex-det { width: 1%; text-align: center; }
.ex-table .sp-info { margin: 0; }
.ex-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ex-note { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); max-width: 80ch; }
.ex-fail { background: var(--warm-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; max-width: 70ch; }
.ex-fail h3 { margin: 0 0 4px; font-size: 16px; color: var(--navy); }
.ex-fail p { margin: 0 0 8px; }
.ex-result[aria-busy="true"] { opacity: .75; }
@media (min-width: 761px) {
  .ex-table .ex-first { position: sticky; left: 0; z-index: 1; }
  .ex-table thead .ex-first { z-index: 3; }
}
.ex-info { background: none; border: 0; cursor: pointer; color: inherit; }
.ex-det { position: relative; }
.ex-pop { position: absolute; right: 8px; top: 100%; z-index: 4; width: max-content; max-width: min(320px, 70vw); white-space: normal; text-align: left; font-size: 13px; line-height: 1.4; padding: 8px 10px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(18, 48, 74, .16); }
.ex-pop[hidden] { display: none; }
@media (pointer: coarse) {
  .ex select, .ex input[type="text"], .ex input[type="number"] { min-height: 44px; }
  .ex-seg span { min-height: 44px; display: flex; align-items: center; }
  .ex-checks label { min-height: 44px; }
  .ex-checks input { width: 24px; height: 24px; }
  .ex-run, .ex-csv { min-height: 44px; }
  .ex-sort { min-height: 44px; padding: 0; }
  .ex-list [role="option"] { min-height: 44px; display: flex; align-items: center; }
  .ex-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .ex-table .sp-info { width: 44px; height: 44px; padding: 14px; box-sizing: border-box; }
}
@media (max-width: 760px) {
  .ex-phone { display: block; }
  .ex-desk { display: none; }
}
