/* Public layout plus shared public/portal header; consoles remain excluded. */
body.public-shell-page{margin:0;background:#f3f9fa;color:#153c4a;font-family:Inter,"Segoe UI",Arial,sans-serif}
.public-shell-page .public-sr-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.public-shell-page *{box-sizing:border-box}
.public-site-header{background:#fff;border-bottom:1px solid #d5e4e8}
/* The portal CSP rejects the environment helper's inline style. Keep its
   existing TEST marker opaque and sticky through this permitted stylesheet. */
:is(body.public-shell-page,body.admin-portal-page)>[data-livepalmes-test-banner]{position:sticky;top:0;z-index:100000;padding:7px 16px;background:#7f1d1d;color:#fff;font:700 12px/1.2 system-ui,sans-serif;letter-spacing:.1em;text-align:center;box-shadow:0 2px 6px #0004}
:is(body.public-shell-page,body.admin-portal-page)>[data-livepalmes-test-banner][data-variant=sensitive]{padding:10px 16px;background:#b91c1c;font-size:14px;font-weight:800;letter-spacing:.12em;box-shadow:0 2px 8px #0005}
.public-site-header-inner{width:min(1120px,calc(100% - 32px));margin:auto;display:flex;align-items:center;gap:16px;min-height:80px;padding:12px 0}
.public-site-brand{display:flex;align-items:center;gap:8px;color:#153c4a;text-decoration:none;font-size:1.25rem;font-weight:700;white-space:nowrap}
.public-site-brand img{width:108px;height:56px;object-fit:contain}
.public-site-nav{display:flex;align-items:center;gap:4px;margin-left:auto}
.public-site-nav a{display:flex;align-items:center;justify-content:center;min-height:40px;padding:9px 10px;border-radius:6px;text-decoration:none;color:#153c4a;font-size:.85rem;font-weight:600;white-space:nowrap}
.public-site-nav a[aria-current=page]{background:#e4f3f5;color:#086f7e}
.public-site-nav a:hover{background:#edf6f7}
.public-site-portal{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 11px;border:1px solid #b8d4d9;border-radius:6px;color:#075d69;font-size:.78rem;font-weight:700;text-decoration:none;background:#f6fbfc;white-space:nowrap}
.public-site-context{width:min(1120px,calc(100% - 32px));margin:16px auto 0;display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:#56717d;font-size:.78rem;line-height:1.5}
.public-site-context a{color:#086f7e;text-underline-offset:3px}
.public-site-context .public-site-back{margin-left:auto;padding:7px 10px;background:#e4f3f5;border-radius:6px;text-decoration:none;min-height:36px;display:inline-flex;align-items:center}
.public-shell-page a:focus-visible{outline:3px solid #174c76;outline-offset:3px}
.public-shell-page .public-home-shell,.public-shell-page .calendar-shell,.public-shell-page .public-results-shell,.public-shell-page .legal-shell,.public-shell-page.pdf-viewer-page .pdf-viewer-shell{width:min(1120px,calc(100% - 32px));margin:0 auto;padding:20px 0 32px}
.public-shell-page[data-public-section=home] .public-home-shell{padding-top:24px}
.public-shell-ready .calendar-header,.public-shell-ready .legal-topbar,.public-shell-ready .public-home-utility{display:none}
.public-shell-page .public-home-hero{margin:0 0 20px;padding:0;min-height:0;display:block;background:none;border:0;box-shadow:none}
.public-shell-ready .public-home-logo-card,.public-shell-ready .calendar-hero-federal-logo{display:none}
.public-shell-ready .public-home-hero p{display:none}
.public-shell-page .public-home-hero h1,.public-shell-page .calendar-hero h1,.public-shell-page .calendar-detail-hero h1,.public-shell-page .legal-card h1,.public-shell-page .topbar h1,.public-shell-page .public-results-header h1{color:#153c4a;font-size:1.8rem;line-height:1.25;letter-spacing:-.025em;margin:0 0 8px;overflow-wrap:anywhere}
.public-shell-page .calendar-hero,.public-shell-page .calendar-detail-hero{background:none;box-shadow:none;border:0;border-radius:0;color:#153c4a;min-height:0;padding:0;margin:0 0 20px;overflow:visible}
.public-shell-page .calendar-hero p,.public-shell-page .calendar-detail-hero p{color:#56717d}
.public-shell-ready .calendar-hero-eyebrow,.public-shell-ready .calendar-kicker{display:none}
.public-shell-page .calendar-detail-hero .calendar-badge{background:#e4f3f5;color:#086f7e}
.public-shell-page .calendar-detail-meta{color:#56717d}
.public-shell-page .calendar-detail-meta .calendar-event-type,.public-shell-page .calendar-detail-separator{color:#086f7e}
.public-shell-page .calendar-results-primary{background:#086f7e;color:#fff;border-color:#086f7e}
.public-shell-page .calendar-results-secondary{background:#fff;color:#086f7e;border-color:#b8d4d9}
.public-shell-page .calendar-detail-card h2{font-size:1.15rem;line-height:1.35;color:#153c4a}
.public-shell-page .topbar.performance-public-topbar,.public-shell-page .topbar.simple,.public-shell-page .public-results-header{position:relative;width:min(1120px,calc(100% - 32px));margin:0 auto;padding:20px 0 0;min-height:0;height:auto;border:0;border-radius:0;background:none;color:#153c4a;box-shadow:none;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.public-shell-ready .topbar-logo,.public-shell-ready .public-topbar-logo,.public-shell-ready .topbar-home-link,.public-shell-ready .topbar-title>.eyebrow,.public-shell-ready .public-topbar-title>.eyebrow,.public-shell-ready .public-results-header .app-name{display:none}
.public-shell-ready .public-topbar-home-link[href="./"]{display:none}
.public-shell-page .public-topbar-home-link{color:#086f7e}
.public-shell-page .performance-public-topbar .main-nav,.public-shell-page .topbar.simple .main-nav{position:static;display:flex;flex-wrap:wrap;justify-content:flex-start;width:100%;margin:0;padding:0 0 10px;gap:6px;border-bottom:1px solid #d5e4e8}
.public-shell-page .main-nav a{background:#e4f3f5;border:1px solid transparent;border-radius:6px;color:#086f7e;padding:8px 11px;min-height:36px;font-size:.8rem;line-height:1.3;text-decoration:none}
.public-shell-page .main-nav a.active{background:#086f7e;color:#fff}
.public-shell-page .public-header-actions{position:static;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.public-shell-page .public-page-switch{background:#e4f3f5;color:#086f7e;border-color:#d5e4e8}
.public-shell-page .firebase-header-status{color:#56717d;background:#e4f3f5}
.public-shell-page .public-medals-title-event{color:#56717d;font-size:1rem}
.public-shell-page[data-public-section=performances]>main{width:min(1120px,calc(100% - 32px));margin:0 auto;padding:20px 0 32px}
.public-shell-page .legal-card{max-width:880px;padding:0;background:none;border:0;box-shadow:none}
.public-shell-ready .legal-eyebrow{display:none}
.public-shell-page.pdf-viewer-page .public-results-header{padding-bottom:8px}
.public-shell-page.pdf-viewer-page{overflow:auto}
.public-shell-page.pdf-viewer-page .public-results-header>div:first-child{display:block;flex:1;min-width:0;overflow:visible}
.public-shell-page.pdf-viewer-page .public-results-header h1{white-space:normal;overflow:visible;text-overflow:clip}
.public-shell-page.pdf-viewer-page .pdf-viewer-shell{min-height:0;height:auto;padding-top:12px}
.public-shell-page.pdf-viewer-page .pdf-frame{height:70vh;min-height:320px}
.public-shell-page .public-footer,.public-shell-page .performance-public-footer{width:min(1120px,calc(100% - 32px));margin:0 auto;padding:18px 0 24px;color:#56717d}
@media(max-width:850px){
 .public-site-header-inner{flex-wrap:wrap;gap:8px 12px;padding:10px 0}
 .public-site-brand{order:1}.public-site-portal{order:3;margin-left:auto}
 .public-site-nav{order:4;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;margin:0;gap:3px}
 .public-site-nav a{min-height:44px;padding:8px 3px;font-size:.8rem}
}
@media(max-width:520px){
 .public-site-header-inner{width:calc(100% - 24px);gap:8px}
 .public-site-brand img{width:90px;height:48px}
 .public-site-portal{min-height:44px;padding:6px 7px;font-size:.7rem}
 .public-site-nav a{font-size:.74rem;white-space:normal}
 .public-site-context{margin-top:12px}
 .public-shell-page .public-home-hero h1,.public-shell-page .calendar-hero h1,.public-shell-page .calendar-detail-hero h1,.public-shell-page .legal-card h1,.public-shell-page .topbar h1,.public-shell-page .public-results-header h1{font-size:1.5rem}
 .public-shell-page .main-nav a{min-height:40px;display:inline-flex;align-items:center;padding:7px 9px}
 .public-site-context .public-site-back,.public-shell-page.pdf-viewer-page .public-results-header .ghost-button{min-height:44px}
 .public-shell-page .calendar-shell,.public-shell-page .public-home-shell{padding-top:16px}
}
@media(max-width:360px){.public-site-portal{font-size:.7rem}.public-site-brand img{width:84px;height:44px}}
.public-shell-page .public-federal-link{color:inherit;text-underline-offset:3px}

html.livepalmes-site-shell{scrollbar-gutter:stable}

/* Common public/portal frame: stable geometry and palette, independent of content width. */
.public-site-header {
 --portal-color-text:#153c4a;--portal-color-brand:#153c4a;--portal-color-muted:#56717d;
 --portal-color-surface:#fff;--portal-color-field-background:#e4f3f5;
 --portal-color-accent:#086f7e;--portal-color-accent-strong:#086f7e;
 --portal-color-border:#d5e4e8;--portal-color-field-border:#b8d4d9;--portal-color-hover-border:#086f7e;
 position:sticky;top:var(--site-banner-height,0px);z-index:45;
 color:#153c4a;background:#fff;font-family:Inter,"Segoe UI",Arial,sans-serif;
 border-bottom:1px solid #d5e4e8;
}
.public-site-header *{box-sizing:border-box}
.public-site-header-inner{width:min(1720px,calc(100% - 40px));min-height:74px;padding:10px 0;gap:16px}
.public-site-brand{gap:12px;color:#153c4a}.public-site-brand img{width:94px;height:50px}
.public-site-wordmark{font-size:21px;font-weight:800;letter-spacing:-.6px}
.public-site-wordmark small{display:block;font-size:10px;font-weight:600;letter-spacing:.2px;color:#56717d;margin-top:3px}
.public-site-nav details{position:relative}
.public-site-nav a,.public-site-nav summary{font-family:inherit;font-size:13px;font-weight:600;line-height:20px;color:#153c4a}
.public-site-nav summary{list-style:none;cursor:pointer;display:flex;align-items:center;min-height:44px;padding:9px 10px;border-radius:6px;white-space:nowrap}
.public-site-nav summary::-webkit-details-marker{display:none}.public-site-nav summary::after{content:none}
.public-site-nav summary:hover,.public-site-nav summary.is-current,.public-site-header .public-site-nav a:hover,.public-site-nav a[aria-current=page]{background:#e4f3f5;color:#086f7e}
.public-site-dropdown{position:absolute;top:100%;left:0;min-width:210px;padding:6px;background:#fff;border:1px solid #d5e4e8;border-radius:7px;box-shadow:0 8px 24px #173e4a20;z-index:50}
.public-site-dropdown a{justify-content:flex-start;min-height:44px}
.public-site-header .public-site-portal{width:94px;min-height:44px;flex-shrink:0;padding:8px 10px;background:#e4f3f5;border:1px solid #b8d4d9;color:#086f7e;line-height:20px;font-size:12.48px}
.public-site-header .public-site-portal[aria-current=page]{background:#e4f3f5;box-shadow:inset 0 -2px #086f7e;color:#086f7e}
.public-site-menu-toggle{display:none}
.public-site-header :is(a,button,summary):focus-visible{outline:3px solid #174c76;outline-offset:3px}
/* Reserve the same account slot even before sign-in; no identity is copied to public pages. */
#publicSiteAccount{display:block;width:44px;min-width:44px;flex:0 0 44px}
#publicSiteAccount .admin-portal-account-menu{position:relative}
#publicSiteAccount #adminPortalAccountToggle,.public-site-account-link{display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:8px;margin:0;border:1px solid #b8d4d9;border-radius:6px;background:#fff;color:#153c4a;box-shadow:none;cursor:pointer}
#publicSiteAccount #adminPortalAccountToggle:hover,.public-site-account-link:hover{background:#e4f3f5;border-color:#086f7e}
#publicSiteAccount #adminPortalSessionLabel,#publicSiteAccount #adminPortalAccountClubCode{display:none}
#publicSiteAccount .admin-portal-account-icon,.public-site-account-link svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#publicSiteAccount .admin-portal-account-actions{top:calc(100% + 8px);bottom:auto;right:0;left:auto;max-height:65dvh;overflow:auto}
#publicSiteAccount .public-site-account-link[hidden]{display:none}
.admin-portal-page.public-shell-ready .admin-portal-topbar{top:var(--site-header-bottom,74px);z-index:40;min-height:0}
.admin-portal-page.public-shell-ready .admin-portal-topbar>.admin-portal-federal-logo,.admin-portal-page.public-shell-ready .admin-portal-topbar>.admin-portal-brand,.admin-portal-page.public-shell-ready .admin-portal-sidebar-brand>.admin-portal-federal-logo,.admin-portal-page.public-shell-ready .admin-portal-sidebar-brand>.admin-portal-brand{display:none}
.admin-portal-page.public-shell-ready .admin-portal-sidebar{top:var(--site-workspace-top,74px)}
.admin-portal-page.public-shell-ready .admin-long-operation{top:calc(var(--site-workspace-top,74px) + 12px)}
@media(min-width:1081px){.admin-portal-page.public-shell-ready .admin-portal-sidebar-brand:not([hidden]){display:block;padding:0 8px 12px}.admin-portal-page.public-shell-ready .admin-portal-topbar{display:none}}
@media(min-width:821px){.admin-portal-page.public-shell-ready :is(#adminEngagementsCalendarCard .admin-engagements-calendar-filters,#adminDtnView .admin-dtn-toolbar,#adminImportView .competition-import-history-filters){top:var(--site-workspace-top,74px)}}
@media(max-width:1080px){.public-site-header-inner{gap:10px}.public-site-wordmark{font-size:19px}}
@media(max-width:850px){
 .public-site-header-inner{width:calc(100% - 24px);flex-wrap:wrap;gap:6px;min-height:66px;padding:8px 0}
 .public-site-brand{order:1;margin-right:auto;gap:7px}.public-site-brand img{width:74px;height:44px}.public-site-wordmark{font-size:17px}
 .public-site-header .public-site-portal{order:2;margin-left:0;width:80px;padding:6px;font-size:11.84px}
 #publicSiteAccount{order:3;width:30px;min-width:30px;flex-basis:30px}
 #publicSiteAccount #adminPortalAccountToggle,.public-site-account-link{width:30px;min-width:30px;padding:4px}
 .public-site-menu-toggle{order:4;display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:7px 4px;border:1px solid #b8d4d9;border-radius:6px;background:#fff;color:#153c4a;font:600 12px Inter,"Segoe UI",Arial,sans-serif;cursor:pointer}
 .public-site-header-inner .public-site-nav{order:5;display:none;grid-template-columns:1fr 1fr;width:100%;margin:6px 0 0;border-top:1px solid #d5e4e8;padding-top:6px;gap:3px}
 .is-site-menu-open .public-site-nav{display:grid}
 .public-site-nav>a,.public-site-nav summary{justify-content:flex-start;min-height:44px;padding:9px 10px;font-size:12.8px}
 .public-site-nav details[open]{grid-column:1/-1}.public-site-dropdown{position:static;display:grid;grid-template-columns:1fr 1fr;min-width:0;box-shadow:none;border:0;padding:0}
}
@media(max-width:380px){.public-site-header-inner{width:calc(100% - 20px);gap:4px}.public-site-brand{gap:5px}.public-site-brand img{width:66px}.public-site-wordmark{font-size:16px}.public-site-menu-toggle{font-size:11px}}

/* Same decorative wash on every public page; it scrolls with the document. */
body.public-shell-page{
 --public-intro-height:260px;
 --public-intro-blue:#e4f4f7;
 --public-intro-fade:#edf7f9;
 --public-page-neutral:#f5f8fa;
 background-color:var(--public-page-neutral);
 background-image:linear-gradient(180deg,var(--public-intro-blue),var(--public-intro-fade) 55%,var(--public-page-neutral));
 background-size:100% var(--public-intro-height);
 background-position:center var(--site-header-bottom,74px);
 background-repeat:no-repeat;
 background-attachment:scroll;
}
/* Retire the calendar-only fixed glow behind the shared public shell. */
body.public-shell-page::before{content:none}
/* Workspace titles only: no new hero, card or fixed height in the portal. */
.admin-portal-page{--site-heading-wash:#edf7f9;--site-heading-edge:#b8dce3}
.admin-portal-page .admin-portal-workspace-head>h2{
 background-image:linear-gradient(90deg,var(--site-heading-wash),transparent);
 border-inline-start:3px solid var(--site-heading-edge);
 padding-inline-start:10px;
}
html[data-portal-theme="dark"] .admin-portal-page{--site-heading-wash:#203640;--site-heading-edge:#427984}
@media print{
 body.public-shell-page{background:#fff}
 .admin-portal-page .admin-portal-workspace-head>h2{background:none;border-inline-start:0;padding-inline-start:0}
}

/* Connected mobile navigation; public visitors and desktop keep their existing frame. */
.livepalmes-mobile-navigation,.admin-mobile-overview-shortcut{display:none}
@media(max-width:1080px){
 body.has-mobile-portal-navigation{--mobile-portal-rail-height:calc(62px + env(safe-area-inset-bottom,0px));padding-bottom:var(--mobile-portal-rail-height);scroll-padding-bottom:calc(var(--mobile-portal-rail-height) + 16px)}
 html:has(body.has-mobile-portal-navigation){scroll-padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))}
 .has-mobile-portal-navigation .livepalmes-mobile-navigation:not([hidden]){position:fixed;inset:auto 0 0;z-index:70;display:flex;align-items:stretch;min-height:62px;padding:4px max(12px,env(safe-area-inset-left,0px)) calc(5px + env(safe-area-inset-bottom,0px));gap:8px;border-top:1px solid #c9dfe4;background:#fff;box-shadow:0 -3px 14px #153c4a0a;box-sizing:border-box}
 .livepalmes-mobile-navigation a{flex:1 1 0;min-width:0;min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:5px 3px;border-radius:7px;color:#56717d;font:600 11px/1.2 Inter,"Segoe UI",Arial,sans-serif;text-decoration:none;box-sizing:border-box}
 .livepalmes-mobile-navigation a[hidden]{display:none}
 .livepalmes-mobile-navigation a[aria-current=page]{color:#086f7e;background:#e4f3f5}
 .livepalmes-mobile-navigation a:hover{background:#edf6f7}
 .livepalmes-mobile-navigation a:focus-visible{outline:3px solid #174c76;outline-offset:-3px}
 .livepalmes-mobile-navigation svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 .admin-portal-page.has-mobile-portal-navigation .admin-portal-topbar,.admin-portal-page.has-mobile-portal-navigation .admin-portal-sidebar,.admin-portal-page.has-mobile-portal-navigation .public-site-portal,.admin-portal-page.has-mobile-portal-navigation .public-site-menu-toggle,.admin-portal-page.has-mobile-portal-navigation .public-site-nav{display:none!important}
 .admin-portal-page.has-mobile-portal-navigation .admin-portal-layout{grid-template-columns:minmax(0,1fr)}
 .has-mobile-portal-navigation .admin-mobile-overview-shortcut:not([hidden]){display:block}
 .admin-portal-page.has-mobile-portal-navigation #adminAccessView .admin-access-pagination{bottom:var(--mobile-portal-rail-height)}
 .has-mobile-portal-navigation.mobile-portal-keyboard .livepalmes-mobile-navigation{display:none}
 html[data-portal-theme=dark] .admin-portal-page .livepalmes-mobile-navigation{background:var(--portal-color-surface,#172a33);border-color:var(--portal-color-border,#36515b)}
 html[data-portal-theme=dark] .admin-portal-page .livepalmes-mobile-navigation a{color:var(--portal-color-text,#e2edf0)}
 html[data-portal-theme=dark] .admin-portal-page .livepalmes-mobile-navigation a[aria-current=page]{background:#203e48;color:#93e3ed}
}
@media print{.livepalmes-mobile-navigation{display:none!important}body.has-mobile-portal-navigation{padding-bottom:0}}
