/*
 New Haven Citywide Student Council
 v1.0.3 — CANONICAL LOGO CACHE-BUST & LIVE BRAND SWEEP
 Canonical emblem: user-approved original Citywide artwork (no redraw).
*/
:root{--brand-white:#fff;--brand-navy:#082846;--brand-teal:#1f747d;--brand-gold:#d8a83e}

/* One canonical emblem language everywhere. */
.brand-mark-shell,.footer-mark-shell{display:grid;place-items:center;background:#fff;border:1px solid rgba(216,168,62,.45);overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.20)}
.brand-mark-shell{width:56px;height:56px;border-radius:15px;flex:0 0 auto}
.brand-mark-shell img{width:100%!important;height:100%!important;object-fit:contain!important;padding:2px!important;filter:none!important}
.brand-wordmark{display:flex;flex-direction:column;line-height:1.02}
.brand-wordmark strong{font-family:var(--csc-serif);text-transform:uppercase;letter-spacing:.10em;color:#fff;font-size:.88rem}
.brand-wordmark small{text-transform:uppercase;letter-spacing:.07em;color:#d7e4ec;font-size:.63rem;margin-top:4px}
.primary-nav a.active:not(.nav-cta){color:#fff;background:rgba(255,255,255,.10);box-shadow:inset 0 -2px 0 var(--csc-gold)}
.primary-nav .nav-cta.active{box-shadow:0 0 0 2px rgba(255,255,255,.34)}

/* Full approved logo gets a deliberate white presentation surface instead of floating awkwardly. */
.hero-seal-wrap{isolation:isolate}
.hero-seal{width:min(560px,100%);aspect-ratio:1;object-fit:contain;background:#fff;border-radius:28px;padding:8px;border:1px solid rgba(8,40,70,.12);box-shadow:0 28px 70px rgba(8,40,70,.20);filter:none!important}
.seal-caption{display:inline-flex;background:var(--csc-navy);color:#fff;border:1px solid rgba(216,168,62,.45);padding:7px 12px;border-radius:999px;letter-spacing:.14em;box-shadow:0 8px 24px rgba(8,40,70,.12)}

/* Every page hero now carries the same subtle emblem signature. */
.page-hero{position:relative;isolation:isolate;overflow:hidden;border-radius:0 0 28px 28px}
.page-hero::after{content:"";position:absolute;z-index:-1;right:2%;top:18px;width:180px;height:180px;background:url('/static/img/citywide-primary-v103.png') center/contain no-repeat;opacity:.035;filter:grayscale(1)}
html[data-theme="dark"] .page-hero::after{opacity:.055;filter:grayscale(1) brightness(1.8)}
.page-hero::before{content:"";position:absolute;z-index:-2;inset:0 -20vw;border-bottom:1px solid rgba(8,40,70,.07);background:linear-gradient(110deg,rgba(31,116,125,.035),transparent 42%,rgba(216,168,62,.04))}

/* Homepage network center is now visibly the same brand, not an unrelated faux logo. */
.network-brand-center{width:190px;height:190px;padding:14px;background:#fff!important;border:1px solid rgba(8,40,70,.14)!important;box-shadow:0 18px 44px rgba(8,40,70,.18)!important;color:var(--csc-navy)!important}
.network-brand-center img{width:92px;height:92px;object-fit:contain;margin-bottom:2px}
.network-brand-center span{font-size:.56rem;letter-spacing:.15em;color:#617889}
.network-brand-center strong{font-family:var(--csc-serif);font-size:1.08rem;color:var(--csc-navy)}
.network-brand-center small{font-size:.58rem;color:#617889}
html[data-theme="dark"] .network-brand-center{background:#fff!important;color:var(--csc-navy)!important}

/* School codes should not masquerade as invented school logos. */
.school-mark{display:none!important}
.school-code{width:78px;height:64px;border-radius:12px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:9px 11px;margin-bottom:24px;background:linear-gradient(135deg,var(--csc-navy),var(--csc-teal));border:1px solid rgba(255,255,255,.18);box-shadow:0 9px 24px rgba(8,40,70,.16);color:#fff}
.school-code small{font-size:.48rem;letter-spacing:.18em;opacity:.72}.school-code strong{font:700 .93rem var(--csc-serif);letter-spacing:.03em;margin-top:2px}

/* Bring every major card family onto the same surface geometry. */
.current-card,.issue-card,.ledger-card,.election-card,.document-card,.archive-callout,.gap-grid>div,.manifesto>div,.voice-form,.privacy-card,.process-card,.priority-grid>div,.source-list a,.admin-login form,.admin-metrics>div,.submission{border-radius:16px!important;border:1px solid var(--csc-line)!important;box-shadow:0 12px 34px rgba(8,40,70,.07)!important}
.current-card,.issue-card,.ledger-card,.election-card,.document-card,.archive-callout,.gap-grid>div,.manifesto>div,.voice-form,.privacy-card,.process-card,.priority-grid>div,.source-list a{background:#fff}
html[data-theme="dark"] .current-card,html[data-theme="dark"] .issue-card,html[data-theme="dark"] .ledger-card,html[data-theme="dark"] .election-card,html[data-theme="dark"] .document-card,html[data-theme="dark"] .archive-callout,html[data-theme="dark"] .gap-grid>div,html[data-theme="dark"] .manifesto>div,html[data-theme="dark"] .voice-form,html[data-theme="dark"] .privacy-card,html[data-theme="dark"] .process-card,html[data-theme="dark"] .priority-grid>div,html[data-theme="dark"] .source-list a{background:#0e2943}

/* Representatives and biography pages: consistent image handling, no accidental logo fallback. */
.portrait-person{border-radius:16px}.rep-card{border-radius:16px}.rep-card-media{background:linear-gradient(135deg,#0c3958,#1f747d)}
.profile-media{isolation:isolate}.profile-media::before,.profile-media::after{opacity:.85}
.portrait-rights{font-size:.71rem}.profile-state{letter-spacing:.07em}

/* Footer: compact mark at top, full approved logo in identity block. */
.footer-mark-shell{width:110px;height:110px;border-radius:22px;margin:-26px 0 -8px}
.footer-mark{width:100%!important;height:100%!important;object-fit:contain!important;margin:0!important;padding:2px;filter:none!important}
.footer-identity{display:grid;grid-template-columns:112px 1fr;gap:22px;align-items:start}
.footer-full-logo{width:112px;aspect-ratio:1;object-fit:contain;background:#fff;border-radius:17px;padding:3px;border:1px solid rgba(216,168,62,.35);box-shadow:0 12px 30px rgba(0,0,0,.18)}
.footer-identity h2{margin-top:4px}

/* Admin, maintenance and error states now use the same canonical logo. */
.admin-brand-logo,.offline-brand-logo{display:block;width:min(260px,72%);aspect-ratio:1;object-fit:contain;background:#fff;border-radius:18px;padding:5px;border:1px solid rgba(8,40,70,.12);margin:0 auto 24px;box-shadow:0 14px 34px rgba(8,40,70,.10)}
.error-brand-mark{display:block;width:92px;height:92px;object-fit:contain;background:#fff;border-radius:16px;padding:3px;border:1px solid rgba(216,168,62,.35);margin:0 auto 8px;box-shadow:0 12px 28px rgba(8,40,70,.10)}
.error-page,.offline-page{text-align:center}.offline-page{max-width:820px;margin-inline:auto}

/* Form polish and readability. */
.filter-bar input,.form-step input,.form-step select,.form-step textarea,.submission input,.submission select{min-height:44px}
.form-step textarea{line-height:1.55}.choice-row label{border-radius:10px}
.status-key{gap:8px}.status-key span{border:1px solid var(--csc-line);background:#fff;border-radius:999px;padding:8px 11px;font-size:.69rem}html[data-theme="dark"] .status-key span{background:#0e2943}

/* Mobile logo fit + card stability. */
@media(max-width:800px){.brand-mark-shell{width:46px;height:46px;border-radius:12px}.brand-wordmark strong{font-size:.76rem}.brand-wordmark small{font-size:.56rem}.hero-seal{border-radius:22px;padding:6px}.page-hero::after{width:120px;height:120px;right:-12px}.network-brand-center{width:160px;height:160px}.network-brand-center img{width:76px;height:76px}.footer-identity{grid-template-columns:88px 1fr}.footer-full-logo{width:88px}.footer-mark-shell{width:88px;height:88px}}
@media(max-width:580px){.brand-wordmark small{display:none}.footer-identity{grid-template-columns:1fr}.footer-full-logo{width:96px}.page-hero::after{opacity:.025}.admin-brand-logo,.offline-brand-logo{width:min(220px,78%)}}


/* v1.0.3 — all visible brand surfaces use the same approved artwork. */
.brand-mark-shell img,.footer-mark,.footer-full-logo,.hero-seal,.network-brand-center img,
.admin-brand-logo,.offline-brand-logo,.error-brand-mark{object-fit:contain!important;filter:none!important;background:#fff!important}
.brand-mark-shell img{padding:1px!important}
.hero-seal{padding:6px!important}
.footer-mark{padding:1px!important}
.page-hero::after{background-image:url('/static/img/citywide-primary-v103.png')!important}
