/* North Bay 2026 candidate answers: mobile-first, WCAG AA, self-hosted OFL fonts, neutral palette.
   Palette: Shield granite, birch-bark paper, Lake Nipissing slate. No candidate or party colours. */
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
:root {
  --bg: #f4f2ec;          /* birch bark */
  --fg: #1c1f1e;          /* 14.8:1 on bg */
  --muted: #4b5250;       /* 7.2:1 on bg */
  --card: #ffffff;
  --border: #c9c4b8;
  --rule: #8b918e;        /* 2.87:1 on bg (3.2:1 on card). Borders only, never text:
                             compare-question rules, status/banner left bar, secondary button border. */
  --granite: #26302e;     /* header band */
  --granite-text: #f4f2ec;/* 12.1:1 on granite */
  --granite-muted: #c5cdc9;/* 8.4:1 on granite */
  --link: #24495a;        /* lake slate, 8.6:1 on bg */
  --link-hover: #142f3b;
  --status-bg: #ebe8e1;
  --focus: #9a4a12;       /* 5.6:1 on bg */
  --focus-on-dark: #f2c14e;
  --max: 50rem;
  --compare-max: 76rem;
  --sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.25; }
h2 { font-size: 1.5rem; margin: 1.5rem 0 0.75rem; }
a { color: var(--link); text-underline-offset: 0.15em; }
a:visited { color: var(--link); }
a:hover { color: var(--link-hover); }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--focus-on-dark); color: var(--fg);
  padding: 0.5rem 1rem; z-index: 100; font-weight: 700;
}
.skip-link:focus { left: 0; }
.wrap { width: min(100% - 1.5rem, var(--max)); margin-inline: auto; }
.site-header { background: var(--granite); color: var(--granite-text); padding: 1.25rem 0 0; margin-bottom: 1.75rem; }
.site-kicker { margin: 0; font-size: 0.9rem; color: var(--granite-muted); letter-spacing: 0.04em; }
.site-title { margin: 0.2rem 0; font-size: clamp(1.6rem, 5vw, 2.25rem); }
.site-title a { color: inherit; text-decoration: none; }
.site-title a:hover, .site-title a:focus { text-decoration: underline; }
.site-subtitle { margin: 0 0 0.5rem; color: var(--granite-muted); }
.horizon { display: block; width: 100%; height: 3rem; }
.nav-band { background: var(--card); border-bottom: 1px solid var(--border); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: inline-block; color: var(--link); text-decoration: none; font-weight: 700;
  padding: 0.7rem 0; min-height: 44px; border-bottom: 3px solid transparent;
}
@media (max-width: 380px) { .site-nav ul { gap: 0 0.6rem; } }
.site-nav a:hover, .site-nav a:focus { text-decoration: underline; color: var(--link-hover); }
.site-nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--fg); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.site-header a:focus-visible { outline-color: var(--focus-on-dark); }
.nav-band a:focus-visible { outline-color: var(--focus); }
.lede { font-size: 1.125rem; max-width: 40rem; }
.key-dates { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; padding: 0; margin: 2rem 0 0; font-size: 0.875rem; color: var(--muted); }
.key-dates li { margin: 0; }
.banner { background: var(--status-bg); border-left: 4px solid var(--rule); padding: 0.75rem 1rem; }
.candidate-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.candidate-card { background: var(--card); border: 1px solid var(--border); border-radius: 2px; padding: 1rem 1.1rem; height: 100%; }
.card-link { color: inherit; text-decoration: none; display: block; }
.card-link:visited { color: inherit; }
.card-link:hover h3, .card-link:focus h3 { text-decoration: underline; color: var(--link); }
.candidate-card h3 { margin: 0 0 0.25rem; font-size: 1.25rem; }
.meta { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.95rem; }
.meta-note { font-weight: 400; color: var(--muted); font-size: 0.9em; }
.office-section { margin-bottom: 2rem; }
.answer-block { background: var(--card); border: 1px solid var(--border); border-radius: 2px; padding: 1rem 1.1rem; margin: 1rem 0; }
.answer-block h3 { margin-top: 0; font-size: 1.15rem; }
.qnum { color: var(--muted); font-weight: 600; }
.answer-text { margin: 0.5rem 0; white-space: normal; overflow-wrap: break-word; max-width: 40rem; }
.answer-text > p { margin: 0 0 0.75rem; }
.answer-text > ul { margin: 0 0 0.75rem; padding-left: 1.4rem; }
.answer-text > ul > li { margin: 0.3rem 0; }
.answer-text > :last-child { margin-bottom: 0; }
/* One identical, quiet style for every status and every candidate. Not red. */
.status, .status.awaiting, .status.deadline-passed, .status.no-reply {
  margin: 0.5rem 0; padding: 0.45rem 0.75rem; font-weight: 700;
  background: var(--status-bg); border-left: 4px solid var(--rule); color: var(--fg);
}
.question-list { padding-left: 1.5rem; }
.question-list li { margin: 0.6rem 0; }
.topic-list { list-style: none; margin: 0.5rem 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.topic-list a { display: inline-block; padding: 0.55rem 0; min-height: 44px; box-sizing: border-box; }
.breadcrumb { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.75rem; }
.compare-form fieldset { border: 1px solid var(--border); padding: 0.75rem 1rem 1rem; background: var(--card); }
.compare-form legend { font-weight: 700; padding: 0 0.25rem; }
.compare-options { display: grid; gap: 0.25rem; }
.compare-option { display: flex; gap: 0.6rem; align-items: center; cursor: pointer; min-height: 44px; }
.compare-option input { width: 1.25rem; height: 1.25rem; accent-color: var(--link); }
button {
  font: inherit; font-weight: 700; padding: 0.6rem 1.1rem; min-height: 44px; border-radius: 2px;
  border: 2px solid var(--granite); background: var(--granite); color: var(--granite-text); cursor: pointer;
}
button.secondary { background: var(--card); color: var(--fg); border-color: var(--rule); }
button:hover { background: var(--link-hover); }
button.secondary:hover { background: var(--status-bg); }
/* Compare: equal-width columns that never get narrower than ~19rem; they wrap instead.
   align-items:start so an empty answer stays a short box instead of a tall blank one.
   Columns only when every candidate fits in ONE row at a readable width (no candidate pushed
   into a second row below a long answer): 2 from 640px, 3 from 1100px; 4-5 stack in surname order. */
.compare-q { margin: 2rem 0; padding-top: 1rem; border-top: 2px solid var(--rule); }
.compare-q > h3 { font-size: 1.2rem; max-width: 46rem; }
.compare-grid { display: grid; gap: 0.75rem; grid-template-columns: 1fr; align-items: start; }
.compare-col { background: var(--card); border: 1px solid var(--border); border-radius: 2px; padding: 0.85rem 1rem; }
.compare-col h4 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.site-footer { margin-top: 3rem; padding: 1.5rem 0 2.5rem; background: var(--granite); color: var(--granite-muted); font-size: 0.95rem; }
.site-footer a, .site-footer a:visited { color: var(--granite-text); }
.site-footer a:focus-visible { outline-color: var(--focus-on-dark); }
.about h3 { margin-top: 1.75rem; }
.out-page .out-continue { display: inline-block; margin: 0.75rem 0; font-weight: 700; font-size: 1.05rem; }
@media (min-width: 640px) {
  .candidate-grid { grid-template-columns: 1fr 1fr; }
  .compare-options { grid-template-columns: 1fr 1fr; }
  .wrap { width: min(100% - 2rem, var(--max)); }
}
@media (min-width: 640px) { .compare-grid[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .compare-grid[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  main.wrap:has(.compare-grid[data-cols="3"]) { width: min(100% - 2rem, var(--compare-max)); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .skip-link { background: none; color: #000; } .horizon, .nav-band { display: none; } }
