html[data-theme=light]{color-scheme:light}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:40px;height:40px;padding:8px;border:1px solid var(--line);border-radius:50%;color:var(--navy);background:#fff;cursor:pointer}
.theme-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .theme-sun{display:none}
html[data-theme=dark] .theme-toggle .theme-moon{display:none}
html[data-theme=dark] .theme-toggle .theme-sun{display:block}
html[data-theme=dark]{color-scheme:dark;--text:#bec9dc;--line:#35435a;--paper:#172235;--theme-ink:#e6edf9;--theme-surface:#172235;--theme-raised:#111b2b;--theme-accent:#ffab91}
html[data-theme=dark] body{background:#0c1422;color:var(--theme-ink)}
html[data-theme=dark] :is(h1,h2,h3,h4){color:inherit}
html[data-theme=dark] :is(.header,.nav-submenu,.about-tab,.about-panel-container,.about-experience-card,.testimonial-card,.team-member,.contact-card,.original-job-card,.news-card,.jobs-search input,.jobs-search select,.form-grid input,.form-grid textarea,dialog,.close-dialog,.carousel-controls>button,.quote-controls button,.motion-toggle){background:var(--theme-surface);color:var(--theme-ink)}
html[data-theme=dark] :is(.page-head,.closing,.about-brand,.about-tabs-section,.about-experience,.contact-original,.contact-details-panel,.gallery-original,.original-gallery-filters,.jobs-search,.application-downloads details,.team-intro,.notice){background:var(--theme-raised)}
html[data-theme=dark] :is(.about-original,.company-original,.team-original,.company-copy,.editorial-copy,.about-tab-copy,.about-tab-copy p,.testimonial-complete,.team-lead,.team-description,.team-description p,.contact-company,.contact-cv-note strong,.contact-form-grid label,.contact-value,.contact-registration,.contact-detail p,.contact-message-help,.original-gallery-controls>span,.news-meta){color:var(--theme-ink)}
html[data-theme=dark] :is(.text-link,.language[aria-current],.nav a[aria-current=page],.nav-dropdown summary.is-current,.nav-dropdown[open]>summary,.testimonial-more summary,.contact-detail-link,.contact-cv-note a,.contact-submit-row p a,.editorial-copy a:not(.button),.service-copy .service-brand,.service-copy strong,.about-tab-copy strong,.about-tab-copy b,.team-member p,.contact-eyebrow,.team-intro-copy>h2){color:var(--theme-accent)}
html[data-theme=dark] .header .brand{background:#fff;padding:6px 9px;border-radius:5px}
html[data-theme=dark] :is(.about-company-logo,.team-heading>img,.section-brand>img,.testimonials-brand>img){background:#fff;padding:8px;border-radius:4px}
html[data-theme=dark] .partner-logo{background:#f4f6fa;border-radius:4px}
html[data-theme=dark] .company-sidebar nav a{background:var(--theme-surface);border-left-color:var(--line);color:var(--theme-ink)}
html[data-theme=dark] .company-sidebar nav img{background:#fff;padding:3px;border-radius:4px}
html[data-theme=dark] :is(.menu-button,.theme-toggle,.team-motion,.testimonial-arrow,.testimonial-pause){background:var(--theme-surface);color:var(--theme-ink);border-color:var(--line)}
html[data-theme=dark] .contact-form input:not([type=hidden]),html[data-theme=dark] .contact-form textarea{background:#101a2b;border-color:var(--line);color:var(--theme-ink)}
html[data-theme=dark] :is(.contact-details-panel,.contact-registration,.contact-cv-note,.contact-icon,.news-card,.original-job-card,.application-downloads details,.job){border-color:var(--line)}
html[data-theme=dark] .contact-icon{background:var(--theme-surface);color:var(--theme-accent)}
html[data-theme=dark] .contact-map-button{background:var(--theme-surface)!important;color:var(--theme-ink)}
html[data-theme=dark] .button.secondary{background:var(--theme-surface);color:var(--theme-ink);border-color:var(--line)}
html[data-theme=dark] .hero .button.secondary{background:#0b215433;color:#fff;border-color:#ffffff90}
html[data-theme=dark] .contact-success{background:#122f25;color:#b8efcf}
html[data-theme=dark] :is(.contact-error,.notice.error){background:#361d1c;color:#ffc0b1}
html[data-theme=dark] .contact-field-error{color:#ffb09b}
html[data-theme=dark] .contact-form [aria-invalid=true]{background:#301b1e;border-color:#ff8c73}
html[data-theme=dark] .contact-form input:focus-visible,html[data-theme=dark] .contact-form textarea:focus-visible{outline-color:var(--theme-accent)}
html[data-theme=dark] :is(.about-brand svg,.company-highlight svg,.team-heading h2 svg){stroke:#f57a58}
html[data-theme=dark] .about-tab[aria-selected=true]{background:#bf2d0d}
html[data-theme=dark] .about-tab:not([aria-selected=true]) img{filter:brightness(0) invert(1)}
html[data-theme=dark] .original-gallery-filters a[aria-pressed=true]{background:var(--theme-surface);color:var(--theme-ink)}
html[data-theme=dark] .original-footer{background:#080f1b}
html[data-theme=dark] .skip-link{background:var(--theme-surface)}
@media(hover:hover) and (pointer:fine){.theme-toggle:hover{border-color:#bf2d0d}html[data-theme=dark] .nav .nav-submenu a:hover,html[data-theme=dark] .company-sidebar nav a:hover{background:#24334a}html[data-theme=dark] .theme-toggle:hover{border-color:var(--theme-accent)}}
@media(max-width:540px){.header .nav-tools{gap:6px}.header .wrap{gap:10px}.theme-toggle,.menu-button{width:44px;height:44px;min-height:44px;padding:8px}.theme-toggle{border-radius:50%}.menu-button{flex-shrink:0}}
@media(max-width:360px){.header .brand img{width:110px}.header .nav-tools{gap:5px}}

@media(max-width:540px){.header .lang-wrap{gap:5px}html[data-theme=dark] .header .brand{padding:5px 6px}}
@media(max-width:360px){html[data-theme=dark] .header .brand img{width:100px}}

html[data-theme=dark] .eyebrow{color:var(--theme-accent)}

html[data-theme=dark] :is(.testimonial-author,.about-experience-content>p:first-child){color:var(--theme-ink)}

.header .lang-wrap{gap:2px}.header .language{display:inline-flex;align-items:center;justify-content:center;width:34px;height:40px;border-radius:4px;border:1px solid transparent;padding:4px}
.header .language img{width:18px;height:12px;object-fit:cover;box-shadow:0 0 0 1px #0002}
.header .language[aria-current=true]{border-color:#bf2d0d;background:#bf2d0d0d}
html[data-theme=dark] .header .language[aria-current=true]{border-color:var(--theme-accent);background:#ffffff0a}
@media(max-width:540px){.header .lang-wrap{gap:0}.header .language{width:28px;height:44px}.header .nav-tools{gap:4px}}
@media(max-width:360px){.header .brand img{width:100px}html[data-theme=dark] .header .brand img{width:90px}.header .nav-tools{gap:3px}}

html[data-theme] .theme-toggle[hidden]{display:inline-flex!important;visibility:hidden}

/* Keep text and its surface paired when switching from the original light design. */
html[data-theme=dark] .testimonials-original{background:var(--theme-raised);color:var(--theme-ink)}
html[data-theme=dark] .nav .nav-submenu a{color:var(--theme-ink)}
html[data-theme=dark] .nav .nav-submenu a[aria-current=page]{color:var(--theme-accent)}
html[data-theme=dark] .application-downloads details{color:var(--theme-ink)}
html[data-theme=dark] :is(.application-downloads details[open] summary,.application-downloads summary span,.application-downloads a,.original-job-heading>p,.original-job-card p a,.contact-form-grid label>span[aria-hidden],.contact-heading-dot,.form-status){color:var(--theme-accent)}
html[data-theme=dark] .jobs-pagination a{color:var(--theme-accent)}
html[data-theme=dark] .jobs-pagination a[aria-current]{color:#fff}
html[data-theme=dark] .editorial-copy .button{color:#fff}
html[data-theme=dark] .editorial-copy .button.secondary{color:var(--theme-ink)}
html[data-theme=dark] .testimonial-dots button[aria-current]{background:var(--theme-accent);border-color:var(--theme-accent)}
@media(hover:hover) and (pointer:fine){
  html[data-theme=dark] .nav a:hover,html[data-theme=dark] .nav-dropdown summary:hover,html[data-theme=dark] .nav .nav-submenu a:hover,html[data-theme=dark] .text-link:hover{color:var(--theme-accent)}
  html[data-theme=dark] .button.secondary:hover{background:#24334a;color:var(--theme-ink)}
  html[data-theme=dark] :is(.testimonial-more summary:hover,.testimonial-arrow:hover,.testimonial-pause:hover,.contact-map-button:hover){color:var(--theme-accent)}
}

.header .language-flag{width:18px;height:12px;display:block;object-fit:cover;box-shadow:0 0 0 1px #0002}
@media(max-width:1100px){.header.menu-open .language-flag{width:23px;height:16px}}
html[data-theme=dark] .header.menu-open{background:#0b1423;color:#f2f5fa}
html[data-theme=dark] .header.menu-open .nav-submenu{background:#111b2b;color:#d8e0ed}
html[data-theme=dark] .header.menu-open .nav .nav-submenu a{color:#d8e0ed}
html[data-theme=dark] .header.menu-open .nav .nav-submenu a[aria-current=page]{color:#ffab91}
html[data-theme=dark] .header.menu-open .brand{background:transparent;padding:0}html[data-theme=dark] .header.menu-open .brand img{background:#cbd4df;filter:brightness(.92) saturate(.94)}
html[data-theme=light] .header.menu-open{background:#f8f9fb;color:#10213a}
html[data-theme=light] .header.menu-open .brand img{background:#fff}
html[data-theme=light] .header.menu-open .nav>a,html[data-theme=light] .header.menu-open .nav-dropdown>.nav-parent-link,html[data-theme=light] .header.menu-open .nav-dropdown>.nav-disclosure{color:#10213a;border-color:#d9dfe8}
html[data-theme=light] .header.menu-open .nav>a[aria-current=page],html[data-theme=light] .header.menu-open .nav-dropdown.is-current>.nav-parent-link,html[data-theme=light] .header.menu-open .nav-dropdown.is-current>.nav-disclosure{color:#a83222}
html[data-theme=light] .header.menu-open .nav-submenu{background:transparent;border-left-color:#bf2d0d}
html[data-theme=light] .header.menu-open .nav .nav-submenu a{color:#33445d}
html[data-theme=light] .header.menu-open .nav .nav-submenu a[aria-current=page]{color:#a83222}
html[data-theme=light] .header.menu-open .menu-button,html[data-theme=light] .header.menu-open .nav-tools .theme-toggle{background:#fff;color:#10213a;border-color:#cbd3df}
html[data-theme=light] .header.menu-open .mobile-menu-signature{background:transparent;border-color:transparent}
html[data-theme=light] .header.menu-open .mobile-menu-signature .route-line{stroke:#71859d}
html[data-theme=light] .header.menu-open .mobile-menu-signature .route-label{fill:#586b81}
html[data-theme=light] .header.menu-open .mobile-menu-signature .route-end{fill:#60748a}
html[data-theme=light] .header.menu-open .mobile-menu-signature .route-marker{fill:#b43f36}
html[data-theme=light] .header.menu-open .mobile-menu-signature .crew-marker-label{fill:#9e3025}
/* Selected language: compact flag with an underline, without a selection box. */
.header .lang-wrap{gap:4px}
.header .language,.header.menu-open .nav-tools .language{position:relative;width:40px;height:44px;min-height:44px;padding:10px 8px;border:0;border-radius:0;background:transparent}
html[data-theme] .header .language[aria-current=true]{border:0;background:transparent}
.header .language img,.header .language-flag{width:23px;height:15px;object-fit:cover;box-shadow:none;border-radius:1px}
.header .language::after{content:'';position:absolute;left:9px;right:9px;bottom:5px;height:2px;background:var(--red);border-radius:2px;opacity:0}
.header .language[aria-current=true]::after{opacity:1}
html[data-theme=dark] .header .language::after{background:var(--theme-accent)}
.header .language:focus-visible{outline:2px solid var(--red);outline-offset:1px;border-radius:3px}
html[data-theme=dark] .header .language:focus-visible{outline-color:var(--theme-accent)}
@media(max-width:540px){.header .lang-wrap{gap:0}.header .language{width:36px;padding:10px 6px}.header .language::after{left:7px;right:7px}}

/* The original logo already has alpha transparency; remove its dark-theme backing. */
html[data-theme=dark] .header .brand,html[data-theme=dark] .header.menu-open .brand{background:transparent;padding:0;border-radius:0;box-shadow:none}
html[data-theme=dark] .header .brand img,html[data-theme=dark] .header.menu-open .brand img{background:transparent;padding:0;border-radius:0;box-shadow:none;filter:brightness(1.65) saturate(.95)}

/* Stargate logos across the public site, on dark surfaces. */
html[data-theme=dark] :is(.header .brand img,.header.menu-open .brand img,.about-company-logo,.team-heading>img,.section-brand>img,.testimonials-brand>img){background:transparent;padding:0;border-radius:0;box-shadow:none;filter:brightness(2.6) saturate(.9)}
