/* Utah Legislature pages (/utah/legislature, /utah/legislature/<year>/<bill>), built by scripts/legislature.mjs.
   Yellow means one thing, as on every card: this decision reaches here. State law reaches all of Utah. */
:root {
  --reach: #ffc81a; --reach-case: #2b2410; --reach-solid: #fbedc0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --reach: #ffd23a; --reach-case: #000000; --reach-solid: #3a3215; }
}
:root[data-theme="dark"] { --reach: #ffd23a; --reach-case: #000000; --reach-solid: #3a3215; }

.lmap { max-width: 240px; }
@media (max-width: 860px) { .lmap { max-width: 180px; } }
.lmap .l-case { fill: none; stroke: var(--reach-case); stroke-width: 7; stroke-linejoin: round; }
.lmap .l-line { fill: none; stroke: var(--reach); stroke-width: 4.4; stroke-linejoin: round; }
.lmap .l-fill { fill: var(--reach-solid); stroke: none; }
.lmap .l-county { fill: none; stroke: color-mix(in srgb, var(--ink) 22%, transparent); stroke-width: .6; stroke-linejoin: round; }
.k-reach { width: 18px; height: 12px; background: var(--reach-solid); border: 2px solid var(--reach); box-shadow: 0 0 0 1px var(--reach-case); }

.lcount { display: block; margin-top: 10px; font: 600 16px var(--head); color: var(--ink); }
.ltags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ltag { font: 700 12.5px var(--head); letter-spacing: .04em; text-transform: uppercase; padding: 4px 8px 3px; border: 1.5px solid var(--ink-2); border-radius: 4px; color: var(--ink-2); background: var(--sheet); }
.ltag.t-contested { border-color: var(--ink); color: var(--ink); }
.ltag.unrev { border-style: dashed; }

/* the step track, like the stage timeline on decision cards: filled = done, ringed = next */
.ltrack { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 0; border-top: 3px solid var(--line); }
.ltrack li { position: relative; padding: 16px 8px 0 0; display: flex; flex-direction: column; gap: 2px; font-family: var(--head); }
.ltrack li::before { content: ""; position: absolute; top: -9px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--sheet); border: 2px solid var(--line); }
.ltrack li.done::before { background: var(--ink); border-color: var(--ink); }
.ltrack li.skip::before { background: var(--line); border-color: var(--line); }
.ltrack li.now::before { border-color: var(--ink); border-width: 3px; }
.ltrack b { font-size: 15px; }
.ltrack span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 520px) { .ltrack { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 3px solid var(--line); padding-left: 14px; gap: 10px; } .ltrack li { padding: 0; } .ltrack li::before { top: 3px; left: -23px; } }

.lprov { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 17px; }
.lfn { border-collapse: collapse; font: 600 15px var(--head); }
.lfn caption { text-align: left; font-weight: 700; color: var(--ink-3); padding-bottom: 6px; text-transform: uppercase; font-size: 12.5px; letter-spacing: .04em; }
.lfn th, .lfn td { padding: 6px 14px 6px 0; text-align: right; border-bottom: 1px solid var(--line-2); }
.lfn th[scope="row"] { text-align: left; }
.lvotes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lvotes li { display: flex; flex-direction: column; gap: 1px; }
.lvotes b { font: 700 16px var(--head); }
.lvotes span { color: var(--ink-2); font-size: 15.5px; }
.lroutine summary { cursor: pointer; font: 700 16px var(--head); padding-block: 6px; }
.lsponsors { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
