/* Architecture and Pillars pages. Everything is scoped under .ds-page. */
html:has(.ds-page), body:has(.ds-page) { overflow-x: clip; }

.ds-page { --ds-h1: 2.5rem; --ds-h2: 1.875rem; --ds-h3: 1.375rem; --ds-text: 1.125rem; padding-bottom: 20px; }
.ds-page h1 { font-size: var(--ds-h1); font-weight: 700; color: var(--secondaryColor); }
.ds-page h2 { font-size: var(--ds-h2); font-weight: 700; color: var(--tertiaryColor); text-align: center; }
.ds-page h3 { font-size: var(--ds-h3); font-weight: 700; color: var(--tertiaryColor); }
.ds-page p { font-size: var(--ds-text) !important; }
.ds-page ul, .ds-page ol { list-style: none; padding: 0; margin: 0; }

.ds-hero { display: grid; grid-template-columns: 5fr 7fr; gap: 50px; align-items: start; margin: 20px 0 50px; }
.ds-hero .ds-tagline { font-size: var(--ds-h3) !important; font-weight: 600; line-height: 1.35; max-width: 24em; }

.ds-icon-title { position: relative; padding-top: 48px; }
.ds-page h2.ds-icon-title, .ds-page h2.ds-icon-title:not(.ds-centered) { color: var(--secondaryColor); text-align: left; }
.ds-page h2.ds-icon-title.ds-centered { text-align: center; }
.ds-icon-title::before, .ds-hero-icon .ds-hero-title::before {
  content: ""; display: block; width: 46px; height: 43px;
  background: url('../images/icons/icon-secondary.svg') center / contain no-repeat;
}
.ds-icon-title::before { position: absolute; top: 0; left: 0; }
.ds-icon-title.ds-centered::before { left: calc(50% - 23px); }
.ds-hero-icon .ds-hero-title h1 { margin-top: 4px; }

/* Full width bands with the two wave shapes of the design */
.ds-wave {
  margin: 0 calc(50% - 50vw);
  padding: var(--wave-space) calc(50vw - 50%) 60px;
  background:
    var(--wave-shape) top center / 100% var(--wave-height) no-repeat,
    linear-gradient(to bottom, transparent calc(var(--wave-height) - 1px), var(--wave-color) calc(var(--wave-height) - 1px), #fff 100%);
}
.ds-wave-roles { --wave-height: max(12.75vw, 90px); --wave-space: max(6.9vw, 80px); --wave-color: #d9d8e2; --wave-shape: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%201568%20200%27%20preserveAspectRatio%3D%27none%27%3E%3ClinearGradient%20id%3D%27g%27%20x1%3D%270%27%20y1%3D%270%27%20x2%3D%270%27%20y2%3D%27200%27%20gradientUnits%3D%27userSpaceOnUse%27%3E%3Cstop%20offset%3D%270%27%20stop-color%3D%27%23c8c6d4%27/%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%23d9d8e2%27/%3E%3C/linearGradient%3E%3Cpath%20fill%3D%27url%28%23g%29%27%20d%3D%27M0%2071C60%2071%20105%2093%20138%20132C165%20165%20200%20183%20250%20183C290%20183%20330%20172%20370%20155C455%20118%20540%2076%20630%2040C710%2013%20780%200%20845%200C895%201%20935%2010%20975%2023C1060%2051%201130%2098%201198%20155C1240%20175%201280%20185%201315%20185C1360%20184%201400%20166%201428%20133C1462%2093%201505%2071%201568%2071V200H0Z%27/%3E%3C/svg%3E"); }
.ds-wave-topics { --wave-height: max(20.9vw, 110px); --wave-space: max(22.5vw, 130px); --wave-color: #d5d3de; --wave-shape: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%201388%20290%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20fill%3D%27%23d5d3de%27%20d%3D%27M0%20280C20%20165%20120%2083%20235%2083C295%2083%20350%20100%20400%20133C455%20168%20525%20187%20600%20187C690%20187%20780%20165%20840%20133C885%20109%20920%2087%20955%2060C1000%2023%201070%201%201150%201C1280%201%201388%2055%201388%20140V290H0Z%27/%3E%3C/svg%3E"); }

.ds-page .ds-lead { max-width: 46em; margin: 0 auto 30px; text-align: center; font-weight: 600; }
.ds-page .ds-section-title { margin: 60px 0 25px; }
.ds-section-title span { color: var(--primaryColor); }

.ds-page .ds-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ds-cards li { background: #fff; border-radius: 4px; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 0 4px rgba(0,0,0,.04); padding: 25px; }
.ds-cards li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ds-cards p, .ds-modules p, .ds-journey p { margin-bottom: 0; }

.ds-page .ds-modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px 25px; }
.ds-modules li { border-top: 7px solid var(--primaryColor); border-radius: 4px 4px 0 0; padding: 18px 6px 0; }

/* Data journey: 1-2-3 left to right, then 6-5-4 on the second row */
.ds-page .ds-journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.ds-journey li { position: relative; border: 1px solid var(--primaryColor); border-radius: 6px; padding: 16px 20px; }
.ds-journey li.is-key { background: #dcf1f2; border-width: 2px; }
.ds-journey li:nth-child(4) { grid-area: 2 / 3; }
.ds-journey li:nth-child(5) { grid-area: 2 / 2; }
.ds-journey li:nth-child(6) { grid-area: 2 / 1; }
.ds-journey li:not(:last-child)::after {
  position: absolute; color: var(--secondaryColor); font-size: 24px; line-height: 34px; width: 34px; text-align: center;
}
.ds-journey li:nth-child(-n+2)::after { content: "\2192" / ""; right: -35px; top: calc(50% - 17px); }
.ds-journey li:nth-child(3)::after { content: "\2193" / ""; left: calc(50% - 17px); bottom: -35px; }
.ds-journey li:nth-child(4)::after, .ds-journey li:nth-child(5)::after { content: "\2190" / ""; left: -35px; top: calc(50% - 17px); }

.ds-topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 80px; margin-bottom: 50px; }
.ds-topics:last-child { margin-bottom: 0; }
.ds-page .ds-wave > .ds-icon-title { margin-bottom: 25px; }

.ds-callout { background: linear-gradient(90deg, var(--secondaryColor), var(--tertiaryColor)); border-radius: 20px; padding: 30px 35px; margin-top: 20px; }
.ds-page .ds-callout h2 { color: #fff; text-align: left; }
.ds-callout h2 span { color: #7fe3e7; }
.ds-page .ds-callout p, .ds-callout p strong { color: #fff; }
.ds-callout p { margin-bottom: 0; }

/* Pillar tabs shown as cards */
.ds-pillars { position: relative; }
.ds-pillars::after {
  content: ""; position: absolute; right: -90px; top: 330px; width: 260px; height: 240px; opacity: .07; pointer-events: none; z-index: -1;
  background: url('../images/icons/icon-secondary.svg') center / contain no-repeat;
}
.ds-page .ds-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
.ds-tabs li { display: flex; }
.ds-tabs .nav-link {
  display: flex; flex-direction: column; width: 100%; text-align: left; background: #fff; color: var(--tertiaryColor);
  border: 1px solid var(--primaryColor); border-top-width: 20px; border-radius: 12px; padding: 14px 18px 18px;
}
.ds-tab-number { font-size: var(--ds-h3); font-weight: 700; color: var(--secondaryColor); }
.ds-tab-text { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.ds-tabs .nav-link:hover { background: #eef9f9; }
.ds-tabs .nav-link.active { background: linear-gradient(180deg, var(--secondaryColor), var(--tertiaryColor)); color: #fff; }
.ds-tabs .nav-link.active .ds-tab-number { color: #fff; }
.ds-tabs .nav-link:focus-visible { outline: 3px solid var(--tertiaryColor); outline-offset: 3px; }
.ds-page .ds-lead-wide { max-width: 60em; }

@media (max-width: 991px) {
  .ds-hero, .ds-topics { grid-template-columns: 1fr; gap: 15px; }
  .ds-page .ds-tabs { grid-template-columns: repeat(2, 1fr); }
  .ds-page .ds-modules { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .ds-page { --ds-h1: 1.875rem; --ds-h2: 1.5rem; --ds-h3: 1.25rem; --ds-text: 1.0625rem; }
  .ds-page .ds-cards, .ds-page .ds-modules, .ds-page .ds-journey { grid-template-columns: 1fr; }
  .ds-journey li:nth-child(n) { grid-area: auto; }
  .ds-journey li:nth-child(n):not(:last-child)::after { content: "\2193" / ""; left: calc(50% - 17px); right: auto; top: auto; bottom: -35px; }
}

@media (max-width: 440px) {
  .ds-page .ds-tabs { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ds-page .fade, .ds-tabs .nav-link { transition: none; }
}

/* Laboratory page */
.ds-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ds-page .ds-center { text-align: center; margin: 30px 0 0; }
.ds-page .ds-cards.ds-cards-3 { grid-template-columns: repeat(3, 1fr); }
.ds-cards-3 li:last-child:nth-child(odd) { grid-column: auto; }
.ds-card-icon { display: block; width: 64px; height: 64px; margin-bottom: 14px; }
.ds-tech { margin: 40px 0 0; }
.ds-tech p:first-of-type { margin-top: 8px; }
.ds-program { scroll-margin-top: 90px; }
.ds-program:focus { outline: none; }
.ds-program-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.ds-program-box { border: 1px solid var(--primaryColor); border-radius: 6px; padding: 22px 26px; }
.ds-program-box h3 { margin-bottom: 14px; }
.ds-page .ds-checks li, .ds-page .ds-steps li { position: relative; padding-left: 40px; margin-bottom: 14px; font-size: var(--ds-text); }
.ds-checks li::before { content: "\2713" / ""; position: absolute; left: 0; top: 0; color: var(--primaryColor); font-weight: 700; font-size: 1.25rem; line-height: 1.4; }
.ds-page .ds-steps { counter-reset: step; }
.ds-steps li { counter-increment: step; }
.ds-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--secondaryColor); color: #fff; font-weight: 700; text-align: center; line-height: 28px; }
.ds-where { display: grid; grid-template-columns: 4fr 8fr; gap: 0; align-items: stretch; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 15px -3px rgba(0,0,0,.12), 0 0 4px rgba(0,0,0,.05); }
.ds-address { margin: 0; font-style: normal; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 34px 32px; background: linear-gradient(160deg, var(--secondaryColor), var(--tertiaryColor)); color: #fff; }
.ds-page .ds-address p, .ds-address a, .ds-address strong { color: #fff; margin: 0; }
.ds-address a { text-decoration: underline; text-underline-offset: 3px; }
.ds-address a:hover { text-decoration-thickness: 2px; }
.ds-address a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ds-where-line { display: flex; gap: 14px; align-items: flex-start; line-height: 1.45; }
.ds-where-icon { flex: none; width: 24px; height: 24px; margin-top: 3px; color: #7fe3e7; }
.ds-map { position: relative; overflow: hidden; min-height: 380px; background: #dfe9ea; }
.ds-map-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ds-map-pin { position: absolute; z-index: 2; left: 50%; top: 50%; width: 54px; height: 54px; margin: -62px 0 0 -27px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--secondaryColor); border: 3px solid #fff; box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.ds-map-pin::after { content: ""; position: absolute; inset: 9px; transform: rotate(45deg); background: url('../images/icons/icon-primary.svg') center / contain no-repeat; filter: brightness(0) invert(1); }
.ds-map-credit { position: absolute; z-index: 2; right: 10px; bottom: 10px; background: rgba(255,255,255,.92); border-radius: 20px; padding: 4px 12px; font-size: .8125rem; color: var(--tertiaryColor); text-decoration: none; }
.ds-map-credit:hover { text-decoration: underline; }
@media (max-width: 991px) {
  .ds-page .ds-cards.ds-cards-3 { grid-template-columns: 1fr; }
  .ds-program-cols, .ds-where { grid-template-columns: 1fr; }
  .ds-map { min-height: 320px; }
}

.ds-map-route { position: absolute; z-index: 2; left: 16px; bottom: 16px; }

.ds-page .ds-eyebrow { margin: 0 0 10px; font-size: .9375rem !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--secondaryColor); }
.ds-lab .ds-hero { align-items: center; }
@media (max-width: 991px) { .ds-lab .ds-hero { align-items: start; } }
