/* Styles for the server-rendered News pages (/news and /news/<slug>). Standalone: no build step. */
@font-face { font-family: 'DM Sans Variable'; font-style: normal; font-display: swap; font-weight: 100 1000; src: url('/fonts/dm-sans-latin-wght-normal.woff2') format('woff2-variations'); }
@font-face { font-family: 'Manrope Variable'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations'); }

:root { --bg: #181818; --panel: #232323; --line: rgba(212, 212, 212, .16); --text: #e2e2e2; --muted: #a5a5a5; --gold: #d9d9d9; --head: #f0f0f0; color-scheme: dark; }
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(900px 500px at 70% -10%, #323232, transparent), var(--bg); color: var(--text); font: 16px/1.7 'DM Sans Variable', 'DM Sans', system-ui, sans-serif; }
a { color: var(--gold); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: #ffffff; text-decoration: underline; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #232323; padding: 8px 12px; border-radius: 4px; z-index: 10; }
.skip:focus { left: 8px; }


main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) clamp(18px, 5vw, 24px) 72px; }
h1 { font: 700 clamp(30px, 5vw, 44px)/1.15 'Manrope Variable', Manrope, sans-serif; letter-spacing: -1.2px; color: var(--head); margin: 0 0 10px; overflow-wrap: anywhere; }
.lede { color: #c4c4c4; font-size: 18px; max-width: 62ch; margin: 0 0 28px; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.empty { color: var(--muted); padding: 40px 0; }
.button { display: inline-block; background: var(--gold); color: #232323; font-weight: 600; text-decoration: none; padding: 10px 20px; border-radius: 999px; }
.button:hover { background: #ffffff; color: #232323; text-decoration: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.tags span { font-size: 13px; color: #cbcbcb; border: 1px solid rgba(207, 207, 207, .22); border-radius: 999px; padding: 1px 10px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; margin-top: 8px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.card-img { display: block; aspect-ratio: 16 / 10; background: #343434; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 18px 20px 20px; }
.card h2 { font: 650 20px/1.3 'DM Sans Variable', sans-serif; margin: 0 0 8px; letter-spacing: -.2px; }
.card h2 a { color: var(--head); }
.card h2 a:hover { color: var(--gold); }
.card p { margin: 0 0 8px; font-size: 15px; }
.pager { display: flex; justify-content: space-between; margin-top: 36px; }

.article { max-width: 720px; margin: 0 auto; }
.crumbs { margin: 0 0 18px; font-size: 14px; }
.cover { margin: 0 0 28px; }
.cover img { width: 100%; height: auto; border-radius: 8px; display: block; background: #343434; }
.cover figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }
.body { font-size: 18px; line-height: 1.8; }
.body h2 { font: 650 26px/1.3 'DM Sans Variable', sans-serif; color: var(--head); margin: 36px 0 8px; }
.body h3 { font-size: 20px; color: var(--head); margin: 28px 0 6px; }
.body p, .body li { max-width: 68ch; }
.body ul { padding-left: 24px; }
.source { color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 36px; }

footer.site { border-top: 1px solid var(--line); padding: 20px clamp(18px, 5vw, 42px); display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: space-between; font-size: 12px; letter-spacing: .6px; color: #a0a0a0; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer.site a { color: #c8c8c8; display: inline-block; padding: 8px 0; }
footer.site a:hover { color: var(--gold); }

/* Breadcrumbs (all server-rendered pages) */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 22px; padding: 0; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin: 0 8px; color: #747474; }
.crumbs a { color: #c8c8c8; }
.crumbs a:hover { color: var(--gold); }

/* Town pages */
.eyebrow { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
main h2 { font: 650 22px/1.3 'DM Sans Variable', sans-serif; color: var(--head); margin: 44px 0 14px; }
main h2 .count { color: var(--muted); font-weight: 400; font-size: 16px; margin-left: 6px; }
.card h3 { font: 650 19px/1.3 'DM Sans Variable', sans-serif; color: var(--head); margin: 0 0 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 22px; }
.facts div { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; }
.facts dt { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 20px; color: var(--head); }
.officials, .barangays, .town-index, .town-links { list-style: none; margin: 0; padding: 0; }
.officials li { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.officials span, .officials em { color: var(--muted); font-style: normal; font-size: 14px; }
.officials strong, .barangays strong { font-weight: 500; color: var(--head); }
.barangays { columns: 3 240px; column-gap: 32px; }
.barangays li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid var(--line); }
.barangays span { display: block; font-size: 13px; color: var(--muted); }
.town-index { columns: 3 240px; column-gap: 32px; }
.town-index li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--line); }
.town-index a { font-size: 17px; }
.town-index span { display: block; font-size: 13px; color: var(--muted); }
.town-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.empty-note { color: var(--muted); }
@media (max-width: 620px) { .officials li { grid-template-columns: 1fr auto; } .officials li span { grid-column: 1 / -1; font-size: 12px; } }
.facts dd small { font-size: 12px; color: var(--muted); }
.district-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 32px; }
.district-grid h3 { font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 6px 0 4px; }
.district-grid .town-index { columns: 1; }
.district { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px 6px; }
.district h3 { margin-top: 0 !important; }
.district h4 { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 18px 0 2px; font-weight: 500; }
.district-officials { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.district-officials dt { color: var(--muted); font-size: 13px; padding-top: 2px; }
.district-officials dd { margin: 0; color: var(--head); line-height: 1.5; }
.profile-head { display: flex; gap: 24px; align-items: center; margin-bottom: 8px; }
.profile-head h1 { margin: 0; }
.profile-head .lede { margin: 6px 0 0; }
.avatar { flex: none; width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; font: 600 44px/1 'Manrope Variable', system-ui, sans-serif; color: var(--muted); }
.photo-credit { font-size: 12px; color: var(--muted); margin: 0 0 16px; }
.committees { margin: 0; padding-left: 20px; }
.officials strong a, .district-officials a, .town-index span a, .barangays span a { color: inherit; }
@media (max-width: 620px) { .profile-head { flex-direction: column; align-items: flex-start; gap: 14px; } .avatar { width: 104px; height: 104px; font-size: 34px; } }
/* Town profile (/towns/<town>): Governance, Development and Tourism tabs. */
.tabs { display: flex; gap: 30px; border-bottom: 1px solid var(--line); margin: 30px 0 6px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 12px 0; font-size: 16px; color: var(--muted); position: relative; white-space: nowrap; }
.tabs a:hover { color: var(--head); text-decoration: none; }
.tabs a[aria-selected=true] { color: var(--head); }
.tabs a[aria-selected=true]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); }
.tabs .count { font-size: 12px; color: var(--muted); margin-left: 2px; }
.gov-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.barangay-map svg { display: block; width: 100%; height: auto; max-height: 520px; }
.barangay-map path { fill: #5d5d5d; stroke: #181818; stroke-width: 1.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: fill .15s; }
.barangay-map a:hover path, .barangay-map a:focus-visible path { fill: #d7d7d7; }
.barangay-map a:focus-visible { outline: 0; }
.barangay-map { position: relative; }
.barangay-map a.on path { fill: #d7d7d7; }
.map-tip { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; padding: 5px 10px; border-radius: 6px; background: #f2f2f2; color: #181818; font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.map-tip[hidden] { display: none; }
.barangay-list details { border-bottom: 1px solid var(--line); transition: background .15s; }
.barangay-list summary { display: flex; justify-content: space-between; gap: 12px; padding: 12px; cursor: pointer; list-style: none; font-size: 15px; }
.barangay-list summary::-webkit-details-marker { display: none; }
.barangay-list summary > span:first-child::before { content: '▸'; display: inline-block; width: 1.1em; color: var(--muted); }
.barangay-list summary:hover { color: var(--gold); background: rgba(255, 255, 255, .03); }
/* The open barangay: one panel (name row and its officials) with a bar on the left. */
.barangay-list details[open] { background: var(--panel); border-bottom-color: transparent; box-shadow: inset 3px 0 0 var(--gold); margin: 6px 0; }
.barangay-list details[open] summary { color: var(--head); font-weight: 600; background: none; }
.barangay-list details[open] summary > span:first-child::before { content: '▾'; color: var(--gold); }
.brgy-captain { color: var(--muted); font-size: 13px; text-align: right; font-weight: 400; }
.barangay-list details > .officials, .barangay-list details > .empty-note { margin: 0 12px 0 calc(12px + 1.1em); padding-bottom: 10px; }
.barangay-list details > .officials li:last-child { border-bottom: 0; }
.barangay-map a.open path { fill: #d7d7d7; }
@media (max-width: 850px) { .gov-grid { grid-template-columns: 1fr; gap: 10px; } }
@media (max-width: 620px) { .tabs { gap: 22px; } }
/* Listing articles (/places/, /events/, /programs/): inline photos, galleries and the photo viewer. */
.article .eyebrow a { color: inherit; }
.article-image, .article-gallery { margin: 26px 0; }
.article-image img { width: 100%; height: auto; border-radius: 8px; display: block; background: #343434; }
.article-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.article-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; background: #343434; }
.article-image figure, .article-gallery figure { margin: 0; }
.article-image figcaption, .article-gallery figcaption { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 6px; }
.article-gallery figcaption { font-size: 11.5px; }
a.zoom { display: block; cursor: zoom-in; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 10, 10, .9); }
.lightbox img { display: block; max-width: 96vw; max-height: 94vh; object-fit: contain; border-radius: 4px; }
.lightbox-close { position: fixed; top: 14px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #232323; color: #efefef; font-size: 24px; line-height: 1; cursor: pointer; }
.card h3 a { color: var(--head); }
.read-more { font-size: 14px; font-weight: 600; }
/* The whole card opens its page (the title link stretches over the card). */
.card { position: relative; }
.card h2 a::after, .card h3 a::after { content: ''; position: absolute; inset: 0; }
.card:hover h2 a, .card:hover h3 a { text-decoration: underline; }
/* Resident ratings on official profiles */
.rating-overall { font-size: 15px; color: var(--muted); margin: 0 0 14px; }
.rating-overall strong { font-size: 40px; line-height: 1; color: var(--head); font-weight: 650; margin-right: 4px; }
.rating-overall span { font-size: 18px; color: var(--muted); }
.ratings { display: grid; gap: 10px; margin: 0 0 14px; max-width: 640px; }
.ratings div { display: grid; grid-template-columns: 220px 1fr; gap: 12px; align-items: center; }
.ratings dt { font-size: 15px; color: var(--head); cursor: help; }
.ratings dd { margin: 0; display: grid; grid-template-columns: 1fr 34px 82px; gap: 10px; align-items: center; }
.ratings .bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.ratings .bar span { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.ratings small { color: var(--muted); font-size: 12px; }
.rating-help { margin: 0 0 18px; font-size: 14px; color: var(--muted); max-width: 720px; }
.rating-help summary { cursor: pointer; color: var(--text); }
.rating-help dt { color: var(--head); margin-top: 10px; }
.rating-help dd { margin: 2px 0 0; }
.review-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.reviews { list-style: none; padding: 0; margin: 18px 0 0; max-width: 720px; }
.reviews li { border-top: 1px solid var(--line); padding: 12px 0; }
.reviews li p { margin: 0; }
.reviews .meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
@media (max-width: 620px) { .ratings div { grid-template-columns: 1fr; gap: 4px; } }
/* Community Concerns (/community) */
main:has(.concern-table), main:has(.concerns-hero) { max-width: 1280px; }
.concerns-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: center; gap: 30px; margin: 0 0 26px; }
.concerns-hero h1 { margin: 0 0 6px; }
.concerns-hero .lede { margin: 0 0 16px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.tag { display: inline-block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); font-size: 13px; color: var(--text); }
.island-outline { width: 100%; height: auto; }
.island-outline path { fill: #3a3a3a; stroke: #3a3a3a; stroke-width: .8; stroke-linejoin: round; } /* one solid shape: town borders disappear */
.concern-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.3fr) auto; gap: 12px; align-items: end; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.concern-filters label { display: grid; gap: 6px; min-width: 0; }
.concern-filters label > span { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.concern-filters select, .concern-filters input { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: #1d1d1d; color: var(--text); font: inherit; font-size: 14px; }
.concern-filters .button { border: 0; cursor: pointer; height: 40px; font-family: inherit; }
.concern-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0 6px; }
.concern-stats div { padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.concern-stats strong { display: block; font: 700 38px/1.1 'DM Sans Variable', sans-serif; color: var(--head); }
.concern-stats span { color: var(--muted); font-size: 15px; }
.table-scroll { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.concern-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 980px; }
.concern-table th { text-align: left; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); background: var(--panel); padding: 12px 14px; }
.concern-table td { padding: 14px; border-top: 1px solid var(--line); vertical-align: middle; line-height: 1.45; }
.concern-table td a { color: var(--head); }
.concern-table .case { color: var(--muted); white-space: nowrap; }
.over { color: #f0b37e; }
.chip { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: rgba(255, 255, 255, .12); color: var(--head); }
.chip-referred, .chip-in_progress { background: rgba(255, 255, 255, .2); }
.chip-resolved { background: #d9d9d9; color: #1d1d1d; }
.chip-closed { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.track-ref { margin-top: 36px; max-width: 560px; }
.track-ref form span { display: flex; gap: 8px; margin-top: 6px; }
.track-ref input { flex: 1; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: #1d1d1d; color: var(--text); font: inherit; text-transform: uppercase; }
.track-ref .button { border: 0; cursor: pointer; font-family: inherit; }
.track-ref label { font-size: 14px; color: var(--muted); }
.concern-case { max-width: 820px; }
.concern-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 18px 0 8px; }
.concern-facts div { padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.concern-facts dt { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.concern-facts dd { margin: 4px 0 0; color: var(--head); }
.concern-text { white-space: normal; }
.timeline { list-style: none; padding: 0 0 0 18px; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 14px; }
.timeline li::before { content: ''; position: absolute; left: -25px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.timeline time { display: block; font-size: 13px; color: var(--muted); }
.timeline p { margin: 4px 0 0; }
.button-quiet { background: transparent; border: 1px solid var(--line); color: var(--text); }
.concern-report { max-width: 680px; }
.concern-report form { display: grid; gap: 8px; }
.concern-report label, .concern-report legend { font-size: 14px; color: var(--text); margin-top: 8px; }
.concern-report legend span { color: var(--muted); }
.concern-report input:not([type=checkbox]), .concern-report select, .concern-report textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #1d1d1d; color: var(--text); font: inherit; font-size: 15px; }
.concern-report fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 6px 14px 14px; margin: 10px 0 0; }
.concern-report .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.concern-report .two > div { display: grid; gap: 8px; }
.concern-report .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.concern-report .consent input { margin-top: 3px; }
.concern-report [hidden], .concern-report .two > div[hidden] { display: none; }
.concern-report .emergency { margin: 10px 0 0; padding: 12px 14px; border: 1px solid rgba(230, 180, 60, .45); border-left-width: 4px; border-radius: 6px; background: rgba(230, 180, 60, .08); color: #f0d9a0; font-size: 14px; }
.concern-report .emergency a { color: #ffe3a3; font-weight: 600; text-decoration: underline; }
.topic-chip { display: inline-block; margin-left: 4px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; color: var(--muted); white-space: nowrap; vertical-align: 1px; }
.concern-report .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.concern-report .button { border: 0; cursor: pointer; font-family: inherit; justify-self: start; margin-top: 8px; }
.concern-report .form-error { color: #f0b37e; margin: 0; }
.ref-code { font-size: 22px; letter-spacing: 1px; color: var(--head); }
@media (max-width: 1080px) { .concern-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .concern-filters .search { grid-column: 1 / -1; } }
@media (max-width: 760px) { .concerns-hero { grid-template-columns: 1fr; } .island-outline { max-width: 150px; } .concern-stats { grid-template-columns: 1fr 1fr; } .concern-stats strong { font-size: 30px; } }
@media (max-width: 520px) { .concern-filters { grid-template-columns: 1fr; } .concern-report .two { grid-template-columns: 1fr; } }
/* Project Tracker (/projects) */
.projects-head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 16px; margin-bottom: 18px; }
.projects-head h1 { margin: 0; }
.projects-head .wip-pill { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; }
.wip-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.projects-head .lede, .projects-head p { grid-column: 1 / -1; margin: 0; }
.projects-head p:last-child { margin-top: 12px; }
.pstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.pstats div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.pstats svg { grid-row: 1 / 3; width: 28px; height: 28px; fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pstats span { color: var(--muted); font-size: 14px; }
.pstats strong { font: 700 28px/1.1 'DM Sans Variable', sans-serif; color: var(--head); }
.pfilters { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.pfilters label { display: grid; gap: 6px; min-width: 0; }
.pfilters label > span { font-size: 13px; color: var(--muted); }
.pfilters select, .pfilters input { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: #1d1d1d; color: var(--text); font: inherit; font-size: 14px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 900px; }
.ptable th { text-align: left; font-size: 13px; font-weight: 600; color: var(--head); background: var(--panel); padding: 12px 14px; }
.ptable td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; line-height: 1.4; }
.ptable tbody tr { cursor: pointer; }
.ptable tbody tr:hover, .ptable tbody tr.sel { background: rgba(255, 255, 255, .05); }
.ptable td a { color: var(--head); }
.ptable .chev { color: var(--muted); font-size: 20px; }
.tchip { display: inline-block; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 12px; white-space: nowrap; }
.pchip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 12px; white-space: nowrap; }
.pchip i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.pchip-ongoing i { background: var(--gold); }
.pchip-completed { background: #d9d9d9; color: #1d1d1d; } .pchip-completed i { background: #1d1d1d; }
.pchip-delayed i, .pchip-suspended i { background: #f0b37e; }
.pchip-cancelled { opacity: .7; }
.pcard { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin: 0 0 16px; background: rgba(255, 255, 255, .02); }
.pcard h3 .ext { color: var(--muted); }
.pcard h4 { margin: 18px 0 8px; font-size: 14px; }
.pfacts { margin: 0; }
.pfacts div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pfacts dt { color: var(--muted); }
.pfacts dd { margin: 0; color: var(--head); }
.pfacts .src { font-size: 12px; margin-left: 6px; }
.muted { color: var(--muted); }
.progress { display: inline-block; width: 120px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .12); vertical-align: middle; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--gold); }
.pdocs { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 8px; }
.pdocs li + li { border-top: 1px solid var(--line); }
.pdocs a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; color: var(--text); font-size: 14px; }
.pdocs small { color: var(--muted); margin-left: 6px; }
.project-map { width: 100%; height: auto; }
.project-map path { fill: #3a3a3a; stroke: #232323; stroke-width: .6; }
.project-map path.on { fill: #8a8a8a; }
.project-map .pin { fill: #f0f0f0; stroke: #181818; stroke-width: 1; }
.project-map .pin-dot { fill: #181818; }
.project-map text { fill: #f0f0f0; font-size: 11px; paint-order: stroke; stroke: #181818; stroke-width: 3px; }
@media (max-width: 960px) { .pfilters { grid-template-columns: 1fr 1fr; } .pfilters .search { grid-column: 1 / -1; } .pstats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pfilters { grid-template-columns: 1fr; } .pfacts div { grid-template-columns: 1fr; gap: 2px; } .projects-head { grid-template-columns: 1fr; } }
.ptable.compact { min-width: 640px; } .ptable.compact tbody tr { cursor: default; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* Project page (/projects/<slug>) */
main:has(.projects-main), main:has(.project-page) { max-width: 1280px; }
.back-link { margin: 0 0 14px; font-size: 14px; }
.project-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 16px; }
.project-head .eyebrow { width: 100%; margin: 0; }
.project-head h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); }
.project-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--line); }
.project-strip div { padding: 12px 16px; background: var(--panel); }
.project-strip dt { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.project-strip dd { margin: 4px 0 0; color: var(--head); font-size: 15px; }
.section-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: 22px; padding: 12px 0; margin: 0 0 18px; background: var(--bg); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.section-nav a { color: var(--muted); white-space: nowrap; font-size: 14px; }
.section-nav a:hover { color: var(--head); }
.project-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.project-body .pcard, .project-side .pcard { scroll-margin-top: 64px; }
.pcard h2 { font-size: 20px; margin: 0 0 12px; }
.pcard h3 { font-size: 15px; margin: 18px 0 8px; }
.pdesc { margin: 0 0 12px; }
.project-side { position: sticky; top: 64px; }
.town-links-inline { margin: 10px 0 0; font-size: 14px; }
.place-list { margin: 12px 0 0; display: grid; gap: 8px; font-size: 14px; }
.place-list dt { font-weight: 600; }
.place-list dd { margin: 2px 0 0; color: var(--muted); }
.side-actions { display: grid; gap: 10px; }
.side-actions .button { text-align: center; }
.side-actions p { margin: 0; font-size: 12px; }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0; }
.prev-next a { display: grid; gap: 4px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--head); }
.prev-next a.next { text-align: right; }
.prev-next small { color: var(--muted); }
.nearby .town-links li { display: flex; gap: 10px; align-items: center; }
@media (max-width: 1000px) { .project-grid { grid-template-columns: 1fr; } .project-side { position: static; } .project-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .project-strip { grid-template-columns: 1fr; } .prev-next { grid-template-columns: 1fr; } .prev-next a.next { text-align: left; } }
/* Policies and comments */
.pchip-policy-in_effect, .pchip-policy-approved { background: #d9d9d9; color: #1d1d1d; } .pchip-policy-in_effect i, .pchip-policy-approved i { background: #1d1d1d; }
.pchip-policy-proposed i { background: var(--gold); }
.pchip-policy-amended i { background: #f0b37e; }
.pchip-policy-repealed { opacity: .7; }
.comments { margin-top: 28px; }
