/* Desktop-only layout. Mobile styles remain unchanged below 1024px. */
@media (min-width:1024px){
 body{max-width:1240px;width:calc(100% - 64px);margin:0 auto;min-height:100vh}
 .mobile-header{max-width:none;min-height:108px;padding:22px 80px}
 .mobile-header .header-wordmark.wordmark-spaced{max-width:470px;column-gap:6px}
 .mobile-header #menuBtn.main-menu-toggle{left:24px;width:48px;height:48px}
 .header-search{padding:18px 40px 22px}
 .header-search form,.header-search #searchResults{max-width:680px;margin-left:auto;margin-right:auto}
 .header-search input{font-size:16px;padding-left:20px}
 #menu{left:max(0px,calc((100vw - 1240px)/2));width:360px}
 #backToTop{right:max(28px,calc((100vw - 1240px)/2 + 20px))}
 .section{max-width:none;margin:0 48px;padding:36px 0}
 .info-page,.admin-page{max-width:1040px;margin:0 auto;padding:32px 40px 64px}
 .info-page-heading{padding:0 0 22px}
 .info-page-heading h1,.admin-page h1{font-size:32px}
 .info-page-content{padding-top:32px}
 .branch-declaration{max-width:850px;margin:auto}
 .branch-declaration p{font-size:17px}
 .rules-panel{max-width:880px;margin:0 auto}
 .rules-tabs [role=tab]{font-size:18px;min-height:54px}
 .weekly-menu-content{max-width:860px;margin:auto}
 main:has(>.slideshow){display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);grid-template-rows:min-content 1fr auto;grid-template-areas:'slides news' 'slides schedule' 'paper paper';gap:28px 36px;padding:36px 40px 48px;align-items:start}
 main>.slideshow{grid-area:slides;padding:16px 16px 6px;border-radius:14px;min-width:0}
 .slide-stage{aspect-ratio:4/5;max-height:620px}
 main>#news.news-board{grid-area:news;margin:0;padding:0 0 22px;min-width:0;align-self:start}
 #news.news-board .news-nav a{font-size:18px;min-height:54px}
 .news-list li{min-height:56px;padding:14px 4px}
 .news-title{font-size:17px}
 .news-list time{font-size:13px}
 main>.weekly-schedule{grid-area:schedule;margin:0;padding:0;min-width:0}
 .schedule-heading h2{font-size:25px}
 .schedule-label{justify-content:center}
 main>.ilabor-news{grid-area:paper;margin:0;padding:30px 0 12px;border-bottom:0;min-width:0}
 .ilabor-news h2 .ilabor-logo{width:250px}
 #ilaborArticles{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;align-items:start}
 .ilabor-feature{margin:0;gap:20px}
 .ilabor-feature img{width:45%;max-height:220px}
 .ilabor-feature strong{font-size:20px}
 .ilabor-list{min-width:0}
 .ilabor-list li{padding:12px 0}
 body[data-news-kind] #news.news-page{margin:0 48px;padding:30px 0 60px}
 body[data-news-kind] .news-page .news-page-heading{padding:0 0 24px}
 body[data-news-kind] .news-page .news-page-heading h1{font-size:32px}
 .reference-table .image-column{width:110px}.reference-table .date-column{width:120px}
 .reference-table th{padding:16px 12px;font-size:16px}
 .reference-table td{padding:18px 12px}.reference-table td a{font-size:18px}
 .reference-table img{width:80px;height:80px}.reference-table time{font-size:14px}
 .board-search{max-width:620px;margin:0 auto 28px}
 .post-content{max-width:880px;margin:auto}.post-title{font-size:28px}
 .post-image{max-height:none;max-width:100%;height:auto}
 .clubs-tabs [role=tab]{font-size:18px;padding:12px 8px;letter-spacing:0}
 .clubs-content [role=tabpanel]{padding:36px}
 .admin-page #loginPanel{max-width:500px;margin:28px auto}
 .admin-page .admin-tabs button{font-size:17px;padding:14px}
 .admin-page .slide-editor-list{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
 #scheduleInputs{display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px 20px;align-items:start}
 #scheduleInputs label{margin-top:12px}
}
/* Reference desktop header: identity at left, navigation and search at right. */
.desktop-navigation{display:none}
@media(min-width:1024px){
 html{background:#fff}body{box-shadow:none;max-width:1200px;width:calc(100% - 64px)}
 .mobile-header{height:170px;min-height:170px;padding:0;background:#fff;display:block;z-index:auto}
 .mobile-header>.brand{position:absolute;left:0;top:36px;width:34%;height:88px;background:#1c5196;padding:14px 18px;border-radius:2px}
 .mobile-header .header-wordmark.wordmark-spaced{max-width:370px;column-gap:4px}
 .mobile-header>nav:not(.desktop-navigation),.mobile-header #menuBtn.main-menu-toggle{display:none}
 .mobile-header .desktop-navigation{display:flex;position:absolute;top:24px;right:0;width:62%;gap:0;background:#1c5196;justify-content:space-evenly;min-height:58px;z-index:20}
 .desktop-nav-group{position:relative;flex:1;min-width:0}
 .desktop-nav-group>button{width:100%;height:58px;color:#fff;font-size:18px;font-weight:750;padding:10px 8px}
 .desktop-nav-group>button:hover,.desktop-nav-group>button[aria-expanded=true]{background:#17427c}
 .desktop-dropdown{position:absolute;top:100%;left:0;min-width:210px;padding:12px 0;background:#fff;box-shadow:0 8px 24px #142c4920;border:1px solid #dce5ef;border-top:3px solid #1c5196;z-index:20}
 .desktop-dropdown[hidden]{display:none}
 .desktop-nav-group:nth-last-child(-n+2) .desktop-dropdown{left:auto;right:0}
 .desktop-dropdown a,.desktop-dropdown button{display:block;width:100%;text-align:left;padding:11px 18px;white-space:nowrap;font-size:15px;font-weight:500;color:#172b43}
 .desktop-dropdown a:hover,.desktop-dropdown button:hover{background:#edf4fa;color:#1c5196}
 .header-search{position:relative;width:62%;margin:-74px 0 28px auto;padding:0;background:#fff;z-index:11}
 .header-search form{max-width:none;min-height:48px;border-width:2px}
 .header-search #searchResults{position:absolute;top:52px;left:0;right:0;box-shadow:0 6px 24px #142c4920;border:1px solid #dce5ef}
 main:has(>.slideshow){grid-template-columns:minmax(0,34fr) minmax(0,62fr);grid-template-areas:'slides schedule' 'slides news' 'paper paper';grid-template-rows:min-content 1fr auto;gap:28px 4%;padding:0 0 48px}
 main>.slideshow{padding:0;border-radius:0;background:#edf4fa}
 .slide-stage{aspect-ratio: .72;max-height:580px}
 .slide-controls{background:white;padding-top:8px}
 main>.weekly-schedule{padding:0;border:0}
 .schedule-heading{margin-bottom:16px}.schedule-heading h2{font-size:27px}
 #scheduleList{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}
 .schedule-day{display:flex;flex-direction:column;border-radius:6px;background:#f1f6fc}
 .schedule-label{flex-direction:row;align-items:center;gap:10px;padding:10px 12px;background:#e5eef9;font-size:20px}
 .schedule-events{padding:14px}.schedule-events li{font-size:15px;line-height:1.7}
 main>#news.news-board{align-self:start;border-bottom:0;padding:0}
 .news-list li{min-height:53px}.news-list time{font-size:13px}
 main>.ilabor-news{margin-top:16px;padding:30px 32px;background:#f1f6fc;border-top:1px solid #dbe5f1}
 .info-page,.admin-page{padding-top:20px}
 .section{margin-left:0;margin-right:0}
 .info-page,.admin-page{margin-left:auto;margin-right:auto}
 body[data-news-kind] #news.news-page{margin:0;padding-top:20px}
}

@media(min-width:1024px){
 main>.slideshow,.slide-stage,.slide-item .weekly-menu-display,.slide-item .weekly-menu-display img{background:#fff}
}

@media(min-width:1024px){
 .mobile-header>.brand{background:#fff}

}

@media(min-width:1024px){
 .mobile-header .header-wordmark.wordmark-spaced{filter:none}
 .mobile-header .wordmark-affiliation,.mobile-header .wordmark-branch{filter:url("assets/wordmark-blue.svg#blue")}
 .mobile-header .wordmark-symbol{filter:none}
}

@media(min-width:1024px){
 .mobile-header>.brand{top:24px;height:58px;padding-top:8px;padding-bottom:8px}
 main:has(>.slideshow){grid-template-areas:'slides news' 'slides schedule' 'paper paper'}
 main>.slideshow{margin-top:-27px}
}

/* Desktop schedule: full-width rows with a compact date column. */
@media(min-width:1024px){
 #scheduleList{display:flex;flex-direction:column;gap:10px}
 #scheduleList .schedule-day{display:grid;grid-template-columns:76px minmax(0,1fr);width:100%;border-radius:10px;background:#fff}
 #scheduleList .schedule-label{flex-direction:column;justify-content:center;align-items:center;gap:2px;padding:14px 8px;font-size:21px}
 #scheduleList .schedule-label time{font-size:12px}
 #scheduleList .schedule-events{padding:15px 18px;justify-content:center}
 #scheduleList .schedule-events li{font-size:16px;line-height:1.75}
}

/* Scroll only a long desktop schedule; short lists retain natural height. */
@media(min-width:1024px){
 #scheduleList{max-height:320px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#9bb3cf transparent}
 #scheduleList .schedule-day{flex-shrink:0}
 #scheduleList:focus-visible{outline:2px solid #1c5196;outline-offset:4px}
}

/* Compact stop cards on desktop; route order continues left to right. */
@media(min-width:1024px){
 .bus-stop-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
 .bus-stop{grid-template-columns:minmax(0,1fr) 108px;gap:16px;padding:14px;border-radius:10px}
 .bus-stop-photo{height:110px;aspect-ratio:auto}
 .bus-stop h3{font-size:15px;margin-top:8px;line-height:1.5}
 .bus-stop-times{gap:10px}
 .bus-stop-times>div+div{padding-top:10px}
 .bus-stop-times dd{font-size:23px}
}

/* Metalworkers reference: blue utility/search band above white navigation. */
.desktop-login{display:none}
@media(min-width:1024px){
 body{position:relative}
 .mobile-header{height:162px;min-height:162px;border-bottom:2px solid #1c5196;margin-bottom:22px}
 .mobile-header>.brand{top:80px;height:64px;padding:10px 18px 10px 0;background:#fff}
 .mobile-header .desktop-navigation{top:80px;height:64px;min-height:64px;background:#fff}
 .desktop-nav-group>button{height:64px;color:#263545;font-size:19px;border-bottom:3px solid transparent}
 .desktop-nav-group>button:hover,.desktop-nav-group>button[aria-expanded=true]{background:#f1f6fc;color:#1c5196;border-bottom-color:#1c5196}
 .desktop-dropdown{top:100%;border-top:0;box-shadow:0 10px 22px #142c4920}
 .header-search{position:absolute;top:0;left:0;right:0;width:100%;height:64px;margin:0;padding:11px 18px;background:#1c5196;z-index:11}
 .header-search form{width:340px;max-width:45%;min-height:40px;margin:0 0 0 auto;border:0;border-bottom:1px solid #b6d0ed;border-radius:0;background:transparent}
 .header-search input{padding:7px 0 7px 8px;color:white;font-size:14px}
 .header-search input::placeholder{color:#e6eef9;opacity:1}
 .header-search button{height:40px;color:#fff}
 .header-search #searchResults{top:56px;left:auto;right:18px;width:400px;max-width:80%;margin:0;background:#fff}
 .header-search .desktop-login{position:absolute;left:18px;top:12px;display:flex;align-items:center;gap:8px;height:40px;color:#fff;font-size:13px;letter-spacing:1px;padding:0}
 .desktop-login svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
 main>.slideshow{margin-top:0}
}

.desktop-sitemap-toggle,#desktopSiteMap:not([open]){display:none}
@media(min-width:1024px){
 .desktop-dropdown{background:rgba(28,81,150,.92);border:1px solid #ffffff24;border-top:0;border-radius:0 0 8px 8px;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);padding:12px 0;box-shadow:0 12px 25px #12356025;transform-origin:top center;animation:desktop-dropdown-enter .2s ease-out}
 .desktop-dropdown[hidden]{display:none}
 .desktop-dropdown a,.desktop-dropdown button{color:#fff}
 .desktop-dropdown a:hover,.desktop-dropdown button:hover,.desktop-dropdown a:focus-visible,.desktop-dropdown button:focus-visible{background:#ffffff22;color:#fff}
 .desktop-navigation .desktop-sitemap-toggle{display:flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:64px;padding:12px;color:#1c5196}
 .desktop-sitemap-toggle svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.2}
 .desktop-sitemap-toggle:hover{background:#edf4fa}
 #desktopSiteMap{width:min(1100px,calc(100vw - 80px));max-width:none;max-height:calc(100dvh - 100px);padding:0;border:0;border-radius:12px;background:#fff;color:#182b43;box-shadow:0 20px 80px #102e5240}
 #desktopSiteMap::backdrop{background:#10243f80}
 .sitemap-heading{display:flex;align-items:center;justify-content:space-between;padding:20px 28px;background:#1c5196;color:#fff}
 .sitemap-heading h2{font-size:25px;letter-spacing:-.5px}
 .sitemap-heading button{font-size:32px;width:44px;height:44px;line-height:1;color:#fff}
 #desktopSiteMap.opened-by-pointer .sitemap-heading button:focus-visible{outline:none}
 .sitemap-columns{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px;padding:30px 28px 40px}
 .sitemap-columns h3{font-size:21px;color:#1c5196;padding-bottom:16px;margin-bottom:10px;border-bottom:2px solid #1c5196}
 .sitemap-columns a,.sitemap-columns button{display:block;width:100%;text-align:left;padding:11px 0;font-size:16px;line-height:1.5;word-break:keep-all}
 .sitemap-columns a:hover,.sitemap-columns button:hover{color:#1c5196;text-decoration:underline;text-underline-offset:4px}
}
@keyframes desktop-dropdown-enter{from{opacity:0;transform:translateY(-9px);clip-path:inset(0 0 100% 0)}to{opacity:1;transform:translateY(0);clip-path:inset(0)}}
@media(prefers-reduced-motion:reduce){.desktop-dropdown{animation:none}}

@media(min-width:1024px){
 .desktop-dropdown{width:100%;min-width:0;left:0;right:auto;box-sizing:border-box}
 .desktop-nav-group:nth-last-child(-n+2) .desktop-dropdown{left:0;right:auto}
 .desktop-dropdown a,.desktop-dropdown button{padding:11px 10px;white-space:normal;word-break:keep-all;overflow-wrap:anywhere;font-size:15px;line-height:1.5}
}

@media(min-width:1024px){
 .mobile-header .desktop-navigation,.desktop-nav-group>button,.desktop-navigation .desktop-sitemap-toggle{height:64px;min-height:64px}
 .desktop-dropdown{background:rgba(28,81,150,.70)}
}

/* Two equal 64px header rows, without extra menu-row padding. */
@media(min-width:1024px){
 .mobile-header{height:128px;min-height:128px;border-bottom:0}
 .mobile-header::after{content:'';position:absolute;left:0;right:0;bottom:0;height:2px;background:#1c5196;pointer-events:none}
 .mobile-header>.brand{top:64px;height:64px}
 .mobile-header .desktop-navigation{top:64px;height:64px;min-height:64px}
}

/* Full-viewport desktop header band and divider; content stays centered. */
@media(min-width:1024px){
 .header-search{background:transparent;isolation:isolate}
 .header-search::before{content:'';position:absolute;top:0;bottom:0;left:calc((100% - 100vw)/2);width:100vw;background:#1c5196;z-index:-1;pointer-events:none}
 .mobile-header::after{left:calc((100% - 100vw)/2);right:auto;width:100vw}
}

@media(min-width:1024px){
 .mobile-header::after{top:100%;bottom:auto;height:2px;background:#1c5196;z-index:21}
}

/* Unified rectangular menu highlight, without an active underline. */
@media(min-width:1024px){
 .desktop-nav-group>button{border-bottom:0;border-radius:0}
 .desktop-nav-group>button:hover,.desktop-nav-group>button[aria-expanded=true]{border-bottom:0;background:#1c5196;color:#fff}
 .desktop-dropdown{border:0;border-radius:0;box-shadow:none;background:rgba(28,81,150,.70)}
 .desktop-dropdown a,.desktop-dropdown button{text-align:center}
}

@media(max-width:1023px){.header-search .desktop-login{display:none}}

/* Extend only the desktop newspaper background to the viewport edges. */
@media(min-width:1024px){
 main>.ilabor-news{box-shadow:0 0 0 100vmax #f1f6fc;clip-path:inset(0 -100vmax)}
}

/* Authenticated administrator navigation */
.header-admin-link[hidden]{display:none!important}
.drawer-admin-link{display:block;padding:12px 18px;margin-bottom:10px;border-radius:8px;background:#edf4fb;color:#1c5196;font-weight:700;text-decoration:none}
.desktop-admin-link{display:none}
@media(min-width:1024px){.header-search .desktop-admin-link{display:flex;position:absolute;left:125px;top:12px;align-items:center;height:40px;color:white;font-size:13px;text-decoration:none}.desktop-admin-link:hover{text-decoration:underline}}

/* BEGIN office desktop width */
@media(min-width:1024px){
 body{max-width:1600px;width:calc(100% - 64px)}
 .info-page,.admin-page{max-width:1520px;width:100%}
 .site-breadcrumb{max-width:none;width:100%}
 #menu{left:max(32px,calc((100vw - 1600px)/2));width:360px}
 #backToTop{right:max(28px,calc((100vw - 1600px)/2 + 20px))}
}
/* END office desktop width */
