/* ==========================================================================
   Brian Putman for Mayor — Saugeen Shores 2026
   Stylesheet. You do not normally need to edit this file.
   Brand colours are all defined once, in the :root block just below.
   ========================================================================== */

:root {
  --teal:        #014C5A;   /* lawn sign background */
  --teal-deep:   #003A40;   /* business card / footers */
  --teal-mid:    #17697A;
  --teal-pale:   #E4EFF1;
  --red:         #C0161B;   /* maple leaf / accent — darkened for contrast */
  --red-bright:  #D0191E;
  --cream:       #FBF7F0;
  --ink:         #16232A;
  --ink-soft:    #3B4A54;
  --line:        #D8E2E5;
  --white:       #FFFFFF;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1120px;
  --radius: 4px;
  --shadow: 0 2px 10px rgba(1, 76, 90, .10);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.wrap--narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--red); color: #fff; padding: 12px 18px; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.18; color: var(--teal-deep); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.075rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--teal-mid); }
p  { margin: 0 0 1.1em; }
.lede { font-size: 1.2rem; color: var(--ink-soft); }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); margin: 0 0 .6rem; overflow-wrap: break-word;
}
@media (max-width: 460px) { .eyebrow { letter-spacing: .07em; font-size: .74rem; } }
.eyebrow--light { color: #FFD9C4; }

/* ---------- Header & navigation ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; }

.brandmark { display: flex; align-items: center; gap: 11px; text-decoration: none; padding: 8px 0; }
.brandmark__leaf { width: 24px; height: 24px; flex: none; }
.brandmark__text { font-family: var(--serif); line-height: 1; }
.brandmark__name { display: block; font-size: 1.4rem; font-weight: 700; color: var(--teal-deep); letter-spacing: .01em; }
.brandmark__role { display: block; font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-top: 3px; }

.nav-toggle {
  display: none; background: var(--teal); color: #fff; border: 0; border-radius: var(--radius);
  font: inherit; font-weight: 700; font-size: .95rem; padding: 10px 14px; cursor: pointer;
}
.nav-toggle:hover { background: var(--teal-deep); }

.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 10px 12px; border-radius: var(--radius);
  font-weight: 600; font-size: .97rem; color: var(--teal-deep); text-decoration: none;
}
.site-nav a:hover { background: var(--teal-pale); color: var(--teal-deep); }
.site-nav a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.site-nav .nav-cta {
  background: var(--red); color: #fff; padding: 10px 18px; margin-left: 8px;
}
.site-nav .nav-cta:hover { background: #9E1216; color: #fff; }
.site-nav .nav-cta[aria-current="page"] { color: #fff; box-shadow: none; border-radius: var(--radius); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.is-open { display: block; }
  .site-header__inner { flex-wrap: wrap; padding-bottom: 8px; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 10px; }
  .site-nav a { padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--red); }
  .site-nav .nav-cta { margin: 12px 0 0; text-align: center; border: 0; border-radius: var(--radius); }
}

/* ---------- Voting banner ---------- */

.votebar { background: var(--red); color: #fff; font-size: .95rem; }
.votebar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding-block: 11px; text-align: center; }
.votebar strong { font-weight: 700; }
.votebar a { color: #fff; font-weight: 700; }

/* ---------- Hero ---------- */

.hero { background: var(--teal); color: #fff; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(255,255,255,.10), transparent 70%),
    linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.18) 100%);
  pointer-events: none;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding-block: clamp(44px, 6vw, 76px);
}
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero__grid > * { min-width: 0; }
.hero__grid p, .hero__grid h1 { overflow-wrap: break-word; }
.hero__wordmark {
  font-family: var(--sans); font-weight: 800; letter-spacing: .01em; line-height: .95;
  font-size: clamp(2.9rem, 12vw, 5.4rem); text-transform: uppercase; margin: 0;
}
.hero__rule { display: flex; align-items: center; gap: 14px; margin: 18px 0 14px; }
.hero__rule::before, .hero__rule::after { content: ""; height: 2px; background: rgba(255,255,255,.55); flex: 1; }
.hero__rule svg { width: 30px; height: 30px; flex: none; color: var(--red-bright); }
.hero__forMayor {
  font-family: var(--sans); font-weight: 700; letter-spacing: .34em; text-transform: uppercase;
  font-size: clamp(1rem, 2.4vw, 1.5rem); margin: 0;
}
.hero__tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.8vw, 1.7rem); margin: 14px 0 4px; color: #EAF4F6; }
.hero__sub { color: #CFE4E8; font-size: 1.05rem; max-width: 46ch; }
.hero__photo { border-radius: 6px; box-shadow: 0 14px 40px rgba(0,0,0,.32); border: 5px solid rgba(255,255,255,.9); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__photo { max-width: min(420px, 100%); margin-inline: auto; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; font-weight: 700; font-size: 1rem; text-decoration: none;
  padding: 13px 24px; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
}
.btn--primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn--primary:hover { background: #9E1216; border-color: #9E1216; color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn--ghost:hover { background: #fff; color: var(--teal-deep); border-color: #fff; }
.btn--teal { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn--teal:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(48px, 6vw, 76px); }
.section--cream { background: var(--cream); }
.section--pale  { background: var(--teal-pale); }
.section--teal  { background: var(--teal-deep); color: #fff; }
.section--teal h2, .section--teal h3 { color: #fff; }
.section--teal p { color: #D3E5E8; }

.section__head { max-width: 720px; margin-bottom: 34px; }
.section__head p { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 0; }
.section--teal .section__head p { color: #CFE4E8; }

/* ---------- Cards ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal);
  border-radius: var(--radius); padding: 26px 24px 22px; box-shadow: var(--shadow);
}
.card__icon { width: 38px; height: 38px; color: var(--red); margin-bottom: 14px; }
.card h3 { font-size: 1.15rem; margin-bottom: .4em; }
.card p { color: var(--ink-soft); font-size: .99rem; margin-bottom: 0; }

/* ---------- Split / feature ---------- */

.split { display: grid; grid-template-columns: 340px 1fr; gap: 46px; align-items: start; }
.split img { border-radius: 6px; box-shadow: var(--shadow); border: 1px solid var(--line); }
@media (min-width: 801px) { .split--even { grid-template-columns: 1fr 1fr; } }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 26px; } .split img { max-width: min(340px, 100%); } }
.split > * { min-width: 0; }

/* ---------- Callout / quote ---------- */

.callout {
  background: #fff; border-left: 5px solid var(--red); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow); margin: 26px 0;
}
.callout h3 { margin-bottom: .5em; }
.callout p:last-child { margin-bottom: 0; }

.pullquote {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.8vw, 1.75rem); line-height: 1.4;
  font-style: italic; margin: 0; color: #fff;
}
.pullquote + cite { display: block; margin-top: 14px; font-style: normal; font-weight: 700; color: #A9D2DA; font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; }

/* ---------- Checklist ---------- */

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .34em; width: 20px; height: 20px;
  border-radius: 50%; background: var(--red) center/12px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.section--teal .checklist li::before { background-color: #2E9AAD; }

/* Credentials list (business-card style) */
.creds { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.creds li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--teal-deep);
}
.creds li::before { content: ""; flex: none; width: 3px; align-self: stretch; background: var(--red); }

/* ---------- Platform accordion ---------- */

.issue {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 14px; box-shadow: var(--shadow); overflow: hidden;
}
.issue > summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font-family: var(--serif); font-size: 1.22rem; font-weight: 700; color: var(--teal-deep);
  border-left: 5px solid var(--teal);
}
.issue > summary::-webkit-details-marker { display: none; }
.issue > summary:hover { background: var(--teal-pale); }
.issue > summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 13px; height: 13px;
  margin-top: -7px; border-right: 3px solid var(--red); border-bottom: 3px solid var(--red);
  transform: rotate(45deg); transition: transform .18s ease;
}
.issue[open] > summary { background: var(--teal-pale); border-left-color: var(--red); }
.issue[open] > summary::after { transform: rotate(-135deg); margin-top: -3px; }
.issue__body { padding: 4px 24px 22px; border-left: 5px solid var(--red); }
.issue__body > :last-child { margin-bottom: 0; }
.issue__principle { font-family: var(--serif); font-size: 1.08rem; font-style: italic; color: var(--teal-mid); }

.jumplist { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 34px; padding: 0; }
.jumplist a {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 100px;
  padding: 7px 15px; font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--teal-deep);
}
.jumplist a:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ---------- Tables & info blocks ---------- */

.infogrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.infobox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.infobox h3 { font-size: 1.1rem; }
.infobox p:last-child, .infobox ul:last-child { margin-bottom: 0; }

.keydate { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--red); display: block; line-height: 1.2; }

.notice {
  border: 1px solid #E6D2A8; background: #FDF6E6; border-radius: var(--radius);
  padding: 18px 22px; margin: 24px 0; font-size: .98rem;
}
.notice strong { color: #7A5A12; }
.notice p:last-child { margin-bottom: 0; }

.rules { margin: 0; padding-left: 1.2em; }
.rules li { margin-bottom: .55em; }

/* ---------- Events ---------- */

.event {
  display: grid; grid-template-columns: 116px 1fr; gap: 22px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.event .event__date {
  background: var(--teal-deep); color: #FFFFFF; border-radius: var(--radius); text-align: center;
  padding: 13px 6px; line-height: 1.1; margin: 0;
}
.event .event__date .m {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #DCEEF2;
}
.event .event__date .d {
  display: block; font-family: var(--serif); font-size: 2.05rem; font-weight: 700;
  color: #FFFFFF;
}
.event h3 { font-size: 1.15rem; margin-bottom: .25em; }
.event > div p { margin-bottom: 0; color: var(--ink-soft); font-size: .99rem; }
.event__date, .event__date .d { color: #fff; }
@media (max-width: 560px) {
  .event { grid-template-columns: 1fr; gap: 12px; }
  .event__date { display: inline-block; padding-inline: 18px; }
}

/* ---------- Contact ---------- */

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 15px; align-items: flex-start; }
.contact-list svg { width: 24px; height: 24px; flex: none; color: var(--red); margin-top: 4px; }
.contact-list a { font-weight: 700; font-size: 1.08rem; }
.contact-list span { display: block; font-size: .88rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */

.site-footer { background: var(--teal-deep); color: #C3DBE0; font-size: .96rem; padding-block: 48px 0; }
.site-footer h2 { color: #fff; font-size: 1.05rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1em; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #FFC9A6; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
@media (max-width: 780px) { .site-footer__grid { grid-template-columns: 1fr; gap: 30px; } }

.footer-brand { font-family: var(--serif); font-size: 1.6rem; color: #fff; font-weight: 700; margin: 0 0 6px; }
.footer-brand span { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: #9FD3DC; margin-top: 4px; }

/* The authorization line is a legal requirement — keep it visible on every page. */
.authorization {
  margin-top: 42px; border-top: 1px solid rgba(255,255,255,.2);
  padding-block: 22px 30px; font-size: .88rem; color: #A9C6CC;
  display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between; align-items: baseline;
}
.authorization strong { color: #fff; font-weight: 700; }
.authorization ul { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Page header (interior pages) ---------- */

.pagehead { background: var(--teal); color: #fff; padding-block: clamp(38px, 5vw, 62px); }
.pagehead h1 { color: #fff; margin-bottom: .3em; }
.pagehead p { color: #CFE4E8; font-size: 1.12rem; max-width: 58ch; margin-bottom: 0; }
.pagehead + .section { padding-top: clamp(34px, 4vw, 52px); }

.prose > h2 { margin-top: 1.9em; }
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin-top: 1.6em; }

/* ---------- Utilities ---------- */

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1.1em; }

@media print {
  .site-header, .votebar, .nav-toggle, .btn-row { display: none; }
  body { font-size: 11pt; }
  .hero, .pagehead, .section--teal, .site-footer { background: #fff !important; color: #000 !important; }
  .hero h1, .pagehead h1, .section--teal h2, .site-footer h2 { color: #000 !important; }
  .issue__body { display: block !important; }
}

/* ---------- Numbered steps (voting page) ---------- */

.steps { display: grid; gap: 20px; margin-bottom: 26px; }

.step {
  display: grid; grid-template-columns: 108px 1fr; gap: 26px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px; box-shadow: var(--shadow);
}
.step h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-bottom: .45em; }
.step > div > :last-child { margin-bottom: 0; }

.step__n {
  font-family: var(--sans); font-weight: 800; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal-mid); margin: 0; padding-top: .5em;
  border-top: 3px solid var(--teal-mid);
}

/* Step 1 is the one people miss, so it carries the accent. */
.step--urgent { border-left: 6px solid var(--red); background: var(--cream); }
.step--urgent .step__n { color: var(--red); border-top-color: var(--red); }

@media (max-width: 720px) {
  .step { grid-template-columns: 1fr; gap: 14px; padding: 24px 22px; }
  .step__n { padding-top: 0; border-top: 0; border-left: 3px solid var(--teal-mid);
             padding-left: 10px; width: max-content; }
  .step--urgent .step__n { border-left-color: var(--red); }
}

/* Home page: the card that matters most */
.infobox--urgent { border-top: 4px solid var(--red); background: var(--cream); }

/* Votebar can now hold two links */
.votebar a + a { border-left: 1px solid rgba(255,255,255,.45); padding-left: 14px; }
@media (max-width: 620px) { .votebar a + a { border-left: 0; padding-left: 0; } }

/* Highlighted event (all-candidates meetings) */
.event--flag { border-left: 5px solid var(--red); background: var(--cream); }
.event .event--flag__unused { }
.event--flag .event__date { background: #A81216; }
.event--flag .event__date .m { color: #FFE3D6; }
.event__tag {
  display: inline-block; background: var(--red); color: #fff; font-size: .68rem;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 100px; margin-bottom: 8px;
}

/* Sub-list inside a checklist item (ward maps). Plain dots, no check icon. */
.checklist .sublist { list-style: disc; margin: 8px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.checklist .sublist li { padding-left: 2px; }
.checklist .sublist li::before { content: none; display: none; }
