/* Vote 1 Max Dicks: campaign site styles. No JavaScript needed.
   Layout: white header with logo and nav, navy page bands for headlines,
   one comfortable reading column, navy footer. Colours come from the logo. */
:root {
  --paper: #f6f7f4;
  --card: #ffffff;
  --ink: #002d4b;
  --body-ink: #1c2a38;
  --muted: #4f6274;
  --line: #d8dde2;
  --orange: #f7931d;
  --on-orange: #002d4b;
  --band: #002d4b;
  --on-band: #ffffff;
  --link: #0b5fa5;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Literata", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e141c; --card: #16202b; --ink: #e9edf2; --body-ink: #dfe4ea; --muted: #9ba8b6;
    --line: #2a3644; --orange: #f7931d; --on-orange: #0e141c; --band: #0a2236; --on-band: #ffffff; --link: #8fc1ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e141c; --card: #16202b; --ink: #e9edf2; --body-ink: #dfe4ea; --muted: #9ba8b6;
  --line: #2a3644; --orange: #f7931d; --on-orange: #0e141c; --band: #0a2236; --on-band: #ffffff; --link: #8fc1ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body-ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); text-wrap: balance; margin: 0; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.container.narrow { max-width: 46rem; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; }
.logo img { display: block; height: 3.4rem; width: auto; }
.nav-desktop { display: none; }
.nav-desktop ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem; }
.nav-desktop a, .nav-mobile a {
  font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--ink); text-decoration: none;
}
.nav-desktop a { display: block; padding: 0.55rem 0.85rem; border-bottom: 3px solid transparent; }
.nav-desktop a:hover { border-bottom-color: var(--line); }
.nav-desktop a[aria-current="page"] { border-bottom-color: var(--orange); }
.nav-desktop a.cta, .nav-mobile a.cta { background: var(--orange); color: var(--on-orange); border-bottom-color: transparent; }
.nav-desktop a.cta { padding-inline: 1.1rem; margin-left: 0.5rem; }
.nav-desktop a.cta:hover { filter: brightness(1.06); }

.nav-mobile summary {
  list-style: none; cursor: pointer;
  font-family: var(--display); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); border: 2px solid var(--ink); padding: 0.5rem 0.9rem;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: var(--ink); color: var(--card); }
.nav-mobile ul {
  list-style: none; margin: 0; padding: 0.5rem 0;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--card); border-bottom: 3px solid var(--orange);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}
.nav-mobile a { display: block; padding: 0.8rem max(16px, env(safe-area-inset-left, 0px)); font-size: 1.1rem; }
.nav-mobile a[aria-current="page"] { box-shadow: inset 5px 0 0 var(--orange); }
.nav-mobile li + li { border-top: 1px solid var(--line); }

@media (min-width: 760px) {
  .nav-desktop { display: block; }
  .nav-mobile { display: none; }
}

/* Home hero */
.hero { background: var(--band); color: var(--on-band); }
.hero-photo { position: relative; max-width: 70rem; margin: 0 auto; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 70% 30%; }
.hero-text { display: flex; flex-direction: column; gap: 0.6rem; padding-block: 1.6rem 2rem; }
.hero-name {
  color: var(--on-band);
  font-size: clamp(2rem, 6.5vw, 3.3rem); font-weight: 800; font-stretch: 88%;
  line-height: 1.08; letter-spacing: -0.005em;
}
.hero-name span { color: var(--orange); }
.hero-seat {
  font-family: var(--display); font-weight: 700; font-stretch: 118%;
  font-size: clamp(0.85rem, 2.6vw, 1rem); letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange);
}
.hero-tag { font-size: 1.15rem; max-width: 26rem; }
@media (min-width: 900px) {
  .hero-photo::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0, 45, 75, 0.94) 0%, rgba(0, 45, 75, 0.82) 30%, rgba(0, 45, 75, 0) 58%);
  }
  .hero-text {
    position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; justify-content: center;
    width: 50%; padding: 2.5rem 2.5rem 2.5rem max(2.5rem, env(safe-area-inset-left, 0px));
  }
}

/* Home choice cards */
.section { padding-block: 3rem; }
.section-head { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.4rem; }
.eyebrow {
  font-family: var(--display); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.section-head h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 850; font-stretch: 88%; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.5rem; }
.choice {
  position: relative; display: block; aspect-ratio: 5 / 4; max-width: 100%;
  overflow: hidden; text-decoration: none; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.choice svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.choice .btn {
  position: absolute; bottom: 1.2rem; left: 56%; transform: translateX(-50%);
  white-space: nowrap; padding: 0.75rem 1.2rem;
  background: #ffffff; color: #002d4b;
  font-family: var(--display); font-weight: 800; font-size: 1.1rem; line-height: 1.2;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.choice:hover .btn, .choice:focus-visible .btn { background: #f7931d; color: #002d4b; }
.choice:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: var(--band); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-link { font-family: var(--display); font-weight: 700; font-size: 0.95rem; margin-top: 0.5rem; }
.home-video { max-width: 52rem; }

/* Inner page band */
.page-band { background: var(--band); color: var(--on-band); }
.page-band .container { padding-block: 2.6rem 2.8rem; }
.banner {
  color: var(--on-band);
  font-size: clamp(2.1rem, 7vw, 3.6rem); font-weight: 850; font-stretch: 84%; line-height: 1.04;
}
.banner mark { background: transparent; color: var(--orange); }

/* Inner page content */
.content { padding-block: 0.5rem 3.5rem; display: flex; flex-direction: column; }
.issue { display: flex; flex-direction: column; gap: 1rem; padding-block: 2.6rem 0.4rem; }
.issue + .issue { border-top: 1px solid var(--line); margin-top: 2rem; }
.issue h2 { font-size: clamp(1.45rem, 4.4vw, 1.95rem); font-weight: 820; font-stretch: 90%; line-height: 1.15; }
.lead { font-size: 1.15rem; }
.intro { display: flex; flex-direction: column; gap: 1rem; padding-top: 2.4rem; }

details.more { border: 1px solid var(--line); background: var(--card); }
details.more > summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.95rem 1.15rem;
  font-family: var(--display); font-weight: 750; font-size: 1.05rem; color: var(--ink);
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after {
  content: "+"; flex: none; width: 1.6rem; height: 1.6rem; display: inline-grid; place-items: center;
  border-radius: 50%; background: var(--orange); color: var(--on-orange); font-weight: 900; font-size: 1.15rem; line-height: 1;
}
details.more[open] > summary::after { content: "\2212"; }
details.more[open] > summary { border-bottom: 1px solid var(--line); }
details.more > summary:hover { background: var(--paper); }
.more-body { display: flex; flex-direction: column; gap: 1rem; padding: 1.2rem 1.15rem 1.4rem; }
.more-body ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.aside { font-style: italic; color: var(--muted); font-size: 0.95rem; }
.helpline { border-left: 4px solid var(--orange); padding: 0.5rem 0 0.5rem 1rem; font-variant-numeric: tabular-nums; }
.helpline strong { white-space: nowrap; }
.videos { display: flex; flex-direction: column; gap: 1.4rem; }
.video-item { display: flex; flex-direction: column; gap: 0.5rem; }

.goal {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.1rem 1.25rem 1.25rem; background: var(--band); color: var(--on-band);
  border-left: 6px solid var(--orange);
}
.goal-label {
  font-family: var(--display); font-weight: 800; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange);
}

/* Link lists */
h3.sub { margin-top: 2.2rem; margin-bottom: 0.6rem; font-size: 1.2rem; font-weight: 800; }
.links { list-style: none; margin: 0; padding: 0; }
.links li { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.links li:first-child { border-top: 1px solid var(--line); }
.links a { font-family: var(--display); font-weight: 750; }

/* Dates */
.table-wrap { overflow-x: auto; }
table.dates { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; background: var(--card); border: 1px solid var(--line); }
.dates th, .dates td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.dates th { font-family: var(--display); font-weight: 700; color: var(--ink); }
.dates tr.big th, .dates tr.big td { background: var(--band); color: var(--on-band); font-weight: 800; border-bottom: 0; }

/* Footer */
.site-footer { background: var(--band); color: var(--on-band); }
.site-footer .container { padding-block: 2.4rem 2.6rem; display: flex; flex-direction: column; gap: 1.2rem; }
.slogan { font-family: var(--display); font-weight: 850; font-stretch: 90%; font-size: clamp(1.4rem, 4vw, 1.9rem); color: var(--on-band); }
.slogan span { color: var(--orange); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.footer-nav a { color: var(--on-band); font-family: var(--display); font-weight: 600; text-decoration: none; opacity: 0.9; }
.footer-nav a:hover { text-decoration: underline; opacity: 1; }
.auth { font-size: 0.85rem; opacity: 0.75; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Rounded corners */
.nav-desktop a { border-radius: 6px 6px 0 0; }
.nav-desktop a.cta { border-radius: 8px; }
.nav-mobile summary { border-radius: 8px; }
.nav-mobile ul { border-radius: 0 0 12px 12px; }
.choice { border-radius: 16px; }
.choice .btn { border-radius: 10px; }
.video { border-radius: 14px; overflow: hidden; }
details.more { border-radius: 12px; overflow: hidden; }
.goal { border-radius: 12px; }
table.dates { border-collapse: separate; border-spacing: 0; border-radius: 12px; overflow: hidden; }
.dates tr:last-child th, .dates tr:last-child td { border-bottom: 0; }
.helpline { border-radius: 0 8px 8px 0; }

/* centred footer */
.site-footer .container { align-items: center; text-align: center; }
.footer-nav ul { justify-content: center; }

/* caption under the home pictures */
.choices-note { margin: 1.1rem 0 0; text-align: center; font-style: italic; color: var(--ink); opacity: 0.8; }
