/*
Theme Name: Naeem Awan for WRDSB Trustee
Theme URI: https://naeemawan.ca/
Author: Naeem Awan Campaign
Description: A premium, responsive school board campaign theme for Naeem Awan, candidate for Waterloo Region District School Board Trustee in Cambridge & North Dumfries.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: naeem-wrdsb
*/

:root {
    --navy: #03275b;
    --navy-deep: #021b40;
    --blue: #0f4c92;
    --red: #af050e;
    --red-bright: #c8121c;
    --orange: #f4810c;
    --gold: #ffb423;
    --cream: #f2f5fa;
    --white: #fff;
    --ink: #101828;
    --muted: #5e6878;
    --display: "Archivo", Arial, sans-serif;
    --body: "Libre Franklin", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { width: auto; height: auto; top: 12px; left: 12px; padding: 12px 16px; z-index: 9999; clip: auto; background: white; color: var(--navy); }

/* ---------- Header ---------- */

.site-header {
    min-height: 88px;
    padding: 0 4vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navy);
    color: white;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.campaign-brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: none;
    background: var(--red);
    color: white;
    border: 2px solid white;
    box-shadow: 4px 4px 0 var(--orange);
    transform: rotate(-3deg);
    font: 900 18px/1 var(--display);
}
.brand-type { display: grid; line-height: 1; }
.brand-type strong { font: 900 19px/1 var(--display); letter-spacing: -.04em; }
.brand-type small { margin-top: 6px; font: 700 9px/1.2 var(--body); letter-spacing: .12em; }
.primary-nav { display: flex; align-items: center; gap: clamp(16px,1.8vw,30px); font: 800 12px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.primary-nav > a:not(.nav-donate) { padding: 36px 0 32px; position: relative; transition: color .25s ease, transform .25s ease; }
.primary-nav > a:not(.nav-donate):after { content: ""; height: 4px; position: absolute; left: 0; right: 0; bottom: 20px; background: linear-gradient(90deg,var(--gold),var(--orange)); transform: scaleX(0); transform-origin: center; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.primary-nav > a:not(.nav-donate):hover, .primary-nav > a:not(.nav-donate):focus-visible { color: var(--gold); transform: translateY(-2px); }
.primary-nav > a:not(.nav-donate):hover:after, .primary-nav > a:not(.nav-donate):focus-visible:after { transform: scaleX(1); }
.nav-donate { min-height: 44px; padding: 0 22px; display: inline-flex; align-items: center; background: var(--orange); color: white; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.nav-donate:hover, .nav-donate:focus-visible { background: var(--red); transform: translate(-2px,-2px); box-shadow: 5px 5px 0 white; }
.menu-toggle { display: none; border: 0; background: transparent; color: white; font-size: 28px; cursor: pointer; }

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

.campaign-hero { overflow: hidden; background: var(--navy); color: white; }
.hero-image-frame { position: relative; overflow: hidden; background: var(--navy); border-bottom: 10px solid var(--orange); }
.hero-image-frame img { width: 100%; height: auto; aspect-ratio: 1600 / 640; object-fit: cover; object-position: center; display: block; transform-origin: center; animation: hero-pop-in .9s cubic-bezier(.18,1.28,.32,1) .08s both; }
@keyframes hero-pop-in {
    0% { opacity: 0; transform: translateY(34px) scale(.8); }
    72% { opacity: 1; transform: translateY(-4px) scale(1.025); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-message {
    padding: 24px 7vw 34px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px 6vw;
    position: relative;
    overflow: hidden;
}
.hero-message:after {
    content: "✓";
    position: absolute;
    right: 24%;
    top: -92px;
    color: rgba(255,255,255,.045);
    font: 900 370px/1 var(--display);
    pointer-events: none;
}
.eyebrow { margin: 0 0 16px; color: var(--gold); font: 800 11px/1.4 var(--display); letter-spacing: .18em; text-transform: uppercase; }
.hero-message > div:first-child { position: relative; z-index: 1; }
.hero-message h1 { margin: 0 0 12px; font: 900 clamp(36px,4vw,58px)/.9 var(--display); letter-spacing: -.06em; text-transform: uppercase; }
.hero-message h1 span { color: var(--orange); }
.hero-intro { max-width: 780px; margin: 0; color: #d5deeb; font-size: clamp(14px,1.2vw,18px); line-height: 1.5; }
.vote-stack { max-width: 420px; display: grid; justify-items: center; gap: 20px; position: relative; z-index: 2; color: inherit; text-decoration: none; }
.vote-callout { color: white; font: 900 clamp(19px,1.75vw,28px)/1.02 var(--display); letter-spacing: -.035em; text-align: center; transform: translateY(-2px) rotate(-1.5deg); text-transform: uppercase; transition: color .24s ease, transform .24s ease; }
.vote-callout span { display: inline-grid; width: .98em; height: .98em; place-items: center; border: .09em solid currentColor; border-radius: 50%; font-size: .86em; line-height: 1; vertical-align: .05em; }
.vote-stack:hover .vote-callout { color: var(--gold); transform: translateY(-7px) rotate(-1.5deg); }
.vote-stack:focus-visible { outline: 3px solid var(--gold); outline-offset: 10px; border-radius: 2px; }
.vote-dates-panel { grid-column: 1 / -1; display: grid; grid-template-columns: auto repeat(5,minmax(0,1fr)); align-items: stretch; position: relative; z-index: 3; overflow: hidden; background: white; color: var(--navy); border: 3px solid white; box-shadow: 10px 10px 0 var(--orange); transition: transform .2s ease,box-shadow .2s ease; }
.vote-dates-panel:hover { transform: translateY(-3px); box-shadow: 12px 13px 0 var(--orange); }
.vote-dates-panel:focus-visible { outline: 4px solid var(--gold); outline-offset: 5px; }
.vote-dates-title { display: grid; place-items: center; align-content: center; gap: 3px; padding: 14px 20px; background: var(--red); color: white; font: 900 21px/1 var(--display); text-transform: uppercase; letter-spacing: .035em; }
.vote-dates-title small { color: #ffd0d5; font: 800 9px/1 var(--display); letter-spacing: .14em; }
.vote-date-item { min-width: 0; padding: 10px 11px; display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 9px; border-left: 1px solid #d8dee8; }
.vote-date-item > b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: white; font: 900 17px/1 var(--display); }
.vote-date-item > span { min-width: 0; display: grid; gap: 2px; }
.vote-date-item strong { font: 900 clamp(13px,1.05vw,17px)/1 var(--display); text-transform: uppercase; }
.vote-date-item em { color: var(--red); font-size: 9px; font-style: normal; font-weight: 900; line-height: 1; letter-spacing: .05em; text-transform: uppercase; }
.vote-date-item small { color: #59667a; font-size: 10px; font-weight: 800; line-height: 1.1; }
.vote-date-item.election-day { background: var(--red); color: white; }
.vote-date-item.election-day > b { background: white; color: var(--red); }
.vote-date-item.election-day small { color: #ffd8dd; }
.vote-dates-note { grid-column: 1 / -1; margin: 2px 0 0; position: relative; z-index: 3; color: #b9c7db; font-size: 12px; font-weight: 600; }
.vote-dates-note a { color: var(--gold); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.vote-dates-note a:hover { color: white; }

.quick-actions {
    padding: 14px 7vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 36px;
    background: #e9eef6;
    border-bottom: 1px solid #cdd7e5;
}
.quick-actions > div { display: grid; gap: 5px; color: var(--navy); }
.quick-actions small { color: var(--red); font: 800 10px/1 var(--display); text-transform: uppercase; letter-spacing: .15em; }
.quick-actions strong { font: 900 clamp(20px,2vw,30px)/1 var(--display); letter-spacing: -.035em; text-transform: uppercase; }
.quick-actions nav { display: flex; gap: 10px; }
.quick-actions a {
    min-height: 44px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
    border: 2px solid transparent;
    font: 900 12px/1 var(--display);
    letter-spacing: .035em;
    text-transform: uppercase;
    transition: transform .2s, box-shadow .2s;
}
.quick-actions a:hover { transform: translateY(-3px); box-shadow: 0 8px 0 rgba(3,39,91,.16); }
.quick-actions .action-red { background: var(--red); }
.quick-actions .action-white { background: white; color: var(--navy); border-color: var(--navy); }
.quick-actions .action-orange { background: var(--orange); }

/* ---------- Shared blocks ---------- */

.button-primary {
    min-height: 52px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border: 2px solid transparent;
    background: var(--orange);
    color: white;
    font: 900 12px/1 var(--display);
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button-primary:hover, .button-primary:focus-visible { background: var(--red); transform: translateY(-3px); box-shadow: 0 8px 0 rgba(3,39,91,.18); }
.button-outline { min-height: 52px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; border: 2px solid rgba(255,255,255,.75); color: white; font: 900 12px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; transition: background .2s ease, color .2s ease; }
.button-outline:hover, .button-outline:focus-visible { background: white; color: var(--navy); }
.honeypot { position: absolute!important; left: -9999px!important; }

.section { padding: 100px 7vw; }
.section-title h2, .section-heading h2, .about h2 { margin: 0; font: 900 clamp(42px,5.2vw,78px)/.95 var(--display); letter-spacing: -.06em; text-transform: uppercase; }
/* The About headline is a longer phrase, so it runs a size down to keep the
   two columns of that section roughly balanced. */
.about h2 { font-size: clamp(31px,3.5vw,52px); line-height: 1; }
.section-heading { margin-bottom: 54px; display: grid; grid-template-columns: 1fr .65fr; align-items: end; gap: 5vw; }
.section-heading .eyebrow, .about .eyebrow { color: var(--blue); }
.section-heading > p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.65; }

/* ---------- Priorities ---------- */

.priorities { background: #e7ecf4; }
.priority-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.priority-grid article { min-height: 240px; padding: 30px 34px; position: relative; overflow: hidden; display: flex; flex-direction: column; background: white; border-top: 5px solid var(--orange); box-shadow: 0 14px 34px rgba(3,39,91,.08); transform-origin: center bottom; }
.priority-grid article:nth-child(2) { border-color: var(--red); }
.priority-grid article:nth-child(3) { border-color: var(--blue); }
.priority-grid article:nth-child(4) { border-color: var(--gold); }
.priority-grid article:nth-child(5) { border-color: var(--navy); }
.priority-grid article:nth-child(6) { border-color: var(--orange); }
.priority-grid article:hover, .priority-grid article:focus-within { animation: priority-card-bounce .46s cubic-bezier(.2,.75,.25,1); box-shadow: 0 20px 50px rgba(3,39,91,.15); }
@keyframes priority-card-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    45% { transform: translateY(-9px) scale(1.012); }
    72% { transform: translateY(-3px) scale(1.006); }
}
.priority-grid article > span { position: absolute; right: 16px; bottom: -18px; color: rgba(3,39,91,.07); font: 900 82px/1 var(--display); letter-spacing: -.08em; }
.priority-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--red); border: 2px solid currentColor; border-radius: 50%; font: 900 22px/1 var(--display); }
.priority-grid article:nth-child(1) .priority-icon { color: var(--orange); }
.priority-grid article:nth-child(3) .priority-icon { color: var(--blue); }
.priority-grid article:nth-child(4) .priority-icon { color: #b87d00; }
.priority-grid article:nth-child(5) .priority-icon { color: var(--navy); }
.priority-grid article:nth-child(6) .priority-icon { color: var(--orange); }
.priority-grid h3 { max-width: 90%; margin: 22px 0 10px; color: var(--navy); font: 900 clamp(22px,2vw,30px)/1.04 var(--display); letter-spacing: -.045em; text-transform: uppercase; }
.priority-grid p { margin: 0; color: var(--muted); line-height: 1.65; }

/* ---------- Platform highlight boxes ---------- */

.commitments-section { background: white; }
.commitments-section .section-heading .eyebrow { color: var(--red); }
.highlight-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.highlight-box {
    padding: clamp(28px,3vw,42px);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: var(--cream);
    border-left: 7px solid var(--navy);
    box-shadow: 0 16px 40px rgba(3,39,91,.08);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, background .3s ease;
}
.highlight-box:nth-child(2) { border-left-color: var(--red); }
.highlight-box:nth-child(3) { border-left-color: var(--orange); }
.highlight-box:nth-child(4) { border-left-color: var(--blue); }
.highlight-box:hover, .highlight-box:focus-within { transform: translateY(-6px); background: white; box-shadow: 0 26px 60px rgba(3,39,91,.16); }
.highlight-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: none; background: var(--navy); color: white; font: 900 22px/1 var(--display); }
.highlight-box:nth-child(2) .highlight-icon { background: var(--red); }
.highlight-box:nth-child(3) .highlight-icon { background: var(--orange); }
.highlight-box:nth-child(4) .highlight-icon { background: var(--blue); }
.highlight-box h3 { margin: 24px 0 12px; color: var(--navy); font: 900 clamp(23px,2.1vw,32px)/1.06 var(--display); letter-spacing: -.045em; text-transform: uppercase; }
.highlight-tagline { margin: 0 0 14px; color: var(--red); font: 800 15px/1.45 var(--display); letter-spacing: -.015em; }
.highlight-summary { margin: 0 0 26px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.highlight-link { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; color: var(--navy); font: 900 12px/1 var(--display); letter-spacing: .09em; text-transform: uppercase; border-bottom: 3px solid var(--orange); padding-bottom: 7px; transition: color .2s ease, gap .2s ease; }
.highlight-link span[aria-hidden] { transition: transform .25s ease; }
.highlight-box:hover .highlight-link, .highlight-link:focus-visible { color: var(--red); }
.highlight-box:hover .highlight-link span[aria-hidden] { transform: translateX(5px); }

/* ---------- About ---------- */

.about { display: grid; grid-template-columns: minmax(380px,1fr) 1fr; align-items: center; gap: clamp(48px,6vw,95px); background: white; }
.about-photo { min-height: 560px; position: relative; overflow: hidden; border: 8px solid white; background: var(--navy); box-shadow: -22px 22px 0 var(--orange); }
.about-photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 30% center; }
.about-photo > div { position: absolute; left: 22px; right: 22px; bottom: 22px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--navy); color: white; border-left: 6px solid var(--orange); }
.about-photo span { color: #b7c5d9; font: 800 10px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.about-photo strong { font: 900 24px/1 var(--display); }
.about-copy > p:not(.eyebrow) { color: #465165; font-size: 17px; line-height: 1.8; }
.about-highlights { margin: 28px 0 26px; display: grid; gap: 9px; }
.about-highlights span { display: flex; align-items: center; gap: 13px; padding: 13px 16px; background: var(--cream); color: var(--navy); font: 800 14px/1.3 var(--display); }
.about-highlights b { color: var(--red); font-size: 11px; letter-spacing: .1em; }

/* ---------- Community ---------- */

.community-section { background: var(--navy); color: white; }
.community-section .section-heading > p { color: #c8d3e4; }
.community-section .section-heading h2 { color: white; }
.community-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.community-card { min-height: 430px; margin: 0; position: relative; overflow: hidden; background: var(--blue); }
.community-card img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center 22%; transition: transform .45s ease; }
.community-card:nth-child(3) img { object-position: 30% center; }
.community-card:after { content: ""; position: absolute; inset: 42% 0 0; background: linear-gradient(transparent,rgba(3,39,91,.92)); pointer-events: none; }
.community-card:hover img { transform: scale(1.045); }
.community-card figcaption { position: absolute; right: 20px; bottom: 20px; left: 20px; z-index: 1; color: white; font: 900 clamp(18px,1.7vw,27px)/1.05 var(--display); letter-spacing: -.025em; text-transform: uppercase; }

/* ---------- Marquee ---------- */

.hashtag-carousel { position: relative; overflow: hidden; background: var(--red); isolation: isolate; }
.marquee-row { overflow: hidden; border-top: 1px solid rgba(255,255,255,.14); }
.marquee-white { background: white; color: var(--navy); }
.marquee-navy { background: var(--navy); color: white; }
.marquee-red { background: var(--red-bright); color: white; }
.marquee-track { width: max-content; display: flex; will-change: transform; animation: better-schools-marquee 46s linear infinite; }
.marquee-track.marquee-reverse { animation-direction: reverse; animation-duration: 54s; }
.marquee-group { display: flex; flex: none; }
.marquee-item { padding: 24px .23em 25px 0; white-space: nowrap; font: 900 clamp(43px,5.7vw,86px)/.85 var(--display); letter-spacing: -.065em; text-transform: uppercase; }
.marquee-item:nth-child(3n + 1) { color: var(--red); }
.marquee-item:nth-child(3n + 2) { color: var(--orange); }
.marquee-item:nth-child(3n) { color: var(--navy); }
.marquee-navy .marquee-item:nth-child(3n + 1) { color: white; }
.marquee-navy .marquee-item:nth-child(3n + 2) { color: var(--orange); }
.marquee-navy .marquee-item:nth-child(3n) { color: var(--gold); }
.marquee-red .marquee-item:nth-child(3n + 1) { color: var(--navy); }
.marquee-red .marquee-item:nth-child(3n + 2) { color: white; }
.marquee-red .marquee-item:nth-child(3n) { color: var(--gold); }
@keyframes better-schools-marquee { to { transform: translateX(-50%); } }

/* ---------- Why running / why Naeem ---------- */

.why-running { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; background: var(--navy); color: white; }
.why-heading { display: grid; align-content: start; }
.message-photo { width: min(100%,340px); margin: 40px 0 0; position: relative; overflow: hidden; aspect-ratio: .95; border: 6px solid white; box-shadow: 14px 14px 0 var(--orange); background: white; }
.message-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 12%; transform: scale(1.02); transition: transform .35s ease; }
.message-photo:hover img { transform: scale(1.06); }
.why-copy > p { margin-top: 0; color: #ccd7e8; font-size: 18px; line-height: 1.8; }
.why-copy blockquote { margin: 35px 0 0; padding: 3px 0 3px 28px; border-left: 6px solid var(--orange); color: white; font: 700 24px/1.45 var(--display); letter-spacing: -.02em; }

.why-naeem { display: grid; grid-template-columns: .75fr 1.25fr; gap: 7vw; background: var(--gold); color: var(--navy); }
.why-naeem .eyebrow { color: var(--navy); }
.reason-grid { display: grid; grid-template-columns: 1fr 1fr; }
.reason-grid > div { min-height: 130px; padding: 22px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; border-left: 1px solid rgba(3,39,91,.23); border-bottom: 1px solid rgba(3,39,91,.23); }
.reason-grid > div > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 900; }
.reason-grid strong { font: 800 16px/1.35 var(--display); }
.reason-grid small { color: rgba(3,39,91,.45); font-weight: 900; align-self: start; }

/* ---------- Campaign forms ---------- */

.campaign-action-gateway { padding: 90px 7vw; background: #e7ecf4; }
.campaign-action-panel { max-width: 860px; margin: 0 auto; padding: clamp(28px,4vw,52px); background: white; border-top: 7px solid var(--red); box-shadow: 0 18px 50px rgba(3,39,91,.09); }
.campaign-action-panel h2, .donation-support-section h2 { margin: 6px 0 14px; color: var(--navy); font: 900 clamp(36px,4vw,58px)/.92 var(--display); letter-spacing: -.055em; text-transform: uppercase; }
.campaign-action-panel > p:not(.eyebrow), .donation-intro { max-width: 650px; color: var(--muted); line-height: 1.65; }
.campaign-contact-links { margin: 22px 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.campaign-contact-links a { color: var(--navy); font-size: 14px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.campaign-action-form { margin-top: 28px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.campaign-action-form label { display: grid; gap: 7px; color: var(--navy); font: 800 10px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.campaign-action-form input, .campaign-action-form textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #b8c0cd; border-radius: 0; background: #f8f9fc; color: var(--navy); font: 500 15px/1.35 Arial,sans-serif; text-transform: none; }
.campaign-action-form textarea { min-height: 92px; resize: vertical; }
.campaign-action-form input:focus, .campaign-action-form textarea:focus { outline: 3px solid rgba(244,129,12,.25); border-color: var(--orange); }
.campaign-action-form .form-wide, .campaign-action-form .action-form-error, .campaign-action-form .button-primary { grid-column: 1 / -1; }
.campaign-action-form .button-primary { min-height: 52px; border: 0; cursor: pointer; }
.campaign-action-form label small, .field-label small { font-size: 9px; font-weight: 700; text-transform: none; letter-spacing: .02em; opacity: .7; }
.campaign-action-form .label-text { display: block; }
.field-group { display: grid; gap: 7px; }
.field-label { color: var(--navy); font: 800 10px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.field-note { margin: -4px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }

/* Multi-select built on <details> so it still works with JavaScript off. */
.multiselect { position: relative; }
.multiselect > summary {
    min-height: 48px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f8f9fc;
    border: 1px solid #b8c0cd;
    color: var(--navy);
    font: 500 15px/1.35 Arial, sans-serif;
    cursor: pointer;
    list-style: none;
}
.multiselect > summary::-webkit-details-marker { display: none; }
.multiselect > summary:focus-visible { outline: 3px solid rgba(244,129,12,.35); border-color: var(--orange); }
.multiselect > summary b { flex: none; color: var(--blue); font-size: 13px; transition: transform .2s ease; }
.multiselect[open] > summary { border-color: var(--orange); }
.multiselect[open] > summary b { transform: rotate(180deg); }
.multiselect-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multiselect-value.is-placeholder { color: #7b8598; }
.multiselect-panel {
    margin: 0;
    padding: 8px;
    max-height: 260px;
    overflow-y: auto;
    display: grid;
    gap: 2px;
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--orange);
    border-top: 0;
    box-shadow: 0 18px 40px rgba(3,39,91,.18);
}
.multiselect-option { display: flex!important; align-items: center; gap: 11px; padding: 10px 11px; color: var(--navy); font: 600 14px/1.3 var(--body)!important; letter-spacing: 0!important; text-transform: none!important; cursor: pointer; }
.multiselect-option:hover { background: var(--cream); }
.multiselect-option input { width: 18px; height: 18px; min-height: 0; flex: none; margin: 0; padding: 0; accent-color: var(--orange); }
.action-form-message { margin-top: 28px; padding: 18px; display: flex; align-items: center; gap: 12px; background: #edf8ef; color: #155b29!important; font-weight: 800; }
.action-form-message > span { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border-radius: 50%; background: #155b29; color: white; }
.action-form-error { margin: 0; color: #a00018; font-size: 13px; font-weight: 800; }

/* ---------- Donation / closing band ---------- */

/* Donation band — yellow, matching the "Why vote for Naeem" section. */
.donation-support-section { padding: 46px 7vw 50px; display: grid; grid-template-columns: 1.15fr 1fr auto; align-items: center; gap: 32px; background: var(--gold); color: var(--navy); border-top: 8px solid var(--orange); }
.donation-support-section .eyebrow { margin-bottom: 7px; color: var(--red); }
.donation-support-section h2 { max-width: 610px; margin: 0; color: var(--navy); font-size: clamp(25px,2.7vw,42px); }
.donation-support-section .donation-intro { margin: 0; color: #3b3410; font-size: 15px; line-height: 1.6; }
.donation-support-section .donation-intro a { color: var(--navy); font-weight: 900; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.donation-support-section .donation-intro a:hover { color: var(--red); }
.donation-support-section > .button-primary { white-space: nowrap; background: var(--navy); }
.donation-support-section > .button-primary:hover, .donation-support-section > .button-primary:focus-visible { background: var(--red); box-shadow: 0 8px 0 rgba(3,39,91,.25); }

.br-md { display: inline; }

.closing-band { padding: 92px 7vw; position: relative; overflow: hidden; text-align: center; background: var(--navy); color: white; }
.closing-band:after { content: "✓"; position: absolute; right: 3vw; top: -80px; color: rgba(255,255,255,.05); font: 900 400px/1 var(--display); pointer-events: none; }
.closing-band > * { position: relative; z-index: 1; }
.closing-band h2 { max-width: 900px; margin: 0 auto 20px; font: 900 clamp(34px,4.6vw,68px)/.96 var(--display); letter-spacing: -.055em; text-transform: uppercase; }
.closing-band-intro { max-width: 720px; margin: 0 auto 34px; color: #ccd7e8; font-size: 17px; line-height: 1.65; }
.closing-band-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Interior pages ---------- */

.content-page { background: white; }
.page-hero { padding: 76px 7vw 68px; position: relative; overflow: hidden; background: var(--navy); color: white; border-bottom: 8px solid var(--orange); }
.page-hero:after { content: "✓"; position: absolute; right: 4vw; top: -70px; color: rgba(255,255,255,.05); font: 900 330px/1 var(--display); pointer-events: none; }
.page-hero-inner { max-width: 960px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero h1 { margin: 0; font: 900 clamp(36px,5vw,68px)/.96 var(--display); letter-spacing: -.055em; text-transform: uppercase; }
.page-hero-tagline { max-width: 720px; margin: 20px 0 0; color: var(--gold); font: 800 clamp(16px,1.6vw,21px)/1.45 var(--display); letter-spacing: -.02em; }

.content-inner { max-width: 900px; margin: 0 auto; padding: clamp(52px,6vw,88px) 7vw; }
.entry-content { color: #465165; font-size: 17px; line-height: 1.85; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content p { margin: 0 0 22px; }
.entry-content .lede { color: var(--navy); font-size: clamp(19px,2vw,23px); font-weight: 600; line-height: 1.6; }
.entry-content h2 { margin: 52px 0 20px; padding-top: 26px; position: relative; color: var(--navy); font: 900 clamp(26px,3vw,38px)/1.08 var(--display); letter-spacing: -.045em; text-transform: uppercase; }
.entry-content h2:before { content: ""; position: absolute; left: 0; top: 0; width: 62px; height: 6px; background: var(--orange); }
.entry-content h3 { margin: 34px 0 10px; color: var(--red); font: 900 clamp(18px,1.7vw,23px)/1.2 var(--display); letter-spacing: -.03em; }
.entry-content h3 + p { margin-top: 0; }
.entry-content a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { margin: 0 0 24px; padding-left: 22px; }
.entry-content li { margin-bottom: 11px; }
.entry-content .commitment-list { list-style: none; padding-left: 0; display: grid; gap: 12px; }
.entry-content .commitment-list li { margin: 0; padding: 16px 20px 16px 54px; position: relative; background: var(--cream); border-left: 4px solid var(--orange); font-size: 16px; line-height: 1.65; }
.entry-content .commitment-list li:before { content: "✓"; position: absolute; left: 18px; top: 16px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: white; font-size: 12px; font-weight: 900; }
.entry-content .commitment-list strong { color: var(--navy); }
.entry-content .closing-note { margin: 30px 0 0; padding: 26px 30px; background: var(--navy); color: #d8e2f0; border-left: 7px solid var(--orange); font-size: 17px; line-height: 1.75; }
.entry-content blockquote { margin: 30px 0; padding: 4px 0 4px 26px; border-left: 6px solid var(--orange); color: var(--navy); font: 700 21px/1.5 var(--display); }
.entry-content img { height: auto; }

.related-pillars { padding: clamp(56px,6vw,86px) 7vw; background: var(--cream); border-top: 1px solid #dbe3ee; }
.related-pillars h2 { max-width: 1180px; margin: 0 auto 32px; color: var(--navy); font: 900 clamp(24px,2.6vw,36px)/1 var(--display); letter-spacing: -.045em; text-transform: uppercase; }
.related-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.related-card { padding: 28px; display: flex; flex-direction: column; gap: 14px; background: white; border-top: 5px solid var(--orange); box-shadow: 0 12px 32px rgba(3,39,91,.08); transition: transform .25s ease, box-shadow .25s ease; }
.related-card:hover, .related-card:focus-visible { transform: translateY(-5px); box-shadow: 0 20px 46px rgba(3,39,91,.16); }
.related-card b { width: 40px; height: 40px; display: grid; place-items: center; background: var(--navy); color: white; font: 900 18px/1 var(--display); }
.related-card strong { color: var(--navy); font: 900 19px/1.15 var(--display); letter-spacing: -.035em; text-transform: uppercase; }
.related-card span { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--red); font: 900 11px/1 var(--display); letter-spacing: .09em; text-transform: uppercase; }
.related-card em { font-style: normal; transition: transform .25s ease; }
.related-card:hover em { transform: translateX(4px); }

.page-cta { padding: clamp(52px,5vw,76px) 7vw; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px; background: var(--navy); color: white; border-top: 8px solid var(--orange); }
.page-cta h2 { margin: 0; max-width: 640px; font: 900 clamp(26px,3.2vw,44px)/1 var(--display); letter-spacing: -.05em; text-transform: uppercase; }
.page-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.post-summary { margin-bottom: 46px; padding-bottom: 34px; border-bottom: 1px solid #e2e8f0; }
.post-summary h2 { margin: 0 0 14px; color: var(--navy); font: 900 clamp(24px,2.6vw,34px)/1.1 var(--display); letter-spacing: -.04em; }
.post-pagination { display: flex; gap: 16px; font-weight: 800; }

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

.site-footer { padding: 60px 7vw 26px; background: var(--navy-deep); color: white; }
.footer-main { padding-bottom: 46px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-brand > div { display: grid; gap: 8px; }
.footer-brand strong { font: 900 25px/1 var(--display); }
.footer-brand p { max-width: 320px; margin: 0; color: #98a8bf; font-size: 13px; line-height: 1.5; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 13px; font-weight: 700; }
.footer-links a:hover { color: var(--gold); }
.footer-contact { display: grid; gap: 8px; text-align: right; font-size: 12px; font-weight: 800; }
.footer-contact a { color: #c5d1e2; }
.footer-contact a:hover { color: var(--gold); }
.footer-legal { padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #22355a; color: #8595ad; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    .menu-toggle { display: block; }
    .primary-nav { display: none; position: absolute; top: 88px; left: 0; right: 0; padding: 28px 4vw; flex-direction: column; align-items: stretch; background: var(--navy); box-shadow: 0 20px 40px rgba(0,0,0,.25); }
    .primary-nav.is-open { display: flex; }
    .primary-nav > a:not(.nav-donate) { padding: 12px 0; }
    .primary-nav > a:not(.nav-donate):after { width: 58px; right: auto; bottom: 3px; transform-origin: left; }
    .nav-donate { justify-content: center; }
    .hero-message { grid-template-columns: 1fr; }
    .vote-stack { max-width: none; justify-items: start; }
    .vote-callout { text-align: left; }
    .vote-dates-panel { grid-column: 1; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .vote-dates-title { grid-column: 1 / -1; }
    .vote-date-item { border-top: 1px solid #d8dee8; }
    .vote-date-item:last-child { grid-column: 1 / -1; }
    .quick-actions { align-items: flex-start; flex-direction: column; }
    .quick-actions nav { width: 100%; }
    .quick-actions a { flex: 1; }
    .highlight-grid { grid-template-columns: 1fr; }
    .community-grid { grid-template-columns: 1fr 1fr; }
    .community-card:first-child { grid-column: 1 / -1; }
    .related-grid { grid-template-columns: 1fr 1fr; }
    .donation-support-section { grid-template-columns: 1fr; align-items: start; gap: 18px; }
    .donation-support-section > .button-primary { justify-self: start; }
}

@media (max-width: 760px) {
    .site-header { min-height: 74px; padding-inline: 5vw; }
    .primary-nav { top: 74px; }
    .brand-mark { width: 40px; height: 40px; font-size: 15px; }
    .brand-type strong { font-size: 16px; }
    .brand-type small { max-width: 200px; line-height: 1.25; }
    .hero-image-frame { border-bottom-width: 6px; }
    .hero-message { padding: 24px 5vw 30px; gap: 18px; }
    .hero-message:after { right: -4%; top: -28px; font-size: 250px; }
    .hero-message .eyebrow { margin-bottom: 10px; font-size: 9px; letter-spacing: .13em; }
    .hero-message h1 { margin-bottom: 10px; font-size: clamp(32px,9.5vw,44px); line-height: .92; }
    .hero-intro { font-size: 13px; line-height: 1.45; }
    .vote-stack { width: 100%; justify-items: center; }
    .vote-callout { text-align: center; font-size: clamp(17px,5.2vw,23px); line-height: 1.06; }
    .vote-dates-panel { grid-template-columns: repeat(2,minmax(0,1fr)); box-shadow: 6px 6px 0 var(--orange); }
    .vote-dates-title { grid-column: 1 / -1; padding: 10px 12px; font-size: 16px; }
    .vote-date-item:last-child { grid-column: 1 / -1; }
    .vote-date-item { padding: 9px 8px; grid-template-columns: 28px minmax(0,1fr); gap: 7px; }
    .vote-date-item > b { width: 28px; height: 28px; font-size: 13px; }
    .vote-date-item strong { font-size: 11px; line-height: 1.05; }
    .vote-date-item em, .vote-date-item small { font-size: 8px; }
    .quick-actions { padding: 18px 5vw 20px; gap: 15px; }
    .quick-actions small { font-size: 8px; }
    .quick-actions strong { font-size: clamp(19px,6vw,25px); }
    .quick-actions nav { width: 100%; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
    .quick-actions a { width: 100%; min-height: 46px; padding: 5px 4px; gap: 5px; font-size: 9px; line-height: 1.1; text-align: center; }
    .marquee-item { padding-block: 19px 20px; font-size: clamp(38px,12vw,58px); }
    .section { padding: 74px 6vw; }
    .why-running, .why-naeem, .about, .section-heading { grid-template-columns: 1fr; }
    .section-heading { gap: 16px; margin-bottom: 36px; }
    .priority-grid { grid-template-columns: 1fr; }
    .priority-grid article { min-height: 0; padding: 26px 24px; }
    .highlight-box { padding: 26px 22px; }
    .highlight-box h3 { font-size: clamp(21px,6.4vw,27px); }
    .about-photo { min-height: 460px; box-shadow: -12px 12px 0 var(--orange); }
    .about-copy .button-primary { width: 100%; }
    .community-grid { grid-template-columns: 1fr; }
    .community-card, .community-card:first-child { grid-column: auto; min-height: 340px; }
    .reason-grid { grid-template-columns: 1fr; }
    .campaign-action-gateway { padding: 58px 5vw; }
    .campaign-action-panel { padding: 28px 20px; }
    .campaign-action-panel h2 { font-size: clamp(34px,10vw,46px); }
    .campaign-action-form { grid-template-columns: 1fr; gap: 12px; }
    .campaign-contact-links { display: grid; }
    .multiselect-panel { max-height: 230px; }
    .br-md { display: none; }
    .donation-support-section { padding: 38px 6vw 42px; }
    .donation-support-section h2 { font-size: clamp(27px,8.5vw,38px); }
    .donation-support-section > .button-primary { width: 100%; }
    .closing-band { padding: 66px 6vw; }
    .closing-band:after { font-size: 240px; top: -40px; }
    .closing-band-actions .button-primary, .closing-band-actions .button-outline { width: 100%; }
    .page-hero { padding: 52px 6vw 46px; }
    .page-hero:after { font-size: 220px; top: -40px; }
    .content-inner { padding-inline: 6vw; }
    .entry-content { font-size: 16px; }
    .entry-content .commitment-list li { padding: 14px 16px 14px 48px; font-size: 15px; }
    .entry-content .closing-note { padding: 22px 20px; font-size: 16px; }
    .related-pillars { padding-inline: 6vw; }
    .related-grid { grid-template-columns: 1fr; }
    .page-cta { padding-inline: 6vw; }
    .page-cta-actions { width: 100%; }
    .page-cta-actions .button-primary, .page-cta-actions .button-outline { flex: 1; }
    .footer-main { align-items: flex-start; flex-direction: column; }
    .footer-links { display: grid; grid-template-columns: 1fr 1fr; }
    .footer-contact { text-align: left; }
    .footer-legal { flex-direction: column; }
}

@media (max-width: 390px) {
    .brand-type small { max-width: 170px; font-size: 7px; }
    .quick-actions strong { font-size: 18px; }
    .quick-actions a { font-size: 8px; letter-spacing: .01em; }
    .vote-date-item strong { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *:before, *:after { transition: none!important; }
    .marquee-track { animation-play-state: paused; }
    .hero-image-frame img { animation: none; }
    .priority-grid article:hover, .priority-grid article:focus-within { animation: none; transform: none; }
    .highlight-box:hover, .highlight-box:focus-within { transform: none; }
}


/* "Donate at least $10" popup */
.donate-popup { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(6,26,59,.72); opacity: 0; transition: opacity .25s ease; }
.donate-popup[hidden] { display: none; }
.donate-popup.is-open { opacity: 1; }
.donate-popup-panel { width: min(100%,420px); padding: clamp(26px,4vw,36px); position: relative; background: white; border-top: 7px solid var(--orange); box-shadow: 0 24px 60px rgba(0,0,0,.35); transform: translateY(16px); transition: transform .25s ease; }
.donate-popup.is-open .donate-popup-panel { transform: translateY(0); }
.donate-popup-panel .eyebrow { color: var(--red); }
.donate-popup-panel h2 { margin: 0 0 12px; color: var(--navy); font: 900 clamp(26px,4vw,34px)/1 var(--display); letter-spacing: -.03em; text-transform: uppercase; }
.donate-popup-panel > p:not(.eyebrow) { margin: 0 0 22px; color: var(--muted); line-height: 1.6; }
.donate-popup-close { width: 34px; height: 34px; padding: 0; position: absolute; top: 14px; right: 14px; display: grid; place-items: center; background: transparent; border: 0; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.donate-popup-close:hover, .donate-popup-close:focus-visible { color: var(--navy); }
.donate-popup-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.donate-popup-maybe { padding: 0; background: transparent; border: 0; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
