/* ============================
   HVFD colour tokens + department-only components
   Loaded AFTER the theme's style.css (via config.extra.extra_css), so these
   win. Only HVFD-specific rules belong here; genuinely shared components
   (header, nav, callouts, quick-links, footer, badge) live in the theme sheet.
============================ */
:root {
  --brand: #1a1a1a;      /* dark header + footer, nav-bar base */
  --brand-nav: #8b1a1a;  /* firehouse red: nav bar, headings, bullets, buttons */
  --accent: #d4a017;     /* gold: header rule, nav hover/active, footer accents */
  --page-bg: #f5f3f0;
}

/* The old HVFD header used a maroon text badge with a gold rule, not the
   theme's transparent white-bordered placeholder. Restore the firehouse-red
   fill and gold border. */
.dept-badge-placeholder {
  background: var(--brand-nav);
  border-color: var(--accent);
}

/* Informational callout: neutral box used for "Get Involved" / "Mutual Aid"
   notes. (The theme ships .callout, .callout.warning and .callout.danger.) */
.callout.info {
  border-color: #c8ced6;
  background: #f8f9fa;
}

/* Auxiliary sub-tagline under a section heading. */
.tagline-sub {
  color: #555;
  margin-top: -0.5rem;
  margin-bottom: 1.25rem;
}

/* ============================
   Status badge (apparatus in/out of service)
============================ */
.status-badge {
  display: inline-block;
  font-weight: 600;
  font-size: 0.85rem;
  color: #666;
}

.status-badge::before {
  content: "\2014\00a0";
}

/* ============================
   Apparatus cards
============================ */
.apparatus-card {
  background: #fff;
  padding: 1.75rem;
  margin-bottom: 2rem;
  border: 1px solid #ddd;
}

.apparatus-card.memorial {
  border-top: 3px solid #444;
  background: #fafafa;
}

.apparatus-card h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0;
}

.apparatus-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.apparatus-specs dt {
  font-weight: 600;
  color: #555;
}

.apparatus-specs dd {
  margin: 0 0 0.5rem 0;
}

/* ============================
   History timeline
============================ */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 3px solid var(--brand-nav);
  margin: 1.5rem 0;
}

.timeline-entry {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.timeline-entry:last-child {
  margin-bottom: 0;
}

.timeline-entry::before {
  content: "";
  position: absolute;
  left: -2.65rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-nav);
  border: 3px solid var(--page-bg);
}

.timeline-year {
  font-weight: 700;
  color: var(--brand-nav);
  font-size: 1.1rem;
}

.timeline-text {
  margin-top: 0.25rem;
  max-width: 65ch;
}

/* ============================
   Fundraising progress bar
============================ */
.fundraising-progress {
  background: #e0e0e0;
  height: 2.25rem;
  overflow: hidden;
  margin: 1rem 0;
  position: relative;
}

.fundraising-progress .fill {
  background: var(--brand-nav);
  height: 100%;
  transition: width 0.6s ease;
}

.fundraising-progress .label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: 0.9rem;
  color: #1a1a1a;
  white-space: nowrap;
}

.fundraising-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
}

/* ============================
   News cards + article body
============================ */
.news-card {
  border-bottom: 1px solid #e5e5e5;
  padding: 1.25rem 0;
}

.news-card:first-child {
  padding-top: 0;
}

.news-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-card h3 {
  margin-top: 0;
}

.news-card h3 a {
  color: var(--brand-nav);
  text-decoration: none;
}

.news-card h3 a:hover {
  text-decoration: underline;
}

.news-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.news-body img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
}
