/*
 * TransGrid global navigation and footer contract.
 * This file is loaded by every route and is the single source of truth for
 * header typography, spacing, controls, dropdowns and footer presentation.
 */
:root {
  --tge-ink: #111a43;
  --tge-navy: #080d32;
  --tge-line: #e1e0ea;
  --tge-fade: rgba(255, 255, 255, .72);
  --tge-stroke: linear-gradient(100deg, #f6b684 0%, #bf88b1 48%, #6d38d7 100%);
  --tge-nav-font: "Inter", ui-sans-serif, system-ui, sans-serif;
  --tge-action-on-light: #35278f;
  --tge-action-on-light-hover: #171d4a;
  --tge-action-on-dark: #ffffff;
  --tge-action-on-dark-hover: #f6b684;
  /*
   * Display-title scale for full-page heroes. The maximum is intentionally
   * capped for 13-inch laptop viewports; page CSS may control composition,
   * but it must not enlarge the title beyond this shared interface rule.
   */
  --tge-page-hero-title: clamp(46px, 4.35vw, 72px);
  --tge-page-hero-leading: .98;
  --tge-page-hero-tracking: -.045em;
}

:where(.news-index-intro, .company-hero, .careers-hero, .press-hero,
  .contact-hero, .leadership-hero, .product-hero) h1 {
  max-width: 780px;
  font-size: var(--tge-page-hero-title) !important;
  letter-spacing: var(--tge-page-hero-tracking) !important;
  line-height: var(--tge-page-hero-leading) !important;
  text-wrap: balance;
}

/*
 * Global action-contrast contract.
 * New sections should declare data-tge-surface="dark" or "light". The class
 * aliases support components, while the legacy selector map keeps every
 * existing page on the same contrast rule without changing its architecture.
 */
:where([data-tge-surface="dark"], .tge-surface-dark,
  .news-index-hero, .news-hero-feature, .news-bento-content:not(.news-bento-content-light),
  .news-assessment-card, .article-feature, .article-diagram, .article-body blockquote,
  .article-assessment, .company-full-stack, .company-hanwha, .company-closing,
  .careers-hero, .careers-impact, .careers-openings, .careers-closing,
  .press-hero, .press-resources, .press-media-contact,
  .contact-hero, .contact-reassurance, .contact-office,
  .ipp-proposition, .ipp-closing) {
  --tge-surface-action: var(--tge-action-on-dark);
  --tge-surface-action-hover: var(--tge-action-on-dark-hover);
  --tge-surface-focus: #f6b684;
}

:where([data-tge-surface="light"], .tge-surface-light, .news-bento-content-light) {
  --tge-surface-action: var(--tge-action-on-light);
  --tge-surface-action-hover: var(--tge-action-on-light-hover);
  --tge-surface-focus: #744bd0;
}

:where([data-tge-surface], .tge-surface-dark, .tge-surface-light,
  .news-index-hero, .news-hero-feature, .news-bento-content, .news-assessment-card,
  .article-feature, .article-diagram, .article-body blockquote, .article-assessment,
  .company-full-stack, .company-hanwha, .company-closing,
  .careers-hero, .careers-impact, .careers-openings, .careers-closing,
  .press-hero, .press-resources, .press-media-contact,
  .contact-hero, .contact-reassurance, .contact-office,
  .ipp-proposition, .ipp-closing)
  :where(a:not(.tge-global-brand):not(.tge-global-login):not(.tge-global-dropdown-link):not(.tge-nav-link):not(.tge-nav-trigger), button.tge-action) {
  color: var(--tge-surface-action) !important;
  text-decoration-color: currentColor;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease, opacity .18s ease;
}

:where([data-tge-surface], .tge-surface-dark, .tge-surface-light,
  .news-index-hero, .news-hero-feature, .news-bento-content, .news-assessment-card,
  .article-feature, .article-diagram, .article-body blockquote, .article-assessment,
  .company-full-stack, .company-hanwha, .company-closing,
  .careers-hero, .careers-impact, .careers-openings, .careers-closing,
  .press-hero, .press-resources, .press-media-contact,
  .contact-hero, .contact-reassurance, .contact-office,
  .ipp-proposition, .ipp-closing)
  :where(a:not(.tge-global-brand):not(.tge-global-login):not(.tge-global-dropdown-link):not(.tge-nav-link):not(.tge-nav-trigger), button.tge-action):hover {
  color: var(--tge-surface-action-hover) !important;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--tge-surface-focus, #744bd0);
  outline-offset: 3px;
}

/* Direct linked surfaces and nested action labels must follow the same rule. */
:where(a, button):where([data-tge-surface="dark"], .tge-surface-dark,
  .news-hero-feature, .news-assessment-card) {
  color: var(--tge-action-on-dark) !important;
}

:where([data-tge-surface="dark"], .tge-surface-dark,
  .news-index-hero, .news-hero-feature, .news-assessment-card,
  .article-feature, .article-diagram, .article-body blockquote, .article-assessment,
  .company-full-stack, .company-hanwha, .company-closing,
  .careers-hero, .careers-impact, .careers-openings, .careers-closing,
  .press-hero, .press-resources, .press-media-contact,
  .contact-hero, .contact-reassurance, .contact-office,
  .product-hero, .product-radar, .product-partnership, .product-closing,
  .leadership-hero, .leadership-hanwha, .leadership-closing,
  .login-context, .ipp-proposition, .ipp-closing)
  :where(a, button, .news-text-link, .product-text-link) {
  color: var(--tge-action-on-dark) !important;
}

:where(a, button):where([data-tge-surface="dark"], .tge-surface-dark,
  .news-hero-feature, .news-assessment-card):hover,
:where([data-tge-surface="dark"], .tge-surface-dark,
  .news-index-hero, .news-hero-feature, .news-assessment-card,
  .article-feature, .article-diagram, .article-body blockquote, .article-assessment,
  .company-full-stack, .company-hanwha, .company-closing,
  .careers-hero, .careers-impact, .careers-openings, .careers-closing,
  .press-hero, .press-resources, .press-media-contact,
  .contact-hero, .contact-reassurance, .contact-office,
  .product-hero, .product-radar, .product-partnership, .product-closing,
  .leadership-hero, .leadership-hanwha, .leadership-closing,
  .login-context, .ipp-proposition, .ipp-closing)
  :where(a, button, .news-text-link, .product-text-link):hover {
  color: var(--tge-action-on-dark-hover) !important;
}

:is(.tge-global-header, header:has(.tge-nav-trigger)) {
  font-family: var(--tge-nav-font);
}

.tge-global-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  color: #fff;
  transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease, color .22s ease;
}

.tge-global-header.is-light,
.tge-global-header.is-scrolled {
  border-color: oklab(0 0 0 / .05);
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
  color: oklch(12.9% .042 264.695);
}

.tge-global-header a {
  color: inherit;
  text-decoration: none;
}

.tge-global-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.tge-global-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.tge-global-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  line-height: 0;
}

.tge-global-brand img {
  display: block;
  width: 240px;
  height: auto;
}

.tge-global-menu,
.tge-global-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tge-global-menu,
.tge-desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(32px, 3.4vw, 48px);
}

.tge-global-menu-item,
.tge-desktop-nav > .tge-nav-item {
  position: relative;
  display: flex;
  height: 24px;
  align-items: center;
}

.tge-global-menu-trigger,
header .tge-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: 0;
  color: inherit;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 20px;
  white-space: nowrap;
}

.tge-global-menu-trigger svg,
header .tge-nav-trigger svg {
  width: .75rem;
  height: .75rem;
  transition: transform .18s ease;
}

/* Match the half-pixel optical baseline produced by the app-rendered header. */
.tge-global-menu-trigger,
header .tge-nav-trigger {
  transform: translateY(-.5px);
}

.tge-global-menu-item:hover .tge-global-menu-trigger svg,
.tge-global-menu-item:focus-within .tge-global-menu-trigger svg {
  transform: rotate(180deg);
}

.tge-global-dropdown {
  position: absolute;
  top: calc(100% + .45rem);
  left: 50%;
  z-index: 120;
  display: block;
  width: min(26rem, calc(100vw - 2rem));
  padding: .8rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 16px;
  background: rgba(9, 15, 53, .94);
  box-shadow: 0 22px 48px rgba(5, 8, 32, .3), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -.6rem) scale(.98);
  transition: opacity .18s ease, transform .22s cubic-bezier(.22, 1, .36, 1);
}

.tge-global-dropdown,
.tge-global-sub-links {
  list-style: none;
}

.tge-global-dropdown::before {
  position: absolute;
  top: -.65rem;
  right: 0;
  left: 0;
  height: .65rem;
  content: "";
}

.tge-global-menu-item:hover .tge-global-dropdown,
.tge-global-menu-item:focus-within .tge-global-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.tge-global-dropdown > li + li {
  margin-top: .22rem;
  padding-top: .22rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.tge-global-dropdown-link,
.tge-global-sub-links a {
  display: flex;
  min-height: 2.85rem;
  align-items: center;
  padding: .72rem 1rem;
  border-radius: 10px;
  color: rgba(255, 255, 255, .9);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 20px;
  transition: background-color .16s ease, color .16s ease, transform .16s ease;
}

.tge-global-sub-links {
  margin: .08rem .25rem .58rem 1.15rem !important;
  padding: .3rem 0 .22rem 1rem !important;
  border-left: 1px solid rgba(201, 186, 255, .48);
}

.tge-global-sub-links a {
  min-height: 0;
  padding: .5rem .7rem;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  line-height: 18px;
}

.tge-global-dropdown-link:hover,
.tge-global-dropdown-link:focus-visible,
.tge-global-sub-links a:hover,
.tge-global-sub-links a:focus-visible {
  background: linear-gradient(90deg, rgba(131, 96, 224, .3), rgba(131, 96, 224, .07));
  color: #fff;
  outline: none;
  transform: translateX(.2rem);
}

.tge-global-header.is-light .tge-global-dropdown,
.tge-global-header.is-scrolled .tge-global-dropdown {
  border-color: rgba(17, 24, 58, .12);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 22px 44px rgba(17, 24, 58, .16), inset 0 1px 0 rgba(255, 255, 255, .95);
}

.tge-global-header.is-light .tge-global-dropdown-link,
.tge-global-header.is-scrolled .tge-global-dropdown-link {
  color: rgba(17, 24, 58, .92);
}

.tge-global-header.is-light .tge-global-sub-links a,
.tge-global-header.is-scrolled .tge-global-sub-links a {
  color: rgba(17, 24, 58, .68);
}

.tge-global-header.is-light .tge-global-sub-links,
.tge-global-header.is-scrolled .tge-global-sub-links {
  border-left-color: rgba(17, 24, 58, .15);
}

.tge-global-header.is-light .tge-global-dropdown > li + li,
.tge-global-header.is-scrolled .tge-global-dropdown > li + li {
  border-top-color: rgba(17, 24, 58, .08);
}

.tge-global-header.is-light :is(.tge-global-dropdown-link, .tge-global-sub-links a):is(:hover, :focus-visible),
.tge-global-header.is-scrolled :is(.tge-global-dropdown-link, .tge-global-sub-links a):is(:hover, :focus-visible) {
  background: linear-gradient(90deg, rgba(115, 82, 205, .14), rgba(115, 82, 205, .04));
  color: #10143d;
}

.tge-global-login,
header [data-customer-login] {
  position: relative;
  display: inline-flex;
  width: auto;
  height: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border-radius: 8px;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 16px;
  text-transform: uppercase;
  white-space: nowrap;
}

.tge-global-mobile-toggle,
.tge-global-mobile-menu {
  display: none;
}

.tge-global-login::before {
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--tge-stroke);
  content: "";
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.tge-global-login:hover::before,
.tge-global-login:focus-visible::before {
  background: currentColor;
}

.tge-global-footer {
  padding: 104px 0 40px;
  background: var(--tge-navy);
  color: #fff;
}

.tge-global-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(4, minmax(0, 1fr));
  gap: 40px;
}

.tge-global-footer-brand img {
  display: block;
  width: 260px;
  height: auto;
}

.tge-global-footer-copy {
  max-width: 280px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .8);
  font-size: 16px;
  line-height: 1.55;
}

.tge-global-footer-kicker,
.tge-global-footer-title {
  margin: 32px 0 0;
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 16px;
  text-transform: uppercase;
}

.tge-global-footer-title {
  margin-top: 0;
}

.tge-global-footer-address,
.tge-global-footer-contact {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .65);
  font-size: 16px;
  font-style: normal;
  line-height: 1.55;
}

.tge-global-footer-links {
  display: grid;
  gap: 16px;
  margin-top: 24px !important;
}

.tge-global-footer a {
  color: inherit;
  text-decoration: none;
}

.tge-global-footer-links a {
  color: rgba(255, 255, 255, .84);
  font-size: 16px;
  line-height: 1.4;
}

.tge-global-footer-links a:hover,
.tge-global-footer-links a:focus-visible {
  color: #fff;
}

.tge-global-linkedin {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  color: rgba(255, 255, 255, .85) !important;
  transition: border-color .16s ease, color .16s ease;
}

.tge-global-linkedin:hover,
.tge-global-linkedin:focus-visible {
  border-color: rgba(255, 255, 255, .6);
  color: #fff !important;
}

.tge-global-linkedin svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.tge-global-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
}

.tge-global-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
}

@media (min-width: 620px) {
  .tge-global-shell { padding-right: 40px; padding-left: 40px; }
}

@media (min-width: 1024px) {
  .tge-global-shell { padding-right: 48px; padding-left: 48px; }
}

@media (max-width: 1023px) {
  :root { --tge-page-hero-title: clamp(44px, 5.8vw, 58px); }
  .tge-global-menu { display: none; }
  .tge-global-login { display: none; }
  .tge-global-mobile-toggle {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 8px;
    background: transparent;
    color: inherit;
  }
  .tge-global-mobile-toggle span { width: 18px; height: 1.5px; background: currentColor; }
  .tge-global-mobile-menu {
    position: absolute;
    top: calc(100% + .45rem);
    right: 1rem;
    left: 1rem;
    z-index: 120;
    max-height: calc(100vh - 6rem);
    overflow: auto;
    padding: .8rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    background: rgba(12, 17, 56, .98);
    box-shadow: 0 18px 36px rgba(5, 8, 32, .28);
  }
  .tge-global-mobile-menu:not([hidden]) { display: block; }
  .tge-global-mobile-group + .tge-global-mobile-group { margin-top: .35rem; padding-top: .35rem; border-top: 1px solid rgba(255, 255, 255, .14); }
  .tge-global-mobile-heading { display: block; padding: .58rem .65rem; color: #fff !important; font-size: 13px; font-weight: 700; letter-spacing: .08em; line-height: 18px; text-transform: uppercase; }
  .tge-global-mobile-menu ul { margin: 0; padding: 0; list-style: none; }
  .tge-global-mobile-menu .tge-global-dropdown-link { padding: .5rem .65rem; }
  .tge-global-mobile-menu .tge-global-sub-links { margin-bottom: .25rem !important; }
  .tge-global-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tge-global-footer-brand { grid-column: span 2; }
}

@media (max-width: 620px) {
  :root { --tge-page-hero-title: clamp(38px, 11vw, 46px); }
  .tge-global-shell { padding-right: 20px; padding-left: 20px; }
  .tge-global-nav { gap: 14px; padding-top: 14px; padding-bottom: 14px; }
  .tge-global-brand img { width: 150px; }
  .tge-global-login { min-height: 40px; padding: 0 14px; font-size: 11px; }
  .tge-global-footer { padding: 72px 0 32px; }
  .tge-global-footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .tge-global-footer-brand { grid-column: auto; }
  .tge-global-footer-bottom { flex-direction: column; align-items: flex-start; margin-top: 48px; }
}
/* Shared footer polish: static and React-rendered variants. */
body footer.tge-global-footer,body footer.bg-navy-deep{background:#090e2d;border-top:1px solid #ffffff16;padding:0}
body footer.tge-global-footer>.tge-global-shell,body footer.bg-navy-deep>div{max-width:1280px;margin:auto;padding:64px 48px 28px}
body .tge-global-footer-grid,body footer.bg-navy-deep>div>div:first-child{display:grid;grid-template-columns:minmax(240px,1.6fr) repeat(4,minmax(0,1fr));gap:36px}
body .tge-global-footer-brand,body footer.bg-navy-deep>div>div:first-child>div:first-child{padding-right:28px;border-right:1px solid #ffffff16}
body .tge-global-footer-brand img,body footer.bg-navy-deep>div>div:first-child>div:first-child>svg{width:200px;max-width:100%;height:auto}
body .tge-global-footer .tge-global-footer-copy,body footer.bg-navy-deep>div>div:first-child>div:first-child>p:first-of-type{margin:20px 0 28px;font-size:14px;line-height:1.65;color:#b7bed1;max-width:260px}
body .tge-global-footer .tge-global-footer-kicker,body .tge-global-footer .tge-global-footer-title,body footer.bg-navy-deep p.uppercase{font-size:11px;line-height:1.5;letter-spacing:.12em;color:#aeb8d0;margin:0 0 18px;font-weight:600}
body .tge-global-footer .tge-global-footer-address,body .tge-global-footer .tge-global-footer-contact,body footer.bg-navy-deep address,body footer.bg-navy-deep address+div{font-size:13px;line-height:1.7;color:#b7bed1;margin:0 0 10px;overflow-wrap:anywhere}
body .tge-global-footer-links{gap:14px;margin-top:0!important}
body .tge-global-footer-links a,body footer.bg-navy-deep>div>div:first-child ul a{font-size:14px;line-height:1.5;color:#e2e6ef}
body footer.bg-navy-deep>div>div:first-child ul{margin-top:0}
body .tge-global-linkedin,body footer.bg-navy-deep a[aria-label="TransGrid Energy on LinkedIn"]{width:34px;height:34px;margin-top:14px}
body .tge-global-footer-bottom,body footer.bg-navy-deep>div>div:last-child{margin-top:40px;padding-top:24px;border-top:1px solid #ffffff20;font-size:12px;color:#aeb8d0}
body footer.bg-navy-deep>div>div:last-child>div{font-size:12px}
body .tge-global-footer-legal{gap:12px 22px}
@media(max-width:1000px){body .tge-global-footer-grid,body footer.bg-navy-deep>div>div:first-child{grid-template-columns:repeat(4,minmax(0,1fr));gap:28px}body .tge-global-footer-brand,body footer.bg-navy-deep>div>div:first-child>div:first-child{grid-column:1/-1;border-right:0;border-bottom:1px solid #ffffff16;padding:0 0 28px}body footer.bg-navy-deep>div>div:first-child>div:last-child{display:contents}}
@media(max-width:600px){body footer.tge-global-footer>.tge-global-shell,body footer.bg-navy-deep>div{padding:44px 24px 24px}body .tge-global-footer-grid,body footer.bg-navy-deep>div>div:first-child{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 24px}body .tge-global-footer-brand img,body footer.bg-navy-deep>div>div:first-child>div:first-child>svg{width:185px}body .tge-global-footer-bottom{gap:18px}}
