/* ============================================================
   BuildX City ADU Page Styles
   Used by: plymouth.php and the 40-city ADU rules pages under
   /adu-rules-massachusetts/{city}/
   Loads AFTER global.css. Only includes components specific to
   the city-rules pattern; layout/buttons/grid come from global.
   ============================================================ */

/* ===== CITY-PAGE COLOR TOKENS ===========================
   These are richer than global.css for the editorial city page
   layouts. Same brand palette, refined for component density. */
:root {
  --bx-black: #000000;  /* was #111111 -- unified 2026-08-24 */
  --bx-charcoal: #1F1F1F;
  --bx-dark-gray: #333333;
  --bx-gray: #6B6B6B;
  --bx-gray-soft: #8A8A8A;
  --bx-light-gray: #F2F1ED;
  --bx-border: #E5E2DB;
  --bx-border-soft: #EFEDE7;
  --bx-gold: #F5A623;
  --bx-gold-soft: #FBE5BB;
  --bx-white: #FFFFFF;
  --bx-bg: #f8f8f8;
  --bx-card: #FFFFFF;

  --bx-success: #1F8A3F;
  --bx-success-bg: #E8F5EC;
  --bx-warning: #B45309;
  --bx-warning-bg: #FFFBEB;
  --bx-danger: #B91C1C;
  --bx-danger-bg: #FEF2F2;
  --bx-info: #1E40AF;
  --bx-info-bg: #EFF6FF;

  --bx-shadow-sm: 0 1px 2px rgba(17,17,17,0.04);
  --bx-shadow-md: 0 1px 3px rgba(17,17,17,0.05), 0 4px 12px rgba(17,17,17,0.04);
  --bx-radius: 14px;
  --bx-radius-sm: 8px;
}

/* ===== PAGE BASE ===================================== */
body.city-page {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--bx-dark-gray);
  background: var(--bx-bg);
  line-height: 1.65;
}

body.city-page h1,
body.city-page h2,
body.city-page h3,
body.city-page h4 {
  letter-spacing: -0.01em;
}
body.city-page h1 { font-size: clamp(1.85rem, 6vw, 2.75rem); line-height: 1.15; letter-spacing: -0.02em; }
body.city-page h2 { font-size: clamp(1.4rem, 4vw, 1.875rem); line-height: 1.25; }
body.city-page h3 { font-size: clamp(1.1rem, 3vw, 1.25rem); line-height: 1.3; }

body.city-page p { margin: 0.6rem 0; }

/* Body-content link override for city editorial pages */
.body-content a { color: var(--bx-black); border-bottom: 1px solid var(--bx-gold); text-decoration: none; }
.body-content a:hover { color: var(--bx-gold); }

/* Focus visibility on summary/input/etc. */
.body-content a:focus-visible,
.body-content button:focus-visible,
.body-content summary:focus-visible,
.body-content input:focus-visible {
  outline: 3px solid var(--bx-gold);
  outline-offset: 3px;
}

/* ===== INLINE SVG ICON SIZING ======================== */
.city-page .bx-card__icon svg,
.city-page .answer-card__icon svg,
.city-page .bd-icon svg,
.city-page .sequence-warning__icon svg {
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}
.city-page .bx-card__icon svg,
.city-page .answer-card__icon svg {
  width: 1.5em;
  height: 1.5em;
}

/* ===== ANCHOR OFFSET (sticky header compensation) ==== */
.city-page [id] {
  scroll-margin-top: 80px;
}

/* ===== CITY PAGE MOBILE CONSTRAINT =================== */
.city-page .main-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 7.5vw 0;
}
@media (min-width: 768px) {
  .city-page .main-content { padding: 0 2rem 0; }
}
@media (min-width: 1200px) {
  .city-page .main-content { padding: 0; }
}

/* ===== SECTION SPACING (30px+ between all stacked sections) === */
.city-page .main-content > section,
.city-page .main-content > .mini-cta,
.city-page .main-content > .answer-card,
.city-page .main-content > details {
  margin-top: 2rem;
}
.city-page .main-content > section:first-child {
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .city-page .main-content > section,
  .city-page .main-content > .mini-cta,
  .city-page .main-content > .answer-card,
  .city-page .main-content > details {
    margin-top: 2.5rem;
  }
  .city-page .main-content > section:first-child {
    margin-top: 1.5rem;
  }
}

/* ===== PAGE CONTAINER ================================ */
.page-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2.5rem;
}
@media (min-width: 768px) {
  .page-container { padding: 2rem 2rem 4rem; }
}

.page-container > section { margin-top: 2rem; }
@media (min-width: 768px) {
  .page-container > section { margin-top: 3rem; }
}

/* ===== BREADCRUMB ==================================== */
.breadcrumb {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem 0;
  font-size: 0.825rem;
  color: var(--bx-gray);
}
.breadcrumb a { color: var(--bx-gray); border-bottom: none; }
.breadcrumb a:hover { color: var(--bx-gold); }
.breadcrumb .current { color: var(--bx-black); font-weight: 600; }
.breadcrumb-sep { margin: 0 0.4rem; color: var(--bx-border); }

/* ===== SECTION EYEBROW + INTRO ======================== */
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bx-gray);
  margin-bottom: 0.5rem;
}
.section-intro {
  font-size: 1rem;
  color: var(--bx-dark-gray);
  margin: 0.4rem 0 0.85rem;
  max-width: 760px;
}
.muted-note {
  font-size: 0.82rem;
  color: var(--bx-gray);
  margin-top: 0.85rem;
  line-height: 1.5;
}
hr.bx-divider { border: none; border-top: 1px solid var(--bx-border); margin: 2rem 0; }

/* ===== HERO ========================================== */
.hero {
  text-align: center;
  margin-top: 1rem;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 { margin: 0 auto; max-width: 720px; }
.hero__byline {
  margin: 0.5rem auto 0;
  max-width: 720px;
  font-size: 0.92rem;
  color: var(--bx-gray);
  font-weight: 500;
}
.hero__byline a {
  color: var(--bx-dark-gray);
  border-bottom: 1px solid var(--bx-gold);
}
.hero__byline a:hover { color: var(--bx-black); }
.hero__byline strong { color: var(--bx-black); font-weight: 700; }

.hero__answer {
  margin: 0.85rem auto 0;
  max-width: 640px;
  font-size: 1.05rem;
  color: var(--bx-dark-gray);
  line-height: 1.55;
}
.hero__answer strong { color: var(--bx-black); }

.hero__verify {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.9rem;
  margin: 1rem auto 0;
  max-width: 720px;
  width: 100%;
  font-size: 0.78rem;
  color: var(--bx-gray);
  font-weight: 500;
  text-align: center;
}
.hero__verify span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  justify-content: center;
}
.hero__verify .dot {
  width: 6px;
  height: 6px;
  background: var(--bx-success);
  border-radius: 50%;
  display: inline-block;
}

.hero__phone {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--bx-gray);
}
.hero__phone a {
  color: var(--bx-black);
  font-weight: 700;
  border-bottom: 1px solid var(--bx-gold);
}
@media (max-width: 768px) {
  .hero__phone { display: none; }
}

/* ===== ADDRESS WIDGET (no-input variant) =============
   Updated: input field removed. Label + CTA button + note
   remain. Button is now a link to the consultation URL. */
.address-widget {
  background: var(--bx-card);
  border: 1px solid var(--bx-border);
  border-radius: var(--bx-radius);
  padding: 1.25rem;
  margin: 1.5rem auto 0;
  max-width: 680px;
  box-shadow: var(--bx-shadow-md);
  text-align: center;
}
.address-widget__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bx-gray);
  margin-bottom: 0.5rem;
}
.address-widget__row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.address-widget__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  background: var(--bx-black);
  color: var(--bx-white);
  border: none;
  border-bottom: none;
  border-radius: var(--bx-radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
  width: 100%;
}
@media (min-width: 560px) {
  .address-widget__cta { width: auto; }
}
.address-widget__cta:hover {
  background: var(--bx-gold);
  color: var(--bx-black);
}
.address-widget__note {
  margin: 0.7rem 0 0;
  font-size: 0.82rem;
  color: var(--bx-gray);
  line-height: 1.5;
}

/* ===== ANSWER CARD =================================== */
.answer-card {
  background: var(--bx-card);
  border: 1px solid var(--bx-border);
  border-radius: var(--bx-radius);
  padding: 1.5rem;
  box-shadow: var(--bx-shadow-md);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .answer-card { padding: 1.75rem 2rem; }
}
.answer-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bx-success-bg);
  color: var(--bx-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
}
@media (max-width: 420px) {
  .answer-card { flex-direction: column; }
  .answer-card__icon { margin-bottom: 0.75rem; }
}
.answer-card__body { flex: 1; min-width: 0; }
.answer-card__body h2 { font-size: clamp(1.2rem, 3.5vw, 1.5rem); margin-bottom: 0.4rem; }
.answer-card__tally {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bx-light-gray);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bx-black);
  margin-bottom: 0.7rem;
}

/* ===== AEO COMPACT ANSWER BLOCK ====================== */
.aeo-block {
  background: var(--bx-light-gray);
  border-left: 3px solid var(--bx-gold);
  border-radius: var(--bx-radius-sm);
  padding: 0.9rem 1.1rem;
  margin-top: 1rem;
}
.aeo-block__q {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bx-black);
  margin: 0 0 0.35rem;
}
.aeo-block__a {
  font-size: 0.92rem;
  color: var(--bx-dark-gray);
  margin: 0;
  line-height: 1.55;
}

/* ===== PILLS ========================================== */
.pill-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.85rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--bx-light-gray);
  border: 1px solid var(--bx-border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bx-dark-gray);
  white-space: nowrap;
}
.pill--success { background: var(--bx-success-bg); border-color: #C8E6D2; color: var(--bx-success); }
.pill--gold { background: var(--bx-gold-soft); border-color: #F5D29B; color: #8A5A0A; }
.pill--danger { background: var(--bx-danger-bg); border-color: #FBD3D3; color: var(--bx-danger); }
.pill--warning { background: var(--bx-warning-bg); border-color: #F4DDA8; color: var(--bx-warning); }
.pill--info { background: var(--bx-info-bg); border-color: #C9D7F5; color: var(--bx-info); }
.pill--dark { background: var(--bx-black); border-color: var(--bx-black); color: var(--bx-white); }

/* ===== SUMMARY GRID =================================== */
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .summary-grid { grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
}
.summary-card {
  background: var(--bx-card);
  border: 1px solid var(--bx-border);
  border-radius: var(--bx-radius);
  padding: 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  box-shadow: var(--bx-shadow-sm);
  min-height: 96px;
}
@media (min-width: 768px) {
  .summary-card { padding: 1.1rem 1.2rem; min-height: 110px; }
}
.summary-card__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bx-gray);
}
.summary-card__value {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--bx-black);
  line-height: 1.25;
}
.summary-card__sub { font-size: 0.78rem; color: var(--bx-gray); margin-top: 0.1rem; }

/* ===== DETAILS / ACCORDIONS ========================== */
details.bx-details {
  background: var(--bx-card);
  border: 1px solid var(--bx-border);
  border-radius: var(--bx-radius);
  margin-top: 0.7rem;
  overflow: hidden;
  box-shadow: var(--bx-shadow-sm);
}
details.bx-details[open] { box-shadow: var(--bx-shadow-md); }
details.bx-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--bx-black);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
  flex-wrap: nowrap;
}
details.bx-details > summary .pill {
  flex-shrink: 0;
}
details.bx-details > summary::-webkit-details-marker { display: none; }
details.bx-details > summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--bx-gray);
  flex-shrink: 0;
  margin-left: auto;
  transition: transform 0.2s ease;
  line-height: 1;
}
details.bx-details[open] > summary::after { content: "\2212"; }
details.bx-details > summary:hover { background: var(--bx-bg); }
details.bx-details .details-body {
  padding: 0 1.1rem 1.1rem;
  font-size: 0.95rem;
  border-top: 1px solid var(--bx-border-soft);
  padding-top: 1rem;
}
details.bx-details .details-body p:first-child { margin-top: 0; }
details.bx-details .details-body p:last-child { margin-bottom: 0; }
details.bx-details .details-body ul,
details.bx-details .details-body ol { padding-left: 1.2rem; margin: 0.5rem 0; }
details.bx-details .details-body li { margin-bottom: 0.3rem; }

/* Auto-open accordions when targeted by URL hash */
details.bx-details:target { box-shadow: var(--bx-shadow-md); }
details.bx-details:target > summary { background: var(--bx-bg); }

/* ===== CARD GRID ===================================== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 1.1rem;
  align-items: start;
}
@media (min-width: 600px) {
  .card-grid--2 {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
  }
  .card-grid--2 > .card-grid__col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }
}
@media (min-width: 900px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ===== BX-CARD ======================================= */
.bx-card {
  background: var(--bx-card);
  border: 1px solid var(--bx-border);
  border-radius: var(--bx-radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--bx-shadow-sm);
}
.bx-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.bx-card h4 { font-size: 0.95rem; margin: 0 0 0.35rem; }
.bx-card p { font-size: 0.92rem; color: var(--bx-dark-gray); margin: 0.35rem 0; }
.bx-card__head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.bx-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bx-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ===== CALLOUTS ====================================== */
.callout {
  border-radius: var(--bx-radius);
  padding: 1rem 1.15rem;
  margin: 1rem 0;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.93rem;
  border: 1px solid var(--bx-border);
}
.callout--warning { background: var(--bx-warning-bg); border-color: #F4DDA8; }
.callout--info { background: var(--bx-info-bg); border-color: #C9D7F5; }
.callout--gold { background: #FFFDF7; border-color: var(--bx-gold-soft); }
.callout__icon { flex-shrink: 0; font-size: 1.1rem; line-height: 1.4; }
.callout__body p:first-child { margin-top: 0; }
.callout__body p:last-child { margin-bottom: 0; }

/* ===== MINI-CTA ====================================== */
.mini-cta {
  background: var(--bx-card);
  border: 1px solid var(--bx-border);
  border-left: 4px solid var(--bx-gold);
  border-radius: var(--bx-radius);
  padding: 1.25rem 1.4rem;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
  box-shadow: var(--bx-shadow-sm);
}
@media (min-width: 768px) {
  .mini-cta { flex-direction: row; align-items: center; justify-content: space-between; }
}
.mini-cta__text {
  flex: 1;
  font-size: 0.95rem;
  color: var(--bx-dark-gray);
}
.mini-cta__text strong { color: var(--bx-black); }
.mini-cta a {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--bx-black);
  color: var(--bx-white);
  border-radius: var(--bx-radius-sm);
  border-bottom: none;
  white-space: nowrap;
  text-decoration: none;
}
.mini-cta a:hover { background: var(--bx-gold); color: var(--bx-black); }
.mini-cta a.ghost {
  background: var(--bx-white);
  color: var(--bx-black);
  border: 1px solid var(--bx-black);
}
.mini-cta a.ghost:hover { background: var(--bx-light-gray); }

/* ===== STAT-LIST ====================================== */
.stat-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}
@media (min-width: 560px) {
  .stat-list { grid-template-columns: 1fr 1fr; }
}
.stat-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--bx-border-soft);
  font-size: 0.9rem;
}
.stat-list li:last-child { border-bottom: none; }
.stat-list strong { color: var(--bx-black); font-weight: 600; }
.stat-list span { color: var(--bx-gray); font-size: 0.85rem; text-align: right; }

/* ===== DATA ROWS ====================================== */
.data-rows { margin-top: 0.6rem; border-top: 1px solid var(--bx-border-soft); }
.data-rows__row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--bx-border-soft);
  font-size: 0.92rem;
}
@media (min-width: 600px) {
  .data-rows__row { flex-direction: row; align-items: baseline; gap: 1rem; }
}
.data-rows__label {
  font-weight: 600;
  color: var(--bx-black);
  font-size: 0.85rem;
  flex-shrink: 0;
}
@media (min-width: 600px) {
  .data-rows__label { width: 220px; }
}
.data-rows__value { color: var(--bx-dark-gray); flex: 1; }

/* ===== COST HEADLINE ================================== */
.cost-headline {
  background: var(--bx-card);
  border: 1px solid var(--bx-border);
  border-left: 4px solid var(--bx-gold);
  border-radius: var(--bx-radius);
  padding: 1.25rem 1.4rem;
  margin-top: 1rem;
  box-shadow: var(--bx-shadow-sm);
}
.cost-headline__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--bx-gray);
  margin-bottom: 0.3rem;
}
.cost-headline__range {
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 800;
  color: var(--bx-black);
  letter-spacing: -0.01em;
  display: block;
  line-height: 1.1;
}
.cost-headline__note {
  font-size: 0.82rem;
  color: var(--bx-gray);
  margin-top: 0.4rem;
  font-style: italic;
}

/* ===== TIMELINE ======================================= */
.timeline { list-style: none; margin: 1rem 0 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--bx-border);
}
.timeline__item { position: relative; padding-left: 44px; margin-bottom: 1.25rem; }
.timeline__item:last-child { margin-bottom: 0; }
.timeline__step {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bx-black);
  color: var(--bx-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 1;
}
.timeline__body h3 { font-weight: 700; color: var(--bx-black); font-size: 1rem; margin: 0 0 0.2rem; }
.timeline__body { font-size: 0.92rem; color: var(--bx-dark-gray); }
.timeline__body p { margin: 0.4rem 0 0; }
.timeline__body ol, .timeline__body ul { padding-left: 1.2rem; margin: 0.4rem 0 0; }
.timeline__body li { margin-bottom: 0.25rem; }
.timeline__duration {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bx-warning);
  margin: 0.15rem 0 0.5rem !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ===== SEQUENCE WARNING =============================== */
.sequence-warning {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bx-warning-bg);
  border-left: 4px solid var(--bx-warning);
  border-radius: var(--bx-radius);
  padding: 1.1rem 1.25rem;
  margin: 1rem 0 1.5rem;
}
.sequence-warning__icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.sequence-warning__body { font-size: 0.95rem; line-height: 1.55; color: var(--bx-dark-gray); }
.sequence-warning__body strong { color: var(--bx-black); }

/* ===== BUILDING DEPARTMENT CARD ======================= */
.bd-card {
  background: var(--bx-card);
  border: 1px solid var(--bx-border);
  border-radius: var(--bx-radius);
  padding: 1.25rem;
  box-shadow: var(--bx-shadow-md);
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .bd-card { padding: 1.75rem; }
}
.bd-card h3 { font-size: 1.05rem; margin-bottom: 0.85rem; }
.bd-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 0.55rem; }
.bd-list li { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.92rem; line-height: 1.45; }
.bd-list .bd-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bx-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.bd-list .label { font-weight: 600; color: var(--bx-black); display: block; font-size: 0.85rem; }

.bd-hours { margin-top: 0.4rem; font-size: 0.88rem; }
.bd-hours__row {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  border-bottom: 1px dashed var(--bx-border-soft);
}
.bd-hours__row:last-child { border-bottom: none; }
.bd-hours__row--highlight { font-weight: 700; color: var(--bx-black); }

.bd-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.bd-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--bx-radius-sm);
  border-bottom: none;
  text-decoration: none;
}
.bd-actions a.primary { background: var(--bx-black); color: var(--bx-white); }
.bd-actions a.primary:hover { background: var(--bx-gold); color: var(--bx-black); }
.bd-actions a.ghost {
  background: var(--bx-white);
  color: var(--bx-black);
  border: 1px solid var(--bx-black);
}
.bd-actions a.ghost:hover { background: var(--bx-light-gray); }

/* ===== EXPERT QUOTE =================================== */
.expert-quote {
  background: var(--bx-card);
  border: 1px solid var(--bx-border);
  border-left: 4px solid var(--bx-gold);
  border-radius: var(--bx-radius);
  padding: 1.5rem;
  margin: 1rem 0 0;
  box-shadow: var(--bx-shadow-sm);
}
.expert-quote blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--bx-black);
  font-weight: 500;
  line-height: 1.45;
  margin: 0 0 0.85rem;
  padding: 0;
  border: none;
}
.expert-quote blockquote::before { content: "\201C"; color: var(--bx-gold); margin-right: 0.1rem; }
.expert-quote blockquote::after { content: "\201D"; color: var(--bx-gold); margin-left: 0.1rem; }
.expert-quote figcaption { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.88rem; }
.expert-quote .name { font-weight: 700; color: var(--bx-black); }
.expert-quote .title { color: var(--bx-dark-gray); font-size: 0.85rem; }
.expert-quote .source-line { color: var(--bx-gray); font-size: 0.8rem; }
.expert-quote .source-line a { color: var(--bx-gray); border-bottom: 1px solid var(--bx-border); }
.expert-quote .source-line a:hover { color: var(--bx-gold); border-color: var(--bx-gold); }

/* ===== BYLAW QUOTE ==================================== */
.bylaw-quote {
  background: var(--bx-light-gray);
  border-left: 3px solid var(--bx-black);
  border-radius: var(--bx-radius-sm);
  padding: 1rem 1.15rem;
  margin: 0.85rem 0;
  font-style: italic;
  color: var(--bx-dark-gray);
  font-size: 0.93rem;
}
.bylaw-quote .citation {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--bx-gray);
  margin-top: 0.5rem;
}

/* ===== ADU HOME TOUR AD (replaces full Home Tour section) ====
   Compact, succinct, single-CTA card pointing to /adu-home-tour/ */
.adu-ad {
  background: var(--bx-black);
  color: var(--bx-white);
  border-radius: var(--bx-radius);
  padding: 1.5rem 1.5rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .adu-ad {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 2rem;
    gap: 1.5rem;
  }
}
.adu-ad__eyebrow {
  display: inline-block;
  background: var(--bx-gold);
  color: var(--bx-black);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.adu-ad__body { flex: 1; min-width: 0; }
.adu-ad__title {
  color: var(--bx-white);
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.4rem;
}
.adu-ad__text {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}
.adu-ad__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--bx-gold);
  color: var(--bx-black);
  border-radius: var(--bx-radius-sm);
  border-bottom: none;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.adu-ad__cta:hover { background: var(--bx-white); color: var(--bx-black); }

/* ===== TOPICS GRID ==================================== */
.topics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-top: 1rem;
}
@media (min-width: 600px) {
  .topics-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .topics-grid { grid-template-columns: repeat(3, 1fr); }
}
.topic-card {
  background: var(--bx-card);
  border: 1px solid var(--bx-border);
  border-radius: var(--bx-radius);
  padding: 0.95rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--bx-black) !important;
  border-bottom: 1px solid var(--bx-border) !important;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
  box-shadow: var(--bx-shadow-sm);
  text-decoration: none;
}
.topic-card:hover {
  border-color: var(--bx-gold) !important;
  background: var(--bx-card);
  color: var(--bx-black) !important;
}
.topic-card__arrow { color: var(--bx-gray); font-weight: 500; font-size: 0.85rem; flex-shrink: 0; }
.topic-card:hover .topic-card__arrow { color: var(--bx-gold); }
.topic-card--featured {
  background: var(--bx-light-gray);
  border-color: var(--bx-gold);
  border-width: 2px;
  font-weight: 700;
}
.topic-card--featured:hover {
  background: var(--bx-gold-soft);
}

/* ===== SOURCES ======================================== */
.sources-block .sources-list {
  list-style: decimal;
  padding-left: 1.3rem;
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--bx-dark-gray);
}
.sources-block .sources-list li { margin-bottom: 0.5rem; line-height: 1.5; }
.sources-group__title {
  font-weight: 700;
  color: var(--bx-black);
  font-size: 0.92rem;
  margin: 1rem 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sources-group:first-child .sources-group__title { margin-top: 0; }

/* ===== INLINE CITATION PILLS ========================== */
a.cite {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--bx-info);
  background: var(--bx-info-bg);
  padding: 0.05rem 0.45rem;
  border-radius: 3px;
  margin: 0 0.15rem;
  border: none;
  border-bottom: none !important;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: baseline;
  line-height: 1.4;
}
a.cite:hover {
  background: var(--bx-info);
  color: var(--bx-white);
  text-decoration: none;
}
a.cite:focus-visible {
  outline: 2px solid var(--bx-gold);
  outline-offset: 2px;
}

/* Ensure source list items have scroll margin so citation pills land cleanly */
.sources-list li {
  scroll-margin-top: 5rem;
}

/* ===== NEARBY (4-card geographic neighbors) =========== */
.nearby-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; margin-top: 1rem; }
@media (min-width: 600px) {
  .nearby-grid { grid-template-columns: repeat(4, 1fr); }
}
.city-card {
  background: var(--bx-card);
  border: 1px solid var(--bx-border);
  border-radius: var(--bx-radius);
  padding: 0.95rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-bottom: 1px solid var(--bx-border) !important;
  color: var(--bx-black) !important;
  box-shadow: var(--bx-shadow-sm);
  text-decoration: none;
}
.city-card:hover { border-color: var(--bx-gold) !important; }
.city-card__name { font-weight: 700; font-size: 1rem; color: var(--bx-black); }
.city-card__detail { font-size: 0.82rem; color: var(--bx-gray); }

/* ===== 40-CITY NAV (city-rules-nav.php include) ======= */
.city-nav { margin-top: 2rem; }
@media (min-width: 768px) { .city-nav { margin-top: 3rem; } }
.city-nav__areas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}
@media (min-width: 600px) {
  .city-nav__areas { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .city-nav__areas { grid-template-columns: repeat(4, 1fr); }
}
.city-nav__area {
  background: var(--bx-card);
  border: 1px solid var(--bx-border);
  border-radius: var(--bx-radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--bx-shadow-sm);
}
.city-nav__area-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bx-black);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bx-gold);
}
.city-nav__area-count {
  color: var(--bx-gray);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: none;
  margin-left: 0.25rem;
}
.city-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.city-nav__item {
  font-size: 0.88rem;
  line-height: 1.4;
}
.city-nav__item a {
  display: block;
  padding: 0.3rem 0;
  color: var(--bx-dark-gray);
  border-bottom: none;
  text-decoration: none;
  transition: color 0.15s ease;
}
.city-nav__item a:hover { color: var(--bx-gold); }
.city-nav__item--current {
  padding: 0.3rem 0;
  color: var(--bx-black);
  font-weight: 700;
}
.city-nav__current-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--bx-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 0.25rem;
}

/* ===== FINAL CTA ====================================== */
.final-cta {
  background: var(--bx-card);
  border: 1px solid var(--bx-border);
  border-radius: var(--bx-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  margin-top: 2rem;
  box-shadow: var(--bx-shadow-md);
}
@media (min-width: 768px) {
  .final-cta { padding: 2.75rem 2.5rem; }
}
.final-cta h2 { font-size: clamp(1.4rem, 4vw, 1.85rem); margin-bottom: 0.6rem; }
.final-cta__sub {
  margin: 0 auto 1.5rem;
  color: var(--bx-dark-gray);
  font-size: 0.95rem;
  text-align: center;
}
.final-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}
@media (min-width: 600px) {
  .final-cta__actions { flex-direction: row; }
}
.final-cta__actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  border-radius: var(--bx-radius-sm);
  border-bottom: none;
  font-size: 0.95rem;
  min-width: 200px;
  justify-content: center;
  text-decoration: none;
}
.final-cta__actions a.primary { background: var(--bx-black); color: var(--bx-white); }
.final-cta__actions a.primary:hover { background: var(--bx-gold); color: var(--bx-black); }
.final-cta__actions a.ghost {
  background: var(--bx-white);
  color: var(--bx-black);
  border: 1px solid var(--bx-black);
}
.final-cta__actions a.ghost:hover { background: var(--bx-light-gray); }
.final-cta__phone {
  display: block;
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--bx-gray);
}
.final-cta__phone a {
  color: var(--bx-black);
  font-weight: 700;
  border-bottom: 1px solid var(--bx-gold);
}

/* ===== FEASIBILITY MATRIX TABLE ======================= */
.matrix-wrap {
  overflow-x: auto;
  margin: 0.5rem 0 1.5rem;
  border: 1px solid var(--bx-border);
  border-radius: var(--bx-radius);
}
.feasibility-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.feasibility-matrix th {
  background: var(--bx-light-gray);
  text-align: left;
  padding: 0.7rem 0.85rem;
  font-weight: 700;
  color: var(--bx-black);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--bx-border);
}
.feasibility-matrix td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--bx-border-soft);
  vertical-align: top;
  line-height: 1.45;
}
.feasibility-matrix tbody tr:last-child td { border-bottom: none; }
.feasibility-matrix tfoot td {
  background: var(--bx-light-gray);
  border-top: 1px solid var(--bx-border);
}

/* ===== FIELD NOTE BOX ================================= */
.field-note {
  background: var(--bx-white);
  border-left: 4px solid var(--bx-gold);
  border-radius: 0 var(--bx-radius) var(--bx-radius) 0;
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
  box-shadow: var(--bx-shadow-sm);
}
.field-note__label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bx-gold);
  margin-bottom: 0.5rem;
}
.field-note p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--bx-dark-gray);
  font-style: italic;
}

/* ===== ASSET PLACEHOLDERS (used by plymouth-projects.php) === */
.asset-placeholder {
  border: 2px dashed var(--bx-warning);
  background: var(--bx-warning-bg);
  border-radius: var(--bx-radius);
  padding: 1.25rem;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 200px;
  color: var(--bx-warning);
}
.asset-placeholder__label {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.asset-placeholder__name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--bx-black);
  margin-bottom: 0.4rem;
}
.asset-placeholder__owner {
  font-size: 0.85rem;
  color: var(--bx-dark-gray);
  font-style: italic;
}
.asset-placeholder__type-image::before {
  content: "\1F4F7";
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}
.asset-placeholder__type-video::before {
  content: "\1F3A5";
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}
.asset-placeholder__type-floorplan::before {
  content: "\1F4D0";
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}
.asset-placeholder__type-fieldnote::before {
  content: "\270D\FE0F";
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* ===== PROJECT CARDS (used by plymouth-projects.php) === */
.project-card {
  display: flex;
  flex-direction: column;
}
.project-card h3 {
  margin: 0.85rem 0 0.5rem;
  font-size: 1.1rem;
}
.placeholder-text {
  color: var(--bx-warning);
  font-style: italic;
  font-weight: 600;
}

/* ===== SR-ONLY UTILITY ================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}