/* A compact catalogue above the homepage hero. Other routes retain their own header. */
.home-head {
  --nav-blue:#155fba;
  --nav-pale:#f1f6ff;
  --nav-line:#e7e9ed;
  border-bottom-color:#e7e7e7;
}
.home-head .head-in { width:min(1160px,calc(100% - 96px)); height:113.5px; }
.home-head .brand img { width:215px; }
.home-head .brand { transform:translateY(5px); }
.home-head .mobile-service-contact { display:none; }
.home-head .top-link {
  min-height:36px; padding:6px 0; color:#171a20; font-weight:500; line-height:24px;
}
.home-head .top-link:hover,.home-head .top-link:focus-visible,
.home-head .top-link[aria-current="page"],.home-head .services-control[aria-expanded="true"] { color:var(--nav-blue); }
.home-head .top-link[aria-current="page"] { font-weight:600; }
.home-head .top-link::after { bottom:0; }
.home-head .services-control { min-height:63.5px; gap:9px; padding-right:8px; }
.home-head .new-badge {
  position:absolute; left:49px; bottom:calc(50% + 5px); background:#3276cd;
  font-size:11px; font-weight:600; pointer-events:none;
}
.home-head .services-caret { margin:0; color:var(--nav-blue); }
.home-head .head-cta { width:157px; min-height:51px; padding:12px 22px; gap:7px; font-size:15px; font-weight:600; }
.home-head .head-cta::after { content:""; width:10px; height:10px; background:currentColor; clip-path:polygon(12% 0,100% 0,100% 88%,82% 88%,82% 30%,13% 100%,0 87%,69% 18%,12% 18%); }
.home-head .discipline-tab { font-size:15px; font-weight:600; line-height:1.5; transition:background-color .2s ease,color .2s ease; }
.home-head .discipline-tab .menu-icon { width:14px; height:14px; transform:none; }
.home-head .discipline-tab:hover .menu-icon { transform:none; }
.home-head .discipline-grid { column-gap:28px; }
.home-head .discipline-column { padding-inline-end:0; }
.home-head .discipline-column h3 { font-size:13px; line-height:24px; letter-spacing:0; }
.home-head .discipline-column li { margin:0 0 6px; line-height:24px; }
.home-head .discipline-column li a { display:inline; padding:0; color:#30353b; font-size:13px; line-height:1.5; }
.home-head .discipline-column li a:is(:hover,:focus-visible) { color:var(--nav-blue); }
/* Immediately replace catalogue contents when a different tab is selected. */
.home-head .discipline-panel { opacity:1!important; transform:none!important; }
.home-head .flyout-body { height:auto!important; }

@media (min-width:992px) {
  .home-head .head-in { display:grid; grid-template-columns:29.1% 1fr auto; gap:0; }
  .home-head .top-links { gap:clamp(22px,2.6vw,38px); }
  .home-head .head-actions { margin-right:30px; }
  .home-head .service-flyout {
    left:max(16px,calc(50% - 652px)); top:calc(100% + 3.5px);
    width:min(1246px,calc(100% - 32px)); padding:20px 18px 10px;
    border-top-width:3px; border-radius:14px; box-shadow:0 12px 30px #14213015;
    transform:translateY(10px); transition:transform .18s ease,opacity .18s ease;
  }
  .home-head .service-flyout.is-open { transform:translateY(0); }
  .home-head .flyout-tabs { justify-content:space-between; padding:0 clamp(12px,3vw,42px) 10px; }
  .home-head .discipline-tab { min-height:42.5px; padding:10px 16px; }
  .home-head .discipline-panel { padding:0; }
  .home-head .flyout-body {
    margin-top:27px;
    max-height:min(var(--panel-space,314px),calc(100dvh - 242px));
    scrollbar-color:#bac9d7 transparent; scrollbar-width:thin;
  }
  .home-head .flyout-body:has(#nav-panel-engineering:not([hidden])) { --panel-space:242px; }
  .home-head .flyout-body:has(#nav-panel-search:not([hidden])) { --panel-space:344px; }
  .home-head .flyout-body:has(#nav-panel-design:not([hidden])) { --panel-space:278px; }
  .home-head .flyout-body:has(#nav-panel-automation:not([hidden])) { --panel-space:212px; }
}
@media (min-width:992px) and (max-width:1199px) {
  .home-head .head-in { grid-template-columns:26% 1fr auto; }
  .home-head .brand img { width:185px; }
  .home-head .head-actions { margin:0; }
  .home-head .discipline-grid { column-gap:18px; }
}
@media (max-width:991px) {
  .home-head .head-in { width:100%; height:109px; padding:0 4px 0 16px; }
  .home-head .brand img { width:min(216px,60vw); }
  .home-head .menu-toggle { width:46px; height:46px; gap:4px; }
  .home-head .menu-toggle span { width:22px; transition:transform .3s ease,opacity .3s ease; }
  .home-head .menu-toggle[aria-expanded="true"] span:first-child { transform:translateY(6px) rotate(45deg); }
  .home-head .menu-toggle[aria-expanded="true"] span:last-child { transform:translateY(-6px) rotate(-45deg); }
  .home-head .head-cta { display:none; }
  .home-head .site-navigation {
    left:32px; right:32px; padding:10px 16px 16px; max-height:calc(100dvh - 109px);
    border:0; border-bottom:1px solid var(--nav-line); box-shadow:0 9px 18px #1421300b;
  }
  .home-head .top-links { display:flex; flex-direction:column; align-items:stretch; gap:28px; }
  .home-head .top-link { align-self:flex-start; border:0; }
  .home-head .top-link::after { display:block; }
  .home-head .services-control { width:max-content; }
  .home-head .mobile-service-contact { display:inline-flex; color:var(--nav-blue); font-weight:650; }
  .home-head .service-flyout {
    width:100%; padding:12px 16px; max-height:65dvh; overflow-y:auto;
    overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#bac9d7 transparent;
    transition:none;
  }
  .home-head .flyout-tabs { gap:0 4px; padding:0 0 10px; }
  .home-head .discipline-tab { min-height:35.5px; padding:8px 14px; gap:9px; font-size:13px; line-height:19.5px; }
  .home-head .discipline-tab .menu-icon { width:16px; }
  .home-head .discipline-tab:nth-last-child(-n+2) { padding-inline:7px; }
  .home-head .flyout-body { margin-top:12px; max-height:none; overflow:visible; }
  .home-head .discipline-panel { padding:0; }
  .home-head .discipline-grid { grid-template-columns:minmax(0,1fr); gap:14px; }
  .home-head .discipline-column,.home-head .discipline-column.extra-column { padding:6px 0; }
  .home-head .discipline-column li a { display:inline-flex; align-items:center; min-height:24px; vertical-align:top; }
}
@media (max-width:359px) {
  .home-head .site-navigation { left:14px; right:14px; }
}
@media (prefers-reduced-motion:reduce) {
  .home-head *, .home-head *::before, .home-head *::after { animation:none!important; transition:none!important; }
}
