/* Shared reading edges and media treatment. Load after the V13 page styles.
   Deliberately scoped: hero artwork, Wuhan linework and the honors backdrop
   retain their own composition. No page-level overflow masking is introduced. */
:root {
  --dbt-content-width: 1560px;
  --dbt-page-gutter: clamp(24px, 4.2vw, 76px);
  --page-gutter: var(--dbt-page-gutter);
  --dbt-body-ink: #40586a;
  --dbt-title-ink: #123653;
  --dbt-reading-line: 1.9;
}

/* One edge from the small original logo through the content to the footer. */
.site-header > .header-inner,
main .container,
.refine-overview .container,
.module-product .mp-wrap,
.about-story .story-wrap,
.interior-page .brand-banner.inner-hero > .container,
.home-page .home-solution-feature > .container,
.contact-band > .container,
.site-footer > .container {
  width: min(var(--dbt-content-width), calc(100% - 2 * var(--dbt-page-gutter)));
  max-width: none;
  margin-inline: auto;
}
.site-header > .header-inner { padding-inline: 0; }
.site-header .brand.brand-lockup {
  width: 142px;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.site-header .brand.brand-lockup .brand-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 40px;
  object-fit: contain;
  object-position: left center;
  margin: 0;
}
.site-footer .footer-company .brand.brand-lockup {
  padding: 0;
  border: 0;
  background: transparent;
}
.site-footer .footer-company .brand-image { object-position: left center; }
.site-header .main-nav > .nav-group > .nav-trigger,
.site-header .main-nav > a.direct-advantage {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
}
.site-header .main-nav > a.direct-advantage { padding-inline: 0; }
.site-header .main-nav :is(.nav-trigger, .direct-advantage)[aria-current],
.site-header .main-nav .nav-group.is-selected > .nav-trigger {
  font-weight: 400;
  color: #0068b7;
}

/* Let grid/flex children shrink and wrap rather than push the page sideways. */
:where(.container, .mp-wrap, .story-wrap) > *,
:where(.nr-grid, .news-grid, .r13-case-feature, .story-spread,
  .adv13-intro-grid, .adv13-sector-layout, .adv13-network-layout,
  .adv13-recruitment-layout, .refine-sector-cards, .mp-case-inner,
  .mp-solutions, .mp-advantages, .mp-values) > * {
  min-width: 0;
}
main :where(h2, h3, h4, p, dd, li, figcaption),
.contact-band :where(h2, a),
.site-footer :where(p, a) {
  overflow-wrap: anywhere;
  word-break: normal;
}
main :where(h2, h3, h4) { text-wrap: pretty; }
main :where(p, dd, li) { text-wrap: pretty; }
/* Body copy has a 16px reading baseline. Metadata, dates, units and short
   interface labels keep their deliberately smaller scale; larger lead copy
   continues to use the page's own more-specific rule. */
main :where(p, dd, li) { font-size: 1rem; }
.home-page .home-heading-intro,
.home-page .r13-advantage p,
.home-page .r13-case-points dd,
.about-story .story-network-notes p,
.about-story .story-cert-current p,
.editorial-v2 .ed-trust-units .ed-unit p,
.refine-overview .refine-service-rail p,
.refine-overview .refine-cert-item p,
.adv13-page .adv13-value-strip p,
.adv13-page .adv13-network-stat p,
.adv13-page .adv13-flow p,
.adv13-page .adv13-school-note p,
.adv13-page .adv13-school-note p span {
  font-size: 1rem;
}
.home-page #advantages :is(.dbt-card-summary, .dbt-card-detail, .dbt-card-detail p) {
  font-size: 1rem;
}
.site-footer .footer-company .footer-address { font-size: 1rem; }
.inner-hero .banner-meta,
.nr-section p,
.refine-overview :where(.refine-card p, .refine-sector-proof p),
.module-product :where(.mp-copy, .mp-card-copy, .mp-case-copy p) {
  line-height: var(--dbt-reading-line);
}
.nr-section :where(h2, h3),
.module-product :where(.mp-heading, .mp-item-title),
.refine-overview :where(.refine-section-head h2, .refine-card h3) {
  font-weight: 550;
}
.contact-band .contact-action { min-width: 0; flex-wrap: wrap; }
.site-footer :where(.footer-company, .footer-navigation, .footer-hotlines, .footer-follow) {
  min-width: 0;
}

/* News rows need their own inset even when a hover surface is visible. */
.nc-category .nr-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(30px, 4vw, 64px);
}
.nc-category .nc-news-layout.nc-no-lead { grid-template-columns: minmax(0, 1fr); }
.nc-category .nc-news-list { min-width: 0; }
.nc-category .nc-news-list > li { min-width: 0; }
.nc-category .nc-news-list > li > a {
  padding: 24px clamp(24px, 2.1vw, 32px);
  border-radius: 5px;
}
.nc-category .nc-news-list h3 {
  font-size: 1.125rem;
  font-weight: 550;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.nc-category .nc-news-list p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--dbt-body-ink);
}
.nc-category .nc-row-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px 16px;
  min-width: 0;
}
.nc-category .nc-row-meta > * { min-width: 0; max-width: 100%; }
.nc-category .nc-row-meta .nr-label { white-space: normal; }
.nc-category .nc-row-meta time {
  flex: 0 0 auto;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: normal;
  font-variant-numeric: tabular-nums;
}
.nc-category .nc-lead > :is(.nr-label, h3, p, .text-link) {
  margin-inline: clamp(20px, 1.8vw, 28px);
}
.nc-category .nc-lead > h3 { line-height: 1.6; }
.nc-category .nc-lead > p { color: var(--dbt-body-ink); }
.nc-news-tools { flex-wrap: wrap; min-width: 0; }
.nc-news-count { white-space: normal; }
.nc-pagination :is(a, span) { flex-shrink: 0; }

/* The source news banners contain words. Preserve the whole source rectangle. */
.nc-category .nr-lead-image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  background: #f0f6fa;
}
.nc-category .nr-lead-image img,
.nc-category .nr-lead-image:hover img,
.nc-category .nr-lead-image:focus-visible img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  transform: none;
}
.home-page .news-feature .news-image-button {
  height: auto;
  aspect-ratio: auto;
  padding: 0;
  background: #f0f6fa;
}
.home-page .news-feature .news-image-button img,
.home-page .news-feature .news-image-button:hover img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  transform: none;
}
.home-page .home-news-list > article {
  min-width: 0;
  padding: 24px clamp(24px, 2.1vw, 32px);
}
.home-page .home-news-list h3 { font-size: 1.125rem; line-height: 1.7; font-weight: 550; }
.home-page .home-news-list p { line-height: 1.85; }
.home-page .news-meta { min-width: 0; flex-wrap: wrap; gap: 7px 18px; }
.home-page .news-meta > * { min-width: 0; max-width: 100%; }
.home-page .news-meta time { white-space: normal; font-variant-numeric: tabular-nums; }

/* Articles keep a narrower reading measure and the complete original media. */
.news-article-page main .container.nc-article {
  width: min(920px, calc(100% - 2 * var(--dbt-page-gutter)));
}
.nc-article-copy { min-width: 0; font-size: 1rem; line-height: 1.95; }
.nc-article-copy :is(p, div, figure) { max-width: 100%; }
.nc-article-copy img,
.nc-article-copy a img {
  display: block;
  width: auto;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto;
  object-fit: contain;
  margin-inline: auto;
  transform: none;
}
.nc-article-copy :is(video, iframe) { max-width: 100%; }
.nc-article-copy video { height: auto; }
.nc-article-copy table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.nc-article-copy :is(td, th) { font-size: 1rem; }
.nc-article-meta,
.nc-breadcrumb { min-width: 0; flex-wrap: wrap; }
.nc-article-meta > *,
.nc-breadcrumb > * { min-width: 0; max-width: 100%; }

/* Only the photographs INSIDE small cards are removed. Section-wide scene
   art, white-background linework, Wuhan art and the honors backdrop inherit
   their original layers; those are intentionally not cleared here. */
[data-fidelity-service] .fsvc-card-photo { display: none; }
[data-fidelity-service] .service-v2 .svc-capabilities > article::before,
[data-fidelity-service] .company-v2 .c2-direction-grid > article::before {
  background-image: none;
}

/* This arc formerly occupied a 690px circle at right:-270px/top:-340px.
   Paint the same visible arc inside the section instead: the section itself
   stays overflow:visible so enlarged cards are never clipped. A background
   cannot add the old offscreen pseudo box to document.scrollWidth. */
.home-page #advantages.r13-advantages::before {
  content: "";
  inset: 0 0 auto auto;
  width: min(420px, 100%);
  height: 395px;
  max-height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: radial-gradient(circle at calc(100% - 75px) 5px,
    transparent 343px,
    #8bb9d330 344px,
    #8bb9d330 345px,
    #b4d0e312 345px,
    #b4d0e312 386px,
    #8bb9d326 387px,
    #8bb9d326 388px,
    transparent 389px);
  transform: none;
  translate: none;
  animation: none;
  pointer-events: none;
}

/* Pale icons belong on actual blue interaction surfaces, not on white cards
   that happen to sit inside a dark section. Keep the original SVG linework. */
.interior-page :is(.refine-card, .mp-card, .mp-node, .mp-feature, .ed-unit)[data-select-card]
  :is(.refine-icon, .mp-symbol, .ed-icon) { color: #087fb5; }
.interior-page :is(.refine-card, .mp-card, .mp-node, .mp-feature, .ed-unit)[data-select-card]
  :is(.refine-icon, .mp-symbol, .ed-icon) img[data-motion-icon] { filter: none; }
.interior-page :is(.refine-card, .mp-card, .mp-node, .mp-feature, .ed-unit)[data-select-card]
  :is(.refine-icon, .mp-symbol, .ed-icon) .motion-svg { color: inherit; }
.interior-page :is(.refine-card, .mp-card, .mp-node, .mp-feature, .ed-unit)[data-select-card]:is([data-dbt-tone="dark"], .dbti-dark)
  :is(.refine-icon, .mp-symbol, .ed-icon, .motion-svg) { color: #f1faff; }
.interior-page :is(.refine-card, .mp-card, .mp-node, .mp-feature, .ed-unit)[data-select-card]:is([data-dbt-tone="dark"], .dbti-dark)
  img[data-motion-icon] { filter: brightness(0) invert(1) !important; }

@media (max-width: 1120px) {
  .site-header .header-inner { gap: 20px; }
  .site-header .main-nav { gap: clamp(16px, 2vw, 24px); }
}
@media (max-width: 1020px) {
  .site-header .main-nav.is-open {
    top: 100%;
    padding-inline: var(--dbt-page-gutter);
    max-height: calc(100svh - var(--site-header-height, 64px));
    overflow-y: auto;
  }
  .site-header .main-nav > a.direct-advantage { padding-block: 13px; }
}
@media (max-width: 740px) {
  :root { --dbt-page-gutter: 24px; }
  .nc-category .nr-grid,
  .nc-category .nc-no-lead .nc-news-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .nc-category .nc-news-list > li > a { padding: 22px 24px; }
  .nc-category .nc-row-meta time { margin-left: 0; }
  .nc-category .nc-lead > :is(.nr-label, h3, p, .text-link) { margin-inline: 20px; }
  .nc-category .nc-news-list h3 { font-size: 1.0625rem; }
  .home-page .home-news-list > article { padding: 22px 24px; }
  .home-page .home-news-list h3 { font-size: 1.0625rem; }
  .nc-article-copy :is(td, th) { padding: 10px 12px; }
  [data-fidelity-service] .fsvc-step-title {
    white-space: normal;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }
  .contact-band > .container { gap: 22px; }
  .contact-band h2 { font-size: clamp(1.375rem, 5vw, 1.75rem); line-height: 1.5; }
  .contact-band .contact-action { gap: 10px 16px; }
  .site-footer .footer-main { column-gap: 24px; }
}
@media (max-width: 420px) {
  :root { --dbt-page-gutter: 20px; }
  .site-header .brand.brand-lockup { width: 128px; }
  .site-header .header-inner { gap: 12px; }
  .site-header .header-consult { padding-inline: 12px; font-size: .8125rem; }
  .site-footer .footer-main { grid-template-columns: minmax(0, 1fr); row-gap: 26px; }
  .site-footer :is(.footer-company, .footer-navigation, .footer-hotlines, .footer-follow) {
    grid-column: 1;
    grid-row: auto;
  }
  .nc-category .nc-news-list > li > a,
  .home-page .home-news-list > article { padding-inline: 20px; }
}
