/*
 * Stage 03 shared visual standards and interaction contract.
 *
 * This layer is loaded after the frozen V1.4 alignment and homepage golden
 * layers. It propagates only proven shared roles and uses stable component or
 * module selectors; page content and data remain owned by WordPress.
 */

:root {
  --dpp-shared-page: min(1280px, calc(100vw - 96px));
  --dpp-shared-gutter: 48px;
  --dpp-shared-section-block: 128px;
  --dpp-shared-heading-size: clamp(39px, 4.2vw, 60.48px);
  --dpp-shared-heading-line: 1.15;
  --dpp-shared-heading-tracking: -0.045em;
  --dpp-shared-card-radius: 0;
  --dpp-shared-shadow-hover: 0 22px 60px rgb(0 0 0 / 10%);
  --dpp-motion-fast: 0.3s;
  --dpp-motion-image: 0.5s;
  --dpp-motion-ease: ease;
}

body,
button,
input,
select,
textarea {
  font-family: var(--dpp-font-body);
  font-synthesis: none;
}

body {
  overflow-x: clip;
  overflow-y: visible;
}

.dpp-container {
  width: var(--dpp-shared-page);
}

/* Shared eyebrow, section heading and copy roles. */
.dpp-section > .dpp-container > .dpp-eyebrow,
.dpp-news > .dpp-container > .dpp-eyebrow {
  color: var(--dpp-ink);
}

.dpp-section > .dpp-container > .dpp-eyebrow::before,
.dpp-news > .dpp-container > .dpp-eyebrow::before {
  background: var(--dpp-orange);
  display: block;
}

.dpp-section > .dpp-container > h2,
.dpp-news > .dpp-container > .dpp-news__title {
  color: var(--dpp-ink);
  font-size: var(--dpp-shared-heading-size);
  font-weight: 500;
  letter-spacing: var(--dpp-shared-heading-tracking);
  line-height: var(--dpp-shared-heading-line);
  margin: 0 0 62px;
  max-width: 1040px;
}

.dpp-section > .dpp-container > h2:has(+ .dpp-collection__subtitle),
.dpp-news > .dpp-container > .dpp-news__title:has(+ .dpp-news__subtitle) {
  margin-bottom: 18px;
}

.dpp-section > .dpp-container > .dpp-collection__subtitle,
.dpp-news > .dpp-container > .dpp-news__subtitle {
  color: var(--dpp-muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  margin: 0 0 62px;
  max-width: 760px;
}

.dpp-rich-text,
.dpp-collection__body .dpp-rich-text,
.dpp-article__body {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.9;
}

.dpp-rich-text p,
.dpp-rich-text ul,
.dpp-rich-text ol {
  margin-block: 0 1em;
}

.dpp-rich-text li + li {
  margin-top: 0.45em;
}

/* Dark and orange shared variants. */
[data-dpp-module="home.partner-band"] .dpp-partner-intro > .dpp-eyebrow,
.dpp-hero:not([data-dpp-module="home.hero"]) .dpp-eyebrow {
  color: var(--dpp-white);
}

[data-dpp-module="home.partner-band"] .dpp-partner-intro > .dpp-eyebrow::before,
.dpp-hero:not([data-dpp-module="home.hero"]) .dpp-eyebrow::before {
  background: var(--dpp-orange);
}

[data-dpp-module="shared.contact-band"] > .dpp-container > .dpp-eyebrow,
[data-dpp-module="shared.contact-band"] > .dpp-container > h2,
[data-dpp-module="shared.contact-band"] > .dpp-container > .dpp-collection__subtitle {
  color: var(--dpp-white);
}

[data-dpp-module="shared.contact-band"] > .dpp-container > .dpp-eyebrow::before {
  background: var(--dpp-white);
}

/* Existing Banner elements share one type and spacing system. */
.dpp-hero:not([data-dpp-module="home.hero"]) .dpp-hero__content {
  padding-block: 100px;
}

.dpp-hero:not([data-dpp-module="home.hero"]) .dpp-hero__content > .dpp-eyebrow {
  margin-bottom: 25px;
}

.dpp-hero:not([data-dpp-module="home.hero"]) .dpp-hero__content > h1 {
  font-size: clamp(60px, 6.2vw, 89.28px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin: 0 0 24px;
  max-width: 820px;
}

.dpp-hero:not([data-dpp-module="home.hero"]) .dpp-hero__subtitle {
  font-size: 21px;
  font-weight: 400;
  line-height: 1.65;
  margin: 0 0 16px;
  max-width: 680px;
}

.dpp-hero:not([data-dpp-module="home.hero"]) .dpp-rich-text {
  font-size: 14px;
  line-height: 1.9;
  margin: 0 0 29px;
  max-width: 620px;
}

.dpp-hero:not([data-dpp-module="home.hero"]) .dpp-hero__subtitle + .dpp-button,
.dpp-hero:not([data-dpp-module="home.hero"]) h1 + .dpp-button {
  margin-top: 13px;
}

/* Shared button/card foundations retain component-specific compositions. */
.dpp-button {
  border-radius: 0;
  font-family: var(--dpp-font-display);
}

.dpp-button:focus-visible,
.dpp-news-card a:focus-visible,
.dpp-series-card a:focus-visible,
.dpp-editorial-card a:focus-visible {
  outline: var(--dpp-focus);
  outline-offset: 4px;
}

.dpp-collection__item,
.dpp-series-card,
.dpp-news-card,
.dpp-media,
.dpp-news-card__image {
  border-radius: var(--dpp-shared-card-radius);
  overflow: hidden;
}

.dpp-media__image,
.dpp-news-card__media {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* Managed secondary navigation. */
.dpp-site-header {
  position: sticky;
  top: -28px;
  z-index: 100;
}

.dpp-subnav {
  -webkit-overflow-scrolling: touch;
  backdrop-filter: blur(16px);
  background: rgb(255 255 255 / 95%);
  height: 50px;
  min-height: 50px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  position: sticky;
  scrollbar-width: thin;
  top: 78px;
  z-index: 90;
}

.dpp-subnav ul {
  gap: 28px;
  height: 49px;
  min-height: 49px;
}

.dpp-subnav li {
  align-self: stretch;
  display: flex;
  flex: 0 0 auto;
  position: relative;
}

.dpp-subnav a,
.dpp-subnav button {
  color: #777;
  font-family: var(--dpp-font-display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 16.5px;
  position: relative;
}

.dpp-subnav a::after {
  background: var(--dpp-orange);
  bottom: 0;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dpp-motion-fast) var(--dpp-motion-ease);
  width: 100%;
}

.dpp-subnav a[aria-current],
.dpp-subnav .dpp-subnav__current {
  color: var(--dpp-ink);
  font-weight: 700;
}

.dpp-subnav a[aria-current]::after,
.dpp-subnav .dpp-subnav__current::after {
  transform: scaleX(1);
}

.dpp-subnav a:focus-visible,
.dpp-subnav button:focus-visible {
  outline: var(--dpp-focus);
  outline-offset: -4px;
}

.dpp-page--news .dpp-subnav {
  height: 84px;
  min-height: 84px;
  position: relative;
  top: auto;
}

.dpp-page--news .dpp-subnav ul,
.dpp-page--news .dpp-subnav a {
  height: 83px;
  min-height: 83px;
}

/* One dynamic news aggregation and card presentation. */
.dpp-news__grid {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.dpp-news-card {
  background: #f2f2ef;
  border: 0;
  min-height: 455px;
  transform: translateY(0);
  transition: transform var(--dpp-motion-fast) var(--dpp-motion-ease);
}

.dpp-news-card > a {
  color: var(--dpp-ink);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: inherit;
  text-decoration: none;
}

.dpp-news-card__image {
  flex: 0 0 205px;
  height: 205px;
  min-height: 205px;
  position: relative;
}

.dpp-news-card__image.dpp-media--empty {
  background: linear-gradient(135deg, var(--dpp-warm), #e7e6df);
}

.dpp-news-card__media {
  display: block;
  transition: none;
}

.dpp-news-card__sequence {
  align-items: center;
  background: var(--dpp-orange);
  color: var(--dpp-ink);
  display: flex;
  font-size: 10px;
  font-weight: 700;
  height: 28px;
  justify-content: center;
  left: 16px;
  letter-spacing: 0.1em;
  position: absolute;
  top: 16px;
  width: 38px;
  z-index: 2;
}

.dpp-news-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 25px;
}

.dpp-news-card__body small {
  color: var(--dpp-orange-deep);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 13.5px;
  margin-bottom: 14px;
}

.dpp-news-card__body h2,
.dpp-news-card__body h3 {
  display: -webkit-box;
  font-size: 23px;
  font-weight: 500;
  -webkit-line-clamp: 2;
  line-height: 1.35;
  margin: 0 0 14px;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.dpp-news-card__body > p {
  color: var(--dpp-muted);
  display: -webkit-box;
  font-size: 12px;
  font-weight: 300;
  -webkit-line-clamp: 3;
  line-height: 1.8;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.dpp-news-card__footer {
  align-items: center;
  border-top: 1px solid var(--dpp-line);
  color: var(--dpp-muted);
  display: flex;
  font-size: 10px;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 13px;
}

.dpp-news-card__footer time {
  font-size: 10px;
}

.dpp-news-card__read {
  color: var(--dpp-ink);
  font-weight: 600;
}

.dpp-news-card:hover,
.dpp-news-card:focus-within {
  transform: translateY(-5px);
}

.dpp-news-card:hover .dpp-news-card__media,
.dpp-news-card:focus-within .dpp-news-card__media {
  transform: none;
}

/* Homepage-only interactions proven against the locked Site preview. */
body.home [data-dpp-module="home.series"] .dpp-series-card {
  box-shadow: none;
  transform: translateY(0);
  transition: transform var(--dpp-motion-fast) var(--dpp-motion-ease), box-shadow var(--dpp-motion-fast) var(--dpp-motion-ease);
}

body.home [data-dpp-module="home.series"] .dpp-series-card::before {
  transition: transform var(--dpp-motion-image) var(--dpp-motion-ease);
}

body.home [data-dpp-module="home.series"] .dpp-series-card:hover,
body.home [data-dpp-module="home.series"] .dpp-series-card:focus-within {
  box-shadow: var(--dpp-shared-shadow-hover);
  transform: translateY(-6px);
}

body.home [data-dpp-module="home.series"] .dpp-series-card:hover::before,
body.home [data-dpp-module="home.series"] .dpp-series-card:focus-within::before {
  transform: rotate(5deg) scaleX(1.15);
}

body.home [data-dpp-module="home.series"] .dpp-series-card:hover .dpp-media__image,
body.home [data-dpp-module="home.series"] .dpp-series-card:focus-within .dpp-media__image {
  transform: none;
}

body.home [data-dpp-module="home.brand-power"] .dpp-collection__media {
  overflow: hidden;
}

body.home [data-dpp-module="home.brand-power"] .dpp-collection__media img {
  transform: scale(1);
  transition: transform var(--dpp-motion-image) var(--dpp-motion-ease);
}

body.home [data-dpp-module="home.brand-power"] .dpp-editorial-card:hover .dpp-collection__media img,
body.home [data-dpp-module="home.brand-power"] .dpp-editorial-card:focus-within .dpp-collection__media img {
  transform: scale(1.035);
}

/* The wrapper supplies the exact sticky containing block and stops before the disclaimer. */
body.home [data-dpp-module="home.partner-band"] > .dpp-container {
  display: block;
}

body.home [data-dpp-module="home.partner-band"] .dpp-partner-layout {
  column-gap: 80px;
  display: grid;
  grid-template-columns: 450px 750px;
  grid-template-rows: auto;
  width: 100%;
}

body.home [data-dpp-module="home.partner-band"] .dpp-partner-intro {
  align-self: start;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

body.home [data-dpp-module="home.partner-band"] .dpp-partner-intro > .dpp-eyebrow {
  color: #bbb;
  font-size: 10px;
  letter-spacing: 0.2em;
  margin-bottom: 25px;
}

body.home [data-dpp-module="home.partner-band"] .dpp-partner-intro > h2 {
  color: var(--dpp-white);
  font-size: 66.24px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.13;
  margin: 0 0 25px;
}

body.home [data-dpp-module="home.partner-band"] .dpp-partner-intro > .dpp-collection__subtitle {
  color: #aaa;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.9;
  margin: 0;
  max-width: 430px;
}

body.home [data-dpp-module="home.partner-band"] .dpp-collection__grid {
  grid-column: 2;
  grid-row: 1;
}

body.home [data-dpp-module="home.partner-band"] .dpp-collection__intro {
  margin-top: 105px;
}

@media (min-width: 1024px) {
  body.home [data-dpp-module="home.partner-band"] .dpp-partner-intro {
    position: sticky;
    top: 140px;
  }
}

@media (max-width: 1100px) and (min-width: 821px) {
  body.home [data-dpp-module="home.partner-band"] .dpp-partner-layout {
    grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  }
}

/* Fix the mobile Banner media/overlay containing block, not the visual layer. */
@media (max-width: 820px) {
  :root {
    --dpp-shared-page: calc(100vw - 36px);
    --dpp-shared-gutter: 18px;
    --dpp-shared-section-block: 85px;
  }

  .dpp-subnav {
    top: 66px;
  }

  .dpp-subnav .dpp-container {
    width: calc(100vw - 18px);
  }

  .dpp-subnav ul {
    gap: 24px;
    padding-right: 18px;
  }

  .dpp-page--news .dpp-subnav {
    height: 50px;
    min-height: 50px;
    top: auto;
  }

  .dpp-page--news .dpp-subnav ul,
  .dpp-page--news .dpp-subnav a {
    height: 49px;
    min-height: 49px;
  }

  .dpp-section > .dpp-container > h2,
  .dpp-news > .dpp-container > .dpp-news__title {
    font-size: 39px;
  }

  .dpp-section > .dpp-container > .dpp-collection__subtitle,
  .dpp-news > .dpp-container > .dpp-news__subtitle {
    font-size: 13px;
  }

  .dpp-hero:not([data-dpp-module="home.hero"]) .dpp-hero__content {
    padding-block: 80px;
  }

  .dpp-hero:not([data-dpp-module="home.hero"]) .dpp-hero__content > h1 {
    font-size: 43px;
    line-height: 1.04;
  }

  .dpp-hero:not([data-dpp-module="home.hero"]) .dpp-hero__subtitle {
    font-size: 17px;
  }

  body.home [data-dpp-module="home.hero"] {
    --dpp-home-hero-mobile-offset: 380px;
  }

  body.home [data-dpp-module="home.hero"] > .dpp-hero__media,
  body.home [data-dpp-module="home.hero"]::after {
    bottom: 0;
    height: auto;
    top: calc(-1 * var(--dpp-home-hero-mobile-offset));
  }

  .dpp-news__grid {
    grid-template-columns: 1fr;
  }

  .dpp-news-card {
    min-height: 430px;
  }

  body.home [data-dpp-module="home.partner-band"] .dpp-partner-layout {
    display: block;
  }

  body.home [data-dpp-module="home.partner-band"] .dpp-partner-intro {
    position: static;
  }

  body.home [data-dpp-module="home.partner-band"] .dpp-partner-intro > h2 {
    font-size: 43px;
  }

  body.home [data-dpp-module="home.partner-band"] .dpp-partner-intro > .dpp-collection__subtitle {
    font-size: 13px;
  }

  body.home [data-dpp-module="home.partner-band"] .dpp-collection__grid {
    margin-top: 45px;
  }

  body.home [data-dpp-module="home.partner-band"] .dpp-collection__intro {
    margin-top: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dpp-subnav a::after,
  .dpp-news-card,
  body.home [data-dpp-module="home.series"] .dpp-series-card,
  body.home [data-dpp-module="home.series"] .dpp-series-card::before,
  body.home [data-dpp-module="home.brand-power"] .dpp-collection__media img {
    transition: none !important;
  }

  .dpp-news-card:hover,
  .dpp-news-card:focus-within,
  body.home [data-dpp-module="home.series"] .dpp-series-card:hover,
  body.home [data-dpp-module="home.series"] .dpp-series-card:focus-within {
    box-shadow: none;
    transform: none;
  }

  body.home [data-dpp-module="home.series"] .dpp-series-card:hover::before,
  body.home [data-dpp-module="home.series"] .dpp-series-card:focus-within::before {
    transform: rotate(-5deg);
  }

  body.home [data-dpp-module="home.brand-power"] .dpp-editorial-card:hover .dpp-collection__media img,
  body.home [data-dpp-module="home.brand-power"] .dpp-editorial-card:focus-within .dpp-collection__media img {
    transform: none;
  }
}
