:root {
  --green-950: #073b1b;
  --green-900: #0b4c24;
  --green-800: #0b5d2a;
  --green-700: #147238;
  --lime: #83b735;
  --blue: #2d8bb6;
  --ink: #17211b;
  --muted: #5c6961;
  --line: #dce3de;
  --soft: #f3f6f3;
  --white: #fff;
  --shadow: 0 18px 50px rgba(7, 59, 27, .10);
  --radius: 20px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, summary { font: inherit; }

.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;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 9999;
  padding: 10px 14px;
  color: white;
  background: var(--green-950);
  border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }
.wrap { width: min(calc(100% - 40px), var(--wrap)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 940px); }
.section { padding: 104px 0; }
.soft { background: var(--soft); }
.dark { color: white; background: var(--green-950); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h1 { max-width: 900px; margin-bottom: 22px; font-size: clamp(3rem, 7.5vw, 6.6rem); font-weight: 850; }
h2 { margin-bottom: 22px; font-size: clamp(2.25rem, 5vw, 4.45rem); font-weight: 820; }
h3 { margin-bottom: 10px; font-size: 1.35rem; }
p { margin-bottom: 1.1em; }
.lead { font-size: clamp(1.15rem, 2vw, 1.42rem); line-height: 1.55; }
.eyebrow {
  margin-bottom: 16px;
  color: var(--green-700);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow.light { color: #bfe28a; }
.section-heading { max-width: 820px; margin-bottom: 48px; }
.section-heading > p:last-child { max-width: 700px; color: var(--muted); font-size: 1.08rem; }

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(7, 59, 27, .09);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}
.header-inner {
  display: flex;
  width: min(calc(100% - 40px), var(--wrap));
  min-height: 82px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand { display: block; flex: 0 0 auto; }
.brand img { width: 168px; height: auto; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.3vw, 36px); }
.main-nav a {
  position: relative;
  font-size: .94rem;
  font-weight: 720;
  text-decoration: none;
}
.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--lime);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--green-800); }
.menu-button { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; }
.menu-button > span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--ink); transition: .2s; }

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 82px));
  overflow: hidden;
  color: white;
  background: var(--green-950);
}
.hero-image { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: center; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 35, 17, .94) 0%, rgba(4, 35, 17, .88) 22%, rgba(4, 35, 17, .74) 44%, rgba(4, 35, 17, .50) 64%, rgba(4, 35, 17, .27) 84%, rgba(4, 35, 17, .18) 100%),
    linear-gradient(0deg, rgba(4, 35, 17, .74), transparent 45%);
}
.hero-content { position: relative; display: flex; min-height: inherit; padding-top: 80px; padding-bottom: 42px; flex-direction: column; justify-content: center; }
.hero-lead { max-width: 730px; margin-bottom: 34px; color: #eef7f0; font-size: clamp(1.15rem, 2.2vw, 1.45rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button {
  display: inline-flex;
  min-height: 50px;
  padding: 12px 22px;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s, background .2s, color .2s;
}
.button:hover { transform: translateY(-2px); }
.button.primary { color: var(--green-950); background: var(--lime); }
.button.secondary { color: white; border-color: rgba(255, 255, 255, .65); background: rgba(255, 255, 255, .06); }
.button.secondary:hover { color: var(--green-950); background: white; }
.village-list { display: flex; margin-top: auto; padding-top: 48px; flex-wrap: wrap; gap: 10px 18px; }
.village-list span { color: #eef7f0; font-size: .78rem; font-weight: 820; letter-spacing: .09em; text-transform: uppercase; }
.village-list span:not(:last-child)::after { margin-left: 18px; color: var(--lime); content: "•"; }

.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: start; gap: clamp(44px, 7vw, 90px); }
.editorial-image { position: sticky; top: 112px; margin: 0; }
.editorial-image img { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
figcaption { padding-top: 14px; color: var(--muted); font-size: .88rem; line-height: 1.45; }

.candidate-grid { display: grid; gap: 22px; }
.featured-candidates { grid-template-columns: 1fr; }
.candidate-card { display: grid; overflow: hidden; grid-template-columns: minmax(260px, 330px) 1fr; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 28px rgba(7, 59, 27, .05); }
.candidate-card > img { width: 100%; height: auto; aspect-ratio: 1 / 1; align-self: start; object-fit: cover; }
.candidate-copy { position: relative; padding: 30px; }
.candidate-number { position: absolute; top: 18px; right: 22px; margin: 0; color: #d3ded6; font-size: 2.8rem; font-weight: 900; line-height: 1; }
.candidate-copy h3 { max-width: calc(100% - 46px); font-size: 1.55rem; }
.role { color: var(--green-700); font-size: .94rem; font-weight: 750; }
.candidate-copy > p:not(.role, .candidate-number) { color: #445049; font-size: .96rem; }
details summary { cursor: pointer; }
.candidate-copy details { border-top: 1px solid var(--line); }
.candidate-copy details summary { padding-top: 13px; color: var(--green-700); font-size: .9rem; font-weight: 800; }
.candidate-copy details p { margin: 13px 0 0; color: var(--muted); font-size: .91rem; }
.other-candidates { margin-top: 22px; grid-template-columns: repeat(3, 1fr); }
.candidate-small { display: flex; min-width: 0; padding: 18px; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.candidate-small img { width: 78px; height: 78px; flex: 0 0 78px; border-radius: 50%; object-fit: cover; }
.candidate-small span { color: var(--lime); font-size: .8rem; font-weight: 900; }
.candidate-small h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.candidate-small p { margin: 0; color: var(--muted); font-size: .85rem; }

.program-list { border-top: 1px solid var(--line); }
.program-item { border-bottom: 1px solid var(--line); }
.program-item summary { display: grid; padding: 28px 0; grid-template-columns: 72px 1fr auto; align-items: center; gap: 16px; list-style: none; }
.program-item summary::-webkit-details-marker { display: none; }
.program-item summary > span { color: var(--lime); font-size: 1.2rem; font-weight: 900; }
.program-item summary strong { font-size: clamp(1.25rem, 2.5vw, 1.65rem); letter-spacing: -.025em; }
.program-item summary em { color: var(--muted); font-size: .8rem; font-style: normal; }
.program-item summary em::before { margin-right: 7px; content: "+"; color: var(--green-700); font-size: 1.25rem; font-weight: 800; }
.program-item[open] summary em::before { content: "−"; }
.program-body { padding: 0 0 34px 88px; }
.program-body p { max-width: 760px; color: #435048; }


/* Printed program: the same icons and short, readable topic blocks. */
.program-mark { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.program-mark img { width: 48px; height: 48px; object-fit: contain; }
.program-item summary em span { font-size: inherit; font-weight: inherit; color: inherit; }
.program-item .when-open, .program-item[open] .when-closed { display: none; }
.program-item[open] .when-open { display: inline; }
.program-point + .program-point { margin-top: 26px; }
.program-point h3 { max-width: 760px; margin-bottom: 8px; color: var(--green-800); font-size: 1.08rem; line-height: 1.4; letter-spacing: -.015em; }
.program-point p { margin-bottom: 0; }
.program-figure { margin: 28px 0 0; }
.program-figure img { width: 100%; height: auto; }
.program-figure a { overflow-wrap: anywhere; }
.principles-grid .newspaper-forest { aspect-ratio: auto; height: auto; }

.principles-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(45px, 8vw, 100px); }
.principles-grid h2 { font-size: clamp(2.3rem, 4.5vw, 4rem); }
.principles-grid img { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); object-fit: cover; }
.principles-grid p:not(.eyebrow) { color: #dce9df; }

.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.story-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 10px 35px rgba(7, 59, 27, .07); }
.story-card.wide { display: grid; grid-column: span 2; grid-template-columns: 1.4fr 1fr; }
.card-media { min-width: 0; margin: 0; background: #f8faf8; }
.card-media figcaption { padding: 10px 14px 12px; border-top: 1px solid #e9eeea; color: #747d77; font-size: .8rem; font-style: italic; line-height: 1.35; }
.story-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.story-card.wide .card-media { display: flex; height: 100%; flex-direction: column; }
.story-card.wide .card-media img { min-height: 360px; flex: 1; aspect-ratio: auto; }
.story-card > div { padding: 28px; }
.story-card h3 { font-size: 1.45rem; }
.story-card p { margin: 0; color: var(--muted); }

.village-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.village-card { display: grid; overflow: hidden; grid-template-columns: 48% 52%; border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.village-card:nth-child(even) { grid-template-columns: 52% 48%; }
.village-card:nth-child(even) .card-media { order: 2; }
.village-card:nth-child(even) > div { order: 1; }
.village-card .card-media { display: flex; height: 100%; flex-direction: column; }
.village-card img { width: 100%; min-height: 360px; flex: 1; object-fit: cover; }
.village-card > div { position: relative; padding: clamp(30px, 4vw, 50px); align-self: center; }
.village-card span { color: var(--lime); font-size: .8rem; font-weight: 900; }
.village-card h3 { margin-top: 10px; font-size: 1.8rem; }
.village-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.visual-note { max-width: 760px; margin: 32px auto 0; color: var(--muted); font-size: .86rem; text-align: center; }

/* The approved full crops stay aligned and visible in both comparison layers. */
.comparison-space { display: flex; flex: 1; align-items: center; }
.image-comparison { --comparison-position: 50%; position: relative; width: 100%; overflow: hidden; isolation: isolate; }
.village-card .image-comparison img { display: block; width: 100%; height: auto; min-height: 0; flex: none; aspect-ratio: auto; user-select: none; }
.village-card .image-comparison .comparison-before { display: none; }
.image-comparison.is-ready .comparison-before { position: absolute; inset: 0; display: block; height: 100%; clip-path: inset(0 calc(100% - var(--comparison-position)) 0 0); }
/* Gentle display-only tone matching; original photographs and their details stay intact. */
.image-comparison .comparison-before[src$="strkov-before.webp"] { filter: brightness(1.16) contrast(.96) saturate(1.12); }
.image-comparison .comparison-before[src$="bratronov-before.webp"] { filter: brightness(1.025) contrast(1.015) saturate(1.08); }
.comparison-divider, .comparison-input { display: none; }
.image-comparison.is-ready .comparison-divider { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--comparison-position); display: block; width: 2px; background: white; box-shadow: 0 0 4px #0006; transform: translateX(-50%); pointer-events: none; }
.comparison-handle { position: absolute; top: 50%; left: 50%; display: grid; width: 44px; height: 44px; place-items: center; border: 2px solid white; border-radius: 50%; background: var(--green-950); box-shadow: 0 2px 8px #0004; transform: translate(-50%, -50%); }
.comparison-handle svg { width: 26px; height: 26px; fill: none; stroke: white; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.image-comparison.is-ready .comparison-input { position: absolute; z-index: 4; inset: 0; display: block; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.image-comparison:focus-within { outline: 3px solid var(--blue); outline-offset: -3px; }
.village-card .comparison-label { position: absolute; z-index: 3; top: 10px; padding: 4px 8px; border-radius: 4px; color: white; background: #073b1be6; font-size: clamp(.62rem, 1.2vw, .73rem); font-weight: 650; line-height: 1.4; pointer-events: none; }
.comparison-label-before { left: 10px; display: none; }
.image-comparison.is-ready .comparison-label-before { display: block; }
.comparison-label-after { right: 10px; }
.image-comparison .comparison-label[hidden] { display: none; }

.vote { background: white; }
.vote-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(50px, 8vw, 110px); }
.election-facts { display: grid; margin: 32px 0; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.election-facts div { padding: 16px; border-left: 3px solid var(--lime); background: var(--soft); }
.election-facts span, .election-facts strong { display: block; }
.election-facts span { color: var(--green-800); font-size: 1.15rem; font-weight: 900; }
.election-facts strong { color: var(--muted); font-size: .78rem; font-weight: 700; }
.ballot { padding: clamp(24px, 4vw, 42px); border: 1px solid #c7cbc8; background: #fbfbf9; box-shadow: var(--shadow); transform: rotate(.35deg); }
.ballot-label { margin-bottom: 10px; color: #727a75; font-family: Georgia, serif; font-size: .8rem; text-transform: uppercase; }
.ballot-party { display: flex; padding: 12px 0 18px; align-items: center; gap: 16px; border-top: 2px solid #333; border-bottom: 2px solid #333; }
.big-box { display: grid; width: 46px; height: 36px; place-items: center; flex: 0 0 46px; border: 2px solid #222; font-family: Georgia, serif; font-size: 2.25rem; line-height: .6; }
.ballot-party strong { display: block; font-family: Georgia, serif; font-size: 1.45rem; }
.ballot-party small { display: block; font-family: Georgia, serif; }
.ballot ol { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: ballot; }
.ballot li { display: grid; padding: 7px 0; grid-template-columns: 26px 32px 1fr auto; align-items: baseline; gap: 10px; border-bottom: 1px solid #d9d9d4; counter-increment: ballot; font-family: Georgia, serif; font-size: .88rem; }
.ballot li::before { content: counter(ballot) "."; color: #555; }
.ballot li > span { display: block; width: 28px; height: 19px; grid-column: 2; border: 1.5px solid #333; }
.ballot li strong { grid-column: 3; }
.ballot li small { grid-column: 4; color: #5c625e; text-align: right; }
.ballot-note { margin: 16px 0 0; color: #6b726e; font-size: .75rem; text-align: center; }

.contact-band { padding: 76px 0; color: white; background: linear-gradient(105deg, var(--green-900), var(--green-700)); }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.contact-inner h2 { margin-bottom: 8px; font-size: clamp(2rem, 4vw, 3.2rem); }
.contact-inner p:not(.eyebrow) { margin: 0; color: #e2f0e5; }
.contact-inner .button { flex: 0 0 auto; }

.site-footer { padding: 40px 0; border-top: 1px solid var(--line); background: white; }
.footer-inner { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 28px; }
.footer-inner img { width: 130px; height: auto; object-fit: contain; }
.footer-inner p { margin: 2px 0 0; color: var(--muted); font-size: .85rem; }
.footer-inner a { color: var(--green-700); font-size: .9rem; font-weight: 800; text-decoration: none; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

@media (max-width: 980px) {
  .section { padding: 82px 0; }
  .main-nav { gap: 16px; }
  .main-nav a { font-size: .83rem; }
  .intro-grid, .principles-grid, .vote-grid { grid-template-columns: 1fr; }
  .editorial-image { position: static; }
  .candidate-card { grid-template-columns: 230px 1fr; }
  .other-candidates { grid-template-columns: 1fr; }
  .village-card, .village-card:nth-child(even) { grid-template-columns: 42% 58%; }
  .vote-grid { align-items: start; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 70px; }
  body { font-size: 16px; }
  .wrap, .narrow { width: min(calc(100% - 28px), var(--wrap)); }
  .section { padding: 68px 0; }
  .header-inner { width: calc(100% - 28px); min-height: 70px; }
  .brand img { width: 132px; }
  .menu-button { display: block; }
  .menu-button[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    display: none;
    padding: 12px 20px 24px;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: white;
    box-shadow: 0 18px 30px rgba(0, 0, 0, .1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; font-size: 1rem; }
  .hero { min-height: calc(100svh - 70px); }
  .hero-shade { background: linear-gradient(90deg, rgba(4, 35, 17, .94), rgba(4, 35, 17, .62)), linear-gradient(0deg, rgba(4, 35, 17, .78), transparent 55%); }
  .hero-content { padding-top: 58px; }
  .hero-lead { font-size: 1.07rem; }
  .village-list { padding-top: 34px; }
  .featured-candidates { grid-template-columns: 1fr; }
  .candidate-card { grid-template-columns: 1fr; }
  .candidate-card > img { height: auto; min-height: 0; aspect-ratio: 1 / 1; }
  .candidate-copy { padding: 25px; }
  .program-item summary { padding: 24px 0; grid-template-columns: 46px 1fr; }
  .program-item summary em { display: none; }
  .program-body { padding-left: 62px; }
  .program-mark img { width: 40px; height: 40px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card.wide { display: block; grid-column: auto; }
  .story-card.wide .card-media { height: auto; }
  .story-card.wide .card-media img { min-height: 0; flex: none; aspect-ratio: 16 / 9; }
  .village-card, .village-card:nth-child(even) { display: block; }
  .village-card .card-media { height: auto; }
  .village-card img { min-height: 0; flex: none; aspect-ratio: 16 / 10; }
  .election-facts { grid-template-columns: 1fr; }
  .ballot { padding: 22px 18px; transform: none; }
  .ballot li { grid-template-columns: 24px 30px 1fr; }
  .ballot li strong { grid-column: 3; }
  .ballot li small { grid-column: 3; text-align: left; }
  .contact-inner { align-items: flex-start; flex-direction: column; }
  .footer-inner { grid-template-columns: 110px 1fr; }
  .footer-inner a { grid-column: span 2; }
}

@media (max-width: 420px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.15rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .candidate-small { padding: 14px; }
  .candidate-small img { width: 62px; height: 62px; flex-basis: 62px; }
  .candidate-small h3 { font-size: .96rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
