/* ═══════════════════════════════════════════════════════════════════════════
   WESTERRA CRIME WATCH  —  Global Stylesheet
   Aesthetic: Civic Command — dark, authoritative, sharp. Think command centre
   meets community board. Monochromatic charcoal + cold steel blue accent.
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300;400;500;600;700;800&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* ── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  /* Background layers */
  --bg-0: #12141b;
  --bg-1: #191b24;
  --bg-2: #1f2130;
  --bg-3: #272a3b;
  --bg-4: #2e3349;

  /* Borders */
  --border-faint:  rgba(255,255,255,0.04);
  --border:        rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.18);

  /* Text */
  --text-primary:   #edf0ff;
  --text-secondary: #8a90b2;
  --text-muted:     #525878;

  /* Accent — cold police blue */
  --accent:       #4a8fff;
  --accent-hover: #6aa3ff;
  --accent-glow:  rgba(74,143,255,0.18);
  --accent-dim:   rgba(74,143,255,0.08);

  /* Status colours */
  --danger:      #e63946;
  --danger-dim:  rgba(230,57,70,0.10);
  --warning:     #f4a42a;
  --warning-dim: rgba(244,164,42,0.10);
  --success:     #3ecf8e;
  --success-dim: rgba(62,207,142,0.10);
  --purple:      #a78bfa;
  --orange:      #fb923c;

  /* Layout */
  --nav-h:  66px;
  --max-w:  1160px;
  --pad:    clamp(1rem, 4vw, 2rem);

  /* Typography */
  --f-display: 'Barlow Condensed', sans-serif;
  --f-body:    'IBM Plex Sans', sans-serif;
  --f-mono:    'IBM Plex Mono', monospace;

  /* Easing */
  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1.00, 0.30, 1.00);
}

/* ── Base ───────────────────────────────────────────────────────────────── */
body {
  font-family: var(--f-body);
  background: var(--bg-0);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(18,20,27,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
}
.nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 30%, var(--accent) 70%, transparent 100%);
  opacity: 0.25;
}
.nav-inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 7px;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}
.nav-brand-name {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}
.nav-brand-sub {
  font-family: var(--f-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--accent);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover  { color: var(--text-primary); background: var(--border-faint); }
.nav-link.active { color: var(--text-primary); background: var(--accent-dim);   }

/* ── Page Layout Helpers ────────────────────────────────────────────────── */
.page-body {
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 96px;
}
.page-header {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.page-eyebrow {
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.page-title {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.page-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-top: 18px;
  line-height: 1.7;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 4px 24px rgba(74,143,255,0.28);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.35);
  background: var(--border-faint);
}
.btn-danger {
  background: var(--danger-dim);
  color: var(--danger);
  border-color: rgba(230,57,70,0.25);
}
.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}
.btn-sm  { font-size: 11px; padding: 7px 14px; }
.btn-xs  { font-size: 10px; padding: 5px 10px; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 75% 45%, rgba(74,143,255,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 35% 45% at 20% 85%, rgba(74,143,255,0.04) 0%, transparent 60%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-faint) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 30%, transparent 100%);
}
.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding-top: var(--nav-h);
  min-height: 100vh;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(74,143,255,0.3);
  background: var(--accent-dim);
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 26px;
}
.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2.4s ease infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1);   }
  50%      { opacity: 0.4; transform: scale(0.65); }
}
.hero-title {
  font-family: var(--f-display);
  font-size: clamp(3.8rem, 10vw, 7.2rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero-title-solid   { display: block; color: var(--text-primary); }
.hero-title-outline {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.28);
}
.hero-subtitle {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}
.hero-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 440px;
  margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-logo-ring {
  position: relative;
  width: 290px;
  height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
}
.hero-logo-ring::before {
  content: '';
  position: absolute;
  inset: -16px;
  border: 1px solid var(--border);
  border-radius: 50%;
}
.hero-logo-ring::after {
  content: '';
  position: absolute;
  inset: -36px;
  border: 1px dashed var(--border-faint);
  border-radius: 50%;
  animation: slow-spin 40s linear infinite;
}
@keyframes slow-spin { to { transform: rotate(360deg); } }
.hero-logo-img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 20px;
  position: relative;
  z-index: 1;
}
.hero-stats {
  display: flex;
  gap: 36px;
  text-align: center;
}
.hero-stat-num {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--text-primary);
}
.hero-stat-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Three Pillars ──────────────────────────────────────────────────────── */
.pillars { padding: 96px 0; border-top: 1px solid var(--border); }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pillar-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.pillar-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-icon  { font-size: 30px; margin-bottom: 20px; }
.pillar-title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pillar-body { font-size: 14px; line-height: 1.75; color: var(--text-secondary); }

/* ── About Section ──────────────────────────────────────────────────────── */
.about { padding: 96px 0; border-top: 1px solid var(--border); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.section-eyebrow {
  font-family: var(--f-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--accent); }
.about-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.93;
  margin-bottom: 24px;
}
.about-text p { font-size: 14px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 14px; }
.about-checklist { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.about-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.about-checklist li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.info-stack { display: flex; flex-direction: column; gap: 12px; }
.info-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.2s;
}
.info-card:hover { border-color: var(--border-strong); }
.info-card-icon { font-size: 22px; flex-shrink: 0; line-height: 1; }
.info-card h4 {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.info-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.info-card a { color: var(--accent); }
.info-card a:hover { text-decoration: underline; }

/* ── CTA Banner ─────────────────────────────────────────────────────────── */
.cta-band {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--f-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.cta-band p { font-size: 15px; color: var(--text-secondary); max-width: 500px; margin: 0 auto 30px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 52px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo  { width: 34px; height: 34px; object-fit: contain; border-radius: 6px; }
.footer-brand-name {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.footer-blurb { font-size: 13px; color: var(--text-muted); max-width: 280px; line-height: 1.7; }
.footer-col-label {
  font-family: var(--f-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.footer-col-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col-links a { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.footer-col-links a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Info Bar ────────────────────────────────────────────────────────────── */
.info-bar {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 40px;
}
.info-bar-icon { font-size: 26px; flex-shrink: 0; line-height: 1; }
.info-bar h3 {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.info-bar p   { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }
.info-bar a   { color: var(--accent); font-weight: 500; }
.info-bar a:hover { text-decoration: underline; }

/* ── Bulletin Cards ──────────────────────────────────────────────────────── */
.bulletins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.bulletin-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.25s;
}
.bulletin-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.bulletin-card-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  object-position: center top;
  display: block;
  background: var(--bg-0);
  cursor: zoom-in;
  transition: opacity 0.2s;
}
.bulletin-card-img:hover { opacity: 0.88; }

/* ── Lightbox ─────────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 40px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
  cursor: zoom-out;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  pointer-events: none;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
  display: block;
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  font-size: 28px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.15s;
  z-index: 1001;
}
.lightbox-close:hover { color: #fff; }
.lightbox-caption {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  z-index: 1001;
}
.bulletin-card-img-placeholder {
  width: 100%;
  height: 130px;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.bulletin-card-body { padding: 20px 22px; }
.bulletin-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
}
.type-badge {
  font-family: var(--f-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid;
  white-space: nowrap;
}
/* Colour-coded bulletin types */
.type-theft      { color: var(--warning);  border-color: rgba(244,164,42,0.35);  background: var(--warning-dim); }
.type-vandalism  { color: var(--danger);   border-color: rgba(230,57,70,0.35);   background: var(--danger-dim);  }
.type-suspicious { color: var(--accent);   border-color: rgba(74,143,255,0.35);  background: var(--accent-dim);  }
.type-alert      { color: var(--orange);   border-color: rgba(251,146,60,0.35);  background: rgba(251,146,60,0.08); }
.type-update     { color: var(--success);  border-color: rgba(62,207,142,0.35);  background: var(--success-dim); }
.type-info       { color: var(--success);  border-color: rgba(62,207,142,0.35);  background: var(--success-dim); }
.type-default    { color: var(--text-secondary); border-color: var(--border-strong); background: var(--border-faint); }

.bulletin-date {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}
.bulletin-desc { font-size: 14px; line-height: 1.72; color: var(--text-secondary); }

/* ── Empty & Loading States ─────────────────────────────────────────────── */
.state-box {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}
.state-icon { font-size: 42px; opacity: 0.45; margin-bottom: 16px; }
.state-box p { font-size: 14px; }
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Crime Prevention ────────────────────────────────────────────────────── */
.rcmp-banner {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 28px 32px;
  margin-bottom: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.rcmp-banner-info h3 {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.rcmp-banner-info p { font-size: 13px; color: var(--text-secondary); }
.rcmp-contacts { display: flex; gap: 28px; flex-wrap: wrap; }
.rcmp-contact  { display: flex; flex-direction: column; align-items: center; text-align: center; }
.rcmp-contact-label {
  font-family: var(--f-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.rcmp-contact-num {
  font-family: var(--f-mono);
  font-size: 19px;
  font-weight: 500;
  color: var(--text-primary);
}
.rcmp-contact-num.emergency { color: var(--danger); }

.cp-sections { display: flex; flex-direction: column; gap: 64px; }
.cp-section {}
.cp-section-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.cp-section-icon { font-size: 34px; flex-shrink: 0; }
.cp-section-head h2 {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 5px;
}
.cp-section-head p { font-size: 13px; color: var(--text-secondary); }
.cp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.cp-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 20px;
  transition: border-color 0.2s;
}
.cp-card:hover { border-color: var(--border-strong); }
.cp-card h4 {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cp-card p { font-size: 13px; line-height: 1.72; color: var(--text-secondary); }

/* ── Admin – Login ───────────────────────────────────────────────────────── */
.admin-login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-0);
  padding: 24px;
}
.admin-login-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 48px 40px;
  width: 100%;
  max-width: 380px;
}
.admin-login-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 22px;
}
.admin-login-title {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.admin-login-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 30px; }

/* ── Admin – Dashboard ───────────────────────────────────────────────────── */
.admin-topbar {
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--pad);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-topbar-logo { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; }
.admin-topbar-label {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.admin-topbar-sub { font-size: 10px; color: var(--accent); letter-spacing: 0.14em; }
.admin-content { max-width: 1000px; margin: 0 auto; padding: 40px var(--pad) 80px; }
.admin-panel {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 28px;
}
.admin-panel-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-panel-title {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.admin-panel-body { padding: 24px; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.form-row.cols-1 { grid-template-columns: 1fr; }
.form-group { margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }
.form-label {
  display: block;
  font-family: var(--f-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 7px;
}
.form-control {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
textarea.form-control { resize: vertical; min-height: 90px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }

/* Upload area */
.upload-area {
  border: 2px dashed var(--border-strong);
  border-radius: 6px;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.upload-area:hover, .upload-area.dragover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  font-size: 0;
}
.upload-area-label { font-size: 13px; color: var(--text-muted); pointer-events: none; }
.upload-area-label span { color: var(--accent); }
.upload-preview { margin-top: 12px; position: relative; display: inline-block; }
.upload-preview img { max-height: 100px; border-radius: 4px; border: 1px solid var(--border); }
.upload-clear {
  position: absolute;
  top: -8px; right: -8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  line-height: 1;
}

/* Alerts */
.alert {
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}
.alert-error   { background: var(--danger-dim);  border: 1px solid rgba(230,57,70,0.3);    color: var(--danger);  }
.alert-success { background: var(--success-dim); border: 1px solid rgba(62,207,142,0.3);   color: var(--success); }

/* ── Admin Table ─────────────────────────────────────────────────────────── */
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th {
  font-family: var(--f-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border-faint);
  vertical-align: middle;
  color: var(--text-secondary);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-2); }
.admin-table .thumb {
  width: 48px; height: 48px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.admin-table .no-thumb {
  width: 48px; height: 48px;
  background: var(--bg-3);
  border-radius: 4px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
}
.admin-table .desc-cell { max-width: 260px; }
.admin-table .desc-cell p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.admin-table .actions-cell { white-space: nowrap; }
.actions-cell-inner { display: flex; gap: 6px; align-items: center; }

/* ── Modal ───────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(5px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(18px) scale(0.98);
  transition: transform 0.3s var(--ease-out);
}
.modal-overlay.open .modal-box { transform: none; }
.modal-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg-1);
  z-index: 10;
}
.modal-title {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.modal-close {
  font-size: 20px;
  line-height: 1;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.modal-close:hover { color: var(--text-primary); background: var(--border-faint); }
.modal-body { padding: 24px; }
.modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.fade-up   { animation: fadeUp 0.6s var(--ease-out) both; }
.delay-1   { animation-delay: 0.10s; }
.delay-2   { animation-delay: 0.20s; }
.delay-3   { animation-delay: 0.30s; }
.delay-4   { animation-delay: 0.42s; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding-top: calc(var(--nav-h) + 40px);
    min-height: auto;
    padding-bottom: 72px;
  }
  .hero-visual { order: -1; }
  .hero-logo-ring { width: 180px; height: 180px; }
  .hero-logo-img  { width: 140px; height: 140px; }
  .pillars-grid   { grid-template-columns: 1fr; }
  .about-grid     { grid-template-columns: 1fr; }
  .footer-inner   { grid-template-columns: 1fr; gap: 32px; }
  .form-row       { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bulletins-grid { grid-template-columns: 1fr; }
  .nav-brand-text { display: none; }
  .rcmp-banner    { flex-direction: column; }
  .cp-grid        { grid-template-columns: 1fr; }
}
