/* Shared viewport, interaction and icon layer; keep established typography. */
:root{--header-offset:112px;--ui-ease:cubic-bezier(.2,.7,.2,1)}
html{scroll-padding-top:var(--header-offset);-webkit-text-size-adjust:100%}
body{min-width:0}
img,video,canvas{max-width:100%}
main,section,article,aside,header,footer,nav,form{min-width:0}
.ui-icon{display:inline-block;width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.ui-icon use{pointer-events:none}
.header-menu-toggle{display:none;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;border:1px solid var(--hairline,#dce5ee);border-radius:9px;background:var(--panel,#fff);color:var(--ink,#142d49);cursor:pointer}
.site-header .main-site-nav,.topbar .main-site-nav{gap:3px}
.main-site-nav a{gap:7px;min-height:44px;padding:9px 8px}
.main-site-nav .nav-icon{width:15px;height:15px;flex-basis:15px;color:var(--accent,#005696)}
.icon-btn,.language-select{min-width:44px;min-height:44px;height:44px;border-radius:8px}
.language-select{padding:0 7px;gap:5px}.language-select>svg{display:none}.language-select select{height:42px;min-height:42px;padding:0 2px;font-size:12px;cursor:pointer}
.utility-top>.section-shell,.compact-calculator-banner{min-height:54px}
.utility-top .banner-search-box,.compact-calculator-banner .banner-search-box{height:44px;max-width:none;padding-right:0}
.banner-search-box button.banner-search-arrow{height:42px;min-height:42px;min-width:44px;flex-basis:44px;border-radius:0 6px 6px 0}
.banner-search-box>span:first-child{display:flex;align-items:center}.banner-search-box .ui-icon{width:16px;height:16px;flex-basis:16px}
.banner-search-box input{height:42px;min-height:42px}
.btn,button.filter-chip,.order-tab,.text-button,.watch-load-more,.watch-filters button,.medical-controls button,.medical-pagination button,.home-search-controls button,.home-search-views button,.home-search-pagination button,.home-result-actions a{min-height:44px}
.btn,.text-button,.home-result-actions a{display:inline-flex;align-items:center;justify-content:center;gap:8px}
button,a,input,select,summary{touch-action:manipulation}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--accent,#005696);outline-offset:3px}
button[disabled]{cursor:not-allowed;opacity:.5}
.eyebrow-number{display:inline-flex;align-items:center;justify-content:center;margin-right:4px}.eyebrow-number .ui-icon{width:16px;height:16px;flex-basis:16px}
#categoryCurrent,#homeSearchHeading,.home-search-views button,.document-view-controls button,.watch-library-heading h3,.watch-collections h3,.home-search-controls button,.quick button{display:flex;align-items:center;gap:9px}
.filter-row{flex-wrap:wrap!important;overflow:visible!important;justify-content:flex-start;gap:8px}
.filter-chip{white-space:normal;line-height:1.5}
.resource-card,.update-card,.home-search-result{overflow-wrap:anywhere}
#resourceGrid .resource-card:not(.hidden){display:block}
#resourceGrid .resource-card.hidden{display:none!important}
.faq-question{min-height:56px;line-height:1.6;white-space:normal;overflow-wrap:anywhere}.faq-question svg{flex-shrink:0}
.faq-item.open .faq-answer{max-height:none;padding-bottom:20px}
.card-footer,.medical-pagination,.home-search-pagination,.home-result-actions{flex-wrap:wrap;row-gap:10px}
.card-footer a,.resource-card .card-footer a,.medical-actions a{display:inline-flex;align-items:center;gap:7px;min-height:44px}
.medical-controls input,.medical-controls select,.home-search-filters input,.home-search-filters select,.medical-search input{min-height:44px;max-width:100%}
.medical-filters,.home-search-filters{min-width:0}
.medical-filters>*{min-width:0}
.watch-theater,.watch-main,.watch-screen,.watch-queue{min-width:0;max-width:100%}
.watch-screen{width:100%;min-width:0;max-width:100%}
.watch-screen iframe,#youtubeMount{max-width:100%}
.watch-step button{width:44px;min-width:44px;height:44px}.watch-filters button,.watch-search input{min-height:44px}
.watch-search{min-height:46px}.watch-now-top{flex-wrap:wrap;row-gap:9px}.watch-now-top a{display:inline-flex;align-items:center;min-height:44px}
.watch-player-bottom{align-items:flex-start}.watch-step{flex-shrink:0}
.watch-video-card,.watch-queue-item{scroll-margin-top:var(--header-offset)}
.watch-video-card .watch-card-copy strong,.watch-queue-item .watch-card-copy strong{-webkit-line-clamp:unset;display:block}
.watch-queue-list{overscroll-behavior:contain}.watch-queue-item .watch-card-copy strong{font-size:11px}
.hero-story{min-height:44px}.hero-playback button{width:44px!important;height:44px!important;min-width:44px}
.hero-carousel .slide-heading{overflow-wrap:normal}
.hero-image-note{line-height:1.5}
.footer-links{flex-wrap:wrap;gap:10px 18px}.footer-links a{display:inline-flex;align-items:center;gap:7px;min-height:44px}.footer-links .ui-icon{width:15px;height:15px;flex-basis:15px}
.footer-note{gap:12px;flex-wrap:wrap;line-height:1.8}.footer-brand{min-width:0}.footer-brand strong{overflow-wrap:anywhere}
.craft-credit{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap;margin-top:8px;padding-top:16px;border-top:1px solid var(--hairline,#dce5ee);color:var(--copy-muted,#776b5f);font:400 13px/1.6 Georgia,'Times New Roman',serif;letter-spacing:.01em;text-align:center}
.craft-credit .credit-heart{width:16px;height:16px;flex-basis:16px;stroke:#e98b8e;fill:#f8c3bf;stroke-width:1.5}
.craft-credit a{display:inline-flex;align-items:center;min-height:44px;color:#9b403b;text-decoration:none;border-radius:4px;transition:color .2s ease}
[data-theme="dark"] .craft-credit a{color:#f0aaa4}
.craft-credit a:hover{text-decoration:underline;text-underline-offset:4px}
/* Standalone salary calculator shares the same touch and layout rules. */
.topbar .brand-row{align-items:center}.topbar .brand{min-width:0;flex:1 1 auto}.topbar .brand .subtitle{max-width:100%}.topbar .tabs .tab{min-height:44px;line-height:1.5}.quick button{min-height:44px;padding-inline:12px}.actions{flex-wrap:wrap}.actions .btn{min-height:44px}.input,.select{max-width:100%;min-height:44px}.table-wrap{max-width:100%;overscroll-behavior-x:contain;scrollbar-width:thin}.table-wrap:focus-visible{outline:3px solid #005696;outline-offset:3px}.table{min-width:520px}.topbar .brand h1{overflow-wrap:anywhere}.metric strong,.net-bar strong{max-width:100%;overflow-wrap:anywhere;white-space:normal}.line-item{min-width:0}.line-item>span{min-width:0;overflow-wrap:anywhere}.line-item strong{flex-shrink:0}.setting-actions{flex-wrap:wrap}.topbar .tab .ui-icon{width:16px;height:16px}.salary-credit{margin-top:15px}
@media(hover:hover) and (pointer:fine){
 .btn,.icon-btn,.header-menu-toggle,.filter-chip,.order-tab,.watch-load-more,.watch-subscribe,.main-site-nav a,.utility-card,.watch-collection-grid button,.quick button{transition:transform .22s var(--ui-ease),box-shadow .22s var(--ui-ease),background-color .22s ease,border-color .22s ease}
 .btn:hover,.utility-card:hover,.watch-collection-grid button:hover{transform:translateY(-3px);box-shadow:0 10px 25px color-mix(in srgb,var(--accent,#005696) 12%,transparent)}
 .update-card:hover,.resource-card:hover,.home-search-result:hover{transform:translateY(-3px);border-color:var(--accent);box-shadow:0 12px 30px color-mix(in srgb,var(--accent) 9%,transparent)}
 .icon-btn:hover,.header-menu-toggle:hover,.filter-chip:hover,.order-tab:hover,.watch-load-more:hover,.quick button:hover{background:var(--accent-wash,#eaf4fb);border-color:var(--accent,#005696)}
 .main-site-nav a .ui-icon,.btn svg,.utility-arrow,.home-result-actions .ui-icon{transition:transform .22s var(--ui-ease)}
 .main-site-nav a:hover .ui-icon{transform:translateY(-2px)}.btn:hover svg,.utility-card:hover .utility-arrow,.home-result-actions a:hover .ui-icon{transform:translate(2px,-1px)}
 .watch-video-card:hover .watch-thumbnail img{transform:scale(1.035)}.watch-thumbnail img{transition:transform .4s var(--ui-ease)}
}
@media(hover:none){.btn:hover,.utility-card:hover,.update-card:hover,.resource-card:hover,.watch-video-card:hover{transform:none;box-shadow:none}.watch-card-play{opacity:1;background:#07162695}.watch-queue-item .watch-card-play{display:none}}
@media(max-width:1100px){
 :root{--header-offset:94px}.header-menu-toggle{display:flex}
 .site-header{gap:12px;padding:12px 24px}.site-header .brand{margin-right:auto}.site-header .header-actions{margin-left:auto}
 .has-responsive-ui .site-header .main-site-nav,.has-responsive-ui .topbar .main-site-nav{display:none!important}
 .has-responsive-ui .site-header.navigation-open .main-site-nav,.has-responsive-ui .topbar.navigation-open .main-site-nav{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));order:5;flex-basis:100%;width:100%;gap:7px;margin:4px 0 0;padding:12px 0 2px;border-top:1px solid var(--hairline,#dce5ee);max-height:calc(100dvh - 130px);overflow-y:auto}
 .main-site-nav a{justify-content:flex-start;font-size:12px;padding:11px 12px;min-height:48px;white-space:normal;overflow-wrap:normal;line-height:1.5}.main-site-nav .nav-icon{width:18px;height:18px;flex-basis:18px}
 .topbar .brand-row{gap:10px}.topbar .header-menu-toggle{margin-left:auto;order:2}.topbar .site-nav{order:5}
 .vault-toolbar{align-items:flex-start;flex-wrap:wrap}.search-wrap{max-width:none;min-width:220px}.filter-row{justify-content:flex-start}
}
@media(max-width:700px){
 :root{--header-offset:90px}.section-shell{width:calc(100% - 32px)}
 .site-app .site-header{padding:10px 16px;gap:9px;min-height:66px}.site-header .brand{gap:8px;min-width:0;flex-shrink:1}.site-header .brand-lockup strong{font-size:11px;letter-spacing:0}.site-header .brand-mark{width:34px;height:34px;flex-shrink:0}.site-header .header-actions{gap:6px}.site-header .icon-btn{min-width:44px;width:44px;min-height:44px;height:44px}.site-header .language-select{padding:0 5px;min-height:44px;height:44px}.site-header .language-select select{font-size:11px;height:42px;min-height:42px}.site-header .header-menu-toggle{order:3}
 .site-header .brand-lockup small{display:none!important}
 .has-responsive-ui .site-header.navigation-open .main-site-nav,.has-responsive-ui .topbar.navigation-open .main-site-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
 .main-site-nav a{font-size:11px;gap:8px;padding:11px 9px}
 .utility-top>.section-shell,.compact-calculator-banner{padding-top:5px;padding-bottom:5px;min-height:54px;gap:0}.utility-top .banner-search-box,.compact-calculator-banner .banner-search-box{max-width:none;height:44px}.banner-search-box input{font-size:16px}.banner-search-box input::placeholder{font-size:12px}
 .hero.hero-carousel{height:730px}.hero-bottom{bottom:57px}.hero-story-tabs{gap:10px}.hero-story{font-size:9px;gap:5px;padding-bottom:12px}.hero-image-note{bottom:16px;left:16px;right:16px}
 .hero-carousel .slide-heading{font-size:clamp(44px,13vw,56px);max-width:100%;line-height:1.02}.hero-carousel .slide-heading em{transform:none;max-width:100%}.hero-carousel .hero-sub{font-size:13px}.hero-carousel .hero-actions{gap:9px}.hero-carousel .hero-actions .btn{padding:12px 13px;min-height:46px}
 .section-heading,.split-intro{min-width:0}.section-heading h2,.split-intro h2,.about-card h2{font-size:clamp(34px,10vw,43px);overflow-wrap:normal}.route-intro h1{font-size:clamp(34px,10vw,48px);overflow-wrap:normal;line-height:1.08}.about-card{gap:22px}.about-tags span{font-size:10px;line-height:1.5}
 .search-wrap input{font-size:16px;min-height:46px}.filter-row{max-width:100%;width:100%;gap:7px}.filter-chip{min-height:44px;padding:10px 12px;flex-shrink:1}.resource-grid{grid-template-columns:minmax(0,1fr)}
 .medical-controls{padding:16px;scroll-margin-top:var(--header-offset)}.medical-controls input,.medical-controls select{font-size:16px;min-height:46px}.medical-filters{grid-template-columns:minmax(0,1fr)!important}.medical-controls label{overflow-wrap:anywhere}.medical-pagination{gap:10px;justify-content:space-between}.medical-pagination button{min-width:75px;min-height:44px}.medical-pagination>span{flex:1;text-align:center;font-size:11px}
 .home-search-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.home-search-filters>label{min-width:0}.home-search-filters input,.home-search-filters select{font-size:16px;min-height:46px}.home-result-actions{justify-content:flex-start}.home-result-copy{min-width:0}.home-result-copy h3{overflow-wrap:anywhere}.home-result-meta{overflow-wrap:anywhere}.home-search-pagination{gap:8px}.home-search-views{flex-wrap:wrap;gap:8px}
 .watch-now{padding:16px}.watch-now-top{gap:7px}.watch-now-top a{font-size:10px}.watch-player-bottom{gap:12px;align-items:center}.watch-player-bottom p{font-size:10px;overflow-wrap:anywhere}.watch-step button{width:44px;min-width:44px;height:44px}.watch-queue-item .watch-card-copy strong{font-size:12px}.watch-playback-note{font-size:11px}.watch-library-heading{flex-wrap:wrap}.watch-library-heading>span{text-align:left}.watch-card-copy strong{font-size:12px}.watch-filters{gap:7px}.watch-filters button{min-height:44px;flex:1;justify-content:center;font-size:11px}.watch-search input{height:46px}.watch-screen.is-short{height:440px}.watch-queue{max-height:380px}.watch-queue-list{max-height:250px}.watch-queue-note{font-size:10px}.watch-collections h3{font-size:21px}
 .cta-card{padding:26px 22px}.cta-card h2{font-size:clamp(30px,9vw,40px);line-height:1.15}.cta-card .btn{white-space:normal}.footer-inner{gap:16px}.footer-links{gap:6px 12px;justify-content:flex-start}.footer-links a{font-size:11px}.footer-note{font-size:9px}.site-app .site-footer{padding:26px 0 22px}.craft-credit{font-size:12px;gap:5px;padding-top:12px}
 .topbar .topbar-inner{padding:10px 16px 5px}.topbar .brand h1{font-size:15px}.topbar .brand .subtitle{font-size:8px;max-width:205px;line-height:1.5}.topbar .tabs{padding:0 12px}.topbar .tabs .tab{min-height:48px;font-size:10px;padding:10px 3px;overflow-wrap:anywhere}.quick{gap:8px;flex-wrap:wrap}.quick button{min-height:44px;font-size:12px}.field .input,.field .select{font-size:16px}.actions .btn{font-size:12px}.card-head{flex-wrap:wrap;gap:12px}.table-wrap{position:relative}.net-bar strong{font-size:clamp(24px,8vw,35px)}.setting-actions .btn{flex:1;min-width:120px}.table-caption{font-size:11px;line-height:1.6;color:var(--muted,#61758a);padding:0 15px}
}
@media(max-width:360px){
 .site-app .site-header{padding:10px 12px;gap:6px}.site-header .brand{gap:6px}.site-header .brand-lockup strong{font-size:10px}.site-header .brand-mark{width:30px;height:30px}.site-header .header-actions{gap:4px}.site-header .language-select{min-width:43px;padding:0 2px}.site-header .language-select select{font-size:10px;min-width:36px}.site-header .header-menu-toggle{width:44px}.section-shell{width:calc(100% - 28px)}
 .home-search-filters{grid-template-columns:minmax(0,1fr)}.watch-now-top{display:block}.watch-now-top a{margin-top:3px}.watch-player-bottom{flex-wrap:wrap}.watch-step{margin-left:auto}.hero-story{font-size:8px}.watch-heading h2{font-size:40px}.watch-stats{gap:12px}
}
@media(max-height:500px) and (orientation:landscape){
 .site-header,.topbar{position:relative!important}.hero.hero-carousel{height:620px}.slide-content{padding-top:34px}.hero-carousel .slide-heading{font-size:56px}.hero-carousel .hero-sub{max-width:550px;font-size:13px}.hero-bottom{bottom:45px}.hero-image-note{bottom:12px}.watch-screen.is-short{height:400px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.btn:hover,.utility-card:hover,.update-card:hover,.resource-card:hover,.watch-video-card:hover{transform:none!important}}
@media print{.header-menu-toggle,.craft-credit,.banner-search-box{display:none!important}}

/* Keep navigation geometry identical when a theme change alters page height or colors. */
html{scrollbar-gutter:stable}
@media(min-width:1101px){
  html{overflow-y:scroll}
  .site-header{grid-template-columns:245px minmax(0,1fr) 220px;}
  .site-header .brand{width:245px;min-width:245px;max-width:245px}
  .site-header .header-actions{width:220px;min-width:220px;justify-content:flex-end}
  .site-header .main-site-nav{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:0;align-items:stretch;min-width:0}
  .site-header .main-site-nav a{display:inline-flex;align-items:center;justify-content:center;min-width:0;padding-inline:4px;text-align:center}
}
.topbar .tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;min-width:0}
.topbar .tabs .tab{display:flex;align-items:center;justify-content:center;min-width:0;text-align:center}
/* Final touch-target and icon-rotation containment adjustments. */
.utility-top .banner-search-box,.compact-calculator-banner .banner-search-box{height:46px}
.banner-search-box input,.banner-search-box button.banner-search-arrow{height:44px;min-height:44px}
.language-select{height:46px;min-height:46px}.language-select select,.site-header .language-select select{height:44px;min-height:44px}
.site-header .language-select{height:46px;min-height:46px}
.category-browser .order-tab{min-height:44px}.filter-chip{min-width:44px}
.faq-question{padding-right:12px}
.eligibility label{min-height:44px}.eligibility input{width:22px;height:22px}
.topbar .tab{display:flex;align-items:center;justify-content:center;gap:6px}
.table-scroll-note{display:none;align-items:center;gap:7px;margin:0;padding:12px 16px;font-size:11px;line-height:1.6;color:var(--muted,#61758a);background:var(--blue-soft,#eaf4fb)}
.table-scroll-note.is-needed{display:flex}.table-scroll-note .ui-icon{flex-shrink:0}
@media(max-width:700px){.stat span{font-size:10px;line-height:1.7}.card-footer,.resource-card .card-footer a{font-size:10px}.hero-carousel .eyebrow{font-size:9px}.topbar .tab{flex-direction:column;gap:4px}}
.card-head h3,.setting-group h3,.help-item h3{display:flex;align-items:center;gap:8px}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1100px){.topbar .brand-row{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:10px}.topbar .brand-row>.brand{margin:0;min-width:0}.topbar .brand>div:last-child{min-width:0}.topbar .brand-row>.main-site-nav{grid-column:1/-1}.topbar .brand-row>.header-menu-toggle{margin:0}}
@media(max-width:700px){.topbar .tabs{grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}.topbar .tabs .tab{min-height:70px;font-size:9px;line-height:1.45;padding:8px 2px}.topbar .brand .subtitle{max-width:100%;font-size:7px}.topbar .brand h1{font-size:14px}.topbar .brand-mark{flex-shrink:0}.topbar .brand{gap:9px}}
.category-group summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-height:44px;list-style:none}.category-group summary::-webkit-details-marker{display:none}.category-group summary::before{content:'';display:block;width:7px;height:7px;flex:0 0 7px;margin-right:4px;border-right:1.75px solid currentColor;border-bottom:1.75px solid currentColor;transform:rotate(-45deg);transition:transform .2s ease}.category-group[open] summary::before{transform:rotate(45deg)}
.faq-answer[hidden]{display:none!important}

/* The bundled Electrical toolkit stylesheet has a global body background.
   Keep that visual treatment inside Electrical and preserve the shared site
   canvas on every other route, including the homepage FAQ section. */
body[data-route]:not([data-route="electrical"]) {
  background:var(--canvas)!important;
  background-image:none!important;
  color:var(--ink)!important;
}

/* Keep Quick Answers readable when legacy route styles override shared theme aliases. */
html[data-theme="dark"] .faq-section h2,
body[data-theme="dark"] .faq-section h2 { color:#edf5fe!important; }
html[data-theme="dark"] .faq-question,
body[data-theme="dark"] .faq-question { color:#edf5fe!important; }
html[data-theme="dark"] .faq-answer,
body[data-theme="dark"] .faq-answer { color:#aec0d3!important; }
html[data-theme="dark"] .faq-list,
html[data-theme="dark"] .faq-item,
body[data-theme="dark"] .faq-list,
body[data-theme="dark"] .faq-item { border-color:#45627e!important; }

/* Compact, fluid page introductions and navigation. */
.site-header .icon-btn,.site-header .language-select,.site-header .header-menu-toggle{background:transparent;border:0;box-shadow:none;border-radius:50%}
.site-header .header-actions{display:flex;align-items:center;flex-wrap:nowrap}
.site-header #themeToggle{order:0}.site-header .language-select{order:1}.site-header .header-menu-toggle{order:3}.site-header .header-cta{order:2}
.site-header .brand-lockup small{display:block!important;white-space:normal;line-height:1.5}
.banner-search-box input:focus,.banner-search-box input:focus-visible,.banner-search-box button:focus-visible{outline:0!important;box-shadow:none!important;border:0!important}
.banner-search-box:focus-within{outline:2px solid #85ccff;outline-offset:2px}
.banner-search-box::before,.banner-search-box::after{display:none!important}
.banner-suggestion-list:empty{display:none}.banner-suggestions [hidden]{display:none!important}
.banner-suggestions a,.banner-suggestions .banner-recent-clear{border-top:0}
body.route-mode .route-intro,.site-app:not([data-route="home"]) .route-intro{padding-top:22px;padding-bottom:4px}
.route-intro h1{font-size:clamp(34px,4.2vw,54px);line-height:1.08;margin:9px 0 10px}
.route-intro .route-back{margin-bottom:5px;min-height:44px}.route-intro p{max-width:720px;font-size:13px;line-height:1.65}
body.route-mode main>section.section-block{padding-top:22px}
.site-app[data-route="updates"] #updates>.section-heading,.site-app[data-route="office-orders"] #office-orders>.section-heading{display:none}
.site-app[data-route="about"] .about-card h2,.site-app[data-route="about"] .about-card .eyebrow{display:none}
.site-app[data-route="about"] .about-card{padding-top:18px;padding-bottom:18px}
.watch-heading{margin-bottom:18px;gap:20px}.watch-heading h2{font-size:clamp(32px,4vw,48px);margin:12px 0}.watch-heading p{line-height:1.65}
.hero.hero-carousel{height:auto;min-height:0}.hero-slides{position:relative;height:auto}.hero-slide{height:auto}.hero-slide.is-active{position:relative}.hero-carousel .slide-content{padding-top:46px;padding-bottom:164px;min-height:540px;box-sizing:border-box}.hero-carousel .slide-heading{font-size:clamp(48px,5.5vw,76px);margin-bottom:18px}.hero-carousel .eyebrow{margin-bottom:18px}.hero-carousel .hero-sub{font-size:13px;line-height:1.75;margin-bottom:20px}.hero-bottom{bottom:42px}
.useful-links-panel{border:1px solid var(--hairline);border-radius:14px;background:var(--panel);margin-bottom:22px;overflow:hidden}
.useful-links-panel>summary{cursor:pointer;min-height:56px;padding:16px 20px;font-size:13px;font-weight:700;color:var(--ink);list-style-position:inside}
.useful-links-panel>summary>span{display:block;font-size:11px;font-weight:400;color:var(--copy-muted);margin:7px 0 0 16px}
.embedded-resources{width:100%;padding:20px!important;box-sizing:border-box;border-top:1px solid var(--hairline)}
.embedded-resources .section-heading{margin-bottom:18px}.embedded-resources .section-heading h2{font-size:30px}.embedded-resources .section-heading>p{font-size:12px}.embedded-resources .vault-toolbar{flex-wrap:wrap}.embedded-resources .search-wrap{min-width:0;width:100%}
.contact-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:20px}
.contact-details>a{display:flex;align-items:center;gap:14px;padding:20px;border:1px solid var(--hairline);border-radius:14px;background:var(--panel);text-decoration:none;color:var(--ink);font-size:14px;overflow-wrap:anywhere}
.contact-details>a>span{min-width:0}.contact-details small{display:block;color:var(--copy-muted);font-size:11px;margin-bottom:6px}
.calculator-contact{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;padding:12px 16px;font-size:12px}.calculator-contact a{color:inherit;overflow-wrap:anywhere}
.floating-contact,.page-travel{position:fixed;z-index:45;bottom:max(18px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:9px}
.floating-contact{right:max(16px,env(safe-area-inset-right))}.page-travel{left:max(16px,env(safe-area-inset-left));opacity:0;transform:translateY(12px);pointer-events:none;transition:opacity .25s,transform .25s}
.page-travel.is-awake,.page-travel:has(:focus-visible){opacity:1;transform:none;pointer-events:auto}
.floating-contact a,.page-travel button{display:flex;align-items:center;justify-content:center;gap:9px;min-width:46px;min-height:46px;padding:0 13px;border:1px solid color-mix(in srgb,var(--accent,#206c9d) 22%,transparent);border-radius:999px;background:var(--panel,#fff);color:var(--ink,#16334c);font:600 11px var(--font,Manrope,sans-serif);box-shadow:0 5px 18px #05263c20;text-decoration:none;cursor:pointer;backdrop-filter:blur(12px)}
.floating-contact .floating-whatsapp{background:#157347;color:#fff;border-color:#157347}.floating-contact a:first-child{background:var(--accent,#005696);color:#fff}.page-travel button:disabled{opacity:.35;cursor:default}
.floating-contact a:focus-visible,.page-travel button:focus-visible{outline:3px solid #6eb7ec;outline-offset:3px}
.site-footer{padding-bottom:92px!important}
@keyframes credit-breathe{0%,100%{transform:scale(.96);opacity:.82}45%{transform:scale(1.1);opacity:1}}
@media(prefers-reduced-motion:no-preference){.craft-credit .credit-heart{animation:credit-breathe 4.8s ease-in-out infinite;transform-origin:center}}
@media(hover:hover) and (pointer:fine){
 .main-site-nav a:hover,.site-header .icon-btn:hover,.site-header .language-select:hover,.site-header .header-menu-toggle:hover{background:color-mix(in srgb,var(--accent,#2384bd) 13%,transparent)!important}
 .utility-card:hover,.update-card:hover,.resource-card:hover,.contact-details>a:hover,.watch-video-card:hover,.faq-question:hover,.useful-links-panel>summary:hover{background:color-mix(in srgb,var(--accent,#2384bd) 9%,var(--panel,#fff));border-color:color-mix(in srgb,var(--accent,#2384bd) 40%,var(--hairline,#dce5ee))}
 .floating-contact a:hover,.page-travel button:not(:disabled):hover{transform:translateY(-3px);filter:brightness(1.1)}
 .contact-details>a,.floating-contact a,.page-travel button,.useful-links-panel>summary{transition:background .25s,border-color .25s,transform .25s,filter .25s}
}
@media(max-width:1100px){
 .has-responsive-ui .site-header.navigation-open .main-site-nav,.has-responsive-ui .topbar.navigation-open .main-site-nav{position:absolute;top:calc(100% + 8px);right:16px;left:auto;width:min(380px,calc(100vw - 32px));margin:0;padding:12px;border:1px solid var(--hairline,#dce5ee);border-radius:18px;background:var(--panel,#fff);box-shadow:0 20px 65px #06253f35;grid-template-columns:repeat(2,minmax(0,1fr));max-height:calc(100dvh - 160px);overscroll-behavior:contain;z-index:80;box-sizing:border-box}
 .topbar .brand-row{position:static}.main-site-nav a{border-radius:10px}
}
@media(max-width:700px){
 .site-app .site-header{display:grid;grid-template-columns:minmax(0,1fr) auto;min-height:72px;padding:10px 12px;gap:5px;flex-wrap:nowrap}
 .site-header .brand{margin:0;gap:6px}.site-header .brand-lockup{min-width:0}.site-header .brand-lockup strong{font-size:10px}.site-header .brand-lockup small{font-size:7px!important;max-width:140px;letter-spacing:0!important}.site-header .brand-mark{width:30px;height:30px}.site-header .header-actions{margin:0;gap:0}.site-header .language-select{padding:0 2px;min-width:44px}.site-header .language-select>svg{display:none}.site-header .language-select select{font-size:10px;min-width:40px;padding:0 2px}.site-header .header-cta{display:none}
 .hero.hero-carousel{height:500px!important;min-height:500px!important}.hero-carousel .slide-content{padding-top:22px;padding-bottom:46px;min-height:0}.hero-carousel .slide-heading{font-size:clamp(34px,9.5vw,44px);line-height:1.04;margin-bottom:clamp(150px,38vw,180px)!important}.hero-carousel .eyebrow{margin-bottom:12px;font-size:8px}.hero-carousel .hero-sub{font-size:12px;line-height:1.6;margin-bottom:14px;max-width:440px}.hero-carousel .hero-actions{gap:8px}.hero-carousel .btn{min-height:42px;font-size:10px;padding:9px 12px}.hero-bottom{position:static!important;padding:0!important;margin:0!important}.hero-story-tabs{position:absolute!important;bottom:0!important;left:16px!important;right:16px!important;width:calc(100% - 32px)!important;max-width:none!important;gap:10px!important;z-index:4!important}.hero-story{font-size:10px!important;min-height:36px!important;padding:0 0 10px!important;display:flex!important;align-items:center!important;gap:6px!important}.hero-story .story-index{font-size:9px!important;font-weight:700!important;opacity:.75!important}.hero-story.is-active .story-index{opacity:1!important}.story-line{position:absolute!important;bottom:0!important;left:0!important;right:0!important;height:2px!important;background:rgba(255,255,255,.28)!important}.hero-story.is-active .story-line{background:#c6e6fc!important}.hero-playback{position:absolute!important;top:14px!important;right:14px!important;left:auto!important;bottom:auto!important;margin:0!important;display:flex!important;align-items:center!important;gap:2px!important;padding:0!important;border-radius:0!important;background:transparent!important;border:none!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;z-index:10!important}.hero-playback button{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;font-size:16px!important;border-radius:0!important;border:none!important;background:transparent!important;box-shadow:none!important;outline:none!important;color:#fff!important;display:grid!important;place-items:center!important;padding:0!important;cursor:pointer;filter:drop-shadow(0 1px 3px rgba(0,0,0,.75));text-shadow:0 1px 3px rgba(0,0,0,.75);-webkit-tap-highlight-color:transparent;transition:opacity .2s,color .2s,transform .15s}.hero-playback button:hover,.hero-playback button:focus,.hero-playback button:active{background:transparent!important;border:none!important;outline:none!important;box-shadow:none!important;color:#c6e6fc!important;opacity:.85}.hero-playback button:active{transform:scale(.92)}.hero-playback button svg{width:18px!important;height:18px!important;stroke:currentColor!important;stroke-width:2.2!important;filter:drop-shadow(0 1px 3px rgba(0,0,0,.75))}.hero-playback #heroPause{font-size:13px!important}.hero-counter{display:none!important}.hero-image-note{display:none!important}
 body.route-mode .route-intro,.site-app:not([data-route="home"]) .route-intro{padding-top:12px}.route-intro h1{font-size:clamp(29px,8vw,38px);margin:6px 0 10px}.route-intro p{font-size:12px;line-height:1.6}.route-intro .eyebrow{font-size:9px}.route-intro .route-back{margin-bottom:0}.route-intro br{display:none}body.route-mode main>section.section-block{padding-top:18px}
 .watch-heading{gap:12px;margin-bottom:14px}.watch-heading h2{font-size:34px;margin:8px 0}.watch-heading h2 br{display:none}.watch-heading p{font-size:12px}.watch-subscribe{padding:9px 12px}.watch-stats{gap:8px 14px;margin-bottom:16px}.watch-verified{width:100%}
 .contact-details{grid-template-columns:1fr;gap:10px}.contact-details>a{padding:16px;font-size:13px}.embedded-resources{padding:15px!important}.embedded-resources .section-heading h2{font-size:27px}.embedded-resources .section-heading{display:block}.embedded-resources .section-heading>p{margin-top:12px}
 .floating-contact a{width:46px;padding:0}.floating-contact a>span{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}.floating-contact,.page-travel{bottom:max(12px,env(safe-area-inset-bottom));gap:7px}.floating-contact{right:12px}.page-travel{left:12px}.page-travel button{width:44px;padding:0;min-width:44px;min-height:44px}
 .main .intro{padding-top:0;margin-bottom:20px}.main .intro h2{font-size:28px;margin:10px 0}.main .intro p{font-size:12px;line-height:1.65}
}
@media print{.floating-contact,.page-travel{display:none!important}.site-footer{padding-bottom:0!important}}

/* Mobile navigation and announcement layout. */
#pageViewport{display:contents}
.site-header .language-select select,.site-header .language-select select:focus,.site-header .language-select select:focus-visible,.site-header .language-select:focus-within{outline:0!important;outline-offset:0!important;border:0!important;box-shadow:none!important;-webkit-tap-highlight-color:transparent}
.site-header .language-select:focus-within{background:var(--accent-wash,#eaf4fb);border-radius:999px}
.site-header .language-select select:focus-visible{color:var(--accent,#005696);text-decoration:underline;text-underline-offset:5px}
@media(max-width:1100px){
 .has-responsive-ui .site-header.navigation-open .main-site-nav,.has-responsive-ui .topbar.navigation-open .main-site-nav{top:100%;right:0;left:auto;width:min(380px,100vw);grid-template-columns:minmax(0,1fr);gap:3px;padding:10px 12px 14px;margin:0;border-radius:0 0 16px 16px;border-top:1px solid var(--hairline,#dce5ee);max-height:var(--menu-max-height,calc(100dvh - 180px));box-shadow:0 16px 32px #06253f26;scroll-padding-block:10px}
 .has-responsive-ui .navigation-open .main-site-nav a{justify-content:flex-start;text-align:left;gap:12px;padding:12px 16px;min-height:48px;font-size:13px}
 .navigation-open .header-menu-toggle{background:var(--accent-wash,#eaf4fb);color:var(--accent,#005696);border-radius:10px}
 .site-header.navigation-open,.topbar.navigation-open{box-shadow:0 1px 0 var(--hairline,#dce5ee)}
}
@media(max-width:700px), (max-width:1100px) and (max-height:600px) and (pointer:coarse){
 .site-footer{padding-bottom:28px!important}
 /* Keep the desktop's three-part banner in a compact mobile row. */
 .utility-top>.section-shell,.compact-calculator-banner{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(140px,1.45fr) minmax(0,1fr);align-items:center;gap:6px;justify-items:stretch;padding-top:6px;padding-bottom:6px;min-height:54px;height:auto}
 .utility-top>.section-shell>span,.compact-calculator-banner>span{display:block!important;width:auto;min-width:0;text-align:left!important;font-size:9px;line-height:1.35;letter-spacing:0;color:#d6e7f4;white-space:normal;overflow-wrap:anywhere}
 .utility-top>.section-shell>span:last-child,.compact-calculator-banner>span:last-child{display:block!important;text-align:right!important}
 .utility-top>.section-shell>span:last-child>a,.compact-calculator-banner>span:last-child>a{display:inline-flex;align-items:center;gap:3px;justify-content:flex-end;min-height:22px;margin:2px 0 0;color:#fff;text-decoration:underline;text-underline-offset:2px;font-size:9px;line-height:1.35}
 .utility-top .banner-search-box,.compact-calculator-banner .banner-search-box{max-width:none;min-width:0;width:100%;margin:0;height:38px;padding-left:6px;gap:4px}
 .utility-top .banner-search-box input,.compact-calculator-banner .banner-search-box input{height:36px;min-height:36px;font-size:16px}
 .utility-top .banner-search-box input::placeholder,.compact-calculator-banner .banner-search-box input::placeholder{font-size:10px}
 .utility-top .banner-search-box .ui-icon,.compact-calculator-banner .banner-search-box .ui-icon{width:12px;height:12px;flex-basis:12px}
 .utility-top .banner-search-box button.banner-search-arrow,.compact-calculator-banner .banner-search-box button.banner-search-arrow{height:36px;min-height:36px;min-width:24px;flex-basis:24px}
 .compact-calculator-banner{padding-left:12px;padding-right:12px}
 .site-header .brand-lockup small{font-size:8px!important}
}
@media print{#pageViewport{display:contents!important;position:static!important;overflow:visible!important}html,body{height:auto!important;overflow:visible!important}}

@media(max-width:1100px) and (max-height:600px) and (pointer:coarse){
 .utility-top>.section-shell,.compact-calculator-banner{grid-template-columns:minmax(0,1fr) minmax(180px,260px) minmax(0,1fr);gap:10px;padding-block:6px}
 #pageViewport .site-header,#pageViewport .topbar{position:sticky!important}
 .site-app .site-header{padding-block:7px}
 .compact-calculator-banner>span{font-size:9px}
}

@media(max-width:700px), (max-width:1100px) and (max-height:600px) and (pointer:coarse){.toast{bottom:12px;max-width:calc(100vw - 32px)}}

.site-header .language-select select{transition:color .2s,background-color .2s}

/* Stable floating corners; the page keeps its full viewport and native scroll. */
:root{--float-safe-left:env(safe-area-inset-left,0px);--float-safe-right:env(safe-area-inset-right,0px);--float-safe-bottom:env(safe-area-inset-bottom,0px);--floating-clearance:0px}
.page-travel{opacity:1;transform:none;pointer-events:auto;transition:none}
@media(max-width:700px), (max-width:1100px) and (max-height:600px) and (pointer:coarse){
 :root{--floating-clearance:124px}
 html{scroll-padding-bottom:calc(var(--floating-clearance) + var(--float-safe-bottom))}
 .floating-contact,.page-travel{position:fixed;display:flex;flex-direction:column;gap:8px;top:auto;bottom:calc(12px + var(--float-safe-bottom));width:44px;z-index:45;opacity:1;visibility:visible;transform:none;pointer-events:auto}
 .floating-contact{right:calc(12px + var(--float-safe-right));left:auto}
 .page-travel{left:calc(12px + var(--float-safe-left));right:auto}
 .floating-contact a,.page-travel button{position:static;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border-radius:50%;box-sizing:border-box;box-shadow:0 3px 12px #05263c24;visibility:visible;opacity:1;transform:none!important;transition:background-color .2s,color .2s,box-shadow .2s}
 .page-travel button:disabled{opacity:.45}
 .floating-contact a>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .floating-contact a .ui-icon,.page-travel button .ui-icon{width:18px;height:18px;flex-basis:18px}
 .floating-contact .floating-whatsapp{background:var(--panel,#fff);color:var(--accent,#005696);border-color:color-mix(in srgb,var(--accent,#005696) 32%,transparent)}
 .site-app .site-footer,footer{padding-bottom:calc(124px + var(--float-safe-bottom))!important}
 #pageViewport :is(a,button,input,select,textarea,summary,iframe){scroll-margin-bottom:calc(136px + var(--float-safe-bottom))}
 .watch-step{margin-inline:auto!important;justify-content:center}
 .toast{max-width:calc(100vw - 136px);bottom:16px}
}


.main-site-nav .transfermitra-icon{display:block;width:26px;height:22px;min-width:26px;flex:0 0 26px;object-fit:contain;filter:none;opacity:1;mix-blend-mode:normal}

/* Keep document filters available without filling the mobile page. */
.medical-filter-panel{margin-top:12px;border-top:1px solid var(--hairline,#dce5ee)}
.medical-filter-panel>summary{cursor:pointer;min-height:44px;padding:12px 0;box-sizing:border-box;font-size:12px;font-weight:700;color:var(--ink,#142d49)}
.medical-filter-panel>p{font-size:11px;line-height:1.65;color:var(--copy-muted,#61758a);margin:0 0 12px}
.medical-filter-panel>summary:focus-visible{outline:2px solid var(--accent,#005696);outline-offset:2px}
@media(max-width:700px){
 .medical-controls{padding:12px;margin-bottom:16px;min-width:0}
 .medical-controls .medical-search{gap:5px;font-size:11px}
 .medical-controls input,.medical-controls select{box-sizing:border-box;height:44px;min-height:44px;padding:9px 8px;font-size:16px;max-width:100%}
 .medical-controls .medical-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
 .medical-filters>label{min-width:0;font-size:11px;gap:5px}
 .medical-filters>label:first-child,.medical-filters>#medicalReset{grid-column:1/-1}
 .medical-filters>#medicalReset{padding:8px 12px}
 .medical-controls .document-toolbar{gap:8px;margin-top:10px;flex-wrap:wrap;align-items:center}
 .document-toolbar>p{margin:0;font-size:11px}
 .document-views{display:flex;gap:4px;flex-wrap:wrap}
 .document-views button{min-height:44px;padding:8px 10px;font-size:11px}
}
@media(max-width:700px){
 .category-browser{padding:12px;margin-bottom:16px}
 .category-browser .category-tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .category-tools label{min-width:0;gap:5px;font-size:11px}
 .category-tools input,.category-tools select{box-sizing:border-box;min-width:0;width:100%;height:44px;min-height:44px;padding:9px 8px;font-size:16px;text-overflow:ellipsis}
 .category-tools input::placeholder{font-size:11px}
 .category-current{margin:10px 0;font-size:11px}
}
@media(max-width:360px){.watch-heading h2{font-size:clamp(30px,10.8vw,38px);overflow-wrap:anywhere}.watch-heading h2 em{white-space:normal}}

.category-directory-panel>summary{cursor:pointer;min-height:44px;padding:12px 0;box-sizing:border-box;font-size:12px;font-weight:700;color:var(--ink,#142d49)}
.category-directory-panel>summary:focus-visible{outline:2px solid var(--accent,#005696);outline-offset:2px}
@media(max-width:700px){.category-directory-panel>summary{border-top:1px solid var(--hairline,#dce5ee);font-size:11px}.medical-filter-panel>p{font-size:10px;line-height:1.5;margin-bottom:10px}}

/* Brand-colored WhatsApp and a dismissible, compact installation invitation. */
.floating-contact a.floating-whatsapp{background:#25d366;color:#fff;border-color:#20b85a}
.floating-contact a.floating-whatsapp .ui-icon{color:#fff}
.app-install-card{position:fixed;z-index:46;left:50%;bottom:max(18px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:4px;width:min(350px,calc(100vw - 150px));padding:6px;border:1px solid #9dcee566;border-radius:18px;background:linear-gradient(135deg,#073b65f5,#0b628cf5);box-shadow:0 12px 32px #072e4a40,inset 0 1px 0 #ffffff20;color:#fff;backdrop-filter:blur(18px);box-sizing:border-box}
.app-install-card[hidden]{display:none!important}
.app-install-action{display:flex;align-items:center;gap:10px;flex:1;min-width:0;min-height:48px;padding:4px 6px;background:none;border:0;border-radius:12px;text-align:left;color:inherit;cursor:pointer;font:inherit}
.app-install-action img{border-radius:50%;background:#fff;flex:0 0 32px}
.app-install-action span{display:grid;gap:3px;min-width:0}.app-install-action strong{font-size:13px}.app-install-action small{font-size:10px;color:#d4e7f4;line-height:1.4}
.app-install-dismiss{flex:0 0 44px;min-width:44px;min-height:44px;border:0;border-radius:12px;background:#ffffff12;color:#fff;font:24px/1 sans-serif;cursor:pointer}
.app-install-card button:focus-visible{outline:2px solid #a8e1ff;outline-offset:2px}.app-install-action:hover,.app-install-dismiss:hover{background:#ffffff20}
.app-install-help{width:min(400px,calc(100vw - 32px));box-sizing:border-box;border:1px solid #bfd2df;border-radius:20px;padding:24px;background:#fff;color:#16334c;box-shadow:0 20px 70px #05263c40;font:14px/1.7 Manrope,sans-serif}
.app-install-help::backdrop{background:#04203977;backdrop-filter:blur(4px)}.app-install-help h2{font-size:20px;line-height:1.3;margin:0 0 12px}.app-install-help p{margin:0 0 18px}.app-install-help button{min-height:44px;padding:10px 18px;border:0;border-radius:9px;background:#005696;color:#fff;font:inherit;cursor:pointer}
@media(max-width:700px){.app-install-card{bottom:calc(10px + var(--float-safe-bottom,env(safe-area-inset-bottom,0px)));width:min(280px,calc(100vw - 80px));border-radius:13px;padding:3px;gap:0}.app-install-action{flex-direction:row;gap:6px;padding:3px;min-height:40px;white-space:nowrap}.app-install-action img{width:21px;height:21px;flex-basis:21px}.app-install-action span{display:grid;gap:1px;min-width:0}.app-install-action strong{font-size:10px}.app-install-action small{display:block;font-size:8px;line-height:1.15;overflow:hidden;text-overflow:ellipsis}.app-install-dismiss{min-width:32px;flex-basis:32px;min-height:34px;font-size:19px}}
@media print{.app-install-card,.app-install-help{display:none!important}}
@media(max-width:700px){body:has(.mobile-summary:not([hidden])) .app-install-card{bottom:calc(80px + env(safe-area-inset-bottom,0px))}}
.electrical-tool-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.electrical-tool-card{padding:18px;border:1px solid var(--hairline);border-radius:14px;background:var(--panel);box-shadow:0 8px 22px #05263c0b}.electrical-tool-card>span{font-size:22px;color:var(--accent)}.electrical-tool-card h3{margin:10px 0 6px;font-size:15px}.electrical-tool-card p{min-height:45px;margin:0 0 14px;color:var(--copy-muted);font-size:11px;line-height:1.6}.electrical-tool-card button{min-height:40px;padding:8px 12px;border:1px solid var(--hairline-strong);border-radius:7px;background:var(--accent);color:#fff;font:600 11px inherit;cursor:pointer}.electrical-tool-card.featured{background:linear-gradient(135deg,#eff8ff,#fff)}.electrical-tool-note{margin-top:18px;color:var(--copy-muted);font-size:11px;line-height:1.7}@media(max-width:900px){.electrical-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.electrical-tool-grid{grid-template-columns:1fr}.electrical-tool-card{padding:15px}.electrical-tool-card p{min-height:0}}
.electrical-portal-frame{width:100%;height:calc(100vh - 150px);min-height:640px;margin:0 0 180px;border:0;border-radius:0;overflow:hidden;background:transparent;box-shadow:none}.electrical-portal-frame iframe{display:block;width:100%;height:100%;border:0;background:transparent;overflow:auto}@media(max-width:700px){.electrical-portal-frame{height:calc(100vh - 128px);min-height:560px;margin:0 -1rem 150px;width:calc(100% + 2rem)}.electrical-section .section-heading h2{font-size:34px}}
.electrical-section .section-heading{display:none}.electrical-section{padding-top:18px}.electrical-section .electrical-portal-frame{margin-top:0}
.site-app[data-route="electrical"] .route-intro{display:none}
.electrical-tools-mount{width:100%;min-width:0;margin:0;padding:0}.electrical-section{padding-bottom:140px}
.electrical-tools-mount .operator-electrical-page,.electrical-tools-mount .operator-electrical-shell{width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;overflow:visible!important}
.electrical-tools-mount .operator-electrical-workbench,.electrical-tools-mount .operator-electrical-content,.electrical-tools-mount .operator-electrical-nav{height:auto!important;max-height:none!important;overflow:visible!important;overscroll-behavior:auto!important}
html:has(#electrical-root),body:has(#electrical-root){height:auto!important;min-height:100%!important;overflow-y:auto!important;overflow-x:hidden!important}
.electrical-tools-mount .operator-electrical-mobile-popup{align-items:center!important;padding:16px!important}
.electrical-tools-mount .operator-electrical-mobile-popup-sheet{width:min(420px,calc(100vw - 28px))!important;height:auto!important;max-height:min(72dvh,620px)!important;border-radius:18px!important}
.electrical-tools-mount .operator-electrical-mobile-popup-header{padding:14px 16px 12px!important}
.electrical-tools-mount .operator-electrical-mobile-popup-heading h2{font-size:20px!important}
.electrical-tools-mount .operator-electrical-mobile-popup-heading p{font-size:11px!important}
.electrical-tools-mount .operator-electrical-mobile-popup-options{flex:0 1 auto!important;min-height:0!important;max-height:min(52dvh,430px)!important;overflow-y:auto!important;padding:8px 12px 12px!important}
.electrical-demand-card{width:min(100%,720px);margin:0 auto 18px;padding:14px;border:1px solid #b9e5f7;border-radius:16px;background:linear-gradient(135deg,#f6fdff,#eefaff);box-shadow:0 12px 28px -24px #0e7490;box-sizing:border-box}.electrical-demand-head{display:grid;gap:3px;padding-bottom:10px;border-bottom:1px solid #c8e8f4}.electrical-demand-head strong{font-size:14px;color:#132238}.electrical-demand-head span{font-size:12px;font-weight:800;color:#08769b}.electrical-demand-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:10px 0}.electrical-demand-fields label{position:relative;display:grid;gap:5px;color:#52647a;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.electrical-demand-fields input{width:100%;height:42px;padding:0 58px 0 12px;border:1px solid #9edcf3;border-radius:12px;background:#fff;color:#10213b;font:800 16px Manrope,sans-serif;box-sizing:border-box}.electrical-demand-fields b{position:absolute;right:7px;bottom:7px;display:grid;place-items:center;height:28px;padding:0 10px;border-radius:9px;background:#e4f5ff;color:#126b99;font-size:11px;text-transform:none;letter-spacing:0}.electrical-demand-result{display:grid;gap:2px;padding:12px 14px;border-radius:14px;background:linear-gradient(110deg,#197eaa,#3268e8);color:#fff}.electrical-demand-result small{text-transform:uppercase;font-size:10px;font-weight:900;letter-spacing:.08em}.electrical-demand-result strong{font-size:25px;line-height:1.1}@media(max-width:600px){.electrical-demand-fields{grid-template-columns:1fr}.electrical-demand-card{margin-bottom:12px;padding:12px}}
.electrical-tools-mount .operator-electrical-hero{padding:10px 14px!important;margin-bottom:8px!important;border-radius:14px!important;gap:10px!important}.electrical-tools-mount .operator-electrical-hero-title{font-size:clamp(16px,4vw,21px)!important}.electrical-tools-mount .operator-electrical-hero-desc{font-size:10px!important;line-height:1.35!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.electrical-tools-mount .operator-electrical-hero-footer{margin-top:6px!important}.electrical-tools-mount .operator-electrical-active-strip{padding:8px 10px!important;margin-bottom:8px!important;border-radius:12px!important}.electrical-tools-mount .focused-electrical-tool{gap:10px!important}.electrical-tools-mount .focused-electrical-tool>header,.electrical-tools-mount .focused-electrical-tool>div:first-child{padding:14px!important;border-radius:14px!important}.electrical-tools-mount .focused-electrical-tool h2{font-size:clamp(20px,5vw,30px)!important;line-height:1.08!important}
.electrical-tools-mount .operator-electrical-hero-desc,.electrical-tools-mount .operator-electrical-active-strip{display:none!important}.electrical-tools-mount .operator-electrical-hero{margin-bottom:10px!important}.electrical-tools-mount .operator-electrical-mobile-tabs{margin-bottom:0!important}

/* Keep the toolkit copy legible on the light reference surfaces in either site theme. */
.electrical-tools-mount .operator-electrical-page,
.electrical-tools-mount .operator-electrical-workbench,
.electrical-tools-mount .operator-electrical-content,
.electrical-tools-mount .electrical-reference{color:#0f172a!important}
.electrical-tools-mount .operator-electrical-tab-card,
.electrical-tools-mount .operator-electrical-tab-copy{color:#1e293b!important}
.electrical-tools-mount .operator-electrical-tab-copy strong{color:#0f172a!important}
.electrical-tools-mount .operator-electrical-tab-copy small{color:#475569!important;opacity:1!important}
.electrical-tools-mount .electrical-reference-section summary strong{color:#0f172a!important}
.electrical-tools-mount .electrical-reference-section summary b,
.electrical-tools-mount .electrical-reference-table small{color:#475569!important}
.electrical-tools-mount .electrical-reference-table th{color:#075985!important}
.electrical-tools-mount .electrical-reference-table td{color:#334155!important}
.electrical-tools-mount .operator-electrical-mobile-popup-options,
.electrical-tools-mount .operator-electrical-mobile-popup-active{color:#0f172a!important}
.electrical-tools-mount .operator-electrical-mobile-popup-option-copy strong{color:#0f172a!important}
.electrical-tools-mount .operator-electrical-mobile-popup-option-copy small{color:#475569!important;opacity:1!important}
.electrical-tools-mount input,
.electrical-tools-mount select,
.electrical-tools-mount textarea{color:#0f172a!important;color-scheme:light}
body[data-theme="dark"] .electrical-tools-mount .operator-electrical-mobile-popup-sheet{color:#0f172a!important}
.promotion-card{margin:0 0 18px;border-radius:16px!important;border:1px solid #c9dff0!important;background:#f8fcff!important;box-shadow:0 12px 28px -24px #0b4770!important}.promotion-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.promotion-grid .field{margin:0}.promotion-double{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:800;color:#27425f}.promotion-double input{width:17px;height:17px}.promotion-result{display:grid;gap:2px;padding:11px 13px;border-radius:12px;background:linear-gradient(110deg,#075985,#2563eb);color:#fff}.promotion-result small{font-size:9px;text-transform:uppercase;font-weight:900;letter-spacing:.07em}.promotion-result strong{font-size:23px}.promotion-result span{font-size:9px;color:#dbeafe}@media(max-width:600px){.promotion-grid{grid-template-columns:1fr}.promotion-card{margin-bottom:12px}.promotion-grid .field{margin-bottom:0}}
.promotion-result #usePromotionBasic{justify-self:start;margin-top:6px;padding:7px 10px;min-height:32px;font-size:10px;background:#fff;color:#075985;border:0}
.salary-theme-toggle,.salary-language{height:36px;border:1px solid #c7d8e8;border-radius:10px;background:#fff;color:#16456d;display:inline-flex;align-items:center;justify-content:center}.salary-theme-toggle{width:36px;font-size:18px;cursor:pointer}.salary-language{padding:0 7px}.salary-language select{border:0;background:transparent;color:inherit;font-weight:800;font-size:11px;outline:0}.salary-theme-toggle:hover,.salary-language:hover{background:#eff8ff}@media(max-width:700px){.salary-theme-toggle,.salary-language{height:32px}.salary-theme-toggle{width:32px}.salary-language{padding:0 4px}.salary-language select{font-size:10px}}
.app-shell .topbar{background:var(--bg,#f6f9fc)!important;color:var(--ink,#142d49)!important;border-bottom:1px solid var(--line,#dce5ee)!important}.app-shell .topbar-inner{max-width:1180px;padding:12px max(20px,calc((100% - 1180px)/2)) 8px!important}.app-shell .brand{color:var(--ink,#142d49)!important;gap:10px}.app-shell .brand-mark{width:40px;height:40px;border-radius:12px;background:#fff;border:1px solid var(--line,#dce5ee);font-size:20px}.app-shell .brand h1{font-size:12px!important;letter-spacing:.1em}.app-shell .brand .subtitle{font-size:8px!important;color:var(--muted,#61758a)!important;letter-spacing:.06em}.app-shell .site-nav a{color:var(--ink,#142d49)!important;font-size:11px}.app-shell .site-nav a:hover,.app-shell .site-nav a[aria-current=page]{background:#eaf4fb;color:#005696!important}.app-shell .tabs{max-width:1180px;background:var(--bg,#f6f9fc);border-top:1px solid var(--line,#dce5ee)}
.app-shell .brand-row{flex-wrap:nowrap!important}.app-shell .salary-theme-toggle,.app-shell .salary-language,.app-shell .header-menu-toggle{flex:0 0 auto!important}.app-shell .salary-language{width:auto!important;max-width:58px!important;min-width:42px!important;display:inline-flex!important}.app-shell .salary-language select{width:auto!important;min-width:30px!important}
html[data-salary-theme="dark"]{--bg:#0b1120;--ink:#e5f0ff;--surface:#10243c;--line:#294666;--muted:#a9bfd6;--salary-header:#0b1120}html[data-salary-theme="dark"] body{background:var(--bg);color:var(--ink)}html[data-salary-theme="dark"] .app-shell .topbar,html[data-salary-theme="dark"] .app-shell .tabs{background:#0b1120!important;border-color:#294666!important}html[data-salary-theme="dark"] .app-shell .brand,html[data-salary-theme="dark"] .app-shell .site-nav a{color:#e5f0ff!important}html[data-salary-theme="dark"] .app-shell .brand .subtitle{color:#a9bfd6!important}html[data-salary-theme="dark"] .salary-theme-toggle,html[data-salary-theme="dark"] .salary-language{background:#10243c;color:#d8ecff;border-color:#416481}html[data-salary-theme="dark"] .app-shell .tab{color:#b7cbe0}

/* Premium footer rhythm: reserve only a small control-safe edge below the credit. */
.site-footer{
  padding-block:32px 34px!important;
}
.footer-inner{
  gap:20px 28px;
  align-items:center;
}
.footer-brand{align-self:start}
.footer-links{justify-content:flex-end;row-gap:6px}
.footer-note{padding-top:16px;border-top:1px solid var(--hairline,#dce5ee)}
.craft-credit{margin-top:0;padding-top:14px;min-height:0}
@media(max-width:700px){
  .site-footer, .site-app .site-footer, footer{padding:24px 0 34px!important}
  .footer-inner{gap:14px 16px}
  .footer-brand{align-self:auto}
  .footer-links{justify-content:flex-start;gap:4px 10px}
  .footer-links a{min-height:36px}
  .footer-note{padding-top:12px;line-height:1.5}
  .craft-credit{padding-top:10px;font-size:12px;line-height:1.35}
}

/* Final theme contrast pass for shell and route content. */
body[data-theme="light"],body[data-theme="dark"],
body[data-theme="light"] .site-app,body[data-theme="dark"] .site-app {
  color:var(--ink)!important;
}
.notice-strip,
.notice-strip a { color:var(--ink)!important; }
.notice-strip .notice-label { color:var(--accent)!important; }
.notice-strip .notice-source { color:var(--copy-faint)!important; }
.site-footer { color:var(--ink)!important; }
.site-footer .footer-brand strong,
.site-footer .footer-links a { color:var(--ink)!important; }
.site-footer .footer-brand span,
.site-footer .footer-note { color:var(--copy-faint)!important; }
.site-footer .footer-links a:hover { color:var(--accent)!important; }
.site-footer .footer-note { justify-content:center!important; align-items:center; width:100%; text-align:center; }
.site-footer .footer-note span { text-align:center; }
.site-footer .footer-note span:first-child { text-transform:none; }
body[data-theme="light"] .faq-section h2,
body[data-theme="dark"] .faq-section h2,
body[data-theme="light"] .faq-question,
body[data-theme="dark"] .faq-question { color:var(--ink)!important; }
body[data-theme="light"] .faq-answer,
body[data-theme="dark"] .faq-answer { color:var(--copy-muted)!important; }

/* Apply the same theme guard to the document root so no section flashes or
   falls back to mixed light/dark colors before the body script completes. */
html[data-theme="light"],
html[data-theme="dark"],
html[data-theme="light"] body,
html[data-theme="dark"] body {
  background-color:var(--canvas)!important;
  color:var(--ink)!important;
}
html[data-theme="light"] #pageViewport,
html[data-theme="dark"] #pageViewport,
html[data-theme="light"] .site-app,
html[data-theme="dark"] .site-app {
  background:transparent!important;
  color:var(--ink)!important;
}
html[data-theme="light"] .faq-section,
html[data-theme="dark"] .faq-section,
html[data-theme="light"] .faq-list,
html[data-theme="dark"] .faq-list,
html[data-theme="light"] .faq-item,
html[data-theme="dark"] .faq-item {
  color:var(--ink)!important;
}
html[data-theme="light"] .faq-section h2,
html[data-theme="dark"] .faq-section h2,
html[data-theme="light"] .faq-question,
html[data-theme="dark"] .faq-question { color:var(--ink)!important; }
html[data-theme="light"] .faq-answer,
html[data-theme="dark"] .faq-answer { color:var(--copy-muted)!important; }

/* Override mobile corner visibility so page travel fades after inactivity. */
.page-travel{opacity:0;transform:translateY(12px);pointer-events:none;transition:opacity .25s,transform .25s}
.page-travel.is-awake,.page-travel:has(:focus-visible){opacity:1;transform:none;pointer-events:auto}
@media(hover:hover){.page-travel:hover{opacity:1;transform:none;pointer-events:auto}}
@media(prefers-reduced-motion:reduce){.page-travel{transition:none}}

/* Signed-in calendar and live IST clock. */
.header-calendar{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:5px 10px;border:1px solid var(--hairline,#dce5ee);border-radius:12px;background:var(--panel,#fff);color:var(--ink,#142d49);text-decoration:none;line-height:1;transition:background .2s,border-color .2s,transform .2s}
.header-calendar>svg{width:17px;height:17px;flex:0 0 17px;color:var(--accent,#005696)}
.header-calendar span{display:grid;gap:4px}.header-calendar b{font:700 10px/1 var(--font,Manrope,sans-serif);letter-spacing:.06em}.header-calendar small{font:600 10px/1 var(--font,Manrope,sans-serif);color:var(--copy-muted,#6b7c8d);letter-spacing:.08em}
@media(hover:hover) and (pointer:fine){.header-calendar:hover{background:var(--accent-wash,#eaf4fb);border-color:var(--accent,#005696);transform:translateY(-2px)}}
.calendar-section{position:relative}.calendar-workspace{display:grid;grid-template-columns:minmax(210px,260px) minmax(0,1fr);gap:18px;align-items:stretch}.calendar-live-card,.calendar-panel{border:1px solid var(--hairline,#dce5ee);border-radius:20px;background:var(--panel,#fff);box-shadow:0 18px 45px rgba(5,35,60,.08)}
.calendar-live-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:360px;padding:28px;overflow:hidden;position:relative;background:linear-gradient(145deg,color-mix(in srgb,var(--accent,#005696) 16%,var(--panel,#fff)),var(--panel,#fff) 65%)}
.calendar-live-card::after{content:'';position:absolute;width:190px;height:190px;right:-95px;top:-75px;border:1px solid color-mix(in srgb,var(--accent,#005696) 30%,transparent);border-radius:50%;box-shadow:0 0 0 22px color-mix(in srgb,var(--accent,#005696) 7%,transparent),0 0 0 45px color-mix(in srgb,var(--accent,#005696) 4%,transparent)}
.calendar-live-icon{display:grid;place-items:center;width:48px;height:48px;margin-bottom:24px;border:1px solid color-mix(in srgb,var(--accent,#005696) 28%,var(--hairline,#dce5ee));border-radius:14px;background:color-mix(in srgb,var(--accent,#005696) 12%,transparent);color:var(--accent,#005696)}.calendar-live-icon svg{width:23px;height:23px}
.calendar-live-kicker,.calendar-panel-kicker{font:700 9px/1.4 var(--font,Manrope,sans-serif);letter-spacing:.16em;color:var(--copy-muted,#6b7c8d)}.calendar-live-card>strong{margin:8px 0 4px;font:700 clamp(34px,4vw,48px)/1 var(--font,Manrope,sans-serif);letter-spacing:.03em;color:var(--ink,#142d49)}.calendar-live-card time{font:600 16px/1.4 var(--font,Manrope,sans-serif);color:var(--ink,#142d49)}.calendar-live-zone{margin-top:8px;font:500 11px/1.5 var(--font,Manrope,sans-serif);color:var(--copy-muted,#6b7c8d)}.calendar-live-card>a{margin-top:auto;padding-top:22px;color:var(--accent,#005696);font:700 11px/1.4 var(--font,Manrope,sans-serif);text-decoration:none}.calendar-live-card>a:hover{text-decoration:underline;text-underline-offset:4px}
.calendar-panel{padding:25px}.calendar-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.calendar-panel-head h3{margin:7px 0 0;font:700 clamp(22px,2.5vw,30px)/1.1 var(--font,Manrope,sans-serif);color:var(--ink,#142d49)}.calendar-month-controls{display:flex;align-items:center;gap:10px}.calendar-month-controls>button{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--hairline,#dce5ee);border-radius:12px;background:transparent;color:var(--ink,#142d49);font-size:25px;line-height:1;cursor:pointer}.calendar-month-controls>button:disabled{opacity:.45;cursor:not-allowed}.calendar-month-controls>div{display:grid;min-width:90px;text-align:center;gap:4px}.calendar-month-controls strong{font:700 13px/1.2 var(--font,Manrope,sans-serif);color:var(--ink,#142d49)}.calendar-month-controls span{font:600 10px/1 var(--font,Manrope,sans-serif);letter-spacing:.14em;color:var(--copy-muted,#6b7c8d)}
.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.calendar-weekdays{margin-bottom:8px}.calendar-weekdays span{text-align:center;font:700 9px/1.3 var(--font,Manrope,sans-serif);letter-spacing:.12em;color:var(--copy-muted,#6b7c8d)}.calendar-grid{grid-auto-rows:minmax(45px,1fr)}.calendar-day{display:grid;place-items:center;position:relative;min-height:45px;border:1px solid transparent;border-radius:13px;color:var(--ink,#142d49);font:600 12px/1 var(--font,Manrope,sans-serif)}.calendar-day b{font-weight:700}.calendar-day-empty{pointer-events:none}.calendar-day.is-holiday{border-color:color-mix(in srgb,var(--accent,#005696) 48%,var(--hairline,#dce5ee));background:color-mix(in srgb,var(--accent,#005696) 9%,transparent)}.calendar-day.is-holiday i{position:absolute;bottom:6px;width:4px;height:4px;border-radius:50%;background:var(--accent,#005696)}.calendar-day.is-today{background:var(--accent,#005696);border-color:var(--accent,#005696);color:#fff;box-shadow:0 7px 16px color-mix(in srgb,var(--accent,#005696) 28%,transparent)}.calendar-day.is-today.is-holiday{background:linear-gradient(135deg,var(--accent,#005696),color-mix(in srgb,var(--accent,#005696) 62%,#000));color:#fff}.calendar-day.is-today i{background:#fff}.calendar-holidays-head{display:flex;align-items:center;gap:9px;margin:24px 0 12px;color:var(--copy-muted,#6b7c8d)}.calendar-holidays-head>span{width:7px;height:7px;border-radius:50%;background:var(--accent,#005696)}.calendar-holidays-head strong{font:700 9px/1.3 var(--font,Manrope,sans-serif);letter-spacing:.15em}.calendar-holiday-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.calendar-holiday{display:flex;align-items:center;gap:10px;min-width:0;padding:9px 10px;border:1px solid var(--hairline,#dce5ee);border-radius:10px;background:color-mix(in srgb,var(--panel,#fff) 84%,var(--accent,#005696) 16%)}.calendar-holiday>span{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:9px;background:var(--accent-wash,#eaf4fb);color:var(--accent,#005696);font:700 11px/1 var(--font,Manrope,sans-serif)}.calendar-holiday strong{min-width:0;font:600 11px/1.35 var(--font,Manrope,sans-serif);color:var(--ink,#142d49)}.calendar-empty{grid-column:1/-1;margin:0;padding:14px;border-radius:10px;background:var(--accent-wash,#eaf4fb);color:var(--copy-muted,#6b7c8d);font-size:12px}.calendar-source-note{margin:13px 0 0;color:var(--copy-muted,#6b7c8d);font:500 10px/1.6 var(--font,Manrope,sans-serif)}.calendar-source-note a{color:var(--accent,#005696);font-weight:700}
[data-theme="dark"] .calendar-live-card,[data-theme="dark"] .calendar-panel{box-shadow:0 18px 50px rgba(0,0,0,.22)}
@media(max-width:700px){.header-calendar{min-width:44px;width:44px;justify-content:center;padding:0;border-radius:50%;background:transparent;border-color:transparent}.header-calendar span{display:none}.calendar-workspace{grid-template-columns:1fr;gap:12px}.calendar-live-card{min-height:0;padding:22px;display:grid;grid-template-columns:auto 1fr;column-gap:13px;align-items:center}.calendar-live-card::after{width:150px;height:150px;right:-80px;top:-75px}.calendar-live-icon{grid-row:span 3;margin:0}.calendar-live-kicker{align-self:end}.calendar-live-card>strong{margin:4px 0 0;font-size:32px}.calendar-live-card time{font-size:13px}.calendar-live-zone{grid-column:2;margin-top:2px}.calendar-live-card>a{grid-column:1/-1;margin-top:16px;padding-top:13px;border-top:1px solid var(--hairline,#dce5ee);width:100%}.calendar-panel{padding:16px;border-radius:16px}.calendar-panel-head{align-items:flex-start;gap:10px;margin-bottom:16px}.calendar-panel-head h3{font-size:20px}.calendar-month-controls{gap:5px}.calendar-month-controls>button{width:38px;height:38px}.calendar-month-controls>div{min-width:68px}.calendar-weekdays,.calendar-grid{gap:4px}.calendar-grid{grid-auto-rows:minmax(39px,1fr)}.calendar-day{min-height:39px;border-radius:10px;font-size:11px}.calendar-day.is-holiday i{bottom:4px}.calendar-holidays-head{margin-top:18px}.calendar-holiday-list{grid-template-columns:1fr}.calendar-holiday{padding:8px}.calendar-source-note{font-size:9px}}

@media(min-width:1101px){.utility-rail{grid-template-columns:1.3fr repeat(4,minmax(0,1fr))}}
.site-app[data-route="calendar"] #calendar>.section-heading{display:none}

/* Keep the desktop navigation and its controls on one stable header row. */
@media(min-width:1101px){
  .site-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;padding-inline:max(20px,calc((100vw - 1180px)/2));}
  .site-header .brand{margin-right:0;min-width:190px;}
  .site-header .main-site-nav{min-width:0;justify-content:flex-end;gap:0;}
  .site-header .main-site-nav a{font-size:10px;padding-inline:6px;white-space:nowrap;}
  .site-header .header-actions{gap:3px;white-space:nowrap;}
  .site-header .header-cta{padding-inline:10px;font-size:10px;white-space:nowrap;}
  .site-header .header-calendar{padding-inline:7px;}
}

/* In-place calendar dialog for the signed-in workspace. */
.calendar-popup-close{display:none}
html.calendar-popup-open,body.calendar-popup-open{overflow:hidden}
body.calendar-popup-open::before{content:'';position:fixed;inset:0;z-index:70;background:rgba(3,14,27,.68);backdrop-filter:blur(10px)}
body.calendar-popup-open #calendar{display:block!important;position:fixed;z-index:71;inset:50% auto auto 50%;width:min(1060px,calc(100vw - 48px));max-height:min(90dvh,780px);overflow:auto;transform:translate(-50%,-50%);margin:0;padding:30px;border:1px solid color-mix(in srgb,var(--accent,#005696) 30%,var(--hairline,#dce5ee));border-radius:26px;background:var(--canvas,#f7fbff);box-shadow:0 32px 100px rgba(0,0,0,.35)}
body.calendar-popup-open #calendar>.section-heading{display:grid!important;padding-right:45px}
body.calendar-popup-open #calendar>.section-heading h2{font-size:clamp(34px,4vw,56px)}
.calendar-popup-close{position:absolute;top:18px;right:18px;display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--hairline,#dce5ee);border-radius:50%;background:var(--panel,#fff);color:var(--ink,#142d49);font-size:25px;line-height:1;cursor:pointer;z-index:2}
.calendar-popup-close:hover{background:var(--accent-wash,#eaf4fb);border-color:var(--accent,#005696)}
@media(max-width:700px){body.calendar-popup-open #calendar{inset:0;width:100%;max-height:100dvh;transform:none;padding:22px 16px 28px;border-radius:0;border-width:0;overflow:auto}body.calendar-popup-open #calendar>.section-heading{display:block!important;padding:38px 34px 0 0;margin-bottom:18px}body.calendar-popup-open #calendar>.section-heading h2{font-size:34px}.calendar-popup-close{top:13px;right:13px}.calendar-popup-open .calendar-workspace{gap:12px}}

/* On tablet and mobile, keep the full navigation and member account links inside the hamburger menu. */
@media(max-width:1100px){
  .site-header .main-site-nav{display:none!important;}
  .site-header.navigation-open .main-site-nav{display:grid!important;position:absolute;top:100%;right:0;left:auto;width:min(380px,100vw);grid-template-columns:minmax(0,1fr);order:5;z-index:80;}
  .site-header .header-menu-toggle{display:flex!important;}
  .site-header .auth-controls{display:none!important;}
}
@media(max-width:700px){.site-header.navigation-open .main-site-nav{width:100%;}}
.mobile-only-account-link{display:none!important}
@media(max-width:1100px){
  .site-header.navigation-open .main-site-nav .mobile-only-account-link,
  .topbar.navigation-open .main-site-nav .mobile-only-account-link,
  .navigation-open .main-site-nav .mobile-only-account-link{display:flex!important}
}
html:not(.is-signed-in) .mobile-only-account-link,
html:not(.is-signed-in) .mobile-only-signout,
html:not(.is-signed-in) #mobileNavSignout,
body:not(.is-signed-in) .mobile-only-account-link,
body:not(.is-signed-in) .mobile-only-signout,
body:not(.is-signed-in) #mobileNavSignout{display:none!important}

/* The language control uses the compact selector treatment without a native chevron. */
.site-header .language-select select{-webkit-appearance:none;appearance:none;background-image:none!important;padding-right:2px!important}
.site-header .language-select select::-ms-expand{display:none}

/* Compact header controls: consistent touch targets, spacing and hover states. */
@media(max-width:700px){
  .site-header .header-actions{gap:6px;align-items:center}
  .site-header .icon-btn,.site-header .header-menu-toggle,.site-header .header-calendar{width:40px;min-width:40px;height:40px;min-height:40px;border-radius:12px}
  .site-header .language-select{width:42px;min-width:42px;height:40px;min-height:40px;padding:0 7px;border-radius:12px;background:transparent!important}
  .site-header .language-select select{width:100%;height:38px;min-height:38px;min-width:0;font-size:10px;text-align:center}
  .site-header .language-select:focus-within{background:transparent!important}
  .site-header .icon-btn:hover,.site-header .header-menu-toggle:hover,.site-header .header-calendar:hover,.site-header .language-select:hover{background:color-mix(in srgb,var(--accent,#2384bd) 10%,transparent)!important}
  .site-header .icon-btn:focus-visible,.site-header .header-menu-toggle:focus-visible,.site-header .header-calendar:focus-visible,.site-header .language-select:focus-within{outline:2px solid color-mix(in srgb,var(--accent,#2384bd) 58%,transparent);outline-offset:2px}
}

/* Header controls share one visual system across desktop and tablet. */
.site-header .header-actions{align-items:center;gap:6px}
.site-header .icon-btn,.site-header .header-menu-toggle,.site-header .header-calendar{width:40px;min-width:40px;height:40px;min-height:40px;border-radius:11px}
.site-header .language-select{height:40px;min-height:40px;min-width:42px;padding:0 7px;border-radius:11px}
.site-header .language-select select{height:38px;min-height:38px;font-size:10px}
.site-header .icon-btn:hover,.site-header .header-menu-toggle:hover,.site-header .header-calendar:hover,.site-header .language-select:hover{background:color-mix(in srgb,var(--accent,#2384bd) 10%,transparent)!important}
.site-header .icon-btn:focus-visible,.site-header .header-menu-toggle:focus-visible,.site-header .header-calendar:focus-visible,.site-header .language-select:focus-within{outline:2px solid color-mix(in srgb,var(--accent,#2384bd) 58%,transparent);outline-offset:2px}
@media(max-width:1100px){
  .site-header .header-menu-toggle{display:flex!important}
  .site-header .header-actions{gap:5px}
  .site-header .main-site-nav{display:none!important}
  .site-header.navigation-open .main-site-nav{display:grid!important}
}
@media(max-width:700px){
  .site-header .header-actions{gap:6px}
  .site-header .icon-btn,.site-header .header-menu-toggle,.site-header .header-calendar{width:40px;min-width:40px;height:40px;min-height:40px}
}

/* Desktop account/avatar placement and calendar trigger behavior. */
@media(min-width:1101px){
  .site-header .header-calendar>span{display:none}
  .site-header .header-calendar{justify-content:center;padding:0}
  .site-header .auth-controls{position:relative;top:auto;right:auto;z-index:2;order:3;color:var(--ink,#142d49)}
  .site-header .auth-profile-trigger{width:40px;height:40px;min-width:40px;padding:4px;justify-content:center;border-radius:11px;background:transparent;color:var(--ink,#142d49);box-shadow:none}
  .site-header .auth-profile-trigger>span:first-child{display:none}
  .site-header .auth-profile-trigger .auth-avatar-fallback{width:30px;height:30px}
  .site-header .auth-profile-popover{top:calc(100% + 10px);right:0}
  .site-header .header-menu-toggle{order:4}
  .site-header .header-cta{order:5}
}
@media(max-width:1100px){.site-header .auth-controls{position:relative;top:auto;right:auto}}

/* Avatar-only profile trigger: keep the account label out of the compact header. */
.auth-profile-trigger>span:first-child{display:none!important}
@media(min-width:701px){
  .site-header .auth-controls{display:block;position:relative;top:auto;right:auto;overflow:visible}
  .site-header .auth-profile-trigger{box-sizing:border-box;width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;padding:4px!important;display:grid;place-items:center;overflow:visible;border:1px solid transparent;border-radius:11px;background:transparent;color:var(--ink,#142d49);box-shadow:none}
  .site-header .auth-profile-trigger .auth-avatar-fallback{width:30px;height:30px;flex:0 0 30px}
  .site-header .auth-profile-trigger:hover{background:color-mix(in srgb,var(--accent,#2384bd) 10%,transparent)!important;border-color:color-mix(in srgb,var(--accent,#2384bd) 20%,transparent)}
  .site-header .header-calendar:hover{background:color-mix(in srgb,var(--accent,#2384bd) 10%,transparent)!important}
}

/* The header shows only the member photo when Clerk provides one. */
.auth-profile-trigger>span:not(.auth-avatar-fallback){display:none!important}
.auth-avatar-image{display:block;width:30px;height:30px;object-fit:cover;border-radius:50%}
.auth-avatar-image.large{width:42px;height:42px}
@media(min-width:701px){
  .site-header .header-calendar,.site-header .auth-profile-trigger{border-color:transparent!important;box-shadow:none!important;background:transparent!important}
  .site-header .header-calendar:hover,.site-header .auth-profile-trigger:hover{border-color:transparent!important;background:color-mix(in srgb,var(--accent,#2384bd) 9%,transparent)!important}
  .site-header .auth-profile-trigger:focus-visible,.site-header .header-calendar:focus-visible{outline:2px solid color-mix(in srgb,var(--accent,#2384bd) 58%,transparent);outline-offset:2px}
}

/* Header profile trigger is avatar-only; suppress inherited account labels/text. */
.site-header .auth-controls .auth-profile-trigger{font-size:0!important;letter-spacing:0!important;text-indent:0!important}
.site-header .auth-controls .auth-profile-trigger>span:not(.auth-avatar-fallback){display:none!important;width:0!important;max-width:0!important;overflow:hidden!important}
.site-header .auth-controls .auth-profile-trigger::before,.site-header .auth-controls .auth-profile-trigger::after{display:none!important;content:none!important}

/* Hero carousel controls stay transparent over the background image. */
.hero-playback button,.hero-playback button:hover,.hero-playback button:focus,.hero-playback button:active{background:transparent!important;border-color:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border-radius:0!important}

/* Shared emblem accent for navigation and interactive focus states. */
.main-site-nav a:hover,.main-site-nav a[aria-current="page"]{color:var(--brand-yellow-text,var(--signal-yellow,#16334c))!important}
.main-site-nav a[aria-current="page"]{text-decoration:underline;text-decoration-color:var(--brand-yellow,var(--signal-yellow,#f4c430));text-decoration-thickness:2px;text-underline-offset:6px}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline-color:var(--brand-yellow,var(--signal-yellow,#f4c430))}

/* Keep the calculator's yellow cues above the shared responsive overrides. */
body[data-theme="dark"] .tab.active,
body[data-theme="dark"] .page-back,
body[data-theme="dark"] .text-button{color:#ffd95a!important}
body[data-theme="light"] .tab.active,
body[data-theme="light"] .page-back,
body[data-theme="light"] .text-button{color:#16334c!important}
body[data-theme="dark"] .ropa-quick-picks button,
body[data-theme="dark"] .quick button{border-color:rgba(255,217,90,.46)!important;background:rgba(244,196,48,.12)!important;color:#ffd95a!important}
body[data-theme="light"] .ropa-quick-picks button,
body[data-theme="light"] .quick button{border-color:rgba(244,196,48,.68)!important;background:rgba(244,196,48,.12)!important;color:#16334c!important}
body[data-theme="dark"] .notice{color:#ffd95a!important}

/* Hero actions and headline carry the emblem's yellow signal without changing layout. */
.hero-carousel .btn-primary{background:#f4c430!important;border-color:#f4c430!important;color:#2b2100!important}
.hero-carousel .btn-primary:hover{background:#ffd95a!important;border-color:#ffd95a!important}
.hero-carousel .slide-heading em{color:#ffd95a!important}

/* Site-wide emblem accent: consistent across every shared route surface. */
:root{--brand-yellow:#f4c430;--brand-yellow-text:#16334c;--brand-yellow-ink:#2b2100}
html[data-theme="dark"],body[data-theme="dark"],html[data-salary-theme="dark"]{--brand-yellow-text:#ffd95a}
.site-app .route-intro .eyebrow,
.site-app .route-back,
.site-app .route-intro h1 em,
.site-app .section-heading h2 em,
.site-app .split-intro h2 em,
.site-app .about-card h2 em,
.site-app .cta-card h2 em,
.site-app .timeline-year,
.site-app .notice-strip .notice-label{color:var(--brand-yellow-text)!important}
.site-app .route-back:hover{color:var(--brand-yellow)!important}
.site-app .route-intro .pulse-dot{background:var(--brand-yellow);box-shadow:0 0 0 5px color-mix(in srgb,var(--brand-yellow) 18%,transparent)}
.site-app .btn-primary,
.site-app .header-cta{background:var(--brand-yellow)!important;border-color:var(--brand-yellow)!important;color:var(--brand-yellow-ink)!important}
.site-app .btn-primary:hover,
.site-app .header-cta:hover{background:#ffd95a!important;border-color:#ffd95a!important}
.site-app .filter-chip.active,
.site-app .order-tab.active,
.site-app .watch-tab.active{background:color-mix(in srgb,var(--brand-yellow) 15%,var(--panel,#fff));border-color:color-mix(in srgb,var(--brand-yellow) 58%,var(--hairline,#dce5ee));color:var(--brand-yellow-text)!important}
.site-app .order-tab:hover,
.site-app .watch-tab:hover{border-color:color-mix(in srgb,var(--brand-yellow) 46%,var(--hairline,#dce5ee));color:var(--brand-yellow-text)!important}
.site-app .section-heading .eyebrow,
.site-app .split-intro .eyebrow,
.site-app .about-card .eyebrow{color:var(--brand-yellow-text)!important}

/* On light route surfaces, use navy for copy and yellow for the underline/fill signal. */
html[data-theme="light"] .site-app .route-intro h1 em,
html[data-theme="light"] .site-app .section-heading h2 em,
html[data-theme="light"] .site-app .split-intro h2 em,
html[data-theme="light"] .site-app .about-card h2 em,
html[data-theme="light"] .site-app .cta-card h2 em{color:#16334c!important;text-decoration:underline;text-decoration-color:#f4c430;text-decoration-thickness:3px;text-underline-offset:5px}
html[data-theme="light"] .site-app .route-intro .eyebrow,
html[data-theme="light"] .site-app .route-back,
html[data-theme="light"] .site-app .section-heading .eyebrow,
html[data-theme="light"] .site-app .split-intro .eyebrow,
html[data-theme="light"] .site-app .about-card .eyebrow{color:#16334c!important}

/* Handwritten highlights use the emblem yellow itself; the navy edge preserves light-mode contrast. */
.site-app .route-intro h1 em,
.site-app .channel-copy h2 em,
.site-app .section-heading h2 em,
.site-app .split-intro h2 em,
.site-app .about-card h2 em,
.site-app .cta-card h2 em,
.landing-page .landing-hero h1 em,
.landing-page .landing-section-heading h2 em,
.landing-page .landing-about h2 em,
.landing-page .landing-cta h2 em{
  color:#f4c430!important;
  text-decoration:none!important;
  -webkit-text-stroke:.45px #16334c;
  text-shadow:0 1px 1px rgba(7,18,34,.28);
}

/* Light-theme route headings need higher specificity than the legacy navy heading rule. */
html[data-theme="light"] .site-app .route-intro h1 em,
html[data-theme="light"] .site-app .channel-copy h2 em,
html[data-theme="light"] .site-app .section-heading h2 em,
html[data-theme="light"] .site-app .split-intro h2 em,
html[data-theme="light"] .site-app .about-card h2 em,
html[data-theme="light"] .site-app .cta-card h2 em{
  color:#f4c430!important;
  text-decoration:none!important;
  -webkit-text-stroke:.45px #16334c;
  text-shadow:0 1px 1px rgba(7,18,34,.28);
}

/* Homepage hero handwritten copy uses the same logo yellow as every route. */
.site-app .hero h1 em,
.hero-carousel .slide-heading em,
.site-app .watch-heading h2 em{
  color:#f4c430!important;
  text-decoration:none!important;
  -webkit-text-stroke:.45px #16334c;
  text-shadow:0 1px 1px rgba(7,18,34,.28);
}

/* Mobile header controls carry the same emblem accent while keeping light-mode icons readable. */
.site-header .header-menu-toggle,
.site-header .header-calendar>svg{
  color:#f4c430!important;
}
.site-header .header-menu-toggle:hover,
.site-header .header-calendar:hover,
.site-header.navigation-open .header-menu-toggle{
  border-color:color-mix(in srgb,#f4c430 62%,var(--hairline,#dce5ee))!important;
  background:color-mix(in srgb,#f4c430 14%,transparent)!important;
}
html[data-theme="light"] .site-header .header-menu-toggle,
html[data-theme="light"] .site-header .header-calendar>svg{
  color:#16334c!important;
}
html[data-theme="light"] .site-header .header-menu-toggle,
html[data-theme="light"] .site-header .header-calendar{
  border-color:color-mix(in srgb,#f4c430 58%,var(--hairline,#dce5ee))!important;
}

/* A direct sign-out action is available in the authenticated mobile menu. */
.main-site-nav .mobile-only-signout{display:none!important}
@media(max-width:1100px){
  .site-header.navigation-open .main-site-nav .mobile-only-signout,
  .topbar.navigation-open .main-site-nav .mobile-only-signout,
  .navigation-open .main-site-nav .mobile-only-signout,
  .navigation-open #mobileNavSignout{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:12px!important;
    width:100%!important;
    min-height:48px!important;
    padding:12px 16px!important;
    margin-top:6px!important;
    border:1px solid rgba(216,90,104,.32)!important;
    border-radius:10px!important;
    background:rgba(216,90,104,.08)!important;
    color:#d32f2f!important;
    font:700 13px/1.5 var(--font,Manrope,sans-serif)!important;
    text-align:left!important;
    cursor:pointer!important;
    box-sizing:border-box!important;
    appearance:none!important;
    -webkit-appearance:none!important;
  }
  .site-header.navigation-open .main-site-nav .mobile-only-signout svg,
  .topbar.navigation-open .main-site-nav .mobile-only-signout svg,
  .navigation-open .main-site-nav .mobile-only-signout svg,
  .navigation-open #mobileNavSignout svg{
    width:18px!important;
    height:18px!important;
    flex-shrink:0!important;
    color:inherit!important;
  }
  .site-header.navigation-open .main-site-nav .mobile-only-signout:hover,
  .topbar.navigation-open .main-site-nav .mobile-only-signout:hover,
  .navigation-open .main-site-nav .mobile-only-signout:hover,
  .navigation-open #mobileNavSignout:hover{
    background:rgba(216,90,104,.18)!important;
    color:#b71c1c!important;
    border-color:rgba(216,90,104,.5)!important;
  }
  .main-site-nav .mobile-only-signout:focus-visible,
  #mobileNavSignout:focus-visible{
    outline:2px solid #e53935!important;
    outline-offset:2px!important;
  }
  html[data-theme="dark"] .main-site-nav .mobile-only-signout,
  body[data-theme="dark"] .main-site-nav .mobile-only-signout,
  html[data-theme="dark"] #mobileNavSignout,
  body[data-theme="dark"] #mobileNavSignout{
    background:rgba(255,107,107,.12)!important;
    color:#ff8585!important;
    border-color:rgba(255,107,107,.3)!important;
  }
  html[data-theme="dark"] .main-site-nav .mobile-only-signout:hover,
  body[data-theme="dark"] .main-site-nav .mobile-only-signout:hover,
  html[data-theme="dark"] #mobileNavSignout:hover,
  body[data-theme="dark"] #mobileNavSignout:hover{
    background:rgba(255,107,107,.22)!important;
    color:#ffa3a3!important;
    border-color:rgba(255,107,107,.5)!important;
  }
}
/* Keep the membership application discoverable on the public desk. */
.main-site-nav a[href="/membership-application"]{position:relative;border:1px solid #d5a921!important;border-radius:999px;background:linear-gradient(135deg,#f4c430,#ffe58a)!important;color:#17233b!important;font-weight:800!important;box-shadow:0 6px 18px rgba(244,196,48,.22);animation:membershipNavPulse 3s ease-in-out infinite}
.main-site-nav a[href="/membership-application"]:after{content:'NEW';position:absolute;top:-8px;right:-5px;padding:2px 4px;border-radius:999px;background:#45e19a;color:#08261b;font:800 7px ui-monospace,monospace}
@keyframes membershipNavPulse{0%,100%{box-shadow:0 6px 18px rgba(244,196,48,.18)}50%{box-shadow:0 6px 26px rgba(244,196,48,.42)}}

.mobile-menu-panel .mobile-menu-logout{display:flex;align-items:center;gap:10px;width:100%;min-height:42px;padding:8px 9px;border:1px solid color-mix(in srgb,#d85a68 42%,var(--hairline,#dce5ee));border-radius:10px;background:transparent;color:#b33d50;text-align:left;font:600 12px var(--font,system-ui);cursor:pointer}
.mobile-menu-panel .mobile-menu-logout svg:first-child{width:16px;color:#b33d50}
.mobile-menu-panel .mobile-menu-logout svg:last-child{width:14px;margin-left:auto;color:#b33d50}
.mobile-menu-panel .mobile-menu-logout:hover{background:color-mix(in srgb,#d85a68 10%,transparent);border-color:#d85a68}

/* Keep the theme control visible on authenticated pages and in light mode. */
.site-header #themeToggle{color:var(--ink,#142d49)!important;opacity:1!important}
.site-header #themeToggle svg{display:block!important;width:17px!important;height:17px!important;stroke:currentColor!important;fill:none!important;stroke-width:2!important;visibility:visible!important;opacity:1!important}
html[data-theme='light'] .site-header #themeToggle,
body[data-theme='light'] .site-header #themeToggle{color:#16334c!important;background:transparent!important;border-color:rgba(22,51,76,.28)!important}
html[data-theme='dark'] .site-header #themeToggle,
body[data-theme='dark'] .site-header #themeToggle{color:#f4c430!important}
@media(max-width:700px){
  .site-header #themeToggle{width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;display:grid!important;place-items:center!important}
  .site-header #themeToggle svg{width:17px!important;height:17px!important}
}

/* Membership mobile action bar guarantee */
.membership-mobile-bar-svg {
  width: 17px !important;
  height: 17px !important;
  max-width: 17px !important;
  max-height: 17px !important;
  flex-shrink: 0 !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
.membership-mobile-bar {
  display: none !important;
}
@media (max-width: 760px) {
  .membership-mobile-bar {
    position: fixed !important;
    z-index: 70 !important;
    right: 8px !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    left: 8px !important;
    display: grid !important;
    grid-template-columns: 1.35fr 1fr 1fr 1fr !important;
    gap: 4px !important;
    padding: 5px !important;
    border: 1px solid rgba(244, 196, 48, 0.4) !important;
    border-radius: 15px !important;
    background: rgba(7, 18, 34, 0.96) !important;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
  }
  .membership-mobile-bar a {
    display: flex !important;
    min-width: 0 !important;
    min-height: 47px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 5px 3px !important;
    border: 1px solid transparent !important;
    border-radius: 9px !important;
    color: #f7fbff !important;
    text-decoration: none !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    text-align: center !important;
  }
  .membership-mobile-bar a:hover,
  .membership-mobile-bar a:focus-visible,
  .membership-mobile-bar a:active {
    background: #f4c430 !important;
    border-color: #f4c430 !important;
    color: #2b2100 !important;
    outline: 0 !important;
  }
  .membership-mobile-bar-apply {
    background: #f4c430 !important;
    color: #2b2100 !important;
  }
  .membership-mobile-bar-track {
    color: #f4c430 !important;
  }
  .membership-mobile-bar-track:hover,
  .membership-mobile-bar-track:focus-visible,
  .membership-mobile-bar-track:active {
    color: #2b2100 !important;
  }
  /* Lift floating contact & page-travel above the mobile action bar */
  body:has(.membership-mobile-bar) .floating-contact,
  body:has(.membership-mobile-bar) .page-travel {
    bottom: calc(88px + env(safe-area-inset-bottom)) !important;
  }
}


/* Reserve mobile screen space for the task, with secondary actions in page flow. */
@media(max-width:760px), (max-height:500px) and (pointer:coarse){
  body .page-travel{display:none!important}
  body .floating-contact{position:static!important;inset:auto!important;width:auto!important;display:flex!important;flex-direction:row!important;justify-content:center;gap:12px!important;margin:20px 16px!important;transform:none!important}
  body .floating-contact a{width:auto!important;min-width:44px!important;padding:0 14px!important;border-radius:12px!important}
  body .floating-contact a>span{position:static!important;width:auto!important;height:auto!important;clip-path:none!important;overflow:visible!important;white-space:normal!important}
  body .app-install-card{position:static!important;inset:auto!important;transform:none!important;width:calc(100% - 32px)!important;max-width:440px!important;margin:20px auto calc(96px + env(safe-area-inset-bottom))!important}
  body:has(.membership-mobile-bar),body:has(.landing-mobile-bar){padding-bottom:calc(86px + env(safe-area-inset-bottom))}
  body .app-install-card[hidden],body:has(.admin-root) .floating-contact,body:has(.admin-root) .app-install-card{display:none!important}
  body:has(input:focus,textarea:focus,select:focus) .membership-mobile-bar,body:has(input:focus,textarea:focus,select:focus) .landing-mobile-bar{display:none!important}
}

.document-preview-dialog{width:min(1100px,calc(100vw - 32px));height:min(900px,92dvh);max-width:none;max-height:none;padding:0;border:1px solid var(--hairline,#42617d);border-radius:16px;background:var(--panel,#102342);color:var(--ink,#eef5ff);box-shadow:0 24px 100px #0008;overflow:hidden}
.document-preview-dialog::backdrop{background:#020914b8;backdrop-filter:blur(5px)}
.document-preview-shell{height:100%;display:flex;flex-direction:column;min-height:0}
.document-preview-header{display:flex;align-items:center;gap:16px;padding:14px 18px;border-bottom:1px solid var(--hairline,#42617d)}
.document-preview-header h2{font:700 15px/1.45 var(--font,system-ui);margin:0;flex:1;overflow-wrap:anywhere}
.document-preview-close{flex:none;width:44px;height:44px;border:1px solid var(--hairline,#42617d);border-radius:10px;background:transparent;color:inherit;cursor:pointer;font-size:24px}
.document-preview-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:10px 18px;font-size:12px}
.document-preview-actions a{color:inherit;padding:8px 12px;border:1px solid var(--hairline,#42617d);border-radius:8px;text-decoration:none}
.document-preview-status{margin:0;padding:0 18px 10px;font-size:12px;color:var(--copy-muted,#a7b6d2)}
.document-preview-content{flex:1;min-height:0;background:#e7edf3;overflow:auto;display:grid;place-items:center}
.document-preview-content iframe{width:100%;height:100%;border:0;background:#fff}
.document-preview-content img{display:block;max-width:100%;height:auto;object-fit:contain}
.document-preview-content p{padding:24px;color:#142d49;text-align:center}
@media(max-width:760px){.document-preview-dialog{width:100vw;height:100dvh;margin:0;border:0;border-radius:0}.document-preview-header{padding:10px 12px}.document-preview-actions{padding:8px 12px}.document-preview-header h2{font-size:13px}}

/* Keep contact actions anchored to the viewport on every supported handset.
   The bottom inset includes browser and installed-PWA safe areas. */
:root { --float-safe-bottom: env(safe-area-inset-bottom, 0px); --float-safe-right: env(safe-area-inset-right, 0px); }
.floating-contact { position: fixed !important; right: max(12px, var(--float-safe-right)) !important; bottom: calc(14px + var(--float-safe-bottom)) !important; left: auto !important; width: auto !important; margin: 0 !important; z-index: 120 !important; display: flex !important; flex-direction: column !important; gap: 8px !important; pointer-events: auto !important; }
.floating-contact a { width: 46px !important; min-width: 46px !important; height: 46px !important; min-height: 46px !important; padding: 0 !important; border-radius: 50% !important; }
.floating-contact a > span { position: absolute !important; width: 1px !important; height: 1px !important; clip-path: inset(50%) !important; overflow: hidden !important; white-space: nowrap !important; }
body:has(.membership-mobile-bar) .floating-contact { bottom: calc(92px + var(--float-safe-bottom)) !important; }
body:has(.landing-mobile-bar) .floating-contact { bottom: calc(82px + var(--float-safe-bottom)) !important; }
body:has(.admin-root) .floating-contact { display: none !important; }

/* Consistent carousel geometry prevents inactive slides from collapsing when
   the legacy shell toggles visibility. */
.hero.hero-carousel { height: 650px; min-height: 0; overflow: hidden; }
.hero-carousel .hero-slides { position: relative; height: 100%; min-height: 0; }
.hero-carousel .hero-slide { position: absolute !important; inset: 0; width: 100%; height: 100% !important; min-height: 0; }
.hero-carousel .hero-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .hero.hero-carousel { height: 500px; } }

/* Branded pull-to-refresh indicator. */
.wbse-refresh-indicator { position: fixed; top: max(12px, env(safe-area-inset-top)); left: 50%; z-index: 160; display: grid; place-items: center; gap: 4px; width: 58px; height: 58px; padding: 7px; border: 1px solid color-mix(in srgb, var(--accent, #005696) 35%, transparent); border-radius: 18px; background: color-mix(in srgb, var(--panel, #fff) 92%, transparent); box-shadow: 0 12px 30px rgba(2, 29, 54, .2); opacity: 0; transform: translate(-50%, -85px) scale(.92); pointer-events: none; transition: transform .2s ease, opacity .2s ease; }
.wbse-refresh-indicator.is-visible { opacity: 1; transform: translate(-50%, 0) scale(1); }
.wbse-refresh-indicator img { width: 26px; height: 26px; object-fit: contain; }
.wbse-refresh-indicator::after { content: ''; width: 16px; height: 16px; border: 2px solid color-mix(in srgb, var(--accent, #005696) 24%, transparent); border-top-color: var(--accent, #005696); border-radius: 50%; animation: wbse-refresh-spin .7s linear infinite; }
@keyframes wbse-refresh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wbse-refresh-indicator, .wbse-refresh-indicator::after { transition: none; animation: none; } }
@media (pointer: coarse) { html, body { overscroll-behavior-y: contain; } }
.calendar-day.is-adjacent { color: color-mix(in srgb, var(--copy-muted, #6b7c8d) 52%, transparent); opacity: .72; }
/* Final specificity guard for legacy mobile layout rules. */
@media (max-width: 760px), (max-height: 500px) and (pointer: coarse) {
  body .floating-contact { position: fixed !important; right: max(12px, var(--float-safe-right)) !important; bottom: calc(14px + var(--float-safe-bottom)) !important; left: auto !important; width: auto !important; margin: 0 !important; flex-direction: column !important; }
  body .floating-contact a { width: 46px !important; min-width: 46px !important; height: 46px !important; min-height: 46px !important; padding: 0 !important; border-radius: 50% !important; }
  body:has(.membership-mobile-bar) .floating-contact { bottom: calc(92px + var(--float-safe-bottom)) !important; }
  body:has(.landing-mobile-bar) .floating-contact { bottom: calc(82px + var(--float-safe-bottom)) !important; }
}
