/* Office of Councillor Nate Erskine-Smith, Beaches–East York
   Purple with red accents, used sparingly: the homepage hero and the footer are the only
   big colour areas. Everything else is white and soft lilac. */

:root {
  --purple: #3a2161;
  --purple-deep: #24133f;
  --lilac: #f3eff9;
  --lilac-line: #dcd3ea;
  --red: #da2028;
  --red-dark: #b3161d;
  --red-soft: #fbeaea;
  --pink: #f7b9b7;
  --ink: #1c1426;
  --muted: #574e66;
  --white: #ffffff;

  --font-display: "Archivo", "Arial Black", Arial, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 84px;
  --ease: 0.15s ease-out;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

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

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

h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 0.5em; color: var(--purple); font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-weight: 800; font-style: italic; letter-spacing: -0.015em; }

p { margin: 0 0 1em; }

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

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.hero :focus-visible, .signup-band :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 860px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--red); color: var(--white); padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--white); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: 600 1rem/1.2 var(--font-body);
  padding: 0.8em 1.25em; border: 1px solid transparent; border-radius: 3px;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--ease), color var(--ease);
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); }
.btn-outline { background: var(--white); color: var(--purple); border-color: var(--purple); }
.btn-outline:hover { background: var(--purple); color: var(--white); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--lilac-line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

/* The name stays the same; on hover the background fills with purple. */
.brand {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
  padding: 7px 14px 7px 7px; margin-left: -7px;
  text-decoration: none; color: var(--purple);
  transition: background-color var(--ease), color var(--ease);
}
.brand:hover, .brand:focus-visible { background: var(--purple); color: var(--white); }
.brand-mark { width: 50px; height: 50px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 1.3rem; line-height: 1.1; letter-spacing: -0.015em; white-space: nowrap; }
.brand-sub { font-size: 0.82rem; font-weight: 500; margin-top: 2px; white-space: nowrap; color: var(--muted); transition: color var(--ease); }
.brand:hover .brand-sub, .brand:focus-visible .brand-sub { color: var(--pink); }

.site-nav { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link { display: block; padding: 10px 9px; font-weight: 600; font-size: 0.97rem; color: var(--ink); text-decoration: none; }
.nav-link:hover { color: var(--red-dark); }
.nav-link.is-active { color: var(--purple); box-shadow: inset 0 -3px 0 var(--red); }
.has-children .nav-link { padding-right: 2px; }
.subnav-toggle { background: none; border: 0; padding: 10px 8px 10px 2px; color: var(--muted); cursor: pointer; display: flex; }
.subnav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.subnav {
  list-style: none; margin: 0; padding: 6px 0;
  position: absolute; top: 100%; left: 0; min-width: 260px;
  background: var(--white); border: 1px solid var(--lilac-line); border-top: 2px solid var(--purple);
  visibility: hidden; opacity: 0;
}
.subnav a { display: block; padding: 9px 16px; text-decoration: none; color: var(--ink); font-weight: 500; }
.subnav a:hover, .subnav a[aria-current="page"] { background: var(--lilac); color: var(--purple); }

@media (min-width: 1181px) {
  .has-children:hover .subnav,
  .has-children:focus-within .subnav,
  .has-children.is-open .subnav { opacity: 1; visibility: visible; }
}

.nav-cta { white-space: nowrap; padding: 0.65em 1em; }

.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: 10px;
  background: none; border: 1px solid var(--purple); border-radius: 3px; color: var(--purple);
  padding: 8px 12px; font: 600 0.95rem var(--font-body); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: var(--white); border-bottom: 2px solid var(--purple);
    padding: 8px var(--gutter) 24px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--lilac-line); }
  .nav-link { flex: 1; padding: 14px 0; font-size: 1.05rem; }
  .nav-link.is-active { box-shadow: none; color: var(--red-dark); }
  .subnav-toggle { padding: 14px; }
  .subnav { position: static; display: none; width: 100%; min-width: 0; opacity: 1; visibility: visible; border: 0; margin-bottom: 12px; }
  .has-children.is-open .subnav { display: block; }
  .nav-cta { align-self: flex-start; }
}
@media (max-width: 480px) {
  .brand-mark { width: 42px; height: 42px; }
  .brand-name { font-size: 1.08rem; }
  .brand-sub { font-size: 0.72rem; }
  .nav-toggle { min-height: 42px; min-width: 44px; justify-content: center; gap: 0; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- Labels ---------- */
.eyebrow { font-weight: 600; color: var(--muted); margin: 0 0 0.5em; }
.eyebrow a { color: inherit; }
.badge { font-size: 0.88rem; font-weight: 700; color: var(--red-dark); }
.badge-newsletter, .badge-development, .tag-community { color: var(--purple); }
.tag-nate { color: var(--red-dark); }

/* ---------- Homepage hero ---------- */
.hero { background: var(--purple); color: var(--white); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: end; min-height: 540px; }
.hero-copy { align-self: center; padding: clamp(44px, 6vw, 80px) 0; }
.hero-title { color: var(--white); font-size: clamp(1.6rem, 8vw, 3rem); line-height: 1.1; white-space: nowrap; margin-bottom: 0.3em; }
@media (min-width: 861px) { .hero-title { font-size: clamp(2.5rem, 4.3vw, 3.9rem); } }
.hero-sub { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.35; margin-bottom: 1.5em; }
.hero-about .hero-inner { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); min-height: 440px; }
.hero-about .hero-copy { padding-left: clamp(0px, 5vw, 64px); }
.hero-about .hero-sub { margin-bottom: 0; }
.hero-about .hero-photo img { max-height: 420px; }
.hero-about .hero-photo::before { left: -30%; right: 16%; }
.hero-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-weight: 600; margin: 0; }
.hero-links a:not(.btn) { color: var(--white); text-decoration-color: var(--pink); }
.hero-links a:not(.btn):hover { color: var(--pink); }

.hero-photo { position: relative; align-self: end; display: flex; justify-content: center; padding-top: 32px; }
.hero-photo::before { content: ""; position: absolute; left: 18%; right: -14%; top: 16%; bottom: 0; background: var(--red); transform: skewX(-10deg); }
.hero-photo img { position: relative; width: auto; max-height: 500px; margin-bottom: -16px; }

@media (max-width: 860px) {
  .hero-inner, .hero-about .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy, .hero-about .hero-copy { padding: 40px 0 24px; }
  .hero-photo img, .hero-about .hero-photo img { max-height: 380px; }
  .hero-about .hero-copy { order: -1; padding-bottom: 8px; }
  .hero-about .hero-photo::before { left: 18%; right: -14%; }
}

/* ---------- Neighbourhood names ---------- */
.place-strip { background: var(--purple-deep); color: #ded6ec; font-size: 0.95rem; }
.place-list { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0 auto; padding-top: 11px; padding-bottom: 11px; }
.place-list li:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--pink); }

/* ---------- Forms ---------- */
.signup-form { display: grid; grid-template-columns: 1fr 1.4fr 0.8fr auto; gap: 10px; align-items: end; }
.signup-form .form-status { grid-column: 1 / -1; margin: 0; }
@media (max-width: 720px) {
  .signup-form { grid-template-columns: 1fr 1fr; }
  .signup-form .btn { grid-column: 1 / -1; }
  .signup-form .field:nth-child(2) { grid-column: 1 / -1; order: -1; }
}

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font: 1rem/1.4 var(--font-body); color: var(--ink);
  background: var(--white); border: 1px solid #8b8099; border-radius: 3px; padding: 0.68em 0.8em; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--purple); outline-offset: 0; border-color: var(--purple); }
.field textarea { resize: vertical; }
.field-help { font-size: 0.84rem; color: var(--muted); margin: 0; }
.req { color: var(--red-dark); }
.form-status { font-weight: 600; font-size: 0.92rem; color: var(--purple); }
.form-status:empty { display: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 6vw, 80px) 0; }
.section-tint { background: var(--lilac); }
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-header .section-title { margin: 0; }
.page-body .section-header { margin-top: 56px; }
.page-body .section-title { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.see-all { font-weight: 600; white-space: nowrap; }

/* ---------- "How can we help" ---------- */
.action-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.action-tile { display: block; padding: 24px; background: var(--lilac); text-decoration: none; color: var(--ink); transition: background-color var(--ease), color var(--ease); }
.action-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; line-height: 1.15; color: var(--purple); margin-bottom: 8px; transition: color var(--ease); }
.action-text { display: block; }
.action-tile:hover { background: var(--purple); color: var(--white); }
.action-tile:hover .action-title { color: var(--white); }
@media (max-width: 820px) { .action-grid { grid-template-columns: 1fr; } }

/* ---------- News ---------- */
.news-stack { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; }
.news-stack .news-card:first-child { grid-row: span 2; justify-content: flex-end; border-top: 3px solid var(--red); }
.news-stack .news-card:first-child .card-title { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.12; }
.news-stack .news-card:first-child .card-body { flex: 0 1 auto; }
@media (max-width: 860px) { .news-stack { grid-template-columns: 1fr; } }

/* ---------- Cards (news and ward items) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--lilac-line); position: relative; display: flex; flex-direction: column; transition: border-color var(--ease); }
.card:hover { border-color: var(--purple); }
.card-img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }
.card-title { font-size: 1.28rem; line-height: 1.2; margin-bottom: 0.4em; }
.card-title a { text-decoration: none; color: var(--purple); }
.card:hover .card-title a, .event-card:hover .card-title a { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.card-title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card-text { color: var(--muted); margin-bottom: 0; }
.card-location { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4em; }
.card-updated { font-size: 0.85rem; color: var(--muted); margin: auto 0 0; padding-top: 12px; }
.status { font-weight: 600; color: var(--ink); }

/* ---------- Events ---------- */
.event-list { display: grid; gap: 10px; }
.event-card { display: grid; grid-template-columns: 88px 1fr; background: var(--white); border: 1px solid var(--lilac-line); position: relative; transition: border-color var(--ease); }
.event-card:hover { border-color: var(--purple); }
.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 6px; line-height: 1; background: var(--lilac); color: var(--purple); }
.event-card[data-event-host="nate"] .event-date { background: var(--red-soft); color: var(--red-dark); }
.event-month { font-size: 0.9rem; font-weight: 600; }
.event-daynum { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; margin-top: 3px; }
.event-info { padding: 14px 18px; }
.event-tag { margin: 0 0 3px; }
.event-card .card-title { margin-bottom: 0.2em; }
.event-when, .event-where { margin: 0; font-size: 0.95rem; }
.event-where { color: var(--muted); }
.event-list-past .event-date, .event-list-past .event-card[data-event-host="nate"] .event-date { background: #f1f0f3; color: var(--muted); }
.empty-note { color: var(--muted); }

.event-list-home { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.event-list-home .event-card { grid-template-columns: 76px 1fr; }
@media (max-width: 1000px) { .event-list-home { grid-template-columns: 1fr; } }

.event-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.event-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.event-filter button, .cal-nav button {
  font: 600 0.95rem/1.2 var(--font-body); padding: 0.55em 0.95em; cursor: pointer; border-radius: 3px;
  background: var(--white); color: var(--purple); border: 1px solid var(--purple);
}
.event-filter button:hover, .cal-nav button:hover { background: var(--lilac); }
.event-filter button[aria-pressed="true"] { background: var(--purple); color: var(--white); }
@media (max-width: 760px) { .event-view { display: none; } }

.event-calendar { margin-top: 28px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cal-title { margin: 0; font-size: 1.6rem; }
.cal-grid { width: 100%; table-layout: fixed; border-collapse: collapse; }
.cal-grid th { padding: 8px; font-size: 0.88rem; font-weight: 600; color: var(--muted); text-align: left; }
.cal-grid td { height: 112px; padding: 6px 8px; vertical-align: top; border: 1px solid var(--lilac-line); }
.cal-grid td.cal-other { background: #fafafb; }
.cal-grid td.cal-today { background: var(--lilac); }
.cal-day { display: block; font-size: 0.88rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.cal-event { display: block; margin-bottom: 4px; padding: 3px 6px; font-size: 0.83rem; line-height: 1.25; text-decoration: none; background: var(--lilac); color: var(--purple); }
.cal-today .cal-event { background: var(--white); }
.cal-event[data-host="nate"] { background: var(--red-soft); color: var(--red-dark); }
.cal-event:hover { text-decoration: underline; }

.event-share { margin: 36px 0 0; padding: 18px 22px; background: var(--lilac); }
.event-share a { font-weight: 600; }

.event-details { background: var(--lilac); padding: 24px; margin-bottom: 32px; }
.event-details dl, .fact-list { margin: 0 0 20px; display: grid; gap: 14px; }
.event-details dt, .fact-list dt { font-size: 0.9rem; color: var(--muted); }
.event-details dd, .fact-list dd { margin: 1px 0 0; font-weight: 600; }
.event-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.event-past-note { font-weight: 700; color: var(--red-dark); }
.fact-list { background: var(--lilac); padding: 22px 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 32px; }

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 20px; }
.video-frame { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--purple-deep); overflow: hidden; }
.video-frame img, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-play {
  position: absolute; left: 12px; bottom: 12px; padding: 5px 12px 5px 10px; border-radius: 3px;
  background: var(--purple-deep); color: var(--white); font-size: 0.88rem; font-weight: 600; transition: background-color var(--ease);
}
.video-play::before { content: ""; display: inline-block; margin-right: 7px; border-left: 9px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.video-frame:hover .video-play { background: var(--red); }
.video-title { font-size: 1.1rem; line-height: 1.25; margin: 10px 0 2px; }
.video-title a { text-decoration: none; }
.video-title a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.video-meta { margin: 0; font-size: 0.9rem; color: var(--muted); }
.video-text { margin: 6px 0 0; font-size: 0.97rem; }
.video-external { display: flex; align-items: flex-end; aspect-ratio: 16 / 9; padding: 16px; background: var(--lilac); font-weight: 600; }

.council-block { margin-top: 44px; }
.council-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 32px; }
.council-intro { max-width: 680px; }
.list-subheading { font-size: 1.2rem; margin: 0 0 14px; }

.social-links { list-style: none; margin: 0; padding: 0; }

/* ---------- Signup band ---------- */
.signup-band { background: var(--purple); color: var(--white); padding: clamp(40px, 5vw, 60px) 0; }
.signup-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center; }
.signup-copy h2 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 0.25em; }
.signup-copy p { margin: 0; }
.signup-band .field label { color: var(--white); }
.signup-band .req { color: var(--pink); }
.signup-band .field input { border-color: var(--white); }
.signup-band .form-status { color: var(--white); }
@media (max-width: 960px) { .signup-inner { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-deep); color: #e9e4f1; padding: 56px 0 32px; font-size: 0.97rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--pink); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-heading { font-family: var(--font-body); font-weight: 700; font-size: 1rem; letter-spacing: 0; color: var(--pink); margin-bottom: 10px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer address { font-style: normal; line-height: 1.6; }
.footer-hours { margin-top: 10px; color: #c9bfd8; }
.footer-bottom { margin-top: 40px; padding-top: 28px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 32px; }
.footer-bottom::before { content: ""; grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.2); margin-bottom: 16px; }
.land-ack, .footer-legal { grid-column: 1 / -1; }
@media (max-width: 640px) { .footer-bottom { grid-template-columns: 1fr; } }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand-name { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 1.5rem; letter-spacing: -0.015em; color: var(--white); line-height: 1.2; }
.footer-brand-sub { color: #c9bfd8; }
.footer-social .social-links { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 600; }
.land-ack, .footer-legal { margin: 0; color: #c9bfd8; font-size: 0.9rem; max-width: 760px; }

/* ---------- Inner pages: soft banner with a thin red slant at the right ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--lilac); padding: clamp(36px, 5vw, 64px) 0; }
.page-hero::after { content: ""; position: absolute; top: 0; bottom: 0; right: -3%; width: 8%; background: var(--red); transform: skewX(-10deg); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.05; margin-bottom: 0.15em; max-width: 16em; }
.page-intro { font-size: 1.18rem; line-height: 1.45; max-width: 640px; margin: 0.5em 0 0; }
.post-meta { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin: 12px 0 0; color: var(--muted); }
.page-body { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(56px, 7vw, 88px); }
.lede { font-size: 1.15rem; max-width: 720px; }
.list-heading { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin: 44px 0 16px; }
.list-heading:first-child { margin-top: 0; }
.list-heading.list-heading-first { margin-top: 32px; }
[data-past-section] { margin-top: 44px; }
@media (max-width: 700px) {
  .page-hero::after { width: 7%; right: -5%; }
  .page-intro { padding-right: 6%; }
}

.prose { max-width: 700px; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-top: 1.5em; }
.prose h3 { font-size: 1.22rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.3em; }
.prose li::marker { color: var(--red); }
.prose img { margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.3; color: var(--purple); }

.post-image { width: 100%; margin-bottom: 32px; }
.post-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 48px 0 24px; padding: 20px 22px; background: var(--lilac); }
.post-cta p { margin: 0; max-width: 520px; }
.back-link { font-weight: 600; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.tabs a { padding: 0.5em 0.95em; font-weight: 600; text-decoration: none; color: var(--purple); border: 1px solid var(--purple); border-radius: 3px; }
.tabs a:hover { background: var(--lilac); color: var(--purple); }
.tabs a[aria-current="page"] { background: var(--purple); color: var(--white); }

.pager { display: flex; gap: 20px; align-items: center; justify-content: center; margin-top: 40px; font-weight: 600; }

.callout { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--lilac); padding: 18px 22px; margin-bottom: 36px; }
.callout p { margin: 0; max-width: 760px; }

.contact-callout { margin-top: 44px; padding: 18px 22px; background: var(--lilac); }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; margin-bottom: 16px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ward-links { background: var(--lilac); padding: 20px 22px; }
.ward-links h2 { font-size: 1.2rem; margin-bottom: 8px; }
.ward-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-weight: 600; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 36px; }
.team-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--lilac); margin-bottom: 14px; }
.team-name { font-size: 1.35rem; margin-bottom: 2px; }
.team-role { font-weight: 600; color: var(--red-dark); margin-bottom: 6px; }
.team-focus { color: var(--muted); font-size: 0.95rem; margin-bottom: 8px; }
.team-bio { font-size: 0.97rem; }

/* Resources: one full-width band per category */
.resource-group { padding: clamp(40px, 5vw, 64px) 0; }
.resource-group:nth-of-type(even) { background: var(--lilac); }
.resource-heading { text-align: center; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1em; }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.resource-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 980px; margin: 0 auto; }
.resource-item { display: flex; flex-direction: column; align-items: flex-start; }
.resource-title { font-size: 1.28rem; line-height: 1.2; margin-bottom: 0.4em; }
.resource-title a { text-decoration: none; }
.resource-title a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.resource-desc { margin-bottom: 0.8em; }
.resource-action { font-weight: 600; margin-bottom: 1.1em; }
.resource-item .btn { margin-top: auto; padding: 0.6em 1em; font-size: 0.95rem; background: var(--purple); }
.resource-item .btn:hover { background: var(--purple-deep); color: var(--white); }
@media (max-width: 860px) { .resource-grid, .resource-grid-2 { grid-template-columns: 1fr; gap: 30px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-offices { display: grid; gap: 10px; }
.office-card { padding: 18px 20px; background: var(--lilac); }
.office-card h2 { font-size: 1.2rem; margin-bottom: 6px; }
.office-card address { font-style: normal; margin-bottom: 6px; }
.office-card p { margin: 0 0 4px; }
.office-hours { color: var(--muted); font-size: 0.95rem; }
.contact-form { display: grid; gap: 18px; }
.contact-form h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin: 0; }
.contact-form .btn { justify-self: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
