*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: #f4f1eb;
  color: #1a1a1a;
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Masthead ── */
.masthead {
  background: #1c1c1c;
  color: #f4f1eb;
  padding: 20px 0 14px;
  border-bottom: 5px double #f4f1eb;
  border-top: 3px solid #c41230;
}
.masthead-name {
  font-family: 'Playfair Display', serif;
  font-size: 60px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 3px;
  margin: 0 0 4px;
  line-height: 1;
}
.masthead-name a { color: inherit; text-decoration: none; }
.masthead-name a:hover { text-decoration: none; }
.masthead-tagline {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 15px;
  text-align: center;
  color: #bbb;
  margin: 0 0 12px;
}
.edition-line {
  display: flex;
  justify-content: space-between;
  font-family: 'PT Sans', sans-serif;
  font-size: 11px;
  color: #999;
  border-top: 1px solid #444;
  padding-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Nav ── */
.site-nav {
  background: #2a2a2a;
  border-bottom: 2px solid #c41230;
}
.site-nav .container { display: flex; gap: 0; }
.nav-link {
  font-family: 'PT Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ccc;
  padding: 8px 16px;
  border-right: 1px solid #444;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active { background: #c41230; color: #fff; text-decoration: none; }

/* ── Section rule ── */
.section-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 18px;
}
.section-rule::before, .section-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #1a1a1a;
}
.section-rule-label {
  font-family: 'PT Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Section tags ── */
.section-tag {
  display: inline-block;
  font-family: 'PT Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  padding: 2px 7px;
  border-radius: 2px;
}

/* ── Front page ── */
.front-page { padding: 24px 0 48px; }

.lead-story {
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 28px;
  margin-bottom: 0;
}
.lead-story-inner { max-width: 780px; }
.lead-section-tag { margin-bottom: 10px; }
.lead-headline {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 900;
  line-height: 1.08;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}
.lead-headline a:hover { color: #c41230; text-decoration: none; }
.lead-deck {
  font-family: 'Lora', serif;
  font-size: 19px;
  font-style: italic;
  color: #444;
  line-height: 1.45;
  margin: 0 0 10px;
}
.lead-byline {
  font-family: 'PT Sans', sans-serif;
  font-size: 12px;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.lead-summary {
  font-size: 17px;
  line-height: 1.7;
  color: #222;
  max-width: 680px;
  margin-bottom: 12px;
}
.read-more-link {
  font-family: 'PT Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #c41230;
  text-decoration: none;
}
.read-more-link:hover { text-decoration: underline; }

/* ── Story grid ── */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid #1a1a1a;
  border-left: 1px solid #ccc;
  margin-bottom: 0;
}
.story-card {
  padding: 18px 16px;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  background: #fff;
}
.story-section-tag { margin-bottom: 8px; }
.story-headline {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px;
}
.story-headline a:hover { color: #c41230; }
.story-deck {
  font-family: 'Lora', serif;
  font-size: 13px;
  font-style: italic;
  color: #555;
  margin: 0 0 8px;
  line-height: 1.4;
}
.story-summary {
  font-size: 13px;
  line-height: 1.55;
  color: #333;
  margin: 0 0 10px;
}
.story-meta {
  font-family: 'PT Sans', sans-serif;
  font-size: 11px;
  color: #999;
}
.read-more {
  color: #c41230;
  font-weight: 700;
  text-decoration: none;
}
.read-more:hover { text-decoration: underline; }

/* ── Lower grid ── */
.lower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 8px;
  border-top: 2px solid #1a1a1a;
  padding-top: 24px;
}
.archive-header {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ccc;
}
.meetings-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.meetings-list li {
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dotted #ddd;
  line-height: 1.4;
}
.archive-date {
  font-family: 'PT Sans', sans-serif;
  font-size: 11px;
  color: #999;
  display: block;
}

/* ── Briefs ── */
.briefs-section { }

/* Front-page featured highlight */
.briefs-section--featured {
  background: #fff8f0;
  border: 2px solid #c41230;
  border-left: 6px solid #c41230;
  border-radius: 3px;
  padding: 18px 20px 14px;
  box-shadow: 2px 3px 10px rgba(0,0,0,0.08);
}
.briefs-featured-header {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8d5bb;
}
.briefs-featured-label {
  font-family: 'PT Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #fff;
  background: #c41230;
  padding: 3px 10px 4px;
  border-radius: 2px;
  display: inline-block;
  vertical-align: middle;
}

.brief {
  padding: 10px 0;
  border-bottom: 1px dotted #ccc;
}
.brief:last-child { border-bottom: none; }
.brief-headline {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 3px;
}
.brief-text {
  font-size: 13px;
  line-height: 1.5;
  color: #333;
  margin: 0;
}

/* ── Article page ── */
.article-page { padding-bottom: 60px; }
.back-link {
  display: inline-block;
  font-family: 'PT Sans', sans-serif;
  font-size: 12px;
  color: #c41230;
  font-weight: 700;
  padding: 10px 0;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }
.article-header {
  padding: 24px 0;
  border-bottom: 2px solid #1a1a1a;
  max-width: 780px;
}
.article-section-tag { margin-bottom: 10px; }
.article-headline {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -0.3px;
}
.article-deck {
  font-family: 'Lora', serif;
  font-size: 20px;
  font-style: italic;
  color: #444;
  line-height: 1.45;
  margin: 0 0 12px;
}
.article-byline {
  font-family: 'PT Sans', sans-serif;
  font-size: 12px;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.article-body {
  max-width: 680px;
  padding: 28px 0;
}
.article-body p {
  font-size: 17px;
  line-height: 1.75;
  margin: 0 0 20px;
}
.article-body p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 70px;
  font-weight: 900;
  float: left;
  line-height: 0.82;
  margin: 6px 6px -2px 0;
  color: #1c1c1c;
}

/* ── Related stories ── */
.related-stories { padding: 0 0 28px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-card {
  padding: 14px;
  border: 1px solid #ddd;
  background: #fff;
}
.related-headline {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin: 6px 0 6px;
}
.related-headline a:hover { color: #c41230; }
.related-summary { font-size: 13px; color: #555; margin: 0; }

/* ── Article content wrapper (enables briefs reordering on mobile) ── */
.article-content-wrapper {
  display: flex;
  flex-direction: column;
}

/* ── Article briefs top banner ── */
.article-briefs-top {
  background: #fff;
  border-top: 4px solid #c41230;
  border-bottom: 3px double #1c1c1c;
  margin-bottom: 0;
}
.article-briefs-top-header {
  background: #1c1c1c;
  padding: 8px 0;
}
.article-briefs-top-header .container {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.article-briefs-top-label {
  font-family: 'PT Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c41230;
}
.article-briefs-top-date {
  font-family: 'PT Sans', sans-serif;
  font-size: 10px;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.article-briefs-top-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  padding-top: 0;
  padding-bottom: 0;
}
.article-briefs-top-item {
  padding: 18px 20px;
  border-right: 1px solid #e8e4dc;
  border-bottom: 1px solid #e8e4dc;
}
.article-briefs-top-item:last-child { border-right: none; }
.briefs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── Meetings full list ── */
.meetings-full-list { padding: 0 0 48px; }
.meeting-entry {
  padding: 20px 0;
  border-bottom: 1px solid #ccc;
}
.meeting-entry-date {
  font-family: 'PT Sans', sans-serif;
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 4px;
}
.meeting-entry-headline {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.2;
}
.meeting-entry-headline a:hover { color: #c41230; }
.meeting-entry-deck {
  font-style: italic;
  color: #555;
  margin: 0 0 8px;
}
.meeting-entry-summary { font-size: 15px; color: #333; margin: 0 0 10px; }
.meeting-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.meeting-features-list li { font-size: 13px; }
.meeting-features-list a:hover { color: #c41230; }

/* ── Citations ── */
sup.cite a {
  font-family: 'PT Sans', sans-serif;
  font-size: 10px;
  color: #c41230;
  text-decoration: none;
}
sup.cite a:hover { text-decoration: underline; }
.article-sources { padding: 0 0 20px; }
.citations-list {
  font-family: 'PT Sans', sans-serif;
  font-size: 13px;
  color: #555;
  padding-left: 20px;
  margin: 0;
}
.citations-list li { padding: 3px 0; }
.citations-list a { color: #c41230; }
.citations-list a:hover { text-decoration: underline; }

/* ── Body label (Planning Board, Zoning Board, etc.) ── */
.body-label {
  font-family: 'PT Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: #5a6b2a;
  padding: 1px 6px;
  border-radius: 2px;
  vertical-align: middle;
}

/* ── Source line ── */
.source-line {
  font-family: 'PT Sans', sans-serif;
  font-size: 12px;
  color: #888;
  padding: 12px 0 28px;
}
.source-line a { color: #c41230; }

/* ── Footer ── */
footer {
  background: #1c1c1c;
  color: #888;
  padding: 28px 0;
  font-family: 'PT Sans', sans-serif;
  font-size: 13px;
  text-align: center;
  border-top: 3px solid #c41230;
}
footer p { margin: 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .masthead-name { font-size: 36px; }
  .lead-headline { font-size: 32px; }
  .story-grid { grid-template-columns: 1fr; }
  .lower-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .briefs-grid { grid-template-columns: 1fr 1fr; }
  .article-briefs-top-grid { grid-template-columns: 1fr; }
  .article-headline { font-size: 30px; }
  /* Push briefs below article body on mobile */
  .article-briefs-top { order: 10; }
  /* Nav: wrap to two rows so all 5 items are visible */
  .site-nav .container { flex-wrap: wrap; }
  .nav-link { flex: 1 0 auto; text-align: center; }
  /* Edition line: center items, prevent internal word-wrapping */
  .edition-line { justify-content: center; gap: 10px; flex-wrap: wrap; }
  .edition-line span { white-space: nowrap; }
  /* Front page: cap briefs at 3 items on mobile */
  .briefs-section--featured .brief:nth-child(n+5) { display: none; }
}
