/* Self-hosted Google Fonts (latin subset, variable weight). Covers every character the pages use except →, which falls back as before. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/outfit-latin.woff2") format("woff2");
}

:root {
  --paper: #eef1eb;
  --ink: #1c211e;
  --ink-soft: #4a524c;
  --brick: #004c54;
  --brick-dark: #00363c;
  --gold: #c4a35a;
  --gold-text: #7a5a1c; /* gold for small text on light paper (5.9:1); --gold alone is 2.3:1 there */
  --focus: var(--gold-text); /* focus ring; dark bars switch it to --gold or white below (WCAG wants 3:1) */
  --rule: #c5cdc6;
  --white: #f7f8f4; /* light text on dark bars; panels use --surface */
  --surface: #f7f8f4;
  --ok: #2f5d3a;
  --warn: #8a4b12;
  --masthead: #0d1f22;
  --shadow: 0 18px 40px rgba(13, 31, 34, 0.08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --masthead-offset: 6.5rem;
  --alert-bg: #e4ece6;
  --alert-rule: #c4d0c8;
  --note-bg: #f9eeda;
  --note-rule: #e2c98f;
  --glow: rgba(0, 76, 84, 0.08);
  --nav-current: var(--brick);
}

/* Dark mode follows the phone or computer setting. Screen only, so printouts stay black on white. */
@media screen and (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #121a1b;
    --surface: #1b2526;
    --ink: #e6ebe7;
    --ink-soft: #aab5ae;
    --brick: #6cc0c8;
    --brick-dark: #8fd0d6;
    --gold-text: #d9b86a;
    --rule: #33403f;
    --ok: #8fd19e;
    --warn: #f0a868;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    --alert-bg: #1d2a28;
    --alert-rule: #33403f;
    --note-bg: #3a2f17;
    --note-rule: #6b5626;
    --glow: rgba(108, 192, 200, 0.06);
    --nav-current: #00646e;
  }
  .masthead { border-bottom: 1px solid #2a3a3b; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, var(--glow), transparent 50%),
    var(--paper);
  line-height: 1.55;
  overflow-x: clip;
}
main { flex: 1; }
main:focus { outline: none; }

a { color: var(--brick); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.emergency-strip,
.masthead,
footer { --focus: var(--gold); }
.call-911,
.call-building { --focus: #fff; }

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-200%);
  background: var(--gold);
  color: #1c211e;
  font-weight: 600;
  padding: 8px 12px;
  z-index: 40;
  border-radius: 4px;
}
.skip:focus,
.skip:focus-visible { transform: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Above the sticky masthead on every page but Emergencies, so 911 and the building line are on a phone's first screen. */
.emergency-strip {
  background: #00363c;
  color: var(--white);
  font-size: 0.85rem;
  line-height: 1.4;
}
.emergency-strip p {
  margin: 0 auto;
  padding: 6px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
}
.emergency-strip strong { color: var(--gold); }
.emergency-strip a {
  color: var(--white);
  font-weight: 600;
  white-space: nowrap;
}
.emergency-strip a.emergency-strip-more { color: var(--gold); }

.offline-note {
  margin: 16px auto 0;
  padding: 8px 12px;
  background: var(--note-bg);
  border: 1px solid var(--note-rule);
  font-size: 0.9rem;
}

.masthead {
  background: var(--masthead);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 30;
}
.masthead-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 12px;
}
.masthead-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.nav-toggle {
  display: none;
}
.brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  flex: 1;
  min-width: 0;
  padding: 4px 0 10px;
}
.site-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.6vw, 2.05rem);
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.site-title a { color: inherit; text-decoration: none; }
.site-title a:hover { color: var(--gold); }
.site-title a[aria-current="page"] { pointer-events: none; }
.site-title a[aria-current="page"]:hover { color: inherit; }
.brand-meta {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-nav-panel {
  border-top: 1px solid rgba(184, 137, 58, 0.32);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 12px;
}
.site-nav-panel nav { flex: 1 1 auto; }

/* Header search box; full results are on /search (search.php). */
.site-search {
  display: flex;
  align-items: center;
  flex: 0 1 200px;
  margin: 0 0 0 auto;
  padding: 4px 0;
  border: 1px solid rgba(184, 137, 58, 0.55);
  border-radius: 999px;
  background: rgba(247, 248, 244, 0.06);
}
.site-search:focus-within { border-color: var(--gold); background: rgba(247, 248, 244, 0.12); }
.site-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 0.88rem;
  padding: 4px 0 4px 14px;
}
.site-search input::placeholder { color: rgba(247, 248, 244, 0.65); }
.site-search input:focus { outline: none; }
.site-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 30px;
  margin-right: 2px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
}
.site-search button:hover { background: rgba(0, 76, 84, 0.55); }
.site-search .icon { width: 18px; height: 18px; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
  list-style: none;
  margin: 0;
  padding: 6px 0 8px;
}
.site-nav a {
  display: block;
  color: var(--white);
  text-decoration: none;
  padding: 8px 11px;
  font-size: 0.88rem;
  border-radius: 999px;
}
.site-nav a:hover {
  background: rgba(0, 76, 84, 0.55);
}
.site-nav a[aria-current="page"] {
  background: var(--nav-current);
  font-weight: 600;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: stretch;
  padding: 36px 0 12px;
}
@media (min-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  }
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 12px;
}
.hero-kicker {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
}
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 42rem; }
.hero-photo {
  position: relative;
  box-shadow: var(--shadow);
  margin: 0;
  min-width: 0;
  overflow: hidden;
  max-height: 380px;
}
.hero-photo picture { display: block; }
.hero-photo img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: 50% 40%;
  min-height: 0;
}
.hero-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 10px;
  /* Solid enough behind the text line that light pavement in the photo can't wash it out. */
  background: linear-gradient(rgba(13,31,34,0), rgba(13,31,34,.88) 45%);
  color: var(--white);
  font-size: 0.8rem;
}

.alert {
  background: var(--alert-bg);
  border: 1px solid var(--alert-rule);
  padding: 14px 16px;
  margin: 8px 0 28px;
}
.alert p { margin: 0 0 10px; }
.alert p:last-child { margin-bottom: 0; }
.alert strong { color: var(--warn); }
.alert-call { font-size: 1.15rem; }
.posted { font-size: 0.85rem; color: var(--ink-soft); white-space: nowrap; }
.alert-call a { font-weight: 600; white-space: nowrap; }
.updated {
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.updated strong { color: inherit; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  padding-bottom: 40px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--brick);
}
.card h2 a {
  color: inherit;
  text-decoration: none;
}
/* Stretch the heading link over the whole card so the card stays one click target. */
.card h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.card h2 a:focus-visible { outline: none; }
.card:has(h2 a:focus-visible) {
  outline: 2px solid var(--brick);
  outline-offset: 3px;
}
.card h2,
.card h3 {
  font-family: var(--serif);
  margin: 0 0 8px;
  font-size: 1.35rem;
}
.card p { margin: 0; color: var(--ink-soft); }
.card .go { margin-top: 12px; color: var(--brick); font-weight: 600; }

.page {
  padding: 28px 0 56px;
}
.page h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 8px;
}
.page > h2,
.page h2.section-break {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  margin: 0 0 8px;
}
.sub { color: var(--ink-soft); margin: 0 0 16px; max-width: 44rem; }
.sub + ul {
  margin: 0 0 24px;
  max-width: 44rem;
}

.stack { display: grid; gap: 14px; }
.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 16px 18px;
}
.panel h2,
.panel h3 {
  font-family: var(--serif);
  margin: 0 0 8px;
  font-size: 1.3rem;
}
.panel p { margin: 0 0 10px; }
.panel p:last-child { margin-bottom: 0; }
.panel ul,
.panel ol {
  margin: 0;
  padding-left: 1.2rem;
}
.panel li { margin: 0.3rem 0; }
.panel li:first-child { margin-top: 0; }
.panel li:last-child { margin-bottom: 0; }
.do { color: var(--ok); }
.dont { color: var(--brick-dark); }
.note {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
  align-items: start;
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact .role { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brick-dark); }
.contact h2,
.contact h3 { margin: 0; font-family: var(--serif); }
.contact p { margin: 0; color: var(--ink-soft); }
.contact a { word-break: break-word; overflow-wrap: anywhere; }
/* Phone, email, and portal links on the contact cards: a full 24px+ tap target (WCAG 2.5.8). */
.contact > a,
.contact p > a { display: inline-block; padding: 6px 0; }

.news {
  border-left: 4px solid var(--brick);
  padding: 4px 0 4px 16px;
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: 160px 1fr;
  column-gap: 16px;
  align-items: start;
}
.news > time { grid-column: 2; }
.news > h2 { grid-column: 2; }
.news > p { grid-column: 2; }
.news-cover {
  grid-column: 1;
  grid-row: 1 / span 8;
  display: block;
}
.news-cover img {
  width: 160px;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
  background: var(--surface);
}
@media (max-width: 640px) {
  .news { grid-template-columns: 96px 1fr; }
  .news-cover img { width: 96px; }
}
.news:last-of-type { margin-bottom: 0; }
.news time { color: var(--brick-dark); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.news h2,
.news h3 { font-family: var(--serif); margin: 4px 0 8px; font-size: 1.35rem; }

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 0.88rem;
  align-items: center;
}
.jump a {
  font-weight: 600;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 6px 12px;
  border-radius: 999px;
}
.jump-label {
  flex: 1 0 100%;
  font-weight: 600;
  color: var(--ink-soft);
}
@media (min-width: 861px) {
  .page > .jump {
    position: sticky;
    top: var(--masthead-offset);
    z-index: 20;
    background: var(--paper);
    padding: 10px 0 12px;
    margin: 0 0 16px;
    border-bottom: 1px solid var(--rule);
  }
}
@media (min-width: 600px) {
  .jump-label { flex: 0 0 auto; }
}
/* /search (search.php) */
.search-form { margin: 8px 0 20px; max-width: 44rem; }
.search-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.search-row { display: flex; gap: 8px; }
.search-row input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1.05rem;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.search-row input:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--brick); }
.search-row button {
  font: inherit;
  font-weight: 600;
  padding: 10px 18px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--brick);
  color: var(--surface);
  cursor: pointer;
}
.search-row button:hover { background: var(--brick-dark); }
.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 48rem;
}
.search-results li {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 14px 18px;
}
.search-results h2 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 2px 0 6px;
}
.search-results p { margin: 0; }
.search-results .search-where {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
  font-weight: 600;
}
.search-results mark { background: var(--note-bg); color: inherit; padding: 0 1px; border-radius: 2px; box-shadow: 0 0 0 1px var(--note-rule); }

a.pdf {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 6px 12px;
  border-radius: 999px;
}
a.pdf:hover { border-color: var(--brick); }
.file-size { font-weight: 400; color: var(--ink-soft); }
.site-nav a.nav-urgent {
  color: var(--gold);
}
.site-nav a.nav-urgent:hover,
.site-nav a.nav-urgent[aria-current="page"] {
  color: var(--white);
  background: var(--nav-current);
}

.steps {
  margin: 0 0 28px;
  padding-left: 1.3rem;
  max-width: 46rem;
}
.steps li { margin: 0.55rem 0; }
.places {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
  align-items: start;
}

/* Any jump target clears the sticky masthead; on desktop also the sticky "Jump to" bar. */
[id] { scroll-margin-top: calc(var(--masthead-offset) + 12px); }
@media (min-width: 861px) {
  [id] { scroll-margin-top: calc(var(--masthead-offset) + 4rem); }
  .gallery-era { scroll-margin-top: calc(var(--masthead-offset) + 8rem); }
}

.three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
  align-items: start;
}
.corners-wrap { margin-bottom: 16px; }
.corners-wrap .note { margin-top: 12px; }

.gallery figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  overflow: visible;
}

.section-break { margin-top: 28px; }

footer {
  background: var(--masthead);
  color: #c5d0cc;
  padding: 28px 0 40px;
  margin-top: auto;
}
footer a { color: var(--gold); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
}
.footer-mark {
  font-family: var(--serif);
  color: var(--white);
  margin: 0 0 8px;
  font-size: 1.6rem;
}
.footer-mark a {
  color: var(--white);
  text-decoration: none;
}
.footer-mark a:hover { text-decoration: underline; }

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (min-width: 1100px) {
  .gallery { grid-template-columns: 1fr 1fr 1fr; }
}
.gallery a,
.gallery picture { display: block; }
.gallery img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  background: var(--masthead);
}
.gallery.clippings img { height: 280px; background: var(--paper); }
.gallery figure.is-photo img { background: var(--masthead); }
.gallery figcaption {
  padding: 10px 12px 12px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.gallery figcaption strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.fig-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 4px;
}
.hist-story {
  max-width: 46rem;
}
.hist-story p { margin: 0 0 1rem; }
.hist-toolbar {
  background: var(--paper);
  padding: 8px 0 10px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 861px) {
  .hist-toolbar {
    position: sticky;
    top: var(--masthead-offset);
    z-index: 19;
    box-shadow: 0 10px 18px -12px rgba(26, 22, 18, 0.35);
  }
}
.hist-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}
.hist-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.hist-filter-kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hist-count {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.hist-filters button {
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
}
.hist-filters button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.gallery-era {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 1.35rem;
}
.gallery figure.is-stack a.hist-open {
  position: relative;
  padding: 0 12px 12px 0;
}
.gallery figure.is-stack a.hist-open img {
  box-shadow: 5px 5px 0 var(--paper), 5px 5px 0 1px var(--rule), 10px 10px 0 var(--paper), 10px 10px 0 1px var(--rule);
}
.hist-stack-count {
  position: absolute;
  top: 10px;
  right: 22px;
  min-width: 1.7rem;
  height: 1.7rem;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hist-lite {
  width: min(960px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 16px 18px 18px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  overflow: auto;
}
.hist-lite-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.hist-lite-pos {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.hist-lite-step {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.hist-lite-pos[hidden],
.hist-lite-step[hidden] {
  display: none;
}
.hist-lite-step button {
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
}
.hist-lite-frame {
  position: relative;
  min-height: min(42vh, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}
.hist-lite-frame::after {
  content: "Loading picture…";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  color: var(--ink-soft);
  opacity: 0;
  pointer-events: none;
}
.hist-lite.is-loading .hist-lite-frame::after { opacity: 1; }
.hist-lite.is-loading img { opacity: 0; }
.hist-lite::backdrop { background: rgba(13, 31, 34, 0.72); }
.hist-lite img {
  max-width: 100%;
  max-height: min(72vh, 820px);
  width: auto;
  height: auto;
  margin: 0 auto;
}
.hist-lite-frame.is-step img { cursor: pointer; }
/* Horizontal swipes go to the lightbox script; vertical drags still scroll. */
.hist-lite-frame.is-step { touch-action: pan-y; }
.hist-lite-frame img { -webkit-user-drag: none; user-select: none; }
.hist-lite-close {
  font: inherit;
  font-weight: 600;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.hist-lite-cap { margin: 12px 0 0; font-size: 0.92rem; color: var(--ink-soft); }
.hist-lite-cap strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.15rem; margin-bottom: 4px; }
.credit {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 8px;
}
.hist-roster {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
}
.hist-roster p { margin: 0; }

@media (max-width: 1099px) {
  .hero-photo {
    max-height: none;
    overflow: visible;
  }
  /* Full width, but capped so the notices below stay on the first screen of a tablet or small laptop. */
  .hero-photo img {
    height: auto;
    max-height: 280px;
    object-fit: cover;
    object-position: 50% 30%;
  }
  .hero-photo figcaption {
    position: static;
    background: var(--masthead);
    padding: 8px 10px;
  }
}
/* The 9 nav links fit on one row down to ~760px (tablets), so only phones get the Menu button. */
@media (max-width: 759px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin: 0;
    min-height: 40px;
    min-width: 40px;
    padding: 6px 10px;
    border: 1px solid rgba(184, 137, 58, 0.55);
    border-radius: 8px;
    background: transparent;
    color: var(--white);
    font: inherit;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
  }
  .nav-toggle-bars {
    display: block;
    width: 16px;
    height: 12px;
    background:
      linear-gradient(var(--gold), var(--gold)) 0 0 / 100% 2px no-repeat,
      linear-gradient(var(--gold), var(--gold)) 0 5px / 100% 2px no-repeat,
      linear-gradient(var(--gold), var(--gold)) 0 10px / 100% 2px no-repeat;
  }
  .masthead-inner { padding: 6px 0; }
  .masthead-bar { align-items: center; }
  .brand { padding: 2px 0; flex: 1; }
  .brand-meta { display: none; }
  .site-title { font-size: 1.2rem; }
  .site-nav-panel {
    display: none;
    border-top: 1px solid rgba(184, 137, 58, 0.32);
  }
  body.nav-open .site-nav-panel { display: flex; flex-direction: column; align-items: stretch; }
  .site-search { order: -1; flex: none; margin: 12px 0 0; padding: 4px 0; }
  .site-search input { font-size: 1.05rem; padding: 8px 0 8px 16px; }
  .site-search button { min-width: 44px; min-height: 40px; }
  .site-nav {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 4px;
    padding: 10px 0 16px;
  }
  .site-nav li { width: 100%; }
  .site-nav a {
    padding: 12px 14px;
    font-size: 1.05rem;
    border-radius: 8px;
    min-height: 44px;
  }
}
@media (max-width: 860px) {
  .grid, .footer-grid, .gallery { grid-template-columns: 1fr; }
  .hero {
    padding: 24px 0 8px;
    gap: 18px;
  }
  .page { padding: 20px 0 40px; }
  .jump a {
    padding: 10px 14px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .card { padding: 16px; }
}
@media (max-width: 520px) {
  .brand-meta { letter-spacing: 0.08em; }
}

/* Illustrations from images/art/ (art_picture() in includes/functions.php) and line icons (icon()). */
.icon { width: 1.25em; height: 1.25em; flex: none; }
.card-icon { display: block; width: 36px; height: 36px; color: var(--brick); margin-bottom: 8px; }
.with-icon { display: flex; align-items: center; gap: 10px; }
.with-icon .icon { width: 28px; height: 28px; color: var(--brick); }

.page-art { display: block; margin: 0 0 20px; }
.page-art img {
  width: 100%;
  height: clamp(180px, 30vw, 340px);
  object-fit: cover;
  object-position: 50% 30%; /* faces sit in the upper third of the header art */
  border: 1px solid var(--rule);
}
/* Art whose subject is at street level (the History tower): keep the storefronts, cars, and people. */
.page-art-low img { object-position: 50% 95%; }
.page-art-full img { height: auto; } /* banner with lettering baked in: never crop */
.art-figure { margin: 14px 0 0; max-width: 560px; }
.art-figure img { width: 100%; height: auto; border: 1px solid var(--rule); background: var(--surface); }
.art-wide { max-width: none; } /* lettered guides: full panel width so the text stays readable */
.art-wide a { display: block; }
.art-figure figcaption { margin-top: 6px; font-size: 0.88rem; color: var(--ink-soft); }
.art-figure figcaption span { display: block; }
.panel:has(.art-side) { display: flow-root; }

/* Moving: G3 site plan, drawn inline so labels stay sharp and follow dark mode. */
.site-plan svg { display: block; width: 100%; height: auto; border: 1px solid var(--rule); background: var(--surface); }
.sp-walk { fill: var(--surface); }
.sp-road { fill: var(--rule); }
.sp-median { fill: #8fcbb0; }
.sp-block { fill: var(--paper); stroke: var(--rule); stroke-width: 2; }
.sp-lot { fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-dasharray: 6 6; }
.sp-511 { fill: #f6efe0; stroke: var(--brick); stroke-width: 5; }
.sp-canopy { fill: #2f5d3a; }
.sp-dumpster { fill: #2a5caa; }
.sp-freight { fill: #b9c2c4; stroke: var(--gold); stroke-width: 4; }
.site-plan text { font-family: var(--sans); fill: var(--ink); }
.site-plan .sp-name { font-family: var(--serif); font-size: 52px; font-weight: 700; fill: #004c54; }
.sp-small { font-size: 18px; font-weight: 600; fill: var(--ink-soft) !important; }
.sp-street { font-size: 22px; font-weight: 600; letter-spacing: 0.02em; }
.sp-street-sm { font-size: 17px; }
.sp-north path { fill: var(--ink); }
.sp-north text { font-size: 16px; font-weight: 700; }
.sp-lead { stroke: var(--ink); stroke-width: 2; fill: none; }
.sp-pin circle { fill: var(--brick); stroke: var(--surface); stroke-width: 3; }
.sp-pin text { fill: var(--surface); font-size: 20px; font-weight: 700; }
.sp-pin-gold circle { fill: var(--gold); }
.sp-pin-gold text { fill: #1c211e; }
.site-plan-key { margin: 10px 0 0; padding-left: 1.4em; font-size: 0.92rem; }
.site-plan-key li { margin: 2px 0; }
@media (min-width: 861px) {
  .art-side { float: right; width: 300px; margin: 0 0 12px 20px; }
}
.art-404 img { width: min(420px, 100%); height: auto; margin: 4px 0 20px; border-radius: 10px; }
.footer-mark { display: flex; align-items: center; gap: 12px; }
.footer-emblem img { width: 44px; height: 44px; border-radius: 8px; }

/* Emergencies: who to call, in order. Fixed colors so the tiles read the same in dark mode. */
.call-order { margin: 0 0 24px; }
.call-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 761px) {
  .call-steps { grid-template-columns: 1.25fr 1fr 1fr; }
}
.call-step { position: relative; padding: 14px 16px 16px 58px; border-radius: 10px; }
.call-step strong { display: block; font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; margin-bottom: 4px; }
.call-step span:not(.call-num) { display: block; font-size: 0.95rem; }
.call-step a { color: inherit; }
.call-num {
  position: absolute;
  left: 16px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.22);
}
.call-911 { background: #b8412c; color: #fff; }
.call-911 strong { font-size: 1.9rem; }
.call-building { background: #004c54; color: #fff; }
.call-portal { background: #dce7df; color: #1c211e; }
.call-portal .call-num { background: rgba(0, 76, 84, 0.14); }
.call-side { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0 0; padding: 0; font-size: 0.92rem; }
.call-side li { display: flex; align-items: center; gap: 8px; }
.call-side .icon { width: 22px; height: 22px; color: var(--warn); }

/* Trash: sorting chart with its four column headings. */
.trash-chart { margin: 0; }
.trash-chart img { width: 100%; height: auto; display: block; }
.trash-chart-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
  font-size: clamp(0.68rem, 1.6vw, 0.85rem);
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
}

/* Access: the four callbox steps. */
.callbox-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: callbox; }
.callbox-steps li { counter-increment: callbox; margin: 0; font-size: 0.85rem; }
@media (min-width: 861px) {
  .callbox-steps { gap: 12px; }
  .callbox-steps li { font-size: 0.9rem; }
}
.callbox-steps img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--rule); margin-bottom: 6px; }
.callbox-steps span::before { content: counter(callbox) ". "; font-weight: 700; }

/* Your unit: water-heater age bar. */
.wh-age { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.wh-age-icon img { width: 72px; height: 72px; border-radius: 8px; }
.wh-age-bar {
  flex: 1;
  display: grid;
  grid-template-columns: 8fr 2fr 2.5fr 3fr;
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}
.wh-age-bar span { padding: 7px 6px; }
.wh-ok { background: #cfe0d2; color: #1c211e; }
.wh-aging { background: #ead9a6; color: #1c211e; }
.wh-plan { background: #8a4b12; color: #fff; }
.wh-over { background: #b8412c; color: #fff; }

/* History: illustrated four-corners map with HTML labels (positions match g12-four-corners.jpg). */
.corners-map { position: relative; max-width: 560px; }
.corners-map img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); }
.cm-label,
.cm-street,
.cm-north { position: absolute; transform: translate(-50%, -50%); text-align: center; line-height: 1.25; }
.cm-label {
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(247, 248, 244, 0.92);
  color: #1c211e;
  font-size: clamp(0.66rem, 2.1vw, 0.85rem);
}
.cm-label strong { display: block; font-family: var(--serif); }
.cm-nw { left: 29%; top: 25%; }
.cm-ne { left: 71%; top: 25%; }
.cm-sw { left: 29%; top: 69%; }
.cm-se { left: 69%; top: 66%; background: #004c54; color: #fff; border: 1px solid #c4a35a; }
.cm-street {
  padding: 2px 6px;
  background: rgba(238, 241, 235, 0.9);
  color: #6b4f17;
  font-size: clamp(0.58rem, 1.7vw, 0.72rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cm-broad { left: 50%; top: 22%; transform: translate(-50%, -50%) rotate(-90deg); }
.cm-sg { left: 16%; top: 46%; }
.cm-north { left: 10.4%; top: 78.5%; font-family: var(--serif); font-weight: 700; color: #6b4f17; font-size: clamp(0.7rem, 2vw, 0.95rem); }

@media print {
  .page-art, .art-404 { display: none; }
  .skip, .site-nav, .site-search, .search-form, .nav-toggle, .jump, .hist-toolbar, .hist-lite { display: none; }
  .masthead { background: none; color: #000; padding: 0; position: static; }
  .emergency-strip { background: none; color: #000; border-bottom: 1px solid #000; }
  .emergency-strip strong, .emergency-strip a, .emergency-strip a.emergency-strip-more { color: #000; }
  .site-title a, .brand-meta { color: #000; }
  .brand-meta { color: #333; }
  body { background: #fff; }
  .panel, .card, .alert { box-shadow: none; }
  a { color: #000; }
  footer { color: #000; background: none; }
  footer a { color: #000; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
  .hist-lite.is-loading img { opacity: 1; }
  .hist-lite-frame::after { display: none; }
}
