:root {
  --ink: #111;
  --muted: #5a5a5a;
  --paper: #fffdf8;
  --orange: #d65200;
  --rule: #242424;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: #d6d3cc;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

a { color: inherit; }

.newspaper-page {
  width: 1100px;
  min-height: 1424px;
  margin: 28px auto;
  padding: 22px 24px 14px;
  background: var(--paper);
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
}

.masthead {
  display: grid;
  grid-template-columns: 132px 1fr 132px;
  align-items: end;
  border-bottom: 3px solid var(--rule);
  padding-bottom: 8px;
}
.publisher-mark {
  grid-column: 1;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.publisher-mark img {
  width: 120px;
  height: auto;
  display: block;
  margin: -10px auto -8px;
}
.masthead-center { grid-column: 2; text-align: center; line-height: .87; }
.masthead .the { font-size: 27px; font-weight: 700; }
.masthead .name { font-size: 71px; letter-spacing: -.055em; font-weight: 800; white-space: nowrap; }
.tagline {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  font-size: 20px;
  font-style: italic;
  line-height: 1;
}
.tagline::before, .tagline::after { content: ""; width: 120px; height: 2px; background: var(--orange); }

.edition-bar {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px 5px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
.edition-bar span + span::before { content: "|"; margin-right: 32px; color: #777; }

.top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 242px;
  gap: 14px;
  margin-top: 10px;
  align-items: start;
}
.lead-story h1 {
  margin: 0;
  font-size: 46px;
  line-height: .98;
  letter-spacing: -.03em;
}
.subheadline { margin: 9px 0 8px; font-size: 19px; font-style: italic; line-height: 1.2; }
.byline { font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: 12px; margin-bottom: 10px; }
.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 15px;
  align-items: start;
}
.lead-layout.no-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.lead-copy {
  font-size: 14px;
  line-height: 1.28;
  text-align: justify;
  hyphens: auto;
}
.lead-copy p { margin: 0 0 7px; }
.lead-copy-primary p:first-child::first-letter {
  float: left;
  font-size: 49px;
  line-height: .73;
  padding-right: 5px;
  font-weight: 700;
}
.lead-secondary { min-width: 0; }
.lead-photo, .brief-photo, .incident-inline-photo { margin: 0 0 10px; }
.lead-photo img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(.88) contrast(1.03);
}
.lead-photo figcaption,
.brief-photo figcaption,
.incident-inline-photo figcaption {
  font-size: 12px;
  font-style: italic;
  line-height: 1.2;
  margin-top: 4px;
}

.right-rail { display: grid; gap: 12px; align-self: start; }
.at-a-glance { border: 1px solid var(--rule); padding: 8px 12px 10px; align-self: start; }
.at-a-glance h2 {
  text-align: center;
  text-transform: uppercase;
  font-size: 19px;
  margin: 0 0 9px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--orange);
}
.glance-stat { border-bottom: 1px solid #bbb; padding: 8px 0; }
.glance-stat .label { display: block; font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.glance-stat strong { display: block; font-size: 27px; line-height: 1.05; }
.glance-stat small { font-size: 12px; line-height: 1.1; }
.inside h3 { text-transform: uppercase; font-size: 15px; margin: 12px 0 6px; }
.inside div { display: flex; justify-content: space-between; border-bottom: 1px dotted #777; padding: 4px 0; font-size: 13px; }
.rail-note {
  border-top: 3px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 8px 3px 9px;
}
.rail-kicker {
  color: var(--orange);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.rail-note p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.28; }

.brief-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 12px;
  border-top: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
}
.brief-grid.two-up { grid-template-columns: repeat(2, 1fr); }
.brief { padding: 10px 16px 10px 0; min-height: 174px; }
.brief + .brief { border-left: 1px solid #888; padding-left: 16px; }
.kicker { color: var(--orange); font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: 800; }
.brief h3 { margin: 3px 0 8px; font-size: 23px; line-height: 1.02; }
.brief p { margin: 0 0 7px; font-size: 13.5px; line-height: 1.28; text-align: justify; }
.brief-photo img {
  width: 100%;
  max-height: 175px;
  object-fit: cover;
  display: block;
}
.source-link { color: #333; font-size: 11px; font-style: italic; text-decoration: none; }

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 14px;
  margin-top: 12px;
  align-items: stretch;
}
.lower-grid.no-ledger { grid-template-columns: 1fr; }
.house-ad {
  border: 2px solid var(--orange);
  min-height: 190px;
  padding: 14px 22px 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.ad-label { position: absolute; top: 6px; left: 8px; font-family: Arial, Helvetica, sans-serif; font-size: 9px; }
.house-ad h2 { font-size: 37px; line-height: .95; margin: 0; }
.house-ad h3 { color: var(--orange); font-family: Arial, Helvetica, sans-serif; text-transform: uppercase; letter-spacing: .05em; font-size: 22px; margin: 8px 0 4px; }
.house-ad p { font-size: 15.5px; margin: 3px auto 12px; max-width: 560px; }
.ad-footer { background: var(--orange); color: white; font-family: Arial, Helvetica, sans-serif; text-transform: uppercase; font-weight: 700; padding: 5px; font-size: 12px; }

.missing-strip {
  margin-top: 11px;
  padding: 7px;
  border: 1px dashed #444;
  background: #faf9f4;
  display: grid;
  gap: 8px;
}
.missing-strip.count-1 { grid-template-columns: 1fr; }
.missing-strip.count-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.missing-strip.count-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.missing-card { display: grid; grid-template-columns: 104px minmax(0,1fr); gap: 10px; min-height: 122px; align-items: start; }
.missing-card + .missing-card { border-left: 1px solid #aaa; padding-left: 8px; }
.missing-card img { width: 104px; height: 122px; object-fit: cover; filter: grayscale(.1); }
.notice-label { background: #111; color: white; display: inline-block; font-family: Arial, Helvetica, sans-serif; font-size: 9.5px; font-weight: 800; padding: 3px 6px; margin-bottom: 5px; }
.exact-source { font-size: 11.2px; line-height: 1.2; white-space: pre-line; overflow-wrap: anywhere; }
.missing-card a { display: inline-block; margin-top: 4px; font-size: 10.5px; color: #222; }

.inside-masthead {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 3px solid var(--rule);
  padding-bottom: 6px;
}
.inside-name { font-size: 36px; font-weight: 800; line-height: .9; }
.inside-tagline { font-size: 13px; font-style: italic; margin-top: 2px; }
.inside-section-name { color: var(--orange); font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.inside-edition-bar {
  display: flex;
  justify-content: space-between;
  padding: 6px 0 8px;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.section-intro h1 { margin: 10px 0 2px; font-size: 34px; line-height: 1; }
.section-intro p { margin: 0 0 10px; font-size: 14px; font-style: italic; }

.calls-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  align-items: start;
}
.safety-section {
  break-inside: avoid;
  border-top: 4px solid var(--rule);
}
.safety-section h2 {
  margin: 8px 0 8px;
  font-size: 20px;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 4px;
}
.call-list {
  display: grid;
  gap: 10px;
}
.call-card {
  border-bottom: 1px solid #b5b0a8;
  padding-bottom: 8px;
}
.call-card:last-child { border-bottom: none; }
.call-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}
.call-card time {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 800;
}
.page1-badge {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
}
.call-card h3 {
  margin: 0 0 2px;
  font-size: 18px;
  line-height: 1.02;
}
.story-location {
  font-size: 12.5px;
  font-weight: 700;
  color: #333;
  margin-bottom: 3px;
}
.call-card p {
  margin: 4px 0 5px;
  font-size: 12.5px;
  line-height: 1.28;
  text-align: justify;
}
.incident-inline-photo img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
  margin: 5px 0 0;
}
.timeline {
  margin: 4px 0 3px 0;
  padding-left: 0;
  list-style: none;
}
.timeline li {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 6px;
  align-items: start;
  font-size: 12px;
  line-height: 1.2;
  padding: 2px 0;
}
.timeline time {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 800;
}
.timeline.compact li { grid-template-columns: 58px 1fr; font-size: 11.5px; }

.community-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: start;
}
.community-hero figure { margin: 0; }
.community-hero img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}
.community-hero figcaption { margin-top: 5px; font-size: 12px; font-style: italic; }
.weather-box {
  border: 1px solid var(--rule);
  padding: 10px 12px;
}
.weather-box h2 { font-size: 26px; line-height: 1; margin: 6px 0; }
.weather-big { font-size: 40px; font-weight: 800; line-height: 1; margin: 8px 0; }
.weather-box p { font-size: 13px; line-height: 1.3; margin: 6px 0 0; }
.community-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
}
.community-columns article { border-top: 2px solid var(--rule); padding-top: 8px; }
.community-columns h2 { margin: 3px 0 6px; font-size: 24px; line-height: 1; }
.community-columns p { margin: 0 0 8px; font-size: 13px; line-height: 1.3; text-align: justify; }
.watch-house-ad {
  margin-top: 14px;
  border-top: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  padding: 16px 10px;
  text-align: center;
}
.watch-house-ad h2 { font-size: 28px; margin: 4px 0 6px; }
.watch-house-ad p { margin: 0; font-size: 15px; }

.page-footer { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 2px solid var(--rule); margin-top: 10px; padding-top: 4px; font-size: 11px; }
.page-footer span:nth-child(2) { text-align: center; }
.page-footer span:last-child { text-align: right; }

@media (max-width: 1140px) {
  .newspaper-page { width: calc(100% - 20px); margin: 10px; min-height: 0; }
  .masthead { grid-template-columns: 90px 1fr; }
  .masthead .name { font-size: clamp(40px, 7vw, 71px); white-space: normal; }
  .top-grid, .community-hero, .community-columns, .calls-sections, .lower-grid { grid-template-columns: 1fr; }
  .right-rail { grid-template-columns: 1fr 1fr; }
  .at-a-glance { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
  .at-a-glance h2, .inside { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .masthead { grid-template-columns: 1fr; }
  .publisher-mark { display: none; }
  .masthead-center { grid-column: 1; }
  .masthead .name { font-size: 47px; }
  .tagline { font-size: 15px; }
  .tagline::before, .tagline::after { width: 40px; }
  .edition-bar, .inside-edition-bar { flex-wrap: wrap; gap: 4px 14px; }
  .edition-bar span + span::before { content: none; }
  .lead-story h1 { font-size: 39px; }
  .lead-layout, .brief-grid, .right-rail { display: block; }
  .brief + .brief { border-left: none; border-top: 1px solid #888; padding-left: 0; }
  .lead-photo img, .community-hero img { height: auto; }
  .rail-note, .weather-box { margin-top: 10px; }
  .missing-strip.count-2, .missing-strip.count-3 { grid-template-columns: 1fr; }
  .missing-card + .missing-card { border-left: none; border-top: 1px solid #aaa; padding: 8px 0 0; }
}

@media print {
  @page { size: 11in 17in; margin: 0; }
  body { background: white; }
  .newspaper-page { width: 11in; min-height: 17in; margin: 0; padding: .22in .24in .14in; box-shadow: none; }
}

/* Step 12: calmer Page 2 editorial layout */
.photo-call-feature {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
  padding: 12px 0 14px;
  border-top: 4px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  margin-bottom: 12px;
}
.photo-call-copy time {
  display: block;
  margin-top: 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 800;
}
.photo-call-copy h2 {
  margin: 3px 0 5px;
  font-size: 29px;
  line-height: 1;
}
.photo-call-copy p {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.32;
  text-align: left;
}
.latest-update {
  padding-top: 8px;
  border-top: 1px solid #aaa;
}
.incident-feature-photo {
  margin: 0;
}
.incident-feature-photo img {
  width: 100%;
  height: 255px;
  object-fit: cover;
  display: block;
}
.incident-feature-photo figcaption {
  font-size: 11.5px;
  font-style: italic;
  margin-top: 4px;
}
.briefs-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  border-bottom: 3px solid var(--rule);
  padding-bottom: 5px;
  margin-bottom: 8px;
}
.briefs-heading h2 {
  margin: 0;
  font-size: 25px;
}
.briefs-heading p {
  margin: 0;
  font-size: 12px;
  font-style: italic;
}
.calls-brief-columns {
  column-count: 3;
  column-gap: 20px;
  column-rule: 1px solid #b8b3aa;
}
.call-brief {
  break-inside: avoid;
  padding: 0 0 9px;
  margin: 0 0 9px;
  border-bottom: 1px solid #aaa;
}
.call-brief-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.mini-kicker {
  color: var(--orange);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
}
.call-brief time {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}
.call-brief h3 {
  margin: 2px 0 2px;
  font-size: 17px;
  line-height: 1.03;
}
.call-brief h3 a {
  text-decoration: none;
}
.call-brief .story-location {
  font-size: 10.5px;
  line-height: 1.15;
  margin-bottom: 3px;
}
.brief-latest {
  font-size: 11px;
  line-height: 1.22;
  color: #292929;
}

@media (max-width: 760px) {
  .photo-call-feature {
    grid-template-columns: 1fr;
  }
  .incident-feature-photo img {
    height: auto;
  }
  .calls-brief-columns {
    column-count: 1;
    column-rule: none;
  }
  .briefs-heading {
    display: block;
  }
  .briefs-heading p {
    margin-top: 4px;
  }
}

/* Step 13: official agency news on the Community page */
.official-news-section {
  border-top: 4px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  padding: 10px 0 13px;
  margin-bottom: 14px;
}
.official-news-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 10px;
}
.official-news-heading h1 {
  margin: 2px 0 0;
  font-size: 30px;
  line-height: 1;
}
.official-news-heading p {
  max-width: 420px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.25;
  font-style: italic;
  text-align: right;
}
.official-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.official-news-card {
  min-width: 0;
  padding-right: 14px;
}
.official-news-card + .official-news-card {
  border-left: 1px solid #999;
  padding-left: 16px;
}
.official-news-photo {
  margin: 0 0 8px;
  height: 145px;
  background: #eeeae1;
  overflow: hidden;
}
.official-news-photo:empty {
  display: none;
}
.official-news-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.official-news-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--orange);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9.5px;
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
}
.official-news-card h2 {
  margin: 4px 0 7px;
  font-size: 20px;
  line-height: 1.02;
}
.official-news-card h2 a {
  text-decoration: none;
}
.official-news-copy p {
  margin: 0 0 7px;
  font-size: 11.7px;
  line-height: 1.25;
  text-align: left;
}
.official-news-credit {
  margin-top: 7px;
  padding-top: 5px;
  border-top: 1px solid #bbb;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9.5px;
  line-height: 1.15;
  font-weight: 700;
}
.official-news-more {
  margin-top: 10px;
  padding-top: 7px;
  border-top: 1px solid #999;
}
.official-news-more h3 {
  margin: 0 0 4px;
  font-size: 15px;
}
.official-news-more ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 20px;
  margin: 0;
  padding-left: 18px;
}
.official-news-more li {
  font-size: 11px;
  line-height: 1.2;
}
.official-news-more span {
  display: block;
  color: #666;
  font-size: 9px;
}
.community-hero-compact {
  grid-template-columns: minmax(0, 1fr) 225px;
  gap: 14px;
}
.community-hero-compact img {
  height: 205px;
}
.community-note-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 12px;
}
.community-note-grid article {
  border-top: 2px solid var(--rule);
  padding-top: 7px;
}
.community-note-grid h2 {
  margin: 3px 0 5px;
  font-size: 20px;
  line-height: 1;
}
.community-note-grid p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.25;
}
.compact-ad {
  padding: 10px;
  margin-top: 12px;
}
.compact-ad h2 {
  font-size: 23px;
}
.compact-ad p {
  font-size: 12px;
}

@media (max-width: 760px) {
  .official-news-heading {
    display: block;
  }
  .official-news-heading p {
    margin-top: 6px;
    max-width: none;
    text-align: left;
  }
  .official-news-grid,
  .official-news-more ul,
  .community-note-grid {
    grid-template-columns: 1fr;
  }
  .official-news-card + .official-news-card {
    border-left: 0;
    border-top: 1px solid #999;
    padding: 12px 0 0;
    margin-top: 12px;
  }
  .official-news-photo {
    height: auto;
    max-height: 260px;
  }
}

/* Step 15: full official stories inserted directly after the front page */
.representative-photo img {
  filter: none;
}
.representative-photo figcaption {
  font-weight: 700;
}

.official-story-page {
  display: flex;
  flex-direction: column;
}
.official-story-article {
  flex: 1;
  padding-top: 12px;
}
.official-story-kicker {
  color: var(--orange);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.continued-label {
  float: right;
  color: var(--orange);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.official-story-article h1 {
  margin: 5px 0 7px;
  font-size: 46px;
  line-height: .96;
  letter-spacing: -.025em;
}
.official-story-byline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 6px 0 8px;
  border-top: 1px solid #777;
  border-bottom: 1px solid #777;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
}
.official-story-photo {
  float: right;
  width: 43%;
  margin: 12px 0 12px 18px;
}
.official-story-photo img {
  width: 100%;
  max-height: 390px;
  object-fit: cover;
  display: block;
}
.official-story-photo figcaption {
  margin-top: 4px;
  font-size: 11px;
  font-style: italic;
}
.official-story-body {
  column-count: 2;
  column-gap: 24px;
  column-rule: 1px solid #aaa;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.34;
  text-align: justify;
  hyphens: auto;
}
.official-story-body p {
  margin: 0 0 9px;
  break-inside: avoid;
}
.official-story-body p:first-child::first-letter {
  float: left;
  font-size: 49px;
  line-height: .78;
  padding-right: 5px;
  font-weight: 700;
}
.official-story-source {
  clear: both;
  margin-top: 10px;
  padding-top: 6px;
  border-top: 1px solid #777;
  font-size: 11px;
  font-style: italic;
}

@media (max-width: 760px) {
  .official-story-article h1 { font-size: 36px; }
  .official-story-photo { float: none; width: 100%; margin: 10px 0; }
  .official-story-body { column-count: 1; }
}

.official-story-flow {
  flex: 1;
  padding-top: 10px;
}
.official-story-article + .official-story-article {
  clear: both;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 3px solid var(--rule);
}
.official-story-article.compact h1 {
  font-size: 34px;
}
.official-story-article.compact .official-story-photo {
  width: 32%;
  max-width: 340px;
}
.official-story-article.compact .official-story-body {
  column-count: 1;
  font-size: 13.2px;
}

/* Step 16: streamlined ending and lead community photograph fallback */
.lead-photo .caption-note {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-weight: 700;
  font-size: 10.5px;
  color: #4a4a4a;
}

.edition-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
  padding-top: 10px;
  border-top: 3px solid var(--rule);
}
.edition-notes article + article {
  border-left: 1px solid #aaa;
  padding-left: 18px;
}
.edition-notes h2 {
  margin: 3px 0 5px;
  font-size: 20px;
  line-height: 1;
}
.edition-notes p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.28;
}

@media (max-width: 760px) {
  .edition-notes { grid-template-columns: 1fr; }
  .edition-notes article + article {
    border-left: 0;
    border-top: 1px solid #aaa;
    padding: 9px 0 0;
  }
}

/* Step 17: coverage dateline and refreshed At a Glance rail */
.coverage-strip {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 9px;
  padding: 5px 10px 6px;
  border-bottom: 2px solid var(--rule);
  background: #f1eee6;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1;
}
.coverage-label {
  color: var(--orange);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.coverage-strip strong {
  font-size: 12.5px;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.coverage-strip em {
  color: #555;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
}
.inside-coverage {
  padding: 4px 0 6px;
  border-bottom: 2px solid var(--rule);
  color: #333;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .045em;
  text-align: center;
  text-transform: uppercase;
}
.inside-coverage span {
  color: var(--orange);
  margin-right: 5px;
  font-size: 9px;
  letter-spacing: .12em;
}

.at-a-glance {
  overflow: hidden;
  padding: 0;
  border: 1px solid #2a2926;
  border-top: 5px solid #111;
  background: #fffdf8;
  box-shadow: 0 2px 0 rgba(0,0,0,.08);
}
.glance-header {
  padding: 8px 10px 7px;
  border-bottom: 3px double #242424;
  text-align: center;
}
.glance-header span {
  display: block;
  margin-bottom: 2px;
  color: var(--orange);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.at-a-glance .glance-header h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 21px;
  line-height: 1;
  letter-spacing: .025em;
}
.glance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #aaa59c;
}
.glance-stat {
  position: relative;
  min-height: 102px;
  padding: 10px 8px 8px;
  border: 0;
  border-bottom: 1px solid #c8c3b9;
  background: linear-gradient(180deg, rgba(246,243,236,.8), rgba(255,253,248,.95));
}
.glance-stat:nth-child(odd) { border-right: 1px solid #c8c3b9; }
.glance-stat:nth-last-child(-n+2) { border-bottom: 0; }
.glance-stat .glance-icon {
  position: absolute;
  top: 7px;
  right: 7px;
  color: rgba(214,82,0,.32);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}
.glance-stat .label {
  display: block;
  max-width: 78px;
  color: #333;
  font-size: 8.5px;
  line-height: 1.05;
  letter-spacing: .07em;
}
.glance-stat strong {
  display: block;
  margin: 3px 0 2px;
  font-size: 25px;
  line-height: .95;
  letter-spacing: -.025em;
}
.glance-stat:nth-child(3) strong,
.glance-stat.weather strong {
  font-size: 20px;
  line-height: 1;
}
.glance-stat small {
  display: block;
  color: #555;
  font-size: 9.5px;
  line-height: 1.15;
}
.at-a-glance .inside {
  padding: 8px 10px 9px;
}
.at-a-glance .inside h3 {
  margin: 0 0 5px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--orange);
  font-size: 12px;
  letter-spacing: .06em;
}
.at-a-glance .inside div {
  min-height: 25px;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px dotted #8d887f;
  font-size: 11.5px;
}
.at-a-glance .inside div:last-child { border-bottom: 0; }
.at-a-glance .inside b {
  display: inline-grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  line-height: 1;
}
.glance-note {
  padding: 8px 10px 9px;
  border-top: 3px solid #111;
  background: #eeeae1;
}
.glance-note > span {
  display: block;
  color: var(--orange);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.glance-note p {
  margin: 3px 0 0;
  font-size: 10.5px;
  line-height: 1.22;
}

@media (max-width: 1140px) {
  .at-a-glance { display: block; }
  .at-a-glance .glance-header,
  .at-a-glance .glance-grid,
  .at-a-glance .inside,
  .at-a-glance .glance-note { grid-column: auto; }
}
@media (max-width: 760px) {
  .coverage-strip {
    flex-wrap: wrap;
    gap: 4px 8px;
    line-height: 1.15;
    text-align: center;
  }
  .coverage-strip em { flex-basis: 100%; }
  .glance-stat { min-height: 94px; }
}

/* Step 18: expanded Yesterday at a Glance and FredScanner house ad */
.glance-header h2 { font-size: 19px; }
.activity-score {
  padding: 9px 10px 10px;
  border-bottom: 1px solid #aaa59c;
  background: #f3efe6;
}
.activity-score > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.detail-label {
  color: var(--orange);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.activity-score strong {
  font-size: 25px;
  line-height: 1;
}
.activity-score strong small {
  color: #666;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  letter-spacing: 0;
}
.activity-score > b {
  display: block;
  margin-top: 3px;
  color: #333;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  text-align: right;
  text-transform: uppercase;
}
.activity-meter {
  height: 7px;
  margin-top: 5px;
  overflow: hidden;
  border: 1px solid #aaa49a;
  background: #ddd8cf;
}
.activity-meter i {
  display: block;
  height: 100%;
  background: var(--orange);
}
.glance-detail {
  padding: 9px 10px;
  border-bottom: 1px solid #aaa59c;
}
.incident-breakdown {
  background: #fffdf8;
}
.breakdown-row {
  display: grid;
  grid-template-columns: 1fr 22px;
  gap: 2px 6px;
  align-items: center;
  margin-top: 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9.5px;
}
.breakdown-row > b {
  text-align: right;
  font-size: 10px;
}
.breakdown-row > i {
  grid-column: 1 / -1;
  display: block;
  height: 4px;
  overflow: hidden;
  background: #ddd8cf;
}
.breakdown-row > i > u {
  display: block;
  height: 100%;
  background: #272522;
  text-decoration: none;
}
.largest-response strong {
  display: block;
  margin: 4px 0 2px;
  font-size: 14px;
  line-height: 1.05;
}
.largest-response > span:last-child {
  display: block;
  color: #555;
  font-size: 9.5px;
  line-height: 1.18;
}
.top-communities ol {
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
}
.top-communities li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px dotted #9e998f;
  font-size: 10.5px;
}
.top-communities li:last-child { border-bottom: 0; }
.top-communities li b {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
}
.fredscanner-ad {
  position: relative;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 172px;
  padding: 18px 10px 10px;
  border: 2px solid var(--orange);
  background:
    linear-gradient(145deg, rgba(214,82,0,.08), transparent 55%),
    #fffdf8;
  color: #111;
  text-decoration: none;
}
.fredscanner-ad .ad-label {
  top: 5px;
  left: 7px;
  color: #555;
}
.fredscanner-ad img {
  width: 72px;
  height: 82px;
  object-fit: contain;
}
.scanner-ad-copy > span {
  display: block;
  color: var(--orange);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.scanner-ad-copy > strong {
  display: block;
  margin: 3px 0 5px;
  font-size: 19px;
  line-height: .95;
}
.scanner-ad-copy p {
  margin: 0 0 7px;
  font-size: 9.5px;
  line-height: 1.2;
}
.scanner-ad-copy > b {
  display: block;
  padding-top: 5px;
  border-top: 1px solid #aaa;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9.5px;
}

@media (max-width: 1140px) {
  .fredscanner-ad { min-height: 0; }
}

/* Step 19: remove edition directory and let official-story copy continue below photos */
.official-story-article.has-photo .official-story-photo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .9fr);
  gap: 22px;
  align-items: start;
  margin-top: 12px;
}
.official-story-article.has-photo .official-story-photo {
  float: none;
  width: auto;
  max-width: none;
  margin: 0;
}
.official-story-article.has-photo .official-story-photo img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
}
.official-story-side-copy {
  column-count: 2;
  column-gap: 22px;
  column-rule: 1px solid #aaa;
  font-size: 14px;
  line-height: 1.34;
  text-align: justify;
  hyphens: auto;
}
.official-story-side-copy p,
.official-story-below-copy p {
  margin: 0 0 9px;
  break-inside: avoid;
}
.official-story-side-copy p:first-child::first-letter,
.official-story-article.no-photo .official-story-body p:first-child::first-letter {
  float: left;
  font-size: 49px;
  line-height: .78;
  padding-right: 5px;
  font-weight: 700;
}
.official-story-below-copy {
  clear: both;
  column-count: 3;
  column-gap: 22px;
  column-rule: 1px solid #aaa;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #aaa;
  font-size: 14px;
  line-height: 1.34;
  text-align: justify;
  hyphens: auto;
}
.official-story-article.compact.has-photo .official-story-photo-layout {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 32%);
}
.official-story-article.compact.has-photo .official-story-side-copy {
  column-count: 1;
  font-size: 13.2px;
}
.official-story-article.compact.has-photo .official-story-below-copy {
  column-count: 2;
  font-size: 13.2px;
}

@media (max-width: 760px) {
  .official-story-article.has-photo .official-story-photo-layout,
  .official-story-article.compact.has-photo .official-story-photo-layout {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
  }
  .official-story-side-copy,
  .official-story-below-copy,
  .official-story-article.compact.has-photo .official-story-below-copy {
    column-count: 1;
  }
}

/* Step 20: cleaner newspaper story flow, no rules boxed around body copy */
.official-story-body,
.official-story-side-copy,
.official-story-below-copy {
  column-rule: none;
}

.official-story-below-copy {
  border-top: 0;
  padding-top: 0;
  margin-top: 18px;
}

.official-story-source {
  border-top: 0;
  padding-top: 0;
  margin-top: 14px;
}

.official-story-byline {
  border-top: 0;
  border-bottom: 1px solid #b8b2a8;
  padding-top: 2px;
}

/* Step 22: explicit top-to-bottom reading order for official stories */
.official-story-column-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.34;
  text-align: justify;
  hyphens: auto;
}
.official-story-column-grid.compact-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .8fr);
}
.official-story-column { min-width: 0; }
.official-story-column p {
  margin: 0 0 10px;
  break-inside: avoid;
}
.official-story-column-1 p:first-child::first-letter {
  float: left;
  font-size: 49px;
  line-height: .78;
  padding-right: 5px;
  font-weight: 700;
}
.official-story-column .official-story-photo {
  float: none;
  width: auto;
  max-width: none;
  margin: 0 0 10px;
}
.official-story-column .official-story-photo img {
  width: 100%;
  height: auto;
  max-height: 430px;
  object-fit: cover;
  display: block;
}
.official-story-column .official-story-photo figcaption {
  margin-top: 4px;
  font-size: 11px;
  font-style: italic;
}
.official-story-article.compact .official-story-column-grid {
  font-size: 13.2px;
}

/* Disable the former row-based layout. */
.official-story-photo-layout,
.official-story-side-copy,
.official-story-below-copy {
  column-count: auto;
  margin: 0;
  padding: 0;
  border: 0;
}

@media (max-width: 760px) {
  .official-story-column-grid,
  .official-story-column-grid.compact-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Step 23: actual height-balanced official-story rows */
.official-story-auto-balance { width: 100%; }
.official-story-auto-balance:not(.balanced-ready) .official-story-column-grid { visibility: hidden; }
.official-story-column-grid.auto-balanced-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  width: 100%;
  margin-top: 10px;
}
.official-story-column-grid.auto-balanced-grid .official-story-column { min-width: 0; }
.official-story-chunk {
  font-size: 14px;
  line-height: 1.35;
  text-align: justify;
  hyphens: auto;
}
.official-story-chunk.paragraph-start { margin-top: 10px; }
.official-story-column .official-story-chunk:first-child { margin-top: 0; }
.official-story-column-1 .official-story-chunk:first-child::first-letter {
  float: left;
  font-size: 51px;
  line-height: .72;
  padding-right: 5px;
  padding-top: 3px;
  font-weight: 700;
}
.official-story-column-grid.auto-balanced-grid .official-story-photo {
  float: none !important;
  width: 100% !important;
  margin: 0 0 8px !important;
  break-inside: avoid;
}
.official-story-column-grid.auto-balanced-grid .official-story-photo img {
  width: 100%;
  height: auto;
  max-height: 510px;
  object-fit: contain;
  display: block;
}
.official-story-column-grid.auto-balanced-grid .official-story-photo figcaption {
  margin-top: 4px;
  font-size: 11px;
  font-style: italic;
}
.official-story-article.auto-balanced-story { padding-bottom: 14px; }
.official-story-article.auto-balanced-story + .official-story-article.auto-balanced-story {
  margin-top: 16px;
  padding-top: 16px;
}
.official-story-article.auto-balanced-story .official-story-source { margin-top: 8px; }
@media (max-width: 760px) {
  .official-story-column-grid.auto-balanced-grid { grid-template-columns: 1fr; }
  .official-story-column-grid.auto-balanced-grid .official-story-column-2,
  .official-story-column-grid.auto-balanced-grid .official-story-column-3 { display: none; }
}
.official-story-column-grid.auto-balanced-grid .official-story-photo img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 390px !important;
  margin: 0 auto;
}
.official-story-image-source {
  position: absolute;
  left: -10000px;
  top: 0;
  width: calc((100% - 36px) / 3);
  visibility: hidden;
  pointer-events: none;
}

/* Step 24: archived TomTom traffic summary */
.traffic-sidebar {
  border: 1px solid var(--rule);
  background: #fbf8f1;
  padding: 9px 10px 8px;
}
.traffic-sidebar header {
  border-bottom: 2px solid var(--orange);
  padding-bottom: 5px;
  margin-bottom: 7px;
  text-align: center;
}
.traffic-sidebar header span {
  display: block;
  color: var(--orange);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.traffic-sidebar h2 {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1;
}
.traffic-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #b8b2a8;
}
.traffic-stat-grid > div {
  min-width: 0;
  padding: 6px 6px 7px 0;
  border-bottom: 1px solid #d2ccc1;
}
.traffic-stat-grid > div:nth-child(even) {
  border-left: 1px solid #d2ccc1;
  padding-left: 7px;
}
.traffic-stat-grid span,
.traffic-stat-grid small {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8.5px;
  line-height: 1.15;
}
.traffic-stat-grid span {
  color: var(--orange);
  font-weight: 800;
  text-transform: uppercase;
}
.traffic-stat-grid strong {
  display: block;
  margin: 2px 0;
  font-size: 16px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.traffic-sidebar ul {
  list-style: none;
  padding: 5px 0 2px;
  margin: 0;
}
.traffic-sidebar li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
  border-bottom: 1px dotted #b8b2a8;
  font-size: 10px;
}
.traffic-sidebar p {
  margin: 6px 0 0;
  font-size: 8.5px;
  line-height: 1.2;
  font-style: italic;
}


/* Step 25: traffic sidebar cleanup */

.right-rail { gap: 12px; }
.traffic-stat-grid > .traffic-wide { grid-column: 1 / -1; padding-right: 0; }
.traffic-stat-grid > .traffic-wide strong {
  font-size: 14px;
  line-height: 1.12;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}
.traffic-stat-grid > .traffic-wide small { margin-top: 2px; }


/* Step 26: replace footer notes with full-width Frederick Scanner ad */
.edition-footer-ad {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  margin-top: 18px;
  padding: 14px 18px 12px;
  border: 2px solid var(--orange);
  background: linear-gradient(145deg, rgba(214,82,0,.08), transparent 55%), #fffdf8;
  color: #111;
  text-decoration: none;
}
.edition-footer-ad .ad-label {
  position: absolute;
  top: 5px;
  left: 8px;
  color: #555;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  letter-spacing: .04em;
}
.edition-footer-ad img {
  width: 84px;
  height: 92px;
  object-fit: contain;
}
.edition-footer-ad-copy {
  min-width: 0;
}
.edition-footer-ad-copy > span {
  display: block;
  color: var(--orange);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.edition-footer-ad-copy > strong {
  display: block;
  margin: 3px 0 6px;
  font-size: 31px;
  line-height: .96;
}
.edition-footer-ad-copy p {
  margin: 0;
  max-width: 620px;
  font-size: 14px;
  line-height: 1.2;
}
.edition-footer-ad > b {
  display: block;
  align-self: end;
  white-space: nowrap;
  padding-left: 14px;
  border-left: 1px solid #aaa;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}
@media (max-width: 900px) {
  .edition-footer-ad {
    grid-template-columns: 72px 1fr;
  }
  .edition-footer-ad > b {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid #aaa;
    padding-left: 0;
    padding-top: 8px;
  }
}


/* V1: show every verified FredScanner update in Public Safety Briefs */
.verified-updates {
  margin-top: 9px;
  padding-top: 7px;
  border-top: 1px solid #aaa;
}

.updates-label {
  margin-bottom: 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--orange);
}

.verified-update {
  margin: 0 0 4px;
  font-size: 11.5px;
  line-height: 1.25;
}

.verified-update strong,
.brief-update strong {
  margin-right: 4px;
  white-space: nowrap;
}

.brief-updates {
  margin-top: 4px;
}

.brief-update {
  margin: 0 0 3px;
  font-size: 11px;
  line-height: 1.22;
  color: #292929;
}

/* ===== FREDWATCH SIDEBAR V2 ===== */

.at-a-glance {
  border: 1px solid #222 !important;
  border-top: 5px solid #111 !important;
  background: #fffdfa !important;
  box-shadow: 0 2px 0 rgba(0,0,0,.10) !important;
}

.glance-header {
  padding: 10px 8px 9px !important;
  background: linear-gradient(#fffdfa,#f8f3e9);
}

.at-a-glance .glance-header h2 {
  font-size: 21px !important;
  letter-spacing: .02em;
}

.glance-stat {
  padding: 11px 9px 9px !important;
  background: #fffdfa !important;
}

.glance-stat .glance-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1.5px solid var(--orange);
  border-radius: 50%;
  color: var(--orange) !important;
  background: #fff8f1;
  font-size: 13px !important;
  opacity: 1 !important;
}

.glance-stat strong {
  font-size: 28px !important;
}

.activity-score {
  margin: 8px;
  padding: 9px 10px 10px !important;
  border: 1px solid rgba(214,82,0,.45) !important;
  background: linear-gradient(100deg,#fff7ee,#f5f0e7) !important;
}

.activity-meter {
  height: 9px !important;
  border-radius: 5px;
}

.activity-meter i {
  background: linear-gradient(90deg,#d65200,#ee7900) !important;
}


.incident-breakdown {
  margin: 0 8px 8px;
  border: 1px solid #bbb4aa;
  background: #fff !important;
}

.incident-breakdown .detail-label::before {
  content: "▲";
  margin-right: 5px;
  color: var(--orange);
}

.breakdown-row {
  grid-template-columns: 1fr 42px 20px !important;
  gap: 4px !important;
  margin-top: 7px !important;
}

.breakdown-row > i {
  grid-column: 2 !important;
  grid-row: 1 !important;
  height: 5px !important;
  border-radius: 4px;
}

.breakdown-row > i > u {
  background: var(--orange) !important;
  border-radius: 4px;
}

.breakdown-row > b {
  grid-column: 3;
  grid-row: 1;
}

.largest-response {
  position: relative;
  margin: 0 8px 8px;
  padding: 9px 9px 9px 42px !important;
  border: 1px solid rgba(214,82,0,.4);
  background: #fff6eb;
}

.largest-response::before {
  content: "▲";
  position: absolute;
  left: 9px;
  top: 12px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1.5px solid var(--orange);
  border-radius: 50%;
  color: var(--orange);
  font-size: 13px;
}

.largest-response strong {
  font-size: 17px !important;
}

.top-communities {
  margin: 0 8px 8px;
  border: 1px solid #c4beb4;
  background: #fff;
}

.top-communities ol {
  counter-reset: fwcommunity;
}

.top-communities li {
  counter-increment: fwcommunity;
  justify-content: flex-start !important;
  align-items: center;
}

.top-communities li::before {
  content: counter(fwcommunity);
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  font: 800 9px Arial,sans-serif;
}

.top-communities li span {
  flex: 1;
}


.traffic-sidebar {
  border: 1px solid #222 !important;
  border-top: 4px solid #111 !important;
  background: #fffaf3 !important;
  padding: 10px !important;
  box-shadow: 0 2px 0 rgba(0,0,0,.08);
}

.traffic-sidebar header {
  margin-bottom: 8px !important;
  padding-bottom: 7px !important;
  border-bottom: 3px solid var(--orange) !important;
}

.traffic-sidebar h2 {
  font-size: 20px !important;
}

.traffic-stat-grid {
  gap: 0;
  border: 0 !important;
}

.traffic-stat-grid > div {
  padding: 7px !important;
  background: rgba(255,255,255,.65);
}

.traffic-stat-grid strong {
  font-size: 18px !important;
}

.traffic-wide {
  grid-column: 1 / -1;
  margin-top: 5px;
  border: 1px solid rgba(214,82,0,.35) !important;
  background: #fff4e8 !important;
}

.traffic-sidebar ul {
  padding-top: 8px !important;
}

.traffic-sidebar li {
  display: grid !important;
  grid-template-columns: 68px 1fr 22px;
  align-items: center;
  gap: 5px;
  border-bottom: 0 !important;
  padding: 3px 0 !important;
}

.traffic-sidebar li i {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: #ddd7cd;
}

.traffic-sidebar li i u {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: var(--orange);
  text-decoration: none;
}

.traffic-sidebar li b {
  text-align: right;
}

.traffic-sidebar p {
  margin-top: 8px !important;
  padding-top: 6px;
  border-top: 1px solid #b9b2a7;
}


/* ===== STEP 27: sidebar icon + polish pass ===== */

/* Replace weak glance icons with crisp SVG-style icons */
.at-a-glance .glance-stat .glance-icon{
  position: relative;
  font-size: 0 !important;
  color: transparent !important;
  background-color: #fff8f1 !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  border-width: 1.5px !important;
}

/* Calls Logged: radio / dispatch */
.at-a-glance .glance-stat:nth-of-type(1) .glance-icon{
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d65200' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 6v12'/><path d='M8.5 9.5a4.5 4.5 0 0 0 0 5'/><path d='M15.5 9.5a4.5 4.5 0 0 1 0 5'/></svg>");
}

/* Verified Updates: shield check */
.at-a-glance .glance-stat:nth-of-type(2) .glance-icon{
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d65200' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3l7 3v5c0 5-3.5 8-7 10-3.5-2-7-5-7-10V6l7-3z'/><path d='M9 12l2 2 4-4'/></svg>");
}

/* Busiest Hour: clock */
.at-a-glance .glance-stat:nth-of-type(3) .glance-icon{
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d65200' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='7'/><path d='M12 8v4l3 2'/></svg>");
}

/* Weather: sun */
.at-a-glance .glance-stat:nth-of-type(4) .glance-icon{
  background-image: url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d65200' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='4'/><path d='M12 2v3'/><path d='M12 19v3'/><path d='M4.93 4.93l2.12 2.12'/><path d='M16.95 16.95l2.12 2.12'/><path d='M2 12h3'/><path d='M19 12h3'/><path d='M4.93 19.07l2.12-2.12'/><path d='M16.95 7.05l2.12-2.12'/></svg>\");
}

/* Make incident-breakdown bars easier to read */
.incident-breakdown .breakdown-row{
  grid-template-columns: 1fr 72px 20px !important;
  gap: 6px !important;
}
.incident-breakdown .breakdown-row > i{
  height: 7px !important;
  margin-top: 4px !important;
}
.incident-breakdown .breakdown-row > i > u{
  min-width: 8px;
}

/* Give largest-response a little more breathing room */
.largest-response{
  padding-top: 10px !important;
  padding-bottom: 12px !important;
}
.largest-response small,
.largest-response .detail-text,
.largest-response .detail-note{
  display: block;
  margin-top: 4px !important;
  line-height: 1.25 !important;
}


/* ===== STEP 28: reliable print-safe glance icons ===== */

.at-a-glance .glance-icon {
  background-image: none !important;
  font-size: 15px !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 700;
  color: var(--orange) !important;
}

.at-a-glance .glance-stat:nth-of-type(1) .glance-icon::before {
  content: "☎";
}

.at-a-glance .glance-stat:nth-of-type(2) .glance-icon::before {
  content: "✓";
}

.at-a-glance .glance-stat:nth-of-type(3) .glance-icon::before {
  content: "◷";
}

.at-a-glance .glance-stat:nth-of-type(4) .glance-icon::before {
  content: "☀";
}


/* ===== STEP 29: inline glance SVG icons ===== */
.at-a-glance .glance-icon svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: none;
  stroke: #d65200;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ===== STEP 30: final glance icon positioning ===== */

.at-a-glance .glance-stat {
  position: relative;
  padding: 11px 34px 10px 9px !important;
}

.at-a-glance .glance-stat .glance-icon {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  width: 22px !important;
  height: 22px !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
}

.at-a-glance .glance-icon svg {
  width: 12px !important;
  height: 12px !important;
}

.at-a-glance .glance-stat .label {
  display: block;
  padding-right: 2px;
  line-height: 1.05;
}


/* ===== STEP 31: Top Communities leaderboard ===== */

.top-communities ol {
  counter-reset: fwcommunity;
  margin: 4px 0 0 !important;
  padding: 0 !important;
}

.top-communities li {
  counter-increment: fwcommunity;
  display: grid !important;
  grid-template-columns: 18px 1fr auto auto !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 2px !important;
  border-bottom: 1px dotted #b9b2a7 !important;
}

.top-communities li:last-child {
  border-bottom: 0 !important;
}

/* Rank: simple orange number, no badge */
.top-communities li::before {
  content: counter(fwcommunity) "." !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--orange) !important;
  font: 800 12px Georgia, "Times New Roman", serif !important;
}

/* Community */
.top-communities li span {
  min-width: 0;
  font-weight: 700;
}

/* Orange accent before the count */
.top-communities li::after {
  content: "";
  width: 18px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

/* Count: plain bold number */
.top-communities li b {
  display: block !important;
  min-width: 12px !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #111 !important;
  font: 800 14px Georgia, "Times New Roman", serif !important;
  line-height: 1 !important;
  text-align: right !important;
}


/* STEP 32: cleaner community leaderboard bars */

.top-communities li {
  grid-template-columns: 18px 1fr 44px 16px !important;
}

/* bar track */
.top-communities li::after {
  width: 44px !important;
  height: 4px !important;
  background: #ddd7cd !important;
  border-radius: 3px !important;
}

/* orange value bar */
.top-communities li:nth-child(1)::after {
  background: linear-gradient(
    to right,
    var(--orange) 0 100%,
    #ddd7cd 100%
  ) !important;
}

.top-communities li:nth-child(2)::after,
.top-communities li:nth-child(3)::after {
  background: linear-gradient(
    to right,
    var(--orange) 0 33%,
    #ddd7cd 33%
  ) !important;
}

.top-communities li b {
  grid-column: 4 !important;
}


/* ===== STEP 33: cleaner inside-page header ===== */

/* Remove stacked rules above the coverage strip */
.inside-masthead {
  border-bottom: 0 !important;
  padding-bottom: 3px !important;
}

.inside-edition-bar {
  border-bottom: 0 !important;
  padding: 4px 0 4px !important;
}

/* Keep one strong separator beneath Also Reported */
.briefs-heading {
  border-bottom: 2px solid var(--rule) !important;
  padding-bottom: 5px !important;
  margin-bottom: 8px !important;
}


/* ===== STEP 34: variable gap house ad on page 1 ===== */

.lead-layout {
  align-items: stretch;
}

.lead-secondary {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.lead-copy-secondary {
  margin-bottom: 10px;
}

.gap-house-ad {
  flex: 1 1 auto;
  display: flex;
  min-height: 120px;
}

.gap-house-ad-inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #d7c1ae;
  box-shadow: inset 0 4px 0 var(--orange);
  background:
    linear-gradient(135deg, #fff8ef 0%, #fffdf9 48%, #eef4fb 100%);
}

.gap-house-ad .ad-kicker {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--orange);
  text-transform: uppercase;
}

.gap-house-ad h3 {
  margin: 0;
  font-size: 28px;
  line-height: .95;
  color: #16324a;
}

.gap-house-ad p {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
  color: #333;
}

.ad-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ad-pill-row span {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: white;
}

.ad-pill-row span:nth-child(1) { background: #d96b00; }
.ad-pill-row span:nth-child(2) { background: #1f5f8b; }
.ad-pill-row span:nth-child(3) { background: #4c7a5a; }

.gap-house-ad .ad-cta {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #d7c1ae;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: #16324a;
}

@media (max-width: 760px) {
  .gap-house-ad h3 {
    font-size: 24px;
  }
}



/* ===== STEP 32: Dynamic house ad refresh ===== */
.lower-grid.no-ledger {
  align-items: stretch;
}

.house-ad {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
  padding: 14px 16px 14px;
  border: 1px solid #efc8b1;
  border-top: 4px solid var(--orange);
  background: linear-gradient(180deg, #fffdfa 0%, #fff6ef 100%);
}

.house-ad .ad-label {
  margin: 0 0 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--orange);
  text-transform: uppercase;
}

.house-ad-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.house-ad h2 {
  margin: 0;
  font-size: 30px;
  line-height: .96;
  color: #173f6b;
}

.house-ad h3 {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--orange);
  text-transform: uppercase;
}

.house-ad p {
  margin: 0;
  font-size: 17px;
  line-height: 1.26;
  color: #2f2f2f;
}

.ad-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.ad-badges .badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #fff;
  line-height: 1;
}

.ad-badges .local   { background: #ef6c00; }
.ad-badges .trusted { background: #0077b6; }
.ad-badges .daily   { background: #5b8f4e; }

.house-ad-fill {
  flex: 1 1 auto;
  min-height: 22px;
}

.house-ad .ad-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e5c2aa;
}

.house-ad .ad-footer-main {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #173f6b;
}

.house-ad .ad-footer-sub {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.25;
  color: #555;
}

/* ===== STEP 35: final variable-height gap ad ===== */

.gap-house-ad-inner {
  justify-content: flex-start !important;
}

/* Let the message scale with the available space */
.gap-house-ad h3 {
  font-size: clamp(24px, 2.3vw, 34px) !important;
  line-height: .98 !important;
  margin-top: 4px !important;
}

.gap-house-ad p {
  font-size: clamp(14px, 1.15vw, 18px) !important;
  line-height: 1.3 !important;
  max-width: 95%;
}

/* Give the badges more presence */
.gap-house-ad .ad-pill-row {
  margin-top: 6px;
  gap: 8px;
}

.gap-house-ad .ad-pill-row span {
  padding: 5px 11px !important;
  font-size: 11px !important;
}

/* Use the empty middle as intentional ad space */
.gap-house-ad-inner::after {
  content: "FREDERICK COUNTY • LOCAL NEWS • EVERY DAY";
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 14px 0 8px;
  border-top: 1px solid #d7c1ae;
  border-bottom: 1px solid #d7c1ae;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(11px, .9vw, 14px);
  font-weight: 800;
  letter-spacing: .11em;
  text-align: center;
  color: #1f5f8b;
}

/* Bottom CTA remains anchored at the bottom */
.gap-house-ad .ad-cta {
  margin-top: 0 !important;
  padding: 10px 0 2px !important;
  font-size: 14px !important;
}

/* Make the full-width house ad wording consistent */
.house-ad h3 {
  text-transform: uppercase;
}


/* ===== STEP 36: final house-ad polish ===== */

/* ---------- VARIABLE HEIGHT GAP AD ---------- */

.gap-house-ad-inner {
  position: relative;
  justify-content: flex-start !important;
  padding: 15px 18px !important;
  background:
    linear-gradient(
      135deg,
      #fff8ef 0%,
      #fffdf9 42%,
      #f1f7fc 72%,
      #f1f8f3 100%
    ) !important;
  border: 1px solid #ddc8b8 !important;
  box-shadow:
    inset 0 4px 0 var(--orange),
    inset 0 -1px 0 #c8d7e2;
}

/* Remove the artificial center filler line */
.gap-house-ad-inner::after {
  content: none !important;
  display: none !important;
}

.gap-house-ad .ad-kicker {
  color: var(--orange) !important;
}

/* Extra height gets distributed around the main message */
.gap-house-ad h3 {
  margin-top: auto !important;
  text-align: center !important;
  font-size: 31px !important;
  line-height: .98 !important;
  color: #173f6b !important;
}

.gap-house-ad p {
  margin: 8px auto 0 !important;
  max-width: 92% !important;
  text-align: center !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  color: #333 !important;
}

.gap-house-ad .ad-pill-row {
  justify-content: center !important;
  margin-top: 12px !important;
}

.gap-house-ad .ad-cta {
  margin-top: auto !important;
  padding: 10px 12px !important;
  border-top: 3px solid var(--orange) !important;
  background: #173f6b !important;
  color: #fff !important;
  text-align: center !important;
  font-size: 13px !important;
  letter-spacing: .06em;
}


/* ---------- FULL WIDTH AD BANNER ---------- */

.house-ad-banner {
  display: flex !important;
  flex-direction: column !important;
  padding: 12px 16px 14px !important;
  border: 1px solid #d7c1ae !important;
  border-top: 4px solid var(--orange) !important;

  background:
    linear-gradient(
      90deg,
      #f3f8fc 0%,
      #fffaf3 48%,
      #f3f8f4 100%
    ) !important;
}

.house-ad-banner .ad-label {
  text-align: left !important;
  margin-bottom: 2px !important;
}

.house-ad-banner .house-ad-body {
  align-items: center !important;
  text-align: center !important;
  gap: 7px !important;
}

.house-ad-banner h2 {
  margin: 0 !important;
  text-align: center !important;
  font-size: 31px !important;
  line-height: 1 !important;
  color: #173f6b !important;
}

.house-ad-banner p {
  max-width: 720px;
  margin: 0 auto !important;
  text-align: center !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
}

.house-ad-banner .ad-badges {
  justify-content: center !important;
  margin: 4px 0 2px !important;
}

.house-ad-banner .ad-footer {
  margin: 10px -4px -3px !important;
  padding: 8px 12px !important;
  border-top: 3px solid var(--orange) !important;
  background: #173f6b !important;
  text-align: center !important;
}

.house-ad-banner .ad-footer-main {
  color: #fff !important;
  font-size: 14px !important;
  letter-spacing: .07em !important;
}

.house-ad-banner .ad-footer-sub {
  margin-top: 2px !important;
  color: #e8f2f8 !important;
  font-size: 12px !important;
}

