/* Isolated preview styles. Shared location styles remain the source of the theme. */
#offices { --preview-gold: #876019; }
#offices [hidden],
.elections-section [hidden] { display: none !important; }
#offices .section-kicker { color: var(--preview-gold); }
.offices-preview-note { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin:0 0 28px; padding:12px 16px; border:1px solid var(--area-line); background:#fff; font-size:14px; }
.offices-preview-note span { color:var(--area-muted); }
.offices-preview-note a { color:var(--area-teal); text-decoration:underline; text-underline-offset:3px; }
#offices > .section-heading { margin-bottom:24px; }
#offices > .section-heading > p { font-size:16px; line-height:1.55; }
.offices-mayor { display:grid; grid-template-columns:76px minmax(180px,1fr) minmax(200px,1.25fr) auto; align-items:center; gap:24px; padding:22px 24px; border:1px solid var(--area-line); border-top:4px solid var(--preview-gold); background:#fff; }
.offices-mayor-photo { width:76px; height:76px; border-radius:50%; object-fit:cover; object-position:center 20%; border:1px solid var(--area-line); }
.offices-mayor .section-kicker { margin-bottom:6px; font-size:12px; letter-spacing:.06em; }
.offices-mayor h3 { margin:0 0 5px; font-family:Georgia,serif; font-size:25px; font-weight:500; line-height:1.15; }
.offices-mayor small { display:block; color:var(--area-muted); font-size:13px; }
.offices-mayor > p { margin:0; color:var(--area-muted); font-size:14px; line-height:1.55; }
.offices-mayor-link { padding:12px 16px; border:1px solid var(--area-line); font-size:14px; font-weight:700; color:var(--area-navy); white-space:nowrap; }
.offices-mayor-link:hover { background:var(--area-paper); }
.offices-wards-toolbar { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:20px; margin:32px 0 16px; }
.offices-wards-toolbar h3 { margin:0 0 5px; font:500 28px/1.2 Georgia,serif; }
.offices-wards-toolbar p { margin:0; font-size:14px; color:var(--area-muted); }
.offices-view-tabs { display:flex; gap:4px; padding:4px; border:1px solid var(--area-line); background:#fff; }
.offices-view-tabs button { min-width:96px; min-height:44px; display:flex; align-items:center; justify-content:center; gap:9px; padding:10px 18px; border:0; background:transparent; color:var(--area-ink); cursor:pointer; font-size:14px; font-weight:750; }
.offices-view-tabs button[aria-selected="true"] { color:#fff; background:var(--area-navy); }
.offices-view-tabs svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; }
#offices :is(a,button,select,[role=tabpanel]):focus-visible { outline:3px solid var(--area-teal); outline-offset:4px; }
.offices-list { border:1px solid var(--area-line); background:#fff; }
.offices-list-row { display:grid; grid-template-columns:84px minmax(210px,.9fr) minmax(200px,1.6fr) 28px; gap:20px; align-items:center; padding:15px 20px; min-height:102px; border-bottom:1px solid var(--area-line); transition:background .15s; }
.offices-list-row:last-child { border-bottom:0; }
.offices-list-row:hover { background:#f0f6f4; }
.offices-list-map { width:84px; height:72px; object-fit:contain; background:#edf2f3; }
.offices-list-person { display:grid; grid-template-columns:46px 1fr; align-items:center; column-gap:12px; }
.offices-list-person img { width:46px; height:46px; object-fit:cover; object-position:center 20%; border-radius:50%; border:1px solid var(--area-line); }
.offices-list-person h4 { margin:0 0 5px; font:500 22px/1.15 Georgia,serif; }
.offices-list-person strong { display:block; font-size:14px; font-weight:650; }
.offices-list-person small { display:block; margin-top:3px; font-size:12px; color:var(--area-muted); }
.offices-list-description { margin:0; font-size:14px; line-height:1.5; color:var(--area-muted); }
.offices-list-arrow { font-size:22px; color:var(--area-teal); }
#offices .offices-map-explorer { margin:0; padding:0; max-width:none; background:none; }
#offices .ward-explorer-toolbar { max-width:none; margin:0 0 18px; padding:16px 20px; background:#fff; }
#offices .ward-explorer-toolbar label { font-size:14px; }
#offices .ward-explorer-toolbar select { min-height:44px; font-size:16px; }
#offices .ward-explorer-toolbar .place-picker-open { font-size:14px; }
#offices .ward-explorer-toolbar > p { font-size:13px; }
#offices .ward-explorer-layout { grid-template-columns:minmax(0,1fr) 310px; gap:20px; }
#offices .ward-preview-card { position:static; height:auto; grid-template-rows:6px 48px 104px auto auto 48px; overflow:visible; margin:0; }
#offices .ward-preview-copy { padding:18px; }
#offices .ward-preview-copy h3 { font-size:28px; }
#offices .ward-preview-copy > p:not(.place-preview-kicker) { font-size:14px; line-height:1.5; }
#offices .ward-preview-officeholder strong { font-size:16px; }
#offices .ward-preview-officeholder small { font-size:12px; }
#offices .place-preview-facts { height:auto; grid-template-rows:repeat(2,minmax(66px,auto)); }
#offices .place-preview-facts dt { font-size:11px; }
#offices .place-preview-facts dd { font-size:13px; }
#offices .place-preview-link { font-size:14px; }
#offices .ward-mini-map { height:104px; }
.offices-more { margin:20px 0 0; text-align:right; font-size:14px; }
.offices-more a { color:var(--area-teal); text-decoration:underline; text-underline-offset:3px; }
@media(max-width:900px) {
 .offices-mayor { grid-template-columns:64px 1fr auto; gap:16px; }
 .offices-mayor-photo { width:64px; height:64px; }
 .offices-mayor > p { grid-column:2 / -1; grid-row:2; }
 .offices-list-row { grid-template-columns:68px minmax(170px,.9fr) 1.1fr 22px; gap:14px; padding:14px; }
 .offices-list-map { width:68px; height:68px; }
 #offices .ward-explorer-layout { grid-template-columns:minmax(0,1fr); }
 #offices .ward-preview-card { width:100%; max-width:none; }
}
@media(max-width:600px) {
 .offices-preview-note { font-size:13px; margin-bottom:22px; }
 .offices-mayor { grid-template-columns:56px minmax(0,1fr); padding:18px; gap:14px; }
 .offices-mayor-photo { width:56px; height:56px; }
 .offices-mayor h3 { font-size:23px; }
 .offices-mayor > p { grid-column:1 / -1; grid-row:auto; }
 .offices-mayor-link { grid-column:1 / -1; text-align:center; }
 .offices-wards-toolbar { margin-top:26px; gap:14px; }
 .offices-wards-toolbar h3 { font-size:26px; }
 .offices-view-tabs { width:100%; }
 .offices-view-tabs button { flex:1; }
 .offices-list-row { grid-template-columns:60px minmax(0,1fr) 20px; gap:12px; padding:16px 12px; }
 .offices-list-map { width:60px; height:60px; }
 .offices-list-person { grid-template-columns:1fr; }
 .offices-list-person img { display:none; }
 .offices-list-description { grid-column:1 / -1; grid-row:2; }
 .offices-list-arrow { grid-column:3; grid-row:1; }
 #offices .ward-explorer-toolbar { padding:14px; }
 #offices .place-picker-control { display:flex; flex-direction:column; align-items:stretch; gap:10px; }
 #offices .place-picker-open { justify-content:center; }
 .offices-more { text-align:left; line-height:1.5; }
}
@media(prefers-reduced-motion:reduce) { .offices-list-row { transition:none; } }
