/*
 * Shared editorial layout for all public Resource articles.
 *
 * This file intentionally loads after the legacy cost and Resources styles.
 * It unifies the page geometry without changing article copy, facts, media, or
 * navigation behavior.
 */

:is(body.cost-article-page, body.resource-article-page) {
  min-width: 0 !important;
  max-width: none !important;
  color: #334b5e;
  background: #fff;
  overflow-x: visible !important;
}

html.device-desktop body.global-tech-page.library-page.resources-page.resource-article-page,
html.device-desktop body.global-tech-page.library-page.resources-page.resource-article-page main,
html.device-desktop body.global-tech-page.library-page.resources-page.resource-article-page .resource-article {
  width: 100% !important;
  inline-size: 100% !important;
  min-width: 0 !important;
  min-inline-size: 0 !important;
  max-width: none !important;
  max-inline-size: none !important;
  overflow-x: visible !important;
}

/* Hero: one editorial content rail on both article families. */
body.cost-article-page .cost-hero,
body.resource-article-page .resource-article-hero {
  background:
    linear-gradient(rgba(26, 91, 139, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 91, 139, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, #edf6fc 0%, #f8fbfd 64%, #fff 100%) !important;
  background-size: 28px 28px, 28px 28px, auto !important;
  border-bottom: 1px solid #d5e3ed !important;
}

body.cost-article-page .cost-hero__inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 28px !important;
  align-items: start !important;
  width: min(calc(100% - 96px), 1184px) !important;
  min-width: 0 !important;
  max-width: 1184px !important;
  margin: 0 auto !important;
  padding: 64px 0 58px !important;
}

body.resource-article-page .resource-article-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 28px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 64px 0 58px !important;
}

body.resource-article-page .resource-article-hero > div:first-child {
  width: min(calc(100% - 96px), 1184px) !important;
  min-width: 0 !important;
  max-width: 1184px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

body.cost-article-page .cost-hero h1,
body.resource-article-page .resource-article-hero h1 {
  max-width: 900px !important;
  margin: 0 !important;
  color: #0c2f4d !important;
  font-size: clamp(42px, 3vw, 56px) !important;
  font-weight: 850 !important;
  line-height: 1.16 !important;
  letter-spacing: -0.03em !important;
  white-space: normal !important;
  text-wrap: balance !important;
  overflow-wrap: normal !important;
}

body.resource-article-page .resource-article-hero > div > p:not(.eyebrow) {
  max-width: 820px !important;
  margin-top: 22px !important;
  font-size: 18px !important;
  line-height: 1.72 !important;
}

/* Shared article rail: compact TOC plus a readable text measure. */
body.cost-article-page .article-layout,
body.resource-article-page .article-shell {
  display: grid !important;
  grid-template-columns: 220px minmax(0, 900px) !important;
  gap: 64px !important;
  align-items: start !important;
  width: min(calc(100% - 96px), 1184px) !important;
  inline-size: min(calc(100% - 96px), 1184px) !important;
  min-width: 0 !important;
  min-inline-size: 0 !important;
  max-width: 1184px !important;
  max-inline-size: 1184px !important;
  margin: 0 auto !important;
}

body.cost-article-page .article-layout {
  padding: 72px 0 96px !important;
}

body.resource-article-page .resource-article {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 72px 0 96px !important;
}

/* Legacy desktop Resources rules use an html.device-desktop fixed canvas and
   a higher-specificity selector. Keep this final article layer authoritative. */
html.device-desktop body.global-tech-page.library-page.resources-page.resource-article-page .article-shell {
  grid-template-columns: 220px minmax(0, 900px) !important;
  gap: 64px !important;
  width: min(calc(100% - 96px), 1184px) !important;
  inline-size: min(calc(100% - 96px), 1184px) !important;
  min-width: 0 !important;
  min-inline-size: 0 !important;
  max-width: 1184px !important;
  max-inline-size: 1184px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

html.device-desktop body.global-tech-page.library-page.resources-page.resource-article-page .article-body {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 900px !important;
}

body:is(.cost-article-page, .resource-article-page) .article-toc {
  position: sticky !important;
  top: 104px !important;
  display: block !important;
  align-self: start !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 220px !important;
  max-height: calc(100vh - 126px) !important;
  padding: 18px 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 2px solid #164f79 !important;
  border-bottom: 1px solid #d7e3eb !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  scrollbar-width: thin;
}

body:is(.cost-article-page, .resource-article-page) .article-toc > span {
  display: block !important;
  margin: 0 0 14px !important;
  color: #123b5d !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

body:is(.cost-article-page, .resource-article-page) .article-toc nav {
  display: grid !important;
  gap: 2px !important;
}

body:is(.cost-article-page, .resource-article-page) .article-toc a {
  display: block !important;
  padding: 7px 0 !important;
  color: #526b7e !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
  text-decoration: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

body:is(.cost-article-page, .resource-article-page) .article-toc a:hover,
body:is(.cost-article-page, .resource-article-page) .article-toc a:focus-visible {
  color: #126da8 !important;
}

body.cost-article-page .cost-prose,
body.resource-article-page .article-body {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 900px !important;
}

/* The generic Resource template used boxed sections; articles should read as
   one continuous document, matching the cost guide. */
body.resource-article-page .article-body {
  display: block !important;
  color: #334b5e !important;
  font-size: 18px !important;
  line-height: 1.82 !important;
}

body.resource-article-page .article-body > * + * {
  margin-top: 54px !important;
}

body.resource-article-page .article-body > section:not(.article-cta) {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 900px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.resource-article-page .article-body > section:not(:first-child):not(.article-cta) {
  padding-top: 54px !important;
  border-top: 1px solid #dbe5ec !important;
}

body.resource-article-page .article-body h2 {
  margin: 0 0 24px !important;
  color: #102f49 !important;
  font-size: 31px !important;
  font-weight: 800 !important;
  line-height: 1.34 !important;
  letter-spacing: -0.02em !important;
  text-wrap: balance !important;
}

body.resource-article-page .article-body h3 {
  color: #163d5c !important;
  font-size: 21px !important;
  line-height: 1.45 !important;
}

body.resource-article-page .article-body p,
body.resource-article-page .article-body li {
  font-size: 18px !important;
  line-height: 1.82 !important;
}

/* Tablet: keep one reading column instead of squeezing the TOC. */
@media (min-width: 768px) and (max-width: 1180px) {
  body.cost-article-page .cost-hero__inner,
  body.cost-article-page .article-layout,
  body.resource-article-page .article-shell {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 36px !important;
    width: calc(100% - 48px) !important;
    inline-size: calc(100% - 48px) !important;
    max-width: none !important;
    max-inline-size: none !important;
  }

  body.resource-article-page .resource-article-hero {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  body.resource-article-page .resource-article-hero > div:first-child {
    width: calc(100% - 64px) !important;
    max-width: none !important;
  }

  html.device-desktop body.global-tech-page.library-page.resources-page.resource-article-page .article-shell,
  html.device-mobile body.global-tech-page.library-page.resources-page.resource-article-page .article-shell {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 36px !important;
    width: calc(100% - 64px) !important;
    inline-size: calc(100% - 64px) !important;
    min-width: 0 !important;
    min-inline-size: 0 !important;
    max-width: none !important;
    max-inline-size: none !important;
  }

  html.device-desktop body.global-tech-page.library-page.resources-page.resource-article-page .resource-article,
  html.device-mobile body.global-tech-page.library-page.resources-page.resource-article-page .resource-article,
  html:has(> body.resource-article-page) > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.resource-article-page .resource-article {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  body:is(.cost-article-page, .resource-article-page) .article-toc {
    position: static !important;
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body:is(.cost-article-page, .resource-article-page) .article-toc nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding-bottom: 6px !important;
    overflow-x: auto !important;
    scrollbar-width: thin;
  }

  body:is(.cost-article-page, .resource-article-page) .article-toc a {
    display: inline-flex !important;
    width: auto !important;
    margin: 0 8px 8px 0 !important;
    padding: 8px 11px !important;
    background: #f0f5f8 !important;
    border-radius: 4px !important;
  }

  body:is(.cost-article-page, .resource-article-page) .article-toc nav a {
    flex: 0 0 auto !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  body.cost-article-page .article-rfq {
    grid-column: 1 !important;
  }
}

/* Phone: genuine viewport width, compact TOC, and one continuous content rail. */
@media (max-width: 767.98px) {
  html.device-mobile body.global-tech-page.resources-page.resource-article-page,
  html.device-desktop body.global-tech-page.resources-page.resource-article-page,
  body.resource-article-page,
  body.cost-article-page {
    width: 100% !important;
    inline-size: 100% !important;
    min-width: 0 !important;
    min-inline-size: 0 !important;
    max-width: none !important;
    max-inline-size: none !important;
    overflow-x: visible !important;
  }

  html.device-mobile body.global-tech-page.resources-page.resource-article-page :is(.site-header, main, .page-hero, .resource-article, .site-footer),
  html.device-desktop body.global-tech-page.resources-page.resource-article-page :is(.site-header, main, .page-hero, .resource-article, .site-footer),
  body.resource-article-page :is(.site-header, main, .page-hero, .resource-article, .site-footer),
  body.cost-article-page :is(.site-header, main, .cost-hero, .site-footer) {
    width: 100% !important;
    inline-size: 100% !important;
    min-width: 0 !important;
    min-inline-size: 0 !important;
    max-width: none !important;
    max-inline-size: none !important;
  }

  body.cost-article-page .cost-hero__inner {
    gap: 24px !important;
    width: calc(100% - 36px) !important;
    max-width: none !important;
    padding: 38px 0 36px !important;
  }

  body.resource-article-page .resource-article-hero {
    padding: 38px 0 36px !important;
  }

  body.resource-article-page .resource-article-hero > div:first-child {
    width: calc(100% - 36px) !important;
    max-width: none !important;
  }

  body.cost-article-page .cost-hero h1,
  body.resource-article-page .resource-article-hero h1 {
    font-size: clamp(32px, 8.7vw, 36px) !important;
    line-height: 1.2 !important;
    text-wrap: balance !important;
    overflow-wrap: anywhere !important;
  }

  body.resource-article-page .resource-article-hero > div > p:not(.eyebrow),
  body.cost-article-page .article-deck {
    font-size: 17px !important;
    line-height: 1.7 !important;
  }

  body.cost-article-page .article-layout,
  body.resource-article-page .article-shell {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 32px !important;
    width: calc(100% - 36px) !important;
    inline-size: calc(100% - 36px) !important;
    max-width: none !important;
    max-inline-size: none !important;
  }

  html.device-desktop body.global-tech-page.library-page.resources-page.resource-article-page .article-shell,
  html.device-mobile body.global-tech-page.library-page.resources-page.resource-article-page .article-shell {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 32px !important;
    width: calc(100% - 36px) !important;
    inline-size: calc(100% - 36px) !important;
    min-width: 0 !important;
    min-inline-size: 0 !important;
    max-width: none !important;
    max-inline-size: none !important;
  }

  body.cost-article-page .article-layout,
  body.resource-article-page .resource-article {
    padding-top: 34px !important;
    padding-bottom: 62px !important;
  }

  body.resource-article-page .resource-article {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  html.device-desktop body.global-tech-page.library-page.resources-page.resource-article-page .resource-article,
  html.device-mobile body.global-tech-page.library-page.resources-page.resource-article-page .resource-article,
  html:has(> body.resource-article-page) > body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.resource-article-page .resource-article {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  body:is(.cost-article-page, .resource-article-page) .article-toc {
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    padding: 14px 0 8px !important;
    overflow: visible !important;
  }

  body:is(.cost-article-page, .resource-article-page) .article-toc nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding-bottom: 6px !important;
    overflow-x: auto !important;
    scrollbar-width: thin;
  }

  body:is(.cost-article-page, .resource-article-page) .article-toc a {
    display: inline-flex !important;
    width: auto !important;
    margin: 0 7px 7px 0 !important;
    padding: 8px 10px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    background: #f0f5f8 !important;
    border-radius: 4px !important;
  }

  body:is(.cost-article-page, .resource-article-page) .article-toc nav a {
    flex: 0 0 auto !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  body.resource-article-page .article-body,
  body.cost-article-page .cost-prose {
    font-size: 17px !important;
    line-height: 1.78 !important;
  }

  body.resource-article-page .article-body > * + * {
    margin-top: 44px !important;
  }

  body.resource-article-page .article-body > section:not(:first-child):not(.article-cta) {
    padding-top: 44px !important;
  }

  body.resource-article-page .article-body h2 {
    font-size: 27px !important;
    line-height: 1.36 !important;
  }

  body.resource-article-page .article-body h3 {
    font-size: 20px !important;
  }

  body.resource-article-page .article-body p,
  body.resource-article-page .article-body li {
    font-size: 17px !important;
    line-height: 1.78 !important;
  }

  body.resource-article-page .article-body .article-cta,
  body.resource-article-page .article-body .article-cta > *,
  body.resource-article-page .article-body .article-cta-panel {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.resource-article-page .article-body .article-cta .button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
    white-space: normal !important;
    text-align: center !important;
  }
}

/*
 * v4 — one authoritative article master.
 *
 * The production stylesheet contains several late, page-specific selectors
 * with !important declarations.  These deliberately over-qualified rules
 * keep both article families on the same visible template without changing
 * their article copy or media components.
 */
html:has(> body.cost-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.cost-article-page
  .cost-hero,
html:has(> body.resource-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
  .resource-article-hero {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background:
    linear-gradient(rgba(26, 91, 139, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 91, 139, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, #edf6fc 0%, #f8fbfd 64%, #fff 100%) !important;
  background-size: 28px 28px, 28px 28px, auto !important;
  border-bottom: 1px solid #d5e3ed !important;
}

html:has(> body.cost-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.cost-article-page
  .cost-hero__inner,
html:has(> body.resource-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
  .resource-article-hero > div:first-child {
  display: block !important;
  width: min(calc(100% - 96px), 1184px) !important;
  min-width: 0 !important;
  max-width: 1184px !important;
  margin: 0 auto !important;
  padding: 64px 0 58px !important;
}

/* Optional legacy Hero fragments made the two templates look unrelated.  The
   same conversion actions remain available at the end of each article. */
html:has(> body.cost-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.cost-article-page
  :is(.cost-hero .breadcrumb, .cost-hero .article-meta),
html:has(> body.resource-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
  .resource-article-hero .hero-actions {
  display: none !important;
}

html:has(> body.cost-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.cost-article-page
  .cost-hero .article-kicker,
html:has(> body.resource-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
  .resource-article-hero .eyebrow {
  display: block !important;
  margin: 0 0 18px !important;
  color: #166ca5 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
  letter-spacing: 0.1em !important;
}

html:has(> body.cost-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.cost-article-page
  .cost-hero h1,
html:has(> body.resource-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
  .resource-article-hero h1 {
  width: auto !important;
  max-width: 900px !important;
  margin: 0 !important;
  color: #0c2f4d !important;
  font-size: clamp(42px, 3vw, 56px) !important;
  font-weight: 850 !important;
  line-height: 1.16 !important;
  letter-spacing: -0.03em !important;
  white-space: normal !important;
  text-wrap: balance !important;
  overflow-wrap: normal !important;
}

html:has(> body.cost-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.cost-article-page
  .cost-hero .article-deck,
html:has(> body.resource-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
  .resource-article-hero > div:first-child > p:not(.eyebrow) {
  width: auto !important;
  max-width: 810px !important;
  margin: 26px 0 0 !important;
  color: #405d72 !important;
  font-size: 20px !important;
  line-height: 1.72 !important;
}

html:has(> body.resource-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
  .resource-article {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html:has(> body.cost-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.cost-article-page
  .article-layout,
html:has(> body.resource-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
  .article-shell {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 220px minmax(0, 900px) !important;
  gap: 64px !important;
  align-items: start !important;
  width: min(calc(100% - 96px), 1184px) !important;
  min-width: 0 !important;
  max-width: 1184px !important;
  margin: 0 auto !important;
  padding: 72px 0 96px !important;
}

html:has(> body.cost-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.cost-article-page
  .article-toc,
html:has(> body.resource-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
  .article-toc {
  position: sticky !important;
  top: 104px !important;
  display: block !important;
  align-self: start !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 220px !important;
  max-height: calc(100vh - 126px) !important;
  padding: 18px 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 2px solid #164f79 !important;
  border-bottom: 1px solid #d7e3eb !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html:has(> body.cost-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.cost-article-page
  .cost-prose.markdown-body,
html:has(> body.resource-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
  .article-body {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 900px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #334b5e !important;
  font-size: 18px !important;
  line-height: 1.82 !important;
  background: transparent !important;
}

html:has(> body.cost-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.cost-article-page
  .cost-prose.markdown-body > section:not(.article-cta),
html:has(> body.resource-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
  .article-body > section:not(.article-cta) {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 900px !important;
  margin-top: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html:has(> body.cost-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.cost-article-page
  .cost-prose.markdown-body > :is(section, figure) + section:not(.article-cta),
html:has(> body.resource-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
  .article-body > :is(section, figure) + section:not(.article-cta) {
  margin-top: 68px !important;
  padding-top: 62px !important;
  border-top: 1px solid #dbe5ec !important;
}

html:has(> body.resource-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
  .article-body > :is(section, figure) + figure {
  margin-top: 54px !important;
}

html:has(> body.resource-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
  .article-body > .article-cta {
  margin-top: 68px !important;
}

html:has(> body.cost-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.cost-article-page
  .cost-prose.markdown-body h2,
html:has(> body.resource-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
  .article-body > section:not(.article-cta) h2 {
  width: auto !important;
  max-width: none !important;
  margin: 0 0 26px !important;
  padding: 0 !important;
  color: #102f49 !important;
  font-size: 31px !important;
  font-weight: 800 !important;
  line-height: 1.34 !important;
  letter-spacing: -0.02em !important;
  text-wrap: balance !important;
  border: 0 !important;
}

html:has(> body.resource-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
  .article-body > section:not(.article-cta) > p {
  font-size: 18px !important;
  line-height: 1.82 !important;
}

/* Resources used ID-based display rules for its four editorial sections.
   Match that specificity so those sections follow the shared article scale. */
html:has(> body.resource-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
  .article-body > :is(#why-review, #checklist, #rfq-inputs, #faq) {
  display: block !important;
  width: 100% !important;
  max-width: 900px !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
}

html:has(> body.resource-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
  .article-body > section:not(.article-cta) > .eyebrow {
  display: none !important;
}

html:has(> body.resource-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
  .article-body > :is(#why-review, #checklist, #rfq-inputs, #faq) h2 {
  width: auto !important;
  max-width: none !important;
  margin: 0 0 26px !important;
  padding: 0 !important;
  font-size: 31px !important;
  line-height: 1.34 !important;
  letter-spacing: -0.02em !important;
}

html:has(> body.resource-article-page) >
  body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
  .article-body > #why-review p:not(.eyebrow) {
  width: auto !important;
  max-width: none !important;
  font-size: 18px !important;
  line-height: 1.82 !important;
}

@media (min-width: 768px) and (max-width: 1180px) {
  html:has(> body.cost-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.cost-article-page
    .cost-hero__inner,
  html:has(> body.resource-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
    .resource-article-hero > div:first-child,
  html:has(> body.cost-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.cost-article-page
    .article-layout,
  html:has(> body.resource-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
    .article-shell {
    width: calc(100% - 64px) !important;
    max-width: none !important;
  }

  html:has(> body.cost-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.cost-article-page
    .article-layout,
  html:has(> body.resource-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
    .article-shell {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 36px !important;
  }

  html:has(> body.cost-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.cost-article-page
    .article-toc,
  html:has(> body.resource-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
    .article-toc {
    position: static !important;
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 767.98px) {
  html:has(> body.cost-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.cost-article-page
    .cost-hero__inner,
  html:has(> body.resource-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
    .resource-article-hero > div:first-child {
    width: calc(100% - 36px) !important;
    max-width: none !important;
    padding: 38px 0 36px !important;
  }

  html:has(> body.cost-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.cost-article-page
    .cost-hero h1,
  html:has(> body.resource-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
    .resource-article-hero h1 {
    font-size: clamp(32px, 8.7vw, 36px) !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere !important;
  }

  html:has(> body.cost-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.cost-article-page
    .cost-hero .article-deck,
  html:has(> body.resource-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
    .resource-article-hero > div:first-child > p:not(.eyebrow) {
    margin-top: 20px !important;
    font-size: 17px !important;
    line-height: 1.7 !important;
  }

  html:has(> body.cost-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.cost-article-page
    .article-layout,
  html:has(> body.resource-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
    .article-shell {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 32px !important;
    width: calc(100% - 36px) !important;
    max-width: none !important;
    padding: 34px 0 62px !important;
  }

  html:has(> body.cost-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.cost-article-page
    .article-toc,
  html:has(> body.resource-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
    .article-toc {
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    padding: 14px 0 8px !important;
    overflow: visible !important;
  }

  html:has(> body.cost-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.cost-article-page
    .cost-prose.markdown-body h2,
  html:has(> body.resource-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
    .article-body > section:not(.article-cta) h2 {
    font-size: 27px !important;
    line-height: 1.36 !important;
  }

  html:has(> body.resource-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
    .article-body > :is(#why-review, #checklist, #rfq-inputs, #faq) h2 {
    font-size: 27px !important;
    line-height: 1.36 !important;
  }

  html:has(> body.cost-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.cost-article-page
    .cost-prose.markdown-body > :is(section, figure) + section:not(.article-cta),
  html:has(> body.resource-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
    .article-body > :is(section, figure) + section:not(.article-cta) {
    margin-top: 48px !important;
    padding-top: 44px !important;
  }

  html:has(> body.resource-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
    .article-body > :is(section, figure) + figure {
    margin-top: 42px !important;
  }

  /* Close the 767–767.98px fractional viewport seam left by the legacy
     max-width:767px media queries.  Do not mask overflow: make each rich
     article component genuinely fit the single reading column. */
  html:has(> body.resource-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
    :is(.article-lead-image, .article-media-block, .article-body > section.article-cta) {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  html:has(> body.resource-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
    .article-lead-image {
    display: block !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  html:has(> body.resource-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
    .article-lead-image :is(img, figcaption) {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  html:has(> body.resource-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
    .article-lead-image img {
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  html:has(> body.resource-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
    .article-lead-image figcaption {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 18px 0 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
  }

  html:has(> body.resource-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
    .article-media-block :is(figure, img, div) {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  html:has(> body.resource-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
    .article-media-block figure {
    min-height: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #d5e3ed !important;
  }

  html:has(> body.resource-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
    #checklist .article-check-grid,
  html:has(> body.resource-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
    .rfq-list div {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  html:has(> body.resource-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
    #checklist .article-check-grid article {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    gap: 10px 16px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 22px 0 !important;
  }

  html:has(> body.resource-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.library-page.resources-page.resource-article-page
    #checklist .article-check-grid article p {
    grid-column: 2 !important;
  }

  html:has(> body.cost-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.cost-article-page
    .article-rfq {
    grid-column: 1 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  html:has(> body.cost-article-page) >
    body.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.global-tech-page.cost-article-page
    :is(.cost-layers, .engineering-note, .scope-note) {
    grid-template-columns: minmax(0, 1fr) !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}
