:root { --ink: #172b38; --accent: #087c91; --paper: #f4f7f8; }
.recruitment-alert { background: #e0f4f6; border: 1px solid #93ccd4; color: var(--ink); }
.ward-top-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: center; }
.ward-top-context { display: grid; gap: 12px; }
.ward-top-context .eyebrow, .ward-top-row .recruitment-alert { margin-bottom: 0; }
@media(min-width: 992px) { .ward-top-row { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 24px; } }
.recruitment-open { display: inline; background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-align: left; font: inherit; }
.enquiry-detail { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; }
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.news-layout .news-article { width: 100%; margin: 0; min-width: 0; }
.news-sidebar { display: grid; gap: 24px; min-width: 0; }
.news-sidebar .manifesto-card { padding: 20px; }
.news-sidebar .manifesto-card h2 { font-size: 1.3rem; }
.related-activity { background: white; border: 1px solid #dce5eb; border-radius: 12px; padding: 20px; min-width: 0; }
.related-activity h2 { font-size: 1.1rem; line-height: 1.4; }
.planning-text { white-space: pre-wrap; overflow-wrap: anywhere; }
#related-list { display: grid; gap: 10px; }
.related-item { display: block; padding: 12px; border: 1px solid #e2e9ed; border-radius: 8px; background: white; text-decoration: none; color: var(--ink); overflow-wrap: anywhere; transition: background-color .15s, border-color .15s; }
.related-item:hover, .related-item:focus-visible { background: #edf7f8; border-color: #91b8c2; color: var(--ink); }
.related-item h3 { font-size: .95rem; line-height: 1.3; margin: 0 0 2px; }
.related-item time { display: block; color: #61727c; font-size: .75rem; line-height: 1.3; margin: 0; }
@media(min-width: 992px) { .news-layout { grid-template-columns: minmax(0, 1fr) 280px; } }
.news-breadcrumb { margin: 0 0 20px; font-size: .8rem; color: #61727c; }
.news-breadcrumb a, .news-edition a, .news-end a:not(.btn) { color: var(--accent); }
.news-article { max-width: 1000px; margin: auto; padding: clamp(20px, 4vw, 48px); padding-top: clamp(10px, 2vw, 24px); background: #fff; border-top: 4px solid #172b38; overflow-wrap: anywhere; }
.news-edition { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid #b8c5cd; font-size: .8rem; }
.news-edition a { font-weight: 700; text-decoration: none; }
.news-heading { padding: 15px 0 20px; }
.news-heading h1 { font-family: inherit; font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1.12; letter-spacing: -.035em; }
.news-byline { margin: 20px 0 0; font-size: .8rem; color: #61727c; }
.news-photo { margin: 0 0 32px; }
.news-photo img { display: block; width: 100%; max-height: 680px; object-fit: contain; background: #f4f7f8; }
.news-photo figcaption { padding-top: 8px; font-size: .8rem; color: #61727c; }
.news-body { max-width: 680px; margin: 0 auto; font-family: inherit; font-size: 1.15rem; line-height: 1.8; }
.news-body h2, .news-body h3 { margin-top: 1.5em; line-height: 1.3; }
.news-body h2 { font-size: 1.65rem; }
.news-summary { font-weight: 700; font-size: 1.2em; }
.news-body h3 { font-size: 1.35rem; }
.news-body blockquote { border-left: 3px solid var(--accent); padding-left: 20px; font-style: italic; }
.news-end { max-width: 680px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid #dce5eb; font-size: .85rem; }
body { background: var(--paper); color: var(--ink); font-family: Inter, system-ui, sans-serif; }
main#main { padding-top: 1.5rem !important; }
.auth-panel { max-width: 540px; margin: 30px auto; padding: clamp(24px, 4vw, 40px); background: white; border: 1px solid #dce5eb; border-radius: 14px; }
.auth-panel h1 { font-size: 2.2rem; letter-spacing: -1px; }
.legal-page { max-width: 850px; margin: 20px auto; line-height: 1.8; }
.legal-page h1 { font-size: 2.5rem; letter-spacing: -1px; }
.legal-page h2 { font-size: 1.25rem; margin-top: 28px; }
.form-check-label { font-size: .9rem; }
.auth-panel [role="alert"] { color: #a32727; margin-bottom: 16px; }
.site-header { background: #fff; border-bottom: 1px solid #dfe7eb; }
.site-header > .container { display: grid !important; grid-template-columns: 1fr auto 1fr; }
.site-header .brand { justify-self: start; }
.site-header nav { justify-self: end; text-align: right; }
.polls-countdown { text-align: center; color: var(--ink); }
.polls-countdown-heading { display: block; font-size: .72rem; font-weight: 750; letter-spacing: .04em; }
.polls-countdown-remaining { display: block; margin-top: 4px; font-size: .9rem; font-variant-numeric: tabular-nums; }
@media(max-width: 991px) {
  .site-header > .container { grid-template-columns: minmax(0, 1fr) auto; }
  .polls-countdown { grid-column: 1 / -1; grid-row: 2; }
  .site-header nav { grid-column: 2; grid-row: 1; }
}
.brand { display: inline-flex; align-items: center; max-width: 100%; text-decoration: none; }
.brand-logo { display: block; width: 237px; max-width: 100%; height: auto; }
.site-header .brand-logo { width: 189.6px; }
nav a { display: inline-block; color: var(--ink); padding: 10px 16px; text-decoration: none; border-radius: 6px; font-size: .9rem; background: #e8f4f6; }
nav a:hover { background: #d4edf1; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .72rem; font-weight: 750; color: var(--accent); margin-bottom: .5rem; }
h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); line-height: 1.1; font-weight: 650; letter-spacing: -2px; }
.directory-heading { padding: 0; max-width: 780px; }
.landing-introduction { display: grid; grid-template-columns: minmax(0, 1fr); }
@media(min-width: 992px) {
  .landing-introduction { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; column-gap: 40px; }
  .landing-introduction .postcode-search { margin-bottom: 0 !important; }
}
.intro { font-size: 1.08rem; color: #61727c; line-height: 1.7; max-width: 620px; }
.directory-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 15px; margin: 12px 0 16px; }
.directory-toolbar h2 { font-size: 1.35rem; margin: 0; }
.search-field { width: min(100%, 360px); }
.postcode-search { padding: 20px 24px; border: 1px solid #dce5eb; border-radius: 12px; background: white; }
.postcode-label { display: block; font-weight: 650; margin-bottom: 10px; }
.postcode-controls { display: flex; gap: 10px; max-width: 540px; }
.postcode-controls input { min-width: 0; text-transform: uppercase; }
.postcode-controls input::placeholder { text-transform: none; }
.postcode-button { background: var(--ink); color: white; white-space: nowrap; padding: 10px 20px; }
.postcode-button:hover, .postcode-button:disabled { background: var(--accent); color: white; }
.postcode-help, .postcode-status { font-size: .8rem; margin: 10px 0 0; color: #61727c; }
.postcode-status a { color: var(--accent); }
.form-control, .form-select { border-color: #cbd8df; padding: 11px 14px; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem #087c9120; }
.ward-card { display: grid; grid-template-columns: 28px 1fr 20px; gap: 10px; align-content: center; padding: 24px; height: 100%; min-height: 145px; background: white; border: 1px solid #dde6eb; border-radius: 12px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.ward-card:hover { border-color: var(--accent); box-shadow: 0 5px 18px #172b380a; }
.ward-number { color: var(--accent); font-size: .75rem; padding-top: 4px; }
.ward-card-name { font-size: 1.05rem; font-weight: 650; }
.ward-arrow { color: var(--accent); }
.ward-card-caption { grid-column: 2 / 4; font-size: .8rem; color: #73838d; }
.empty-state { padding: 35px 0; color: #61727c; }
.back-link { color: #61727c; text-decoration: none; font-size: .9rem; }
.back-link:hover { text-decoration: underline; }
.ward-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 25px; margin: 32px 0; }
.ward-heading>div:first-child { flex: 1 1 420px; }
.ward-heading h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -1.3px; }
.ward-heading .intro { margin: 15px 0 0; font-size: .95rem; }
.ward-switch { flex: 0 1 320px; min-width: 0; max-width: 100%; }
.form-label { font-size: .8rem; color: #61727c; }
.map-panel { background: white; border: 1px solid #dce5eb; border-radius: 14px; overflow: hidden; }
.map-activity-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.map-activity-layout>* { min-width: 0; }
.ward-content-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.ward-content-layout>* { min-width: 0; }
.ward-sidebar { display: grid; gap: 24px; }
.ward-activity-column { display: grid; gap: 24px; min-width: 0; }
.candidate-card { background: white; border: 1px solid #dce5eb; border-radius: 14px; padding: 20px; }
.candidate-card h2 { font-size: 1.15rem; margin: 0; }
.candidate-card table { font-size: .9rem; margin-top: 14px; }
.candidate-card td { vertical-align: middle; overflow-wrap: anywhere; }
.candidate-party-logo { width: 26px; height: 26px; object-fit: contain; margin-right: 8px; }
.people-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.people-profile, .people-directory { padding: clamp(20px, 3vw, 36px); background: white; border: 1px solid #dce5eb; border-radius: 14px; min-width: 0; overflow-wrap: anywhere; }
.person-description { margin-top: 24px; white-space: pre-wrap; line-height: 1.8; }
.people-directory ul { list-style: none; padding: 0; margin: 0; }
.people-directory li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid #e2e9ed; }
.people-directory li span { color: #61727c; font-size: .85rem; }
.people-profile a, .people-directory a, .ward-incumbents a, .candidate-card td a { color: var(--accent); }
@media(min-width: 992px) { .people-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.ward-information { padding: 20px; background: #fff; border: 1px solid #dce5eb; border-radius: 14px; }
.ward-information h2 { font-size: 1.15rem; margin-bottom: 16px; }
.ward-information h3 { font-size: .9rem; margin: 20px 0 12px; }
.ward-seat-stat { display: flex; gap: 14px; align-items: center; background: #edf5f7; padding: 12px 16px; border-radius: 9px; }
.ward-seat-stat > strong { font-size: 2rem; color: var(--accent); }
.ward-seat-stat small { display: block; font-size: .7rem; color: #61727c; }
.ward-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); gap: 10px; }
.ward-stat-grid .ward-seat-stat { display: block; padding: 12px; }
.ward-stat-grid .ward-seat-stat > strong { display: block; font-size: 1.5rem; }
.ward-stat-grid .ward-seat-stat > span { font-size: .8rem; }
.ward-incumbents { list-style: none; padding: 0; margin: 0; }
.ward-incumbents li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; padding: 12px; margin-top: 10px; border-left: 4px solid var(--party-colour); background: #f8fafb; border-radius: 5px; }
.ward-incumbents strong { font-size: .85rem; overflow-wrap: anywhere; }
.ward-party { grid-column: 1 / -1; color: var(--party-colour); font-size: .75rem; font-weight: 650; }
.ward-vote-share { font-size: .9rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.ward-vote-track { grid-column: 1 / -1; height: 5px; background: #e1e7ec; border-radius: 5px; overflow: hidden; margin-top: 4px; }
.ward-vote-track span { display: block; height: 100%; background: var(--party-colour); }
.ward-information-note { font-size: .7rem; line-height: 1.5; color: #61727c; margin: 14px 0 0; }
.ward-information-note a { color: var(--accent); }
.manifesto-card { background: #123b700a; color: var(--ink); border: 1px solid #123b70; border-radius: 14px; padding: 24px; overflow-wrap: anywhere; }
.manifesto-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.manifesto-card h2 { font-size: 1.6rem; font-weight: 650; line-height: 1.2; }
.manifesto-section { border-top: 1px solid #123b7026; padding-top: 20px; margin-top: 20px; }
.manifesto-section h3 { font-size: 1.1rem; font-weight: 700; color: #123b70; margin-bottom: 18px; }
.manifesto-section ol { padding-left: 24px; margin-bottom: 0; }
.manifesto-section li { padding-left: 5px; margin-bottom: 18px; }
.manifesto-section li::marker { color: var(--accent); font-weight: 700; }
.manifesto-section h4 { font-size: 1rem; font-weight: 650; line-height: 1.4; }
.manifesto-section li p { font-size: .88rem; line-height: 1.6; color: #526571; margin: 0; }
.manifesto-status { font-size: .85rem; }
.manifesto-status:empty { display: none; }
.manifesto-editor { margin-top: 18px; font-size: .85rem; }
.manifesto-editor fieldset { margin-bottom: 18px; }
.manifesto-editor legend { font-size: 1rem; font-weight: 700; }
.manifesto-editor label { display: block; margin-bottom: 8px; }
.ward-content-layout .activity-feed { max-height: none; }
.ward-content-layout .activity-list { overflow: visible; }
.ward-content-layout #map { height: 420px; }
@media(min-width: 992px) {
  .ward-content-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) minmax(0, 3fr); }
  .ward-content-layout > .manifesto-card { padding: 16px; }
  .ward-content-layout > .manifesto-card h2 { font-size: 1.3rem; }
}
.activity-feed { background: white; border: 1px solid #dce5eb; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; }
.activity-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.activity-heading h2 { font-size: 1.15rem; margin: 0; }
#activity-status, .planning-feed-status { font-size: .78rem; color: #61727c; margin: 0 0 10px; }
#activity-status:empty, .planning-feed-status:empty { display: none; }
.activity-heading { margin-bottom: 10px; }
.activity-list { display: grid; gap: 10px; align-content: start; flex: 1; overflow: auto; }
.activity-card { display: flex; position: relative; gap: 10px; padding: 12px 26px 12px 12px; border: 1px solid #e2e9ed; border-radius: 9px; }
.activity-card-link { transition: background-color .15s, border-color .15s; }
.activity-card-link:hover, .activity-card-link:focus-within, .activity-selected { background-color: #edf7f8; border-color: var(--accent); }
.activity-card-link .activity-card-actions { z-index: 2; }
.activity-card-actions { position: absolute; top: 8px; right: 8px; display: flex; align-items: center; gap: 6px; z-index: 3; }
.activity-card-actions .activity-edit { padding: .2rem .5rem; }
.activity-read-link { font-size: .75rem; color: var(--accent); }
.activity-card-link .activity-delete { z-index: 2; }
.activity-selected { scroll-margin-top: 24px; }
.ward-activity-label { position: relative; display: block; }
.ward-activity-name { position: relative; z-index: 1; pointer-events: none; }
.ward-activity-links { position: absolute; inset: -3px -5px; display: flex; z-index: 2; }
.ward-activity-links a { flex: 1; min-width: 0; border-radius: 3px; }
.activity-label-radar { position: absolute; inset: -4px; transform: translateX(var(--radar-offset)); pointer-events: none; }
.activity-label-radar::before { content: ''; position: absolute; inset: 0; border: 2px solid #123b70; border-radius: 50%; animation: activity-radar 2s ease-out infinite; animation-delay: var(--radar-delay); }
@keyframes activity-radar { from { transform: scale(.8); opacity: 1; } to { transform: scale(2); opacity: 0; } }
@media(prefers-reduced-motion: reduce) { .activity-label-radar::before { animation: none; } }
.activity-photo { width: 68px; height: 68px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.activity-photo-button { border: 0; padding: 0; background: transparent; align-self: flex-start; flex-shrink: 0; border-radius: 6px; cursor: zoom-in; }
.activity-full-photo { display: block; max-width: 100%; max-height: 75vh; width: auto; height: auto; margin: 0 auto; object-fit: contain; }
.activity-card-content { min-width: 0; overflow-wrap: anywhere; flex: 1; }
.activity-ward { display: block; line-height: 1; color: var(--accent); font-size: .7rem; text-decoration: none; }
.activity-card h3 { font-size: .9rem; margin: 5px 0 0; line-height: 1.25; }
.activity-card-target { display: block; height: 0; }
.activity-card time { display: block; margin-top: 1px; font-size: .7rem; line-height: 1.2; color: #61727c; }
.activity-excerpt { font-size: .78rem; color: #61727c; line-height: 1.4; margin: 5px 0 0; }
.activity-card summary { font-size: .75rem; color: var(--accent); margin-top: 5px; cursor: pointer; }
.activity-body { font-size: .85rem; margin-top: 10px; }
.activity-body h2, .activity-body h3 { font-size: 1rem; }
.activity-delete { position: absolute; top: 5px; right: 5px; border: 0; background: transparent; color: #a32727; font-size: 1.15rem; width: 24px; height: 24px; }
.activity-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 14px; font-size: .8rem; }
.activity-pagination button { border: 1px solid #ccdce2; border-radius: 6px; color: var(--ink); background: #f4f7f8; width: 30px; height: 30px; font-size: 1.3rem; line-height: 1; }
.activity-pagination button:disabled { opacity: .35; }
.activity-editor { max-width: 820px; margin: 20px auto; background: white; padding: clamp(20px, 4vw, 40px); border: 1px solid #dce5eb; border-radius: 14px; }
.activity-editor h1 { font-size: 2.5rem; letter-spacing: -1px; }
.photo-preview { max-width: 100%; max-height: 240px; border-radius: 8px; margin-top: 12px; }
@media(min-width: 1200px) { .map-activity-layout { grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr); } .activity-feed { max-height: clamp(480px, 75vh, 760px); } }
#map { height: clamp(380px, 62vh, 680px); background: #e8eef0; z-index: 0; }
#borough-map { height: clamp(480px, 75vh, 760px); background: #e8eef0; z-index: 0; }
.borough-map-scroll { width: 100%; overflow-x: auto; overflow-y: hidden; }
@media(max-width: 767px) {
  .borough-map-scroll { -webkit-overflow-scrolling: touch; }
  .borough-map-scroll #borough-map { min-width: 720px; touch-action: pan-x pan-y; }
}
.ward-map-label.leaflet-tooltip { background: #ffffffdf; border: 0; border-radius: 4px; padding: 3px 5px; box-shadow: 0 1px 4px #172b3826; white-space: normal; text-align: center; width: max-content; max-width: 105px; font-size: 10px; line-height: 1.2; font-weight: 650; }
.ward-map-label a { color: #172b38; text-decoration: none; }
.ward-map-label a:hover { color: #087c91; text-decoration: underline; }
.map-status { padding: 16px 20px 0; font-size: .9rem; }
.source-note { border-top: 1px solid #dce5eb; margin-top: 40px; padding-top: 24px; color: #61727c; font-size: .8rem; line-height: 1.8; }
.source-note h2 { font-size: .9rem; color: var(--ink); }
.source-note p { margin-bottom: 6px; }
.source-note a { color: var(--accent); }
footer { color: #73838d; border-top: 1px solid #dce5eb; font-size: .8rem; margin-top: 40px; }
footer a, footer a:visited { color: var(--accent); }
footer a:hover, footer a:focus-visible { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media(max-width: 575px) { .brand-logo { width: 195px; } nav a { padding: 8px 10px; } .directory-heading { padding-top: 0; } .ward-switch { flex-basis: 100%; } .ward-card { min-height: 115px; padding: 20px; } }
@media(max-width: 575px) { .site-header .brand-logo { width: 156px; } }
 .analytics-consent {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 42rem;
  margin-inline: auto;
  z-index: 1090;
  padding: 1rem;
  border: 1px solid #087c91;
  border-radius: .5rem;
  background: #fff;
  color: #16334b;
  box-shadow: 0 .25rem 1rem #0002;
 }
.map-enhancing [data-fallback-navigation] { display: none; }
.news-body img { max-width: 100%; height: auto; }
.news-body figure { margin: 1.5rem 0; }
.news-body figcaption { color: #61727c; font-size: .85rem; margin-top: .5rem; }
.news-body blockquote { border-left: 3px solid var(--accent); padding: .5rem 1rem; margin: 1.5rem 0; background: #087c9108; }
.news-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.5rem 0; }
.news-body td, .news-body th { border: 1px solid #ccd8df; padding: .5rem; }
