/* Shared native-block presentation. No admin chrome, legacy templates or shop selectors. */
:where(.editor-styles-wrapper, .ds-block-content) {
  --ds-block-blue: var(--blue, #004c93);
  --ds-block-ink: var(--ink, #363a3c);
  --ds-block-muted: var(--muted, #5b6063);
  --ds-block-mist: var(--mist, #ececec);
  --ds-block-line: var(--line, #ccc);
  --ds-block-wide: 1472px;
  --ds-block-text: 760px;
  color: var(--ds-block-ink);
  /* Font families continue to come from the existing WordPress Global Styles. */
  font-size: 17px;
  line-height: 1.65;
}

:where(.ds-block-content, .editor-styles-wrapper) :where(h1, h2, h3, h4) {
  margin-block: 0 20px;
  font-weight: 760;
  letter-spacing: -.035em;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
:where(.ds-block-content, .editor-styles-wrapper) :where(h1, h2, h3, h4):not(.has-text-color) { color: var(--ds-block-blue); }

:where(.ds-block-content, .editor-styles-wrapper) h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
:where(.ds-block-content, .editor-styles-wrapper) h2 { font-size: clamp(1.6rem, 2.7vw, 2.2rem); }
:where(.ds-block-content, .editor-styles-wrapper) h3 { font-size: clamp(1.22rem, 2vw, 1.55rem); }
:where(.ds-block-content, .editor-styles-wrapper) h4 { font-size: 1.15rem; }
:where(.ds-block-content, .editor-styles-wrapper) p { margin-block: 0 24px; overflow-wrap: anywhere; }
:where(.ds-block-content, .editor-styles-wrapper) :where(p, li) { line-height: 1.85; }
:where(.ds-block-content, .editor-styles-wrapper) :where(ul, ol) { padding-inline-start: 1.35em; }
:where(.ds-block-content, .editor-styles-wrapper) a { color: var(--ds-block-blue); text-underline-offset: .18em; }
:where(.ds-block-content, .editor-styles-wrapper) :where(a, summary):focus-visible { outline: 3px solid var(--ds-block-blue); outline-offset: 3px; }

/* .has-* classes and inline RichText formatting keep their ordinary Core priority. */
:where(.ds-block-content, .editor-styles-wrapper) .ds-block-eyebrow {
  margin-bottom: 14px;
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}
:where(.ds-block-content, .editor-styles-wrapper) .ds-block-eyebrow:not(.has-text-color) { color: var(--ds-block-blue); }

.ds-block-content { min-width: 0; max-width: 100%; }
.ds-block-content :where(.wp-block-column, .wp-block-group, .wp-block-query, .wp-block-post-template, .wp-block-post) { min-width: 0; }
.ds-block-content :where(.alignwide, .ds-block-container) { max-width: var(--ds-block-wide); margin-inline: auto; }
.ds-block-content > .alignwide, .ds-block-content .ds-block-container { width: min(calc(100% - 40px), var(--ds-block-wide)); }
.ds-block-content .ds-block-prose { max-width: var(--ds-block-text); margin-inline: auto; }
.ds-block-content .ds-block-section { padding-block: clamp(56px, 7vw, 104px); }
.ds-block-content.ds-block-section { padding-block: clamp(56px, 7vw, 104px); }
.ds-block-content .ds-block-section > :last-child, .ds-block-content.ds-block-section > :last-child { margin-block-end: 0; }
.ds-block-content .ds-block-introduction { gap: clamp(24px, 5vw, 76px); align-items: start; }
.ds-block-content .ds-block-introduction h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
.ds-block-content .ds-block-media-text { gap: clamp(24px, 5vw, 72px); align-items: center; }

.ds-block-content :where(.wp-block-image, .wp-block-gallery) { margin-block: 24px; }
.ds-block-content :where(.wp-block-image img, .wp-block-post-featured-image img, .wp-block-gallery img) { display: block; max-width: 100%; height: auto; }
.ds-block-content .ds-block-image img { width: auto; max-height: 420px; object-fit: contain; margin-inline: auto; }
.ds-block-content .wp-block-image figcaption { color: var(--ds-block-muted); font-size: .88rem; }
.ds-block-content .wp-block-cover { overflow: hidden; }
.ds-block-content .wp-block-cover :where(h1, h2, h3, p):not(.has-text-color) { color: inherit; }

:where(.ds-block-content, .editor-styles-wrapper) .wp-block-button__link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-width: 2px;
  border-style: solid;
  border-radius: 3px;
  box-shadow: none;
  font-size: .93rem;
  font-weight: 760;
  line-height: 1.3;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
:where(.ds-block-content, .editor-styles-wrapper) .wp-block-button__link:not(.has-background) { background: var(--ds-block-blue); }
:where(.ds-block-content, .editor-styles-wrapper) .wp-block-button__link:not(.has-text-color) { color: #fff; }
:where(.ds-block-content, .editor-styles-wrapper) .wp-block-button__link:not(.has-border-color) { border-color: transparent; }
:where(.ds-block-content, .editor-styles-wrapper) .is-style-outline > .wp-block-button__link:not(.has-background) { background: transparent; border-color: currentColor; }
:where(.ds-block-content, .editor-styles-wrapper) .is-style-outline > .wp-block-button__link:not(.has-text-color) { color: var(--ds-block-blue); }
.ds-block-content .wp-block-buttons { gap: 14px; flex-wrap: wrap; }

.ds-block-content .ds-block-band:not(.has-text-color), .ds-block-content.ds-block-band:not(.has-text-color) { color: #fff; }
.ds-block-content .ds-block-band:not(.has-background), .ds-block-content.ds-block-band:not(.has-background) { background: var(--ds-block-blue); }
.ds-block-content .ds-block-band :where(h1, h2, h3, p):not(.has-text-color), .ds-block-content.ds-block-band :where(h1, h2, h3, p):not(.has-text-color) { color: inherit; }
.ds-block-content .ds-block-band .ds-block-eyebrow:not(.has-text-color), .ds-block-content.ds-block-band .ds-block-eyebrow:not(.has-text-color) { color: inherit; }
.ds-block-content .ds-block-band .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background), .ds-block-content.ds-block-band .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background) { background: #fff; }
.ds-block-content .ds-block-band .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-text-color), .ds-block-content.ds-block-band .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-text-color) { color: var(--ds-block-blue); }
.ds-block-content .ds-block-band .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color), .ds-block-content.ds-block-band .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color) { color: inherit; }

.ds-block-content .ds-block-card, .ds-block-content.ds-block-card { height: 100%; padding: 32px; border: 1px solid var(--ds-block-line); background: #fff; }
.ds-block-content .ds-block-card h3, .ds-block-content.ds-block-card h3 { font-size: 1.35rem; }
.ds-block-content .ds-block-card > :last-child, .ds-block-content.ds-block-card > :last-child { margin-block-end: 0; }
.ds-block-content .ds-block-card .wp-block-image img, .ds-block-content.ds-block-card .wp-block-image img { max-height: 180px; object-fit: contain; margin-inline: auto; }
.ds-block-content .ds-block-card-grid { gap: 24px; }
.ds-block-content .wp-block-query .wp-block-post-template { list-style: none; padding-inline: 0; }
.ds-block-content .wp-block-query .wp-block-post-template > li { margin: 0; }
.ds-block-content .wp-block-post-title a { text-decoration: none; }

.ds-block-content .wp-block-table { max-width: 100%; overflow-x: auto; }
.ds-block-content .wp-block-table table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ds-block-content .wp-block-table :where(th, td) { padding: 10px 12px; border: 1px solid var(--ds-block-line); text-align: start; vertical-align: top; overflow-wrap: anywhere; }
.ds-block-content .wp-block-table th { color: var(--ds-block-blue); background: var(--ds-block-mist); }
.ds-block-content .wp-block-quote { margin-inline: 0; padding-inline-start: 24px; border-inline-start: 3px solid var(--ds-block-blue); }
.ds-block-content .wp-block-details { padding: 18px 22px; border: 1px solid var(--ds-block-line); }
.ds-block-content .wp-block-details summary { min-height: 44px; cursor: pointer; font-weight: 700; }
.ds-block-content .wp-block-details[open] summary { margin-bottom: 18px; }

/* Core Featured Image places the former image class on its figure. */
.ds-native-page-heading > .wp-block-post-title { margin-top: 0; }
.ds-native-page-heading .wp-block-post-excerpt.editorial-lead,
.ds-native-page-heading .wp-block-post-excerpt.editorial-lead > p { margin-block-end: 0; }
.ds-native-page-heading figure.wp-block-post-featured-image.page-editorial-image { max-height: none; margin-block: 20px; }
.ds-native-page-heading figure.wp-block-post-featured-image.page-editorial-image img { width: auto; max-width: 100%; height: auto; max-height: 360px; object-fit: contain; }
.ds-native-page-heading .wp-block-post-featured-image.aligncenter img { margin-inline: auto; }
.ds-native-page-heading .wp-block-post-featured-image.alignright img { margin-inline-start: auto; }

/* Preserve the original photo/icon/logo bounds on the actual image, in both canvases. */
:where(.ds-block-content, .editor-styles-wrapper) figure.editorial-original-photo { margin: 0 0 2rem; text-align: center; }
:where(.ds-block-content, .editor-styles-wrapper) figure.editorial-original-photo img { display: block; width: auto; max-width: 100%; height: auto; max-height: 420px; object-fit: contain; margin-inline: auto; }
:where(.ds-block-content, .editor-styles-wrapper) figure.career-benefit-icon,
:where(.ds-block-content, .editor-styles-wrapper) figure.partner-original-logo { display: block; width: auto; max-height: none; margin: 0; }
:where(.ds-block-content, .editor-styles-wrapper) figure.career-benefit-icon { max-width: 76px; }
:where(.ds-block-content, .editor-styles-wrapper) figure.career-benefit-icon img { width: auto; max-width: 76px; height: auto; max-height: 52px; object-fit: contain; }
:where(.ds-block-content, .editor-styles-wrapper) figure.partner-original-logo { max-width: min(160px,100%); }
:where(.ds-block-content, .editor-styles-wrapper) figure.partner-original-logo img { width: auto; max-width: min(160px,100%); height: auto; max-height: 64px; object-fit: contain; }
:where(.ds-block-content, .editor-styles-wrapper) .career-benefit-icons { gap: 8px; margin-block-end: 8px; }
:where(.ds-block-content, .editor-styles-wrapper) .partner-original-logos { gap: 10px; margin-block-start: 12px; }

@media (min-width: 1440px) {
  .ds-block-content > .alignwide, .ds-block-content .ds-block-container { width: min(88%, var(--ds-block-wide)); }
}
@media (max-width: 781px) {
  .ds-block-content .ds-block-introduction, .ds-block-content .ds-block-media-text { gap: 24px; }
  .ds-block-content .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { flex-basis: 100% !important; }
  .ds-block-content .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ds-block-content .ds-block-section, .ds-block-content.ds-block-section { padding-block: 44px; }
  .ds-block-content .ds-block-card, .ds-block-content.ds-block-card { padding: 24px; }
  .ds-block-content .wp-block-post-template.is-layout-grid { grid-template-columns: minmax(0, 1fr); }
  .ds-block-content .wp-block-button, .ds-block-content .wp-block-button__link { max-width: 100%; }
  .ds-block-content .wp-block-button__link { padding-inline: 18px; }
}
@media (max-width: 640px) {
  :where(.ds-block-content, .editor-styles-wrapper) figure.career-benefit-icon,
  :where(.ds-block-content, .editor-styles-wrapper) figure.career-benefit-icon img { max-width: 58px; }
  :where(.ds-block-content, .editor-styles-wrapper) figure.career-benefit-icon img { max-height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .ds-block-content * { scroll-behavior: auto; }
}
