/* ==========================================================
   PA State Constables — Municipal-style theme
   ========================================================== */
:root {
  --navy-900: #0b1b33;
  --navy-800: #12284a;
  --navy-700: #1b3a66;
  --blue-600: #1f5fa8;
  --blue-100: #e6eef8;
  --gold-500: #c9a44c;
  --gold-600: #a9862f;
  --gold-100: #f7f0dc;
  --gray-900: #1b1f24;
  --gray-700: #3d4551;
  --gray-500: #6b7380;
  --gray-300: #cfd5dd;
  --gray-100: #f1f3f6;
  --white: #ffffff;
  --red-600: #b3261e;
  --green-600: #2e7d32;

  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Merriweather", Georgia, "Times New Roman", serif;

  --radius: 6px;
  --shadow: 0 1px 2px rgba(11, 27, 51, .06), 0 4px 14px rgba(11, 27, 51, .08);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-underline-offset: 2px; }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy-800); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold-500); color: var(--navy-900); padding: 8px 14px; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

/* ---------- Utility bar ---------- */
.utility-bar { background: var(--navy-900); color: #c9d3e1; font-size: .82rem; }
.utility-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; flex-wrap: wrap; }
.utility-bar a { color: #e3e9f2; text-decoration: none; }
.utility-bar a:hover { color: var(--gold-500); }
.utility-links { display: flex; gap: 18px; flex-wrap: wrap; }
.utility-flag { display: inline-flex; align-items: center; gap: 8px; }
.utility-flag svg { width: 18px; height: 12px; }

/* ---------- Alert ---------- */
.site-alert { background: var(--gold-100); border-bottom: 1px solid #e6d7a8; font-size: .92rem; }
.site-alert .container { display: flex; gap: 12px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.site-alert strong { color: var(--navy-800); }
.site-alert .tag { background: var(--navy-800); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; padding: 3px 8px; border-radius: 3px; text-transform: uppercase; white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 4px solid var(--gold-500); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.brand img { width: auto; height: 72px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.2)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-kicker { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-500); font-weight: 600; }
.brand-name { font-family: var(--font-serif); font-weight: 900; font-size: 1.35rem; color: var(--navy-800); }
.brand-sub { font-size: .8rem; color: var(--gold-600); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a { display: block; white-space: nowrap; padding: 10px 14px; text-decoration: none; color: var(--navy-800); font-weight: 600; font-size: .95rem; border-radius: var(--radius); }
.main-nav a:hover { background: var(--gray-100); }
.main-nav a[aria-current="page"] { background: var(--blue-100); color: var(--navy-800); box-shadow: inset 0 -3px 0 var(--blue-600); }
.main-nav .nav-cta { background: var(--navy-800); color: #fff; }
.main-nav .nav-cta:hover { background: var(--navy-700); color: #fff; }
.main-nav .nav-cta[aria-current="page"] { background: var(--navy-700); color: #fff; box-shadow: inset 0 -3px 0 var(--gold-500); }
.nav-toggle { display: none; background: var(--navy-800); color: #fff; border: 0; border-radius: var(--radius); padding: 10px 14px; font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 4px solid var(--gold-500); display: none; box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 16px 16px; }
  .brand img { width: auto; height: 56px; }
  .brand-name { font-size: 1.1rem; }
  .header-inner { min-height: 74px; }
}
@media (max-width: 520px) { .utility-links .hide-sm { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy-800) url("../img/hero-pattern.svg"); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(11,27,51,.95) 0%, rgba(18,40,74,.85) 55%, rgba(27,58,102,.6) 100%); }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--gold-500); }
.hero p.lead { font-size: 1.15rem; color: #d7e0ec; max-width: 620px; }
.hero-map { opacity: .95; }
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; } .hero-map { max-width: 340px; } }

.eyebrow { display: inline-block; font-family: var(--font-sans); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 10px; }

/* Quick search in hero */
.quick-find { margin-top: 28px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 18px; max-width: 620px; }
.quick-find label { font-weight: 700; font-size: .9rem; display: block; margin-bottom: 8px; }
.quick-find .row { display: flex; gap: 10px; flex-wrap: wrap; }
.quick-find select { flex: 1 1 240px; }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius); font-weight: 700; font-size: .98rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: #d6b462; color: var(--navy-900); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-outline { border-color: currentColor; color: var(--navy-800); background: transparent; }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

select, input[type="text"], input[type="email"], input[type="search"], textarea {
  font: inherit; font-size: 1rem; width: 100%; padding: 12px 14px; border: 1px solid var(--gray-300); border-radius: var(--radius); background: #fff; color: var(--gray-900);
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2312284a' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
select:disabled { background-color: var(--gray-100); color: var(--gray-500); }
label { font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--gray-100); }
.section-navy { background: var(--navy-800); color: #dce4ef; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--gray-700); font-size: 1.05rem; }
.section-navy .section-head p { color: #c7d2e1; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Service tiles (city-site style) */
.tile { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--gray-300); border-top: 4px solid var(--navy-800); border-radius: var(--radius); padding: 24px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-top-color: var(--gold-500); color: inherit; }
.tile h3 { margin: 0; }
.tile p { margin: 0; color: var(--gray-700); font-size: .96rem; }
.tile .more { margin-top: auto; color: var(--blue-600); font-weight: 700; font-size: .92rem; }
.icon-badge { width: 52px; height: 52px; border-radius: 50%; background: var(--blue-100); display: grid; place-items: center; color: var(--navy-800); }
.icon-badge svg { width: 26px; height: 26px; }

.card { background: #fff; border: 1px solid var(--gray-300); border-radius: var(--radius); overflow: hidden; }
.card-body { padding: 22px; }
.card img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.card .meta { font-size: .82rem; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 28px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 900; color: var(--gold-500); line-height: 1; }
.stat .label { margin-top: 8px; font-size: .92rem; color: #c7d2e1; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } }

/* ---------- Page header (interior) ---------- */
.page-hero { background: var(--navy-800) url("../img/hero-pattern.svg"); color: #fff; padding: 44px 0 48px; border-bottom: 1px solid var(--navy-900); }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: #cfd9e6; max-width: 760px; margin: 0; font-size: 1.08rem; }
.breadcrumbs { font-size: .85rem; margin-bottom: 14px; color: #b8c5d7; }
.breadcrumbs a { color: #e3e9f2; }
.breadcrumbs span[aria-hidden] { margin: 0 6px; color: var(--gold-500); }

/* Content layout with sidebar */
.content-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; padding: 56px 0 72px; }
@media (max-width: 900px) { .content-layout { grid-template-columns: 1fr; gap: 24px; } }
.side-nav { position: sticky; top: 112px; align-self: start; border: 1px solid var(--gray-300); border-radius: var(--radius); overflow: hidden; }
.side-nav h2 { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin: 0; padding: 14px 18px; background: var(--gray-100); color: var(--gray-700); border-bottom: 1px solid var(--gray-300); }
.side-nav ul { list-style: none; margin: 0; padding: 6px 0; }
.side-nav a { display: block; padding: 9px 18px; text-decoration: none; color: var(--navy-800); font-size: .95rem; border-left: 3px solid transparent; }
.side-nav a:hover { background: var(--gray-100); border-left-color: var(--gold-500); }
@media (max-width: 900px) { .side-nav { position: static; } }

.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; padding-top: .2em; scroll-margin-top: 120px; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose figure { margin: 24px 0; }
.prose figcaption { font-size: .85rem; color: var(--gray-500); margin-top: 6px; }

.callout { border-left: 5px solid var(--gold-500); background: var(--gold-100); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0; }
.callout.info { border-left-color: var(--blue-600); background: var(--blue-100); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--navy-800); }

.filler { background: repeating-linear-gradient(-45deg, #fff8e1, #fff8e1 8px, #fff3cc 8px, #fff3cc 16px); border: 1px dashed var(--gold-600); color: #6b5410; font-size: .82rem; padding: 2px 8px; border-radius: 3px; font-weight: 600; white-space: nowrap; }

/* Data table */
.table-wrap { overflow-x: auto; border: 1px solid var(--gray-300); border-radius: var(--radius); margin: 20px 0 28px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--gray-300); vertical-align: top; }
thead th { background: var(--navy-800); color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
tbody tr:nth-child(even) { background: var(--gray-100); }
tbody tr:last-child td { border-bottom: 0; }

/* Timeline / steps */
.steps { list-style: none; padding: 0; margin: 24px 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 26px 62px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--navy-800); color: var(--gold-500); font-family: var(--font-serif); font-weight: 900; display: grid; place-items: center; }
.steps li::after { content: ""; position: absolute; left: 20px; top: 46px; bottom: 4px; width: 2px; background: var(--gray-300); }
.steps li:last-child::after { display: none; }
.steps h3 { margin: 6px 0 4px; font-size: 1.08rem; }
.steps p { margin: 0; color: var(--gray-700); }

/* Org chart */
.org { display: flex; flex-direction: column; align-items: center; gap: 0; margin: 28px 0; }
.org-node { background: #fff; border: 2px solid var(--navy-800); border-radius: var(--radius); padding: 12px 18px; text-align: center; min-width: 220px; font-weight: 700; color: var(--navy-800); font-size: .95rem; }
.org-node small { display: block; font-weight: 400; color: var(--gray-500); font-size: .8rem; }
.org-node.top { background: var(--navy-800); color: #fff; }
.org-node.top small { color: #c7d2e1; }
.org-node.gold { border-color: var(--gold-500); background: var(--gold-100); }
.org-line { width: 2px; height: 26px; background: var(--gray-300); }
.org-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; position: relative; padding-top: 0; }

/* Accordion (FAQ) */
details.faq { border: 1px solid var(--gray-300); border-radius: var(--radius); margin-bottom: 10px; background: #fff; }
details.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--navy-800); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--gold-600); }
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding: 0 20px 18px; color: var(--gray-700); }

/* ---------- Find your constable ---------- */
.finder { background: #fff; border: 1px solid var(--gray-300); border-radius: 10px; box-shadow: var(--shadow); padding: 28px; margin-top: -40px; position: relative; z-index: 2; }
.finder-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .finder-steps { grid-template-columns: 1fr; } }
.finder-step label { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: .95rem; color: var(--navy-800); }
.step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--navy-800); color: var(--gold-500); font-weight: 800; font-size: .8rem; display: grid; place-items: center; flex-shrink: 0; }
.finder-step.done .step-num { background: var(--green-600); color: #fff; }
.finder-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; font-size: .9rem; color: var(--gray-500); }
.finder-actions button.link { background: none; border: 0; color: var(--blue-600); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; padding: 0; }

.results { margin-top: 40px; }
.results-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--navy-800); padding-bottom: 12px; margin-bottom: 22px; }
.results-head h2 { margin: 0; }
.results-head .sub { color: var(--gray-500); font-size: .95rem; }
.empty-state { text-align: center; padding: 48px 20px; border: 2px dashed var(--gray-300); border-radius: 10px; color: var(--gray-500); }
.empty-state img { width: auto; height: 84px; margin: 0 auto 14px; opacity: .85; }
.empty-state h3 { color: var(--gray-700); }

.constable-card { display: grid; grid-template-columns: 76px 1fr; gap: 18px; background: #fff; border: 1px solid var(--gray-300); border-left: 5px solid var(--navy-800); border-radius: var(--radius); padding: 20px; }
.avatar { width: 76px; height: 76px; border-radius: 50%; background: var(--blue-100); color: var(--navy-800); font-family: var(--font-serif); font-weight: 900; font-size: 1.5rem; display: grid; place-items: center; border: 3px solid var(--gold-500); }
.constable-card h3 { margin: 0 0 2px; font-size: 1.15rem; }
.constable-card .role { color: var(--gold-600); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.constable-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 12px 0 0; font-size: .92rem; }
.constable-card dt { color: var(--gray-500); font-weight: 600; }
.constable-card dd { margin: 0; }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: .03em; }
.pill-green { background: #e3f1e4; color: var(--green-600); }
.pill-amber { background: #fdf1d6; color: #8a6100; }
.pill-gray { background: var(--gray-100); color: var(--gray-700); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b8c5d7; font-size: .93rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 56px 0 40px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font-sans); color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #e3e9f2; text-decoration: none; }
.site-footer a:hover { color: var(--gold-500); text-decoration: underline; }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: auto; height: 64px; }
.footer-brand strong { font-family: var(--font-serif); color: #fff; font-size: 1.1rem; display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .82rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.gold-rule { height: 4px; background: linear-gradient(90deg, var(--gold-500), var(--gold-600)); }

/* Misc */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }
.rounded-art { border-radius: 10px; overflow: hidden; border: 1px solid var(--gray-300); }
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--navy-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%23c9a44c' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/12px no-repeat; }
.news-list { display: grid; gap: 14px; }
.news-item { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding: 16px; background: #fff; border: 1px solid var(--gray-300); border-radius: var(--radius); }
.date-box { background: var(--navy-800); color: #fff; text-align: center; border-radius: var(--radius); padding: 8px 4px; line-height: 1.1; }
.date-box .m { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-500); font-weight: 700; }
.date-box .d { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 900; }
.news-item h3 { font-size: 1.02rem; margin: 0 0 4px; }
.news-item p { margin: 0; font-size: .92rem; color: var(--gray-700); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid label { display: block; margin-bottom: 6px; font-size: .92rem; color: var(--navy-800); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Directory card additions ---------- */
.btn-sm { padding: 8px 14px; font-size: .85rem; margin-top: 14px; text-align: left; }
.constable-card .btn-outline { border-width: 1px; border-color: var(--gray-300); color: var(--blue-600); background: #fff; }
.constable-card .btn-outline:hover { border-color: var(--blue-600); background: var(--blue-100); }
.constable-card.vacant { border-left-color: var(--gold-500); background: #fffdf6; }
.constable-card.vacant .avatar { background: var(--gray-100); color: var(--gray-500); border-color: var(--gray-300); }
.constable-card.vacant h3 { color: var(--gray-700); }
.card-note { font-size: .9rem; color: var(--gray-700); margin: 10px 0 0; }

/* ---------- Message dialog ---------- */
.msg-dialog { border: 0; border-radius: 10px; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(11,27,51,.35); border-top: 5px solid var(--gold-500); }
.msg-dialog::backdrop { background: rgba(11,27,51,.6); }
.msg-form { padding: 24px; }
.msg-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.msg-head h2 { font-size: 1.35rem; margin: 0 0 6px; }
.msg-close { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--gray-500); padding: 0 4px; }
.msg-intro { color: var(--gray-700); font-size: .95rem; }
.msg-regarding { background: var(--blue-100); border-radius: var(--radius); padding: 10px 14px; font-size: .9rem; margin-bottom: 16px; }
.msg-regarding:empty { display: none; }
.msg-form .opt { font-weight: 400; color: var(--gray-500); }
.msg-status { min-height: 1.4em; margin: 12px 0 0; font-size: .92rem; font-weight: 600; }
.msg-status.ok { color: var(--green-600); }
.msg-status.err { color: var(--red-600); }
.msg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* Hero county list */
.hero-counties { background: rgba(255,255,255,.06); border: 1px solid rgba(201,164,76,.45); border-radius: 10px; padding: 24px; }
.hero-counties h2 { color: #fff; font-size: 1.15rem; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 2px solid var(--gold-500); }
.hero-counties ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hero-counties a { display: flex; justify-content: space-between; color: #fff; text-decoration: none; padding: 10px 12px; border-radius: var(--radius); font-weight: 600; }
.hero-counties a::after { content: "→"; color: var(--gold-500); }
.hero-counties a:hover { background: rgba(255,255,255,.1); color: #fff; }
.source { font-size: .85rem; color: var(--gray-500); }
.source a { color: var(--gray-700); }
figure.photo { margin: 0 0 24px; }
figure.photo img { width: 100%; height: auto; }
figure.photo figcaption, .credit { font-size: .78rem; color: var(--gray-500); margin-top: 8px; }
figure.photo figcaption a, .credit a { color: var(--gray-700); }
.card .credit { margin: 12px 0 0; }
.site-alert a { color: var(--navy-800); font-weight: 700; }

/* Switch region menu (utility bar) */
.utility-links { align-items: center; }
.region-switch { position: relative; }
.region-switch summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  background: var(--gold-500); color: var(--navy-900); font-weight: 800; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.region-switch summary::-webkit-details-marker { display: none; }
.region-switch summary svg { width: 14px; height: 14px; }
.region-switch summary:hover { background: #d6b462; }
.region-switch[open] summary { box-shadow: 0 0 0 3px rgba(201,164,76,.35); }
.region-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 250px; background: #fff; border-radius: 10px; padding: 6px;
  box-shadow: 0 18px 40px rgba(11,27,51,.35); border-top: 4px solid var(--gold-500); }
.region-menu a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 6px; color: var(--navy-800) !important; font-weight: 600; font-size: .92rem; }
.region-menu a:hover { background: var(--blue-100); color: var(--navy-800) !important; }
.region-menu a.all { font-weight: 700; border-bottom: 1px solid var(--gray-300); border-radius: 6px 6px 0 0; margin-bottom: 4px; color: var(--blue-600) !important; }
.region-menu .here { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--gold-500); color: var(--navy-900); padding: 2px 8px; border-radius: 999px; }
.region-menu .soon { font-size: .7rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 600px) { .region-menu { left: 0; right: auto; width: min(260px, calc(100vw - 40px)); } }

tr.ce-past td { color: var(--gray-500); }
tr.ce-past td:first-child { text-decoration: line-through; }
