/* ==========================================================
   HOMEPAGE GLOBAL
========================================================== */

.home-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}
.home-section {
  padding: 96px 32px;
}
.home-section-white {
  background: #ffffff;
}
.home-section-light {
  background: var(--light-gray);
}
.home-section-green {
  background: var(--light-green);
}
.home-section-navy {
  background: var(--borough-navy);
  color: #ffffff;
}
.home-section-header {
  max-width: 820px;
  margin: 0 auto 52px;
  text-align: center;
}
.home-section-header h2 {
  color: var(--borough-navy);
  font-size: 44px;
  line-height: 1.12;
  margin: 0 0 16px;
}
.home-section-header p {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.7;
}
.home-kicker {
  color: var(--borough-green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.home-badge {
  display: inline-block;
  background: var(--borough-gold);
  color: var(--borough-navy);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
/* ==========================================================
   ALERT BAR - SCROLLING TICKER
========================================================== */

.home-alert-bar {
  background: linear-gradient(90deg, #8f3d35, #9b463b);
  color: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.home-alert-track {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}
.home-alert-marquee {
  display: inline-flex;
  align-items: center;
  gap: 80px;
  padding: 16px 0;
  animation: alert-marquee 24s linear infinite;
}
.home-alert-message {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 800;
  padding-left: 32px;
}
.home-alert-message::before {
  content: "⚠";
  color: var(--borough-gold);
  font-size: 20px;
}
.home-alert-message a {
  color: #ffffff;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.home-alert-message a:hover {
  color: var(--borough-gold);
}
.home-alert-bar:hover .home-alert-marquee {
  animation-play-state: paused;
}
@keyframes alert-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}
@media (max-width: 700px){
.home-alert-marquee {
    animation-duration: 18s;
  }
.home-alert-message {
    font-size: 15px;
    padding-left: 24px;
  }
}
/* ==========================================================
   HERO
========================================================== */

.home-hero {
  background: var(--borough-navy);
  padding: 0 32px 72px;
}
.home-hero-panel {
  position: relative;
  min-height: 620px;
  border-radius: 0 0 32px 32px;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(21, 59, 82, 0.95),
      rgba(21, 59, 82, 0.70),
      rgba(21, 59, 82, 0.20)
    ),
    url("/static/images/mercersburg-hero.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}
.home-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(21, 59, 82, 0.92) 0%,
      rgba(21, 59, 82, 0.72) 42%,
      rgba(21, 59, 82, 0.22) 100%
    );
}
.home-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 110px 72px;
  color: #ffffff;
}
.home-eyebrow {
  display: inline-flex;
  margin: 0 0 22px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(200, 154, 43, 0.18);
  color: var(--borough-gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.home-hero-content h1 {
  color: #ffffff;
  font-size: clamp(44px, 6vw, 74px);
  line-height: 1.02;
  margin: 0 0 24px;
  letter-spacing: -0.04em;
}
.home-hero-content p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 21px;
  line-height: 1.65;
  max-width: 680px;
  margin: 0 0 34px;
}
.home-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.home-hero-actions .home-btn {
  min-width: 170px;
}
@media (max-width: 900px){
.home-hero {
    padding: 0 20px 56px;
  }
.home-hero-panel {
    min-height: 560px;
    border-radius: 0 0 24px 24px;
  }
.home-hero-content {
    padding: 86px 38px;
  }
.home-hero-content p {
    font-size: 18px;
  }
}
@media (max-width: 600px){
.home-hero-panel {
    min-height: 520px;
  }
.home-hero-content {
    padding: 72px 28px;
  }
.home-hero-actions {
    flex-direction: column;
  }
.home-hero-actions .home-btn {
    width: 100%;
  }
}
/* ==========================================================
   BUTTONS
========================================================== */

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
}
.home-btn-gold {
  background: var(--borough-gold);
  color: var(--borough-navy);
}
.home-btn-navy {
  background: var(--borough-navy);
  color: #ffffff;
}
.home-btn-outline {
  color: #ffffff;
  border: 2px solid #ffffff;
}
.home-btn-outline:hover {
  background: #ffffff;
  color: var(--borough-navy);
}
.home-text-link {
  color: var(--borough-green);
  font-weight: 800;
  text-decoration: none;
}
.home-text-link:hover {
  color: var(--borough-navy);
}
/* ==========================================================
   SERVICE CARDS
========================================================== */

.home-service-grid,
.home-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.home-service-card {
  background: #ffffff;
  border: 2px solid var(--borough-gold);
  border-radius: 18px;
  padding: 46px 36px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.07);
  transition: transform .25s ease, box-shadow .25s ease;
  min-height: 280px;
}
.home-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}
.home-service-icon {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--borough-navy);
  color: var(--borough-gold);
  margin: 0 auto 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 34px;
}
.home-service-icon span {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  display: block;
  color: var(--borough-gold);
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
}
.home-service-card h3 {
  color: var(--borough-navy);
  font-size: 25px;
  line-height: 1.25;
  margin: 0 0 16px;
}
.home-service-card p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 320px;
  margin: 0 auto 22px;
}
.home-service-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--borough-gold);
  color: var(--borough-navy);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.home-service-card a:hover {
  background: var(--borough-green);
  color: #ffffff;
}
.home-rave-card {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-dark);
  border-radius: 24px;
  padding: 44px;
  border-left: 8px solid var(--borough-gold);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}
.home-rave-card h2 {
  color: var(--borough-navy);
  font-size: 38px;
  line-height: 1.15;
  margin: 0 0 16px;
}
.home-rave-card p {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.75;
  margin: 0 0 24px;
}
.home-rave-card .home-btn {
  margin-top: 8px;
}
@media (max-width: 900px){
.home-rave-card,
  .home-fire-card {
    padding: 34px;
  }
.home-rave-card h2 {
    font-size: 32px;
  }
}
/* ==========================================================
   MEETINGS + NEWS PANELS
========================================================== */

.home-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.home-panel {
  background: #ffffff;
  border-radius: 22px;
  padding: 42px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  border-top: 6px solid var(--borough-green);
}
.home-panel:nth-child(2) {
  border-top-color: var(--borough-gold);
}
.home-panel-header {
  margin-bottom: 20px;
}
.home-panel-header h2 {
  color: var(--borough-navy);
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 8px;
}
.home-list-item {
  border-top: 1px solid var(--border-light);
  padding: 24px 0;
}
.home-list-item:first-of-type {
  border-top: none;
  padding-top: 8px;
}
.home-list-date {
  color: var(--borough-green);
  font-weight: 800;
  font-size: 14px;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.home-panel:nth-child(2) .home-list-date {
  color: var(--borough-blue);
}
.home-list-item h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.3;
}
.home-list-item h3 a {
  color: var(--borough-navy);
  text-decoration: none;
}
.home-list-item h3 a:hover {
  color: var(--borough-green);
}
.home-list-item p {
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 8px;
}
.home-list-footer-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--borough-green);
  font-weight: 800;
  text-decoration: none;
}
.home-list-footer-link:hover {
  color: var(--borough-navy);
}
@media (max-width: 900px){
.home-two-column {
    grid-template-columns: 1fr;
  }
.home-panel {
    padding: 32px;
  }
}
/* ==========================================================
   BOROUGH MANAGER UPDATE
========================================================== */

.home-manager-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.5fr);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.12);
  background: #ffffff;
}
.home-manager-sidebar {
  background:
    linear-gradient(135deg, rgba(21, 59, 82, 0.96), rgba(63, 107, 69, 0.92));
  color: #ffffff;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home-manager-sidebar .home-badge {
  width: fit-content;
  margin-bottom: 22px;
}
.home-manager-sidebar h2 {
  color: #ffffff;
  font-size: 42px;
  line-height: 1.12;
  margin: 0 0 22px;
}
.home-manager-sidebar p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.8;
  margin: 0;
}
.home-manager-content {
  background: #ffffff;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home-manager-update {
  margin-bottom: 30px;
}
.home-manager-update h3,
.home-manager-fallback h3 {
  color: var(--borough-navy);
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 16px;
}
.home-manager-update p,
.home-manager-fallback p {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 22px;
}
.home-manager-title {
  color: var(--borough-green) !important;
  font-weight: 800;
  margin-bottom: 18px !important;
}
.home-manager-fallback {
  border-top: 1px solid var(--border-light);
  padding-top: 28px;
}
.home-manager-update + .home-manager-fallback {
  margin-top: 12px;
}
@media (max-width: 1000px){
.home-manager-card {
    grid-template-columns: 1fr;
  }
.home-manager-sidebar,
  .home-manager-content {
    padding: 42px;
  }
.home-manager-sidebar h2 {
    font-size: 34px;
  }
}
@media (max-width: 600px){
.home-manager-sidebar,
  .home-manager-content {
    padding: 32px;
  }
.home-manager-update h3,
  .home-manager-fallback h3 {
    font-size: 26px;
  }
}
.home-spotlight-card {
  position: relative;
  min-height: 360px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--borough-navy);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
  transition: transform .25s ease, box-shadow .25s ease;
}
.home-spotlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.18);
}
.home-spotlight-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  opacity: 0.72;
}
.home-spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(21, 59, 82, 0.05) 0%,
      rgba(21, 59, 82, 0.72) 58%,
      rgba(21, 59, 82, 0.96) 100%
    );
}
.home-spotlight-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 34px;
  color: #ffffff;
}
.home-spotlight-content h3 {
  font-size: 27px;
  line-height: 1.25;
  margin: 0 0 12px;
  color: #ffffff;
}
.home-spotlight-content p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  margin: 0 0 18px;
}
.home-spotlight-content a {
  display: inline-flex;
  color: var(--borough-gold);
  font-weight: 800;
  text-decoration: none;
}
.home-spotlight-content a:hover {
  color: #ffffff;
}
@media (max-width: 700px){
.home-spotlight-card,
  .home-spotlight-card img {
    min-height: 320px;
    height: 320px;
  }
.home-spotlight-content {
    padding: 28px;
  }
}
/* ==========================================================
   RESOURCES
========================================================== */

.home-resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}
.home-resource-block {
  background: var(--light-gray);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-soft);
}
.home-resource-block h2 {
  color: var(--borough-navy);
}
.home-mini-list-item {
  border-top: 1px solid var(--border-light);
  padding: 20px 0;
}
/* ==========================================================
   VISIT / CONTACT
========================================================== */

.home-visit-section {
  background:
    linear-gradient(135deg, rgba(21, 59, 82, 0.96), rgba(63, 107, 69, 0.88));
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
.home-visit-section::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(200, 154, 43, 0.16);
  right: -140px;
  top: -160px;
}
.home-visit-section::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  left: -120px;
  bottom: -140px;
}
.home-visit-actions .home-btn-gold {
  background: var(--borough-gold);
  color: var(--borough-navy);
}
.home-visit-actions .home-btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: #ffffff;
}
.home-visit-actions .home-btn-outline:hover {
  background: #ffffff;
  color: var(--borough-navy);
}
/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1000px) {
  .home-two-column,
  .home-manager-card,
  .home-resource-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-content h1 {
    font-size: 46px;
  }

  .home-hero-panel {
    min-height: 520px;
  }
}
@media (max-width: 700px){
.home-section {
    padding: 68px 22px;
  }
.home-hero {
    padding: 32px 20px;
  }
.home-hero-content {
    padding: 54px 30px;
  }
.home-hero-content h1 {
    font-size: 38px;
  }
.home-rave-card {
    align-items: flex-start;
  }
}
/* ==========================================================
   DETAIL PAGES
========================================================== */

.home-detail-page {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 56px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.10);
  border-top: 6px solid var(--borough-green);
}
.home-detail-page h1 {
  color: var(--borough-navy);
  font-size: 46px;
  line-height: 1.12;
  margin: 22px 0 14px;
}
.home-detail-summary {
  color: var(--text-dark);
  font-size: 21px;
  line-height: 1.75;
  margin: 28px 0;
  padding-left: 24px;
  border-left: 5px solid var(--borough-gold);
}
.home-detail-body {
  color: var(--text-dark);
  font-size: 18px;
  line-height: 1.85;
  margin: 32px 0;
}
.home-detail-body p {
  margin: 0 0 22px;
}
.home-detail-body h2,
.home-detail-body h3 {
  color: var(--borough-navy);
  margin-top: 34px;
}
.home-detail-page .home-btn {
  margin-top: 20px;
}
@media (max-width: 700px){
.home-detail-page {
    padding: 34px;
  }
.home-detail-page h1 {
    font-size: 34px;
  }
}
/* ==========================================================
   HEADER / NAV CLEANUP
========================================================== */

.site-header,
header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 20;
}
.site-header a,
header a {
  text-decoration: none;
}
.site-logo,
.logo {
  color: var(--borough-navy);
  font-weight: 900;
}
nav a {
  color: var(--borough-navy);
  font-weight: 700;
  transition: color .2s ease;
}
nav a:hover {
  color: var(--borough-green);
}
/* ==========================================================
   BOROUGH LOGO / BRAND
========================================================== */

.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.site-brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
}
.site-brand-text strong {
  color: var(--borough-navy);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.site-brand-text span {
  color: var(--borough-green);
  font-size: 14px;
  font-weight: 800;
  margin-top: 4px;
}
@media (max-width: 700px){
.site-brand-logo {
    width: 44px;
    height: 44px;
  }
.site-brand-text strong {
    font-size: 21px;
  }
.site-brand-text span {
    font-size: 12px;
  }
}
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}
.site-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  text-decoration: none;
  width: fit-content;
}
.site-brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 54px;
  image-rendering: auto;
}
.site-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.site-brand-text strong {
  color: var(--borough-navy);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.site-brand-text span {
  color: var(--borough-green);
  font-size: 14px;
  font-weight: 800;
  margin-top: 5px;
  white-space: nowrap;
}
.site-header nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.site-header nav a {
  color: var(--borough-navy);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.site-header nav a:hover {
  color: var(--borough-green);
}
.site-header nav a[href*="contact"],
.site-header nav a[href*="Contact"] {
  background: var(--borough-green);
  color: #ffffff !important;
  border-radius: 8px;
  padding: 11px 18px;
}
.site-header nav a[href*="contact"]:hover,
.site-header nav a[href*="Contact"]:hover {
  background: var(--borough-navy);
}
@media (max-width: 700px){
.site-brand {
    align-items: center;
  }
.site-brand-logo {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
.site-brand-text strong {
    font-size: 24px;
    white-space: normal;
  }
.site-brand-text span {
    white-space: normal;
  }
.site-header nav {
    gap: 14px 18px;
  }
}
/* ==========================================================
   DROPDOWN NAVIGATION
========================================================== */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-dropdown-toggle::after {
  content: "▾";
  font-size: 11px;
  margin-top: 2px;
  color: var(--borough-green);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-top: 5px solid var(--borough-gold);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
  padding: 10px 0;
  z-index: 999;

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 12px 18px;
  color: var(--borough-navy) !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: var(--light-green);
  color: var(--borough-green) !important;
}
.site-nav .contact-button {
  background: var(--borough-green);
  color: #ffffff !important;
  border-radius: 8px;
  padding: 11px 18px;
}
.site-nav .contact-button:hover {
  background: var(--borough-navy);
  color: #ffffff !important;
}
@media (max-width: 900px){
.nav-dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border-radius: 12px;
    margin-top: 8px;
  }
.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
  }
.nav-dropdown {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ==========================================================
   DROPDOWN BLUR FIX
========================================================== */

.nav-dropdown-menu {
  transform: none !important;
  transition: opacity .15s ease, visibility .15s ease !important;
  backface-visibility: visible !important;
  will-change: auto !important;
}
.nav-dropdown:hover .nav-dropdown-menu {
  transform: none !important;
}
.site-header,
.site-header-main,
.site-brand,
.site-brand-logo,
.site-brand-text,
.site-nav,
.site-nav a {
  transform: none !important;
  filter: none !important;
  backface-visibility: visible !important;
  will-change: auto !important;
}
.site-brand-logo {
  width: 54px !important;
  height: 54px !important;
  object-fit: contain;
  image-rendering: auto;
}
/* ==========================================================
   GLOBAL SHARPNESS / BLUR RESET
========================================================== */

html,
body {
  transform: none !important;
  filter: none !important;
  zoom: 1 !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body,
.site-header,
.site-header-main,
.site-topbar,
.site-nav,
.site-nav a,
.home-hero,
.home-hero-panel,
.home-section,
.home-container,
.home-card-grid,
.home-service-card,
.home-panel,
.home-manager-card,
.home-spotlight-card,
.home-rave-section,
.home-visit-section {
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  perspective: none !important;
  will-change: auto !important;
  backface-visibility: visible !important;
}
.home-service-card:hover,
.home-project-card:hover,
.home-spotlight-card:hover,
.card:hover {
  transform: translateY(-4px) !important;
}
.nav-dropdown-menu {
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  will-change: auto !important;
}
img,
.site-brand-logo {
  image-rendering: auto;
  transform: none !important;
  filter: none !important;
}
/* ==========================================================
   FINAL SEAL SIZE / SHARPNESS
========================================================== */

.site-brand-logo {
  width: 74px !important;
  height: 74px !important;
  flex: 0 0 74px !important;
  object-fit: contain !important;
  image-rendering: auto !important;
  transform: none !important;
  filter: none !important;
}
.site-brand {
  gap: 18px !important;
}
.site-brand-text strong {
  font-size: 30px !important;
}
.site-brand-text span {
  font-size: 14px !important;
}
/* ==========================================================
   FOOTER CLEANUP
========================================================== */

.site-footer,
footer {
  background: var(--borough-navy);
  color: #ffffff;
  padding: 64px 32px 28px;
}
.site-footer-inner,
.footer-inner,
footer .container {
  max-width: 1180px;
  margin: 0 auto;
}
.site-footer h2,
.site-footer h3,
footer h2,
footer h3 {
  color: var(--borough-gold);
  margin-top: 0;
}
.site-footer p,
footer p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}
.site-footer a,
footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 700;
}
.site-footer a:hover,
footer a:hover {
  color: var(--borough-gold);
}
.footer-bottom,
.site-footer-bottom {
  max-width: 1180px;
  margin: 42px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
@media (max-width: 900px){
.footer-bottom,
  .site-footer-bottom {
    flex-direction: column;
  }
}
/* ==========================================================
   GOVERNMENT OVERVIEW PAGE
========================================================== */

.gov-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.gov-hero {
  background:
    linear-gradient(135deg, rgba(21, 59, 82, 0.96), rgba(63, 107, 69, 0.88));
  color: #ffffff;
  padding: 88px 0;
}
.gov-eyebrow,
.gov-badge {
  display: inline-flex;
  width: fit-content;
  background: rgba(200, 154, 43, 0.18);
  color: var(--borough-gold);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0 0 18px;
}
.gov-hero h1 {
  color: #ffffff;
  font-size: clamp(44px, 6vw, 68px);
  line-height: 1.05;
  margin: 0 0 22px;
  letter-spacing: -0.04em;
}
.gov-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.75;
  margin: 0;
}
.gov-section {
  padding: 86px 0;
}
.gov-section-light {
  background: var(--light-gray);
}
.gov-section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}
.gov-section-heading .gov-badge {
  margin-left: auto;
  margin-right: auto;
}
.gov-section-heading h2 {
  color: var(--borough-navy);
  font-size: 42px;
  line-height: 1.15;
  margin: 0 0 16px;
}
.gov-section-heading p {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.75;
  margin: 0;
}
.gov-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 28px;
}
.gov-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 38px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  border-top: 6px solid var(--borough-green);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gov-card:nth-child(2),
.gov-card:nth-child(5) {
  border-top-color: var(--borough-gold);
}
.gov-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.13);
}
.gov-card h3 {
  color: var(--borough-navy);
  font-size: 25px;
  line-height: 1.25;
  margin: 0 0 14px;
}
.gov-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 22px;
}
.gov-card a {
  color: var(--borough-green);
  font-weight: 900;
  text-decoration: none;
}
.gov-card a:hover {
  color: var(--borough-navy);
}
.gov-btn {
  display: inline-flex;
  background: var(--borough-green);
  color: #ffffff;
  border-radius: 10px;
  padding: 14px 22px;
  font-weight: 900;
  text-decoration: none;
}
.gov-btn:hover {
  background: var(--borough-navy);
}
@media (max-width: 900px){
.gov-section {
    padding: 64px 0;
  }
}
@media (max-width: 600px){
.gov-container {
    padding: 0 22px;
  }
.gov-card {
    padding: 32px;
  }
}
.gov-detail-main,
.gov-detail-sidebar {
  background: #ffffff;
  border-radius: 24px;
  padding: 44px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.09);
}
.gov-detail-main {
  border-top: 6px solid var(--borough-green);
}
.gov-detail-sidebar {
  border-top: 6px solid var(--borough-gold);
}
.gov-detail-main h2,
.gov-detail-sidebar h3 {
  color: var(--borough-navy);
  margin-top: 0;
}
.gov-detail-main h2 {
  font-size: 38px;
  line-height: 1.15;
  margin-bottom: 22px;
}
.gov-detail-body {
  color: var(--text-dark);
  font-size: 18px;
  line-height: 1.8;
}
.gov-sidebar-links {
  display: grid;
  gap: 12px;
}
.gov-sidebar-links a {
  background: var(--light-green);
  color: var(--borough-navy);
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 900;
  text-decoration: none;
}
.gov-sidebar-links a:hover {
  background: var(--borough-green);
  color: #ffffff;
}
@media (max-width: 900px){
.gov-detail-main,
  .gov-detail-sidebar {
    padding: 34px;
  }
}
/* ==========================================================
   BOARD PAGE HERO DESCRIPTION FIX
========================================================== */

.gov-hero-description {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.75;
}
.gov-hero-description p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}
.gov-detail-main {
  background: #ffffff;
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.09);
  border-top: 6px solid var(--borough-green);
}
.gov-detail-main .gov-badge {
  background: rgba(200, 154, 43, 0.18);
  color: var(--borough-gold);
}
.gov-detail-main h2 {
  color: var(--borough-navy);
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 24px;
}
.gov-detail-body {
  color: var(--text-dark);
  font-size: 18px;
  line-height: 1.85;
}
.gov-detail-body p {
  margin: 0 0 22px;
}
.gov-detail-sidebar {
  background: #ffffff;
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.09);
  border-top: 6px solid var(--borough-gold);
  position: sticky;
  top: 24px;
}
.gov-detail-sidebar h3 {
  color: var(--borough-navy);
  font-size: 24px;
  margin: 0 0 20px;
}
.gov-sidebar-info {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 18px;
  margin-bottom: 18px;
  display: grid;
  gap: 6px;
}
.gov-sidebar-info strong {
  color: var(--borough-navy);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.gov-sidebar-info span,
.gov-sidebar-info a {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
}
.gov-sidebar-info a {
  color: var(--borough-green);
  font-weight: 800;
  text-decoration: none;
}
.gov-sidebar-heading {
  margin-top: 30px !important;
}
@media (max-width: 900px){
.gov-detail-sidebar {
    position: static;
  }
.gov-detail-main,
  .gov-detail-sidebar {
    padding: 34px;
  }
}
.gov-detail-sidebar {
  align-self: start !important;
  margin-top: 0 !important;
  position: sticky;
  top: 24px;
}
.gov-detail-main {
  min-height: auto !important;
}
.gov-detail-body {
  margin-top: 0;
}
/* ==========================================================
   BOARD MEMBERS / OFFICIALS
========================================================== */

.gov-members-section {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--border-light);
}
.gov-members-section h2 {
  color: var(--borough-navy);
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 26px;
}
.gov-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.gov-member-card {
  background: var(--light-gray);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}
.gov-member-photo {
  height: 230px;
  background: var(--borough-navy);
  overflow: hidden;
}
.gov-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gov-member-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(21, 59, 82, 0.95), rgba(63, 107, 69, 0.85));
}
.gov-member-photo-placeholder span {
  color: #ffffff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
}
.gov-member-content {
  padding: 22px;
}
.gov-member-content h3 {
  color: var(--borough-navy);
  font-size: 22px;
  margin: 0 0 8px;
}
.gov-member-title {
  color: var(--borough-green);
  font-weight: 900;
  margin: 0 0 14px !important;
}
.gov-member-content p {
  color: var(--text-muted);
  margin: 0 0 8px;
  line-height: 1.5;
}
.gov-member-content a {
  color: var(--borough-green);
  font-weight: 800;
  text-decoration: none;
}
.gov-member-content a:hover {
  color: var(--borough-navy);
}
.rtk-steps {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}
@media (max-width: 900px){
.rtk-layout {
    grid-template-columns: 1fr;
  }
.rtk-sidebar {
    position: static;
  }
.rtk-card,
  .rtk-side-card {
    padding: 32px;
  }
}
@media (max-width: 900px){
.rtk-layout {
    grid-template-columns: 1fr;
  }
.rtk-sidebar {
    position: static;
  }
.rtk-card,
  .rtk-side-card {
    padding: 32px;
  }
}
.rtk-record-grid div {
  background: var(--light-green);
  color: var(--borough-navy);
  border-radius: 14px;
  padding: 16px;
  font-weight: 900;
  border: 1px solid var(--border-light);
}
@media (max-width: 900px){
.rtk-layout {
    grid-template-columns: 1fr;
  }
.rtk-sidebar {
    position: static;
  }
.rtk-card,
  .rtk-side-card {
    padding: 32px;
  }
}
@media (max-width: 900px){
.rtk-layout {
    grid-template-columns: 1fr;
  }
.rtk-sidebar {
    position: static;
  }
.rtk-card,
  .rtk-side-card {
    padding: 32px;
  }
}
/* ==========================================================
   RIGHT TO KNOW PAGE
========================================================== */

.rtk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 36px;
  align-items: start;
}
.rtk-main {
  display: grid;
  gap: 28px;
}
.rtk-card,
.rtk-side-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 42px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.09);
}
.rtk-card {
  border-top: 6px solid var(--borough-green);
}
.rtk-card:nth-child(2) {
  border-top-color: var(--borough-gold);
}
.rtk-card h2,
.rtk-side-card h3 {
  color: var(--borough-navy);
  margin-top: 0;
}
.rtk-card h2 {
  font-size: 36px;
  line-height: 1.15;
  margin-bottom: 18px;
}
.rtk-card p,
.rtk-side-card p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.75;
}
.rtk-sidebar {
  display: grid;
  gap: 24px;
  position: sticky;
  top: 24px;
}
.rtk-side-card {
  border-top: 6px solid var(--borough-gold);
  padding: 34px;
}
.rtk-side-card a {
  color: var(--borough-green);
  font-weight: 800;
  text-decoration: none;
}
/* Fix for the green PA RTK Forms button */
.rtk-side-card .gov-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--borough-green);
  color: #ffffff !important;
  border-radius: 10px;
  padding: 14px 22px;
  font-weight: 900;
  text-decoration: none;
  margin-top: 10px;
}
.rtk-side-card .gov-btn:hover {
  background: var(--borough-navy);
  color: #ffffff !important;
}
.rtk-steps {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}
.rtk-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.rtk-step > span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--borough-navy);
  color: var(--borough-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}
.rtk-step h3 {
  color: var(--borough-navy);
  margin: 0 0 6px;
}
.rtk-step p {
  margin: 0;
}
.rtk-step a,
.rtk-inline-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--borough-green);
  font-weight: 900;
  text-decoration: none;
}
.rtk-step a:hover,
.rtk-inline-link:hover {
  color: var(--borough-navy);
}
.rtk-record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.rtk-record-grid a {
  background: var(--light-green);
  color: var(--borough-navy);
  border-radius: 14px;
  padding: 16px;
  font-weight: 900;
  border: 1px solid var(--border-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  min-height: 72px;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.rtk-record-grid a:hover {
  background: var(--borough-green);
  color: #ffffff;
  border-color: var(--borough-green);
  transform: translateY(-2px);
}
/* ==========================================================
   RTK FAQ CARD
========================================================== */

.rtk-faq-card {
  border-top-color: var(--borough-green);
}
.rtk-faq-list {
  display: grid;
  gap: 18px;
}
.rtk-faq-item {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}
.rtk-faq-item:first-child {
  border-top: none;
  padding-top: 0;
}
.rtk-faq-item h4 {
  color: var(--borough-navy);
  font-size: 17px;
  margin: 0 0 6px;
}
.rtk-faq-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
@media (max-width: 900px){
.rtk-layout {
    grid-template-columns: 1fr;
  }
.rtk-sidebar {
    position: static;
  }
.rtk-card,
  .rtk-side-card {
    padding: 32px;
  }
}
/* ==========================================================
   MEETINGS / CALENDAR PAGE
========================================================== */

.meetings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 36px;
  align-items: start;
}
.meetings-main {
  display: grid;
  gap: 28px;
}
.meetings-card,
.meetings-side-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 42px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.09);
}
.meetings-card {
  border-top: 6px solid var(--borough-green);
}
.meetings-card:nth-child(2) {
  border-top-color: var(--borough-gold);
}
.meetings-card h2,
.meetings-side-card h3 {
  color: var(--borough-navy);
  margin-top: 0;
}
.meetings-card h2 {
  font-size: 36px;
  line-height: 1.15;
  margin-bottom: 18px;
}
.meetings-card p,
.meetings-side-card p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.75;
}
.meetings-sidebar {
  display: grid;
  gap: 24px;
  position: sticky;
  top: 24px;
}
.meetings-side-card {
  border-top: 6px solid var(--borough-gold);
  padding: 34px;
}
.meetings-notice-card {
  border-top-color: var(--borough-green);
  background: var(--light-green);
}

.meetings-subscribe-card p {
  font-size: 16px;
  line-height: 1.65;
}

.meetings-subscribe-card a {
  color: var(--borough-navy);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}

.meetings-subscribe-card a:hover,
.meetings-subscribe-card a:focus-visible {
  color: var(--borough-green);
}
/* Calendar widget */

.meeting-calendar-widget {
  margin-top: 30px;
  border: 1px solid var(--border-light);
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
}
.meeting-calendar-header {
  background: linear-gradient(135deg, var(--borough-navy), var(--borough-green));
  color: #ffffff;
  padding: 24px 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.meeting-calendar-header h3 {
  color: #ffffff;
  font-size: 28px;
  margin: 0;
}
.meeting-calendar-header span {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}
.meeting-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--light-green);
  border-bottom: 1px solid var(--border-light);
}
.meeting-calendar-weekdays span {
  color: var(--borough-navy);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: center;
  padding: 13px 8px;
}
.meeting-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.meeting-calendar-grid > div {
  min-height: 96px;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 12px;
  color: var(--borough-navy);
  font-weight: 800;
  background: #ffffff;
}
.meeting-calendar-grid > div:nth-child(7n) {
  border-right: none;
}
.meeting-calendar-grid .muted {
  background: #f3f5f6;
}
.meeting-calendar-grid .meeting-day {
  background: rgba(200, 154, 43, 0.14);
  border: 2px solid var(--borough-gold);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.meeting-calendar-grid .meeting-day strong {
  color: var(--borough-navy);
  font-size: 18px;
}
.meeting-calendar-grid .meeting-day span {
  display: inline-flex;
  width: fit-content;
  background: var(--borough-navy);
  color: #ffffff;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}
/* Meeting info cards */

.meeting-info-list {
  display: grid;
  gap: 18px;
}
.meeting-info-list div {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  display: grid;
  gap: 6px;
}
.meeting-info-list div:first-child {
  border-top: none;
  padding-top: 0;
}
.meeting-info-list strong {
  color: var(--borough-navy);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.meeting-info-list span {
  color: var(--text-muted);
  line-height: 1.55;
}
.meeting-document-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.meeting-document-links a {
  background: var(--light-green);
  color: var(--borough-navy);
  border-radius: 14px;
  padding: 16px;
  font-weight: 900;
  border: 1px solid var(--border-light);
  text-decoration: none;
  min-height: 70px;
  display: flex;
  align-items: center;
}
.meeting-document-links a:hover {
  background: var(--borough-green);
  color: #ffffff;
  border-color: var(--borough-green);
}
@media (max-width: 900px){
.meetings-layout {
    grid-template-columns: 1fr;
  }
.meetings-sidebar {
    position: static;
  }
.meetings-card,
  .meetings-side-card {
    padding: 32px;
  }
.meeting-calendar-grid > div {
    min-height: 76px;
    padding: 8px;
  }
.meeting-calendar-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 600px){
.meeting-calendar-weekdays span {
    font-size: 11px;
    padding: 10px 4px;
  }
.meeting-calendar-grid > div {
    min-height: 62px;
    font-size: 13px;
  }
.meeting-calendar-grid .meeting-day span {
    font-size: 10px;
  }
}
/* ==========================================================
   DOCUMENT CENTER PAGE
========================================================== */

.documents-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 36px;
  align-items: start;
}
.documents-main {
  display: grid;
  gap: 28px;
}
.documents-card,
.documents-side-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 42px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.09);
}
.documents-card {
  border-top: 6px solid var(--borough-green);
}
.documents-card:nth-child(2) {
  border-top-color: var(--borough-gold);
}
.documents-card h2,
.documents-side-card h3 {
  color: var(--borough-navy);
  margin-top: 0;
}
.documents-card h2 {
  font-size: 36px;
  line-height: 1.15;
  margin-bottom: 18px;
}
.documents-card p,
.documents-side-card p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.75;
}
.documents-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.documents-category-grid a {
  background: var(--light-green);
  color: var(--borough-navy);
  border-radius: 16px;
  padding: 18px;
  text-decoration: none;
  border: 1px solid var(--border-light);
  display: grid;
  gap: 6px;
  min-height: 112px;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.documents-category-grid a:hover {
  background: var(--borough-green);
  color: #ffffff;
  border-color: var(--borough-green);
  transform: translateY(-2px);
}
.documents-category-grid span {
  font-weight: 900;
  line-height: 1.25;
}
.documents-category-grid small {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}
.documents-category-grid a:hover small {
  color: rgba(255, 255, 255, 0.84);
}
.documents-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.document-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
}
.document-row-main h3 {
  color: var(--borough-navy);
  font-size: 23px;
  line-height: 1.25;
  margin: 0 0 8px;
}
.document-row-main p {
  margin: 0 0 10px;
}
.document-type {
  display: inline-flex;
  width: fit-content;
  background: rgba(200, 154, 43, 0.18);
  color: var(--borough-gold) !important;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12px !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px !important;
}
.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.document-meta span {
  background: var(--light-green);
  color: var(--borough-navy);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
}
.document-row-action a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--borough-green);
  color: #ffffff;
  border-radius: 10px;
  padding: 13px 18px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}
.document-row-action a:hover {
  background: var(--borough-navy);
  color: #ffffff;
}
.document-empty-state {
  background: var(--light-green);
  border: 1px dashed var(--borough-green);
  border-radius: 18px;
  padding: 28px;
}
.document-empty-state h3 {
  color: var(--borough-navy);
  margin: 0 0 8px;
}
.document-empty-state p {
  margin: 0;
}
.documents-sidebar {
  display: grid;
  gap: 24px;
  position: sticky;
  top: 24px;
}
.documents-side-card {
  border-top: 6px solid var(--borough-gold);
  padding: 34px;
}
.documents-notice-card {
  border-top-color: var(--borough-green);
  background: var(--light-green);
}
.documents-side-card a {
  color: var(--borough-green);
  font-weight: 800;
  text-decoration: none;
}
.documents-side-card .gov-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--borough-green);
  color: #ffffff !important;
  border-radius: 10px;
  padding: 14px 22px;
  font-weight: 900;
  text-decoration: none;
  margin-top: 10px;
}
.documents-side-card .gov-btn:hover {
  background: var(--borough-navy);
  color: #ffffff !important;
}
.documents-sidebar-links {
  display: grid;
  gap: 12px;
}
.documents-sidebar-links a {
  background: var(--light-green);
  color: var(--borough-navy);
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 900;
  text-decoration: none;
}
.documents-sidebar-links a:hover {
  background: var(--borough-green);
  color: #ffffff;
}
@media (max-width: 900px){
.documents-layout {
    grid-template-columns: 1fr;
  }
.documents-sidebar {
    position: static;
  }
.documents-card,
  .documents-side-card {
    padding: 32px;
  }
.document-row {
    grid-template-columns: 1fr;
  }
.document-row-action a {
    width: 100%;
  }
}
/* ==========================================================
   WATER / SEWER AUTHORITY PAGE ENHANCEMENTS
========================================================== */

.authority-visual-card {
  border-radius: 24px;
  padding: 48px;
  margin-bottom: 36px;
  color: #ffffff;
  overflow: hidden;
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
}
.authority-visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(200, 154, 43, 0.24), transparent 34%),
    radial-gradient(circle at 12% 88%, rgba(255, 255, 255, 0.12), transparent 30%);
}
.authority-visual-card > div {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.authority-water {
  background:
    linear-gradient(135deg, rgba(21, 59, 82, 0.96), rgba(36, 90, 130, 0.88));
}
.authority-sewer {
  background:
    linear-gradient(135deg, rgba(21, 59, 82, 0.96), rgba(63, 107, 69, 0.88));
}
.authority-eyebrow {
  display: inline-flex;
  width: fit-content;
  background: rgba(200, 154, 43, 0.22);
  color: var(--borough-gold) !important;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0 0 18px !important;
}
.authority-visual-card h2 {
  color: #ffffff !important;
  font-size: 42px;
  line-height: 1.12;
  margin: 0 0 16px;
}
.authority-visual-card p {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 18px;
  line-height: 1.75;
  margin: 0;
}
.authority-section {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--border-light);
}
.authority-section h2 {
  color: var(--borough-navy);
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 26px;
}
.authority-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.authority-card {
  background: var(--light-gray);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}
.authority-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.10);
}
.authority-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--borough-navy);
  color: var(--borough-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 18px;
}
.authority-card h3 {
  color: var(--borough-navy);
  font-size: 21px;
  line-height: 1.25;
  margin: 0 0 10px;
}
.authority-card p {
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 700px){
.authority-visual-card {
    padding: 34px;
    min-height: 240px;
  }
.authority-visual-card h2 {
    font-size: 32px;
  }
.authority-card {
    padding: 24px;
  }
}
.concern-card {
  border-top: 6px solid var(--borough-green);
}
.concern-thank-you {
  max-width: 780px;
}
/* ==========================================================
   AUTHORITY FAQ / FEES / REPORT CARDS
========================================================== */

.authority-report-card a {
  display: inline-flex;
  width: fit-content;
  margin-top: 16px;
  background: var(--borough-green);
  color: #ffffff;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 900;
  text-decoration: none;
}
.authority-report-card a:hover {
  background: var(--borough-navy);
  color: #ffffff;
}
.authority-info-list,
.authority-faq-list {
  display: grid;
  gap: 18px;
}
.authority-info-list article,
.authority-faq-list article {
  background: var(--light-gray);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 24px;
}
.authority-info-list h3,
.authority-faq-list h3 {
  color: var(--borough-navy);
  margin: 0 0 8px;
  font-size: 20px;
}
.authority-info-list p,
.authority-faq-list p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}
/* ==========================================================
   FINAL FIGMA-STYLE AUTHORITY SERVICE CARDS
   Water / Sewer Authority cards
========================================================== */

.authority-card-grid-four {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.authority-service-card {
  background: #ffffff;
  border: 1px solid rgba(21, 59, 82, 0.10);
  border-radius: 22px;
  padding: 30px 26px;
  min-height: 285px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(21, 59, 82, 0.09);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
}
.authority-service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background: var(--borough-green);
}
.authority-service-card:nth-child(2)::before {
  background: var(--borough-gold);
}
.authority-service-card:nth-child(3)::before {
  background: var(--borough-navy);
}
.authority-service-card:nth-child(4)::before {
  background: var(--borough-blue);
}
.authority-service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 154, 43, 0.55);
  box-shadow: 0 22px 48px rgba(21, 59, 82, 0.16);
}
.authority-service-card .authority-icon {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 20px;
  background: var(--borough-navy);
  color: var(--borough-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  margin: 6px 0 22px;
  box-shadow: 0 10px 22px rgba(21, 59, 82, 0.20);
}
.authority-service-card h3 {
  color: var(--borough-navy);
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 12px;
}
.authority-service-card p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}
.authority-service-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: auto;
  background: var(--borough-green);
  color: #ffffff !important;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(63, 107, 69, 0.22);
}
.authority-service-card a:hover {
  background: var(--borough-navy);
  color: #ffffff !important;
}
.authority-bill-card a {
  background: var(--borough-blue);
  box-shadow: 0 10px 22px rgba(36, 90, 130, 0.22);
}
.authority-bill-card a:hover {
  background: var(--borough-navy);
}
/* Make the first two cards still look complete even without buttons */
.authority-service-card:not(.authority-report-card):not(.authority-bill-card)::after {
  content: "Learn More";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: auto;
  background: var(--light-green);
  color: var(--borough-navy);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 900;
}
/* Card-specific icon colors */
.authority-service-card:nth-child(1) .authority-icon {
  background: var(--borough-navy);
  color: var(--borough-gold);
}
.authority-service-card:nth-child(2) .authority-icon {
  background: rgba(200, 154, 43, 0.16);
  color: var(--borough-gold);
}
.authority-service-card:nth-child(3) .authority-icon {
  background: rgba(63, 107, 69, 0.16);
  color: var(--borough-green);
}
.authority-service-card:nth-child(4) .authority-icon {
  background: rgba(36, 90, 130, 0.16);
  color: var(--borough-blue);
}
/* Responsive cards */
@media (max-width: 1200px) {
  .authority-card-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px){
.authority-card-grid-four {
    grid-template-columns: 1fr;
  }
.authority-service-card {
    min-height: auto;
  }
}
.report-input {
  width: 100%;
  min-height: 52px;
  border: 2px solid #d3dae0;
  border-radius: 11px;
  padding: 14px 17px;
  background: #ffffff;
  color: var(--text-dark);
  font-size: 16px;
  font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.report-input::placeholder {
  color: #7c8791;
}
.report-input:focus {
  outline: none;
  border-color: var(--borough-gold);
  box-shadow: 0 0 0 4px rgba(200, 154, 43, 0.18);
}
.report-select {
  color: #7c8791;
  cursor: pointer;
}
.report-textarea {
  min-height: 140px;
  resize: vertical;
}
.report-field ul.errorlist {
  list-style: none;
  padding: 0;
  margin: 2px 0 0;
  color: #9f1d20;
  font-size: 14px;
  font-weight: 800;
}
.report-modern-field ul.errorlist {
  list-style: none !important;
  padding: 0 !important;
  margin: 2px 0 0 !important;
  color: #9f1d20 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}
.authority-card-fees {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
/* ==========================================================
   CLICKABLE FEE SCHEDULE CARD
========================================================== */

.authority-click-card {
  padding: 0 !important;
}
.authority-fee-details {
  height: 100%;
}
.authority-fee-details summary {
  list-style: none;
  cursor: pointer;
  padding: 30px 26px;
  min-height: 285px;
  display: flex;
  flex-direction: column;
}
.authority-fee-details summary::-webkit-details-marker {
  display: none;
}
.authority-fee-details summary::after {
  content: "Click to expand";
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  background: var(--light-green);
  color: var(--borough-navy);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 900;
}
.authority-fee-details[open] summary::after {
  content: "Click to collapse";
  background: var(--borough-navy);
  color: #ffffff;
}
.authority-card-fees {
  display: grid;
  gap: 10px;
  padding: 0 26px 30px;
}
.authority-card-fees div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  background: var(--light-green);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 10px 12px;
}
.authority-card-fees strong {
  color: var(--borough-navy);
  font-size: 13px;
  line-height: 1.25;
}
.authority-card-fees span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}
.authority-click-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 154, 43, 0.55);
  box-shadow: 0 22px 48px rgba(21, 59, 82, 0.16);
}
/* ==========================================================
   FINAL AUTHORITY CARDS - WIDE FIGMA STYLE
   Overrides the narrow vertical card layout
========================================================== */

.authority-card-grid-four {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
}
.authority-service-card a,
.authority-service-card:not(.authority-report-card):not(.authority-bill-card)::after {
  grid-column: 2 !important;
  margin-top: 20px !important;
}
/* Remove the fake Learn More button from the first card */
.authority-service-card:not(.authority-report-card):not(.authority-bill-card):not(.authority-click-card)::after {
  display: none !important;
}
/* ==========================================================
   WIDE CLICKABLE FEE CARD
========================================================== */

.authority-click-card {
  padding: 0 !important;
  display: block !important;
}
.authority-fee-details summary::after {
  content: "View Fee Schedule →" !important;
  grid-column: 2 !important;
  display: inline-flex !important;
  width: fit-content !important;
  margin-top: 20px !important;
  background: var(--light-green) !important;
  color: var(--borough-navy) !important;
  border-radius: 999px !important;
  padding: 12px 18px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}
.authority-fee-details[open] summary::after {
  content: "Hide Fee Schedule ↑" !important;
  background: var(--borough-navy) !important;
  color: #ffffff !important;
}
.authority-card-fees {
  padding: 0 34px 34px 132px !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}
/* ==========================================================
   RESPONSIVE AUTHORITY CARDS
========================================================== */

@media (max-width: 1000px) {
  .authority-card-grid-four {
    grid-template-columns: 1fr !important;
  }

  .authority-card-fees {
    padding-left: 34px !important;
  }
}
@media (max-width: 650px){
.authority-service-card,
  .authority-fee-details summary {
    grid-template-columns: 1fr !important;
  }
.authority-service-card .authority-icon,
  .authority-fee-details summary .authority-icon {
    grid-row: auto !important;
    margin-bottom: 18px !important;
  }
.authority-service-card a,
  .authority-service-card:not(.authority-report-card):not(.authority-bill-card)::after,
  .authority-fee-details summary::after {
    grid-column: 1 !important;
  }
.authority-card-fees {
    grid-template-columns: 1fr !important;
    padding: 0 24px 30px !important;
  }
}
/* ==========================================================
   FINAL AUTHORITY SERVICE CARDS - 2 COLUMN CLICKABLE STYLE
========================================================== */

.authority-card-grid-four {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
}
.authority-service-card {
  min-height: 220px !important;
  padding: 34px !important;
  border-radius: 24px !important;
  display: grid !important;
  grid-template-columns: 76px minmax(0, 1fr) !important;
  column-gap: 22px !important;
  align-items: start !important;
  background: #ffffff !important;
  border: 1px solid rgba(21, 59, 82, 0.10) !important;
  box-shadow: 0 14px 34px rgba(21, 59, 82, 0.09) !important;
}
.authority-service-card .authority-icon {
  grid-row: 1 / span 3 !important;
  width: 68px !important;
  height: 68px !important;
  min-width: 68px !important;
  border-radius: 20px !important;
  margin: 0 !important;
}
.authority-service-card h3 {
  font-size: 24px !important;
  line-height: 1.15 !important;
  margin: 0 0 10px !important;
}
.authority-service-card p {
  font-size: 16px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}
.authority-service-card a {
  grid-column: 2 !important;
  margin-top: 20px !important;
}
/* Clickable details cards */

.authority-click-card {
  padding: 0 !important;
  display: block !important;
}
.authority-fee-details {
  height: 100% !important;
}
.authority-fee-details summary {
  list-style: none !important;
  cursor: pointer !important;
  padding: 34px !important;
  min-height: 220px !important;
  display: grid !important;
  grid-template-columns: 76px minmax(0, 1fr) !important;
  column-gap: 22px !important;
  align-items: start !important;
}
.authority-fee-details summary .authority-icon {
  grid-row: 1 / span 4 !important;
  width: 68px !important;
  height: 68px !important;
  min-width: 68px !important;
  border-radius: 20px !important;
  margin: 0 !important;
}
.authority-fee-details summary h3 {
  font-size: 24px !important;
  line-height: 1.15 !important;
  margin: 0 0 10px !important;
}
.authority-fee-details summary p {
  margin: 0 !important;
}
.authority-fee-details summary::after {
  content: "Click to View →" !important;
  grid-column: 2 !important;
  display: inline-flex !important;
  width: fit-content !important;
  margin-top: 20px !important;
  background: var(--light-green) !important;
  color: var(--borough-navy) !important;
  border-radius: 999px !important;
  padding: 12px 18px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}
/* Expanded fee schedule */

.authority-card-fees {
  padding: 0 34px 34px 132px !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}
.authority-card-fees div {
  background: var(--light-green) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 14px !important;
  padding: 13px 15px !important;
}
/* Expanded rules summary */

.authority-rules-summary {
  padding: 0 34px 34px 132px !important;
}
.authority-rules-summary ul {
  margin: 0 !important;
  padding-left: 20px !important;
  display: grid !important;
  gap: 10px !important;
}
.authority-rules-summary li {
  color: var(--text-muted) !important;
  line-height: 1.55 !important;
  font-weight: 700 !important;
}
@media (max-width: 1000px){
.authority-card-grid-four {
    grid-template-columns: 1fr !important;
  }
.authority-card-fees,
  .authority-rules-summary {
    padding-left: 34px !important;
  }
}
@media (max-width: 650px){
.authority-service-card,
  .authority-fee-details summary {
    grid-template-columns: 1fr !important;
  }
.authority-service-card .authority-icon,
  .authority-fee-details summary .authority-icon {
    grid-row: auto !important;
    margin-bottom: 18px !important;
  }
.authority-service-card a,
  .authority-fee-details summary::after {
    grid-column: 1 !important;
  }
.authority-card-fees {
    grid-template-columns: 1fr !important;
    padding: 0 24px 30px !important;
  }
.authority-rules-summary {
    padding: 0 24px 30px !important;
  }
}
/* ==========================================================
   AUTHORITY CARDS - FINAL WIDE HORIZONTAL STACKED LAYOUT
   This overrides the earlier 2-column card attempts
========================================================== */

.authority-card-grid-four {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: 100% !important;
}
/* Standard wide cards */
.authority-service-card {
  width: 100% !important;
  min-height: 0 !important;
  padding: 24px 28px !important;
  border-radius: 20px !important;
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) auto !important;
  column-gap: 20px !important;
  align-items: center !important;
  background: #ffffff !important;
  border: 1px solid rgba(21, 59, 82, 0.10) !important;
  box-shadow: 0 12px 28px rgba(21, 59, 82, 0.08) !important;
}
.authority-service-card::before {
  height: 100% !important;
  width: 7px !important;
  inset: 0 auto 0 0 !important;
}
.authority-service-card .authority-icon {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  border-radius: 18px !important;
  margin: 0 !important;
  font-size: 24px !important;
}
.authority-service-card h3 {
  grid-column: 2 !important;
  grid-row: 1 !important;
  color: var(--borough-navy) !important;
  font-size: 23px !important;
  line-height: 1.15 !important;
  margin: 0 0 6px !important;
}
.authority-service-card p {
  grid-column: 2 !important;
  grid-row: 2 !important;
  color: var(--text-muted) !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}
.authority-service-card a {
  grid-column: 3 !important;
  grid-row: 1 / span 2 !important;
  align-self: center !important;
  margin: 0 !important;
  white-space: nowrap !important;
  background: var(--light-green) !important;
  color: var(--borough-navy) !important;
  border-radius: 999px !important;
  padding: 12px 18px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}
.authority-service-card a:hover {
  background: var(--borough-navy) !important;
  color: #ffffff !important;
}
/* Clickable expandable cards */
.authority-click-card {
  padding: 0 !important;
  display: block !important;
  overflow: hidden !important;
}
.authority-fee-details {
  width: 100% !important;
}
.authority-fee-details summary {
  list-style: none !important;
  cursor: pointer !important;
  padding: 24px 28px !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) auto !important;
  column-gap: 20px !important;
  align-items: center !important;
}
.authority-fee-details summary::-webkit-details-marker {
  display: none !important;
}
.authority-fee-details summary .authority-icon {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  border-radius: 18px !important;
  margin: 0 !important;
  font-size: 24px !important;
}
.authority-fee-details summary h3 {
  grid-column: 2 !important;
  grid-row: 1 !important;
  color: var(--borough-navy) !important;
  font-size: 23px !important;
  line-height: 1.15 !important;
  margin: 0 0 6px !important;
}
.authority-fee-details summary p {
  grid-column: 2 !important;
  grid-row: 2 !important;
  color: var(--text-muted) !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}
.authority-fee-details summary::after {
  content: "Click to View →" !important;
  grid-column: 3 !important;
  grid-row: 1 / span 2 !important;
  align-self: center !important;
  display: inline-flex !important;
  width: fit-content !important;
  margin: 0 !important;
  white-space: nowrap !important;
  background: var(--light-green) !important;
  color: var(--borough-navy) !important;
  border-radius: 999px !important;
  padding: 12px 18px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}
.authority-fee-details[open] summary::after {
  content: "Hide Details ↑" !important;
  background: var(--borough-navy) !important;
  color: #ffffff !important;
}
/* Expanded fee schedule content */
.authority-card-fees {
  padding: 0 28px 28px 112px !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
.authority-card-fees div {
  background: var(--light-green) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
}
.authority-card-fees strong {
  color: var(--borough-navy) !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
}
.authority-card-fees span {
  color: var(--text-muted) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}
/* Expanded rules content */
.authority-rules-summary {
  padding: 0 28px 28px 112px !important;
}
.authority-rules-summary h4 {
  color: var(--borough-navy) !important;
  font-size: 20px !important;
  margin: 0 0 14px !important;
}
.authority-rules-summary ul {
  margin: 0 !important;
  padding-left: 20px !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px 24px !important;
}
.authority-rules-summary li {
  color: var(--text-muted) !important;
  line-height: 1.5 !important;
  font-weight: 700 !important;
}
.authority-rules-link {
  display: inline-flex !important;
  width: fit-content !important;
  margin-top: 22px !important;
  background: var(--borough-green) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  padding: 12px 18px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}
.authority-rules-link:hover {
  background: var(--borough-navy) !important;
  color: #ffffff !important;
}
/* Mobile */
@media (max-width: 850px) {
  .authority-service-card,
  .authority-fee-details summary {
    grid-template-columns: 58px minmax(0, 1fr) !important;
  }

  .authority-service-card a,
  .authority-fee-details summary::after {
    grid-column: 2 !important;
    grid-row: 3 !important;
    justify-self: start !important;
    margin-top: 14px !important;
  }

  .authority-card-fees {
    grid-template-columns: 1fr !important;
    padding: 0 24px 28px !important;
  }

  .authority-rules-summary {
    padding: 0 24px 28px !important;
  }

  .authority-rules-summary ul {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 560px){
.authority-service-card,
  .authority-fee-details summary {
    grid-template-columns: 1fr !important;
    padding: 24px !important;
  }
.authority-service-card .authority-icon,
  .authority-fee-details summary .authority-icon {
    grid-column: 1 !important;
    grid-row: auto !important;
    margin-bottom: 14px !important;
  }
.authority-service-card h3,
  .authority-service-card p,
  .authority-service-card a,
  .authority-fee-details summary h3,
  .authority-fee-details summary p,
  .authority-fee-details summary::after {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}
.committee-member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.committee-member-list span {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  color: var(--borough-navy);
  border: 1px solid rgba(21, 59, 82, 0.10);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 800;
}
/* Responsive */
@media (max-width: 1000px) {
  .committees-page-layout {
    grid-template-columns: 1fr;
  }

  .committees-side-nav {
    position: relative;
    top: auto;
  }

  .committees-side-nav a {
    display: inline-flex;
    margin-right: 14px;
    border-bottom: none;
  }

  .committee-row-members {
    padding-left: 28px;
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.committee-member-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}
.committee-member-list span {
  display: inline-flex !important;
  align-items: center !important;
  background: #ffffff !important;
  color: var(--borough-navy) !important;
  border: 1px solid rgba(21, 59, 82, 0.10) !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}
/* Responsive */
@media (max-width: 800px) {
  .committees-link-list {
    grid-template-columns: 1fr !important;
  }

  .committee-detail-members {
    grid-template-columns: 1fr !important;
    padding: 20px 28px 24px !important;
  }
}
/* ==========================================================
   COMMITTEES PAGE - LEFT MENU WITH SINGLE ACTIVE COMMITTEE
========================================================== */

.committees-tab-layout {
  display: grid !important;
  grid-template-columns: 300px minmax(0, 1fr) !important;
  gap: 28px !important;
  align-items: start !important;
}
.committees-tab-list {
  position: sticky !important;
  top: 130px !important;
  background: #ffffff !important;
  border-radius: 22px !important;
  padding: 24px !important;
  border: 1px solid rgba(21, 59, 82, 0.10) !important;
  box-shadow: 0 14px 34px rgba(21, 59, 82, 0.08) !important;
}
.committees-tab-list h2 {
  color: var(--borough-navy) !important;
  font-size: 24px !important;
  line-height: 1.15 !important;
  margin: 0 0 18px !important;
}


.committee-tab-content-area {
  min-width: 0 !important;
}
.committee-tab-panel {
  display: none !important;
  background: #ffffff !important;
  border-radius: 24px !important;
  border: 1px solid rgba(21, 59, 82, 0.10) !important;
  box-shadow: 0 14px 34px rgba(21, 59, 82, 0.08) !important;
  overflow: hidden !important;
}
.committee-tab-panel.is-active {
  display: block !important;
}
.committee-panel-header {
  padding: 38px 42px !important;
  border-left: 8px solid var(--borough-gold) !important;
}
.committee-panel-header h2 {
  color: var(--borough-navy) !important;
  font-size: 42px !important;
  line-height: 1.1 !important;
  margin: 0 0 14px !important;
}
.committee-panel-header p {
  color: var(--text-muted) !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
  max-width: 820px !important;
  margin: 0 !important;
}
.committee-panel-members {
  background: var(--light-gray) !important;
  border-top: 1px solid rgba(21, 59, 82, 0.08) !important;
  padding: 30px 42px 34px !important;
}
.committee-panel-members h3 {
  color: var(--borough-navy) !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
  margin: 0 0 18px !important;
}
.committee-member-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}
.committee-member-list span {
  display: inline-flex !important;
  align-items: center !important;
  background: #ffffff !important;
  color: var(--borough-navy) !important;
  border: 1px solid rgba(21, 59, 82, 0.10) !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}
@media (max-width: 900px){
.committees-tab-layout {
    grid-template-columns: 1fr !important;
  }
.committees-tab-list {
    position: relative !important;
    top: auto !important;
  }
.committee-panel-header {
    padding: 32px 28px !important;
  }
.committee-panel-header h2 {
    font-size: 34px !important;
  }
.committee-panel-members {
    padding: 26px 28px 30px !important;
  }
}
/* ==========================================================
   COMMITTEE RELATED FORMS
========================================================== */

.committee-panel-forms {
  background: #ffffff !important;
  border-top: 1px solid rgba(21, 59, 82, 0.08) !important;
  padding: 30px 42px 36px !important;
}
.committee-panel-forms h3 {
  color: var(--borough-navy) !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
  margin: 0 0 18px !important;
}
.committee-form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
}
.committee-form-card {
  display: block !important;
  background: var(--light-gray) !important;
  border: 1px solid rgba(21, 59, 82, 0.10) !important;
  border-radius: 18px !important;
  padding: 20px 22px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}
.committee-form-card strong {
  display: block !important;
  color: var(--borough-navy) !important;
  font-size: 18px !important;
  line-height: 1.25 !important;
  margin-bottom: 8px !important;
}
.committee-form-card span {
  display: block !important;
  color: var(--text-muted) !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}
.committee-form-card:hover {
  background: var(--light-green) !important;
  transform: translateY(-2px) !important;
}
@media (max-width: 700px){
.committee-form-grid {
    grid-template-columns: 1fr !important;
  }
.committee-panel-forms {
    padding: 26px 28px 30px !important;
  }
}
/* ==========================================================
   ADMINISTRATION / PUBLIC WORKS PAGES
========================================================== */

.department-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 330px !important;
  gap: 28px !important;
  align-items: start !important;
}
.department-main-card {
  background: #ffffff !important;
  border-radius: 24px !important;
  padding: 38px 42px !important;
  border: 1px solid rgba(21, 59, 82, 0.10) !important;
  box-shadow: 0 14px 34px rgba(21, 59, 82, 0.08) !important;
}
.department-main-card h2 {
  color: var(--borough-navy) !important;
  font-size: 40px !important;
  line-height: 1.12 !important;
  margin: 0 0 16px !important;
}
.department-main-card p {
  color: var(--text-muted) !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  margin: 0 0 22px !important;
}
.department-service-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  margin-top: 30px !important;
}
.department-service-grid article {
  background: var(--light-gray) !important;
  border-radius: 18px !important;
  padding: 24px !important;
  border: 1px solid rgba(21, 59, 82, 0.08) !important;
}
.department-service-grid h3 {
  color: var(--borough-navy) !important;
  font-size: 21px !important;
  margin: 0 0 10px !important;
}
.department-service-grid p {
  color: var(--text-muted) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}
.department-action-panel {
  margin-top: 28px !important;
  background: var(--borough-navy) !important;
  color: #ffffff !important;
  border-radius: 20px !important;
  padding: 28px 30px !important;
}
.department-action-panel h3 {
  color: #ffffff !important;
  font-size: 26px !important;
  margin: 0 0 10px !important;
}
.department-action-panel p {
  color: rgba(255,255,255,0.88) !important;
  margin: 0 0 20px !important;
}
.department-action-panel a {
  display: inline-flex !important;
  width: fit-content !important;
  background: var(--borough-gold) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  padding: 13px 18px !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}
.department-sidebar {
  position: sticky !important;
  top: 130px !important;
  background: #ffffff !important;
  border-radius: 22px !important;
  padding: 26px !important;
  border: 1px solid rgba(21, 59, 82, 0.10) !important;
  box-shadow: 0 14px 34px rgba(21, 59, 82, 0.08) !important;
}
.department-sidebar h3 {
  color: var(--borough-navy) !important;
  font-size: 24px !important;
  margin: 0 0 18px !important;
}
.department-sidebar-info {
  padding: 16px 0 !important;
  border-bottom: 1px solid rgba(21, 59, 82, 0.08) !important;
}
.department-sidebar-info strong {
  display: block !important;
  color: var(--borough-navy) !important;
  font-size: 14px !important;
  margin-bottom: 6px !important;
}
.department-sidebar-info span {
  display: block !important;
  color: var(--text-muted) !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}
.department-sidebar-links {
  display: grid !important;
  gap: 10px !important;
  margin-top: 18px !important;
}
.department-sidebar-links a {
  display: block !important;
  background: var(--light-gray) !important;
  color: var(--borough-navy) !important;
  border-radius: 14px !important;
  padding: 13px 15px !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  border: 1px solid rgba(21, 59, 82, 0.08) !important;
}
.department-sidebar-links a:hover {
  background: var(--light-green) !important;
  color: var(--borough-green) !important;
}
@media (max-width: 950px){
.department-layout {
    grid-template-columns: 1fr !important;
  }
.department-sidebar {
    position: relative !important;
    top: auto !important;
  }
}
@media (max-width: 700px){
.department-main-card {
    padding: 30px 26px !important;
  }
.department-service-grid {
    grid-template-columns: 1fr !important;
  }
.department-main-card h2 {
    font-size: 32px !important;
  }
}
/* ==========================================================
   STAFF PHOTO CARDS - ADMINISTRATION / PUBLIC WORKS
========================================================== */

.staff-section {
  margin-top: 42px !important;
}
.staff-section-heading {
  margin-bottom: 24px !important;
}
.staff-section-heading h2 {
  color: var(--borough-navy) !important;
  font-size: 34px !important;
  line-height: 1.15 !important;
  margin: 0 0 12px !important;
}
.staff-section-heading p {
  color: var(--text-muted) !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}
.staff-card-grid {
  display: grid !important;
  gap: 20px !important;
}
.staff-card-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.staff-card-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.staff-card {
  background: var(--light-gray) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  border: 1px solid rgba(21, 59, 82, 0.10) !important;
  box-shadow: 0 10px 24px rgba(21, 59, 82, 0.06) !important;
}
.staff-photo {
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  background: linear-gradient(135deg, var(--borough-navy), var(--borough-green)) !important;
  overflow: hidden !important;
}
.staff-photo img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
}
.staff-card-content {
  padding: 20px 18px 22px !important;
}
.staff-card-content h3 {
  color: var(--borough-navy) !important;
  font-size: 21px !important;
  line-height: 1.15 !important;
  margin: 0 0 8px !important;
}
.staff-card-content p {
  color: var(--text-muted) !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  font-weight: 800 !important;
  margin: 0 !important;
}
@media (max-width: 1150px){
.staff-card-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 850px){
.staff-card-grid-three {
    grid-template-columns: 1fr !important;
  }
.staff-card-grid-four {
    grid-template-columns: 1fr !important;
  }
}
/* ==========================================================
   POLICE & FIRE PAGE - PHOTO CARD REDESIGN
========================================================== */

.safety-emergency-banner {
  background: var(--borough-navy) !important;
  color: #ffffff !important;
  border-radius: 24px !important;
  padding: 30px 34px !important;
  display: grid !important;
  grid-template-columns: 70px minmax(0, 1fr) !important;
  gap: 22px !important;
  align-items: center !important;
  margin-bottom: 30px !important;
  box-shadow: 0 14px 34px rgba(21, 59, 82, 0.16) !important;
}
.safety-emergency-icon {
  width: 64px !important;
  height: 64px !important;
  border-radius: 20px !important;
  background: var(--borough-gold) !important;
  color: #ffffff !important;
  display: grid !important;
  place-items: center !important;
  font-size: 34px !important;
  font-weight: 900 !important;
}
.safety-emergency-banner h2 {
  color: #ffffff !important;
  font-size: 32px !important;
  line-height: 1.15 !important;
  margin: 0 0 8px !important;
}
.safety-emergency-banner p {
  color: rgba(255,255,255,0.88) !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}
.safety-two-card-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 28px !important;
  align-items: stretch !important;
}
.safety-profile-card {
  background: #ffffff !important;
  border-radius: 26px !important;
  overflow: hidden !important;
  border: 1px solid rgba(21, 59, 82, 0.10) !important;
  box-shadow: 0 16px 38px rgba(21, 59, 82, 0.10) !important;
}
.safety-profile-photo {
  width: 100% !important;
  height: 310px !important;
  background: linear-gradient(135deg, var(--borough-navy), var(--borough-green)) !important;
  overflow: hidden !important;
}
.safety-profile-photo img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
}
.safety-profile-content {
  padding: 34px 36px 38px !important;
}
.safety-profile-content h2 {
  color: var(--borough-navy) !important;
  font-size: 34px !important;
  line-height: 1.12 !important;
  margin: 0 0 14px !important;
}
.safety-profile-content p {
  color: var(--text-muted) !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  margin: 0 !important;
}
.safety-service-list {
  display: grid !important;
  gap: 12px !important;
  margin-top: 24px !important;
}
.safety-service-list div {
  background: var(--light-gray) !important;
  border-radius: 16px !important;
  padding: 18px 20px !important;
  border-left: 5px solid var(--borough-gold) !important;
}
.safety-service-list strong {
  display: block !important;
  color: var(--borough-navy) !important;
  font-size: 16px !important;
  margin-bottom: 6px !important;
}
.safety-service-list span {
  display: block !important;
  color: var(--text-muted) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}
.safety-button-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-top: 26px !important;
}
.safety-button-row a {
  display: inline-flex !important;
  width: fit-content !important;
  background: var(--borough-navy) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  padding: 12px 18px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}
.safety-button-row a:hover {
  background: var(--borough-green) !important;
  color: #ffffff !important;
}
.safety-bottom-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  margin-top: 28px !important;
}
.safety-info-panel {
  background: #ffffff !important;
  border-radius: 22px !important;
  padding: 28px 30px !important;
  border: 1px solid rgba(21, 59, 82, 0.10) !important;
  box-shadow: 0 12px 30px rgba(21, 59, 82, 0.08) !important;
}
.safety-info-panel h3 {
  color: var(--borough-navy) !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
  margin: 0 0 12px !important;
}
.safety-info-panel p {
  color: var(--text-muted) !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  margin: 0 0 18px !important;
}
.safety-info-panel a {
  color: var(--borough-green) !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}
.safety-info-panel a:hover {
  text-decoration: underline !important;
}
.safety-info-panel-dark {
  background: var(--borough-navy) !important;
}
.safety-info-panel-dark h3 {
  color: #ffffff !important;
}
.safety-info-panel-dark p {
  color: rgba(255,255,255,0.88) !important;
  margin-bottom: 0 !important;
}
@media (max-width: 1050px){
.safety-two-card-grid,
  .safety-bottom-grid {
    grid-template-columns: 1fr !important;
  }
.safety-profile-photo {
    height: 280px !important;
  }
}
@media (max-width: 700px){
.safety-emergency-banner {
    grid-template-columns: 1fr !important;
    padding: 28px 24px !important;
  }
.safety-profile-content {
    padding: 30px 26px 34px !important;
  }
.safety-profile-content h2 {
    font-size: 30px !important;
  }
.safety-profile-photo {
    height: 240px !important;
  }
}
/* ==========================================================
   FORMS PAGE - CLEAN PROFESSIONAL REDESIGN
========================================================== */

.forms-clean-layout {
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr) !important;
  gap: 30px !important;
  align-items: start !important;
}
.forms-clean-nav {
  position: sticky !important;
  top: 130px !important;
  background: #ffffff !important;
  border-radius: 22px !important;
  padding: 24px !important;
  border: 1px solid rgba(21, 59, 82, 0.10) !important;
  box-shadow: 0 14px 34px rgba(21, 59, 82, 0.08) !important;
}
.forms-clean-nav h2 {
  color: var(--borough-navy) !important;
  font-size: 24px !important;
  line-height: 1.15 !important;
  margin: 0 0 18px !important;
}
.forms-clean-nav a {
  display: block !important;
  color: var(--text-muted) !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  padding: 13px 14px !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(21, 59, 82, 0.08) !important;
}
.forms-clean-nav a:last-child {
  border-bottom: none !important;
}
.forms-clean-nav a:hover {
  background: var(--light-green) !important;
  color: var(--borough-navy) !important;
}
.forms-clean-main {
  display: grid !important;
  gap: 24px !important;
}
.forms-clean-intro {
  background: #ffffff !important;
  border-radius: 24px !important;
  padding: 36px 40px !important;
  border: 1px solid rgba(21, 59, 82, 0.10) !important;
  box-shadow: 0 14px 34px rgba(21, 59, 82, 0.08) !important;
}
.forms-clean-intro h2 {
  color: var(--borough-navy) !important;
  font-size: 40px !important;
  line-height: 1.1 !important;
  margin: 0 0 12px !important;
}
.forms-clean-intro p {
  color: var(--text-muted) !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  margin: 0 !important;
}
.forms-clean-section {
  scroll-margin-top: 150px !important;
  background: #ffffff !important;
  border-radius: 24px !important;
  border: 1px solid rgba(21, 59, 82, 0.10) !important;
  box-shadow: 0 14px 34px rgba(21, 59, 82, 0.08) !important;
  overflow: hidden !important;
}
.forms-clean-heading {
  padding: 30px 36px !important;
  border-left: 8px solid var(--borough-gold) !important;
  border-bottom: 1px solid rgba(21, 59, 82, 0.08) !important;
  background: #ffffff !important;
}
.forms-clean-heading h2 {
  color: var(--borough-navy) !important;
  font-size: 32px !important;
  line-height: 1.15 !important;
  margin: 0 0 8px !important;
}
.forms-clean-heading p {
  color: var(--text-muted) !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}
.forms-list {
  display: grid !important;
}
.forms-list-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 24px !important;
  align-items: center !important;
  padding: 24px 36px !important;
  background: #ffffff !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(21, 59, 82, 0.08) !important;
}
.forms-list-item:last-child {
  border-bottom: none !important;
}
.forms-list-item:hover {
  background: var(--light-green) !important;
}
.forms-list-item span {
  display: inline-flex !important;
  width: fit-content !important;
  background: var(--light-gray) !important;
  color: var(--borough-green) !important;
  border-radius: 999px !important;
  padding: 6px 11px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  margin-bottom: 10px !important;
  border: 1px solid rgba(21, 59, 82, 0.08) !important;
}
.forms-list-item h3 {
  color: var(--borough-navy) !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
  margin: 0 0 8px !important;
}
.forms-list-item p {
  color: var(--text-muted) !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}
.forms-list-item strong {
  color: var(--borough-green) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}
@media (max-width: 950px){
.forms-clean-layout {
    grid-template-columns: 1fr !important;
  }
.forms-clean-nav {
    position: relative !important;
    top: auto !important;
  }
}
@media (max-width: 700px){
.forms-clean-intro,
  .forms-clean-heading {
    padding: 28px 24px !important;
  }
.forms-list-item {
    grid-template-columns: 1fr !important;
    padding: 24px !important;
  }
.forms-list-item strong {
    white-space: normal !important;
  }
.forms-clean-intro h2 {
    font-size: 32px !important;
  }
.forms-clean-heading h2 {
    font-size: 28px !important;
  }
}
/* ==========================================================
   CONTACT PAGE
========================================================== */

.contact-page-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 340px !important;
  gap: 30px !important;
  align-items: start !important;
}
.contact-main {
  display: grid !important;
  gap: 28px !important;
}
.contact-office-card,
.contact-topic-section,
.contact-map-panel,
.contact-sidebar {
  background: #ffffff !important;
  border-radius: 24px !important;
  border: 1px solid rgba(21, 59, 82, 0.10) !important;
  box-shadow: 0 14px 34px rgba(21, 59, 82, 0.08) !important;
}
.contact-office-card {
  padding: 38px 42px !important;
}
.contact-office-card h2,
.contact-map-panel h2 {
  color: var(--borough-navy) !important;
  font-size: 40px !important;
  line-height: 1.12 !important;
  margin: 0 0 14px !important;
}
.contact-office-card p,
.contact-map-panel p {
  color: var(--text-muted) !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  margin: 0 0 24px !important;
}
.contact-info-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  margin-top: 28px !important;
}
.contact-info-item {
  background: var(--light-gray) !important;
  border-radius: 18px !important;
  padding: 22px 24px !important;
  border-left: 5px solid var(--borough-gold) !important;
}
.contact-info-item span {
  display: block !important;
  color: var(--borough-green) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  margin-bottom: 8px !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
}
.contact-info-item strong {
  display: block !important;
  color: var(--borough-navy) !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  margin-bottom: 6px !important;
}
.contact-info-item p {
  color: var(--text-muted) !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}
.contact-topic-section {
  overflow: hidden !important;
}
.contact-section-heading {
  padding: 32px 38px !important;
  border-left: 8px solid var(--borough-gold) !important;
  border-bottom: 1px solid rgba(21, 59, 82, 0.08) !important;
}
.contact-section-heading h2 {
  color: var(--borough-navy) !important;
  font-size: 34px !important;
  line-height: 1.15 !important;
  margin: 0 0 10px !important;
}
.contact-section-heading p {
  color: var(--text-muted) !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}
.contact-topic-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.contact-topic-card {
  display: flex !important;
  flex-direction: column !important;
  min-height: 220px !important;
  padding: 28px 30px !important;
  text-decoration: none !important;
  background: #ffffff !important;
  border-right: 1px solid rgba(21, 59, 82, 0.08) !important;
  border-bottom: 1px solid rgba(21, 59, 82, 0.08) !important;
}
.contact-topic-card:hover {
  background: var(--light-green) !important;
}
.contact-topic-card span {
  display: inline-flex !important;
  width: fit-content !important;
  background: var(--light-gray) !important;
  color: var(--borough-green) !important;
  border-radius: 999px !important;
  padding: 7px 12px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  margin-bottom: 14px !important;
}
.contact-topic-card h3 {
  color: var(--borough-navy) !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
  margin: 0 0 10px !important;
}
.contact-topic-card p {
  color: var(--text-muted) !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  margin: 0 0 18px !important;
}
.contact-topic-card strong {
  color: var(--borough-green) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  margin-top: auto !important;
}
.contact-map-panel {
  padding: 38px 42px !important;
  background:
    linear-gradient(rgba(21, 59, 82, 0.92), rgba(21, 59, 82, 0.92)),
    linear-gradient(135deg, var(--borough-navy), var(--borough-green)) !important;
}
.contact-map-panel h2,
.contact-map-panel p,
.contact-map-panel .gov-badge {
  color: #ffffff !important;
}
.contact-map-panel p {
  color: rgba(255,255,255,0.88) !important;
}
.contact-map-panel a {
  display: inline-flex !important;
  width: fit-content !important;
  background: var(--borough-gold) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  padding: 13px 18px !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}
.contact-sidebar {
  position: sticky !important;
  top: 130px !important;
  padding: 26px !important;
}
.contact-sidebar h3 {
  color: var(--borough-navy) !important;
  font-size: 25px !important;
  margin: 0 0 18px !important;
}
.contact-sidebar-info {
  padding: 16px 0 !important;
  border-bottom: 1px solid rgba(21, 59, 82, 0.08) !important;
}
.contact-sidebar-info strong {
  display: block !important;
  color: var(--borough-navy) !important;
  font-size: 14px !important;
  margin-bottom: 6px !important;
}
.contact-sidebar-info span {
  display: block !important;
  color: var(--text-muted) !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}
.contact-emergency-box {
  margin-top: 20px !important;
  background: var(--borough-navy) !important;
  border-radius: 18px !important;
  padding: 22px !important;
}
.contact-emergency-box h4 {
  color: #ffffff !important;
  font-size: 22px !important;
  margin: 0 0 8px !important;
}
.contact-emergency-box p {
  color: rgba(255,255,255,0.88) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}
.contact-sidebar-links {
  display: grid !important;
  gap: 10px !important;
  margin-top: 20px !important;
}
.contact-sidebar-links a {
  display: block !important;
  background: var(--light-gray) !important;
  color: var(--borough-navy) !important;
  border-radius: 14px !important;
  padding: 13px 15px !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  border: 1px solid rgba(21, 59, 82, 0.08) !important;
}
.contact-sidebar-links a:hover {
  background: var(--light-green) !important;
  color: var(--borough-green) !important;
}
@media (max-width: 1000px){
.contact-page-layout {
    grid-template-columns: 1fr !important;
  }
.contact-sidebar {
    position: relative !important;
    top: auto !important;
  }
}
@media (max-width: 750px){
.contact-info-grid,
  .contact-topic-grid {
    grid-template-columns: 1fr !important;
  }
.contact-office-card,
  .contact-map-panel {
    padding: 30px 26px !important;
  }
.contact-section-heading,
  .contact-topic-card {
    padding: 26px 24px !important;
  }
.contact-office-card h2,
  .contact-map-panel h2 {
    font-size: 32px !important;
  }
}
/* ==========================================================
   CONTACT PAGE - EMAIL WRAPPING FIX
========================================================== */

.contact-info-item strong,
.contact-sidebar-info span,
.contact-info-item p {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}
.contact-info-item strong {
  font-size: 18px !important;
}
@media (max-width: 900px){
.contact-info-grid {
    grid-template-columns: 1fr !important;
  }
}
/* ==========================================================
   STAFF CARD - LONG TITLE WRAPPING FIX
========================================================== */

.staff-card-content h3,
.staff-card-content p {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}
.staff-card-content p {
  font-size: 14px !important;
  line-height: 1.4 !important;
}
.residents-page-layout{display:grid;grid-template-columns:minmax(0,1fr)330px;gap:30px;align-items:start}
.residents-main{display:grid;gap:28px}
.residents-intro-card,.residents-section-card,.residents-sidebar{background:#fff;border-radius:24px;border:1px solid rgba(21,59,82,.10);box-shadow:0 14px 34px rgba(21,59,82,.08)}
.residents-intro-card{padding:38px 42px}
.residents-intro-card h2{color:var(--borough-navy);font-size:40px;line-height:1.12;margin:0 0 14px}
.residents-intro-card p{color:var(--text-muted);font-size:16px;line-height:1.7;margin:0}
.residents-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.resident-feature-card{display:grid;grid-template-columns:64px minmax(0,1fr);gap:20px;background:#fff;border-radius:22px;padding:28px;border:1px solid rgba(21,59,82,.10);box-shadow:0 12px 28px rgba(21,59,82,.08);text-decoration:none;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
.resident-feature-card:hover{background:var(--light-green);transform:translateY(-3px);box-shadow:0 18px 38px rgba(21,59,82,.12)}
.resident-feature-icon{width:58px;height:58px;border-radius:18px;background:var(--borough-navy);color:var(--borough-gold);display:grid;place-items:center;font-size:24px;font-weight:900}
.resident-feature-card span{display:inline-flex;width:fit-content;background:var(--light-gray);color:var(--borough-green);border-radius:999px;padding:6px 11px;font-size:12px;font-weight:900;margin-bottom:12px}
.resident-feature-card h3{color:var(--borough-navy);font-size:24px;line-height:1.18;margin:0 0 10px}
.resident-feature-card p{color:var(--text-muted);font-size:15px;line-height:1.55;margin:0 0 16px}
.resident-feature-card strong{color:var(--borough-green);font-size:15px;font-weight:900}
.residents-section-card{overflow:hidden}
.residents-section-heading{padding:32px 38px;border-left:8px solid var(--borough-gold);border-bottom:1px solid rgba(21,59,82,.08)}
.residents-section-heading h2{color:var(--borough-navy);font-size:34px;line-height:1.15;margin:0 0 10px}
.residents-section-heading p{color:var(--text-muted);font-size:16px;line-height:1.6;margin:0}
.residents-resource-list{display:grid}
.resident-resource-row{display:grid;grid-template-columns:minmax(0,1fr)auto;gap:24px;align-items:center;padding:24px 36px;background:#fff;text-decoration:none;border-bottom:1px solid rgba(21,59,82,.08)}
.resident-resource-row:last-child{border-bottom:none}
.resident-resource-row:hover{background:var(--light-green)}
.resident-resource-row h3{color:var(--borough-navy);font-size:22px;line-height:1.2;margin:0 0 8px}
.resident-resource-row p{color:var(--text-muted);font-size:15px;line-height:1.55;margin:0}
.resident-resource-row strong{color:var(--borough-green);font-size:15px;font-weight:900;white-space:nowrap}
.residents-highlight-panel{border-radius:24px;padding:38px 42px;background:linear-gradient(135deg,var(--borough-navy),var(--borough-green));box-shadow:0 14px 34px rgba(21,59,82,.14)}
.residents-highlight-panel h2{color:#fff;font-size:38px;line-height:1.12;margin:0 0 14px}
.residents-highlight-panel p{color:rgba(255,255,255,.88);font-size:16px;line-height:1.7;margin:0 0 24px}
.residents-highlight-panel .gov-badge{color:#fff}
.residents-highlight-panel a{display:inline-flex;width:fit-content;background:var(--borough-gold);color:#fff;border-radius:999px;padding:13px 18px;font-size:15px;font-weight:900;text-decoration:none}
.residents-sidebar{position:sticky;top:130px;padding:26px}
.residents-sidebar h3{color:var(--borough-navy);font-size:25px;margin:0 0 18px}
.residents-sidebar-links{display:grid;gap:10px}
.residents-sidebar-links a{display:block;background:var(--light-gray);color:var(--borough-navy);border-radius:14px;padding:13px 15px;font-size:15px;font-weight:900;text-decoration:none;border:1px solid rgba(21,59,82,.08)}
.residents-sidebar-links a:hover{background:var(--light-green);color:var(--borough-green)}
.residents-sidebar-card{margin-top:22px;padding-top:20px;border-top:1px solid rgba(21,59,82,.10)}
.residents-sidebar-card h4,.residents-emergency-card h4{color:var(--borough-navy);font-size:21px;margin:0 0 10px}
.residents-sidebar-card p{color:var(--text-muted);font-size:15px;line-height:1.6;margin:0 0 14px}
.residents-emergency-card{margin-top:20px;background:var(--borough-navy);border-radius:18px;padding:22px}
.residents-emergency-card h4{color:#fff}
.residents-emergency-card p{color:rgba(255,255,255,.88);font-size:14px;line-height:1.55;margin:0}
@media (max-width:1000px){.residents-page-layout{grid-template-columns:1fr}.residents-sidebar{position:relative;top:auto}}
@media (max-width:800px){.residents-feature-grid{grid-template-columns:1fr}.resident-resource-row{grid-template-columns:1fr}.resident-resource-row strong{white-space:normal}}
@media (max-width:650px){.residents-intro-card,.residents-highlight-panel{padding:30px 26px}.resident-feature-card{grid-template-columns:1fr}.residents-section-heading,.resident-resource-row{padding:26px 24px}.residents-intro-card h2,.residents-highlight-panel h2{font-size:32px}}

/* ==========================================================
   COMMUNITY PAGE
========================================================== */

.community-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  align-items: start;
}

.community-main {
  display: grid;
  gap: 28px;
}

.community-intro-card,
.community-section-card,
.community-sidebar {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(21, 59, 82, 0.10);
  box-shadow: 0 14px 34px rgba(21, 59, 82, 0.08);
}

.community-intro-card {
  padding: 38px 42px;
}

.community-intro-card h2 {
  color: var(--borough-navy);
  font-size: 40px;
  line-height: 1.12;
  margin: 0 0 14px;
}

.community-intro-card p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

/* Feature cards */

.community-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.community-feature-card {
  position: relative;
  min-height: 320px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--borough-navy), var(--borough-green));
  box-shadow: 0 14px 34px rgba(21, 59, 82, 0.14);
  display: flex;
  align-items: flex-end;
}

.community-feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(200, 154, 43, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(21, 59, 82, 0.08), rgba(21, 59, 82, 0.88));
}

.community-downtown-card {
  background: linear-gradient(135deg, var(--borough-green), var(--borough-navy));
}

.community-feature-content {
  position: relative;
  z-index: 2;
  padding: 34px;
}

.community-feature-content span {
  display: inline-flex;
  width: fit-content;
  background: rgba(200, 154, 43, 0.22);
  color: var(--borough-gold);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.community-feature-content h3 {
  color: #ffffff;
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 12px;
}

.community-feature-content p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

/* Resource section */

.community-section-card {
  overflow: hidden;
}

.community-section-heading {
  padding: 32px 38px;
  border-left: 8px solid var(--borough-gold);
  border-bottom: 1px solid rgba(21, 59, 82, 0.08);
}

.community-section-heading h2 {
  color: var(--borough-navy);
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 10px;
}

.community-section-heading p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.community-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.community-resource-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  min-height: 230px;
  padding: 28px;
  background: #ffffff;
  text-decoration: none;
  border-right: 1px solid rgba(21, 59, 82, 0.08);
  border-bottom: 1px solid rgba(21, 59, 82, 0.08);
}

.community-resource-card:hover {
  background: var(--light-green);
}

.community-resource-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--borough-navy);
  color: var(--borough-gold);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
}

.community-resource-card span {
  display: inline-flex;
  width: fit-content;
  background: var(--light-gray);
  color: var(--borough-green);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 12px;
}

.community-resource-card h3 {
  color: var(--borough-navy);
  font-size: 23px;
  line-height: 1.18;
  margin: 0 0 10px;
}

.community-resource-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 16px;
}

.community-resource-card strong {
  color: var(--borough-green);
  font-size: 15px;
  font-weight: 900;
}

/* Highlight panel */

.community-highlight-panel {
  border-radius: 24px;
  padding: 38px 42px;
  background: linear-gradient(135deg, var(--borough-navy), var(--borough-green));
  box-shadow: 0 14px 34px rgba(21, 59, 82, 0.14);
}

.community-highlight-panel h2 {
  color: #ffffff;
  font-size: 38px;
  line-height: 1.12;
  margin: 0 0 14px;
}

.community-highlight-panel p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 24px;
}

.community-highlight-panel .gov-badge {
  color: #ffffff;
}

.community-highlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.community-highlight-actions a {
  display: inline-flex;
  width: fit-content;
  background: var(--borough-gold);
  color: #ffffff;
  border-radius: 999px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.community-highlight-actions a:nth-child(2),
.community-highlight-actions a:nth-child(3) {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.community-highlight-actions a:hover {
  background: #ffffff;
  color: var(--borough-navy);
}

/* Sidebar */

.community-sidebar {
  position: sticky;
  top: 130px;
  padding: 26px;
}

.community-sidebar h3 {
  color: var(--borough-navy);
  font-size: 25px;
  margin: 0 0 18px;
}

.community-sidebar-links {
  display: grid;
  gap: 10px;
}

.community-sidebar-links a {
  display: block;
  background: var(--light-gray);
  color: var(--borough-navy);
  border-radius: 14px;
  padding: 13px 15px;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid rgba(21, 59, 82, 0.08);
}

.community-sidebar-links a:hover {
  background: var(--light-green);
  color: var(--borough-green);
}

.community-sidebar-card {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(21, 59, 82, 0.10);
}

.community-sidebar-card h4,
.community-history-box h4 {
  color: var(--borough-navy);
  font-size: 21px;
  margin: 0 0 10px;
}

.community-sidebar-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.community-history-box {
  margin-top: 20px;
  background: var(--borough-navy);
  border-radius: 18px;
  padding: 22px;
}

.community-history-box h4 {
  color: #ffffff;
}

.community-history-box p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* Responsive */

@media (max-width: 1000px) {
  .community-page-layout {
    grid-template-columns: 1fr;
  }

  .community-sidebar {
    position: relative;
    top: auto;
  }
}

@media (max-width: 850px) {
  .community-feature-grid,
  .community-resource-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .community-intro-card,
  .community-highlight-panel {
    padding: 30px 26px;
  }

  .community-feature-content,
  .community-section-heading,
  .community-resource-card {
    padding: 26px 24px;
  }

  .community-resource-card {
    grid-template-columns: 1fr;
  }

  .community-intro-card h2,
  .community-highlight-panel h2 {
    font-size: 32px;
  }

  .community-feature-content h3 {
    font-size: 28px;
  }
}

/* ==========================================================
   ALERTS PAGE
========================================================== */

.alerts-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  align-items: start;
}

.alerts-main {
  display: grid;
  gap: 28px;
}

.alerts-intro-card,
.alerts-current-card,
.alerts-sidebar {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(21, 59, 82, 0.10);
  box-shadow: 0 14px 34px rgba(21, 59, 82, 0.08);
}

.alerts-intro-card {
  padding: 38px 42px;
}

.alerts-intro-card h2 {
  color: var(--borough-navy);
  font-size: 40px;
  line-height: 1.12;
  margin: 0 0 14px;
}

.alerts-intro-card p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

.alerts-current-card {
  overflow: hidden;
}

.alerts-current-heading {
  padding: 32px 38px;
  border-left: 8px solid var(--borough-gold);
  border-bottom: 1px solid rgba(21, 59, 82, 0.08);
}

.alerts-current-heading h2 {
  color: var(--borough-navy);
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 10px;
}

.alerts-current-heading p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.alerts-empty-state {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 32px 38px;
  background: var(--light-green);
}

.alerts-empty-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--borough-green);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 900;
}

.alerts-empty-state h3 {
  color: var(--borough-navy);
  font-size: 25px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.alerts-empty-state p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

.alerts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.alerts-info-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 28px 30px;
  border: 1px solid rgba(21, 59, 82, 0.10);
  box-shadow: 0 12px 28px rgba(21, 59, 82, 0.08);
  border-top: 6px solid var(--borough-green);
}

.alerts-info-card:nth-child(2),
.alerts-info-card:nth-child(3) {
  border-top-color: var(--borough-gold);
}

.alerts-info-card span {
  display: inline-flex;
  width: fit-content;
  background: var(--light-gray);
  color: var(--borough-green);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.alerts-info-card h3 {
  color: var(--borough-navy);
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.alerts-info-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 18px;
}

.alerts-info-card a {
  color: var(--borough-green);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.alerts-info-card a:hover {
  color: var(--borough-navy);
  text-decoration: underline;
}

.alerts-rave-panel {
  border-radius: 24px;
  padding: 38px 42px;
  background: linear-gradient(135deg, var(--borough-navy), var(--borough-green));
  box-shadow: 0 14px 34px rgba(21, 59, 82, 0.14);
}

.alerts-rave-panel h2 {
  color: #ffffff;
  font-size: 38px;
  line-height: 1.12;
  margin: 0 0 14px;
}

.alerts-rave-panel p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 24px;
}

.alerts-rave-panel .gov-badge {
  color: #ffffff;
}

.alerts-rave-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.alerts-rave-actions a {
  display: inline-flex;
  width: fit-content;
  background: var(--borough-gold);
  color: #ffffff;
  border-radius: 999px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.alerts-rave-actions a:nth-child(2) {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.alerts-rave-actions a:hover {
  background: #ffffff;
  color: var(--borough-navy);
}

/* Sidebar */

.alerts-sidebar {
  position: sticky;
  top: 130px;
  padding: 26px;
}

.alerts-sidebar h3 {
  color: var(--borough-navy);
  font-size: 25px;
  margin: 0 0 18px;
}

.alerts-sidebar-links {
  display: grid;
  gap: 10px;
}

.alerts-sidebar-links a {
  display: block;
  background: var(--light-gray);
  color: var(--borough-navy);
  border-radius: 14px;
  padding: 13px 15px;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid rgba(21, 59, 82, 0.08);
}

.alerts-sidebar-links a:hover {
  background: var(--light-green);
  color: var(--borough-green);
}

.alerts-emergency-card {
  margin-top: 22px;
  background: var(--borough-navy);
  border-radius: 18px;
  padding: 22px;
}

.alerts-emergency-card h4 {
  color: #ffffff;
  font-size: 21px;
  margin: 0 0 10px;
}

.alerts-emergency-card p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.alerts-sidebar-card {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(21, 59, 82, 0.10);
}

.alerts-sidebar-card h4 {
  color: var(--borough-navy);
  font-size: 21px;
  margin: 0 0 10px;
}

.alerts-sidebar-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 14px;
}

/* Responsive */

@media (max-width: 1000px) {
  .alerts-page-layout {
    grid-template-columns: 1fr;
  }

  .alerts-sidebar {
    position: relative;
    top: auto;
  }
}

@media (max-width: 850px) {
  .alerts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .alerts-intro-card,
  .alerts-rave-panel {
    padding: 30px 26px;
  }

  .alerts-current-heading,
  .alerts-empty-state,
  .alerts-info-card {
    padding: 26px 24px;
  }

  .alerts-empty-state {
    grid-template-columns: 1fr;
  }

  .alerts-intro-card h2,
  .alerts-rave-panel h2 {
    font-size: 32px;
  }
}

/* ==========================================================
   PROJECT PROGRESS CARDS
========================================================== */

.project-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.project-progress-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 30px 32px;
  border: 1px solid rgba(21, 59, 82, 0.10);
  box-shadow: 0 14px 34px rgba(21, 59, 82, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}

.project-progress-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background: var(--borough-green);
}

.project-progress-card:nth-child(2)::before {
  background: var(--borough-gold);
}

.project-progress-card:nth-child(3)::before {
  background: var(--borough-blue);
}

.project-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.project-status {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.project-status-active {
  background: var(--light-green);
  color: var(--borough-green);
}

.project-status-planning {
  background: rgba(200, 154, 43, 0.16);
  color: var(--borough-gold);
}

.project-status-review {
  background: rgba(36, 90, 130, 0.14);
  color: var(--borough-blue);
}

.project-percent {
  color: var(--borough-navy);
  font-size: 24px;
  font-weight: 900;
}

.project-progress-card h3 {
  color: var(--borough-navy);
  font-size: 25px;
  line-height: 1.18;
  margin: 0 0 14px;
}

.project-progress-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 24px;
}

.project-progress-bar {
  width: 100%;
  height: 12px;
  background: var(--light-gray);
  border-radius: 999px;
  overflow: hidden;
  margin-top: auto;
}

.project-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--borough-green), var(--borough-gold));
}

.project-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
}

.project-progress-card a {
  display: inline-flex;
  width: fit-content;
  margin-top: 22px;
  color: var(--borough-green);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.project-progress-card a:hover {
  color: var(--borough-navy);
  text-decoration: underline;
}

@media (max-width: 1050px) {
  .project-progress-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .project-progress-grid {
    grid-template-columns: 1fr;
  }

  .project-progress-card {
    min-height: auto;
    padding: 28px 26px;
  }
}
/* Compact document library styling */
.documents-list {
  display: grid !important;
  gap: 12px !important;
}

.document-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 16px 18px !important;
  border: 1px solid rgba(21, 59, 82, 0.10) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 6px 18px rgba(21, 59, 82, 0.055) !important;
}

.document-row:hover {
  border-color: rgba(63, 107, 69, 0.28) !important;
  box-shadow: 0 10px 24px rgba(21, 59, 82, 0.09) !important;
  transform: translateY(-1px) !important;
}

.document-row-main {
  min-width: 0 !important;
}

.document-type {
  margin: 0 0 5px !important;
  color: #3F6B45 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

.document-row h3 {
  margin: 0 !important;
  color: #153B52 !important;
  font-size: 17px !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
  overflow-wrap: anywhere !important;
}

.document-row-main > p:not(.document-type) {
  margin: 7px 0 0 !important;
  color: #66727A !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.document-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 8px !important;
}

.document-meta span {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  background: #F7F8F8 !important;
  color: #66727A !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.document-row-action {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

.document-row-action a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 106px !important;
  padding: 9px 13px !important;
  border-radius: 999px !important;
  background: #153B52 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  box-shadow: 0 8px 16px rgba(21, 59, 82, 0.18) !important;
}

.document-row-action a:hover {
  background: #3F6B45 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.documents-card {
  border-radius: 20px !important;
}

.documents-card > h2,
.authority-section > h2 {
  margin-bottom: 14px !important;
}

.document-empty-state {
  padding: 20px !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  border: 1px dashed rgba(21, 59, 82, 0.18) !important;
}

.document-empty-state h3 {
  margin-top: 0 !important;
  color: #153B52 !important;
}

@media (max-width: 760px) {
  .document-row {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

  .document-row-action {
    justify-content: flex-start !important;
  }

  .document-row-action a {
    width: 100% !important;
  }
}

/* Modern AI-assisted search page */
.ai-search-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 24px 72px;
  background:
    radial-gradient(circle at top left, rgba(200, 154, 43, 0.22), transparent 34%),
    radial-gradient(circle at bottom right, rgba(63, 107, 69, 0.22), transparent 36%),
    linear-gradient(135deg, #102E43 0%, #153B52 56%, #1D4B64 100%);
}

.ai-search-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -42% -10%;
  height: 220px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50% 50% 0 0;
}

.ai-search-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.ai-search-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #F8E7B0;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.ai-search-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 950;
}

.ai-search-hero p {
  max-width: 720px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.65;
}

.ai-modern-search-form {
  max-width: 860px;
  margin: 34px auto 0;
}

.ai-modern-search-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

.ai-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-left: 4px;
  border-radius: 999px;
  background: #F4F7F8;
  color: #153B52;
  font-size: 26px;
  font-weight: 900;
}

.ai-modern-search-box input {
  width: 100%;
  min-height: 58px;
  border: none;
  background: transparent;
  color: #1E2E38;
  font-size: 18px;
  font-weight: 700;
  outline: none;
}

.ai-modern-search-box input::placeholder {
  color: #7A8890;
  font-weight: 600;
}

.ai-modern-search-box button {
  min-height: 58px;
  padding: 0 28px;
  border: none;
  border-radius: 999px;
  background: #C89A2B;
  color: #102E43;
  font-size: 15px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(200, 154, 43, 0.28);
}

.ai-modern-search-box button:hover {
  background: #E0B54D;
}

.ai-search-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.ai-search-chip-row a {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.ai-search-chip-row a:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  text-decoration: none;
}

.ai-modern-summary {
  border-left: none !important;
  padding: 24px 26px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(21, 59, 82, 0.10) !important;
}

.ai-related-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ai-related-terms span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #EDF4ED;
  color: #3F6B45;
  font-size: 12px;
  font-weight: 900;
}

.ai-modern-results-card {
  margin-top: 22px;
}

@media (max-width: 760px) {
  .ai-search-hero {
    padding: 72px 18px 56px;
  }

  .ai-modern-search-box {
    grid-template-columns: 1fr;
    border-radius: 26px;
    padding: 16px;
  }

  .ai-search-icon {
    display: none;
  }

  .ai-modern-search-box input {
    min-height: 52px;
    padding: 0 8px;
    text-align: center;
  }

  .ai-modern-search-box button {
    width: 100%;
  }
}

/* Homepage hero search bar */
.home-hero-search-card {
  margin-top: 34px;
  max-width: 720px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.24);
}

.home-hero-search-card p {
  margin: 0 0 12px;
  color: #153B52 !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  font-weight: 800;
}

.home-hero-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.home-hero-search-form input {
  width: 100%;
  height: 54px;
  border: 1px solid rgba(21, 59, 82, 0.14);
  border-radius: 999px;
  padding: 0 20px;
  background: #F7F8F8;
  color: #1E2E38;
  font-size: 16px;
  font-weight: 700;
  outline: none;
}

.home-hero-search-form input:focus {
  border-color: #C89A2B;
  box-shadow: 0 0 0 4px rgba(200, 154, 43, 0.15);
  background: #ffffff;
}

.home-hero-search-form button {
  height: 54px;
  border: none;
  border-radius: 999px;
  padding: 0 24px;
  background: #C89A2B;
  color: #102E43;
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
}

.home-hero-search-form button:hover {
  background: #E0B54D;
}

.home-hero-search-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.home-hero-search-links a {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: #EDF4ED;
  color: #3F6B45;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.home-hero-search-links a:hover {
  background: #3F6B45;
  color: #ffffff;
  text-decoration: none;
}

@media (max-width: 700px) {
  .home-hero-search-form {
    grid-template-columns: 1fr;
  }

  .home-hero-search-form button {
    width: 100%;
  }

  .home-hero-search-card {
    margin-top: 26px;
  }
}

/* Header search button */
.site-search-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 9px 15px !important;
  border-radius: 999px !important;
  background: #153B52 !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(21, 59, 82, 0.14) !important;
}

.site-search-button:hover {
  background: #C89A2B !important;
  color: #102E43 !important;
  text-decoration: none !important;
}

/* Top bar search link */
.top-bar-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.top-search-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 5px 11px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

.top-search-link:hover {
  background: #C89A2B !important;
  color: #102E43 !important;
  text-decoration: none !important;
}

/* Make sure old main-nav search button does not affect layout */
.site-nav .site-search-button {
  display: none !important;
}

/* Fixed top bar layout */
.top-bar {
  background: #153B52 !important;
  color: #ffffff !important;
  padding: 7px 32px !important;
  font-size: 14px !important;
}

.top-bar-inner {
  max-width: 1440px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}

.top-bar-address {
  color: #ffffff !important;
  font-weight: 600 !important;
}

.top-bar-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}

.top-bar-actions a {
  color: #ffffff !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

.top-search-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.16) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.top-search-link:hover {
  background: #C89A2B !important;
  color: #102E43 !important;
}

/* Keep Contact in the main nav and hide any old nav search button */
.site-nav .site-search-button {
  display: none !important;
}

/* ADA / WCAG global accessibility improvements */
.skip-link {
  position: absolute !important;
  left: 16px !important;
  top: -60px !important;
  z-index: 99999 !important;
  padding: 12px 16px !important;
  border-radius: 0 0 10px 10px !important;
  background: #C89A2B !important;
  color: #102E43 !important;
  font-weight: 950 !important;
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25) !important;
}

.skip-link:focus {
  top: 0 !important;
  outline: 3px solid #ffffff !important;
  outline-offset: 2px !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #C89A2B !important;
  outline-offset: 3px !important;
  border-radius: 6px !important;
}

.site-nav a:focus-visible,
.top-bar a:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid #C89A2B !important;
  outline-offset: 4px !important;
  text-decoration: underline !important;
}

.site-brand:focus-visible {
  outline: 3px solid #C89A2B !important;
  outline-offset: 6px !important;
  border-radius: 10px !important;
}

/* Keep focus visible even for mouse-hover styled links */
a:hover,
a:focus-visible {
  text-decoration-thickness: 2px !important;
}

/* Screen-reader-only helper class for future use */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Stronger visible skip link fix */
.skip-link {
  position: fixed !important;
  top: -100px !important;
  left: 16px !important;
  z-index: 999999 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px 18px !important;
  border-radius: 0 0 12px 12px !important;
  background: #FFD95A !important;
  color: #102E43 !important;
  font-size: 16px !important;
  font-weight: 950 !important;
  text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35) !important;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0 !important;
  outline: 4px solid #ffffff !important;
  outline-offset: 3px !important;
}

/* ADA / WCAG contrast and focus pass */
:root {
  --ada-navy: #153B52;
  --ada-green: #2F5D37;
  --ada-gold-dark: #8A6500;
  --ada-gold: #C89A2B;
  --ada-text: #23303A;
  --ada-muted: #4F5D66;
  --ada-focus: #FFD95A;
}

/* Improve readable body/link contrast */
body {
  color: var(--ada-text) !important;
}

p,
li,
.document-meta,
.home-meta,
.field-help {
  color: var(--ada-muted) !important;
}

/* Keep links visibly identifiable */
a {
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  text-decoration: underline !important;
}

/* Strong global keyboard focus indicator */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 4px solid var(--ada-focus) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 2px #153B52 !important;
}

/* Header/navigation contrast */
.site-nav a,
.main-nav a {
  color: var(--ada-navy) !important;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--ada-green) !important;
}

/* Dropdown focus support */
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Buttons */
.home-btn,
.gov-btn,
.contact-button,
.nav-button,
.document-row-action a,
.search-result-action a,
.report-page-submit,
.bill-page-submit {
  font-weight: 950 !important;
}

.home-btn-gold,
.ai-modern-search-box button,
.search-box-row button,
.home-hero-search-form button {
  background: #C89A2B !important;
  color: #102E43 !important;
}

.home-btn-gold:hover,
.ai-modern-search-box button:hover,
.search-box-row button:hover,
.home-hero-search-form button:hover {
  background: #A77A12 !important;
  color: #ffffff !important;
}

/* Gold text on light backgrounds can be weak; darken small gold labels */
.home-kicker,
.gov-eyebrow,
.gov-badge,
.search-label,
.document-type {
  color: var(--ada-green) !important;
}

/* Form controls need clear borders */
input,
select,
textarea {
  border-color: #687681 !important;
}

/* Make placeholder text readable but still distinct */
input::placeholder,
textarea::placeholder {
  color: #5F6D76 !important;
  opacity: 1 !important;
}

/* Error color contrast */
.errorlist,
.form-error-summary h3,
.required-mark {
  color: #9F1D20 !important;
}

/* Footer links remain visible */
.site-footer a {
  color: #ffffff !important;
  text-decoration-thickness: 2px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #FFD95A !important;
}

/* Top bar focus/contrast */
.top-bar a {
  color: #ffffff !important;
}

.top-search-link:hover,
.top-search-link:focus-visible {
  background: #FFD95A !important;
  color: #102E43 !important;
}

/* ADA keyboard-friendly navigation dropdowns */
.nav-dropdown {
  position: relative !important;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid rgba(21, 59, 82, 0.14);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 16px 34px rgba(21, 59, 82, 0.16);
  z-index: 5000;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: grid !important;
  gap: 4px !important;
}

.nav-dropdown-menu a {
  display: block !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  color: #153B52 !important;
  font-weight: 850 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: #EDF4ED !important;
  color: #2F5D37 !important;
  text-decoration: underline !important;
}

.nav-dropdown-toggle::after {
  content: " ?";
  font-size: 12px;
}

@media (max-width: 800px) {
  .nav-dropdown-menu {
    position: static !important;
    width: 100% !important;
    box-shadow: none !important;
    margin-top: 8px !important;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: grid !important;
  }
}

/* Fix dropdown arrow encoding issue */
.nav-dropdown-toggle::after {
  content: " v" !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  margin-left: 3px !important;
}

/* ADA document accessibility notice */
.document-accessibility-notice {
  margin: 22px 0 26px;
  padding: 20px 22px;
  border-radius: 16px;
  background: #EDF4ED;
  border-left: 6px solid #2F5D37;
  color: #23303A;
}

.document-accessibility-notice h3 {
  margin: 0 0 8px;
  color: #153B52;
  font-size: 20px;
  font-weight: 950;
}

.document-accessibility-notice p {
  margin: 0;
  color: #4F5D66;
  font-size: 15px;
  line-height: 1.65;
}

.document-accessibility-notice a {
  color: #153B52;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.document-accessibility-notice a:hover,
.document-accessibility-notice a:focus-visible {
  color: #2F5D37;
}

/* Final ADA contrast and focus cleanup */

/* Avoid weak white text on gold buttons/badges */
.department-main-card .gov-badge,
.safety-emergency-banner .gov-badge,
.safety-profile-card .gov-badge,
.contact-hours-card .gov-badge,
.community-highlight-actions a,
.alerts-rave-actions a,
.residents-highlight-panel a {
  color: #102E43 !important;
}

/* Make gold backgrounds slightly darker where white text may appear */
.department-main-card .gov-badge,
.safety-emergency-banner .gov-badge,
.safety-profile-card .gov-badge,
.contact-hours-card .gov-badge {
  background: #A77A12 !important;
}

/* Keep gold buttons readable with navy text */
.home-btn-gold,
.home-visit-actions .home-btn-gold,
.ai-modern-search-box button,
.home-hero-search-form button {
  background: #C89A2B !important;
  color: #102E43 !important;
}

/* Darken gold-hover state when text becomes white */
.home-btn-gold:hover,
.home-visit-actions .home-btn-gold:hover,
.ai-modern-search-box button:hover,
.home-hero-search-form button:hover {
  background: #A77A12 !important;
  color: #ffffff !important;
}

/* Improve muted gray text contrast */
.document-meta span,
.search-result-type,
.home-list-date,
.project-status-planning,
.project-status-active,
.project-status-review {
  color: #153B52 !important;
}

/* Strong global keyboard focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 4px solid #FFD95A !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 2px #153B52 !important;
}

/* Make card links visibly focused, not only hovered */
.home-service-card:focus-within,
.forms-list-item:focus-visible,
.document-row:focus-within,
.resident-feature-card:focus-visible,
.resident-resource-row:focus-visible,
.community-resource-card:focus-visible,
.contact-topic-card:focus-visible,
.documents-category-grid a:focus-visible,
.documents-sidebar-links a:focus-visible,
.gov-sidebar-links a:focus-visible,
.nav-dropdown-menu a:focus-visible {
  outline: 4px solid #FFD95A !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 2px #153B52 !important;
}

/* Dropdown links need keyboard state equal to hover state */
.nav-dropdown-menu a:focus,
.nav-dropdown-menu a:focus-visible {
  background: #EDF4ED !important;
  color: #153B52 !important;
}

/* Sidebar links need keyboard state equal to hover state */
.forms-clean-nav a:focus-visible,
.contact-sidebar-links a:focus-visible,
.community-sidebar-links a:focus-visible,
.alerts-sidebar-links a:focus-visible,
.residents-sidebar-links a:focus-visible,
.department-sidebar-links a:focus-visible {
  background: #EDF4ED !important;
  color: #153B52 !important;
}

/* Search chips and top search link focus */
.ai-search-chip-row a:focus-visible,
.home-hero-search-links a:focus-visible,
.top-search-link:focus-visible,
.site-search-button:focus-visible {
  background: #FFD95A !important;
  color: #102E43 !important;
}

/* =========================================================
   Smart Search Page
   ========================================================= */

.smart-search-form {
  background: #ffffff;
  border: 1px solid rgba(19, 44, 74, 0.12);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(19, 44, 74, 0.08);
  padding: 2rem;
  margin-bottom: 2rem;
}

.smart-search-form label {
  display: block;
  font-weight: 800;
  color: var(--borough-navy, #132C4A);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.smart-search-row {
  display: flex;
  gap: 0.75rem;
}

.smart-search-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(19, 44, 74, 0.22);
  border-radius: 999px;
  padding: 0.95rem 1.15rem;
  font-size: 1rem;
  color: #1f2937;
  background: #ffffff;
}

.smart-search-row input:focus {
  outline: 3px solid rgba(41, 98, 255, 0.25);
  border-color: var(--borough-navy, #132C4A);
}

.smart-search-row button {
  border: none;
  border-radius: 999px;
  background: var(--borough-navy, #132C4A);
  color: #ffffff;
  font-weight: 800;
  padding: 0.95rem 1.5rem;
  cursor: pointer;
}

.smart-search-row button:focus-visible {
  outline: 3px solid rgba(41, 98, 255, 0.4);
  outline-offset: 3px;
}

.smart-search-help {
  color: #5b6472;
  margin-top: 0.9rem;
  margin-bottom: 0;
  line-height: 1.6;
}

.smart-search-summary {
  margin-bottom: 1.5rem;
}

.smart-search-summary h2 {
  color: var(--borough-navy, #132C4A);
  margin-bottom: 0.4rem;
}

.smart-search-card h3 {
  margin: 0 0 0.5rem;
  color: var(--borough-navy, #132C4A);
}

.smart-search-card p {
  color: #5b6472;
  margin: 0 0 0.9rem;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .smart-search-form {
    padding: 1.25rem;
  }

  .smart-search-row {
    flex-direction: column;
  }

  .smart-search-row input,
  .smart-search-row button {
    width: 100%;
  }
}

/* =========================================================
   Smart Search Page - Fixed Layout Override
   ========================================================= */

.smart-search-page {
  width: min(100%, 900px);
  margin: 0 auto;
}

.smart-search-form {
  display: block;
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(19, 44, 74, 0.12);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(19, 44, 74, 0.08);
  padding: 2rem;
  margin: 0 0 2rem 0;
}

.smart-search-form label {
  display: block;
  width: 100%;
  font-weight: 800;
  color: var(--borough-navy, #132C4A);
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
}

.smart-search-row {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 0.75rem;
}

.smart-search-row input[type="search"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 52px;
  border: 1px solid rgba(19, 44, 74, 0.22);
  border-radius: 999px;
  padding: 0 1.15rem;
  font-size: 1rem;
  color: #1f2937;
  background: #ffffff;
}

.smart-search-row input[type="search"]:focus {
  outline: 3px solid rgba(41, 98, 255, 0.25);
  border-color: var(--borough-navy, #132C4A);
}

.smart-search-row button {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  min-width: 130px;
  height: 52px;
  border-radius: 999px;
  background: var(--borough-navy, #132C4A);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  padding: 0 1.5rem;
  cursor: pointer;
}

.smart-search-row button:hover {
  background: #0f243d;
}

.smart-search-help {
  color: #5b6472;
  margin: 0.9rem 0 0 0;
  line-height: 1.6;
}

.smart-search-summary {
  background: #ffffff;
  border: 1px solid rgba(19, 44, 74, 0.1);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.smart-search-summary h2 {
  color: var(--borough-navy, #132C4A);
  margin: 0 0 0.4rem 0;
  font-size: 1.5rem;
}

.smart-search-summary p {
  color: #5b6472;
  margin: 0;
}

.smart-search-results {
  display: grid;
  gap: 1rem;
}

.smart-search-card {
  background: #ffffff;
  border: 1px solid rgba(19, 44, 74, 0.12);
  border-radius: 20px;
  padding: 1.35rem;
  box-shadow: 0 12px 30px rgba(19, 44, 74, 0.06);
}

.smart-search-card-top {
  margin-bottom: 0.65rem;
}

.smart-search-type {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.smart-search-type-page {
  background: #edf4ed;
  color: #245b2a;
}

.smart-search-type-document {
  background: #eef3ff;
  color: #1e3a8a;
}

.smart-search-card h3 {
  margin: 0 0 0.5rem 0;
  color: var(--borough-navy, #132C4A);
  font-size: 1.25rem;
}

.smart-search-card h3 a {
  color: inherit;
  text-decoration: none;
}

.smart-search-card h3 a:hover {
  text-decoration: underline;
}

.smart-search-card p {
  color: #5b6472;
  margin: 0 0 0.9rem 0;
  line-height: 1.6;
}

.smart-search-link {
  color: var(--borough-navy, #132C4A);
  font-weight: 800;
  text-decoration: none;
}

.smart-search-link:hover {
  text-decoration: underline;
}

.smart-search-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  color: #5b6472;
}

.smart-search-pagination a {
  color: var(--borough-navy, #132C4A);
  font-weight: 800;
  text-decoration: none;
}

.smart-search-pagination a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .smart-search-page {
    width: 100%;
  }

  .smart-search-form {
    padding: 1.25rem;
    border-radius: 18px;
  }

  .smart-search-row {
    flex-direction: column;
  }

  .smart-search-row button {
    width: 100%;
  }
}

/* =========================================================
   Popular Searches
   ========================================================= */

.popular-searches {
  background: #ffffff;
  border: 1px solid rgba(19, 44, 74, 0.1);
  border-radius: 22px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 12px 30px rgba(19, 44, 74, 0.05);
}

.popular-searches h2 {
  color: var(--borough-navy, #132C4A);
  font-size: 1.35rem;
  margin: 0 0 1rem 0;
}

.popular-search-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.popular-search-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #EDF4ED;
  color: #153B52;
  border: 1px solid rgba(63, 107, 69, 0.22);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 800;
  text-decoration: none;
  line-height: 1;
}

.popular-search-grid a:hover {
  background: #153B52;
  color: #ffffff;
  text-decoration: none;
}

.popular-search-grid a:focus-visible {
  outline: 3px solid rgba(41, 98, 255, 0.35);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .popular-searches {
    padding: 1.25rem;
    border-radius: 18px;
  }

  .popular-search-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .popular-search-grid a {
    width: 100%;
  }
}

/* =========================================================
   Smart Search Result Label Colors
   ========================================================= */

.smart-search-type-form,
.smart-search-type-permit {
  background: #EDF4ED;
  color: #245B2A;
}

.smart-search-type-agenda,
.smart-search-type-minutes {
  background: #EEF3FF;
  color: #1E3A8A;
}

.smart-search-type-ordinance,
.smart-search-type-resolution {
  background: #FFF7E6;
  color: #7A4B00;
}

.smart-search-type-public-notice {
  background: #FFF1F2;
  color: #9F1239;
}

.smart-search-type-right-to-know,
.smart-search-type-budget {
  background: #F3E8FF;
  color: #6B21A8;
}

.smart-search-type-police-fire {
  background: #EAF8FF;
  color: #075985;
}

.smart-search-type-trash-recycling {
  background: #ECFDF3;
  color: #166534;
}

.smart-search-type-utility-billing {
  background: #FEF9C3;
  color: #713F12;
}

.smart-search-type-page {
  background: #EDF4ED;
  color: #245B2A;
}

.smart-search-type-document {
  background: #EEF3FF;
  color: #1E3A8A;
}

/* =========================================================
   Smart Search Ranking Badges
   ========================================================= */

.smart-search-card-best {
  border-color: rgba(200, 154, 43, 0.5);
  box-shadow: 0 18px 45px rgba(19, 44, 74, 0.1);
}

.smart-search-card-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.smart-search-rank-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #C89A2B;
  color: #153B52;
}

.smart-search-rank-badge-soft {
  background: #F7E9C5;
  color: #6B4A00;
}

/* =========================================================
   GLOBAL PAGE COLOR / CONTRAST CLEANUP
   Applies to all Borough page hero sections
   ========================================================= */

/* Main dark hero background used across interior pages */
.gov-hero,
.hero,
.hero-section,
.home-hero,
.homepage-hero,
.page-hero,
.borough-hero {
  background:
    linear-gradient(135deg, rgba(19, 59, 82, 0.98), rgba(63, 107, 69, 0.92)),
    #153B52 !important;
  color: #ffffff !important;
}

/* Keep hero content above overlays */
.gov-hero .gov-container,
.hero .gov-container,
.hero-section .gov-container,
.home-hero .gov-container,
.homepage-hero .gov-container,
.page-hero .gov-container,
.borough-hero .gov-container {
  position: relative;
  z-index: 2;
}

/* Main hero headings */
.gov-hero h1,
.gov-hero h2,
.hero h1,
.hero h2,
.hero-section h1,
.hero-section h2,
.home-hero h1,
.home-hero h2,
.homepage-hero h1,
.homepage-hero h2,
.page-hero h1,
.page-hero h2,
.borough-hero h1,
.borough-hero h2 {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.24);
}

/* Hero paragraph/subtitle text */
.gov-hero p,
.hero p,
.hero-section p,
.home-hero p,
.homepage-hero p,
.page-hero p,
.borough-hero p {
  color: rgba(255, 255, 255, 0.94) !important;
  opacity: 1 !important;
}

/* Eyebrow / small label pill */
.gov-eyebrow,
.gov-hero .gov-eyebrow,
.hero .gov-eyebrow,
.hero-section .gov-eyebrow,
.home-hero .gov-eyebrow,
.homepage-hero .gov-eyebrow,
.page-hero .gov-eyebrow,
.borough-hero .gov-eyebrow {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Any muted/secondary text accidentally used inside heroes */
.gov-hero .muted,
.gov-hero .text-muted,
.gov-hero .section-subtitle,
.gov-hero .hero-subtitle,
.gov-hero .hero-description,
.gov-hero .lead,
.hero .muted,
.hero .text-muted,
.hero .section-subtitle,
.hero .hero-subtitle,
.hero .hero-description,
.hero .lead,
.hero-section .muted,
.hero-section .text-muted,
.hero-section .section-subtitle,
.hero-section .hero-subtitle,
.hero-section .hero-description,
.hero-section .lead,
.home-hero .muted,
.home-hero .text-muted,
.home-hero .section-subtitle,
.home-hero .hero-subtitle,
.home-hero .hero-description,
.home-hero .lead,
.homepage-hero .muted,
.homepage-hero .text-muted,
.homepage-hero .section-subtitle,
.homepage-hero .hero-subtitle,
.homepage-hero .hero-description,
.homepage-hero .lead {
  color: rgba(255, 255, 255, 0.94) !important;
  opacity: 1 !important;
}

/* Links and strong text inside heroes */
.gov-hero a,
.hero a,
.hero-section a,
.home-hero a,
.homepage-hero a,
.page-hero a,
.borough-hero a {
  color: #ffffff !important;
}

.gov-hero a:hover,
.hero a:hover,
.hero-section a:hover,
.home-hero a:hover,
.homepage-hero a:hover,
.page-hero a:hover,
.borough-hero a:hover {
  color: #F7E9C5 !important;
}

.gov-hero strong,
.hero strong,
.hero-section strong,
.home-hero strong,
.homepage-hero strong,
.page-hero strong,
.borough-hero strong {
  color: #ffffff !important;
}

/* Remove faded overlays that may be darkening text too much */
.gov-hero::before,
.gov-hero::after,
.hero::before,
.hero::after,
.hero-section::before,
.hero-section::after,
.home-hero::before,
.home-hero::after,
.homepage-hero::before,
.homepage-hero::after,
.page-hero::before,
.page-hero::after,
.borough-hero::before,
.borough-hero::after {
  opacity: 0.18;
  pointer-events: none;
}

/* General section text cleanup so body content stays readable */
.gov-section,
.gov-section-light,
.page-section,
.content-section {
  color: #23303A;
}

.gov-section h1,
.gov-section h2,
.gov-section h3,
.gov-section h4,
.gov-section-light h1,
.gov-section-light h2,
.gov-section-light h3,
.gov-section-light h4,
.page-section h1,
.page-section h2,
.page-section h3,
.page-section h4,
.content-section h1,
.content-section h2,
.content-section h3,
.content-section h4 {
  color: #153B52;
}

.gov-section p,
.gov-section li,
.gov-section-light p,
.gov-section-light li,
.page-section p,
.page-section li,
.content-section p,
.content-section li {
  color: #374151;
}

/* =========================================================
   Dark Card Contrast Fix
   Fixes dark blue/green cards with unreadable dark text
   ========================================================= */

.community-feature-card,
.history-card,
.feature-card,
.dark-card,
.gov-card-dark,
.service-card-dark,
.project-card-dark,
.resource-card-dark {
  color: #ffffff !important;
}

.community-feature-card h1,
.community-feature-card h2,
.community-feature-card h3,
.community-feature-card h4,
.community-feature-card p,
.community-feature-card li,
.history-card h1,
.history-card h2,
.history-card h3,
.history-card h4,
.history-card p,
.history-card li,
.feature-card h1,
.feature-card h2,
.feature-card h3,
.feature-card h4,
.feature-card p,
.feature-card li,
.dark-card h1,
.dark-card h2,
.dark-card h3,
.dark-card h4,
.dark-card p,
.dark-card li,
.gov-card-dark h1,
.gov-card-dark h2,
.gov-card-dark h3,
.gov-card-dark h4,
.gov-card-dark p,
.gov-card-dark li,
.service-card-dark h1,
.service-card-dark h2,
.service-card-dark h3,
.service-card-dark h4,
.service-card-dark p,
.service-card-dark li,
.project-card-dark h1,
.project-card-dark h2,
.project-card-dark h3,
.project-card-dark h4,
.project-card-dark p,
.project-card-dark li,
.resource-card-dark h1,
.resource-card-dark h2,
.resource-card-dark h3,
.resource-card-dark h4,
.resource-card-dark p,
.resource-card-dark li {
  color: #ffffff !important;
  opacity: 1 !important;
}

.community-feature-card p,
.history-card p,
.feature-card p,
.dark-card p,
.gov-card-dark p,
.service-card-dark p,
.project-card-dark p,
.resource-card-dark p {
  color: rgba(255, 255, 255, 0.9) !important;
}

.community-feature-card .gov-eyebrow,
.history-card .gov-eyebrow,
.feature-card .gov-eyebrow,
.dark-card .gov-eyebrow,
.gov-card-dark .gov-eyebrow,
.service-card-dark .gov-eyebrow,
.project-card-dark .gov-eyebrow,
.resource-card-dark .gov-eyebrow {
  background: rgba(200, 154, 43, 0.22) !important;
  color: #F7E9C5 !important;
  border: 1px solid rgba(247, 233, 197, 0.25) !important;
}

/* Covers cards that use a dark gradient but have different class names */
[class*="card"][style*="linear-gradient"],
[class*="feature"][style*="linear-gradient"] {
  color: #ffffff !important;
}

[class*="card"][style*="linear-gradient"] h1,
[class*="card"][style*="linear-gradient"] h2,
[class*="card"][style*="linear-gradient"] h3,
[class*="card"][style*="linear-gradient"] h4,
[class*="card"][style*="linear-gradient"] p,
[class*="feature"][style*="linear-gradient"] h1,
[class*="feature"][style*="linear-gradient"] h2,
[class*="feature"][style*="linear-gradient"] h3,
[class*="feature"][style*="linear-gradient"] h4,
[class*="feature"][style*="linear-gradient"] p {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* =========================================================
   Utilities Page - clickable utility provider cards
   ========================================================= */

.utilities-page-section .gov-section-heading p,
.utilities-page-section .gov-section-heading h2,
.utilities-page-section .gov-section-heading .gov-eyebrow {
  color: #073B5A !important;
}

.utility-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  margin-top: 2.5rem;
}

.utility-link-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 190px;
  padding: 1.8rem;
  border-radius: 1.2rem;
  background: #ffffff;
  border: 1px solid rgba(7, 59, 90, 0.12);
  box-shadow: 0 16px 35px rgba(7, 59, 90, 0.08);
  color: #19384a !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.utility-link-card:hover,
.utility-link-card:focus {
  transform: translateY(-3px);
  border-color: rgba(7, 59, 90, 0.35);
  box-shadow: 0 22px 45px rgba(7, 59, 90, 0.14);
  color: #073B5A !important;
  text-decoration: none !important;
}

.utility-link-card:focus-visible {
  outline: 3px solid #F4C542;
  outline-offset: 4px;
}

.utility-link-card-large {
  min-height: 240px;
}

.utility-card-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #EDF4ED;
  color: #073B5A !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.utility-link-card h3 {
  margin: 0 0 0.75rem;
  color: #073B5A !important;
  font-size: 1.35rem;
  line-height: 1.25;
}

.utility-link-card p {
  margin: 0;
  color: #2F4F5F !important;
  font-size: 1rem;
  line-height: 1.65;
}

.utility-card-action {
  margin-top: auto;
  padding-top: 1.25rem;
  color: #0A5C8A !important;
  font-weight: 800;
}

@media (max-width: 1000px) {
  .utility-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .utility-card-grid {
    grid-template-columns: 1fr;
  }

  .utility-link-card,
  .utility-link-card-large {
    min-height: auto;
  }
}

/* =========================================================
   Utilities Trash/Recycling Calendar Section
   ========================================================= */

.utility-calendar-card {
  background: #ffffff;
  border: 1px solid rgba(7, 59, 90, 0.12);
  border-radius: 1.25rem;
  box-shadow: 0 18px 45px rgba(7, 59, 90, 0.08);
  padding: 2rem;
  margin-top: 2rem;
}

.utility-calendar-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  border-bottom: 1px solid rgba(7, 59, 90, 0.12);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.utility-calendar-header h3 {
  margin: 0 0 0.5rem;
  color: #073B5A;
  font-size: 1.5rem;
}

.utility-calendar-header p {
  margin: 0;
  color: #2F4F5F;
  line-height: 1.6;
}

.utility-calendar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  background: #073B5A;
  color: #ffffff !important;
  font-weight: 800;
  text-decoration: none !important;
}

.utility-calendar-button:hover,
.utility-calendar-button:focus {
  background: #0A5C8A;
  color: #ffffff !important;
}

.utility-schedule-list {
  display: grid;
  gap: 1rem;
}

.utility-schedule-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(7, 59, 90, 0.1);
  background: #F7FAFC;
}

.utility-schedule-row h4 {
  margin: 0 0 0.35rem;
  color: #073B5A;
  font-size: 1.15rem;
}

.utility-schedule-row p {
  margin: 0;
  color: #2F4F5F;
  line-height: 1.55;
}

.utility-schedule-date {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.utility-schedule-date strong {
  color: #073B5A;
  font-size: 1.2rem;
}

.utility-schedule-date span {
  color: #5B6B73;
  font-size: 0.9rem;
  font-weight: 700;
}

.utility-schedule-row.recycling {
  border-left: 6px solid #9A5B0A;
}

.utility-schedule-row.trash {
  border-left: 6px solid #7A1717;
}

.utility-calendar-note {
  margin: 1.5rem 0 0;
  color: #4A5D66;
  line-height: 1.6;
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .utility-calendar-header {
    flex-direction: column;
  }

  .utility-schedule-row {
    grid-template-columns: 1fr;
  }

  .utility-calendar-button {
    width: 100%;
  }
}

/* =========================================================
   Document Center Search / Filters
   ========================================================= */

.documents-search-card {
  scroll-margin-top: 7rem;
}

.document-filter-button {
  border: 1px solid rgba(7, 59, 90, 0.22);
  background: #ffffff;
  color: #073b5a;
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.document-filter-button:hover,
.document-filter-button:focus {
  background: #edf4ed;
  color: #073b5a;
}

.document-filter-button:focus-visible {
  outline: 3px solid #f4c542;
  outline-offset: 3px;
}

.document-filter-button.active {
  background: #073b5a;
  color: #ffffff;
  border-color: #073b5a;
}

.document-group-section {
  scroll-margin-top: 7rem;
}

.document-group-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.document-toggle-button {
  border: 1px solid rgba(7, 59, 90, 0.22);
  background: #ffffff;
  color: #073b5a;
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.document-toggle-button:hover,
.document-toggle-button:focus {
  background: #edf4ed;
}

.document-toggle-button:focus-visible {
  outline: 3px solid #f4c542;
  outline-offset: 3px;
}

.document-row[hidden],
.document-group-section[hidden],
.documents-no-results[hidden],
#documents-global-no-results[hidden],
.documents-list[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  .document-group-header {
    flex-direction: column;
  }

  .document-toggle-button {
    width: 100%;
  }

  .documents-filter-actions {
    flex-direction: column;
  }

  .document-filter-button {
    width: 100%;
  }
}

/* =========================================================
   Document Center Stable Collapsible Sections
   ========================================================= */

.documents-details {
  width: 100%;
}

@media (max-width: 700px) {
  .documents-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .documents-summary-action {
    width: 100%;
  }
}

/* =========================================================
   Document Center Search, Filters, and Meeting Sorting
   ========================================================= */

.documents-search-card {
  scroll-margin-top: 7rem;
}

.documents-filter-panel {
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: 1rem;
  background: #f7fafc;
  border: 1px solid rgba(7, 59, 90, 0.12);
}

.documents-filter-panel label {
  display: block;
  margin-bottom: 0.5rem;
  color: #073b5a;
  font-weight: 800;
}

.documents-filter-panel input[type="search"] {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(7, 59, 90, 0.25);
  color: #19384a;
  background: #ffffff;
  font-size: 1rem;
}

.documents-filter-panel input[type="search"]:focus {
  outline: 3px solid #f4c542;
  outline-offset: 2px;
  border-color: #073b5a;
}

.documents-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.document-filter-button,
.document-meeting-button {
  border: 1px solid rgba(7, 59, 90, 0.22);
  background: #ffffff;
  color: #073b5a;
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.document-filter-button:hover,
.document-filter-button:focus,
.document-meeting-button:hover,
.document-meeting-button:focus {
  background: #edf4ed;
  color: #073b5a;
}

.document-filter-button:focus-visible,
.document-meeting-button:focus-visible {
  outline: 3px solid #f4c542;
  outline-offset: 3px;
}

.document-filter-button.active,
.document-meeting-button.active {
  background: #073b5a;
  color: #ffffff;
  border-color: #073b5a;
}

.documents-meeting-filter-panel {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(7, 59, 90, 0.12);
}

.documents-meeting-filter-panel p {
  margin: 0;
  color: #073b5a;
  font-weight: 800;
}

.documents-filter-help {
  margin: 1rem 0 0;
  color: #4a5d66;
  line-height: 1.5;
}

.documents-details {
  width: 100%;
}

.documents-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: #073B5A;
  color: #ffffff;
}

.documents-summary::-webkit-details-marker {
  display: none;
}

.documents-summary strong {
  display: block;
  color: #ffffff;
  font-size: 1.35rem;
}

.documents-summary small {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  margin-top: 0.25rem;
  font-weight: 700;
}

.documents-summary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: #ffffff;
  color: #073B5A;
  font-weight: 800;
  font-size: 0.9rem;
}

.documents-details[open] .documents-summary {
  margin-bottom: 1.25rem;
}

.documents-details .documents-list {
  margin-top: 1rem;
}

.documents-no-results {
  margin: 1rem 0 0;
  color: #4a5d66;
  font-weight: 700;
}

.document-row[hidden],
.document-group-section[hidden],
.documents-no-results[hidden],
#documents-global-no-results[hidden] {
  display: none !important;
}

.document-row-action a {
  text-align: center;
}

@media (max-width: 700px) {
  .documents-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .documents-summary-action {
    width: 100%;
  }

  .documents-filter-actions {
    flex-direction: column;
  }

  .document-filter-button,
  .document-meeting-button {
    width: 100%;
  }
}

/* =========================================================
   Document Center Meeting Record Cards
   ========================================================= */

.meeting-records-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.meeting-record-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 0.65rem;
  min-height: 170px;
  padding: 1.35rem;
  border-radius: 1rem;
  border: 1px solid rgba(7, 59, 90, 0.15);
  background: #ffffff;
  color: #073b5a;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(7, 59, 90, 0.08);
}

.meeting-record-card span {
  width: fit-content;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #edf4ed;
  color: #073b5a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.meeting-record-card strong {
  color: #073b5a;
  font-size: 1.18rem;
  line-height: 1.25;
}

.meeting-record-card small {
  color: #2f4f5f;
  line-height: 1.45;
  font-size: 0.95rem;
}

.meeting-record-card:hover,
.meeting-record-card:focus {
  transform: translateY(-2px);
  border-color: rgba(7, 59, 90, 0.35);
  box-shadow: 0 20px 42px rgba(7, 59, 90, 0.14);
}

.meeting-record-card:focus-visible {
  outline: 3px solid #f4c542;
  outline-offset: 4px;
}

.meeting-record-card.active {
  background: #073b5a;
  color: #ffffff;
}

.meeting-record-card.active span {
  background: #ffffff;
  color: #073b5a;
}

.meeting-record-card.active strong,
.meeting-record-card.active small {
  color: #ffffff;
}

.document-meeting-body-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-left: 0.5rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #edf4ed;
  color: #073b5a;
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .meeting-records-card-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Final Contrast Fixes - Community Section + Footer
   ========================================================= */

/* Community information dark card */
.community-feature-card,
.community-info-card,
.community-card,
.stay-connected-card {
  color: #ffffff !important;
}

.community-feature-card *,
.community-info-card *,
.community-card *,
.stay-connected-card * {
  color: #ffffff !important;
}

.community-feature-card p,
.community-info-card p,
.community-card p,
.stay-connected-card p {
  color: rgba(255, 255, 255, 0.92) !important;
}

.community-feature-card .gov-badge,
.community-info-card .gov-badge,
.community-card .gov-badge,
.stay-connected-card .gov-badge {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

/* Community buttons */
.community-feature-card a,
.community-info-card a,
.community-card a,
.stay-connected-card a {
  color: #ffffff !important;
}

.community-feature-card .gov-btn,
.community-info-card .gov-btn,
.community-card .gov-btn,
.stay-connected-card .gov-btn {
  color: #073B5A !important;
}

/* Sidebar dark history box */
.community-sidebar-card,
.history-note-card,
.history-card-dark,
.notice-dark-card {
  color: #ffffff !important;
}

.community-sidebar-card *,
.history-note-card *,
.history-card-dark *,
.notice-dark-card * {
  color: #ffffff !important;
}

.community-sidebar-card p,
.history-note-card p,
.history-card-dark p,
.notice-dark-card p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Footer contrast */
.site-footer,
.footer,
footer {
  color: #ffffff !important;
}

.site-footer *,
.footer *,
footer * {
  color: #ffffff !important;
}

.site-footer p,
.footer p,
footer p,
.site-footer li,
.footer li,
footer li,
.site-footer span,
.footer span,
footer span {
  color: rgba(255, 255, 255, 0.88) !important;
}

.site-footer h2,
.site-footer h3,
.site-footer h4,
.footer h2,
.footer h3,
.footer h4,
footer h2,
footer h3,
footer h4 {
  color: #ffffff !important;
}

.site-footer a,
.footer a,
footer a {
  color: #ffffff !important;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus,
.footer a:hover,
.footer a:focus,
footer a:hover,
footer a:focus {
  color: #F4C542 !important;
  text-decoration: underline;
}

/* Footer gold headings */
.site-footer .footer-heading,
.footer .footer-heading,
footer .footer-heading,
.site-footer strong,
.footer strong,
footer strong {
  color: #F4C542 !important;
}

/* Make the footer link column easier to read */
.site-footer .quick-links a,
.footer .quick-links a,
footer .quick-links a,
.site-footer nav a,
.footer nav a,
footer nav a {
  display: inline-block;
  color: #ffffff !important;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

/* Fix any dark text accidentally inherited inside dark panels */
.gov-section-dark *,
.dark-section *,
.dark-card *,
.blue-card *,
.navy-card * {
  color: #ffffff !important;
}

.gov-section-dark p,
.dark-section p,
.dark-card p,
.blue-card p,
.navy-card p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* =========================================================
   Hard Fix - Community Information & Notices Contrast
   ========================================================= */

.community-page-card,
.community-feature-panel,
.community-feature-card,
.community-info-panel,
.community-info-card,
.community-notice-panel,
.community-notice-card,
.community-cta-card,
.community-hero-card,
.community-highlight-card,
.community-main-card,
.community-sidebar-note,
.community-history-note,
.community-dark-card,
.community-resources-card,
.community-connected-card,
[class*="community"] .dark-card,
[class*="community"] .navy-card,
[class*="community"] .blue-card {
  color: #ffffff !important;
}

.community-page-card h1,
.community-page-card h2,
.community-page-card h3,
.community-page-card p,
.community-page-card span,
.community-feature-panel h1,
.community-feature-panel h2,
.community-feature-panel h3,
.community-feature-panel p,
.community-feature-panel span,
.community-feature-card h1,
.community-feature-card h2,
.community-feature-card h3,
.community-feature-card p,
.community-feature-card span,
.community-info-panel h1,
.community-info-panel h2,
.community-info-panel h3,
.community-info-panel p,
.community-info-panel span,
.community-info-card h1,
.community-info-card h2,
.community-info-card h3,
.community-info-card p,
.community-info-card span,
.community-notice-panel h1,
.community-notice-panel h2,
.community-notice-panel h3,
.community-notice-panel p,
.community-notice-panel span,
.community-notice-card h1,
.community-notice-card h2,
.community-notice-card h3,
.community-notice-card p,
.community-notice-card span,
.community-cta-card h1,
.community-cta-card h2,
.community-cta-card h3,
.community-cta-card p,
.community-cta-card span,
.community-hero-card h1,
.community-hero-card h2,
.community-hero-card h3,
.community-hero-card p,
.community-hero-card span,
.community-highlight-card h1,
.community-highlight-card h2,
.community-highlight-card h3,
.community-highlight-card p,
.community-highlight-card span,
.community-main-card h1,
.community-main-card h2,
.community-main-card h3,
.community-main-card p,
.community-main-card span,
.community-sidebar-note h1,
.community-sidebar-note h2,
.community-sidebar-note h3,
.community-sidebar-note p,
.community-sidebar-note span,
.community-history-note h1,
.community-history-note h2,
.community-history-note h3,
.community-history-note p,
.community-history-note span,
.community-dark-card h1,
.community-dark-card h2,
.community-dark-card h3,
.community-dark-card p,
.community-dark-card span,
.community-connected-card h1,
.community-connected-card h2,
.community-connected-card h3,
.community-connected-card p,
.community-connected-card span {
  color: #ffffff !important;
}

.community-page-card p,
.community-feature-panel p,
.community-feature-card p,
.community-info-panel p,
.community-info-card p,
.community-notice-panel p,
.community-notice-card p,
.community-cta-card p,
.community-hero-card p,
.community-highlight-card p,
.community-main-card p,
.community-sidebar-note p,
.community-history-note p,
.community-dark-card p,
.community-connected-card p {
  color: rgba(255, 255, 255, 0.92) !important;
}

/* Stay Connected badge */
.community-page-card .gov-badge,
.community-feature-panel .gov-badge,
.community-feature-card .gov-badge,
.community-info-panel .gov-badge,
.community-info-card .gov-badge,
.community-notice-panel .gov-badge,
.community-notice-card .gov-badge,
.community-cta-card .gov-badge,
.community-hero-card .gov-badge,
.community-highlight-card .gov-badge,
.community-main-card .gov-badge,
.community-dark-card .gov-badge,
.community-connected-card .gov-badge {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

/* Buttons inside the dark community card */
.community-page-card a,
.community-feature-panel a,
.community-feature-card a,
.community-info-panel a,
.community-info-card a,
.community-notice-panel a,
.community-notice-card a,
.community-cta-card a,
.community-hero-card a,
.community-highlight-card a,
.community-main-card a,
.community-dark-card a,
.community-connected-card a {
  color: #ffffff !important;
}

.community-page-card a:first-of-type,
.community-feature-panel a:first-of-type,
.community-feature-card a:first-of-type,
.community-info-panel a:first-of-type,
.community-info-card a:first-of-type,
.community-notice-panel a:first-of-type,
.community-notice-card a:first-of-type,
.community-cta-card a:first-of-type,
.community-hero-card a:first-of-type,
.community-highlight-card a:first-of-type,
.community-main-card a:first-of-type,
.community-dark-card a:first-of-type,
.community-connected-card a:first-of-type {
  color: #073B5A !important;
}

/* Right-side dark history box */
.community-sidebar .documents-notice-card,
.community-sidebar .safety-info-panel-dark,
.community-sidebar-card-dark,
.community-history-card,
.history-card,
.history-note,
.history-note-card {
  background: #073B5A !important;
  color: #ffffff !important;
}

.community-sidebar .documents-notice-card *,
.community-sidebar .safety-info-panel-dark *,
.community-sidebar-card-dark *,
.community-history-card *,
.history-card *,
.history-note *,
.history-note-card * {
  color: #ffffff !important;
}

.community-sidebar .documents-notice-card p,
.community-sidebar .safety-info-panel-dark p,
.community-sidebar-card-dark p,
.community-history-card p,
.history-card p,
.history-note p,
.history-note-card p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* =========================================================
   Exact Fix - Community Page Highlight Panel Contrast
   ========================================================= */

.community-highlight-panel {
  background: linear-gradient(135deg, #073B5A 0%, #2F6B3F 100%) !important;
  color: #ffffff !important;
}

.community-highlight-panel .gov-badge {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

.community-highlight-panel h1,
.community-highlight-panel h2,
.community-highlight-panel h3,
.community-highlight-panel h4,
.community-highlight-panel p,
.community-highlight-panel span {
  color: #ffffff !important;
}

.community-highlight-panel p {
  color: rgba(255, 255, 255, 0.92) !important;
}

.community-highlight-actions a {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.community-highlight-actions a:first-child {
  background: #F4C542 !important;
  color: #073B5A !important;
  border-color: #F4C542 !important;
}

.community-highlight-actions a:hover,
.community-highlight-actions a:focus {
  background: #ffffff !important;
  color: #073B5A !important;
  border-color: #ffffff !important;
}

/* Right side Historic Mercersburg box */
.community-history-box {
  background: #073B5A !important;
  color: #ffffff !important;
}

.community-history-box h1,
.community-history-box h2,
.community-history-box h3,
.community-history-box h4,
.community-history-box p,
.community-history-box span {
  color: #ffffff !important;
}

.community-history-box p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* =========================================================
   Homepage Contrast / Shading Cleanup
   Fixes light unreadable text on shaded homepage sections
   ========================================================= */

/* Dark homepage panels should always use readable white text */
.home-hero,
.gov-hero,
.home-alert,
.home-video-section,
.home-manager-section,
.home-featured-section,
.home-projects-section,
.home-document-highlight,
.home-hiring-section,
.borough-manager-section,
.manager-message-section,
.featured-projects-section,
.video-feature-section {
  color: #ffffff;
}

/* Headings and text inside dark/shaded homepage panels */
.home-hero h1,
.home-hero h2,
.home-hero h3,
.home-hero p,
.gov-hero h1,
.gov-hero h2,
.gov-hero h3,
.gov-hero p,
.home-alert h1,
.home-alert h2,
.home-alert h3,
.home-alert p,
.home-video-section h1,
.home-video-section h2,
.home-video-section h3,
.home-video-section h4,
.home-video-section p,
.home-manager-section h1,
.home-manager-section h2,
.home-manager-section h3,
.home-manager-section h4,
.home-manager-section p,
.home-featured-section h1,
.home-featured-section h2,
.home-featured-section h3,
.home-featured-section h4,
.home-featured-section p,
.home-projects-section h1,
.home-projects-section h2,
.home-projects-section h3,
.home-projects-section h4,
.home-projects-section p,
.home-document-highlight h1,
.home-document-highlight h2,
.home-document-highlight h3,
.home-document-highlight h4,
.home-document-highlight p,
.home-hiring-section h1,
.home-hiring-section h2,
.home-hiring-section h3,
.home-hiring-section h4,
.home-hiring-section p,
.borough-manager-section h1,
.borough-manager-section h2,
.borough-manager-section h3,
.borough-manager-section h4,
.borough-manager-section p,
.manager-message-section h1,
.manager-message-section h2,
.manager-message-section h3,
.manager-message-section h4,
.manager-message-section p,
.featured-projects-section h1,
.featured-projects-section h2,
.featured-projects-section h3,
.featured-projects-section h4,
.featured-projects-section p,
.video-feature-section h1,
.video-feature-section h2,
.video-feature-section h3,
.video-feature-section h4,
.video-feature-section p {
  color: #ffffff !important;
}

/* Softer paragraph text on dark backgrounds */
.home-hero p,
.gov-hero p,
.home-video-section p,
.home-manager-section p,
.home-featured-section p,
.home-projects-section p,
.home-document-highlight p,
.home-hiring-section p,
.borough-manager-section p,
.manager-message-section p,
.featured-projects-section p,
.video-feature-section p {
  color: rgba(255, 255, 255, 0.92) !important;
}

/* Eyebrows / labels on dark sections */
.home-hero .gov-eyebrow,
.gov-hero .gov-eyebrow,
.home-video-section .gov-eyebrow,
.home-manager-section .gov-eyebrow,
.home-featured-section .gov-eyebrow,
.home-projects-section .gov-eyebrow,
.home-document-highlight .gov-eyebrow,
.home-hiring-section .gov-eyebrow,
.borough-manager-section .gov-eyebrow,
.manager-message-section .gov-eyebrow,
.featured-projects-section .gov-eyebrow,
.video-feature-section .gov-eyebrow {
  color: #F4C542 !important;
}

/* Badges on dark shaded sections */
.home-hero .gov-badge,
.gov-hero .gov-badge,
.home-video-section .gov-badge,
.home-manager-section .gov-badge,
.home-featured-section .gov-badge,
.home-projects-section .gov-badge,
.home-document-highlight .gov-badge,
.home-hiring-section .gov-badge,
.borough-manager-section .gov-badge,
.manager-message-section .gov-badge,
.featured-projects-section .gov-badge,
.video-feature-section .gov-badge {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

/* Links/buttons on dark shaded sections */
.home-hero a,
.gov-hero a,
.home-video-section a,
.home-manager-section a,
.home-featured-section a,
.home-projects-section a,
.home-document-highlight a,
.home-hiring-section a,
.borough-manager-section a,
.manager-message-section a,
.featured-projects-section a,
.video-feature-section a {
  color: #ffffff;
}

/* Keep yellow/primary buttons readable */
.home-hero .gov-button-primary,
.gov-hero .gov-button-primary,
.home-video-section .gov-button-primary,
.home-manager-section .gov-button-primary,
.home-featured-section .gov-button-primary,
.home-projects-section .gov-button-primary,
.home-document-highlight .gov-button-primary,
.home-hiring-section .gov-button-primary,
.borough-manager-section .gov-button-primary,
.manager-message-section .gov-button-primary,
.featured-projects-section .gov-button-primary,
.video-feature-section .gov-button-primary {
  background: #F4C542 !important;
  color: #073B5A !important;
  border-color: #F4C542 !important;
}

/* Secondary buttons on dark sections */
.home-hero .gov-button-secondary,
.gov-hero .gov-button-secondary,
.home-video-section .gov-button-secondary,
.home-manager-section .gov-button-secondary,
.home-featured-section .gov-button-secondary,
.home-projects-section .gov-button-secondary,
.home-document-highlight .gov-button-secondary,
.home-hiring-section .gov-button-secondary,
.borough-manager-section .gov-button-secondary,
.manager-message-section .gov-button-secondary,
.featured-projects-section .gov-button-secondary,
.video-feature-section .gov-button-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
}

.home-hero .gov-button-secondary:hover,
.gov-hero .gov-button-secondary:hover,
.home-video-section .gov-button-secondary:hover,
.home-manager-section .gov-button-secondary:hover,
.home-featured-section .gov-button-secondary:hover,
.home-projects-section .gov-button-secondary:hover,
.home-document-highlight .gov-button-secondary:hover,
.home-hiring-section .gov-button-secondary:hover,
.borough-manager-section .gov-button-secondary:hover,
.manager-message-section .gov-button-secondary:hover,
.featured-projects-section .gov-button-secondary:hover,
.video-feature-section .gov-button-secondary:hover {
  background: #ffffff !important;
  color: #073B5A !important;
  border-color: #ffffff !important;
}

/* Cards should stay light with dark readable text */
.gov-card,
.service-card,
.quick-action-card,
.news-card,
.project-card,
.document-card,
.manager-update-card,
.meeting-record-card,
.home-card,
.utility-card {
  color: #243746 !important;
}

.gov-card h1,
.gov-card h2,
.gov-card h3,
.gov-card h4,
.gov-card p,
.service-card h1,
.service-card h2,
.service-card h3,
.service-card h4,
.service-card p,
.quick-action-card h1,
.quick-action-card h2,
.quick-action-card h3,
.quick-action-card h4,
.quick-action-card p,
.news-card h1,
.news-card h2,
.news-card h3,
.news-card h4,
.news-card p,
.project-card h1,
.project-card h2,
.project-card h3,
.project-card h4,
.project-card p,
.document-card h1,
.document-card h2,
.document-card h3,
.document-card h4,
.document-card p,
.manager-update-card h1,
.manager-update-card h2,
.manager-update-card h3,
.manager-update-card h4,
.manager-update-card p,
.meeting-record-card h1,
.meeting-record-card h2,
.meeting-record-card h3,
.meeting-record-card h4,
.meeting-record-card p,
.home-card h1,
.home-card h2,
.home-card h3,
.home-card h4,
.home-card p,
.utility-card h1,
.utility-card h2,
.utility-card h3,
.utility-card h4,
.utility-card p {
  color: #243746 !important;
}

/* Muted text inside light cards */
.gov-card .muted,
.service-card .muted,
.quick-action-card .muted,
.news-card .muted,
.project-card .muted,
.document-card .muted,
.manager-update-card .muted,
.meeting-record-card .muted,
.home-card .muted,
.utility-card .muted {
  color: #5F6F7A !important;
}

/* Fix sections where pale text appears on pale backgrounds */
.gov-section-light h1,
.gov-section-light h2,
.gov-section-light h3,
.gov-section-light h4,
.gov-section-light p,
.home-clean-section h1,
.home-clean-section h2,
.home-clean-section h3,
.home-clean-section h4,
.home-clean-section p {
  color: #243746;
}

.gov-section-light .gov-eyebrow,
.home-clean-section .gov-eyebrow {
  color: #2F6B3F !important;
}

/* Prevent transparent overlays from making text too faint */
.home-hero::before,
.gov-hero::before,
.home-video-section::before,
.home-manager-section::before,
.home-featured-section::before,
.home-projects-section::before,
.borough-manager-section::before,
.manager-message-section::before,
.featured-projects-section::before,
.video-feature-section::before {
  opacity: 0.72;
}

/* Mobile readability */
@media (max-width: 768px) {
  .home-hero h1,
  .gov-hero h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  }

  .home-hero p,
  .gov-hero p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
  }

  .gov-card,
  .service-card,
  .quick-action-card,
  .news-card,
  .project-card,
  .document-card,
  .manager-update-card,
  .meeting-record-card,
  .home-card,
  .utility-card {
    background: #ffffff !important;
  }
}
/* =========================================================
   Exact Fix - Homepage Contact / Visit Us Contrast
   ========================================================= */

.home-contact-section,
.visit-section,
.visit-us-section,
.home-visit-section,
.contact-highlight-section,
.home-location-section {
  color: #ffffff !important;
}

.home-contact-section h1,
.home-contact-section h2,
.home-contact-section h3,
.home-contact-section h4,
.home-contact-section h5,
.home-contact-section h6,
.home-contact-section p,
.home-contact-section span,
.home-contact-section div,
.home-contact-section a,
.visit-section h1,
.visit-section h2,
.visit-section h3,
.visit-section h4,
.visit-section h5,
.visit-section h6,
.visit-section p,
.visit-section span,
.visit-section div,
.visit-section a,
.visit-us-section h1,
.visit-us-section h2,
.visit-us-section h3,
.visit-us-section h4,
.visit-us-section h5,
.visit-us-section h6,
.visit-us-section p,
.visit-us-section span,
.visit-us-section div,
.visit-us-section a,
.home-visit-section h1,
.home-visit-section h2,
.home-visit-section h3,
.home-visit-section h4,
.home-visit-section h5,
.home-visit-section h6,
.home-visit-section p,
.home-visit-section span,
.home-visit-section div,
.home-visit-section a,
.contact-highlight-section h1,
.contact-highlight-section h2,
.contact-highlight-section h3,
.contact-highlight-section h4,
.contact-highlight-section h5,
.contact-highlight-section h6,
.contact-highlight-section p,
.contact-highlight-section span,
.contact-highlight-section div,
.contact-highlight-section a,
.home-location-section h1,
.home-location-section h2,
.home-location-section h3,
.home-location-section h4,
.home-location-section h5,
.home-location-section h6,
.home-location-section p,
.home-location-section span,
.home-location-section div,
.home-location-section a {
  color: #ffffff !important;
}

/* Softer but still readable body text */
.home-contact-section p,
.visit-section p,
.visit-us-section p,
.home-visit-section p,
.contact-highlight-section p,
.home-location-section p {
  color: rgba(255, 255, 255, 0.92) !important;
}

/* Eyebrow label like VISIT US */
.home-contact-section .gov-eyebrow,
.visit-section .gov-eyebrow,
.visit-us-section .gov-eyebrow,
.home-visit-section .gov-eyebrow,
.contact-highlight-section .gov-eyebrow,
.home-location-section .gov-eyebrow {
  color: #F4C542 !important;
}

/* Links should be clearly visible */
.home-contact-section a,
.visit-section a,
.visit-us-section a,
.home-visit-section a,
.contact-highlight-section a,
.home-location-section a {
  color: #ffffff !important;
  text-decoration-color: rgba(255, 255, 255, 0.7) !important;
}

.home-contact-section a:hover,
.visit-section a:hover,
.visit-us-section a:hover,
.home-visit-section a:hover,
.contact-highlight-section a:hover,
.home-location-section a:hover {
  color: #F4C542 !important;
}

/* Extra fallback for the exact dark gradient contact block */
section[class*="visit"],
section[class*="Visit"],
section[class*="contact"],
section[class*="Contact"],
section[class*="location"],
section[class*="Location"] {
  color: #ffffff;
}

section[class*="visit"] p,
section[class*="visit"] span,
section[class*="visit"] a,
section[class*="Visit"] p,
section[class*="Visit"] span,
section[class*="Visit"] a,
section[class*="contact"] p,
section[class*="contact"] span,
section[class*="contact"] a,
section[class*="Contact"] p,
section[class*="Contact"] span,
section[class*="Contact"] a,
section[class*="location"] p,
section[class*="location"] span,
section[class*="location"] a,
section[class*="Location"] p,
section[class*="Location"] span,
section[class*="Location"] a {
  color: rgba(255, 255, 255, 0.92) !important;
}

section[class*="visit"] h1,
section[class*="visit"] h2,
section[class*="visit"] h3,
section[class*="visit"] h4,
section[class*="Visit"] h1,
section[class*="Visit"] h2,
section[class*="Visit"] h3,
section[class*="Visit"] h4,
section[class*="contact"] h1,
section[class*="contact"] h2,
section[class*="contact"] h3,
section[class*="contact"] h4,
section[class*="Contact"] h1,
section[class*="Contact"] h2,
section[class*="Contact"] h3,
section[class*="Contact"] h4,
section[class*="location"] h1,
section[class*="location"] h2,
section[class*="location"] h3,
section[class*="location"] h4,
section[class*="Location"] h1,
section[class*="Location"] h2,
section[class*="Location"] h3,
section[class*="Location"] h4 {
  color: #ffffff !important;
}

/* =========================================================
   Exact Fix - Historic Downtown Homepage Card Contrast
   ========================================================= */

.homepage-downtown-card,
.downtown-card,
.historic-downtown-card,
.community-feature-card,
.home-feature-card,
.feature-highlight-card {
  color: #ffffff !important;
}

.homepage-downtown-card h1,
.homepage-downtown-card h2,
.homepage-downtown-card h3,
.homepage-downtown-card h4,
.homepage-downtown-card p,
.homepage-downtown-card span,
.homepage-downtown-card a,
.downtown-card h1,
.downtown-card h2,
.downtown-card h3,
.downtown-card h4,
.downtown-card p,
.downtown-card span,
.downtown-card a,
.historic-downtown-card h1,
.historic-downtown-card h2,
.historic-downtown-card h3,
.historic-downtown-card h4,
.historic-downtown-card p,
.historic-downtown-card span,
.historic-downtown-card a,
.community-feature-card h1,
.community-feature-card h2,
.community-feature-card h3,
.community-feature-card h4,
.community-feature-card p,
.community-feature-card span,
.community-feature-card a,
.home-feature-card h1,
.home-feature-card h2,
.home-feature-card h3,
.home-feature-card h4,
.home-feature-card p,
.home-feature-card span,
.home-feature-card a,
.feature-highlight-card h1,
.feature-highlight-card h2,
.feature-highlight-card h3,
.feature-highlight-card h4,
.feature-highlight-card p,
.feature-highlight-card span,
.feature-highlight-card a {
  color: #ffffff !important;
}

.homepage-downtown-card p,
.downtown-card p,
.historic-downtown-card p,
.community-feature-card p,
.home-feature-card p,
.feature-highlight-card p {
  color: rgba(255, 255, 255, 0.92) !important;
}

.homepage-downtown-card a,
.downtown-card a,
.historic-downtown-card a,
.community-feature-card a,
.home-feature-card a,
.feature-highlight-card a {
  color: #F4C542 !important;
  font-weight: 800;
}

.homepage-downtown-card a:hover,
.downtown-card a:hover,
.historic-downtown-card a:hover,
.community-feature-card a:hover,
.home-feature-card a:hover,
.feature-highlight-card a:hover {
  color: #ffffff !important;
}

/* Fallback for the exact Historic Downtown text block */
section p,
article p,
div p {
  opacity: 1;
}

/* Strong fallback for dark blue/green feature panels */
[class*="downtown"] p,
[class*="historic"] p,
[class*="feature"] p,
[class*="highlight"] p {
  color: rgba(255, 255, 255, 0.92) !important;
}

[class*="downtown"] h1,
[class*="downtown"] h2,
[class*="downtown"] h3,
[class*="historic"] h1,
[class*="historic"] h2,
[class*="historic"] h3,
[class*="feature"] h1,
[class*="feature"] h2,
[class*="feature"] h3,
[class*="highlight"] h1,
[class*="highlight"] h2,
[class*="highlight"] h3 {
  color: #ffffff !important;
}

[class*="downtown"] a,
[class*="historic"] a,
[class*="feature"] a,
[class*="highlight"] a {
  color: #F4C542 !important;
}

/* =========================================================
   FINAL HOMEPAGE CONTRAST CLEANUP
   Add this at the very bottom of home_page.css
   ========================================================= */

/* Global dark homepage sections */
.home-hero,
.home-hero-panel,
.home-visit-section,
.home-section-navy,
.home-rave-section,
.home-feature-section,
.home-video-section,
.home-manager-sidebar,
.home-spotlight-card,
.home-alert-bar {
  color: #ffffff !important;
}

/* Dark section headings */
.home-hero h1,
.home-hero h2,
.home-hero h3,
.home-hero h4,
.home-hero-panel h1,
.home-hero-panel h2,
.home-hero-panel h3,
.home-hero-panel h4,
.home-visit-section h1,
.home-visit-section h2,
.home-visit-section h3,
.home-visit-section h4,
.home-section-navy h1,
.home-section-navy h2,
.home-section-navy h3,
.home-section-navy h4,
.home-rave-section h1,
.home-rave-section h2,
.home-rave-section h3,
.home-rave-section h4,
.home-feature-section h1,
.home-feature-section h2,
.home-feature-section h3,
.home-feature-section h4,
.home-video-section h1,
.home-video-section h2,
.home-video-section h3,
.home-video-section h4,
.home-manager-sidebar h1,
.home-manager-sidebar h2,
.home-manager-sidebar h3,
.home-manager-sidebar h4,
.home-spotlight-card h1,
.home-spotlight-card h2,
.home-spotlight-card h3,
.home-spotlight-card h4 {
  color: #ffffff !important;
}

/* Dark section body text */
.home-hero p,
.home-hero-panel p,
.home-visit-section p,
.home-section-navy p,
.home-rave-section p,
.home-feature-section p,
.home-video-section p,
.home-manager-sidebar p,
.home-spotlight-card p,
.home-spotlight-content p,
.home-visit-section span,
.home-visit-section div {
  color: rgba(255, 255, 255, 0.92) !important;
  opacity: 1 !important;
}

/* Visit/contact exact section */
.home-visit-section .home-kicker,
.home-visit-section .gov-eyebrow,
.home-visit-section .home-badge {
  color: #F4C542 !important;
}

.home-visit-section a {
  color: #ffffff !important;
}

.home-visit-section .home-btn-gold {
  background: #F4C542 !important;
  color: #073B5A !important;
}

.home-visit-section .home-btn-outline {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
}

.home-visit-section .home-btn-outline:hover {
  background: #ffffff !important;
  color: #073B5A !important;
}

/* Historic Downtown / spotlight style cards */
.home-spotlight-content h1,
.home-spotlight-content h2,
.home-spotlight-content h3,
.home-spotlight-content h4,
.home-spotlight-content p,
.home-spotlight-content span {
  color: #ffffff !important;
  opacity: 1 !important;
}

.home-spotlight-content a,
.home-feature-section a,
.home-section-navy a {
  color: #F4C542 !important;
  font-weight: 900 !important;
}

.home-spotlight-content a:hover,
.home-feature-section a:hover,
.home-section-navy a:hover {
  color: #ffffff !important;
}

/* Fallback for any homepage dark blue/green card with text */
[class*="spotlight"] p,
[class*="downtown"] p,
[class*="historic"] p,
[class*="visit"] p,
[class*="contact"] p,
[class*="feature"] p {
  color: rgba(255, 255, 255, 0.92) !important;
  opacity: 1 !important;
}

[class*="spotlight"] h1,
[class*="spotlight"] h2,
[class*="spotlight"] h3,
[class*="downtown"] h1,
[class*="downtown"] h2,
[class*="downtown"] h3,
[class*="historic"] h1,
[class*="historic"] h2,
[class*="historic"] h3,
[class*="visit"] h1,
[class*="visit"] h2,
[class*="visit"] h3,
[class*="contact"] h1,
[class*="contact"] h2,
[class*="contact"] h3,
[class*="feature"] h1,
[class*="feature"] h2,
[class*="feature"] h3 {
  color: #ffffff !important;
}

/* Keep white cards readable with dark text */
.home-service-card,
.home-panel,
.home-manager-content,
.home-rave-card,
.home-resource-block,
.gov-card,
.documents-card,
.documents-side-card,
.meetings-card,
.meetings-side-card,
.rtk-card,
.rtk-side-card,
.department-main-card,
.department-sidebar,
.forms-clean-intro,
.forms-clean-section,
.contact-office-card,
.contact-topic-section,
.contact-map-panel,
.contact-sidebar {
  color: #243746 !important;
}

.home-service-card h1,
.home-service-card h2,
.home-service-card h3,
.home-service-card h4,
.home-panel h1,
.home-panel h2,
.home-panel h3,
.home-panel h4,
.home-manager-content h1,
.home-manager-content h2,
.home-manager-content h3,
.home-manager-content h4,
.home-rave-card h1,
.home-rave-card h2,
.home-rave-card h3,
.home-rave-card h4,
.home-resource-block h1,
.home-resource-block h2,
.home-resource-block h3,
.home-resource-block h4 {
  color: #073B5A !important;
}

.home-service-card p,
.home-panel p,
.home-manager-content p,
.home-rave-card p,
.home-resource-block p {
  color: #5F6F7A !important;
}

/* Section headers on light backgrounds */
.home-section-white .home-section-header h2,
.home-section-light .home-section-header h2,
.home-section-green .home-section-header h2 {
  color: #073B5A !important;
}

.home-section-white .home-section-header p,
.home-section-light .home-section-header p,
.home-section-green .home-section-header p {
  color: #5F6F7A !important;
}

/* Kicker labels */
.home-kicker {
  color: #2F6B3F !important;
}

.home-section-navy .home-kicker,
.home-visit-section .home-kicker,
.home-feature-section .home-kicker,
.home-video-section .home-kicker {
  color: #F4C542 !important;
}

/* Mobile contrast improvements */
@media (max-width: 768px) {
  .home-hero-content h1,
  .home-hero-content p,
  .home-visit-section h2,
  .home-visit-section p,
  .home-spotlight-content h3,
  .home-spotlight-content p {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  }

  .home-section {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  .home-visit-section {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }
}

/* ==========================================================
   FINAL HOMEPAGE VIDEO / CONTRAST / MOBILE CLEANUP
   Exact classes from home_page.html
========================================================== */

/* ------------------------------
   Homepage video section
------------------------------ */

.home-video-section {
  background: #ffffff !important;
}

.home-video-card {
  display: grid !important;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr) !important;
  gap: 36px !important;
  align-items: center !important;
  background: #ffffff !important;
  border-radius: 28px !important;
  padding: 46px !important;
  border: 1px solid rgba(21, 59, 82, 0.10) !important;
  box-shadow: 0 18px 46px rgba(21, 59, 82, 0.10) !important;
}

.home-video-content h2 {
  color: var(--borough-navy) !important;
  font-size: 42px !important;
  line-height: 1.12 !important;
  margin: 0 0 18px !important;
}

.home-video-content p {
  color: var(--text-muted) !important;
  font-size: 17px !important;
  line-height: 1.75 !important;
  margin: 0 0 24px !important;
}

.home-video-frame-wrap {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  background: linear-gradient(135deg, var(--borough-navy), var(--borough-green)) !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  box-shadow: 0 16px 36px rgba(21, 59, 82, 0.18) !important;
}

.home-video-frame {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
}

.home-video-placeholder {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-content: center !important;
  text-align: center !important;
  padding: 32px !important;
  color: #ffffff !important;
}

.home-video-placeholder span {
  color: #ffffff !important;
  font-size: 28px !important;
  font-weight: 900 !important;
}

.home-video-placeholder p {
  max-width: 420px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  margin: 12px auto 0 !important;
}

/* ------------------------------
   Exact homepage visit/contact section
------------------------------ */

.home-visit-section {
  padding: 78px 32px !important;
  background:
    linear-gradient(135deg, rgba(21, 59, 82, 0.98), rgba(63, 107, 69, 0.92)) !important;
  color: #ffffff !important;
}

.home-visit-grid {
  position: relative !important;
  z-index: 2 !important;
  display: grid !important;
  grid-template-columns: 1.15fr 0.85fr 1fr !important;
  gap: 30px !important;
  align-items: stretch !important;
}

.home-visit-card {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 22px !important;
  padding: 30px !important;
  backdrop-filter: none !important;
}

.home-visit-card h2,
.home-visit-card h3 {
  color: #ffffff !important;
  margin-top: 0 !important;
}

.home-visit-card h2 {
  font-size: 30px !important;
  line-height: 1.15 !important;
  margin-bottom: 18px !important;
}

.home-visit-card h3 {
  font-size: 22px !important;
  line-height: 1.2 !important;
  margin-bottom: 16px !important;
}

.home-visit-card p,
.home-visit-card span,
.home-visit-card div {
  color: rgba(255, 255, 255, 0.94) !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
  margin: 0 0 12px !important;
  opacity: 1 !important;
}

.home-visit-card a {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
}

.home-visit-card a:hover {
  color: var(--borough-gold) !important;
}

.home-visit-card .home-kicker {
  color: var(--borough-gold) !important;
  margin-bottom: 14px !important;
}

/* ------------------------------
   Exact community spotlight section
------------------------------ */

.home-section-green .home-section-header h2 {
  color: var(--borough-navy) !important;
}

.home-section-green .home-section-header p {
  color: #4d5e68 !important;
}

.home-spotlight-card {
  background: var(--borough-navy) !important;
}

.home-spotlight-content h3 {
  color: #ffffff !important;
}

.home-spotlight-content p {
  color: rgba(255, 255, 255, 0.94) !important;
  opacity: 1 !important;
}

.home-spotlight-content a {
  color: var(--borough-gold) !important;
  font-weight: 900 !important;
}

.home-spotlight-content a:hover {
  color: #ffffff !important;
}

/* ------------------------------
   Homepage news and info cards
------------------------------ */

.home-news-card {
  background: #ffffff !important;
  color: var(--text-dark) !important;
  border-radius: 22px !important;
  padding: 34px !important;
  border: 1px solid rgba(21, 59, 82, 0.10) !important;
  box-shadow: 0 14px 34px rgba(21, 59, 82, 0.08) !important;
}

.home-news-card h3 {
  color: var(--borough-navy) !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
  margin: 0 0 12px !important;
}

.home-news-card h3 a {
  color: var(--borough-navy) !important;
  text-decoration: none !important;
}

.home-news-card h3 a:hover {
  color: var(--borough-green) !important;
}

.home-news-card p {
  color: var(--text-muted) !important;
  line-height: 1.65 !important;
}

/* Homepage Boards / Departments / Contacts cards */
.home-info-card {
  background: #ffffff !important;
  color: var(--text-dark) !important;
  border-radius: 20px !important;
  padding: 26px 28px !important;
  border: 1px solid rgba(21, 59, 82, 0.10) !important;
  box-shadow: 0 14px 30px rgba(21, 59, 82, 0.07) !important;
  min-height: 155px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

.home-info-card h3 {
  color: var(--borough-navy) !important;
  font-size: 23px !important;
  line-height: 1.2 !important;
  margin: 0 0 14px !important;
}

.home-info-card h3 a {
  color: var(--borough-navy) !important;
  text-decoration: none !important;
}

.home-info-card h3 a:hover {
  color: var(--borough-green) !important;
}

.home-info-card p {
  color: var(--text-muted) !important;
  font-size: 15.5px !important;
  line-height: 1.55 !important;
  margin: 0 0 14px !important;
}

.home-info-card .home-meta {
  color: var(--text-muted) !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  margin: 4px 0 14px !important;
}

.home-info-card .home-text-link {
  color: var(--borough-green) !important;
  font-size: 15px !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  margin-top: auto !important;
}

.home-info-card .home-text-link:hover {
  color: var(--borough-navy) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* ==========================================================
   HERO VIDEO LAYOUT
   Places homepage video inside the hero area
========================================================== */

.home-hero-panel-with-video {
  min-height: 620px !important;
}

.home-hero-content-split {
  max-width: none !important;
  width: 100% !important;
  padding: 96px 72px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.8fr) !important;
  gap: 54px !important;
  align-items: center !important;
}

.home-hero-text {
  max-width: 720px !important;
}

.home-hero-video {
  position: relative !important;
  z-index: 3 !important;
  width: 100% !important;
}

.home-hero-video-label {
  display: inline-flex !important;
  width: fit-content !important;
  margin: 0 0 14px !important;
  padding: 8px 15px !important;
  border-radius: 999px !important;
  background: rgba(244, 197, 66, 0.18) !important;
  color: #F4C542 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}

.home-hero-video-frame-wrap {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  background: linear-gradient(135deg, rgba(21, 59, 82, 0.96), rgba(63, 107, 69, 0.92)) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28) !important;
}

.home-hero-video-frame {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
}

.home-hero-video-placeholder {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-content: center !important;
  text-align: center !important;
  padding: 34px !important;
  color: #ffffff !important;
}

.home-hero-video-placeholder span {
  color: #ffffff !important;
  font-size: 28px !important;
  font-weight: 900 !important;
}

.home-hero-video-placeholder p {
  max-width: 380px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  margin: 12px auto 0 !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
}

/* Tablet */
@media (max-width: 1100px) {
  .home-hero-content-split {
    grid-template-columns: 1fr !important;
    gap: 38px !important;
    padding: 82px 46px !important;
  }

  .home-hero-text {
    max-width: 760px !important;
  }

  .home-hero-video {
    max-width: 760px !important;
  }
}

/* Phone */
@media (max-width: 700px) {
  .home-hero-panel-with-video {
    min-height: auto !important;
  }

  .home-hero-content-split {
    padding: 64px 24px !important;
    gap: 32px !important;
  }

  .home-hero-video-frame-wrap {
    border-radius: 18px !important;
  }

  .home-hero-video-placeholder span {
    font-size: 22px !important;
  }

  .home-hero-video-placeholder p {
    font-size: 14px !important;
  }
}

/* =========================================================
   RESIDENTS PAGE - Clean no-icon feature cards
   Exact page/component fix only.
   ========================================================= */

.resident-feature-card {
  display: block !important;
  background: #ffffff !important;
  border: 1px solid rgba(21, 59, 82, 0.10) !important;
  border-radius: 22px !important;
  padding: 28px !important;
  text-decoration: none !important;
  box-shadow: 0 12px 28px rgba(21, 59, 82, 0.08) !important;
}

.resident-feature-card:hover {
  background: #edf4ed !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 18px 38px rgba(21, 59, 82, 0.12) !important;
}

.resident-feature-card .resident-feature-icon,
.resident-feature-card .resident-feature-icon-svg {
  display: none !important;
}

.resident-feature-card span {
  display: inline-flex !important;
  width: fit-content !important;
  background: #f4f7f2 !important;
  color: #3f6b45 !important;
  border-radius: 999px !important;
  padding: 6px 11px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  margin: 0 0 12px !important;
}

.resident-feature-card h3 {
  color: #14304a !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
  margin: 0 0 10px !important;
}

.resident-feature-card p {
  color: #4f5f68 !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  margin: 0 0 16px !important;
}

.resident-feature-card strong {
  color: #3f6b45 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

/* =========================================================
   Committees sidebar button repair
   Fixes oversized borders, wrapping, and overlapping tabs
   ========================================================= */

.committee-tabs,
.committees-sidebar,
.committee-sidebar,
.committees-nav {
  overflow: visible !important;
}

.committee-tab-link {
  display: flex !important;
  width: 100% !important;
  min-height: 54px !important;
  height: auto !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0.85rem 1rem !important;
  margin: 0 0 0.65rem 0 !important;

  border: 1px solid rgba(15, 61, 86, 0.12) !important;
  border-radius: 14px !important;
  outline: none !important;

  background: #ffffff !important;
  color: #5F6D76 !important;

  font-family: inherit !important;
  font-size: 0.98rem !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  text-align: left !important;
  text-decoration: none !important;

  box-shadow: 0 6px 16px rgba(15, 61, 86, 0.04) !important;
  cursor: pointer !important;
  white-space: normal !important;
}

.committee-tab-link:hover,
.committee-tab-link:focus-visible {
  background: #F4F7F2 !important;
  color: #14304A !important;
  border-color: rgba(15, 61, 86, 0.2) !important;
  box-shadow: 0 8px 20px rgba(15, 61, 86, 0.08) !important;
}

.committee-tab-link.is-active {
  background: #0F3D56 !important;
  color: #ffffff !important;
  border-color: #0F3D56 !important;
  box-shadow: 0 10px 24px rgba(15, 61, 86, 0.18) !important;
}

.committee-tab-link.is-active:hover,
.committee-tab-link.is-active:focus-visible {
  background: #0F3D56 !important;
  color: #ffffff !important;
}

.committee-tab-link::before,
.committee-tab-link::after {
  display: none !important;
  content: none !important;
}

/* =========================================================
   Residents emergency sidebar card text fix
   ========================================================= */

.residents-emergency-card {
  background: #0F3D56 !important;
  color: #ffffff !important;
}

.residents-emergency-card h1,
.residents-emergency-card h2,
.residents-emergency-card h3,
.residents-emergency-card h4,
.residents-emergency-card h5,
.residents-emergency-card h6 {
  color: #ffffff !important;
  font-weight: 900 !important;
}

.residents-emergency-card p {
  color: rgba(255, 255, 255, 0.92) !important;
}

.residents-emergency-card a {
  color: #F2C14E !important;
}

/* =========================================================
   FIRE / POLICE PAGE - Emergency callout text visibility fix
   Exact fix only. Do not broaden.
   ========================================================= */

.public-safety-emergency-card,
.public-safety-emergency-card * {
  color: #ffffff !important;
}

.public-safety-emergency-card h1,
.public-safety-emergency-card h2,
.public-safety-emergency-card h3,
.public-safety-emergency-card p,
.public-safety-emergency-card span {
  color: #ffffff !important;
}

.public-safety-emergency-card .gov-badge,
.public-safety-emergency-card .emergency-icon,
.public-safety-emergency-card .public-safety-emergency-icon {
  color: #ffffff !important;
}

/* =========================================================
   POLICE / FIRE PAGE - Emergency banner text visibility fix
   Exact selector only.
   ========================================================= */

.safety-emergency-banner {
  background: #153f56 !important;
  color: #ffffff !important;
}

.safety-emergency-banner h2,
.safety-emergency-banner p {
  color: #ffffff !important;
}

.safety-emergency-banner .safety-emergency-icon {
  background: #d6a329 !important;
  color: #ffffff !important;
}


/* =========================================================
   POLICE / FIRE PAGE - Important Reminder dark card text fix
   Exact selector only.
   ========================================================= */

.safety-info-panel.safety-info-panel-dark {
  background: #153f56 !important;
  color: #ffffff !important;
}

.safety-info-panel.safety-info-panel-dark h3,
.safety-info-panel.safety-info-panel-dark p {
  color: #ffffff !important;
}

/* =========================================================
   ALERTS PAGE - Dark panel text and button visibility fix
   Exact selectors only.
   ========================================================= */

.alerts-rave-panel {
  color: #ffffff !important;
}

.alerts-rave-panel > h1,
.alerts-rave-panel > h2,
.alerts-rave-panel > h3,
.alerts-rave-panel > p,
.alerts-rave-panel .alerts-rave-content h1,
.alerts-rave-panel .alerts-rave-content h2,
.alerts-rave-panel .alerts-rave-content h3,
.alerts-rave-panel .alerts-rave-content p {
  color: #ffffff !important;
}

.alerts-rave-panel .gov-badge {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
}

.alerts-rave-actions a {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
}

.alerts-rave-actions a:first-child {
  background: #d6a329 !important;
  color: #14304a !important;
  border-color: #d6a329 !important;
}

.alerts-rave-actions a:first-child:hover {
  background: #ffffff !important;
  color: #14304a !important;
}

.alerts-rave-actions a:not(:first-child):hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.alerts-emergency-card {
  background: #153f56 !important;
  color: #ffffff !important;
}

.alerts-emergency-card h1,
.alerts-emergency-card h2,
.alerts-emergency-card h3,
.alerts-emergency-card h4,
.alerts-emergency-card p {
  color: #ffffff !important;
}

/* Keep light contact/info cards readable inside the alerts page */
.alerts-rave-panel .contact-info-item,
.alerts-rave-panel .contact-info-item * {
  color: inherit !important;
}

.alerts-rave-panel .contact-info-item {
  background: #f4f6f7 !important;
}

.alerts-rave-panel .contact-info-item span {
  color: #3f6b45 !important;
}

.alerts-rave-panel .contact-info-item strong {
  color: #14304a !important;
}

.alerts-rave-panel .contact-info-item p {
  color: #5f6f7a !important;
}

/* =========================================================
   COMMUNITY PAGE - Historic Mercersburg dark box text fix
   Exact selectors only.
   ========================================================= */

.community-history-box,
.community-history-box * {
  color: #ffffff !important;
}

.community-history-box {
  background: #153f56 !important;
}

.community-history-box h1,
.community-history-box h2,
.community-history-box h3,
.community-history-box h4,
.community-history-box p,
.community-history-box span {
  color: #ffffff !important;
}

/* =========================================================
   CONTACT PAGE - Contact info card text visibility fix
   Exact selectors only.
   ========================================================= */

.contact-info-item {
  background: #f4f6f7 !important;
  color: #14304a !important;
}

.contact-info-item span {
  color: #3f6b45 !important;
}

.contact-info-item strong {
  color: #14304a !important;
}

.contact-info-item p {
  color: #5f6f7a !important;
}

/* Contact page emergency sidebar dark card */
.contact-emergency-box {
  background: #153f56 !important;
  color: #ffffff !important;
}

.contact-emergency-box h1,
.contact-emergency-box h2,
.contact-emergency-box h3,
.contact-emergency-box h4,
.contact-emergency-box p {
  color: #ffffff !important;
}

/* =========================================================
   CONTACT PAGE - Borough Office contact cards final fix
   Exact selectors only.
   ========================================================= */

.contact-office-card .contact-info-grid .contact-info-item {
  background: #f4f6f7 !important;
  color: #14304a !important;
  border-left: 5px solid #d6a329 !important;
}

.contact-office-card .contact-info-grid .contact-info-item span {
  display: block !important;
  color: #3f6b45 !important;
}

.contact-office-card .contact-info-grid .contact-info-item strong {
  display: block !important;
  color: #14304a !important;
}

.contact-office-card .contact-info-grid .contact-info-item p {
  color: #5f6f7a !important;
}

.contact-office-card .contact-info-grid .contact-info-item * {
  text-shadow: none !important;
}

/* =========================================================
   CONTACT PAGE - Topic cards text visibility final fix
   Exact selectors only.
   ========================================================= */

.contact-topic-section .contact-topic-card {
  background: #ffffff !important;
  color: #14304a !important;
}

.contact-topic-section .contact-topic-card span {
  background: #f4f6f7 !important;
  color: #3f6b45 !important;
}

.contact-topic-section .contact-topic-card h3 {
  color: #14304a !important;
}

.contact-topic-section .contact-topic-card p {
  color: #5f6f7a !important;
}

.contact-topic-section .contact-topic-card strong {
  color: #3f6b45 !important;
}

.contact-topic-section .contact-topic-card:hover {
  background: #edf4ed !important;
}

/* =========================================================
   CONTACT PAGE - Borough Office badge visibility fix
   Exact selector only.
   ========================================================= */

.contact-office-card > .gov-badge {
  background: rgba(214, 163, 41, 0.18) !important;
  color: #3f6b45 !important;
  border: 1px solid rgba(214, 163, 41, 0.28) !important;
}

/* ==========================================================
   COMMITTEES DROPDOWN / TAB FIX
   ========================================================== */

.committees-mobile-select {
  display: none;
  background: #ffffff;
  border: 1px solid rgba(21, 59, 82, 0.12);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 24px;
  box-shadow: 0 12px 28px rgba(21, 59, 82, 0.08);
}

.committees-mobile-select label {
  display: block;
  color: var(--borough-navy, #153B52);
  font-weight: 900;
  margin-bottom: 8px;
}

.committee-select {
  width: 100%;
  min-height: 52px;
  border: 2px solid rgba(21, 59, 82, 0.28);
  border-radius: 12px;
  padding: 12px 14px;
  background: #ffffff;
  color: var(--borough-navy, #153B52);
  font-size: 16px;
  font-weight: 800;
}

.committee-select:focus {
  outline: 3px solid var(--borough-gold, #C89A2B);
  outline-offset: 3px;
  border-color: var(--borough-navy, #153B52);
}

.committee-tab-panel[hidden] {
  display: none !important;
}

.committee-tab-link {
  cursor: pointer;
}

@media (max-width: 900px) {
  .committees-mobile-select {
    display: block;
  }

  .committees-tab-list {
    display: none !important;
  }

  .committees-tab-layout {
    display: block !important;
  }
}

/* ==========================================================
   COMMITTEES SELECT / TAB FIX
   ========================================================== */

.committees-mobile-select {
  display: block !important;
  background: #ffffff !important;
  border: 1px solid rgba(21, 59, 82, 0.12) !important;
  border-radius: 18px !important;
  padding: 18px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 12px 28px rgba(21, 59, 82, 0.08) !important;
}

.committees-mobile-select label {
  display: block !important;
  color: var(--borough-navy, #153B52) !important;
  font-weight: 900 !important;
  margin-bottom: 8px !important;
}

.committee-select {
  width: 100% !important;
  min-height: 52px !important;
  border: 2px solid rgba(21, 59, 82, 0.28) !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  background: #ffffff !important;
  color: var(--borough-navy, #153B52) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

.committee-select:focus {
  outline: 3px solid var(--borough-gold, #C89A2B) !important;
  outline-offset: 3px !important;
  border-color: var(--borough-navy, #153B52) !important;
}

.committee-tab-panel[hidden] {
  display: none !important;
}

.committee-tab-link {
  cursor: pointer !important;
}

/* ==========================================================
   COMMITTEES DROPDOWN FIX
   ========================================================== */

.committees-select-panel {
  display: block !important;
  background: #ffffff !important;
  border: 1px solid rgba(21, 59, 82, 0.12) !important;
  border-radius: 18px !important;
  padding: 18px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 12px 28px rgba(21, 59, 82, 0.08) !important;
}

.committees-select-panel label {
  display: block !important;
  color: var(--borough-navy, #153B52) !important;
  font-weight: 900 !important;
  margin-bottom: 8px !important;
}

.committee-select {
  width: 100% !important;
  min-height: 52px !important;
  border: 2px solid rgba(21, 59, 82, 0.28) !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  background: #ffffff !important;
  color: var(--borough-navy, #153B52) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

.committee-select:focus {
  outline: 3px solid var(--borough-gold, #C89A2B) !important;
  outline-offset: 3px !important;
  border-color: var(--borough-navy, #153B52) !important;
}

.committee-tab-panel[hidden] {
  display: none !important;
}

.committee-tab-link {
  cursor: pointer !important;
}

/* ==========================================================
   HIDE COMMITTEE MEMBERS FROM COMMITTEE TABS
   ========================================================== */

.committee-panel-members {
  display: none !important;
}



/* ==========================================================
   LIVE BOROUGH CALENDAR EVENT LIST
   ========================================================== */

.live-calendar-list {
  background: #ffffff;
  border: 1px solid rgba(21, 59, 82, 0.12);
  border-top: none;
  border-radius: 0 0 18px 18px;
  height: 600px;
  overflow-y: auto;
}

.live-calendar-event {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 26px;
  border-bottom: 1px solid rgba(21, 59, 82, 0.10);
}

.live-calendar-event:last-child {
  border-bottom: none;
}

.live-calendar-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
}

.live-calendar-date strong {
  display: block;
  color: var(--borough-navy);
  font-size: 17px;
  line-height: 1.3;
}

.live-calendar-date span {
  display: block;
  color: var(--borough-green);
  font-weight: 900;
  margin-top: 6px;
}

.live-calendar-details {
  display: flex;
  flex-direction: column;
}

.live-calendar-details h4 {
  color: var(--borough-navy);
  font-size: 21px;
  line-height: 1.25;
  margin: 0 0 6px;
}

.live-calendar-details p {
  color: var(--text-muted);
  font-weight: 800;
  margin: 0;
}

.live-calendar-details small {
  display: block;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.4;
  min-height: 1.4em;
}

.live-calendar-details-btn {
  margin-top: 1rem;
  display: inline-flex;
  width: fit-content;
  min-height: 46px;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(15, 61, 86, 0.12);
  border-radius: 14px;
  background: #ffffff;
  color: #5f6d76;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(15, 61, 86, 0.04);
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.live-calendar-details-btn:hover,
.live-calendar-details-btn:focus-visible {
  background: #f8fbfd;
  border-color: rgba(15, 61, 86, 0.2);
  color: #3f4e57;
  box-shadow: 0 8px 18px rgba(15, 61, 86, 0.08);
}

.live-calendar-loader,
.live-calendar-no-more {
  text-align: center;
  padding: 16px;
  color: #6f818d;
  font-weight: 700;
}

.live-calendar-empty {
  padding: 28px;
}

.live-calendar-empty h4 {
  color: var(--borough-navy);
  margin: 0 0 8px;
}

.live-calendar-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(10, 26, 39, 0.58);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.live-calendar-modal-card {
  position: relative;
  width: min(620px, 94vw);
  max-height: 84vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 16px;
  border-top: 6px solid var(--borough-green);
  box-shadow: 0 16px 40px rgba(10, 26, 39, 0.28);
  padding: 28px 26px 22px;
}

.live-calendar-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #5d6f7b;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

#live-calendar-modal-body h3 {
  margin: 0 0 14px;
  color: var(--borough-navy);
  font-size: 27px;
}

.live-calendar-modal-datetime {
  margin: 0 0 10px;
  color: #355062;
  font-weight: 700;
  line-height: 1.45;
}

.live-calendar-modal-calendar {
  margin: -2px 0 12px;
  color: #4e6472;
  font-weight: 700;
}

.live-calendar-modal-meta {
  margin: 0 0 8px;
  color: #4e6472;
  line-height: 1.45;
}

.live-calendar-modal-description {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(21, 59, 82, 0.16);
  color: #4e6472;
  line-height: 1.55;
}

.live-calendar-modal-description strong {
  color: var(--borough-navy);
}

.live-calendar-modal-description p {
  margin: 8px 0 0;
}

@media (max-width: 700px) {
  .live-calendar-event {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .live-calendar-details-btn {
    margin-top: 10px;
  }
}


/* Alerts Center: emergency signup panel text visibility */
.alerts-rave-panel > div > h2,
.alerts-rave-panel > div > p,
.alerts-rave-panel > div > .gov-badge {
  color: #ffffff !important;
}

.alerts-rave-panel > div > p {
  color: rgba(255, 255, 255, 0.90) !important;
}

/* Alerts Center: brighten emergency signup supporting text */
.alerts-rave-panel > div > p:not(.gov-badge) {
  color: rgba(255, 255, 255, 0.98) !important;
}

/* Alerts Center: strengthen emergency signup supporting text */
.alerts-rave-panel > div > p:not(.gov-badge) {
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* Community Overview: scrolling community event cards */
.community-events-section {
  margin: 0 0 34px;
}

.community-events-heading {
  margin-bottom: 18px;
}

.community-events-heading h2 {
  margin: 8px 0 0;
}

.community-events-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.community-event-card {
  flex: 0 0 min(340px, 86vw);
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(21, 59, 82, 0.12);
  scroll-snap-align: start;
}

.community-event-card img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.community-event-card-body {
  padding: 22px;
}

.community-event-card-body h3 {
  margin: 8px 0 12px;
}

.community-event-card-body p {
  margin: 0 0 12px;
}

.community-event-date {
  font-weight: 800;
  color: var(--borough-green);
}

.community-event-card-body a {
  display: inline-block;
  margin-top: 4px;
  font-weight: 800;
  text-decoration: none;
}
