/* ============================================================
   MUCM — STYLESHEET
   ============================================================
   01. Design Tokens
   02. Reset & Base
   03. Typography & Utilities
   04. Header & Navigation
   05. Buttons
   06. Hero
   07. Sections (generic)
   08. Vision / Mission / Values
   09. Identity Cards
   10. Community Grid
   11. Stat Board
   12. Structure List
   13. Principles Grid
   14. In the News
   15. Photo Gallery
   16. Vote MUCM Banner
   17. Board Hero
   18. Content Images & Split Layouts
   19. Official Names
   20. Membership Page
   21. Platform Section
   22. Ward Councillors
   23. Social Feed
   24. Lightbox
   25. Footer
   26. Responsive Breakpoints
   ============================================================ */


/* ============================================================
   01. DESIGN TOKENS
   ============================================================ */
:root {
  --black: #000000;
  --soft-black: #1a1a1a;
  --white: #ffffff;
  --grey-dark: #2d2d2d;
  --grey-mid: #666666;
  --grey-light: #b0b0b0;
  --grey-line: #e0e0e0;
  --grey-panel: #f5f5f5;
  --font-display: 'Archivo Black', 'Archivo', sans-serif;
  --font-label: 'Archivo', sans-serif;
  --font-body: 'Source Serif 4', serif;
  --max-width: 1180px;
  --edge: 6vw;
  --shadow-lg: 0 18px 40px -12px rgba(0,0,0,0.25);
  --shadow-md: 0 8px 20px -6px rgba(0,0,0,0.15);
  --shadow-sm: 0 4px 10px -2px rgba(0,0,0,0.08);
}


/* ============================================================
   02. RESET & BASE
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Prevent any horizontal overflow */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Force all direct children of sections to not exceed container */
section, .wrap, .social-split, .fb-embed {
  max-width: 100%;
}

/* Long words / URLs break instead of overflowing */
p, a, h1, h2, h3, h4, .news-excerpt, .news-headline {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ============================================================
   03. TYPOGRAPHY & UTILITIES
   ============================================================ */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

.kicker {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 8px;
}

.kicker i {
  margin-right: 8px;
  color: var(--black);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 28px;
  position: relative;
  padding-bottom: 16px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 64px;
  height: 4px;
  background: var(--black);
}

.lede {
  font-size: 1.15rem;
  max-width: 64ch;
  color: var(--soft-black);
  line-height: 1.6;
  border-left: 4px solid var(--black);
  padding-left: 24px;
  font-style: italic;
}


/* ============================================================
   04. HEADER & NAVIGATION
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--black);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.mark {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--black);
}

.mark img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
}

nav.links {
  display: flex;
  gap: 36px;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.94rem;
}

nav.links a {
  position: relative;
  padding: 6px 0;
}

nav.links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--black);
}

nav.links a:hover::after { width: 100%; }
nav.links a:hover { color: var(--grey-mid); }

.nav-cta {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.88rem;
  background: var(--black);
  color: var(--white);
  padding: 12px 26px;
  border: 2px solid var(--black);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--soft-black);
  z-index: -1;
}

.nav-cta:hover { box-shadow: 0 8px 18px rgba(0,0,0,0.2); }
.nav-cta:hover::before { transform: translateX(0); }

/* ---------- MENU BUTTON (hamburger ↔ X) ---------- */
.menu-btn {
  display: none;
  background: none;
  border: 2px solid var(--black);
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
  padding: 0;
}

/* Three bars — the hamburger */
.menu-btn span,
.menu-btn::before,
.menu-btn::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2.5px;
  background: var(--black);
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

/* Position the three bars */
.menu-btn span { top: 20px; }        /* middle bar */
.menu-btn::before { top: 13px; }     /* top bar */
.menu-btn::after { bottom: 13px; }   /* bottom bar */

/* When .active — transform hamburger into X */
.menu-btn.active span {
  opacity: 0;                         /* hide middle bar */
}

.menu-btn.active::before {
  top: 20px;                          /* move to centre */
  transform: rotate(45deg);
}

.menu-btn.active::after {
  bottom: 21px;                       /* move to centre */
  transform: rotate(-45deg);
}


/* ============================================================
   05. BUTTONS
   ============================================================ */
.btn {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 16px 36px;
  border: 2.5px solid var(--white);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.btn i { font-size: 1rem; }

.btn-solid {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn-solid:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--grey-light);
  color: var(--grey-light);
}

.btn-dark {
  border: 2.5px solid var(--black);
  background: transparent;
  color: var(--black);
  font-weight: 700;
  padding: 15px 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-dark:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  box-shadow: var(--shadow-md);
}

.btn-dark-solid {
  background: var(--black);
  color: var(--white);
  border: 2.5px solid var(--black);
  font-weight: 700;
  padding: 15px 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-dark-solid:hover {
  background: var(--soft-black);
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}


/* ============================================================
   06. HERO
   ============================================================ */
.hero {
  background: var(--black);
  color: var(--white);
  padding: 40px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-copy { max-width: 56ch; }

.hero-eyebrow {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-light);
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin-bottom: 26px;
}

.hero h1 span {
  display: block;
  font-size: 0.66em;
  color: var(--grey-light);
  letter-spacing: 0.02em;
}

.hero-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  max-width: 40ch;
  color: #f0f0f0;
  border-left: 4px solid var(--white);
  padding-left: 22px;
  margin: 0 0 14px;
}

.hero-sub {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 1rem;
  color: var(--grey-light);
  max-width: 40ch;
  margin-bottom: 42px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.hero-photo {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-lg);
}

.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}


/* ============================================================
   07. SECTIONS (GENERIC)
   ============================================================ */
section {
  padding: 100px 0;
  position: relative;
}

section.rule-top {
  border-top: 1px solid rgba(0,0,0,0.08);
}
.notice-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 60px;
  align-items: start;
}


/* ============================================================
   08. VISION / MISSION / VALUES
   ============================================================ */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.vm-block .kicker { margin-bottom: 14px; }

.vm-block p {
  font-size: 1.12rem;
  color: var(--soft-black);
  border-left: 4px solid var(--black);
  padding-left: 24px;
}

/* Values band */
.values-band {
  background: var(--black);
  color: var(--white);
}

.values-band h2 { color: var(--white); }
.values-band h2::after { background: var(--white); }

.values-list {
  list-style: none;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.values-list li {
  background: var(--black);
  padding: 36px 28px;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #e0e0e0;
  border: 1px solid var(--grey-dark);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.values-list li i {
  font-size: 1.4rem;
  color: var(--grey-light);
  margin-bottom: 4px;
}

.values-list strong {
  color: var(--white);
  font-weight: 700;
}


/* ============================================================
   09. IDENTITY CARDS
   ============================================================ */
.identity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--black);
  border: 2px solid var(--black);
  margin-top: 52px;
}

.identity-card {
  background: var(--white);
  padding: 42px 32px;
  border-bottom: 6px solid transparent;
  text-align: center;
}

.identity-card i {
  font-size: 2.2rem;
  color: var(--black);
  margin-bottom: 18px;
  display: block;
}

.identity-card h3 {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  color: var(--black);
}

.identity-card p {
  color: var(--soft-black);
  font-size: 1rem;
  line-height: 1.6;
}


/* ============================================================
   10. COMMUNITY GRID
   ============================================================ */
.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.community-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.community-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.community-grid figcaption {
  font-family: var(--font-label);
  font-size: 0.85rem;
  color: var(--grey-mid);
  padding: 14px 6px 6px;
  line-height: 1.4;
}


/* ============================================================
   11. STAT BOARD
   ============================================================ */
.stat-board {
  background: var(--white);
  border: 1px solid var(--grey-line);
  box-shadow: var(--shadow-md);
  border-radius: 4px;
  overflow: hidden;
}

.stat-board:hover { box-shadow: var(--shadow-lg); }

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 28px;
}

.stat-row + .stat-row { border-top: 1px solid var(--grey-line); }
.stat-row:hover { background: #fafafa; }

.stat-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--black);
  white-space: nowrap;
}

.stat-label {
  font-family: var(--font-label);
  font-size: 0.9rem;
  color: var(--grey-mid);
  text-align: right;
  max-width: 26ch;
}


/* ============================================================
   12. STRUCTURE LIST
   ============================================================ */
.structure-list {
  counter-reset: step;
  list-style: none;
  margin: 56px 0 0;
  max-width: 76ch;
}

.structure-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 26px;
  padding: 32px 0;
  border-bottom: 1px solid var(--grey-line);
}

.structure-list li:first-child {
  border-top: 1px solid var(--grey-line);
}

.structure-list li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--grey-mid);
  opacity: 0.8;
}

.structure-list h3 {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--black);
}

.structure-list p {
  color: var(--soft-black);
  font-size: 0.98rem;
}


/* ============================================================
   13. PRINCIPLES GRID
   ============================================================ */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: transparent;
  border: none;
  margin-top: 56px;
}

.principle-card {
  background: var(--white);
  padding: 36px 22px;
  border: 2px solid var(--black);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.principle-card i {
  font-size: 1.6rem;
  color: var(--black);
}

.principle-card h3 {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--black);
}

.principle-card p {
  font-size: 0.92rem;
  color: var(--soft-black);
  line-height: 1.5;
}


/* ============================================================
   14. IN THE NEWS
   ============================================================ */
.news-section { background: var(--white); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--black);
  border: 2px solid var(--black);
  margin-top: 56px;
}

.news-card {
  background: var(--white);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--black);
  transition: background 0.2s ease;
}

.news-card:hover { background: var(--grey-panel); }

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

.news-source {
  font-weight: 700;
  color: var(--black);
}

.news-date { font-weight: 500; }

.news-headline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--black);
  margin: 0;
}

.news-excerpt {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--soft-black);
  flex-grow: 1;
  margin: 0;
}

.news-link {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-top: 2px solid var(--black);
  padding-top: 16px;
  margin-top: 6px;
}

.news-link i { transition: transform 0.2s ease; }
.news-card:hover .news-link i { transform: translateX(6px); }

.news-card-placeholder {
  background: var(--grey-panel);
  color: var(--grey-mid);
  font-style: italic;
}

.news-card-placeholder .news-headline,
.news-card-placeholder .news-source {
  color: var(--grey-mid);
}

.news-card-placeholder .news-excerpt {
  color: var(--grey-mid);
  font-style: italic;
}

.news-card-placeholder .news-link {
  border-top-color: var(--grey-mid);
  color: var(--grey-mid);
}


/* ============================================================
   15. PHOTO GALLERY
   ============================================================ */
.gallery-section { background: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--grey-panel);
  border: 2px solid var(--black);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.gallery-item:hover img { transform: scale(1.05); }


/* ============================================================
   16. VOTE MUCM BANNER
   ============================================================ */
.vote-banner {
  background: var(--white);
  padding: 40px var(--edge);
}

.vote-banner-link {
  display: block;
  width: 100%;
  border: 3px solid var(--black);
}

.vote-banner-top {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  color: var(--black);
  padding: 14px 20px;
  border-bottom: 3px solid var(--black);
  background: var(--white);
}

.vote-banner-strip {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  background: var(--white);
}

.vote-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  min-height: 140px;
}

.vote-cell + .vote-cell { border-left: 3px solid var(--black); }

.vote-cell-text {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--black);
  white-space: nowrap;
}

.vote-cell-logo img {
  max-height: 96px;
  width: auto;
  object-fit: contain;
}

.vote-cell-x { position: relative; }

.vote-cell-x span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 10px;
  background: var(--black);
  border-radius: 2px;
  transform-origin: center;
}

.vote-cell-x span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.vote-cell-x span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

.vote-banner-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px 20px;
  border-top: 3px solid var(--black);
  background: var(--black);
  color: var(--white);
  font-family: var(--font-label);
  flex-wrap: wrap;
}

.cd-unit {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.cd-unit strong {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1;
  color: var(--white);
  min-width: 2.2ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cd-unit em {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-light);
}

.cd-sep {
  color: var(--grey-mid);
  font-size: 1.4rem;
  line-height: 1;
}


/* ============================================================
   17. BOARD HERO
   ============================================================ */
.board-hero {
  position: relative;
  background: var(--black);
  padding: 56px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.board-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/logo.jpeg');
  background-repeat: repeat;
  background-size: 140px 140px;
  background-position: center;
  opacity: 0.12;
  z-index: 0;
  filter: invert(1) grayscale(1) brightness(1.2);
  mix-blend-mode: screen;
}

.board-hero-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 100%;
  border: 2px solid var(--white);
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.7);
  overflow: hidden;
}

.board-hero-figure img {
  display: block;
  width: auto;
  height: auto;
  max-height: 480px;
  max-width: 100%;
}

.board-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.board-hero-copy { color: var(--white); }


/* ============================================================
   18. CONTENT IMAGES & SPLIT LAYOUTS
   ============================================================ */
.img-framed {
  margin: 0;
  border: 2px solid var(--black);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: var(--grey-panel);
}

.img-framed img {
  width: 100%;
  height: auto;
  display: block;
}

.split-text-img {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 32px;
}


/* ============================================================
   19. OFFICIAL NAMES
   ============================================================ */
.official-names {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--grey-line);
}

.official-names h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--black);
}

.official-names .name-translations {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--soft-black);
  max-width: 70ch;
}

.official-names .name-translations span { display: block; }

.official-names .name-translations strong {
  font-family: var(--font-label);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--grey-mid);
  margin-right: 8px;
}


/* ============================================================
   20. MEMBERSHIP PAGE
   ============================================================ */
.involved {
  text-align: left;
}

#involved { padding-top: 0; }

.involved h2,
.involved .lede {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.membership-block {
  max-width: none;
  margin: 56px 0 0;
  padding-top: 40px;
  text-align: left;
}

.membership-clauses {
  margin: 0;
  padding-left: 1.4em;
  color: var(--soft-black);
  max-width: 70ch;
}

.membership-clauses li {
  margin-bottom: 14px;
  font-size: 1.05rem;
  padding-left: 0;
}

.rr-grid {
  text-align: left;
  max-width: none;
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  border-top: 1px solid var(--grey-line);
  padding-top: 40px;
}

.rr-col h3 {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 10px;
}

.rr-col h3 i { font-size: 1.1rem; }
.rr-col ul { list-style: none; padding-left: 0; }

.rr-col ul li {
  margin-bottom: 12px;
  font-size: 1rem;
  padding-left: 24px;
  position: relative;
  color: var(--soft-black);
}

.rr-col ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--black);
  font-weight: 700;
}

.involved-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
  flex-wrap: wrap;
}


/* ============================================================
   21. PLATFORM SECTION
   ============================================================ */
.platform-section { background: var(--grey-panel); }

.lang-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 48px;
  border-bottom: 3px solid var(--black);
  width: 100%;

}

.lang-tab {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--grey-mid);
  border-bottom: 4px solid transparent;
  margin-bottom: -3px;
  flex: 1;                         /* equal width for each tab */
  text-align: center;
  white-space: nowrap;             /* prevent "isiXhosa" from wrapping */
  transition: color 0.2s ease;
}

.lang-tab.active {
  color: var(--black);
  border-bottom-color: var(--black);
}

.lang-tab:hover { color: var(--black); }

.lang-content { display: none; }
.lang-content.active { display: block; }

.platform-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.platform-item {
  background: var(--white);
  padding: 28px;
  border-left: 6px solid var(--black);
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.platform-item i {
  font-size: 1.3rem;
  color: var(--black);
  margin-top: 2px;
  flex-shrink: 0;
}

.platform-item-content { flex: 1; }

.platform-item-title {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1rem;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.platform-item-description {
  font-size: 0.96rem;
  color: var(--soft-black);
  line-height: 1.6;
}


/* ============================================================
   22. WARD COUNCILLORS
   ============================================================ */
.councillors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.councillor-card {
  background: var(--white);
  border: 2px solid var(--black);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.councillor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.councillor-photo {
  aspect-ratio: 4 / 5;
  background: var(--grey-panel);
  overflow: hidden;
}

.councillor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.councillor-info {
  padding: 18px 20px 22px;
  border-top: 2px solid var(--black);
}

.councillor-ward {
  display: inline-block;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 6px;
}

.councillor-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--black);
  margin: 0 0 4px;
}

.councillor-role {
  font-family: var(--font-label);
  font-size: 0.82rem;
  color: var(--soft-black);
}
/* ---------- COUNCILLOR PHOTO PLACEHOLDER (logo) ---------- */
.councillor-photo-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grey-panel);
}

.councillor-photo-logo img {
  width: 55%;
  height: auto;
  max-width: 140px;
  opacity: 0.35;
  filter: grayscale(1);
}

/* ---------- COUNCILLOR PLEDGE ---------- */
.pledge-section {
  background: var(--white);
}

.pledge-card {
  background: var(--white);
  border: 3px solid var(--black);
  padding: 56px 48px;
  max-width: 720px;
  margin: 48px auto 0;
  position: relative;
  box-shadow: var(--shadow-md);
}

.pledge-logo {
  text-align: center;
  margin-bottom: 28px;
}

.pledge-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto;
}

.pledge-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  color: var(--black);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--black);
}

.pledge-text {
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--soft-black);
  margin-bottom: 20px;
}

.pledge-blank {
  display: inline-block;
  min-width: 220px;
  border-bottom: 2px solid var(--black);
  text-align: center;
  vertical-align: baseline;
  margin: 0 4px;
}

.pledge-signature {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 48px;
}

.pledge-signature > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pledge-line {
  border-bottom: 2px solid var(--black);
  height: 1px;
  display: block;
}

.pledge-label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

@media (max-width: 700px) {
  .pledge-card {
    padding: 32px 22px;
  }
  .pledge-title {
    font-size: 1rem;
  }
  .pledge-text {
    font-size: 1rem;
  }
  .pledge-signature {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pledge-blank {
    min-width: 140px;
  }
}

/* ============================================================
   23. SOCIAL FEED
   ============================================================ */
.social-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.social-split .fb-embed {
  display: flex;
  justify-content: center;
  overflow: hidden;      /* ← prevents inner content from pushing the container wider */
  max-width: 100%;
}

.social-split .fb-embed iframe {
  max-width: 100%;
  width: 100%;
}

/* ---------- HEADER WHATSAPP BUTTON ---------- */
.header-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--black);
  padding: 10px 18px;
  border: 2px solid var(--black);
  background: var(--white);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-whatsapp i {
  font-size: 1.1rem;
  color: #25D366;   /* WhatsApp green */
}

.header-whatsapp:hover {
  background: var(--black);
  color: var(--white);
}

.header-whatsapp:hover i {
  color: #25D366;
}

/* Hide on tablet/mobile — menu already crowded */
@media (max-width: 950px) {
  .header-whatsapp {
    display: none;
  }
}

/* Show WhatsApp in mobile menu instead */
@media (max-width: 950px) {
  nav.links::after {
    content: 'WhatsApp Us';
    display: block;
    padding: 16px 24px;
    background: #25D366;
    color: var(--white);
    font-family: var(--font-label);
    font-weight: 700;
    text-align: center;
    font-size: 0.95rem;
  }
}
/* ---------- HERO LOGO ---------- */
/* .hero-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  padding: 8px;
  margin-bottom: 32px;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
} */
/* ---------- HERO LOGO ---------- */
.hero-logo {
  width: 240px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 32px;
  filter: invert(1) grayscale(1) brightness(1.2);
  mix-blend-mode: screen;
  position: relative;
  z-index: 1;
}
/* @media (max-width: 700px) {
  .hero-logo {
    width: 90px;
    height: 90px;
    margin-bottom: 24px;
  }
} */
@media (max-width: 700px) {
  .hero-logo {
    width: 180px;
    margin-bottom: 24px;
  }
}


/* ============================================================
   24. LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 9999;
  cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}

/* ---------- PRIORITIES GRID (Manifesto) ---------- */
.priorities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
/* ============================================================
   24. VOTER REGISTRATION
   ============================================================ */
.voter-section {
  background: var(--white);
}

.voter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.voter-card {
  background: var(--white);
  border: 2px solid var(--black);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.voter-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.voter-card-icon {
  font-size: 2rem;
  color: var(--black);
  margin-bottom: 4px;
}

.voter-card h3 {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--black);
  margin: 0;
}

.voter-card p {
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--soft-black);
  margin: 0;
  flex-grow: 1;
}

.voter-card .btn {
  margin-top: 8px;
  align-self: flex-start;
  padding: 12px 22px;
  font-size: 0.85rem;
}

.voter-note {
  background: var(--grey-panel);
  border-left: 6px solid var(--black);
  padding: 24px 28px;
  margin-top: 40px;
}

.voter-note p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--soft-black);
  margin: 0;
}

.voter-note a {
  color: var(--black);
  font-weight: 600;
  border-bottom: 2px solid var(--black);
}

.voter-note a:hover {
  color: var(--grey-mid);
  border-bottom-color: var(--grey-mid);
}


/* Mobile — stack cards */
@media (max-width: 900px) {
  .voter-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .voter-card {
    padding: 24px 22px;
  }
  .voter-note {
    padding: 20px 22px;
  }
}

/* ---------- VOTER CHECK CALLOUT (below councillors) ---------- */
.voter-callout {
  background: var(--black);
  color: var(--white);
  padding: 64px var(--edge);
  position: relative;
  overflow: hidden;
}

.voter-callout::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/logo.jpeg');
  background-repeat: repeat;
  background-size: 140px 140px;
  opacity: 0.08;
  filter: invert(1) grayscale(1) brightness(1.2);
  mix-blend-mode: screen;
  z-index: 0;
}

.voter-callout-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: center;
}

.voter-callout-kicker {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-light);
  margin-bottom: 12px;
}

.voter-callout-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 12px;
}

.voter-callout-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--grey-light);
  margin: 0;
  max-width: 44ch;
}

.voter-callout-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.voter-callout-actions .btn {
  width: 100%;
  justify-content: center;
  padding: 15px 26px;
  font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 900px) {
  .voter-callout {
    padding: 36px 24px;
  }
  .voter-callout-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .voter-callout-actions .btn {
    width: 100%;
  }
}

/* ---------- PR COUNCILLORS ---------- */
.pr-list {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--black);
  border: 2px solid var(--black);
}

.pr-list li {
  background: var(--white);
  padding: 18px 22px;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--black);
  display: flex;
  align-items: center;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .pr-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .pr-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .pr-list li {
    padding: 14px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .pr-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- COUNCILLOR WITHOUT PHOTO (initials) ----------
.councillor-photo-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grey-panel);
}

.councillor-photo-initials span {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.02em;
  color: var(--grey-mid);
  text-transform: uppercase;
  line-height: 1;
}

@media (max-width: 700px) {
  .councillor-photo-initials span {
    font-size: 2rem;
  }
} */

/* ---------- COUNCILLOR WITHOUT PHOTO (placeholder icon) ---------- */
/* .councillor-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grey-panel);
}

.councillor-photo-placeholder i {
  font-size: 3.5rem;
  color: var(--grey-mid);
  line-height: 1;
}

@media (max-width: 700px) {
  .councillor-photo-placeholder i {
    font-size: 2.5rem;
  }
} */
 /* ---------- COUNCILLOR WITHOUT PHOTO (MUCM logo placeholder) ---------- */
.councillor-photo-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grey-panel);
}

.councillor-photo-logo img {
  width: 55%;
  height: auto;
  max-width: 140px;
  opacity: 0.35;                 /* subtle — reads as a watermark, not a photo */
  filter: grayscale(1);
}

@media (max-width: 700px) {
  .councillor-photo-logo img {
    width: 60%;
  }
}


/* Read-only date field — looks locked, not broken */
.form-row input[readonly] {
  background: var(--grey-panel);
  color: var(--grey-mid);
  cursor: not-allowed;
}
/* ============================================================
   25. FOOTER
   ============================================================ */
footer {
  background: var(--black);
  color: var(--grey-light);
  padding: 72px 0 40px;
  border-top: 6px solid var(--grey-dark);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--grey-dark);
}

.footer-brand-block { max-width: 42ch; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.footer-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: invert(1) grayscale(1) brightness(1.2);
}

.footer-brand span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-taglines { margin-bottom: 28px; }

.footer-tagline-main {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--grey-light);
  margin-bottom: 12px;
}

.footer-tagline-sub {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--grey-mid);
}

.footer-translations {
  padding-top: 24px;
  border-top: 1px solid var(--grey-dark);
}

.footer-translations p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--grey-mid);
  margin-bottom: 6px;
}

.footer-translations p:last-child { margin-bottom: 0; }

.footer-col h4 {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-mid);
  margin-bottom: 20px;
}

.footer-col a,
.footer-col p {
  display: block;
  font-family: var(--font-label);
  font-size: 0.92rem;
  color: var(--grey-light);
  margin-bottom: 10px;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-family: var(--font-label);
  font-size: 0.82rem;
  color: var(--grey-mid);
  flex-wrap: wrap;
  gap: 12px;
}
/* ---------- FOOTER SOCIAL ---------- */
.footer-social {
  margin-top: 20px;
  display: flex;
  flex-direction: column;      /* stack vertically */
  gap: 10px;                    /* space between links */
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--grey-light);
  font-family: var(--font-label);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--white);
}

.footer-social a i {
  font-size: 1rem;
  flex-shrink: 0;
  width: 18px;                  /* align icons vertically */
  text-align: center;
}


/* ============================================================
   26. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ---------- 1024px ---------- */
@media (max-width: 1024px) {
.principles-grid { grid-template-columns: repeat(3, 1fr); }
  .values-list { grid-template-columns: repeat(2, 1fr); }
  .councillors-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

/* ---------- NAV — Tablet & mobile (hamburger) ---------- */
@media (max-width: 950px) {
  .menu-btn { display: block; }

  nav.links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--black);
    padding: 0;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }

  nav.links.open {
    max-height: 600px;
    padding: 12px 0;
  }

  nav.links a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--grey-line);
    font-size: 1rem;
    width: 100%;
    display: block;
  }

  nav.links a:last-child {
    border-bottom: none;
  }

  nav.links a::after {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  header {
    position: relative;
  }
}
/* ---------- 900px ---------- */
@media (max-width: 900px) {
  .notice-grid,
  .vm-grid,
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }

  .identity-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .platform-items { grid-template-columns: 1fr; }
  .lang-tabs { flex-wrap: wrap; }
  .news-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .split-text-img { grid-template-columns: 1fr; gap: 32px; }
  .board-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .social-split { grid-template-columns: 1fr; gap: 40px; }
  .social-split .fb-embed { justify-content: flex-start; }

  .priorities-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  /* Reduce the outer wrapper padding so the chart fits */
  [style*="max-width:800px"] {
    max-width: 100% !important;
    margin: 48px auto !important;
    padding: 0 !important;
  }

  /* Stack the Level 4 grid (Board + Council) into a single column */
  [style*="grid-template-columns:1fr 1fr"][style*="gap:24px"][style*="margin-bottom:0"] {
    grid-template-columns: 1fr !important;
  }

  /* Stack the Supporting Bodies 3-column grid into a single column */
  [style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Reduce padding on each box so text fits */
  [style*="padding:28px"] {
    padding: 20px 16px !important;
  }

  [style*="padding:20px"] {
    padding: 16px 14px !important;
  }

  /* Shrink heading font sizes in the boxes */
  [style*="font-size:1.4rem"] {
    font-size: 1.1rem !important;
  }

  [style*="font-size:1.2rem"] {
    font-size: 1rem !important;
  }

  /* Reduce arrow spacing */
  [style*="font-size:2rem"] {
    font-size: 1.5rem !important;
    margin-bottom: 32px !important;
  }
}

/* ---------- 700px ---------- */
@media (max-width: 700px) {
  nav.links { display: none; }
  .menu-btn { display: block; }

  section { padding: 64px 0; }
  .hero { min-height: 600px; }
  .values-list { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
  .structure-list li { grid-template-columns: 44px 1fr; }
  .rr-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 2.8rem; }
  .lang-tabs {
    margin-bottom: 32px;
  }

  .lang-tab {
    font-size: 0.85rem;
    padding: 14px 8px;
    letter-spacing: 0.02em;
  }

/* --- Vote banner --- */
.vote-banner {
    padding: 20px 12px;
}

.vote-banner-top {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    padding: 10px 12px;
}

/* Keep the 3-cell strip in a single row, not stacked */
.vote-banner-strip {
    grid-template-columns: 1.6fr 1fr 1fr;
}

.vote-cell {
    min-height: 80px;
    padding: 12px 8px;
}

/* Keep the vertical divider borders between cells */
.vote-cell+.vote-cell {
    border-left: 2px solid var(--black);
    border-top: none;
}

.vote-cell-text {
    font-size: 1.4rem;
    white-space: normal;
    text-align: center;
    line-height: 1;
}

.vote-cell-logo img {
    max-height: 48px;
}

.vote-cell-x span {
    width: 32px;
    height: 5px;
}

/* Countdown — 2x2 grid */
.vote-banner-countdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 16px 12px;
    text-align: center;
}

.cd-sep {
    display: none;
}

.cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.cd-unit strong {
    font-size: 1.6rem;
    min-width: auto;
    text-align: center;
    line-height: 1;
}

.cd-unit em {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    color: var(--grey-light);
}

  .board-hero { padding: 32px 16px; }
  .board-hero-figure img { max-height: 320px; }
  .board-hero::before {
    background-size: 100px 100px;
    opacity: 0.05;
  }

  .footer-brand-block { max-width: 100%; }
  .footer-brand span { font-size: 1.3rem; }
  .footer-tagline-main { font-size: 1rem; }

  .councillors-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .councillor-info { padding: 14px 14px 18px; }
  .councillor-name { font-size: 0.95rem; }
  .councillor-ward { font-size: 0.65rem; }

   /* Hamburger button becomes visible */
  .menu-btn { display: block; }

  /* Nav links start hidden */
  nav.links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--black);
    padding: 0;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }

  /* Nav opens when .open class is added */
  nav.links.open {
    max-height: 500px;
    padding: 12px 0;
  }

  nav.links a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--grey-line);
    font-size: 1rem;
    width: 100%;
  }

  nav.links a:last-child {
    border-bottom: none;
  }

  /* Hide the ::after underline on mobile */
  nav.links a::after {
    display: none;
  }

  /* Nav CTA below the links */
  .nav-cta {
    display: none; /* Or show below — see below */
  }

  header {
    position: relative; /* So the dropdown is positioned under it */
  }
}

/* ---------- 500px ---------- */
@media (max-width: 500px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- 480px ---------- */
@media (max-width: 480px) {
  .principles-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; text-align: center; justify-content: center; }
}

/* ---------- 420px ---------- */
@media (max-width: 420px) {
  .councillors-grid { grid-template-columns: 1fr; }
}

/* ---------- CONSTITUTION PAGE: MOBILE FIXES ---------- */

/* Bill of Rights — 2-column grid */
@media (max-width: 900px) {
  [style*="grid-template-columns:1fr 1fr"][style*="gap:32px"][style*="max-width:900px"] {
    grid-template-columns: 1fr !important;
  }
}

/* Anti-Corruption — 3-column grid */
@media (max-width: 900px) {
  [style*="grid-template-columns:repeat(3,1fr)"][style*="gap:2px"] {
    grid-template-columns: 1fr !important;
  }
}

/* Prevent any inline-style element from exceeding the viewport */
@media (max-width: 900px) {
  [style*="max-width:900px"],
  [style*="max-width:800px"] {
    max-width: 100% !important;
  }
}

/* Reduce padding on the inner cards so text fits */
@media (max-width: 900px) {
  [style*="padding:28px"] {
    padding: 22px 18px !important;
  }
  [style*="padding:32px 26px"] {
    padding: 24px 20px !important;
  }
}

/* Prevent horizontal scroll page-wide */
html, body {
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

/* Break long words that might cause overflow */
p, li, h1, h2, h3, h4, .platform-item-title {
  overflow-wrap: break-word;
  word-wrap: break-word;
}