/* Portal-wide visual contract. Included by PortalPushService and, as an
   external stylesheet, by the script-free public-information workspace.
   Module CSS owns layout and behaviour; this file owns shared appearance. */
html:is(.opu-public,.pi-page) {
  --opu-red:#e32636; --opu-red-text:#b51c2b; --opu-ink:#171b22;
  --opu-paper:#fff; --opu-soft:#f3f4f6; --opu-muted:#5c6370;
  --opu-line:#dce0e5; --opu-field-line:#b8bec7;
  --opu-radius:12px; --opu-control-radius:8px; --opu-content:1280px;
  --opu-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-synthesis:none;
}
html:is(.opu-public,.pi-page) body {font-family:var(--opu-font);background:var(--opu-paper);color:var(--opu-ink)}
html.opu-public body :is(.wao,.wri,.wri-enroll,.rw,.rt-page,.wnl,.lh-wrap,.wla,.wlg,.wc-public,.wpwa,.ws,.pq) {
  font-family:var(--opu-font);--ink:var(--opu-ink);--red:var(--opu-red);
  --muted:var(--opu-muted);--line:var(--opu-line);--paper:var(--opu-paper);
}
html.opu-public body :is(.wao-shell,.wnl-shell,.wri-shell) {width:min(var(--opu-content),calc(100% - 40px));margin-inline:auto}

/* One section heading: white band, compact introduction and a red rule. */
html:is(.opu-public,.pi-page) body .opu-section-head.opu-section-head {
  position:relative;isolation:isolate;min-height:0;margin:0 0 24px;padding:36px 0 30px;
  background:var(--opu-paper);color:var(--opu-ink);border:0;border-bottom:1px solid var(--opu-line);
  border-radius:0;box-shadow:none;gap:28px;align-items:center;font-family:var(--opu-font);
}
html:is(.opu-public,.pi-page) body .opu-section-head.opu-section-head::before {display:none}
html:is(.opu-public,.pi-page) body .opu-section-head.opu-section-head::after {
  content:"";display:block;position:absolute;inset:auto auto -1px 0;width:64px;height:3px;
  background:var(--opu-red);transform:none;border:0;border-radius:0;opacity:1;box-shadow:none;
}
html:is(.opu-public,.pi-page) body .opu-section-head.opu-section-head h1 {
  margin:10px 0 12px;font:800 48px/1.13 var(--opu-font);letter-spacing:-.035em;
  color:var(--opu-ink);text-wrap:balance;overflow-wrap:break-word;
}
html:is(.opu-public,.pi-page) body .opu-section-head.opu-section-head h1 span {color:var(--opu-red);font:inherit;letter-spacing:inherit}
html:is(.opu-public,.pi-page) body .opu-section-head.opu-section-head p {
  color:var(--opu-muted);font:400 17px/1.65 var(--opu-font);max-width:70ch;margin:0;
}
html:is(.opu-public,.pi-page) body .opu-section-head.opu-section-head :is(.lh-kicker,.lh-events-kicker,.ws-eyebrow,.pq-tag,.ws-step,.pi-eyebrow,.wao-kicker),
html.opu-public body .opu-section-head>.wpwa-shell>span,
html.opu-public body .opu-section-head>.wpwa-shell>div>span,
html.opu-public body .opu-section-head>.wnl-shell>span,
html.opu-public body .opu-section-head>.wri-shell>div>span,
html.opu-public body .wnl-public-copy>span {
  color:var(--opu-red-text);background:none;font:750 12px/1.5 var(--opu-font);letter-spacing:.05em;padding:0;border:0;
}
html.opu-public body .opu-section-head :is(.wpwa-shell,.ws-shell,.wri-shell)>div {margin-top:0}
html.opu-public body .opu-section-head :is(.wpwa-shell,.ws-shell,.wri-shell)>a,
html.opu-public body .opu-section-head .rw-back {color:var(--opu-muted);font-size:14px;line-height:1.5}
html.opu-public body :is(.wri-hero,.wpwa-hero,.wpwa-area-hero,.wpwa-today-head,.ws-public .ws-hero,.ws-track-head,.opu-about-hero,.opu-privacy-hero,.wnl-archive-hero,.wao-hero).opu-section-head {margin-bottom:0}
html.opu-public body :is(.wri-hero,.wpwa-hero,.wpwa-area-hero,.wpwa-today-head,.ws-public .ws-hero,.ws-track-head,.opu-about-hero,.opu-privacy-hero,.wnl-archive-hero,.wao-hero).opu-section-head::after {left:max(20px,calc((100% - var(--opu-content))/2))}
html.opu-public body .opu-section-head .wpwa-today-title p strong {color:var(--opu-ink)}
html.opu-public body .opu-section-head .wpwa-btn {margin-top:20px}
html.opu-public body .opu-section-head .lh-event-cta.is-light {background:var(--opu-paper);color:var(--opu-ink)!important;border-color:var(--opu-field-line)}
html.opu-public body .opu-section-head .ws-hero-note,
html.pi-page body .opu-section-head .pi-hero-note {
  background:#171b22;border:0;border-left:3px solid var(--opu-red);border-radius:12px;color:#fff;padding:24px;
}
html.opu-public body .opu-section-head .ws-hero-note span {color:#dce0e5}
html.opu-public body .opu-section-head .wao-hero-card {border-radius:12px;background:#171b22;color:#fff}
html.opu-public body .opu-section-head .wao-hero-card p {color:#dce0e5;font-size:16px;margin-block:14px}
html.opu-public body .wao-hero-grid {gap:32px}
html.opu-public body .wao-section-head h2 {font:750 32px/1.2 var(--opu-font);letter-spacing:-.025em}
html.opu-public body .wao-hero-card>strong {font-size:26px}
html.opu-public body .wnl-public-copy.opu-section-head {align-self:start;padding-top:0;background:transparent}
html.opu-public body .wnl-public-copy .wnl-edition-pills {margin-top:24px}
html.opu-public body .wnl-public-grid {gap:32px;align-items:start}
html.opu-public body .wnl-public-head nav {border-bottom:1px solid var(--opu-line)}
html.opu-public body .wri-hero .wri-shell>div>span {display:none}
html.opu-public body .wri-member .wri-hero .wri-shell {display:block}
html.opu-public body .wri-member .wri-hero h1 {display:block}
html.opu-public body .rw .rw-head {gap:24px}
html.opu-public body .rw .rw-head .rw-back {display:inline-block;margin-bottom:4px}
html.opu-public body .wri-enroll {font-family:var(--opu-font)}
html.opu-public body .wri-enroll h1 {font:800 32px/1.2 var(--opu-font);letter-spacing:-.025em}
html.opu-public body .oe-news-home .oe-news-title h1 {font:800 40px/1.13 var(--opu-font);letter-spacing:-.03em}

/* Fields and actions use the same rhythm, including modules outside LocalHub. */
html:is(.opu-public,.pi-page) body :is(.wao,.wri,.wri-enroll,.rw,.rt-page,.wnl,.pi-main) :is(input:not([type]),input[type=text],input[type=email],input[type=search],input[type=tel],input[type=url],input[type=password],input[type=number],input[type=date],input[type=time],textarea,select) {
  font:400 16px/1.5 var(--opu-font);min-height:46px;padding:10px 12px;max-width:100%;min-width:0;
  background:var(--opu-paper);color:var(--opu-ink);border:1px solid var(--opu-field-line);border-radius:var(--opu-control-radius);box-sizing:border-box;
}
html:is(.opu-public,.pi-page) body :is(.wri-btn,.rw-btn,.rt-btn,.wao-button,.wao-submit,.pi-button,.pi-main button) {
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;
  padding:11px 18px;border-radius:var(--opu-control-radius);font:700 15px/1.4 var(--opu-font);white-space:normal;text-align:center;
}
html.opu-public body :is(.wri-btn.accent,.rw-btn.rw-primary,.wao-button.red,.wao-submit) {background:var(--opu-red);color:#fff;border:1px solid var(--opu-red)}
html:is(.opu-public,.pi-page) body :is(a,button,input,textarea,select,summary):focus-visible {outline:3px solid var(--opu-red);outline-offset:3px}
html:is(.opu-public,.pi-page) body :is(.wri,.rw,.wao,.wnl,.pi-main) input:is([type=checkbox],[type=radio]) {accent-color:var(--opu-red)}
html.opu-public body :is(.wri,.rw,.wao,.wnl) :is(input,textarea)::placeholder {color:var(--opu-muted);font-weight:400;opacity:1}
html.opu-public body :is(.wri-card,.rw-sheet,.rw-empty,.wri-enroll-card,.wao-form,.wao-map-card,.wao-slot-card,.wnl-signup-card) {border-radius:var(--opu-radius);border-color:var(--opu-line)}
html.opu-public body :is(.wri,.rw) summary {font-size:16px;line-height:1.5;min-height:44px;align-content:center}
html.opu-public body :is(.wri,.rw) summary::marker {color:var(--opu-red)}

html.opu-public body .rw .rw-title input {font-size:24px;font-weight:700;line-height:1.3}

/* The same tabs work as rows, wrapping mobile controls or an account sidebar. */
html.opu-public body :is(.rw-list-tabs,.wnl-public-head nav>div,.wao-catalog-nav) {display:flex;flex-wrap:wrap;gap:8px}
html.opu-public body :is(.rw-list-tabs,.wao-catalog-nav)>a,
html.opu-public body .wnl-public-head nav>div>a {
  display:inline-flex;align-items:center;min-height:46px;padding:10px 16px;border:1px solid var(--opu-line);
  border-radius:8px;background:var(--opu-paper);color:var(--opu-ink);font:650 15px/1.4 var(--opu-font);text-decoration:none;
}
html.opu-public body .rw-list-tabs>a[aria-current=page],
html.opu-public body .wri-account-nav a[aria-current=page] {background:#171b22;color:#fff;border-color:#171b22;box-shadow:inset 3px 0 var(--opu-red)}
html.opu-public body .wri-account-nav a[aria-current=page] :is(strong,small,svg) {color:#fff}
html.opu-public body :is(.rw-list-tabs,.wao-catalog-nav)>a:hover,
html.opu-public body .wnl-public-head nav>div>a:hover {border-color:var(--opu-red);color:var(--opu-red-text)}

/* Public information: same visual system, no JS, tracking or extra connections. */
html.pi-page {--pi-red:var(--opu-red);--pi-ink:var(--opu-ink);--pi-muted:var(--opu-muted);--pi-line:var(--opu-line);--pi-paper:var(--opu-paper);font-family:var(--opu-font)}
html.pi-page body .pi-main {width:min(var(--opu-content),calc(100% - 40px));max-width:none;margin-inline:auto;padding:0 0 48px}
html.pi-page body .pi-header {padding-inline:max(20px,calc((100% - 1320px)/2));font-family:var(--opu-font)}
html.pi-page body .pi-hero {grid-template-columns:minmax(0,1fr) 310px;overflow:visible}
html.pi-page body .pi-hero .pi-button {margin-top:22px}
html.pi-page body .pi-hero-note strong {font-size:20px;line-height:1.5}
html.pi-page body .pi-hero-note a {font-size:15px;line-height:1.5}
html.pi-page body .pi-hero-note>span {border-radius:8px}
html.pi-page body .pi-nav {width:min(var(--opu-content),calc(100% - 40px));margin:0 auto;padding:10px 0;justify-content:flex-start;gap:8px;border-top:0}
html.pi-page body .pi-nav a {display:inline-flex;align-items:center;min-height:46px;padding:10px 16px;border:1px solid transparent;border-radius:8px;font-size:15px}
html.pi-page body .pi-nav a[aria-current=page] {background:#171b22;color:#fff;box-shadow:inset 0 -3px var(--opu-red)}
html.pi-page body .pi-nav a:hover {border-color:var(--opu-red)}
html.pi-page body .pi-footer {max-width:none;background:#171b22;color:#dce0e5;padding:30px max(20px,calc((100% - var(--opu-content))/2));font-size:15px}
html.pi-page body .pi-footer :is(strong,a) {color:#fff}
html.pi-page body .pi-alert {background:#fff;border-color:var(--opu-red);border-left-width:4px;color:var(--opu-ink)}
html.pi-page body .pi-empty {background:var(--opu-soft);border:1px solid var(--opu-line);padding:28px}
html.pi-page body .pi-check {font-size:16px}

/* Navigation labels remain readable instead of shrinking to fit one row. */
html.opu-public body .opu-shell .opu-mobile-nav>a.active,
html.opu-public body .opu-shell .opu-mobile-more[open]>summary {background:#171b22!important;color:#fff!important}
html.opu-public body .opu-shell .opu-header-menu-panel a.active {background:#171b22;color:#fff!important}
html.opu-public body .opu-shell .opu-header-menu-panel a.active>svg {color:#fff}
@media(max-width:600px) {
  html.opu-public body .opu-shell .opu-header-row {position:relative;grid-template-columns:minmax(0,1fr) auto;gap:10px 16px;min-height:132px;padding:12px 0;width:calc(100% - 32px)}
  html.opu-public body .opu-shell .opu-brand {grid-column:1;grid-row:1}
  html.opu-public body .opu-shell .opu-brand-logo {width:230px;max-width:100%}
  html.opu-public body .opu-shell .opu-brand small {font-size:10px;padding-left:31px}
  html.opu-public body .opu-shell .opu-header-menu {position:static;grid-column:2;grid-row:1}
  html.opu-public body .opu-shell .opu-action-menu {position:static}
  html.opu-public body .opu-shell .opu-header-menu>summary {font-size:11px;min-height:48px;min-width:48px}
  html.opu-public body .opu-shell .opu-actions {grid-column:1/-1;grid-row:2;width:100%;margin:0;gap:8px;justify-content:space-between}
  html.opu-public body .opu-shell .opu-actions>.opu-account {font-size:15px;min-height:46px;padding:10px 14px;background:transparent;color:#fff!important;border-color:#59606a}
  html.opu-public body .opu-shell .opu-resident-menu>summary {min-height:46px;font-size:15px;padding:10px 12px;gap:6px}
  html.opu-public body .opu-shell .opu-resident-menu>summary>span {font-size:15px}
  html.opu-public body .opu-shell .opu-resident-menu>summary>span::after {content:none}
  html.opu-public body .opu-shell .opu-profile-menu {flex:1;min-width:0}
  html.opu-public body .opu-shell .opu-profile-label {display:grid;min-width:0;max-width:none;flex:1}
  html.opu-public body .opu-shell .opu-profile-label strong {font-size:14px}
  html.opu-public body .opu-shell .opu-profile-label small {font-size:12px}
  html.opu-public body .opu-shell .opu-profile-menu>summary {padding-inline:0;gap:7px}
  html.opu-public body .opu-shell .opu-actions .opu-action-panel,
  html.opu-public body .opu-shell .opu-header-menu-panel {position:absolute;top:calc(100% + 8px);left:0;right:0;max-height:calc(100dvh - 240px - env(safe-area-inset-bottom))}
  html.opu-public body .opu-shell .opu-mobile-nav>a,
  html.opu-public body .opu-shell .opu-mobile-more>summary {font-size:11.5px;line-height:1.3}
}

@media(max-width:760px) {
  html.opu-public body :is(.wao-shell,.wnl-shell,.wri-shell),html.pi-page body :is(.pi-main,.pi-nav) {width:calc(100% - 32px)}
  html:is(.opu-public,.pi-page) body .opu-section-head.opu-section-head {display:block;padding:26px 0 24px;margin-bottom:20px}
  html:is(.opu-public,.pi-page) body .opu-section-head.opu-section-head h1 {font-size:32px;line-height:1.16;letter-spacing:-.025em}
  html:is(.opu-public,.pi-page) body .opu-section-head.opu-section-head p {font-size:16px}
  html.opu-public body .opu-section-head :is(.lh-events-hero-actions,.lh-actions,.ws-hero-note,.wla-primary,.wlg-emergency) {margin-top:20px}
  html.opu-public body .wnl-public-copy.opu-section-head {padding-top:0}
  html.opu-public body .wao-hero-grid {gap:24px}
  html.opu-public body .wao-section-head h2 {font-size:28px}
  html.opu-public body .oe-news-home .oe-news-title h1 {font-size:32px}
  html.opu-public body .rw-head>.rw-btn {margin-top:20px}
  html.pi-page body .pi-header {padding-inline:16px}
  html.pi-page body .pi-hero-note {margin-top:24px}
  html.pi-page body .pi-nav a {flex:1 1 auto;justify-content:center;font-size:14px;padding-inline:10px}
}

/* Reader preferences take precedence over the default light surfaces. */
html.opu-public[data-portal-theme=dark] {--opu-paper:#20262f;--opu-ink:#f1f3f5;--opu-muted:#c2c8d1;--opu-line:#4e5662;--opu-field-line:#687181;--opu-soft:#2b323d;--opu-red-text:#fff}
html.opu-public[data-portal-theme=dark] body .opu-section-head.opu-section-head {background:var(--opu-paper);color:var(--opu-ink);border-color:var(--opu-line)}
@media(prefers-reduced-motion:reduce) {html:is(.opu-public,.pi-page) body {scroll-behavior:auto}}

/* One pagination component for news and the events calendar. */
html.opu-public body .opu-pagination{grid-column:1/-1;width:100%;min-width:0;margin:28px 0 16px;padding:22px 0 6px;border-top:1px solid var(--opu-line);color:var(--opu-ink);font-family:var(--opu-font)}
html.opu-public body .opu-pagination-summary{margin:0 0 16px;text-align:center;font-size:14px;line-height:1.5;color:var(--opu-muted)}
html.opu-public body .opu-pagination-summary strong{color:var(--opu-ink);font-weight:800}
html.opu-public body .opu-pagination-summary>span{padding:0 7px}
html.opu-public body .opu-pagination-bar{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:14px 24px}
html.opu-public body .opu-pagination-numbers{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none;max-width:100%}
html.opu-public body .opu-pagination-numbers li{display:block;list-style:none;margin:0;padding:0}
html.opu-public body .opu-pagination :is(a,[aria-current=page],.opu-pagination-prev,.opu-pagination-next){box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;min-width:46px;margin:0;padding:10px 13px;border:1px solid var(--opu-line);border-radius:9px;background:var(--opu-paper);color:var(--opu-ink);font-size:16px;line-height:1.25;font-weight:700;text-decoration:none;box-shadow:none}
html.opu-public body .opu-pagination a:hover{background:var(--opu-soft);border-color:var(--opu-field-line);color:var(--opu-red-text)}
html.opu-public body .opu-pagination a:focus-visible{outline:3px solid var(--opu-red);outline-offset:3px}
html.opu-public body .opu-pagination [aria-current=page]{background:#c8192b;border-color:#c8192b;color:#fff;font-weight:800}
html.opu-public body .opu-pagination [aria-disabled=true]{color:var(--opu-muted);border-color:transparent;background:transparent;font-weight:400}
html.opu-public body .opu-pagination li.opu-pagination-gap{min-width:18px;text-align:center;color:var(--opu-muted);font-size:18px}
@media(max-width:700px){
 html.opu-public body .opu-pagination{margin-top:16px;padding-top:18px}
 html.opu-public body .opu-pagination-bar{display:grid;grid-template-columns:1fr 1fr;grid-template-areas:"numbers numbers" "prev next";gap:14px 10px}
 html.opu-public body .opu-pagination-numbers{grid-area:numbers;gap:5px}
 html.opu-public body .opu-pagination-numbers :is(a,[aria-current=page]){min-width:44px;min-height:44px;padding:10px}
 html.opu-public body .opu-pagination-prev{grid-area:prev;justify-self:start}
 html.opu-public body .opu-pagination-next{grid-area:next;justify-self:end}
 html.opu-public body .opu-pagination :is(.opu-pagination-prev,.opu-pagination-next){font-size:14px;padding:10px;gap:5px}
}

.oe-my-area-card>a,.wpwa-area-card>a{position:relative}.opu-news-update{position:absolute;z-index:2;top:10px;left:10px;max-width:calc(100% - 20px);background:#bd172b;color:#fff;padding:6px 9px;border-radius:5px;font:750 13px/1.2 system-ui,sans-serif;box-shadow:0 1px 5px #0003}
.opu-without-cover .opu-news-update{position:static;display:inline-block;margin:10px 0 8px}
