/**
 * Together Britain Collective - Main Styles
 * Primary: #6A1B9A | Secondary: #8E44AD | Text: #4A4A4A | BG: #F2F2F2
 */

:root {
  --primary: #6A1B9A;
  --primary-dark: #4A148C;
  --secondary: #8E44AD;
  --text: #4A4A4A;
  --text-light: #6A6A6A;
  --bg: #F2F2F2;
  --bg-white: #FFFFFF;
  --border: #E0E0E0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 20px rgba(106, 27, 154, 0.15);
  --font-sans: 'Montserrat', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.main-content {
  min-height: 60vh;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  display: flex;
  align-items: center;
}
.logo-img {
  display: block;
  max-height: 96px;
  width: auto;
  height: auto;
  object-fit: contain;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .logo-img {
    max-height: 48px;
  }
}

.logo:hover {
  color: var(--primary-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: rgba(106, 27, 154, 0.08);
}

/* Policies dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-dropdown-arrow {
  font-size: 0.7em;
  opacity: 0.8;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu li {
  margin: 0;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: rgba(106, 27, 154, 0.08);
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
    z-index: 1001;
    background: rgba(106, 27, 154, 0.08);
    border: 1px solid rgba(106, 27, 154, 0.2);
  }

  .nav-toggle:hover {
    background: rgba(106, 27, 154, 0.12);
  }

  .nav-toggle span {
    background: var(--primary) !important;
    height: 3px;
    min-height: 3px;
    border-radius: 2px;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .site-header {
    overflow: visible;
  }

  .header-inner {
    position: relative;
    width: 100%;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 0.35s ease-out, visibility 0s linear 0.35s;
    z-index: 999;
    border: none;
    border-top: none;
  }

  .main-nav.is-open {
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: visible;
    pointer-events: auto;
    transition: max-height 0.35s ease-out, visibility 0s linear 0s;
    box-shadow: var(--shadow);
    border-top: 1px solid var(--border);
  }

  .main-nav ul {
    flex-direction: column;
    padding: 0.75rem 1rem 1rem;
    align-items: stretch;
    gap: 0;
  }

  .main-nav > ul > li {
    border-bottom: 1px solid var(--border);
  }

  .main-nav > ul > li:last-child {
    border-bottom: none;
  }

  .main-nav a {
    padding: 0.85rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-dropdown > a {
    justify-content: space-between;
  }

  .nav-dropdown-arrow {
    transition: transform 0.2s ease;
  }

  .nav-dropdown.is-open .nav-dropdown-arrow {
    transform: rotate(180deg);
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0.5rem 1.5rem;
    margin-top: 0;
    margin-bottom: 0.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    max-height: 70vh;
    overflow-y: auto;
  }

  .nav-dropdown-menu a {
    white-space: normal;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    min-height: 0;
  }
}

/* --- Containers --- */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero .subheading {
  font-size: 1.1rem;
  opacity: 0.95;
  margin: 0 0 0.5rem;
  line-height: 1.6;
}

.hero-lead {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0 0 2rem;
  max-width: 32em;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-hero-primary {
  background: #fff;
  color: var(--primary);
  border: 2px solid #fff;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-hero-primary:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

/* Thanet hero: coastal blue variant */
.thanet-hero {
  background: linear-gradient(135deg, #0d47a1 0%, #0277bd 50%, #0288d1 100%);
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
}

.thanet-hero .hero-inner { max-width: 800px; margin: 0 auto; }
.thanet-hero h1 { margin: 0 0 1rem; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.2; }
.thanet-hero .subheading { font-size: 1.1rem; opacity: 0.95; margin: 0 0 0.5rem; }
.thanet-hero .hero-lead { font-size: 1rem; opacity: 0.9; margin: 0 0 2rem; max-width: 32em; margin-left: auto; margin-right: auto; }
.thanet-hero .hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.thanet-hero .btn-hero-primary { background: #fff; color: #0277bd; border: 2px solid #fff; }
.thanet-hero .btn-hero-primary:hover { background: transparent; color: #fff; border-color: #fff; }
.thanet-hero .btn-outline { border-color: rgba(255,255,255,0.8); color: #fff; }
.thanet-hero .btn-outline:hover { background: rgba(255,255,255,0.2); border-color: #fff; color: #fff; }

/* LGBT Division hero: purple variant */
.lgbt-hero {
  background: linear-gradient(135deg, #4a148c 0%, #6a1b9a 50%, #7b1fa2 100%);
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
}

.lgbt-hero .hero-inner { max-width: 800px; margin: 0 auto; }
.lgbt-hero h1 { margin: 0 0 1rem; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.2; }
.lgbt-hero .subheading { font-size: 1.1rem; opacity: 0.95; margin: 0 0 0.5rem; }
.lgbt-hero .hero-lead { font-size: 1rem; opacity: 0.9; margin: 0 0 2rem; max-width: 32em; margin-left: auto; margin-right: auto; }
.lgbt-hero .hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.lgbt-hero .btn-hero-primary { background: #fff; color: #6a1b9a; border: 2px solid #fff; }
.lgbt-hero .btn-hero-primary:hover { background: transparent; color: #fff; border-color: #fff; }
.lgbt-hero .btn-outline { border-color: rgba(255,255,255,0.8); color: #fff; }
.lgbt-hero .btn-outline:hover { background: rgba(255,255,255,0.2); border-color: #fff; color: #fff; }

/* LGBT Division: featured section and policy hero */
.lgbt-featured {
  background: linear-gradient(135deg, #4a148c 0%, #6a1b9a 50%, #7b1fa2 100%) !important;
}

.lgbt-featured .btn-primary { background: #fff; color: #6a1b9a; }
.lgbt-featured .btn-primary:hover { background: rgba(255,255,255,0.9); color: #6a1b9a; }
.lgbt-featured .btn-outline-dark { border-color: rgba(255,255,255,0.8); color: #fff; }
.lgbt-featured .btn-outline-dark:hover { background: rgba(255,255,255,0.2); border-color: #fff; color: #fff; }

.lgbt-hero-policy {
  background: linear-gradient(135deg, #4a148c 0%, #6a1b9a 50%, #7b1fa2 100%);
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
}

.lgbt-hero-policy .hero-inner { max-width: 800px; margin: 0 auto; }
.lgbt-hero-policy h1 { margin: 0 0 0.5rem; color: #fff; }
.lgbt-hero-policy .subheading { opacity: 0.95; }

/* Fudge Montague leader sub-site: deep orange/amber variant */
.fudge-montague-hero {
  background: linear-gradient(135deg, #bf360c 0%, #d84315 50%, #e64a19 100%);
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
}

.fudge-montague-hero .hero-inner { max-width: 800px; margin: 0 auto; }
.fudge-montague-hero h1 { margin: 0 0 1rem; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.2; }
.fudge-montague-hero .subheading { font-size: 1.1rem; opacity: 0.95; margin: 0 0 0.5rem; }
.fudge-montague-hero .hero-lead { font-size: 1rem; opacity: 0.9; margin: 0 0 2rem; max-width: 32em; margin-left: auto; margin-right: auto; }
.fudge-montague-hero .hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.fudge-montague-hero .btn-hero-primary { background: #fff; color: #bf360c; border: 2px solid #fff; }
.fudge-montague-hero .btn-hero-primary:hover { background: transparent; color: #fff; border-color: #fff; }
.fudge-montague-hero .btn-outline { border-color: rgba(255,255,255,0.8); color: #fff; }
.fudge-montague-hero .btn-outline:hover { background: rgba(255,255,255,0.2); border-color: #fff; color: #fff; }

.fudge-montague-featured {
  background: linear-gradient(135deg, #bf360c 0%, #d84315 50%, #e64a19 100%) !important;
}

.fudge-montague-featured .btn-primary { background: #fff; color: #bf360c; }
.fudge-montague-featured .btn-primary:hover { background: rgba(255,255,255,0.9); color: #bf360c; }
.fudge-montague-featured .btn-outline-dark { border-color: rgba(255,255,255,0.8); color: #fff; }
.fudge-montague-featured .btn-outline-dark:hover { background: rgba(255,255,255,0.2); border-color: #fff; color: #fff; }

.fudge-montague-hero-policy {
  background: linear-gradient(135deg, #bf360c 0%, #d84315 50%, #e64a19 100%);
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
}

.fudge-montague-hero-policy .hero-inner { max-width: 800px; margin: 0 auto; }
.fudge-montague-hero-policy h1 { margin: 0 0 0.5rem; color: #fff; }
.fudge-montague-hero-policy .subheading { opacity: 0.95; }

/* Home: stats counter strip */
.home-stats {
  background: var(--bg-alt);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.home-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 3rem;
}

.home-stat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}

.home-stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.home-stat-label {
  font-size: 1rem;
  color: var(--text-light);
}

.home-stat-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}

.home-stat-link:hover {
  text-decoration: underline;
}

/* Home: trust strip */
.home-trust {
  background: var(--bg-white);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.home-trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

.home-trust-inner a {
  color: var(--primary);
  text-decoration: none;
}

.home-trust-inner a:hover {
  text-decoration: underline;
}

.home-welcome-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Thanet (and similar): vision / pillars grid */
.home-vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.home-vision-item {
  padding: 1rem 1.25rem;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.section-alt .home-policy-card {
  margin-bottom: 2.5rem;
}

.section-alt .home-policy-card:last-child {
  margin-bottom: 0;
}

.home-pillars {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.home-final-cta {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.home-final-cta-lead {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
}

.home-final-cta .btn {
  margin: 0 0.5rem 0.5rem 0;
}

/* Home: featured regional policy (Kent Coastal) */
.home-featured-regional {
  background: linear-gradient(135deg, #0d47a1 0%, #0277bd 50%, #0288d1 100%);
  color: #fff;
  padding: 2.5rem 1.5rem;
}

.home-featured-regional-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.home-featured-regional-badge {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  opacity: 0.95;
}

.home-featured-regional-title {
  font-size: 1.75rem;
  margin: 0 0 0.25rem;
  color: #fff;
}

.home-featured-regional-sub {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0 0 1rem;
}

.home-featured-regional-card p:last-of-type {
  margin-bottom: 1.25rem;
  opacity: 0.95;
  line-height: 1.6;
}

.home-featured-regional .btn-primary {
  background: #fff;
  color: #0d47a1;
}

.home-featured-regional .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #0d47a1;
}

/* Kent Coastal page */
.hero-badge {
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
  opacity: 0.95;
}

.hero--kent {
  background: linear-gradient(135deg, #0d47a1 0%, #0277bd 50%, #0288d1 100%);
}

.section-num {
  color: var(--primary);
  margin-right: 0.25rem;
}

.list-tick {
  list-style: none;
  padding-left: 0;
}

.list-tick li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.list-tick li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: #fff;
}

.btn-block {
  width: 100%;
}

/* --- Sections --- */
.section {
  padding: 3rem 1.5rem;
}

.section-alt {
  background: var(--bg-white);
}

.section h2 {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  color: var(--text);
  text-align: center;
}

.section-heading {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.section-heading p {
  margin: 0.5rem 0 0;
  color: var(--text-light);
}

.lead {
  font-size: 1.1rem;
  line-height: 1.65;
}

.section h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.25rem;
  color: var(--primary);
}

/* Policy overview blocks (Our Policies page) */
.policy-block {
  max-width: 800px;
  margin: 0 auto;
}

.policy-block .policy-num {
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  line-height: 2.5rem;
  text-align: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  margin-bottom: 0.75rem;
}

.policy-block h2 {
  margin: 0 0 0.5rem;
  text-align: left;
}

.policy-block .policy-tagline {
  font-size: 1.1rem;
  color: var(--secondary);
  font-weight: 500;
  margin: 0 0 1rem;
}

.policy-block p,
.policy-block ul {
  margin: 0 0 1rem;
}

.policy-block .btn {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Homepage policy cards */
.home-policy-card {
  max-width: 800px;
  margin: 0 auto;
}

.home-policy-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: var(--primary);
  text-align: left;
}

.home-policy-card .home-policy-tagline {
  font-size: 1.1rem;
  color: var(--secondary);
  font-weight: 500;
  margin: 0 0 1rem;
}

.home-policy-card p,
.home-policy-card ul {
  margin: 0 0 0.75rem;
}

.home-policy-card .btn {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.home-policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.home-policy-card--compact {
  max-width: none;
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.home-policy-card--compact h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.home-policy-card--compact p {
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

/* Policy / data table */
.table-wrap,
.table-responsive {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table th,
.table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border, #e0e0e0);
}

.table th {
  background: var(--bg-alt, #f5f5f5);
  font-weight: 600;
}

.policy-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: var(--bg-white);
  font-size: 0.95rem;
}

.policy-table th,
.policy-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.policy-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.policy-table tr:last-child td {
  border-bottom: none;
}

.policy-table tbody tr:hover {
  background: rgba(106, 27, 154, 0.04);
}

/* --- Pillars / Cards --- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.pillar-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.pillar-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.pillar-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: var(--primary);
}

.pillar-card p {
  margin: 0;
  color: var(--text);
}

/* Leader page */
.leader-pillars {
  margin-top: 0;
}

.leader-why-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.leader-why-list li {
  margin-bottom: 0.75rem;
}

.leader-cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.leader-cta-card {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.leader-cta-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--primary);
}

.leader-cta-card p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text);
}

.leader-cta-card .btn {
  margin: 0;
}

.leader-email-block {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.leader-email-label {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.leader-email-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}

.leader-email-link:hover {
  text-decoration: underline;
}

.leader-quote {
  margin: 0;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  border-left: 4px solid var(--primary);
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

.leader-quote p {
  margin: 0 0 0.75rem;
  font-style: italic;
}

.leader-quote cite {
  display: block;
  font-size: 0.95rem;
  font-style: normal;
  color: var(--text-light);
}

/* Stats page */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.stats-card {
  background: var(--bg-white);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.stats-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.stats-number {
  margin: 0.5rem 0 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stats-label {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.35;
}

.stats-meta {
  margin: 0.5rem 0 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
  flex-grow: 1;
}

.stats-links {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.stats-links .btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

/* --- Forms --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--text);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(106, 27, 154, 0.15);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-actions {
  margin-top: 1.5rem;
}

.form-error,
.alert-error {
  color: #c62828;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.alert-success {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
}

.alert-error {
  background: #FFEBEE;
  color: #c62828;
  border: 1px solid #EF9A9A;
}

/* --- Page title --- */
.page-header {
  padding: 2rem 1.5rem;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin: 0;
  font-size: 1.75rem;
  color: var(--text);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Blog --- */
.blog-list {
  display: grid;
  gap: 1.5rem;
}

.blog-card {
  display: block;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-hover);
}

.blog-card-inner {
  padding: 1.5rem;
}

.blog-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: var(--primary);
}

.blog-card .meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.blog-card p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

/* --- Events --- */
.events-list {
  display: grid;
  gap: 1.5rem;
}

.event-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.event-card-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem;
  align-items: flex-start;
}

.event-date {
  flex-shrink: 0;
  width: 4rem;
  text-align: center;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.5rem;
}

.event-day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.event-month {
  font-size: 0.75rem;
  text-transform: uppercase;
}

.event-details {
  flex: 1;
  min-width: 0;
}

.event-details h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.event-details h3 a {
  color: var(--primary);
  text-decoration: none;
}

.event-details h3 a:hover {
  text-decoration: underline;
}

.event-meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0 0 0.5rem;
}

.event-location {
  font-style: italic;
}

.event-excerpt {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

/* --- Article / blog & press single --- */
.container--article {
  max-width: 720px;
}

.page-header--article {
  padding: 2.5rem 1.5rem;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span[aria-current="page"] {
  color: var(--text);
}

.article-back {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: none;
}

.article-back:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.article-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.article-meta {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-light);
}

.section--article {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.article-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-light);
  margin: 0 0 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.article-body {
  padding: 0;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
}

.article-body p {
  margin: 0 0 1.75rem;
  padding: 0;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.article-body h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.35rem;
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--primary);
  background: var(--bg);
  font-style: italic;
  color: var(--text);
}

.article-body strong {
  font-weight: 600;
}

.article-body a {
  color: var(--primary);
  text-decoration: underline;
}

.article-body a:hover {
  color: var(--primary-dark);
}

.article-footer {
  margin: 2.5rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.donation-goal-tracker {
  margin: 1rem 0 0;
}

.donation-goal-bar {
  height: 1.5rem;
  background: var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.donation-goal-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-sm);
  transition: width 0.4s ease;
}

.donation-goal-text {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: var(--text-light);
}

.press-about {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.press-about-contact {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.press-about-contact li {
  margin-bottom: 0.5rem;
}

.press-about-contact a {
  color: var(--primary);
  text-decoration: underline;
}

.press-about-contact a:hover {
  color: var(--primary-dark);
}

/* --- Voting --- */
.vote-options {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vote-options li {
  margin-bottom: 0.75rem;
}

.vote-options input[type="radio"] {
  margin-right: 0.5rem;
}

.vote-options label {
  cursor: pointer;
  font-weight: 500;
}

.results-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.results-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.results-list li:last-child {
  border-bottom: none;
}

.results-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.results-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* --- Footer --- */
.site-footer {
  background: var(--text);
  color: #fff;
  margin-top: 3rem;
  padding: 2.5rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #fff;
}

.footer-brand p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.footer-links h4 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-bottom-links {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-bottom-links a {
  color: inherit;
  text-decoration: none;
  opacity: 0.9;
}

.footer-bottom-links a:hover {
  text-decoration: underline;
  opacity: 1;
}

.footer-bottom-links span {
  margin: 0 0.35rem;
  opacity: 0.6;
}

.footer-policy-line {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.footer-legal {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  opacity: 0.9;
  max-width: 720px;
  line-height: 1.5;
}

/* --- Sitemap page --- */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem 2.5rem;
}

.sitemap-block {
  break-inside: avoid;
}

.sitemap-heading {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--border);
}

.sitemap-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sitemap-list li {
  margin: 0;
  padding: 0;
}

.sitemap-list a {
  display: block;
  padding: 0.35rem 0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.4;
}

.sitemap-list a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.sitemap-xml-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* --- Costings Dashboard --- */
.dashboard-section h2 { text-align: left; }
.dashboard-intro { color: var(--text-light); margin-bottom: 1rem; }
.dashboard-tip { font-size: 0.95rem; color: var(--text-light); margin-top: 0.5rem; }
.dashboard-debt-list { margin: 1rem 0; }
.dashboard-total { margin-top: 1rem; font-size: 1rem; }
.dashboard-note { margin-top: 0.75rem; font-size: 0.95rem; color: var(--text-light); }
.dashboard-table tbody tr.exp-debt-row { background: rgba(198, 40, 40, 0.08); }
.dashboard-table tbody tr.exp-debt-row td { border-left: 3px solid #c62828; }
.dashboard-revenue { margin-bottom: 1.5rem; }
.revenue-stack, .expenditure-stack {
  display: flex;
  height: 2rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 100%;
}
.revenue-seg, .exp-seg {
  display: block;
  min-width: 2%;
  transition: opacity 0.2s;
  cursor: default;
}
.revenue-seg:hover, .exp-seg:hover { opacity: 0.85; }
.revenue-seg:nth-child(1) { background: var(--primary); }
.revenue-seg:nth-child(2) { background: var(--secondary); }
.revenue-seg:nth-child(3) { background: #7B1FA2; }
.revenue-seg:nth-child(4) { background: #9C27B0; }
.revenue-seg:nth-child(5) { background: #AB47BC; }
.revenue-seg:nth-child(6) { background: #BA68C8; }
.revenue-seg:nth-child(7) { background: #CE93D8; }
.revenue-seg:nth-child(8) { background: #E1BEE7; }
.exp-seg { background: var(--primary); }
.exp-seg.exp-debt { background: #c62828; }
.dashboard-table .has-tip { cursor: help; }
.gauge-wrap { max-width: 560px; margin: 1.5rem 0; }
.gauge-label { font-size: 0.9rem; margin-top: 0.75rem; margin-bottom: 0.25rem; color: var(--text); }
.gauge-label:first-child { margin-top: 0; }
.gauge-bar {
  height: 2rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}
.gauge-revenue { background: var(--primary); }
.gauge-exp { background: var(--text-light); }
.gauge-surplus.gauge-label { color: #2E7D32; font-weight: 600; }
.gauge-bar.gauge-surplus { background: #2E7D32; color: #fff; }
.gauge-note { margin-top: 1rem; color: var(--text-light); font-size: 0.95rem; }
.calculator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.calculator-card {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.calculator-card label { display: block; margin-bottom: 0.35rem; font-weight: 500; }
.calculator-card .checkbox-label { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.calculator-card input[type="number"] { margin-bottom: 0.75rem; }
.calculator-result { margin: 0.75rem 0 0; font-size: 0.95rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.dashboard-tooltip {
  position: fixed;
  z-index: 9999;
  max-width: 280px;
  padding: 0.5rem 0.75rem;
  background: var(--text);
  color: #fff;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  box-shadow: var(--shadow-hover);
}
.dashboard-tooltip.is-visible { opacity: 1; }
