.ap { --accent:#ae163d; width:min(1100px, calc(100% - 48px)); margin:48px auto; color:#222; font:16px/1.75 system-ui,sans-serif; box-sizing:border-box; }
.ap * { box-sizing:border-box; }
.ap.ap-inset { width:100%; }
.ap h1,.ap h2,.ap h3 { color:#222; font-weight:750; line-height:1.4; margin:0 0 .55em; }
.ap h1,.ap h2 { font-size:clamp(24px,3.2vw,38px); }
.ap h3 { font-size:20px; }
.ap p { margin:0 0 .8em; }
.ap .ap-note { font-size:14px; color:#525252; }
.ap .ap-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr)); gap:20px; }
.ap .ap-card { display:block; padding:20px; border:1px solid #ded9db; border-radius:8px; background:#fff; overflow:hidden; }
.ap .ap-card > :last-child { margin-bottom:0; }
.ap .ap-feature { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:28px; padding:clamp(18px,4vw,42px); background:#f9f1f3; border-top:3px solid var(--accent); }
.ap .ap-media { display:grid; place-items:center; min-height:96px; aspect-ratio:16/9; padding:14px; margin:0 0 14px; border-radius:5px; background:#dedfe2; color:#333; text-align:center; font-size:14px; font-weight:650; }
.ap .ap-feature .ap-media { margin:0; }
.ap .ap-link { display:inline-flex; align-items:center; min-height:44px; padding:8px 16px; margin:4px 8px 4px 0; border:1px solid var(--accent); border-radius:4px; color:var(--accent); background:#fff; font-weight:700; text-decoration:none; }
.ap .ap-link-primary { background:var(--accent); color:#fff; }
.ap a:focus-visible,.ap summary:focus-visible { outline:3px solid #274882; outline-offset:3px; }
.ap .ap-section { margin-block:36px; }
.ap .ap-metric { display:block; font-size:23px; font-weight:750; margin-top:6px; color:#525252; }
.ap details summary { cursor:pointer; color:var(--accent); font-weight:700; }
.ap label { display:block; margin-block:8px; }
.ap input,.ap textarea { display:block; width:100%; padding:8px; border:1px solid #999; border-radius:4px; font:inherit; }
.ap [id] { scroll-margin-top:100px; }
@media(max-width:680px) { .ap { width:calc(100% - 32px); margin:32px auto; } .ap .ap-feature { grid-template-columns:1fr; gap:16px; } }
.ap-recruit-extras { display:flow-root; }

/* Keep the Work submenu available when opened by click or keyboard. */
.proposal-work-menu > [role="button"]:focus-visible { outline:2px solid currentColor; outline-offset:-3px; }
@media (min-width:768px) {
  .header__nav > ul > .proposal-work-menu.is-open > ul { display:block; opacity:1; }
}

a[aria-disabled="true"] { cursor:default; }

.header__nav > ul > .entry-menu > .entry-submenu {
  left:auto;
  right:0;
  padding:0;
}
.header__nav > ul > .entry-menu > .entry-submenu a {
  border-radius:0;
  background:#1a1a2c;
  color:#fff;
  white-space:nowrap;
}
.header__nav > ul > .entry-menu > .entry-submenu a:hover,
.header__nav > ul > .entry-menu > .entry-submenu a:focus-visible { background:#36365c; }
@media (min-width:768px) {
  .header__nav > ul > .entry-menu:focus-within > .entry-submenu { display:block; opacity:1; }
}
@media (max-width:767px) {
  .header__nav > ul > .entry-menu > .entry-submenu,
  .header__nav > ul > .entry-menu:hover > .entry-submenu { display:block; }
}
.entry-forms { display:grid; gap:12px; }
.entry-preview-form { margin-top:16px; }
.entry-preview-form .contact__form { width:100%; }
.entry-preview-form input[type="radio"] { display:inline-block; width:auto; }
@media (max-width:767px) {
  .header__nav > ul > .entry-menu > .entry-submenu a { padding:12px 20px !important; }
}

.ap .ap-training-stages { display:grid; gap:8px; padding:24px; background:#fff; border-left:4px solid var(--accent); }
.ap .ap-training-stages strong { font-size:clamp(20px,3vw,30px); color:var(--accent); }
.ap .ap-timeline { display:grid; gap:16px; padding:0; margin:0; list-style:none; }
.ap .ap-timeline > li { list-style:none; border-left:4px solid var(--accent); }
.ap .ap-period { display:block; color:var(--accent); font-weight:750; margin-bottom:6px; }
.ap .ap-timeline dl { display:grid; grid-template-columns:auto minmax(0,1fr); gap:12px 18px; margin:12px 0 0; }
.ap .ap-timeline dt { font-weight:750; }
.ap .ap-timeline dd { margin:0; }
.ap .ap-org-root { padding:14px; background:#f9f1f3; border-top:3px solid var(--accent); }
.ap .ap-org-branches { display:grid; gap:24px; margin-left:14px; border-left:2px solid #ded9db; padding:12px 0 0 16px; }
.ap .ap-org h4 { font-size:17px; line-height:1.5; font-weight:750; margin:0 0 8px; }
.ap .ap-org .ap-reset-list { margin:0; padding:0; list-style:none; }
.ap .ap-org .ap-reset-list > li { list-style:none; margin:0; }
.ap .ap-org .ap-org-sub { margin:0; padding-left:20px; }
.ap .ap-video { display:block; background:#171717; width:100%; height:auto; aspect-ratio:16/9; border:0; }
.ap.ap-company-links { margin-top:-24px; }
#organization, #materials-division { scroll-margin-top:100px; }
@media(max-width:480px) {
  .ap .ap-timeline dl { grid-template-columns:1fr; row-gap:4px; }
  .ap .ap-timeline dd + dt { margin-top:8px; }
}

/* Keep the corporate header in the page flow on interior pages. */
body:has(> #main-wrap.no-header) > #header_container.pos_fixed {
  position: sticky;
}
body > #main-wrap.no-header {
  margin-top: 0;
  padding-top: 24px;
}

/* Reserve space for the theme’s absolute navigation row at tablet widths. */
@media (768px <= width <= 1179px) {
  body > #main-wrap.no-header {
    padding-top: 98px;
  }
}

.ap-project-slideshow {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #151a21;
}
.header-banner-inner .ap-project-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  opacity: 0;
  transition: opacity 850ms ease-in-out;
}
.header-banner-inner .ap-project-slideshow img.is-current {
  opacity: 1;
}
.ap-project-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 24%);
  pointer-events: none;
}
.ap .ap-project-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  background: #f3f4f5;
}
#project-photos .ap-project-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}
#project-photos .ap-card details + details { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) {
  .header-banner-inner .ap-project-slideshow img { transition: none; }
}

/* Corporate home sections */
.ap.ap-home-projects {
  width: 100%;
  padding: clamp(24px, 5vw, 70px) max(16px, calc((100% - 1160px) / 2));
  background: #f3f4f5;
}
.ap.ap-home-section, .ap.ap-home-tiles-info { width: min(1160px, calc(100% - 32px)); }
.ap-home-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #aaa;
  padding-bottom: 14px;
  margin-bottom: clamp(22px, 4vw, 48px);
}
.ap .ap-home-heading h2 { margin: 0; }
.ap-home-heading > span { font-size: clamp(11px, 1.7vw, 16px); font-weight: 750; }
.ap-carousel { position: relative; }
.ap-carousel-stage {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, .7fr);
  align-items: center;
  gap: clamp(8px, 1.5vw, 20px);
}
.ap-carousel-slide { grid-row: 1; min-width: 0; color: #333; font-weight: 700; }
.ap-carousel-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #e6e9ec;
  border-radius: 6px;
}
.ap-carousel-slide > span { display: block; margin-top: 8px; overflow-wrap: anywhere; }
.ap-carousel-slide > span > span { color: var(--accent); }
.ap-carousel-slide[data-distance="-2"] { grid-column: 1; }
.ap-carousel-slide[data-distance="-1"] { grid-column: 2; }
.ap-carousel-slide[data-distance="0"] { grid-column: 3; }
.ap-carousel-slide[data-distance="1"] { grid-column: 4; }
.ap-carousel-slide[data-distance="2"] { grid-column: 5; }
.ap-carousel-slide:not([data-distance="0"]) { opacity: .72; font-size: 14px; }
.ap-carousel-slide:not([data-distance="0"]):hover { opacity: 1; }
.ap-carousel-slide[hidden] { display: none; }
#home-project-title { scroll-margin-top: 175px; }
.ap-carousel-prev, .ap-carousel-next {
  position: absolute;
  top: 42%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #aaa;
  border-radius: 50%;
  background: white;
  color: #262626;
  cursor: pointer;
  font-size: 23px;
}
.ap-carousel-prev { left: 0; }
.ap-carousel-next { right: 0; }
.ap-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 16px;
}
.ap-carousel-dots button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.ap-carousel-dots button::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #757575;
}
.ap-carousel-dots button[aria-current="true"]::after { background: var(--accent); transform: scale(1.4); }
.ap-home-more { display: flex; justify-content: flex-end; margin-top: 18px; }
.ap-home-tiles { display: grid; gap: clamp(12px, 2.2vw, 28px); }
.ap-home-tiles-tech { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ap-home-tiles-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ap-home-tile {
  display: grid;
  position: relative;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  border-radius: 6px;
  background: #272c34;
  aspect-ratio: 16 / 10;
  padding: clamp(14px, 3vw, 34px);
  color: #fff;
  text-decoration: none;
  font-size: clamp(19px, 2.3vw, 30px);
  font-weight: 750;
}
.ap-home-tile img, .ap-home-tile::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.ap-home-tile img { object-fit: cover; z-index: -2; }
.ap-home-tile::after { content: ''; background: linear-gradient(90deg, rgb(0 0 0 / 82%), rgb(0 0 0 / 28%)); z-index: -1; }
.ap-home-tile:hover, .ap-home-tile:focus-visible { color: #fff; text-decoration: underline; }
.ap-home-tile small { display: block; font-size: .5em; letter-spacing: .06em; }
.ap-home-tiles-info .ap-home-tile:nth-child(-n+2) { aspect-ratio: 2.6; }
[id^="project-"] { scroll-margin-top: 175px; }

@media (max-width: 720px) {
  .ap-carousel-stage { grid-template-columns: minmax(0, .65fr) minmax(0, 1.7fr) minmax(0, .65fr); }
  .ap-carousel-slide[data-distance="-2"], .ap-carousel-slide[data-distance="2"] { display: none; }
  .ap-carousel-slide[data-distance="-1"] { grid-column: 1; }
  .ap-carousel-slide[data-distance="0"] { grid-column: 2; }
  .ap-carousel-slide[data-distance="1"] { grid-column: 3; }
  .ap-home-tiles-tech { grid-template-columns: 1fr; }
  .ap-home-tiles-tech .ap-home-tile { aspect-ratio: 2.6; }
  .ap-home-tiles-info .ap-home-tile:nth-child(-n+2) { aspect-ratio: 16 / 10; }
}

#ft-widget-content.ap-home-footer-widgets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
#ft-widget-content.ap-home-footer-widgets .ft-widget-area {
  width: 100%;
  min-width: 0;
}
.ap-home-footer-widgets #footer_menu_ul { grid-column: 1 / -1; }

.ap.ap-org-diagram { width: min(940px, 100%); margin: 0 auto 32px; }
.ap-org-diagram-layout {
  --branch-gap: clamp(18px, 5vw, 64px);
  --group-gap: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.75fr);
  align-items: start;
  column-gap: var(--branch-gap);
  margin-top: 30px;
}
.ap-org-diagram .ap-org-diagram-root {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 48px;
  margin: 0;
  padding: 6px 10px;
  background: #e8e8e8;
  text-align: center;
  line-height: 1.4;
}
.ap-org-diagram-root::after,
.ap-org-diagram-branches > section::before {
  content: "";
  position: absolute;
  top: 24px;
  width: calc(var(--branch-gap) / 2);
  border-top: 1px solid #858585;
}
.ap-org-diagram-root::after { left: 100%; }
.ap-org-diagram-branches {
  display: grid;
  gap: var(--group-gap);
}
.ap-org-diagram-branches > section { position: relative; min-width: 0; }
.ap-org-diagram-branches > section::before { right: 100%; }
.ap-org-diagram-branches > section:first-child::after {
  content: "";
  position: absolute;
  top: 24px;
  bottom: calc(-1 * (var(--group-gap) + 24px));
  right: calc(100% + var(--branch-gap) / 2);
  border-left: 1px solid #858585;
}
.ap-org-diagram-branches > section > h3 {
  margin: 0;
  padding: 12px;
  background: #e8e8e8;
  text-align: center;
  font-size: 17px;
  line-height: 24px;
}
:is(.entry .ap-org-diagram, .ap-org-diagram.recruit-org) .ap-org-tree {
  margin: 0 0 0 14px;
  padding: 0;
  list-style: none;
}
:is(.entry .ap-org-diagram, .ap-org-diagram.recruit-org) .ap-org-tree > li {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 12px 0 4px 17px;
}
:is(.entry .ap-org-diagram, .ap-org-diagram.recruit-org) .ap-org-tree > li::before,
:is(.entry .ap-org-diagram, .ap-org-diagram.recruit-org) .ap-org-tree > li::after {
  content: "";
  position: absolute;
  left: 0;
  width: 0;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
}
:is(.entry .ap-org-diagram, .ap-org-diagram.recruit-org) .ap-org-tree > li::before {
  top: 0;
  bottom: 0;
  border-left: 1px solid #858585;
}
:is(.entry .ap-org-diagram, .ap-org-diagram.recruit-org) .ap-org-tree > li::after {
  top: 29px;
  width: 17px;
  border-top: 1px solid #858585;
}
:is(.entry .ap-org-diagram, .ap-org-diagram.recruit-org) .ap-org-tree > li:last-child::before {
  bottom: auto;
  height: 29px;
}
.ap .ap-org-node {
  display: block;
  margin: 0 0 4px;
  padding: 6px 10px;
  background: #f0f0f0;
  font-size: 16px;
  line-height: 22px;
}
.ap .ap-org-parent, .ap .ap-org-parent h4, .ap .ap-org-parent p { margin: 0; }
.ap .ap-org-parent h4 { font-size: inherit; line-height: inherit; }
.ap-org-tree p { font-size: 14px; }
@media (max-width: 620px) {
  .ap-org-diagram-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); }
  .ap-org-diagram .ap-org-diagram-root { font-size: 13px; padding-inline: 4px; }
}

.department-page.wrap__bg { background:#fff; }
.ap.recruit-org { margin-top:36px; color:#222; }
.ap.recruit-org .ap-org-diagram-root { background:#272635; color:#fff; }
.recruit-org .ap-org-diagram-branches > section > h3 { background:#f3e6eb; color:#62203a; }
.recruit-org .ap-org-diagram-root::after,
.recruit-org .ap-org-diagram-branches > section::before,
.recruit-org .ap-org-diagram-branches > section::after,
:is(.ap-org-diagram.recruit-org) .ap-org-tree > li::before,
:is(.ap-org-diagram.recruit-org) .ap-org-tree > li::after { border-color:#716575; }
.ap.recruit-org .department-detail summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:44px;
  margin:0;
  border:1px solid #d8ced5;
  background:#f7f4f6;
  color:#222;
  overflow-wrap:anywhere;
}
.department-detail summary::-webkit-details-marker { display:none; }
.department-detail summary::after { content:"+"; color:#852443; font-size:20px; }
.department-detail[open] summary::after { content:"−"; }
.ap.recruit-org .department-detail summary:hover,
.ap.recruit-org .department-detail[open] summary { background:#f3e6eb; color:#62203a; }
.department-detail-body { border:1px solid #d8ced5; border-top:0; padding:14px; background:#fff; }
.department-detail-body > :last-child { margin-bottom:0; }
:is(.ap-org-diagram.recruit-org) .ap-org-tree > li::after { top:34px; }
:is(.ap-org-diagram.recruit-org) .ap-org-tree > li:last-child::before { height:34px; }

.ap-carousel-stage { overflow:clip; overflow-clip-margin:4px; }
