@layer page {
.pg-polling-places .polls-hero { background: var(--yellow); border-bottom: 2px solid var(--ink); padding-block: var(--s6) var(--s7); }
.pg-polling-places .polls-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s7); }
.pg-polling-places .polls-back { display: inline-flex; align-items: center; gap: var(--s1); min-height: 44px; margin-left: -6px; font: 500 1rem/1.3 var(--font-label); text-underline-offset: .2em; }
.pg-polling-places .polls-back .ui-glyph { width: 20px; height: 20px; flex: none; }
.pg-polling-places .polls-hero h1 { margin-top: var(--s3); font-size: clamp(3rem, 6.2vw, 5.5rem); }
.pg-polling-places .polls-election { margin-top: var(--s4); font: 700 clamp(1.4rem, 2.2vw, 1.9rem)/1.2 var(--font-action); text-transform: uppercase; }
.pg-polling-places .polls-hero-symbol { flex: none; display: grid; place-items: center; width: clamp(120px, 13vw, 176px); aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 50%; background: var(--surface); }
.pg-polling-places .polls-hero-symbol svg { width: 72%; height: auto; }
.pg-polling-places .polls-toolbar { position: sticky; top: var(--header-bar); z-index: 5; display: flex; align-items: center; min-height: 64px; padding: 8px var(--gutter); background: var(--orange); border-bottom: 2px solid var(--ink); }
.pg-polling-places .polls-mode { display: flex; border: 2px solid var(--ink); border-radius: var(--r-pill); padding: 3px; background: var(--yellow); }
.pg-polling-places .polls-mode button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 22px; border: 0; border-radius: var(--r-pill); background: transparent; white-space: nowrap; font: 600 1.1875rem/1.3 var(--font-action); }
.pg-polling-places .polls-mode svg { flex: none; width: 20px; height: 20px; }
.pg-polling-places .polls-mode button[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
.pg-polling-places .polls-mode button:hover:not([aria-pressed="true"]) { background: var(--surface); }
.pg-polling-places .polls-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(400px, 1fr); align-items: start; }
.pg-polling-places .polls-map-panel { position: sticky; top: calc(var(--header-bar) + 64px); height: calc(100svh - var(--header-bar) - 64px); min-height: 520px; overflow: hidden; background: var(--ink); color: var(--paper); }
.pg-polling-places .polls-map { position: absolute; inset: 0; }
.pg-polling-places .polls-map-status { position: absolute; top: 20px; left: 20px; right: 20px; width: fit-content; max-width: calc(100% - 40px); padding: 12px 16px; border: 1px solid var(--yellow); border-radius: var(--r-sm); background: var(--ink); font-size: .875rem; }
.pg-polling-places .polls-map-retry { min-height: 44px; padding: 8px 0 0; border: 0; background: none; color: var(--yellow); text-decoration: underline; text-underline-offset: 4px; font: 700 1.125rem/1.3 var(--font-action); }
.pg-polling-places .polls-results { min-width: 0; padding: 28px clamp(24px, 3.6vw, 56px) 56px; background: var(--canvas); }
.pg-polling-places .poll-directions { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; border: 0; background: none; font: 700 1.0625rem/1.3 var(--font-action); text-decoration: underline; text-underline-offset: 4px; }
.pg-polling-places .poll-directions:hover { color: var(--teal); }
.pg-polling-places .poll-show-map { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; border: 0; background: none; font: 500 1rem/1.3 var(--font-label); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.pg-polling-places .poll-show-map:hover { text-decoration-thickness: 2px; }
.pg-polling-places .poll-show-map[aria-pressed="true"] { font-weight: 700; text-decoration-thickness: 3px; }
.pg-polling-places .poll-actions:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s4); }
.pg-polling-places .polls-list { margin-top: var(--s6); }
.pg-polling-places .polls-list-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s4); padding-bottom: var(--s3); border-bottom: 2px solid var(--ink); }
.pg-polling-places .polls-list-heading h2 { font: 600 clamp(2rem, 3vw, 2.75rem)/1.1 var(--font-editorial); }
.pg-polling-places .polls-list-heading p { font: 500 .9375rem/1.4 var(--font-label); }
.pg-polling-places .polls-list-intro { margin-top: var(--s3); max-width: var(--measure); }
.pg-polling-places .polls-group { margin-top: var(--s5); }
.pg-polling-places .polls-group-heading { font: 700 1.5rem/1.2 var(--font-action); }
.pg-polling-places .polls-group.is-yours > .polls-group-heading::after { content: "Your county"; display: inline-block; margin-left: var(--s3); padding: 2px 10px; border-radius: var(--r-pill); background: var(--ink); color: var(--yellow); vertical-align: .2em; font: 600 .8125rem/1.4 var(--font-action); text-transform: uppercase; letter-spacing: .04em; }
.pg-polling-places .polls-group-intro { margin-top: var(--s2); max-width: var(--measure); font-size: 1rem; }
.pg-polling-places .polls-cards { list-style: none; margin: var(--s3) 0 0; padding: 0; }
.pg-polling-places .polls-others { min-height: 48px; margin-top: var(--s4); padding: 8px 22px; border: 2px solid var(--ink); border-radius: var(--r-pill); background: var(--surface); font: 700 1.125rem/1.3 var(--font-action); }
.pg-polling-places .polls-others:hover, .pg-polling-places .poll-card:hover:not(.is-selected) { background: var(--surface); }
.pg-polling-places .poll-card { border-top: 1px solid var(--ink); padding-inline: var(--s3); margin-inline: calc(-1 * var(--s3)); cursor: pointer; scroll-margin-top: calc(var(--header-bar) + 88px); transition: background-color var(--d-hover) var(--ease-out); }
.pg-polling-places .poll-card article { padding-block: 12px 10px; }
.pg-polling-places .poll-top, .pg-polling-places .poll-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px var(--s3); }
.pg-polling-places .poll-foot { margin-top: 2px; }
.pg-polling-places .poll-status { display: inline-flex; align-items: center; gap: 8px; font: 600 .875rem/1.3 var(--font-action); text-transform: uppercase; letter-spacing: .02em; }
.pg-polling-places .poll-card[data-state] .poll-status::before { content: ""; flex: none; width: 10px; height: 10px; border: 2px solid var(--ink); border-radius: 50%; }
.pg-polling-places .poll-card[data-state="open"] .poll-status { color: var(--green); }
.pg-polling-places .poll-card[data-state="open"] .poll-status::before { background: var(--green); border-color: var(--green); }
.pg-polling-places .poll-card[data-state="closing"] .poll-status::before { background: var(--orange); border-color: var(--orange); }
.pg-polling-places .poll-distance { flex: none; font: 500 .875rem/1.4 var(--font-label); color: var(--teal); }
.pg-polling-places .poll-card h4 { margin-top: 4px; font: 700 1.375rem/1.18 var(--font-action); overflow-wrap: anywhere; }
.pg-polling-places .poll-address { margin-top: 2px; font-weight: 700; font-size: .9375rem; }
.pg-polling-places .poll-room, .pg-polling-places .poll-phone, .pg-polling-places .poll-note { margin-top: 2px; font-size: .9375rem; }
.pg-polling-places .poll-more summary { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; cursor: pointer; list-style: none; font: 500 .9375rem/1.3 var(--font-label); }
.pg-polling-places .poll-more summary::-webkit-details-marker { display: none; }
.pg-polling-places .poll-more summary .ui-glyph { width: 18px; height: 18px; transition: transform var(--d-quick) var(--ease-out); }
.pg-polling-places .poll-more[open] summary .ui-glyph { transform: rotate(180deg); }
.pg-polling-places .poll-more > div { padding-bottom: var(--s2); }
.pg-polling-places .poll-hours > div { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s3); padding-block: 6px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.pg-polling-places .poll-hours dt { font-weight: 700; }
.pg-polling-places .poll-hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.pg-polling-places .poll-more .poll-note { margin-top: var(--s3); }
.pg-polling-places .poll-card.is-selected { background: var(--yellow); box-shadow: 0 0 0 4px var(--yellow); }
.pg-polling-places .vote-card[data-vote-bound] { cursor: pointer; }
.pg-polling-places .vote-card.is-selected { outline: 3px solid var(--ink); outline-offset: 4px; }
.pg-polling-places .polls-link { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; font: 500 1rem/1.3 var(--font-label); text-decoration-thickness: 1px; text-underline-offset: .22em; }
.pg-polling-places .polls-link .ui-glyph { flex: none; width: 17px; height: 17px; }
.pg-polling-places .polls-link:hover { color: var(--teal); text-decoration-thickness: 2px; }
.pg-polling-places .polls-actions { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); margin-top: var(--s3); }
.pg-polling-places .polls-before { padding-block: var(--s7) var(--s8); border-top: 2px solid var(--ink); background: var(--canvas); }
.pg-polling-places .polls-before-heading { display: flex; align-items: center; gap: var(--s3); }
.pg-polling-places .polls-before h2 { font: 600 clamp(1.8rem, 2.5vw, 2.4rem)/1.2 var(--font-editorial); }
.pg-polling-places .polls-before .wrap > p { max-width: var(--measure); margin-top: var(--s4); }
.pg-polling-places .polls-before h3 { margin-top: var(--s6); font: 500 1.375rem/1.2 var(--font-label); }
.pg-polling-places .polls-authority { padding-block: var(--s3); border-top: 1px solid var(--line); }
.pg-polling-places .polls-authority dt { font: 500 .875rem/1.4 var(--font-label); }
.pg-polling-places .polls-authority dd { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s4); margin: var(--s1) 0 0; }
.pg-polling-places .polls-sources { margin-top: var(--s6); font-size: var(--t-small); }
@media (scripting: enabled) {
.pg-polling-places .polls[data-mode="early"] [data-polls-list="election-day"],
.pg-polling-places .polls[data-mode="election-day"] [data-polls-list="early"] { display: none; }
}
@media (scripting: none) {
.pg-polling-places [data-polls-controls] { display: none; }
.pg-polling-places .polls-layout { display: block; }
.pg-polling-places .polls-results { max-width: 960px; margin-inline: auto; }
}
@media (max-width: 1000px) {
.pg-polling-places .polls-layout { grid-template-columns: minmax(0, 1fr) minmax(360px, 1.1fr); }
.pg-polling-places .polls-results { padding-inline: 24px; }
}
@media (max-width: 767px) {
.pg-polling-places .polls-hero { padding-block: 20px 32px; }
.pg-polling-places .polls-hero-inner { display: block; position: relative; }
.pg-polling-places .polls-hero h1 { padding-right: 56px; font-size: clamp(2.75rem, 12vw, 3.5rem); }
.pg-polling-places .polls-hero-symbol { position: absolute; top: 56px; right: var(--gutter); width: 48px; }
.pg-polling-places .polls-election { font-size: 1.1875rem; }
.pg-polling-places .polls-mode { width: 100%; }
.pg-polling-places .polls-mode button { flex: 1; justify-content: center; padding-inline: 10px; font-size: 1.125rem; }
.pg-polling-places .polls-body { display: flex; flex-direction: column; }
.pg-polling-places .polls-layout, .pg-polling-places .polls-results { display: contents; }
.pg-polling-places .polls-results > .vote-finder { order: 1; margin: 24px var(--gutter); }
.pg-polling-places .polls-toolbar { order: 2; }
.pg-polling-places .polls-map-panel { order: 3; }
.pg-polling-places .polls-results > .polls-list { order: 4; margin: var(--s6) var(--gutter) 48px; }
.pg-polling-places .polls-map-panel { position: relative; top: auto; height: clamp(240px, 34svh, 300px); min-height: 0; max-height: none; }
.pg-polling-places .polls-map-status { top: 12px; left: 12px; right: 12px; max-width: calc(100% - 24px); padding: 10px 12px; }
.pg-polling-places .polls-group.is-yours > .polls-group-heading::after { display: table; margin: var(--s2) 0 0; }
.pg-polling-places .poll-hours > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (max-width: 380px) { .pg-polling-places .polls-mode button { gap: 5px; font-size: 1.0625rem; } }
@media (prefers-reduced-motion: reduce) {
.pg-polling-places .poll-card, .pg-polling-places .poll-more summary .ui-glyph { transition: none; }
}
@media (forced-colors: active) {
.pg-polling-places .polls-map-panel, .pg-polling-places .polls-mode button[aria-pressed="true"] { border: 2px solid CanvasText; }
.pg-polling-places .vote-card.is-selected { outline: 3px solid Highlight; }
.pg-polling-places .poll-card.is-selected { outline: 2px solid Highlight; box-shadow: none; }
}
}
