/* County Courier — public stylesheet */
:root {
  --paper: #ffffff;
  --paper-deep: #f2f7fb;
  --ink: #1a1a1a;
  --ink-soft: #333333;
  --muted: #5f6b76;
  --rule: #d9dee3;
  --rule-dark: #1a1a1a;
  --accent: #006cb7; /* sampled from theneighborhoodnews.com masthead */
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar ---------- */
.topbar {
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; padding-bottom: 8px; gap: 12px;
}
.topbar .dev-badge {
  color: var(--accent); font-weight: 700; letter-spacing: .2em;
  border: 1px solid var(--accent); padding: 1px 8px; border-radius: 2px;
}

/* ---------- Masthead (official banner asset from theneighborhoodnews.com) ---------- */
.masthead { text-align: center; padding: 18px 0 0; }
.masthead .banner img { width: 100%; max-width: 1100px; height: auto; margin: 0 auto; display: block; }

/* double rule */
.double-rule { border: 0; border-top: 3px solid var(--rule-dark); position: relative; margin: 14px 0 0; }
.double-rule::after {
  content: ""; display: block; border-top: 1px solid var(--rule-dark); margin-top: 2px;
}

/* ---------- Nav ---------- */
.catnav { border-bottom: 1px solid var(--rule-dark); background: var(--paper); }
.catnav ul {
  list-style: none;
  display: flex; justify-content: center; align-items: center;
  gap: 26px; flex-wrap: nowrap; overflow-x: auto;
  padding: 12px 20px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  -webkit-overflow-scrolling: touch;
}
.catnav a { white-space: nowrap; padding-bottom: 3px; border-bottom: 2px solid transparent; }
.catnav a:hover, .catnav a.active { color: var(--accent); border-bottom-color: var(--accent); }
.catnav .nav-search { margin-left: 6px; color: var(--muted); }

/* ---------- Ads ---------- */
.ad-slot { text-align: center; }
.ad-slot .ad-label {
  font-family: var(--sans); font-size: 9px; letter-spacing: .25em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.ad-leaderboard { padding: 18px 0 4px; }
.ad-leaderboard img { margin: 0 auto; max-height: 110px; width: auto; max-width: 100%; }
.ad-rail img { margin: 0 auto; width: 100%; max-width: 320px; border: 1px solid var(--rule); }
.ad-rail + .ad-rail { margin-top: 18px; }

/* ---------- Kickers, bylines ---------- */
.kicker {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.byline {
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.byline b { color: var(--ink-soft); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { padding: 30px 0 34px; }
.hero-grid { display: grid; grid-template-columns: 6fr 5fr; gap: 44px; align-items: center; }
.hero-grid.no-image { grid-template-columns: 1fr; text-align: center; max-width: 860px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.08; font-weight: 700; letter-spacing: -.01em;
  margin: 12px 0 14px;
}
.hero .deck {
  font-size: 19px; line-height: 1.5; font-style: italic; color: var(--ink-soft);
  margin-bottom: 16px;
}
.hero figure figcaption, .article-figure figcaption {
  font-family: var(--sans); font-size: 12px; color: var(--muted);
  padding-top: 8px; border-bottom: 1px solid var(--rule); padding-bottom: 8px;
  text-align: left; line-height: 1.45;
}
.hero figure img { border: 1px solid var(--rule); }

/* ---------- Section label ---------- */
.section-label {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink);
  margin: 8px 0 24px;
}
.section-label::before, .section-label::after {
  content: ""; flex: 1; border-top: 1px solid var(--rule-dark);
}
.section-label.left-flush::before { display: none; }

/* ---------- Story grid ---------- */
.story-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0 36px; margin-bottom: 10px;
}
.story-grid .card { padding: 0 0 26px; }
.story-grid .card + .card { border-left: 0; }
.story-grid > .card:nth-child(3n+2), .story-grid > .card:nth-child(3n) {
  border-left: 1px solid var(--rule); padding-left: 36px; margin-left: -18px;
}
.card h3 { font-size: 21px; line-height: 1.25; margin: 8px 0; font-weight: 700; }
.card .excerpt { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin-bottom: 10px; }
.card img.thumb { border: 1px solid var(--rule); margin-bottom: 10px; aspect-ratio: 3/2; object-fit: cover; width: 100%; }

/* ---------- Lower band: more news + rail ---------- */
.lower-band { display: grid; grid-template-columns: 2fr 1fr; gap: 44px; padding-bottom: 44px; }
.list-item { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 16px 0; border-top: 1px solid var(--rule); }
.list-item:first-of-type { border-top: 0; }
.list-item h4 { font-size: 19px; line-height: 1.3; margin: 4px 0 6px; }
.list-item .excerpt { font-size: 14.5px; color: var(--ink-soft); }
.list-item img { width: 150px; height: 100px; object-fit: cover; border: 1px solid var(--rule); }
.rail .rail-head {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  border-top: 3px solid var(--rule-dark); padding-top: 10px; margin-bottom: 14px;
}
.rail .sections-list { list-style: none; font-family: var(--sans); font-size: 14px; }
.rail .sections-list li { border-bottom: 1px solid var(--rule); }
.rail .sections-list a { display: block; padding: 9px 0; }
.rail .sections-list a::after { content: "→"; float: right; color: var(--muted); }
.rail-box { margin-bottom: 30px; }

/* ---------- Article page ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 52px; padding: 34px 0 40px; }
.article-head .kicker { display: inline-block; margin-bottom: 10px; }
.article-head h1 {
  font-size: clamp(28px, 4vw, 44px); line-height: 1.12; font-weight: 700;
  letter-spacing: -.01em; margin-bottom: 12px;
}
.article-head .deck { font-size: 19px; font-style: italic; color: var(--ink-soft); line-height: 1.5; margin-bottom: 16px; }
.article-meta {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule);
  padding: 10px 0; margin-bottom: 22px;
}
.article-figure { margin-bottom: 24px; }
.article-figure img { border: 1px solid var(--rule); width: 100%; }
.article-body { max-width: 65ch; font-size: 17.5px; line-height: 1.75; }
.article-body p { margin-bottom: 1.15em; }
.article-body > p:first-of-type::first-letter {
  font-size: 3.4em; font-weight: 700; float: left;
  line-height: .85; padding: 4px 8px 0 0; color: var(--accent);
}
.article-body strong { font-weight: 700; }
.article-body a { text-decoration: underline; text-decoration-color: var(--accent); }
.article-end { display: flex; align-items: center; gap: 8px; margin: 20px 0 0; color: var(--accent); font-size: 20px; }

/* related */
.related { padding: 10px 0 46px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.related-grid h4 { font-size: 17px; line-height: 1.3; margin-top: 6px; }

/* ---------- Category / search pages ---------- */
.page-head { padding: 32px 0 8px; }
.page-head h1 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 700; }
.page-head .sub { font-family: var(--sans); color: var(--muted); font-size: 14px; margin-top: 6px; }
.page-head hr { border: 0; border-top: 3px solid var(--rule-dark); margin-top: 16px; }
.category-list { padding: 10px 0 46px; max-width: 820px; }
.empty-note {
  font-family: var(--sans); color: var(--muted); font-size: 15px;
  padding: 40px 0 60px; text-align: center;
}

/* search box */
.search-form { display: flex; gap: 10px; margin-top: 14px; max-width: 520px; }
.search-form input[type=search] {
  flex: 1; font-family: var(--serif); font-size: 16px;
  padding: 10px 14px; border: 1px solid var(--rule-dark); background: #fff; color: var(--ink);
}
.search-form button {
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; background: var(--accent); color: #fff;
  border: 0; padding: 0 22px; cursor: pointer;
}
.search-form button:hover { background: #00518a; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--accent); color: #d9e8f5; margin-top: 30px;
  font-family: var(--sans); font-size: 13.5px;
}
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 44px 20px 30px; }
.site-footer h5 {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: #ffffff; margin-bottom: 14px;
}
.site-footer .foot-name { font-family: var(--serif); font-size: 26px; font-weight: 700; color: #ffffff; }
.site-footer p { margin-top: 10px; line-height: 1.6; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .legal {
  border-top: 1px solid rgba(255,255,255,.3); padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 11.5px; letter-spacing: .06em; color: #cfe2f2;
  max-width: 1140px; margin: 0 auto;
}
.site-footer .legal .powered { flex: 1; text-align: center; min-width: 180px; }
.site-footer .legal .powered a { color: #ffffff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.site-footer .legal .powered a:hover { color: #d9e8f5; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .story-grid { grid-template-columns: 1fr 1fr; }
  .story-grid > .card:nth-child(n) { border-left: 0; padding-left: 0; margin-left: 0; }
  .story-grid > .card:nth-child(2n) { border-left: 1px solid var(--rule); padding-left: 28px; margin-left: -14px; }
  .lower-band { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-grid > .card:nth-child(n) { border-left: 0; padding-left: 0; margin-left: 0; border-top: 1px solid var(--rule); padding-top: 18px; }
  .story-grid > .card:first-child { border-top: 0; padding-top: 0; }
  .list-item { grid-template-columns: 1fr; }
  .list-item img { width: 100%; height: auto; }
  .related-grid { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .topbar .hide-sm { display: none; }
}

/* ---- Community Calendar (2026-07-12 round 2) ---------------------------- */
.events-band { margin-top: 34px; }
.events-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.event-card { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line, #d7dee5); border-top: 3px solid #006cb7; border-radius: 8px; padding: 12px 14px; background: #fff; text-decoration: none; color: inherit; transition: box-shadow .15s ease; }
.event-card:hover { box-shadow: 0 3px 10px rgba(0, 60, 105, .12); }
.event-card h4 { font-size: 15px; line-height: 1.3; margin: 1px 0 5px; color: #1e2933; }
.event-meta { font-size: 12.5px; color: #5c6a76; }
.events-more { margin-top: 12px; text-align: right; font-size: 14px; }
.events-more a { color: #006cb7; font-weight: 700; text-decoration: none; }
.events-more a:hover { text-decoration: underline; }

.date-badge { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 52px; padding: 6px 8px; background: #006cb7; color: #fff; border-radius: 8px; line-height: 1.05; text-align: center; }
.date-badge .db-month { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.date-badge .db-day { font-size: 22px; font-weight: 800; }
.date-badge .db-dow { font-size: 10.5px; opacity: .85; text-transform: uppercase; letter-spacing: .1em; }

/* /events page */
.month-block { margin-bottom: 34px; }
.event-row { display: flex; gap: 18px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line, #e3e8ee); }
.event-row:last-child { border-bottom: 0; }
.event-row .date-badge { min-width: 64px; padding: 8px 10px; }
.event-row .date-badge .db-day { font-size: 26px; }
.event-body h3 { font-size: 19px; margin: 0 0 4px; color: #1e2933; }
.event-body .event-meta { margin-bottom: 8px; font-size: 13.5px; }
.event-desc { font-size: 15px; line-height: 1.6; color: #333c45; max-width: 720px; }
.event-desc p { margin-bottom: .8em; }
