html[data-resident=true]{--surface:#fff;--surface-soft:#edf2eb;--muted:#566b60;--accent:#123f34;--accent-ink:#fff;--cream:#f6f4ec;--ink:#20352f;--line:#d6dfd7;--green:#123f34;--tile-green:#123f34;--tile-green-ink:#fff;--tile-gold:#edc577;--tile-gold-ink:#20352f;font-size:100%;color-scheme:light}
html[data-resident=true][data-theme=dark]{--surface:#1b231f;--surface-soft:#28362e;--muted:#bdcdc3;--accent:#a9e3c9;--accent-ink:#10271d;--cream:#101713;--ink:#f1f5ef;--line:#45584c;--green:#a9e3c9;--tile-green:#a9e3c9;--tile-green-ink:#10271d;--tile-gold:#edc577;--tile-gold-ink:#20352f;color-scheme:dark}
html[data-resident=true][data-reading=large]{font-size:125%}html[data-resident=true][data-reading=extra-large]{font-size:200%}
html[data-resident=true] body{background:var(--cream);color:var(--ink);font-size:1rem;line-height:1.6}
html[data-resident=true] ::selection{background:#edc577;color:#20352f}
html[data-resident=true] .constit-mark{object-fit:contain;border-radius:0;background:none;width:3.4rem;height:3.4rem}
html[data-resident=true] .constit-wordmark strong{font-size:1.75rem;color:var(--ink)}html[data-resident=true] .constit-wordmark small{font-size:.75rem;color:var(--muted)}
html[data-resident=true] header nav a{font-size:.875rem}html[data-resident=true] .demo{color:#20352f;font-size:.75rem}
html[data-resident=true] .constituency-context small,html[data-resident=true] .constituency-context span,html[data-resident=true] footer small{color:var(--muted)}
html[data-resident=true] .constituency-context strong{font-size:.95rem}html[data-resident=true] .constituency-context span{font-size:.65rem}html[data-resident=true] .constituency-context small{font-size:.75rem}
html[data-resident=true] h1{font-size:clamp(2rem,4.5vw,3.25rem);letter-spacing:-.03em}html[data-resident=true] h2{font-size:1.65rem}html[data-resident=true] h3{font-size:1.2rem}
html[data-resident=true] .lead{font-size:1.125rem;color:var(--muted)}html[data-resident=true] .eyebrow{color:var(--muted);font-size:.75rem}
html[data-resident=true] .button,html[data-resident=true] button{font:600 .95rem/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:var(--accent);color:var(--accent-ink);min-height:48px}
html[data-resident=true] .secondary,html[data-resident=true] button.secondary{background:var(--surface);color:var(--accent);border-color:var(--line)}
html[data-resident=true] .card,html[data-resident=true] .panel,html[data-resident=true] .event-empty,html[data-resident=true] .resident-error{background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-resident=true] .card p,html[data-resident=true] .event-empty p,html[data-resident=true] .note,html[data-resident=true] .muted,html[data-resident=true] .resident-error p,html[data-resident=true] .resident-error small{color:var(--muted)}
html[data-resident=true] .card p{font-size:.95rem}html[data-resident=true] .note{font-size:.825rem}html[data-resident=true] .muted{font-size:.9rem}html[data-resident=true] .badge{background:var(--surface-soft);color:var(--accent);font-size:.75rem}
html[data-resident=true] .category{font-size:.75rem}html[data-resident=true] footer{font-size:.875rem}
html[data-resident=true] input,html[data-resident=true] select,html[data-resident=true] textarea{font:inherit;font-size:1rem;background:var(--surface);color:var(--ink);border-color:var(--line);caret-color:var(--accent);min-height:48px}
html[data-resident=true] input::placeholder,html[data-resident=true] textarea::placeholder{color:var(--muted);opacity:1}
html[data-resident=true] label{font-size:.9rem}html[data-resident=true] .error{color:#a03224}html[data-theme=dark] .error{color:#ffa99e}
html[data-resident=true] :focus-visible{outline:3px solid #b88b2f;outline-offset:4px}html[data-theme=dark] :focus-visible{outline-color:#edc577}
html[data-resident=true] .app-home-intro{display:block;padding:24px 0 25px;max-width:900px;margin:auto}
html[data-resident=true] .app-home-intro h1{font-size:2.25rem;margin:12px 0 14px;line-height:1.15}
.home-constituency{margin:26px 0 0}.home-constituency span{display:block;text-transform:uppercase;letter-spacing:.08em;font-size:.75rem;color:var(--muted)}.home-constituency strong{display:block;font-size:1.1rem;margin-top:4px}
html[data-resident=true] .home-actions{grid-template-columns:repeat(2,minmax(0,1fr));max-width:900px;margin:0 auto 38px}
html[data-resident=true] .home-action{border:0;background:var(--tile-green);color:var(--tile-green-ink);min-height:160px;border-radius:16px;gap:12px}
html[data-resident=true] .home-action:nth-child(2),html[data-resident=true] .home-action:nth-child(3),html[data-resident=true] .home-action:nth-child(6){background:var(--tile-gold);color:var(--tile-gold-ink)}
html[data-resident=true] .home-action svg,html[data-resident=true] .home-action .action-arrow,html[data-resident=true] .home-action span{color:inherit;stroke:currentColor}
html[data-resident=true] .home-action strong{font-size:1.15rem;letter-spacing:-.02em}html[data-resident=true] .home-action span{font-size:.875rem}html[data-resident=true] .home-action:hover{outline:2px solid var(--accent);outline-offset:3px}
html[data-resident=true] .mobile-tabs{background:var(--surface);border-color:var(--line)}html[data-resident=true] .mobile-tabs a{font-size:.8rem}html[data-resident=true] .mobile-tabs a[aria-current]{background:var(--accent);color:var(--accent-ink)}
.brand-launch{display:none}html[data-resident=true] .brand-launch{position:fixed;inset:0;z-index:50;background:var(--cream);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:var(--ink)}.brand-launch img{width:90px;height:90px;object-fit:contain}.brand-launch strong{font-size:2rem}.brand-launch span,.brand-launch small{color:var(--muted)}
.entry-active>header,.entry-active>.constituency-context,.entry-active>footer,.entry-active>.mobile-tabs{display:none!important}
.entry-active main{max-width:700px;padding:26px 24px 50px}.entry-active{padding-bottom:0!important}
.entry-page{min-height:calc(100svh - 140px);display:flex;flex-direction:column;align-items:stretch;gap:20px}
.entry-brand{display:flex;align-items:center;gap:12px;margin:0 0 35px}.entry-brand img{width:48px;height:48px;object-fit:contain}.entry-brand strong{font-size:1.6rem;letter-spacing:-.03em}.entry-brand>span{margin-left:auto;color:var(--muted);font-size:.95rem}
html[data-resident=true] .entry-page h1{font-family:var(--font-display);font-size:2.55rem;font-weight:600;line-height:1.14;letter-spacing:-.025em;margin:0 0 6px}
.entry-lead{font-size:1.15rem;color:var(--muted);margin:0 0 22px;max-width:40ch}.entry-page .muted{margin:0}.entry-actions{display:flex;flex-direction:column;gap:14px}.entry-actions .button{text-align:center}
.constituency-choice{border:0;padding:0;margin:10px 0 0}.constituency-choice legend{font-size:1.05rem;font-weight:700;margin-bottom:16px}.constituency-choice label{display:flex;align-items:center;gap:18px;padding:22px;border:1px solid var(--line);border-radius:16px;background:var(--surface);cursor:pointer}.constituency-choice label:has(input:checked){border:2px solid var(--accent);padding:21px}.constituency-choice label span{display:flex;flex-direction:column;gap:5px}.constituency-choice label strong{font-size:1.15rem}.constituency-choice small{color:var(--muted);font-size:.9rem}
html[data-resident=true] input[type=radio]{width:1.2rem;height:1.2rem;min-height:0;flex:none;margin:0;accent-color:var(--accent)}
html[data-resident=true] .entry-continue{margin-top:auto;width:100%;display:flex;justify-content:space-between;padding:20px;border-radius:16px;font-size:1.05rem}html[data-resident=true] button:disabled{opacity:.45;cursor:default}
.settings-page,.more-page{max-width:850px;margin:14px auto}.settings-section{padding:24px 0;border-bottom:1px solid var(--line)}.settings-section h2{margin-top:0}.settings-section>select{max-width:480px}.settings-links{display:flex;flex-direction:column;gap:0;margin:18px 0}.settings-links>a{display:block;padding:20px 3px;border-bottom:1px solid var(--line);text-decoration:none}.settings-links>a strong{display:block;font-size:1.05rem;color:var(--ink)}.settings-links>a span{display:block;color:var(--muted);font-size:.9rem;margin-top:4px}.settings-links>a>span:last-child[aria-hidden]{font-size:1.2rem;color:var(--accent)}
.preference-choices{display:flex;gap:12px;flex-wrap:wrap;border:0;padding:0;margin:18px 0}.preference-choices legend{font-size:.9rem;font-weight:700;margin-bottom:10px}.preference-choices label{display:flex;align-items:center;gap:10px;border:1px solid var(--line);padding:13px 18px;border-radius:10px;background:var(--surface);cursor:pointer}.preference-choices label:has(input:checked){border-color:var(--accent)}
.prepared-text{padding-top:22px;margin-top:22px;border-top:1px solid var(--line)}html[data-resident=true] .destructive{background:#a53c32;color:#fff}html[data-theme=dark] .destructive{background:#f6b0a6;color:#381711}
.representatives-page{max-width:850px;margin:12px auto}.directory-area{color:var(--muted);font-size:.8rem;letter-spacing:.07em;text-transform:uppercase;margin:24px 0 12px}
html[data-resident=true] .representatives-page h1{font-family:var(--font-display);font-size:2.25rem;line-height:1.13;letter-spacing:-.025em;max-width:20ch}
.directory-controls{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:4px;background:var(--surface-soft);padding:4px;border-radius:12px;margin:20px 0 8px}
html[data-resident=true] .directory-controls button{border:0;background:transparent;color:var(--ink);padding:12px 8px;line-height:1.35;font-size:.85rem;border-radius:9px;min-height:48px}
html[data-resident=true] .directory-controls button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink)}.directory-count{font-size:.8rem;color:var(--muted)}
.rep-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px;row-gap:38px;margin:28px 0 36px}.rep-person{text-decoration:none;text-align:center;color:var(--ink);display:flex;flex-direction:column;align-items:center;border-radius:10px;min-width:0;padding:8px}.rep-person:hover{background:var(--surface-soft)}
.rep-avatar{width:clamp(110px,26vw,180px);height:clamp(110px,26vw,180px);border-radius:50%;position:relative;overflow:hidden;display:grid;place-items:center;background:var(--surface-soft);flex:none;margin:0 auto 14px}.rep-avatar>svg{width:70%;height:70%;fill:none;stroke:var(--muted);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.rep-avatar>img{position:absolute;width:100%;height:100%;inset:0;object-fit:cover;object-position:center 20%;background:var(--surface)}
html[data-resident=true] .rep-person h2{font-size:1.15rem;line-height:1.3;margin:0 0 8px;letter-spacing:-.015em;overflow-wrap:anywhere}.rep-person p{margin:0;line-height:1.4}.rep-role{font-size:.95rem}.rep-department{font-size:.85rem;color:var(--muted);margin-top:5px!important}.directory-empty{padding:28px;background:var(--surface);border-radius:16px}.directory-pending{margin:28px 0;font-size:.875rem;color:var(--muted)}.directory-pending summary{cursor:pointer;color:var(--accent);padding:10px 0}.representative-detail{text-align:center}.representative-detail .actions{justify-content:center}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
html[data-resident=true] .events-heading h1{font-size:2.4rem}.event-date{font-size:.95rem}html[data-resident=true] .event-date span,html[data-resident=true] .event-count,html[data-resident=true] .event-sample-label,html[data-resident=true] .event-preview-control p,html[data-resident=true] .event-facts dt{color:var(--muted)}
html[data-resident=true] .events-preview-note{background:#faedce;color:#594419}html[data-theme=dark] .events-preview-note{background:#41371f;color:#f7dfaa}html[data-theme=dark] .event-cancelled,html[data-theme=dark] .event-cancellation{background:#472c28;color:#ffc3b8}
html[data-resident=true] .help-dialog{background:var(--surface);color:var(--ink)}
html[data-resident=true] .resident-query .intro h1{font-size:2.5rem}html[data-resident=true] .resident-query .intro p{font-size:1.125rem;color:var(--muted)}html[data-resident=true] .resident-query .intro .query-demo-note{font-size:.8rem;color:#20352f}
html[data-resident=true] .resident-query form{background:var(--surface);border-color:var(--line)}html[data-resident=true] .resident-query .choice,html[data-resident=true] .resident-query .privacy-note,html[data-resident=true] .resident-query .anonymous-note{background:var(--surface-soft);border-color:var(--line);color:var(--ink)}
html[data-resident=true] .resident-query .choice:has(input:checked){border-color:var(--accent)}html[data-resident=true] .resident-query label{font-size:.9rem}html[data-resident=true] .resident-query .choice b{font-size:.9rem}html[data-resident=true] .resident-query .choice small,html[data-resident=true] .resident-query .hint,html[data-resident=true] .resident-query .section-copy,html[data-resident=true] .resident-query .mock-notice,html[data-resident=true] .resident-query .privacy-note span,html[data-resident=true] .resident-query .privacy-note b,html[data-resident=true] .resident-query label>span{font-size:.8rem;color:var(--muted)}
html[data-resident=true] .resident-query .privacy-note svg{stroke:var(--accent)}html[data-resident=true] .resident-query button{background:var(--accent);color:var(--accent-ink)}html[data-resident=true] .resident-query .support{background:#123f34;color:#fff}html[data-resident=true] .resident-query .support h2{font-size:1.5rem}html[data-resident=true] .resident-query .support b{font-size:.95rem}html[data-resident=true] .resident-query .support li span{font-size:.85rem}html[data-resident=true] .resident-query .support .aside-note{font-size:.8rem}html[data-resident=true] .resident-query .emergency{color:var(--muted);font-size:.8rem}
html[data-reading=extra-large] .home-actions,html[data-reading=extra-large] .rep-grid,html[data-reading=extra-large] .directory-controls,html[data-reading=extra-large] .resident-query .layout,html[data-reading=extra-large] .resident-query .fields{grid-template-columns:1fr}
html[data-reading=extra-large] header{align-items:flex-start}html[data-reading=extra-large] header nav{gap:10px}html[data-reading=extra-large] .mobile-tabs{position:static;margin-top:20px;grid-template-columns:repeat(2,1fr)}html[data-reading=extra-large] body{padding-bottom:0}html[data-reading=extra-large] .constituency-context{flex-wrap:wrap}html[data-reading=extra-large] .constituency-context small{margin-left:0}
@media(max-width:750px){html[data-resident=true] .home-action{padding:20px;min-height:155px}html[data-resident=true] .home-action strong{font-size:1.05rem}html[data-resident=true] .home-action span{font-size:.8rem}html[data-resident=true] .app-home-intro h1{font-size:2rem}.rep-grid{column-gap:12px;row-gap:28px}.rep-person{padding:4px}.rep-avatar{width:min(100%,138px);height:auto;aspect-ratio:1}.entry-brand{margin-bottom:28px}.entry-page{gap:20px}.entry-active main{padding:24px}.entry-page .entry-lead{margin-bottom:12px}html[data-resident=true] .entry-page h1{font-size:2.35rem}.settings-links>a{padding:16px 3px}html[data-reading=extra-large] .rep-avatar{width:180px}.directory-controls{grid-template-columns:1fr 1.1fr 1.6fr}html[data-resident=true] .directory-controls button{font-size:.8rem}html[data-reading=extra-large] .directory-controls{grid-template-columns:1fr}html[data-resident=true] .representatives-page h1{font-size:2rem}html[data-resident=true] .resident-query .intro h1{font-size:2rem}}
html[data-resident=true] body.brand-active{background:#123f34;color:#fff}.brand-active>.demo{display:none}.brand-active main{max-width:none;padding:0}.brand-stage{background:#123f34;color:#fff;min-height:100svh;display:flex;flex-direction:column}.brand-centre{position:relative;display:grid;place-items:center;min-height:70svh;isolation:isolate;overflow:hidden}.brand-wordmark{display:flex;flex-direction:column;align-items:center;gap:8px;z-index:1}.brand-wordmark strong{font-size:clamp(2.8rem,8vw,4.5rem);font-weight:750;letter-spacing:-.055em;color:#fff;line-height:1.1}.brand-wordmark span{font-size:.95rem;color:#dcece4}.brand-orbit{position:absolute;left:50%;top:50%;width:min(92vw,480px);aspect-ratio:1;transform:translate(-50%,-50%);z-index:-1}.civic-icon{position:absolute;width:48px;height:48px;stroke:#d7e8df;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;opacity:.13}.civic-icon-0{left:12%;top:16%;transform:rotate(-18deg)}.civic-icon-1{left:45%;top:3%;transform:rotate(13deg)}.civic-icon-2{right:8%;top:20%;transform:rotate(20deg)}.civic-icon-3{right:1%;top:49%;transform:rotate(14deg)}.civic-icon-4{right:15%;bottom:10%;transform:rotate(-15deg)}.civic-icon-5{left:45%;bottom:0;transform:rotate(11deg)}.civic-icon-6{left:7%;bottom:16%;transform:rotate(20deg)}.civic-icon-7{left:0;top:48%;transform:rotate(-17deg)}.brand-actions{display:flex;flex-direction:column;align-items:stretch;gap:18px;width:min(calc(100% - 48px),600px);margin:auto auto 28px;text-align:center;padding-top:20px}.brand-actions>button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:18px 22px;border-radius:14px;background:#edc577!important;color:#20352f!important;font-size:1.05rem!important}.brand-actions>a{color:white;text-underline-offset:5px;font-size:.95rem}.brand-actions>small{font-size:.8rem;color:#dcece4}html[data-resident=true] .brand-launch{background:#123f34;color:#fff;gap:0}.brand-launch>.brand-centre{width:100%;min-height:100svh}.brand-launch .brand-wordmark strong{color:white}.brand-launch .brand-wordmark span{color:#dcece4}html[data-reading=extra-large] .brand-wordmark strong{font-size:2.1rem}html[data-reading=extra-large] .brand-centre{min-height:65svh}html[data-reading=extra-large] .civic-icon{opacity:.08}@media(max-width:750px){.brand-wordmark strong{font-size:2.9rem}.brand-centre{min-height:68svh}.brand-orbit{width:94vw}.civic-icon{width:42px;height:42px}.brand-actions{gap:16px;margin-bottom:26px}.brand-wordmark span{font-size:.85rem}}

/* Reading-size reflow keeps content reachable without horizontal scrolling. */
html[data-resident=true] main,html[data-resident=true] main *{min-width:0;overflow-wrap:anywhere}
html[data-resident=true] fieldset{min-inline-size:0}
html[data-reading=extra-large] .brand{flex-wrap:wrap;max-width:100%;min-width:0}
html[data-reading=extra-large] header .brand{flex-basis:100%}
html[data-reading=extra-large] .constit-mark{width:48px;height:48px}
html[data-reading=extra-large] .constit-wordmark{min-width:0;max-width:100%}
html[data-reading=extra-large] .constit-wordmark strong{font-size:1.25rem}
html[data-reading=extra-large] .constit-wordmark small{font-size:.65rem;overflow-wrap:anywhere}
html[data-reading=extra-large] header{flex-wrap:wrap}
html[data-reading=extra-large] .entry-brand{flex-wrap:wrap}
html[data-reading=extra-large] .entry-brand>span{margin-left:0}
html[data-reading=extra-large] .preference-choices label{max-width:100%}

/* One approved green surface; navigation below remains mounted during startup. */
#brandLaunch[hidden]{display:none!important}body.startup-visible{overflow:hidden}html[data-resident=true] #brandLaunch{z-index:10000}html[data-resident=true] #brandLaunch .brand-wordmark strong{letter-spacing:-.035em}

html[data-resident=true] header{display:grid;grid-template-columns:minmax(0,1fr) 48px;grid-template-areas:"brand bell" "nav nav"}
html[data-resident=true] header>.brand{grid-area:brand;min-width:0;justify-self:start}
html[data-resident=true] header>nav{grid-area:nav}
html[data-resident=true] header>.notification-entry{grid-area:bell;display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;min-height:48px;padding:12px;border-radius:12px;text-decoration:none;justify-self:end}
html[data-resident=true] .notification-entry svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html[data-resident=true] header>.notification-entry:hover{filter:brightness(.92)}
html[data-resident=true] header>.notification-entry:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
@media(max-width:750px){html[data-resident=true] header{grid-template-columns:minmax(0,1fr) 48px auto;grid-template-areas:"brand bell menu" "nav nav nav";gap:8px}html[data-resident=true] header>.menu-toggle{grid-area:menu;padding:10px;min-height:48px}html[data-resident=true] header .constit-wordmark{overflow-wrap:anywhere}}
