/* ShiftNG website. Brand palette only: Forest green, Leaf green, Dark
   Goldenrod and White (designer's brand guide), plus neutral greys for
   body text and lines. Nothing is loaded from other companies. */
/* Ubuntu Bold, for the ShiftNG wordmark only. Served from this site
   (fonts/, with its licence, UFL.txt). */
@font-face {
  font-family: "Ubuntu";
  src: url("fonts/Ubuntu-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #0E5C35;        /* Forest green */
  --leaf: #539940;         /* Leaf green */
  --gold: #B98B2D;         /* Dark Goldenrod */
  --white: #FFFFFF;
  --green-dark: #0A4628;   /* Forest green, pressed state */
  --green-tint: #EEF6EB;   /* Leaf green, very light */
  --gold-tint: #F8F1E3;    /* Dark Goldenrod, very light */
  --text: #1A202C;
  --muted: #4A5568;
  --line: #E2E8F0;
  --bg: #FAFBFC;
  --card: #FFFFFF;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(14, 92, 53, 0.07);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--green); }
a:hover { color: var(--green-dark); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  flex-wrap: wrap;
}
.wordmark {
  font-family: Ubuntu, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.3px;
  text-decoration: none;
  color: var(--green);
}
.wordmark span { color: var(--leaf); }
.wordmark:hover { color: var(--green); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 8px;
}
.nav a:hover { background: var(--green-tint); color: var(--green); }
.nav a[aria-current="page"] { color: var(--green); background: var(--green-tint); }

/* Hero */
.hero {
  background: var(--green);
  border-bottom: 6px solid var(--gold);
  color: var(--white);
  padding: 64px 0 72px;
}
.hero h1 {
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 0 18px;
  max-width: 780px;
}
.hero p { font-size: 19px; color: #E4F0E7; max-width: 680px; margin: 0 0 28px; }
.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--gold);
  color: #FFFFFF;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.button {
  display: inline-block;
  background: var(--white);
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 10px;
}
.button:hover { background: var(--gold-tint); color: var(--green-dark); }
.soon { color: #E4F0E7; font-size: 15px; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(24px, 4vw, 32px); letter-spacing: -0.5px; line-height: 1.2; margin: 0 0 10px; }
.lead { color: var(--muted); max-width: 720px; margin: 0 0 28px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--leaf);
}
section.alt .card { background: var(--bg); }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--green);
  background: var(--gold-tint);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 10px;
}

/* Text pages */
.page { padding: 48px 0 64px; }
.page h1 { font-size: clamp(28px, 5vw, 40px); letter-spacing: -0.8px; line-height: 1.15; margin: 0 0 12px; }
.page h2 { font-size: 22px; margin: 36px 0 8px; }
.prose { max-width: 720px; }
.prose p, .prose li { color: var(--text); }
.prose .muted { color: var(--muted); }
.quote {
  border-left: 4px solid var(--gold);
  background: var(--green-tint);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 16px 0;
}
.quote p { margin: 0; }

.contact-list { display: grid; gap: 12px; max-width: 720px; margin-top: 20px; }
.contact-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.contact-item h3 { margin: 0 0 2px; font-size: 17px; }
.contact-item p { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.contact-item a { font-weight: 700; word-break: break-all; }

/* Footer */
.site-footer {
  background: var(--green);
  border-top: 6px solid var(--gold);
  color: #E4F0E7;
  padding: 36px 0;
  font-size: 15px;
}
.site-footer a { color: var(--white); }
.site-footer .wrap { display: grid; gap: 12px; }
.site-footer .links { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer p { margin: 0; max-width: 760px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 44px 0 52px; }
  .hero p { font-size: 17px; }
  section { padding: 40px 0; }
  .site-header .wrap { padding-top: 8px; padding-bottom: 8px; }
}

/* Elections and polling-unit finder */
.small-note { font-size: 14px; color: var(--muted); margin-top: 12px !important; }
.day ul { margin: 12px 0 0; padding-left: 18px; color: var(--text); }
.day li { margin-bottom: 4px; }
.countdown { font-weight: 700; color: var(--leaf) !important; margin: 4px 0 0 !important; }
.election-days { margin-top: 24px; }
.cta-band {
  margin: 36px 0 8px;
  background: var(--green-tint);
  border: 1px solid var(--line);
  border-left: 6px solid var(--leaf);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 6px; font-size: 22px; }
.cta-band p { margin: 0; color: var(--muted); max-width: 640px; }
.button-green { background: var(--green); color: var(--white); }
.button-green:hover { background: var(--green-dark); color: var(--white); }
.steps li { margin-bottom: 8px; }

.finder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 20px 0 12px;
  box-shadow: var(--shadow);
}
.finder label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--green); }
.finder select, .finder input {
  font: inherit;
  font-weight: 400;
  color: var(--text);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  width: 100%;
}
.finder select:disabled, .finder input:disabled { background: var(--bg); color: var(--muted); }
.finder-search { grid-column: 1 / -1; }
.seats-card { margin: 12px 0 20px; border-top: 4px solid var(--gold); }
.seats-card h2 { font-size: 22px; margin: 0 0 4px; }
.seats-card h3 { font-size: 15px; color: var(--green); margin: 16px 0 6px; }
.seat-list { list-style: none; padding: 0; margin: 0; }
.seat-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.seat-label { color: var(--muted); }
.seat-value { font-weight: 700; text-align: right; }
.seat-missing { font-weight: 400; color: var(--muted); font-style: italic; }
.unit-list h2 { font-size: 20px; margin: 8px 0 10px; }
.units { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.units li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: grid; gap: 2px; }
.unit-name { font-weight: 700; }
.unit-meta { font-size: 14px; color: var(--muted); }
.link-button {
  justify-self: start;
  background: none;
  border: none;
  padding: 4px 0 0;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  cursor: pointer;
  text-decoration: underline;
}
.note-box {
  margin-top: 28px;
  background: var(--gold-tint);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 15px;
}
.note-box p { margin: 0 0 8px; }
.note-box p:last-child { margin-bottom: 0; }
