/* =========================================
   THE CITY OF LOVAT — Main Stylesheet
   ========================================= */

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

/* --- Variables --- */
:root {
  --green:      #008558;
  --green-dk:   #00291a;
  --green-mid:  #003d28;
  --green-lt:   #e6f4ee;
  --yellow:     #fed51f;
  --yellow-dk:  #c9a800;
  --yellow-lt:  #fff9d6;
  --white:      #ffffff;
  --off-white:  #f7f8f6;
  --gray-lt:    #eaebe8;
  --gray:       #d0d2cc;
  --gray-md:    #8a8f84;
  --gray-dk:    #3d4038;
  --text:       #1e2019;
  --text-lt:    #565950;
  --border:     #d0d2cc;
  --red:        #b02020;

  --font-display: 'Spectral SC', 'Spectral', Georgia, serif;
  --font-ui:      'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --max-w: 1140px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dk); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--green); }

/* --- Utility --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }

/* =========================================
   HEADER & NAV
   ========================================= */

.alert-bar {
  background: var(--yellow);
  padding: 0.3rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dk);
  text-align: center;
  font-weight: 500;
}

.site-header {
  background: var(--green-dk);
  border-bottom: 4px solid var(--yellow);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0);
  transition: box-shadow 0.25s;
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.45);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.site-logo img { height: 42px; width: auto; }

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-wordmark .city-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
}
.logo-wordmark .city-sub {
  font-family: var(--font-mono);
  font-size: 0.53rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
}

/* Primary Nav */
.primary-nav { display:flex; align-items:center; list-style:none; gap:0; }
.primary-nav > li { position: relative; }
.primary-nav > li > a {
  display: block;
  padding: 0.45rem 0.8rem;
  font-family: var(--font-ui);
  font-size: 0.77rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.primary-nav > li > a:hover,
.primary-nav > li > a.active {
  color: var(--yellow);
  background: rgba(255,255,255,0.06);
}

/* Dropdown */
.primary-nav .has-dropdown:hover > .dropdown,
.primary-nav .has-dropdown:focus-within > .dropdown {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.dropdown {
  position: absolute; top: 100%; left: 0;
  background: var(--green-dk);
  border-top: 2px solid var(--yellow);
  border: 1px solid rgba(254,213,31,0.3);
  border-top: 2px solid var(--yellow);
  list-style: none; min-width: 210px;
  opacity: 0; pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.dropdown li a {
  display: block;
  padding: 0.6rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.dropdown li a:hover { background: rgba(254,213,31,0.1); color: var(--yellow); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(254,213,31,0.5);
  color: var(--yellow);
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* =========================================
   DEPT BANNER
   ========================================= */

.dept-banner-wrap {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: var(--green-dk);
}
.dept-banner-wrap img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.45;
}
.dept-banner-wrap .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,41,26,0.3) 0%, rgba(0,41,26,0.75) 100%);
  display: flex; flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 1.25rem 2.5rem 2rem;
}
.dept-banner-wrap .overlay .breadcrumb {
  position: absolute;
  top: 1.25rem;
  left: 2.5rem;
  right: 2.5rem;
  flex-shrink: 0;
}
/* Ensure breadcrumb never participates in flex layout */
.dept-banner-wrap .overlay > .breadcrumb {
  position: absolute;
}
.dept-banner-wrap .overlay h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

/* =========================================
   HOME PAGE
   ========================================= */

.home-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--yellow);
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-dk);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,41,26,0.45) 0%,
    rgba(0,41,26,0.65) 60%,
    rgba(0,41,26,0.85) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 1.5rem;
  width: 100%;
}

.home-hero .seal {
  width: 72px; margin: 0 auto 1rem; opacity: 0.9;
}
.home-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}
.home-hero p {
  max-width: 720px;
  margin: 0 auto 2rem;
  font-size: 0.97rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.72);
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-dk);
  background: var(--yellow);
  padding: 0.75rem 2rem;
  text-decoration: none;
  border: 2px solid var(--yellow);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.hero-cta:hover {
  background: transparent;
  color: var(--yellow);
  border-color: var(--yellow);
}

/* What's Happening */
.whats-happening {
  background: var(--white);
  padding: 3rem 0 1rem;
}

.section-label-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--yellow);
}
.section-label-bar h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
}
.section-label-bar span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-md);
}

/* Two-col news layout */
.news-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 0;
}

/* Fixed-height column so pagination doesn't shift the layout */
.news-col {
  display: flex;
  flex-direction: column;
  min-height: calc(3 * (60px + 1.8rem) + 2.5rem); /* 3 items + pagination */
  opacity: 1;
  transition: opacity 0.2s ease;
}

.news-col-items {
  flex: 1;
}

.news-col.is-loading {
  opacity: 0;
  pointer-events: none;
}

.news-col-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray);
}
.news-col-head h3 {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-md);
}
.news-col-head .col-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.col-dot-mayor { background: var(--green); }
.col-dot-community { background: var(--yellow-dk); }
.col-dot-lla        { background: var(--red); }

/* News list items */
.news-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--gray-lt);
}
.news-item:last-child { border-bottom: none; }
.news-item .ni-img {
  width: 80px; height: 60px; object-fit: cover; flex-shrink: 0;
}
.news-item .ni-body {}
.news-item .ni-meta {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-md);
  margin-bottom: 0.2rem;
}
.news-item h4 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}
.news-item h4 a { color: var(--text); text-decoration: none; }
.news-item h4 a:hover { color: var(--green); text-decoration: underline; }

/* Quicklinks row */
.quicklinks-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray);
}
.quicklink-tile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--off-white);
  border: 1px solid var(--gray);
  border-left: 4px solid var(--green);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.quicklink-tile:hover {
  background: var(--green-lt);
  border-color: var(--green);
  border-left-color: var(--green);
}
.quicklink-tile .qt-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  object-fit: contain;
  /* Tint SVG to site green (#008558) */
  filter: invert(35%) sepia(80%) saturate(500%) hue-rotate(118deg) brightness(90%);
}
.quicklink-tile .qt-text {}
.quicklink-tile .qt-text strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.quicklink-tile .qt-text span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-md);
}

/* Gallery */
.gallery-section {
  background: var(--green-dk);
  padding: 2.5rem 1.5rem;
}
.gallery-section h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  text-align: center;
  margin-bottom: 1.5rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 4px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.gallery-grid img {
  width: 100%; height: 125px; object-fit: cover;
  opacity: 0.75; transition: opacity 0.2s; cursor: pointer;
}
.gallery-grid img:hover { opacity: 1; }

/* Partners — LARGE featured section */
.partners-section {
  background: var(--white);
  border-top: 4px solid var(--yellow);
  border-bottom: 4px solid var(--yellow);
  padding: 4rem 1.5rem 4.5rem;
}
.partners-section .partners-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  text-align: center;
  margin-bottom: 0.4rem;
}
.partners-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin-bottom: 0.75rem;
}
.partners-section .partners-intro {
  font-size: 0.9rem;
  color: var(--text-lt);
  max-width: 600px;
  margin: 0 auto 3.5rem;
  text-align: center;
  line-height: 1.7;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: center;
}
.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 2rem 1.5rem;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.88;
}
.partner-card:hover {
  opacity: 1;
  transform: scale(1.04);
}
.partner-card img {
  width: 100%;
  max-width: 100%;
  height: 180px;
  object-fit: contain;
}

/* =========================================
   SECTION BADGES
   ========================================= */

.card-source-badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.badge-lpd     { color: #1a4a7a; }
.badge-mayor   { color: var(--green-dk); }
.badge-lla     { color: var(--red); }
.badge-press   { color: #3a5a28; }

.card-date {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--gray-md);
  letter-spacing: 0.03em;
}

/* =========================================
   POST CARDS (used on police.html etc)
   ========================================= */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.post-card {
  background: var(--white);
  border: none;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.18s;
  padding: 0.5rem;
}
.post-card:hover {
  background: var(--yellow-lt);
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}
.post-card .card-img { width:100%; height:175px; object-fit:cover; }
.post-card .card-body { padding:1.2rem; flex:1; display:flex; flex-direction:column; }
.post-card .card-meta { display:flex; align-items:center; gap:0.6rem; margin-bottom:0.45rem; flex-wrap:wrap; }
.post-card h3 {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 600; line-height: 1.35; margin-bottom: 0.5rem;
}
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a:hover { color: var(--green); text-decoration: underline; }
.post-card p { font-size: 0.87rem; color: var(--text-lt); line-height: 1.65; flex:1; }
.read-more {
  display: inline-block; margin-top: 0.85rem;
  font-family: var(--font-mono); font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green-dk); text-decoration: none;
  border-bottom: 1px solid var(--green);
  padding-bottom: 1px; transition: color 0.15s;
}
.read-more:hover { color: var(--green); }

/* =========================================
   BLOTTER LIST
   ========================================= */

.blotter-list { display: flex; flex-direction: column; gap: 1.5rem; }
.blotter-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  background: var(--white);
  border: none;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.18s;
  padding: 0.5rem;
}
.blotter-item:hover {
  background: var(--yellow-lt);
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}
.blotter-item .bi-img {
  padding: 0;
  display: block;
}
.blotter-item .bi-img { width:100%; height:155px; object-fit:cover; }
.blotter-item .bi-content { padding: 1.15rem 1.25rem; display:flex; flex-direction:column; }
.blotter-item .bi-meta { display:flex; align-items:center; gap:0.6rem; margin-bottom:0.4rem; flex-wrap:wrap; }
.blotter-item h3 {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 600; line-height: 1.3; margin-bottom: 0.45rem;
}
.blotter-item h3 a { color: var(--text); text-decoration: none; }
.blotter-item h3 a:hover { color: var(--green); text-decoration: underline; }
.blotter-item p { font-size: 0.86rem; color: var(--text-lt); line-height: 1.6; flex:1; }

/* =========================================
   PAGE LAYOUT (dept pages)
   ========================================= */

.page-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 3rem;
  align-items: start;
}
.page-layout.full-width { grid-template-columns: 1fr; }

.page-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 600; color: var(--text); margin-bottom: 0.35rem; line-height: 1.2;
}
.dept-tagline {
  font-family: var(--font-mono);
  font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); margin-bottom: 1.25rem;
  text-align: center;
}
.dept-divider { border:none; border-top:2px solid var(--yellow); margin: 1.5rem 0; }

.page-content p { margin-bottom: 1rem; font-size: 0.96rem; line-height: 1.78; }
.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600; color: var(--text);
  margin: 2rem 0 0.6rem; padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--gray);
}
.page-content h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--gray-dk); margin: 1.5rem 0 0.4rem; }
.page-content ul, .page-content ol { margin: 0.6rem 0 1rem 1.4rem; font-size: 0.93rem; line-height: 1.75; }
.page-content strong { color: var(--text); }

/* Sidebar */
.page-sidebar { position: sticky; top: 90px; }
.sidebar-block {
  background: var(--off-white); border: 1px solid var(--gray);
  border-top: 3px solid var(--green);
  padding: 1.1rem 1.2rem; margin-bottom: 1.25rem;
}
.sidebar-block h4 {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray-md); margin-bottom: 0.65rem;
  padding-bottom: 0.4rem; border-bottom: 1px solid var(--gray);
}
.sidebar-block ul { list-style: none; }
.sidebar-block ul li { padding: 0.28rem 0; font-size: 0.84rem; border-bottom: 1px solid rgba(0,0,0,0.04); }
.sidebar-block ul li:last-child { border-bottom: none; }
.sidebar-block ul li a { color: var(--green-dk); text-decoration: none; font-size: 0.84rem; }
.sidebar-block ul li a:hover { color: var(--green); text-decoration: underline; }

/* Services */
.services-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin: 1.75rem 0;
}
.service-tile {
  background: var(--white); border: 1px solid var(--gray);
  padding: 1.25rem 1rem; text-align: center; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.service-tile:hover { border-color: var(--green); box-shadow: 0 3px 12px rgba(0,133,88,0.1); }
.service-tile img { width: 48px; height: 48px; object-fit: contain; }
.service-tile span {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text);
}

/* Council */
.council-list { list-style:none; column-count:2; column-gap:2rem; margin:1rem 0 2rem; }
.council-list li { padding: 0.35rem 0; font-size: 0.9rem; border-bottom: 1px solid var(--gray-lt); break-inside: avoid; }
.district-num { font-family: var(--font-mono); font-size: 0.7rem; color: var(--gray-md); margin-right: 0.4rem; }

/* Community Centers */
.center-entry {
  display: grid; grid-template-columns: 175px 1fr; gap: 1.25rem;
  margin-bottom: 2.25rem; padding-bottom: 2.25rem; border-bottom: 1px solid var(--gray);
}
.center-entry:last-of-type { border-bottom: none; }
.center-entry img { width:175px; height:125px; object-fit:cover; }

/* Notice box */
.notice-box {
  background: #fffbea;
  border: 1px solid var(--yellow-dk);
  border-left: 4px solid var(--yellow);
  padding: 1.1rem 1.4rem;
  margin: 1.25rem 0;
  font-size: 0.9rem; line-height: 1.7;
}
.notice-box strong { color: #7a5a00; }

/* Mayor sig */
.mayor-sig { margin: 1.25rem 0 0.2rem; }
.mayor-sig img { max-width: 150px; }

/* =========================================
   SINGLE POST
   ========================================= */

.post-layout {
  max-width: 760px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem;
}
.post-header { margin-bottom: 1.75rem; }
.post-meta-bar { display:flex; align-items:center; gap:0.65rem; margin-bottom:0.6rem; flex-wrap:wrap; }
.post-date { font-family:var(--font-mono); font-size:0.62rem; letter-spacing:0.06em; color:var(--gray-md); text-transform:uppercase; }
.post-header h1 {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 600; color: var(--text); line-height: 1.25;
}
.post-hero-img {
  width:100%; height:290px; object-fit:cover;
  margin-bottom: 2.25rem; border-bottom: 3px solid var(--yellow);
}
.post-body { font-size: 0.97rem; line-height: 1.85; }
.post-body p { margin-bottom: 1.1rem; }
.post-body strong { color: var(--text); }
.post-body h5 {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  color: var(--text); margin: 1.5rem 0 0.45rem;
}
.post-body ul, .post-body ol { margin: 0.65rem 0 1rem 1.4rem; line-height: 1.8; }
.post-body hr { border:none; border-top:1px solid var(--gray); margin: 1.25rem 0; }

.post-tags { margin-top:2rem; padding-top:0.85rem; border-top:1px solid var(--gray); display:flex; flex-wrap:wrap; gap:0.4rem; align-items:center; }
.post-tags .tags-label { font-family:var(--font-mono); font-size:0.6rem; letter-spacing:0.08em; text-transform:uppercase; color:var(--gray-md); }
.tag-pill {
  font-family:var(--font-mono); font-size:0.6rem; letter-spacing:0.04em; text-transform:uppercase;
  background:var(--gray-lt); border:1px solid var(--gray); color:var(--text-lt);
  padding:0.12rem 0.5rem; text-decoration:none; transition: border-color 0.12s, color 0.12s;
}
.tag-pill:hover { border-color: var(--green); color: var(--green-dk); }

.back-link {
  display:inline-flex; align-items:center; gap:0.35rem;
  font-family:var(--font-mono); font-size:0.62rem; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--gray-md); text-decoration:none; margin-bottom:1.75rem; transition:color 0.12s;
}
.back-link:hover { color: var(--green-dk); }
.back-link::before { content:'←'; }

/* Comments */
.comment-section { margin-top:2.5rem; padding-top:1.75rem; border-top:2px solid var(--yellow); }
.comment-section h3 { font-family:var(--font-display); font-size:1.05rem; color:var(--text); margin-bottom:1rem; }
.comment {
  background:var(--off-white); border:1px solid var(--gray);
  border-left:3px solid var(--green); padding:0.9rem 1.1rem; margin-bottom:0.85rem;
}
.comment-author { font-family:var(--font-mono); font-size:0.67rem; font-weight:500; letter-spacing:0.04em; color:var(--green-dk); margin-bottom:0.15rem; }
.comment-author a { color:var(--green-dk); }
.comment-author .comment-time { color:var(--gray-md); margin-left:0.5rem; font-weight:400; }
.comment p { font-size:0.88rem; margin:0; line-height:1.65; }

/* =========================================
   LLA THEME
   ========================================= */

.lla-badge-bar {
  background: #1c0a0a; border-bottom: 2px solid #b02020;
  padding: 0.35rem 1.5rem;
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: #d04040; text-align: center;
}

/* =========================================
   FEED POSTS (dept sub-pages / blotter feed)
   ========================================= */

.feed-posts { max-width: var(--max-w); margin: 0 auto; padding: 2.5rem 1.5rem; }
.feed-header { background: var(--green-dk); padding: 2.25rem 1.5rem; border-bottom: 3px solid var(--yellow); }
.feed-header-inner { max-width: var(--max-w); margin: 0 auto; }

/* =========================================
   PAGE HERO (simple pages without banner img)
   ========================================= */

.page-hero {
  background: var(--green-dk); padding: 2rem 1.5rem;
  border-bottom: 4px solid var(--yellow);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 600; color: var(--white);
  max-width: var(--max-w); margin: 0 auto;
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
  background: var(--green-dk);
  border-top: 4px solid var(--yellow);
  color: rgba(255,255,255,0.55);
  padding: 2.5rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr 1fr; gap: 2.5rem;
  padding-bottom: 1.75rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 52px; width:auto; opacity:0.75; margin-bottom:0.6rem; }
.footer-brand p { display: none; }
.footer-nav h5 {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(254,213,31,0.8); margin-bottom: 0.65rem;
}
.footer-nav ul { list-style:none; }
.footer-nav ul li { margin-bottom: 0.3rem; }
.footer-nav ul li a {
  color: rgba(255,255,255,0.5); text-decoration:none; font-size:0.82rem; transition:color 0.12s;
}
.footer-nav ul li a:hover { color: var(--yellow); }
.footer-bottom {
  max-width: var(--max-w); margin: 1.1rem auto 0;
  display:flex; justify-content:space-between; align-items:center;
  font-family: var(--font-mono); font-size:0.58rem;
  letter-spacing:0.06em; text-transform:uppercase; color:rgba(255,255,255,0.28);
}

/* =========================================
   404 PAGE
   ========================================= */

.error-page {
  min-height:68vh; display:flex; flex-direction:column;
  align-items:center; justify-content:center; text-align:center; padding:4rem 1.5rem;
}
.error-code {
  font-family:var(--font-mono); font-size:0.67rem; letter-spacing:0.14em;
  text-transform:uppercase; color:var(--green); margin-bottom:0.9rem;
}
.error-page h1 {
  font-family:var(--font-display); font-size:clamp(1.5rem,4vw,2.2rem);
  font-weight:600; color:var(--text); margin-bottom:1rem; line-height:1.25;
}
.error-page p { max-width:480px; color:var(--text-lt); font-size:0.93rem; line-height:1.75; margin-bottom:2rem; }
.error-stamp {
  font-family:var(--font-mono); font-size:0.58rem; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--gray); border:1px solid var(--gray); padding:0.28rem 0.75rem; margin-bottom:1.75rem;
}
.error-nav { display:flex; gap:0.85rem; flex-wrap:wrap; justify-content:center; }
.error-nav a {
  font-family:var(--font-mono); font-size:0.65rem; letter-spacing:0.08em; text-transform:uppercase;
  padding:0.5rem 1.1rem; border:1px solid var(--green-dk); color:var(--green-dk); text-decoration:none;
  transition:background 0.12s, color 0.12s;
}
.error-nav a:hover { background:var(--green-dk); color:var(--white); }

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 960px) {
  .page-layout { grid-template-columns: 1fr; }
  .page-sidebar { position:static; }
  .footer-inner { grid-template-columns:1fr 1fr; }
  .footer-brand { grid-column:1/-1; }
  .blotter-item { grid-template-columns: 1fr; }
  .blotter-item .bi-img { height:180px; }
  .blotter-item .bi-content { padding:1.1rem; }
  .center-entry { grid-template-columns:1fr; }
  .center-entry img { width:100%; height:180px; }
  .news-columns { grid-template-columns: 1fr; gap: 2rem; }
  .partners-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 700px) {
  .primary-nav { display: none; }
  .primary-nav.open {
    display: flex; flex-direction: column; align-items: center;
    position: absolute; top: 68px; left:0; right:0;
    background: var(--green-dk); border-top: 2px solid var(--yellow);
    padding: 0.75rem 0; z-index:99;
  }
  .primary-nav.open > li { width: 100%; text-align: center; }
  .primary-nav.open > li > a { padding: 0.75rem 1.5rem; display: block; }
  .primary-nav.open .dropdown {
    position:static; opacity:1; pointer-events:auto; transform:none;
    border:none; background:rgba(0,0,0,0.15); box-shadow:none; text-align:center;
  }
  .menu-toggle { display:flex; margin-left:auto; font-size:0.9rem; padding:0.6rem 1.1rem; }
  .header-inner { position:relative; justify-content: space-between; }
  .council-list { column-count:1; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .services-grid-large { grid-template-columns: repeat(3,1fr); justify-items: center; }
  .footer-inner { grid-template-columns:1fr; }
  .posts-grid { grid-template-columns:1fr; }
  .quicklinks-row { grid-template-columns:1fr; }
  .partners-grid { grid-template-columns: 1fr 1fr; }
  .news-item { grid-template-columns: 1fr; }
  .news-item .ni-img { width:100%; height:120px; }
}

/* =========================================
   SERVICES GRID — Large tiles, hover border
   ========================================= */
.services-grid-large {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 2rem 0;
}
.service-tile-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  padding: 2.5rem 1.5rem;
  text-decoration: none;
  border: 1px solid transparent;
  background: var(--white);
  transition: border-color 0.18s, background 0.18s;
  text-align: center;
}
.service-tile-large:hover {
  border-color: var(--green);
  background: var(--green-lt);
}
.service-tile-large img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.service-tile-large .tile-label {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
  margin-top: 0.4rem;
}
.service-tile-large .tile-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray-md);
  line-height: 1.5;
}

/* =========================================
   ACCORDIONS (police.html)
   ========================================= */
.accordion {
  border: 1px solid var(--gray);
  margin-bottom: 0.5rem;
}
.accordion-trigger {
  width: 100%;
  background: var(--off-white);
  border: none;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.15s;
}
.accordion-trigger:hover { background: var(--green-lt); }
.accordion-trigger[aria-expanded="true"] { background: var(--green-lt); color: var(--green-dk); }
.accordion-trigger .acc-icon {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 400;
  color: var(--green);
  flex-shrink: 0;
  transition: transform 0.2s;
  margin-left: 1rem;
}
.accordion-trigger[aria-expanded="true"] .acc-icon { transform: rotate(45deg); }
.accordion-body {
  display: none;
  padding: 1.1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--gray);
  font-size: 0.94rem;
  line-height: 1.75;
}
.accordion-body.open { display: block; }
.accordion-body ul { margin: 0.5rem 0 0.75rem 1.3rem; }
.accordion-body li { margin-bottom: 0.25rem; }
.accordion-body h3 { font-family: var(--font-display); font-size: 1rem; color: var(--gray-dk); margin: 1.1rem 0 0.4rem; }
.accordion-body p { margin-bottom: 0.85rem; }
.accordion-body p:last-child { margin-bottom: 0; }

/* =========================================
   PAGINATION
   ========================================= */

.pagination {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 2.5rem 0 1rem;
  flex-wrap: wrap;
}

.page-btn {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--gray);
  color: var(--text-lt);
  text-decoration: none;
  background: var(--white);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  cursor: pointer;
}

.page-btn:hover {
  border-color: var(--green);
  color: var(--green-dk);
  background: var(--green-lt);
}

.page-btn.active {
  background: var(--green-dk);
  border-color: var(--green-dk);
  color: var(--white);
  pointer-events: none;
}

.page-ellipsis {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gray-md);
  padding: 0 0.25rem;
}

/* =========================================
   TABS
   ========================================= */

.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--yellow);
  margin: 2rem 0 0;
  gap: 0;
  flex-wrap: wrap;
}

.tab-btn {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.7rem 1.4rem;
  border: none;
  background: none;
  color: var(--text-lt);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--green-dk);
  background: var(--green-lt);
}

.tab-btn.active {
  color: var(--green-dk);
  font-weight: 600;
  border-bottom-color: var(--green);
  background: var(--white);
}

.tab-panel {
  display: none;
  padding: 2rem 0 0;
}

.tab-panel.active {
  display: block;
}

@media (max-width: 600px) {
  .alert-bar { display: none; }
  .tab-nav { justify-content: center; }
  .tab-btn { padding: 0.75rem 1rem; font-size: 0.76rem; }
}

/* =========================================
   HOMEPAGE NEWS PAGINATION
   ========================================= */

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 1.75rem 0 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray);
  grid-column: 1 / -1;
}

/* Invisible spacers that hold column height on short pages */
.news-item-spacer {
  visibility: hidden;
  pointer-events: none;
  border-bottom: none !important;
}

/* Visit page highlight tile SVG icons */
.highlight-tile .ht-icon-img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  margin-bottom: 0.75rem;
  filter: invert(35%) sepia(80%) saturate(500%) hue-rotate(118deg) brightness(90%);
}

/* Whole news-item card clickable */
a.news-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--gray-lt);
  text-decoration: none;
  color: inherit;
  transition: background 0.18s;
}
a.news-item:last-child { border-bottom: none; }
a.news-item:hover { background: var(--yellow-lt); }
a.news-item h4 a { pointer-events: none; }

/* Council slogans */
.council-slogan { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 1.25rem; text-align: center; }

/* =========================================
   FIND YOUR DISTRICT MODAL
   ========================================= */

.fyd-trigger {
  font-family: var(--font-ui);
  font-size: inherit;
  font-weight: 600;
  color: var(--green-dk);
  background: none;
  border: none;
  border-bottom: 1px solid var(--green);
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
}
.fyd-trigger:hover { color: var(--green); }

.fyd-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.fyd-modal.open {
  display: flex;
}

.fyd-modal-box {
  background: var(--white);
  width: 100%;
  max-width: 480px;
  position: relative;
  border-top: 4px solid var(--yellow);
  box-shadow: 0 12px 48px rgba(0,0,0,0.3);
}

.fyd-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gray-md);
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}
.fyd-close:hover { color: var(--text); }

.fyd-header {
  background: var(--green-dk);
  padding: 1.75rem 2rem 1.5rem;
}
.fyd-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.4rem;
}
.fyd-header h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.fyd-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

.fyd-body {
  padding: 1.75rem 2rem 2rem;
}

.fyd-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-md);
  margin-bottom: 0.4rem;
}
.fyd-input {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--gray);
  background: var(--off-white);
  color: var(--text);
  outline: none;
  margin-bottom: 1rem;
  transition: border-color 0.15s;
}
.fyd-input:focus { border-color: var(--green); }

.fyd-submit {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.75rem;
  background: var(--green-dk);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.fyd-submit:hover { background: var(--green); }

/* Result state */
.fyd-result { text-align: center; }
.fyd-result-icon {
  font-size: 2rem;
  color: var(--yellow-dk);
  margin-bottom: 0.75rem;
}
.fyd-result h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.fyd-result p {
  font-size: 0.88rem;
  color: var(--text-lt);
  line-height: 1.7;
  margin-bottom: 0.6rem;
}
.fyd-ref {
  font-family: var(--font-mono);
  font-size: 0.65rem !important;
  color: var(--gray-md) !important;
  letter-spacing: 0.04em;
  margin-top: 0.5rem;
}
.fyd-reset {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dk);
  background: none;
  border: 1px solid var(--green-dk);
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.fyd-reset:hover { background: var(--green-dk); color: var(--white); }

/* =========================================
   BREADCRUMBS — inside hero overlay
   ========================================= */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb .bc-sep { opacity: 0.5; font-size: 0.55rem; }
.breadcrumb .bc-current { color: rgba(255,255,255,0.9); }

/* Standalone breadcrumb (blog pages, outside hero) */
.breadcrumb-bar {
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-lt);
  padding: 0.5rem 1.5rem;
}
.breadcrumb-bar .breadcrumb {
  max-width: var(--max-w);
  margin: 0 auto;
  color: var(--gray-md);
  font-size: 0.8rem;
}
.breadcrumb-bar .breadcrumb a { color: var(--gray-md); }
.breadcrumb-bar .breadcrumb a:hover { color: var(--green-dk); }
.breadcrumb-bar .breadcrumb .bc-current { color: var(--text-lt); }

/* =========================================
   ROTATING ALERT BAR
   ========================================= */
.alert-bar {
  background: var(--yellow);
  padding: 0 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dk);
  text-align: center;
  font-weight: 500;
  overflow: hidden;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.alert-bar-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.alert-msg {
  position: absolute;
  width: 100%;
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.alert-msg.active {
  opacity: 1;
  pointer-events: auto;
}

/* beating heart animation on visit hero SVG */
@keyframes heartbeat {
  0%   { transform: scale(1);    }
  14%  { transform: scale(1.07); }
  28%  { transform: scale(1);    }
  42%  { transform: scale(1.04); }
  56%  { transform: scale(1);    }
  100% { transform: scale(1);    }
}
.beating-heart {
  animation: heartbeat 3s ease-in-out infinite;
  transform-origin: center;
  display: block;
  margin: 0 auto;
}

/* Post hero — image injected as banner bg via JS */
.dept-banner-wrap.post-banner img.banner-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

/* Post meta in banner */
.banner-post-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}
.banner-post-date {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
}

/* Badges inside dept-banner overlay — always white */
.dept-banner-wrap .card-source-badge {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
}

/* =========================================
   ALERT LOVAT — A.L. CHARACTER SECTION
   ========================================= */

.al-section {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-top: 0.5rem;
}

.al-bug {
  width: 140px;
  flex-shrink: 0;
  image-rendering: auto;
}

.al-body {
  flex: 1;
}

.al-body h2 {
  margin-top: 0;
}

@media (max-width: 600px) {
  .al-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .al-bug { width: 100px; }
  .al-body ul { text-align: left; }
}

@media (max-width: 480px) {
  .services-grid-large { grid-template-columns: repeat(2,1fr); }
}
