/* Dan McLean for Calgary-Shaw. Campaign site
   Type: Source Serif 4 (display) + Inter (body)
   Color: dual-blue (navy + Alberta-blue) on warm parchment off-white
*/

:root {
  --navy: #0b2a4a;          /* deep navy. primary */
  --navy-ink: #071c33;      /* deepest text on light */
  --blue: #1c4190;          /* logo blue. primary brand blue */
  --blue-soft: #2a55b0;     /* hover state for logo blue */
  --blue-bright: #4d7fd9;   /* lighter blue for accents on dark navy */
  --gold: #1c4190;          /* legacy. now mapped to blue (no gold) */
  --paper: #ffffff;          /* white. no more beige */
  --paper-2: #f4f6fb;        /* very pale blue-white for subtle card backs */
  --line: #1c419014;         /* hairline rule */
  --line-strong: #1c419026;
  --ink: #131a26;
  --ink-soft: #2f3a4d;
  --muted: #5a6377;
  --white: #ffffff;
  --shadow-card: 0 1px 0 rgba(7, 28, 51, 0.06), 0 12px 36px -18px rgba(7, 28, 51, 0.25);
  --shadow-soft: 0 1px 0 rgba(7, 28, 51, 0.06);

  --serif: "Source Serif 4", "Source Serif Pro", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 4px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-wrap: pretty;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--blue); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy-ink);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6.5vw, 84px); letter-spacing: -0.025em; }
h2 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -0.018em; }
h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.01em; }
h4 { font-size: 18px; }

p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line-strong); margin: 0; }

/* ---------- layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section.tight { padding: clamp(40px, 5vw, 72px) 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 2px;
  background: var(--blue);
  display: inline-block;
}
.eyebrow.gold { color: var(--gold); }
.eyebrow.gold::before { background: var(--gold); }
.eyebrow.light { color: rgba(255,255,255,0.85); }
.eyebrow.light::before { background: rgba(255,255,255,0.85); }

.lead {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 400;
}

.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 1px 0 rgba(7,28,51,0.2), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-primary:hover { background: #0d3358; color: #fff; }
.btn-blue {
  background: var(--blue);
  color: #fff;
}
.btn-blue:hover { background: var(--blue-soft); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(11,42,74,0.06); color: var(--navy); }
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-large { padding: 18px 28px; font-size: 16px; }
.btn-arrow::after {
  content: "→";
  font-family: var(--serif);
  transition: transform .2s ease;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-strong);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy-ink);
}
.brand-mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: 4px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: auto 0 0 0;
  height: 40%;
  background: var(--blue);
}
.brand-mark span { position: relative; z-index: 1; }
.brand-text {
  display: flex; flex-direction: column; line-height: 1;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 4px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--navy-ink); background: rgba(11,42,74,0.06); }
.nav-links a.active { color: var(--navy-ink); background: rgba(11,42,74,0.08); }
.nav-cta { margin-left: 12px; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 10px 12px;
  margin-left: auto;
  cursor: pointer;
  color: var(--navy-ink);
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line-strong);
    padding: 12px var(--gutter) 20px;
  }
  .nav-links.open a { padding: 14px 12px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-left: 0; margin-top: 8px; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-ink);
  color: rgba(255,255,255,0.78);
  padding: 80px 0 40px;
  margin-top: 80px;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 20px;
}
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.footer-grid .brand { color: #fff; }
.footer-grid .brand-name { color: #fff; }
.footer-grid .brand-sub { color: rgba(255,255,255,0.55); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.footer-tag {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.4;
  color: rgba(255,255,255,0.85);
  margin-top: 18px;
  max-width: 32ch;
}
.socials {
  display: flex; gap: 8px; margin-top: 20px;
}
.socials a {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  transition: background .15s ease, border-color .15s ease;
}
.socials a:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }
.socials svg { width: 16px; height: 16px; fill: #fff; }
.footer-base {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
.authorized {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  max-width: 60ch;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- card ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 16px;
  padding: 14px 14px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28,65,144,0.18);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.form-status {
  font-size: 14px;
  padding: 14px 16px;
  border-radius: 4px;
  margin-top: 12px;
}
.form-status.success { background: #e8f4ec; color: #16633a; border: 1px solid #b8dfc6; }
.form-status.error   { background: #fdecec; color: #952121; border: 1px solid #f1c5c5; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--navy-ink);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(28,65,144,0.45), transparent 60%),
    linear-gradient(180deg, #0a223e 0%, #07182d 100%);
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: 0;
  mask-image: radial-gradient(closest-side at 50% 50%, black 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(closest-side at 50% 50%, black 60%, transparent 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  color: #fff;
  font-size: clamp(44px, 7vw, 96px);
}
.hero h1 .accent { color: var(--blue-bright); }
.hero .lead {
  color: rgba(255,255,255,0.78);
  font-family: var(--serif);
  font-size: clamp(18px, 1.7vw, 24px);
  max-width: 60ch;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 8vw, 96px);
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  margin-top: 32px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.hero-meta strong { color: #fff; font-weight: 600; }
.hero-meta-divider { width: 1px; height: 16px; background: rgba(255,255,255,0.2); }

.hero-cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 32px;
}

/* video frame */
.video-frame {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7);
}
.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 50%, #0d3358 0%, #06152a 100%);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 24px;
}
.video-placeholder .play {
  width: 76px; height: 76px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue);
  margin-bottom: 18px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.video-placeholder .play:hover { transform: scale(1.05); background: var(--blue-soft); }
.video-placeholder .play::before {
  content: "";
  width: 0; height: 0;
  border-left: 18px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}
.video-placeholder .label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
}
.video-caption {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* ---------- nomination strip / explainer ---------- */
.nomination-strip {
  background: var(--paper-2);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.nom-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 880px) { .nom-grid { grid-template-columns: 1fr; gap: 32px; } }

.steps {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 18px;
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line-strong);
}
.step:last-child { border-bottom: 1px solid var(--line-strong); }
.step-num {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--blue);
  line-height: 1;
}
.step-body h3 { margin-bottom: 6px; font-size: 20px; }
.step-body p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- key facts row ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.fact {
  padding: 32px 28px;
  border-right: 1px solid var(--line-strong);
}
.fact:last-child { border-right: 0; }
.fact-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.fact-value {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--navy-ink);
  margin-top: 8px;
  line-height: 1.1;
}
@media (max-width: 880px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact { border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .fact:nth-child(odd) { border-right: 1px solid var(--line-strong); }
  .fact:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------- pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
}
.pillar {
  padding: 36px 32px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  position: relative;
  min-height: 220px;
  display: flex; flex-direction: column; gap: 10px;
}
.pillar:nth-child(2n) { border-right: 0; }
.pillar:nth-last-child(-n+2) { border-bottom: 0; }
.pillar-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.pillar h3 { font-size: 26px; }
.pillar p { color: var(--ink-soft); font-size: 15px; max-width: 42ch; }
.pillar-tag {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--blue);
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; }
  .pillar:nth-last-child(2) { border-bottom: 1px solid var(--line-strong); }
}

/* ---------- placeholder portrait ---------- */
.portrait-placeholder {
  aspect-ratio: 4/5;
  background:
    repeating-linear-gradient(135deg,
      rgba(11,42,74,0.06) 0 8px,
      rgba(11,42,74,0.0) 8px 16px),
    var(--paper-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
}
.portrait-placeholder::after {
  content: attr(data-label);
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(255,255,255,0.92);
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}

/* utility */
.text-center { text-align: center; }
.muted { color: var(--muted); }
.divider {
  height: 1px;
  background: var(--line-strong);
  margin: 0;
}
.flex { display: flex; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-12 { margin-bottom: 12px; }
.mb-24 { margin-bottom: 24px; }

/* tweaks panel. minimal styling for the host */
.tweaks-fab {
  position: fixed;
  bottom: 16px; right: 16px;
  z-index: 60;
}

/* page hero (sub pages) */
.page-hero {
  background: var(--navy-ink);
  color: #fff;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(28,65,144,0.4), transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(40px, 5.5vw, 72px); }
.page-hero .lead { color: rgba(255,255,255,0.78); max-width: 60ch; margin-top: 16px; }
.page-hero .crumbs {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}

/* form + redirect notice */
.notice {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--blue);
  padding: 18px 22px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--ink-soft);
}
.notice strong { color: var(--navy-ink); }

/* coming soon overlay */
.cs-wrap { position: relative; }
.cs-wrap > .cs-content { filter: blur(2px) saturate(0.6); opacity: 0.55; pointer-events: none; user-select: none; }
.cs-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(11,42,74,0.65), rgba(7,28,51,0.85));
  display: grid; place-items: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
}
.cs-overlay-inner {
  text-align: center;
  color: #fff;
  padding: 48px 32px;
  max-width: 520px;
}
.cs-overlay-inner .stamp {
  display: inline-block;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  border: 2px solid #fff;
  padding: 8px 18px;
  margin-bottom: 24px;
  transform: rotate(-2deg);
  color: #fff;
}
.cs-overlay-inner h2 { color: #fff; font-size: clamp(32px, 4vw, 52px); }
.cs-overlay-inner p { color: rgba(255,255,255,0.8); font-family: var(--serif); margin-top: 14px; }

/* simple svg map placeholder */
.shaw-map {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.shaw-map svg { width: 100%; height: auto; display: block; }

/* policy pillar. bigger detail page */
.policy-detail {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line-strong);
}
.policy-detail:last-child { border-bottom: 0; }
.policy-detail .num {
  font-family: var(--serif);
  font-size: 64px;
  color: var(--blue);
  line-height: 1;
}
.policy-detail h3 { font-size: 32px; margin-bottom: 12px; }
@media (max-width: 760px) {
  .policy-detail { grid-template-columns: 1fr; gap: 12px; }
  .policy-detail .num { font-size: 36px; }
}

/* ========== MOBILE FIXES (≤640px) ========== */
@media (max-width: 640px) {
  /* Buttons must be allowed to wrap on small screens */
  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    padding: 14px 18px;
  }
  .btn-large { padding: 16px 20px; font-size: 15px; }

  /* Cards get tighter padding */
  .card { padding: 20px; }

  /* Smaller hero/page-hero text */
  .page-hero h1 { font-size: clamp(32px, 9vw, 48px) !important; }
  .page-hero .lead { font-size: 16px !important; }

  /* Two-col CTA strips: stack vertically; reset justify-self so right column is flush left */
  .container[style*="grid-template-columns: 1.3fr 1fr"],
  .container[style*="grid-template-columns: 1.4fr 1fr"],
  .container[style*="grid-template-columns: 1.2fr 1fr"],
  .container[style*="grid-template-columns: 1.1fr 1fr"],
  .container[style*="grid-template-columns: 1fr 1.4fr"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .container[style*="grid-template-columns"] > div[style*="justify-self: end"],
  div[style*="justify-self: end"] {
    justify-self: stretch !important;
  }
  /* Button rows: full-width buttons stacked */
  div[style*="justify-self: end"] .btn,
  div[style*="justify-self: end"] > .btn {
    width: 100%;
  }

  /* Pillar grid (already handled), shrink type */
  .pillar h3 { font-size: 22px; }

  /* Form fields: smaller padding */
  .field input, .field select, .field textarea {
    font-size: 16px;
    padding: 12px 12px;
  }

  /* Membership/donate cards holding inner grids */
  .card .field-row { grid-template-columns: 1fr; }

  /* Section padding tighter */
  .section { padding: 56px 0; }
  .section.tight { padding: 36px 0; }

  /* Hero buttons stack full-width */
  .hero .btn { width: 100%; }

  /* Donate tier grid 3x2 looks fine, but coming-soon overlay text smaller */
  .cs-overlay-inner { padding: 32px 20px !important; }
  .cs-overlay-inner h2 { font-size: 28px !important; }

  /* Notice block padding */
  .notice { padding: 16px !important; }

  /* Policy detail num smaller */
  .policy-detail .num { font-size: 36px !important; }
}

@media (max-width: 480px) {
  /* All flex CTA rows stack & buttons full-width */
  .btn { width: 100%; }
  .card { padding: 18px; }

  .facts { grid-template-columns: 1fr !important; }
  .fact { border-right: 0 !important; }
  .fact:nth-child(odd) { border-right: 0 !important; }
}


/* ========== INPUT MIN-WIDTH FIX ========== */
/* Browser inputs default to ~150-200px min-width which forces grid/flex parents
   to grow past their container. Reset min-width and width on form elements. */
.field { min-width: 0; }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
/* Grid/flex children that hold inputs need min-width:0 too */
.field-row > .field { min-width: 0; }
.card { min-width: 0; }
form.card { width: 100%; min-width: 0; }


/* ========== LOGO IMAGE ========== */
.brand-logo {
  display: inline-flex;
  align-items: center;
  height: 56px;
  flex-shrink: 0;
}
.brand-logo img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}
.brand-logo-footer img {
  height: 64px;
  max-width: 320px;
  /* logo on dark navy footer needs to stand */
  filter: brightness(0) invert(1) brightness(1.1);
  /* but the alberta flag detail is best preserved — fall back to inverted text only */
}
/* Cleaner: keep colored logo, just lighten background contrast in footer */
.brand-logo-footer img { filter: none; }
.site-footer .brand-logo-footer {
  background: #fff;
  padding: 10px 16px;
  border-radius: 4px;
  display: inline-flex;
}
.site-footer .brand-logo-footer img { height: 48px; }

@media (max-width: 720px) {
  .brand-logo img { height: 44px; max-width: 200px; }
  .nav { gap: 16px; }
}
@media (max-width: 480px) {
  .brand-logo img { height: 38px; max-width: 170px; }
}

/* portrait image (replaces placeholder when img exists) */
.portrait-image {
  aspect-ratio: 4/5;
  width: 100%;
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  position: relative;
}
.portrait-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}


/* ========== QUOTE / ANNOUNCEMENT ========== */
.quote-section {
  background: #fff;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: clamp(72px, 9vw, 120px) 0;
}
.quote-block {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.quote-mark {
  font-family: var(--serif);
  font-size: clamp(80px, 12vw, 140px);
  line-height: 1;
  color: var(--blue);
  margin-bottom: -20px;
  font-weight: 400;
}
.quote-block blockquote {
  margin: 0;
  padding: 0;
}
.quote-block blockquote p {
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.3;
  color: var(--navy-ink);
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
.quote-attr {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.quote-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}
.quote-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}


/* CTA contact row on dark strip */
.cta-contact-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.cta-contact-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
  text-decoration: none;
  transition: color 0.18s ease;
}
.cta-contact-link:hover { color: var(--blue-bright); }
.cta-contact-link span:last-child {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.kicker.light {
  color: rgba(255,255,255,0.65);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
