/* 3920 Mystic River Park — independent owner site
   Redesign preview v2: clean "civic/association" look — white centered masthead,
   uppercase letter-spaced horizontal nav, deep-navy panels and bands, heavy sans headlines.
   Plain CSS, no frameworks, no external requests.
   Headline font: Open Sans (SIL OFL 1.1, self-hosted — see fonts/OFL.txt).
   Body font: Helvetica / Arial system stack. */

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #102e59;
  --navy-deep: #0b2447;
  --navy-press: #0e2951;
  --ink: #151515;
  --body: #4f4f4f;
  --muted: #5e5e5e;
  --tint: #f0f3fd;
  --line: #e2e6f0;
  --line-strong: #c9cfdd;
  --on-dark: #afb6ca;
  --on-dark-2: #c6c9d5;
  --bright: #0275d8;           /* reference bright blue, darkened slightly for AA contrast with white text */
  --radius-btn: 12px;
  --container: 1112px;
  --measure: 44rem;            /* ~70 characters */
  --gutter: 24px;
  --bar-h: 64px;
  --head: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wide: min(var(--container), calc(100vw - 2 * var(--gutter)));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
code { font-family: var(--mono); font-size: 0.88em; }
strong { color: var(--ink); font-weight: 700; }

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color .2s, background-color .2s, border-color .2s;
}
a:hover { color: var(--bright); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; }

/* ---------- Page order: disclaimer strip, masthead, nav, content, footer ---------- */
.layout { display: contents; }
.masthead-meta { order: 0; }
.site-header { order: 1; }
.rail { order: 2; }
.content { order: 3; flex: 1 0 auto; }
.site-footer { order: 4; }

/* Disclaimer strip */
.masthead-meta {
  background: var(--navy-deep);
  color: var(--on-dark-2);
  text-align: center;
  padding: 0.6rem var(--gutter);
  font-size: 0.8rem;
  line-height: 1.5;
}
.masthead-meta p { margin: 0 auto; max-width: 70rem; }
.masthead-meta .sub {
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.083em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}

/* Masthead: centered wordmark */
.site-header { background: #fff; }
.masthead {
  display: flex;
  justify-content: center;
  padding: 2.25rem var(--gutter) 1.1rem;
  text-align: center;
}
.brand, .rail-brand {
  margin: 0;
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand a, .rail-brand a { color: var(--navy); text-decoration: none; }
.brand a:hover, .rail-brand a:hover { color: var(--navy-press); }

/* ---------- Horizontal nav ---------- */
.rail {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0.35rem var(--gutter) 1.35rem;
}
.rail nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 1.7rem;
  max-width: 76rem;
  margin: 0 auto;
}
.rail nav > a {
  padding: 0.3rem 0 0.35rem;
  border-bottom: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.rail nav > a:hover { color: var(--navy); }
.rail nav > a[aria-current="page"] { border-bottom-color: var(--ink); }
.rail .nav-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8b93a9;
  margin-right: -0.7rem;
}
.rail .sep { width: 1px; height: 1rem; background: var(--line-strong); }

.page-home .rail-brand { flex-basis: 100%; text-align: center; padding: 2.25rem 0 0.8rem; }

/* ---------- Menu button (mobile only) ---------- */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  position: fixed;
  top: calc((var(--bar-h) - 40px) / 2);
  left: 0.6rem;
  z-index: 70;
  height: 40px;
  padding: 0 0.7rem;
  font: 700 0.7rem/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: var(--radius-btn);
  cursor: pointer;
}
.menu-toggle::before {
  content: "";
  width: 18px; height: 12px;
  background:
    linear-gradient(currentColor, currentColor) top / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) bottom / 100% 2px no-repeat;
}
.menu-toggle[aria-expanded="true"]::before {
  width: 16px; height: 16px;
  background:
    linear-gradient(45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(-45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px));
}

/* ---------- Content column ---------- */
.content { background: #fff; padding: 0 0 5rem; min-width: 0; }
.content > .inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
article { display: flex; flex-direction: column; }

/* Page title band (navy, slanted lower edge) */
.inner > h1, article > h1 {
  order: -1;
  align-self: center;
  width: 100vw;
  max-width: none;
  margin: 0 0 3.25rem;
  padding: 4.25rem var(--gutter) 5.5rem;
  background: var(--navy);
  color: #fff;
  text-align: center;
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 38% calc(100% - 26px), 0 100%);
}
article > h1 { margin-bottom: 1.5rem; }
article > p:first-child { margin: 0 0 1.5rem; }

/* Wide components break out of the reading column */
.section-hero, .at-a-glance, .photo-grid, .table-wrap, .month-block, .year-summary, .arrest-banner {
  align-self: center;
  width: var(--wide);
  max-width: none;
  margin-left: 0 !important;   /* auto margins would defeat centred overflow in the flex column */
  margin-right: 0 !important;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--navy); font-family: var(--head); }
h1 { font-weight: 800; line-height: 1.15; letter-spacing: 0.02em; margin: 0 0 1rem; text-wrap: balance; }
h2 {
  font-weight: 800;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin: 3.25rem 0 1rem;
  text-wrap: balance;
  scroll-margin-top: 1rem;
}
h3 { font-weight: 700; font-size: 1.2rem; line-height: 1.35; margin: 2rem 0 0.5rem; letter-spacing: 0.01em; }
p { margin: 0 0 1.15rem; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.3rem; }
li { margin-bottom: 0.45rem; }
.lede, .page-subtitle {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 2.25rem;
}

/* Section header image (placeholder) */
.section-hero { margin: 0 auto 3rem; }
.section-hero img { width: 100%; height: clamp(150px, 20vw, 260px); object-fit: cover; background: #2b2a2d; }
.section-hero .caption { margin-top: 0.5rem; font-size: 0.78rem; line-height: 1.4; color: var(--muted); }
/* Real photo in the section header slot (taller crop, framed on the subject) */
.section-hero-photo { margin-top: 0; margin-bottom: 3rem; }
.section-hero-photo img { height: clamp(220px, 34vw, 440px); object-position: center 68%; }
.section-hero-photo .caption { font-size: 0.86rem; line-height: 1.5; }
/* Heat pumps: two matched photos side by side in the section header slot */
.hp-duo { display: grid; grid-template-columns: 1fr; gap: 12px; }
.section-hero.hp-duo img { width: 100%; height: clamp(220px, 60vw, 300px); object-fit: cover; }
.section-hero.hp-duo .hp-duo-a { object-position: 45% 45%; }
.section-hero.hp-duo .hp-duo-b { object-position: 45% 62%; }
@media (min-width: 700px) {
  .hp-duo { grid-template-columns: 1fr 1fr; gap: 16px; }
  .section-hero.hp-duo img { height: clamp(260px, 28vw, 340px); }
}

/* ---------- Buttons (outlined, rounded, letter-spaced) ---------- */
.doc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 56px;
  margin: 0.75rem 0 0.25rem;
  padding: 0.5rem 1.4rem;
  border: 1px solid currentColor;
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.214em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.6;
  pointer-events: none;
  cursor: default;
  transition: all .3s;
}
.doc-btn::before, .doc-btn::after { content: ""; width: 0.9rem; height: 1px; background: currentColor; flex: none; }
.doc-btn .soon { font-size: 0.65rem; background: var(--navy); color: #fff; padding: 0.15rem 0.45rem; border-radius: 4px; letter-spacing: 0.1em; }
.doc-btn-live { opacity: 1; pointer-events: auto; cursor: pointer; }
.doc-btn-live:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Callouts & notes ---------- */
.callout {
  margin: 1.75rem 0;
  padding: 1.35rem 1.5rem;
  background: var(--tint);
  border-left: 4px solid var(--navy);
  color: var(--ink);
  font-size: 1.05rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--navy); }
.stub-note {
  margin: 2rem 0;
  padding: 1.5rem 1.6rem;
  background: var(--tint);
  color: var(--ink);
}
.stub-note .tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Stat / key-number panels ---------- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0.5rem auto 3rem;
  background: rgba(255, 255, 255, 0.14);
}
.at-a-glance .stat-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding: 1.9rem 1.5rem 1.75rem;
  background: var(--navy);
  color: #fff;
  text-align: center;
  text-decoration: none;
}
.at-a-glance .stat-value {
  margin: 0 0 0.45rem;
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #fff;
}
.at-a-glance .stat-caption { margin: 0; font-size: 0.9rem; line-height: 1.45; color: var(--on-dark); }
.at-a-glance a.stat-card { background: var(--navy-deep); }
.at-a-glance a.stat-card:hover { background: var(--navy-press); }
.at-a-glance a.stat-card .stat-caption {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.35em;
}
.at-a-glance a.stat-card .stat-caption::after { content: "\00a0\25B8"; }

.year-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem auto 2rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}
.year-summary .stat { padding: 1.4rem 1.4rem 1.25rem; background: var(--tint); text-align: center; }
.year-summary .stat b {
  display: block;
  font-family: var(--head);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1.05;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

/* ---------- Ranked list (Top 25) ---------- */
.inner { counter-reset: reason; }
.reasons {
  list-style: none;
  margin: 2.5rem 0 0.75rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--line);
}
.reasons > li { counter-increment: reason; display: flex; align-items: flex-start; gap: 1.1rem; margin: 0; }
.reasons > li::before {
  content: counter(reason);
  flex: none;
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border: 1px solid var(--navy);
  border-radius: var(--radius-btn);
  color: var(--navy);
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.2rem;
}
.reasons h3 { margin: 0.45rem 0 0; font-size: 1.35rem; font-weight: 800; letter-spacing: 0.015em; line-height: 1.3; }
.reasons p:empty { display: none; }
.reasons + p { padding-left: 4.1rem; }
h2 + p + ol.reasons, h2 + ol.reasons { border-top: 0; padding-top: 0.5rem; }

/* ---------- Quotes ---------- */
blockquote { margin: 0; }
.quote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 4px solid var(--navy);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink);
}
.quote cite { display: block; margin-top: 0.5rem; font-style: normal; font-size: 0.85rem; color: var(--muted); }
.pull-quote {
  margin: 2.25rem 0;
  padding: 1.5rem 0;
  border-top: 4px solid var(--navy);
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.8rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--navy);
}
.conclusion-label, .findings-label {
  margin: 2rem 0 0.7rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.socotec-conclusion {
  margin: 0.5rem 0 2rem;
  padding: 1.75rem 1.9rem 1.5rem;
  background: var(--navy);
  color: #fff;
}
.socotec-conclusion p { margin: 0 0 1rem; font-style: italic; font-size: 1.15rem; line-height: 1.6; color: #fff; }
.socotec-conclusion cite { display: block; font-style: normal; font-size: 0.82rem; line-height: 1.45; color: var(--on-dark); }
.findings-list { padding-left: 1.2rem; margin: 0.4rem 0 1.4rem; }
.findings-list li { margin-bottom: 0.65rem; line-height: 1.5; }
.findings-list .finding-label {
  display: block;
  margin-bottom: 0.1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ---------- Timeline (brick & mortar) ---------- */
.story-timeline { position: relative; margin: 1.5rem 0 2.25rem; padding-left: 2rem; border-left: 2px solid var(--line); }
.story-timeline .tl-item { position: relative; margin: 0 0 2.75rem; }
.story-timeline .tl-item:last-child { margin-bottom: 0; }
.story-timeline .tl-item::before {
  content: "";
  position: absolute;
  left: calc(-2rem - 8px);
  top: 0.6rem;
  width: 14px; height: 14px;
  background: var(--navy);
  border-radius: 50%;
  box-shadow: 0 0 0 4px #fff;
}
.story-timeline h2 { margin-top: 0; font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem); }
.memo-placeholder { margin: 1rem 0; padding: 1.25rem; background: var(--tint); color: var(--muted); font-style: italic; text-align: center; }
.caveat-inline {
  margin: 3rem 0 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: var(--navy);
}

/* ---------- Photo gallery ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem 1.5rem;
  margin: 1.75rem auto 3rem;
}
.photo-card { margin: 0 !important; display: flex; flex-direction: column; background: #fff; }
.photo-card img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; background: var(--tint); }
.photo-grid-plain { align-items: start; }
.photo-grid-plain .photo-card img { aspect-ratio: auto; object-fit: contain; }
.photo-card figcaption { padding: 0.8rem 0 0; font-size: 0.86rem; line-height: 1.5; color: var(--muted); }

/* ---------- Citations & sources ---------- */
sup.cite { font-size: 0.68em; line-height: 0; font-weight: 700; color: var(--navy); margin-left: 0.08em; vertical-align: super; }
.sources {
  margin: 3.25rem 0 1.5rem;
  padding: 1.75rem 1.9rem 1.5rem;
  background: var(--tint);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--body);
  overflow-wrap: anywhere;
}
.sources > strong, .sources > h2 {
  display: block;
  margin: 0 0 0.9rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.sources ol, .sources ul { margin: 0; padding-left: 1.7rem; }
.sources li { margin-bottom: 0.5rem; padding-left: 0.2rem; }
.sources li::marker { color: var(--navy); font-weight: 700; }

/* ---------- Tables ---------- */
.table-wrap { margin: 2rem auto 2.25rem; overflow-x: auto; }
table.data-table, table.blotter { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.data-table { font-size: 0.95rem; line-height: 1.5; }
table.data-table th, table.data-table td,
table.blotter th, table.blotter td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.data-table th, table.data-table td { padding: 1rem 1.1rem; }
table.data-table th, table.blotter th {
  background: var(--navy);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 0;
}
table.data-table td:first-child { font-family: var(--head); font-weight: 700; color: var(--navy); min-width: 9rem; }
table.data-table tbody tr:nth-child(even) td { background: #f8f9fe; }

/* ---------- Police blotter ---------- */
.blotter-meta { font-size: 0.95rem; color: var(--muted); line-height: 1.65; }
.arrest-banner {
  margin: 1.75rem auto 2rem;
  padding: 2rem 2.25rem;
  background: var(--bright);
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
}
.arrest-banner h3 { margin: 0 0 0.6rem; font-weight: 800; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); color: #fff; letter-spacing: 0.02em; }
.arrest-banner strong { color: #fff; }
.month-block { margin: 2rem auto; }
.month-block h3 {
  margin: 0 0 0.6rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.month-block h3 span { color: var(--muted); letter-spacing: 0.05em; }
table.blotter { font-size: 0.88rem; line-height: 1.45; }
table.blotter th, table.blotter td { padding: 0.6rem 0.85rem; }
table.blotter td:first-child { white-space: nowrap; }
tr.crime td { background: var(--tint); color: var(--ink); }
tr.crime td:first-child { box-shadow: inset 4px 0 0 var(--bright); }
tr.crime .call-type { color: var(--navy); font-weight: 800; }

/* ---------- Resources ---------- */
.resource-list { list-style: none; padding: 0; margin: 1.75rem 0 2rem; }
.resource-list li { margin: 0 0 1.25rem; padding: 1.5rem 1.6rem; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); }
.resource-list h3 { margin: 0 0 0.5rem; font-weight: 800; font-size: 1.25rem; }
.resource-list .meta { margin: 0.3rem 0; font-size: 0.92rem; line-height: 1.6; color: var(--muted); }
.resource-list .use { margin: 0.7rem 0 0; font-size: 1rem; }

/* ---------- Blog ---------- */
.blog-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.blog-list li { padding: 1.6rem 0; margin: 0; border-top: 1px solid var(--line); }
.blog-list li:last-child { border-bottom: 1px solid var(--line); }
.blog-list time, article time {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.blog-list a { font-family: var(--head); font-size: 1.5rem; line-height: 1.3; text-decoration: none; }
.blog-list a strong { color: var(--navy); font-weight: 800; }
.blog-list a:hover strong { color: var(--bright); }
.blog-list p { margin: 0.5rem 0 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--on-dark-2);
  text-align: center;
  padding: 3.25rem var(--gutter) 3.5rem;
  font-size: 0.88rem;
  line-height: 1.65;
}
.site-footer .inner { max-width: 46rem; margin: 0 auto; }
.site-footer p { margin: 0 0 0.9rem; }
.site-footer strong {
  display: inline-block;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.083em;
  text-transform: uppercase;
  line-height: 1.7;
}
.site-footer .caveat-foot {
  margin: 1.5rem 0 0;
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: #fff;
}

/* ---------- Home ---------- */
.page-home .content { padding: 0; }
.page-home .content > .inner.home-main { display: block; max-width: none; padding: 0; }
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  width: var(--wide);
  margin: 2.5rem auto 0;
  background: var(--navy);
}
.home-hero .hero { position: relative; margin: 0; }
.home-hero .hero img { width: 100%; height: 100%; min-height: 480px; max-height: 560px; object-fit: cover; }
.home-hero .hero .caption {
  position: absolute;
  left: 0; bottom: 0;
  max-width: 100%;
  padding: 0.45rem 0.9rem;
  background: rgba(11, 36, 71, 0.85);
  color: var(--on-dark-2);
  font-size: 0.74rem;
  line-height: 1.4;
}
.home-hero .hero .caption code { color: #fff; }
.home-caveat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2.25rem;
  text-align: center;
  color: #fff;
}
.home-caveat .caveat {
  margin: 0;
  text-transform: none; /* headline displays exactly as written */
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(1.75rem, 1.1rem + 1.25vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #fff;
  max-width: 17ch;
}
.home-caveat .headline-kicker {
  display: block;
  margin: 0 0 0.7rem;
  font-size: 1.2rem;           /* 19.2px at weight 800 = WCAG "large text" */
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ff3b30;              /* 3.8:1 on navy #102e59 (vs 3.2:1 for #e53935) */
}
.home-caveat .headline-main { display: block; }
.home-caveat .caveat-sub {
  margin: 1.1rem 0 0;
  line-height: 1.45;
  text-transform: none;        /* "Caveat EMPTOR" displays exactly as written */
}
.home-caveat .caveat-sub-main {
  display: block;
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: #fff;
}
.home-caveat .buyer-beware {
  display: block;
  margin: 0.2rem 0 0;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--on-dark);
}
.home-caveat::after {
  content: "";
  width: 3.5rem; height: 1px;
  margin-top: 1.75rem;
  background: rgba(255, 255, 255, 0.55);
}
.home-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 4rem;
  padding: 4rem max(var(--gutter), calc((100% - var(--container)) / 2)) 4.5rem;
  background: var(--navy);
  counter-reset: card;
}
.home-card {
  counter-increment: card;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 150px;
  padding: 1.5rem 1.6rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-btn);
  color: #fff;
  text-decoration: none;
  transition: all .3s;
}
.home-card::before {
  content: counter(card, decimal-leading-zero);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.214em;
  color: var(--on-dark);
}
.home-card::after {
  content: "\25B8";
  position: absolute;
  right: 1.4rem; bottom: 1.35rem;
  font-size: 1rem;
  color: var(--on-dark);
  transition: transform .3s;
}
.home-card-title {
  padding-right: 1.75rem;
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
}
.home-card:hover { background: #fff; border-color: #fff; color: #303030; }
.home-card:hover .home-card-title { color: var(--navy); }
.home-card:hover::before, .home-card:hover::after { color: var(--navy); }
.home-card:hover::after { transform: translateX(4px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .at-a-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --gutter: 20px; }
  body { font-size: 1.0625rem; }

  .site-header {
    order: 0;
    position: sticky; top: 0; z-index: 60;
    border-bottom: 1px solid var(--line);
  }
  .masthead-meta { order: 1; }
  .masthead { min-height: var(--bar-h); align-items: center; padding: 0.5rem 5.6rem; }
  .brand, .rail-brand { font-size: 0.86rem; letter-spacing: 0.02em; line-height: 1.2; }
  .menu-toggle { display: inline-flex; }

  .rail { display: none; }
  .rail.open {
    display: block;
    position: fixed;
    top: var(--bar-h); left: 0; right: 0; bottom: 0;
    align-self: stretch;
    z-index: 65;
    padding: 0.5rem 1.5rem 3rem;
    background: #fff;
    border-top: 1px solid var(--line);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .rail.open nav { display: block; }
  .rail.open nav > a {
    display: block;
    padding: 1rem 0.25rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.85rem;
    white-space: normal;
  }
  .rail.open nav > a[aria-current="page"] { color: var(--navy); font-weight: 700; border-bottom-color: var(--line); box-shadow: inset 3px 0 0 var(--navy); padding-left: 0.9rem; }
  .rail.open .nav-label { display: block; margin: 1.5rem 0 0.25rem; }
  .rail.open .sep { display: none; }
  body.nav-open { overflow: hidden; }

  /* Home: the nav container doubles as the top bar */
  .page-home .rail {
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky; top: 0; z-index: 60;
    height: var(--bar-h);
    padding: 0 5.6rem;
    border-bottom: 1px solid var(--line);
  }
  .page-home .rail nav > :not(.rail-brand) { display: none; }
  .page-home .rail-brand { padding: 0; }
  .page-home .rail.open {
    position: fixed; inset: 0;
    display: block;
    height: auto;
    padding: 0 1.5rem 3rem;
    overflow-y: auto;
  }
  .page-home .rail.open nav > :not(.rail-brand) { display: block; }
  .page-home .rail.open nav > .sep { display: none; }
  .page-home .rail.open .rail-brand {
    display: flex; align-items: center; justify-content: center;
    height: var(--bar-h);
    margin: 0 -1.5rem 0.5rem; padding: 0 5.6rem;
    border-bottom: 1px solid var(--line);
  }

  .inner > h1, article > h1 { padding: 3rem var(--gutter) 4rem; margin-bottom: 2.25rem; }
  .section-hero { margin-bottom: 2rem; }
  .lede, .page-subtitle { font-size: 1.12rem; }

  .home-hero { grid-template-columns: 1fr; width: var(--wide); margin-top: 1.25rem; }
  .home-hero .hero img { min-height: 0; height: 240px; }
  .home-caveat { padding: 2.5rem 1.5rem 2.75rem; }
  .home-cards { margin-top: 2.5rem; padding: 2.5rem var(--gutter) 3rem; gap: 0.85rem; }
  .home-card { min-height: 0; }

  .reasons + p { padding-left: 0; }
  .reasons > li::before { width: 2.6rem; height: 2.6rem; font-size: 1.05rem; }
  .reasons h3 { font-size: 1.2rem; margin-top: 0.3rem; }
  .story-timeline { padding-left: 1.4rem; }
  .story-timeline .tl-item::before { left: calc(-1.4rem - 8px); }
}

@media (max-width: 640px) {
  .at-a-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .at-a-glance .stat-card { padding: 1.4rem 0.9rem 1.3rem; }
  .home-cards { grid-template-columns: 1fr; }
  .home-card { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 1rem; padding: 1.15rem 1.2rem; }
  .home-card::after { bottom: auto; top: 50%; transform: translateY(-50%); }
  .home-card:hover::after { transform: translate(4px, -50%); }
  .home-card-title { font-size: 1.12rem; }
  .photo-grid { grid-template-columns: 1fr; }
  .year-summary { gap: 0.5rem; font-size: 0.78rem; }
  .year-summary .stat { padding: 1rem 0.6rem 0.9rem; }
  .year-summary .stat b { font-size: 1.7rem; }
  .callout, .stub-note { padding: 1.15rem 1.2rem; }
  .socotec-conclusion { padding: 1.35rem 1.3rem 1.2rem; }
  .sources { padding: 1.35rem 1.2rem 1.1rem; }
  .arrest-banner { padding: 1.5rem 1.35rem; }

  /* Tables become stacked cards on phones */
  table.data-table, table.data-table tbody, table.data-table tr, table.data-table td,
  table.blotter, table.blotter tbody, table.blotter tr, table.blotter td { display: block; width: auto; }
  table.data-table thead, table.blotter thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.data-table tr { margin: 0 0 1rem; padding: 1.1rem 1.15rem; border-top: 4px solid var(--navy); background: var(--tint); }
  table.data-table tbody tr:nth-child(even) td { background: none; }
  table.data-table td { padding: 0.25rem 0; border: 0; min-width: 0; }
  table.data-table td:first-child { font-size: 1.15rem; padding-bottom: 0.45rem; }
  table.data-table td + td::before, table.blotter td::before {
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
  }
  table.data-table td:nth-child(2)::before { content: "What the rule is"; }
  table.data-table td:nth-child(3)::before { content: "What it means at 3920"; margin-top: 0.55rem; }

  table.blotter { border-top: 2px solid var(--navy); }
  table.blotter tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.1rem 0.75rem;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid var(--line);
  }
  table.blotter td { padding: 0; border: 0; }
  table.blotter td::before { display: none; }
  table.blotter td:nth-child(1) { grid-column: 1; font-size: 0.78rem; color: var(--muted); white-space: normal; }
  table.blotter td:nth-child(2) { grid-column: 2; grid-row: 1; font-size: 0.78rem; color: var(--muted); }
  table.blotter td:nth-child(3) { grid-column: 1 / -1; font-weight: 700; font-size: 0.92rem; color: var(--ink); }
  table.blotter td:nth-child(4) { grid-column: 1 / -1; font-size: 0.86rem; }
  table.blotter td:nth-child(5) { grid-column: 1 / -1; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); }
  tr.crime { background: var(--tint); box-shadow: inset 4px 0 0 var(--bright); }
  tr.crime td, tr.crime td:first-child { background: none; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Print ---------- */
@media print {
  body { display: block; font-size: 11pt; color: #000; }
  .rail, .menu-toggle, .section-hero img, .home-cards { display: none !important; }
  .masthead-meta, .site-footer { background: none; color: #000; }
  .masthead-meta .sub, .site-footer strong, .site-footer .caveat-foot { color: #000; }
  .content > .inner { display: block; max-width: none; padding: 0; }
  .inner > h1, article > h1 { width: auto; background: none; color: #000; clip-path: none; padding: 0; text-align: left; margin: 0 0 1rem; }
  .at-a-glance .stat-card, .socotec-conclusion, .arrest-banner, .home-caveat { background: none !important; color: #000 !important; border: 1px solid #000; }
  .at-a-glance .stat-value, .at-a-glance .stat-caption, .socotec-conclusion p, .socotec-conclusion cite, .arrest-banner h3, .arrest-banner strong, .home-caveat .caveat, .home-caveat .headline-kicker, .home-caveat .caveat-sub-main, .home-caveat .buyer-beware { color: #000 !important; }
  table.data-table th, table.blotter th { background: none; color: #000; border-bottom: 2px solid #000; }
  a { color: #000; }
  tr, .resource-list li, .photo-card { break-inside: avoid; }
}

/* Debt levels — big DEBT word + downward trend */
.callout.debt-lead { margin-top: 0; }
.debt-viz {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0.75rem 0 2.5rem; /* sits directly under the lead text, as the page's picture */
  padding: 1.5rem 1.6rem 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid #ff3b30;
}
.debt-viz-word {
  margin: 0;
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(3.2rem, 2.2rem + 4vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: #ff3b30; /* same strong red as the downward line */
  text-transform: uppercase;
}
.debt-viz-line {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.15rem 0 0.35rem;
}
.debt-viz-amount {
  margin: 0;
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2.1rem);
  line-height: 1.15;
  color: #ff3b30; /* amount in the same red as the DEBT word */
  letter-spacing: 0.01em;
}
.debt-viz-meta {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Owner resources — big navy RESOURCES word (same card as .debt-viz) */
.resources-viz {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 2.25rem;
  padding: 1.5rem 1.6rem 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--navy);
  max-width: 100%;
  overflow: hidden;
}
.resources-viz-word {
  margin: 0;
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(2rem, 0.4rem + 8vw, 6rem); /* stays on one line: ~2.3rem on phones, 6rem on desktop */
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: var(--navy);
  text-transform: uppercase;
  white-space: nowrap;
}
.resources-viz-meta {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.resources-viz .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;
}

/* Yellow highlighter for key sentences */
mark.text-highlight {
  background: #fff3a3;
  color: inherit;
  font-weight: 700;
  padding: 0.12em 0.28em;
  border-radius: 0.15em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}


/* Parking lot — dollar-range figure in the .debt-viz card (smaller so the range fits on phones) */
.debt-viz-word.debt-viz-figure {
  font-size: clamp(2.1rem, 0.9rem + 5vw, 4.75rem);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Fence & landscaping — photo pair (columns sized to the 3:4 and 4:3 aspect ratios so both run equal height without cropping the arrows) */
.ls-duo { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin: 1.25rem 0 2rem; }
.ls-duo figure { margin: 0; }
.ls-duo img { display: block; width: 100%; height: auto; background: #2b2a2d; }
.ls-duo .caption { margin-top: 0.5rem; font-size: 0.86rem; line-height: 1.5; color: var(--muted); }
@media (min-width: 700px) {
  .ls-duo { grid-template-columns: 9fr 16fr; gap: 16px; align-items: start; }
}

/* Fence & landscaping — fence photo pair (two 3:4 portraits side by side at equal height on desktop, stacked on mobile) */
.fence-duo { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin: 1.25rem 0 2rem; }
.fence-duo figure { margin: 0; }
.fence-duo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: #2b2a2d; }
.fence-duo .caption { margin-top: 0.5rem; font-size: 0.86rem; line-height: 1.5; color: var(--muted); }
@media (min-width: 700px) {
  .fence-duo { grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
}

/* ---------- Seal logo in the masthead (3920 Know the Facts) ---------- */
.brand-link { display: inline-flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.brand-seal { display: block; width: 92px; height: 92px; flex: none; }
.masthead { padding-top: 1.6rem; }
.page-home .rail-brand { padding-top: 1.6rem; }
@media (max-width: 960px) {
  .masthead { padding-top: 0.5rem; }
  .page-home .rail-brand { padding: 0; }
  .brand-link { flex-direction: row; gap: 0.55rem; text-align: left; }
  .brand-seal { width: 44px; height: 44px; }
  /* keep the seal + name clear of the fixed Menu button on the left */
  .masthead, .page-home .rail, .page-home .rail.open .rail-brand { padding-left: 6.6rem; padding-right: 1rem; }
  .page-home .rail.open { padding-left: 1.5rem; padding-right: 1.5rem; }
  .brand, .rail-brand { font-size: 0.8rem; }
}
@media (max-width: 380px) {
  .brand-seal { width: 38px; height: 38px; }
}

/* Mobile "Blog updates" bar */
.mobile-blog-bar { display: none; }

.home-card.home-card-blog { background: #ff3b30; border-color: #ff3b30; }
.home-card.home-card-blog .home-card-title, .home-card.home-card-blog::before, .home-card.home-card-blog::after { color: #fff; }
.home-card.home-card-blog:hover { background: #e0352b; border-color: #e0352b; }
.home-card.home-card-blog:hover .home-card-title, .home-card.home-card-blog:hover::before, .home-card.home-card-blog:hover::after { color: #fff; }
