/*
 * Copyright 2020 Adobe. All rights reserved.
 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License. You may obtain a copy
 * of the License at http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under
 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
 * OF ANY KIND, either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */

:root {
  /* colors */
  --background-color: var(--color-surface-default);
  --light-color: var(--color-surface-subtle);
  --dark-color: var(--color-neutral-800);
  --text-color: var(--color-text-primary);
  --link-color: var(--color-link-default);
  --link-hover-color: var(--color-link-hover);

  /* nav height */
  --nav-height: 64px;

  /* breadcrumbs global variables */
  --breadcrumbs-height: 3.25rem; /* 52px */
}

/* This 1200px breakpoint also matches where the generated heading-size tokens
   in tokens.bundle.css (--type-heading-1-size, --type-heading-5-size, etc.)
   step up to their desktop values. Blocks that derive layout from --nav-height
   / --breadcrumbs-height or the heading tokens should align their own
   breakpoints to 768px/1200px rather than inventing their own, or the values
   will be wrong between breakpoints. */
@media (width >= 1200px) {
  :root {
    --nav-height: 80px;
    --breadcrumbs-height: 5.25rem; /* 84px */
  }
}

/* fallback font for utopia-std */
@font-face {
  font-family: utopia-std-fallback;
  size-adjust: 96.8%;
  src: local("Georgia");
}

/* fallback font for neulis-sans */
@font-face {
  font-family: neulis-sans-fallback;
  font-weight: 400;
  size-adjust: 94.53%;
  src: local("Verdana");
}

@font-face {
  font-family: neulis-sans-fallback;
  font-weight: 700;
  size-adjust: 94.53%;
  src: local("Verdana Bold");
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: var(--nav-height);
}

body {
  display: none;
  margin: 0;
  background-color: var(--color-neutral-50);
  color: var(--text-color);
  font-family: var(--type-body-l-family);
  font-size: var(--type-body-l-size);
  font-weight: var(--type-body-l-weight);
  line-height: var(--type-body-l-line-height);
  letter-spacing: var(--type-body-l-letter-spacing);
}

body.appear {
  display: block;
}

.rte-color-white {
  color: var(--color-primary-white);
}

.rte-color-red {
  color: var(--color-primary-red);
}

.rte-color-plum {
  color: var(--color-primary-plum);
}

.rte-color-buff {
  color: var(--color-secondary-buff);
}

/* skip link- visually hidden until keyboard focus */
.skip-to-main {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-to-main:focus,
.skip-to-main:focus-visible {
  position: fixed;
  left: var(--space-16);
  top: var(--space-16);
  z-index: 10000;
  width: auto;
  height: auto;
  margin: 0;
  padding-block: var(--space-12);
  padding-inline: var(--space-16);
  overflow: visible;
  clip-path: none;
  white-space: normal;
  border: 2px solid var(--color-link-default);
  border-radius: var(--space-4);
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--type-body-l-family);
  font-size: var(--type-body-l-size);
  font-weight: var(--type-body-l-weight);
  line-height: var(--type-body-l-line-height);
  text-decoration: none;
  box-shadow: 0 var(--space-4) var(--space-16) rgb(0 0 0 / 15%);
}

.skip-to-main:focus:hover,
.skip-to-main:focus-visible:hover {
  color: var(--link-hover-color);
  border-color: var(--link-hover-color);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  overflow: visible;
}

header .header,
footer .footer {
  visibility: hidden;
}

header .header[data-block-status="loaded"],
footer .footer[data-block-status="loaded"] {
  visibility: visible;
}

/* Breadcrumbs base styles */

.breadcrumbs {
  --breadcrumbs-text-color: inherit;
  --breadcrumbs-nav-mobile-display: flex;
  --breadcrumbs-nav-desktop-display: none;
  --breadcrumbs-nav-block-padding: var(--space-16);
  --breadcrumbs-separator-color: var(--color-primary-red);
  --breadcrumbs-link-decoration-color: var(--color-neutral-600);
  --breadcrumbs-link-outline-color: var(--breadcrumbs-separator-color);

  color: var(--breadcrumbs-text-color);
  margin-top: var(--nav-height);

  /* Breadcrumbs theme variations */
  .dark & {
    --breadcrumbs-text-color: var(--color-text-inverse);
    --breadcrumbs-separator-color: var(--color-text-inverse);
    --breadcrumbs-link-decoration-color: var(
      --color-link-decoration-on-contrast
    );
  }
}

.breadcrumbs-container {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  max-width: var(--layout-content-max-width);
  margin-inline: auto;
  height: var(--breadcrumbs-height);
  padding-block: var(--breadcrumbs-nav-block-padding);
  padding-inline: var(--layout-content-padding-x);
}

.breadcrumbs-nav {
  font-size: var(--type-body-s-size);
  font-weight: var(--type-body-s-weight);
  line-height: var(--type-body-s-line-height);
}

.breadcrumbs-desktop {
  display: var(--breadcrumbs-nav-desktop-display);
}

.breadcrumbs-mobile {
  display: var(--breadcrumbs-nav-mobile-display);
  align-items: center;
  gap: var(--space-8);
}

@media (width >= 1200px) {
  .breadcrumbs {
    --breadcrumbs-nav-desktop-display: block;
    --breadcrumbs-nav-mobile-display: none;
    --breadcrumbs-nav-block-padding: var(--space-32);
  }
}

.breadcrumbs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-8);
}

.breadcrumbs-item {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.breadcrumbs-sep {
  color: var(--breadcrumbs-separator-color);
  user-select: none;
}

.breadcrumbs-item:not(:first-child)::before {
  content: "/";
  color: var(--breadcrumbs-separator-color);
}

.breadcrumbs-back-icon {
  display: inline-flex;
}

.breadcrumbs-back-icon svg {
  display: block;
  width: 19px;
  height: 16px;
}

/* breadcrumbs sit over the plum careers hero bleed */
body.careers-graduates-page .breadcrumbs {
  --breadcrumbs-text-color: var(--color-text-inverse);
  --breadcrumbs-separator-color: var(--color-text-inverse);
  --breadcrumbs-link-decoration-color: var(--color-link-decoration-on-contrast);
}

/* breadcrumbs global styles when it's enabled */
head:has(meta[name="hide-breadcrumbs"][content="false"]) + body {
  /* styles when breadcrumbs has not been injected yet (as it is lazy loaded and injected) */
  > header + main {
    /* properties for main when there is no hero as first block of first section,
      and we need reserving breadcrumbs space to avoid Cumulative Layout Shift (CLS) */
    &:not(:has(.section:first-child > *:first-child[class*="hero"])) {
      margin-block-start: var(--nav-height);
      padding-block-start: var(--breadcrumbs-height);
    }
  }

  /* styles when hero is the first block of the first section
    (whether breadcrumbs has or hasn't been injected yet) */

  /* breadcrumbs base layout properties */
  > .breadcrumbs:has(
      + main > .section:first-child > *:first-child[class*="hero"]
    ) {
    position: absolute;
    width: 100%;
    z-index: 1;
  }

  /* base properties for first hero of first section */
  > main
    > .section:first-child
    > *:first-child[class*="hero"]:not(:has(.hero-bleed)) {
    padding-block-start: calc(var(--nav-height) + var(--breadcrumbs-height));
  }

  /* breadcrumbs base theme rules to match the first hero theme */
  > .breadcrumbs:has(
      + main > .section:first-child > *:first-child[class*="hero"] > .dark
    ),
  > .breadcrumbs:has(
      + main
        > .section:first-child
        > *:first-child[class*="hero"]
        > :is(.hero-banner-office, .hero-banner-leadership, .hero-banner-careers)
    ),
  > .breadcrumbs:has(
      + main
        > .section:first-child
        > *:first-child[class*="hero"]
        > .hero-banner-event-detail
    ),
  > .breadcrumbs:has(
      + main
        > .section:first-child
        > *:first-child[class*="hero"]:is(.theme-dark, .theme-plum)
    ),
  > .breadcrumbs:has(
      + main
        > .section:first-child
        > *:first-child[class*="hero"]
        > .hero.event-detail
    ),
  > .breadcrumbs:has(
      + main
        > .section:first-child
        > *:first-child[class*="hero"]
        > .hero.careers
    ),
  > .breadcrumbs:has(
      + main
        > .section:first-child
        > *:first-child[class*="hero"]
        > .hero:is(.statement, .campaign):is(.theme-dark, .theme-plum)
    ) {
    --breadcrumbs-text-color: var(--color-text-inverse);
    --breadcrumbs-separator-color: var(--color-text-inverse);
    --breadcrumbs-link-decoration-color: var(
      --color-link-decoration-on-contrast
    );
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0.8em;
  margin-bottom: 0.25em;
  font-family: var(--type-heading-1-family);
  font-weight: var(--type-heading-1-weight);
  line-height: var(--type-heading-1-line-height);
  letter-spacing: var(--type-heading-1-letter-spacing);
  scroll-margin: 40px;
}

h1 {
  font-family: var(--type-heading-1-family);
  font-weight: var(--type-heading-1-weight);
  font-size: var(--type-heading-1-size);
  line-height: var(--type-heading-1-line-height);
  letter-spacing: var(--type-heading-1-letter-spacing);
  text-transform: var(--type-heading-1-text-transform);
}

/* NRF-3791: page H2s use the article scale (40px / 64px). Blocks still override
   this from their own CSS; header and footer keep the heading-2 scale. */
h2 {
  font-family: var(--type-heading-2-family);
  font-weight: var(--type-heading-2-weight);
  font-size: var(--type-article-h2-size);
  line-height: var(--type-article-h2-line-height);
  letter-spacing: var(--type-heading-2-letter-spacing);
  text-transform: var(--type-heading-2-text-transform);
}

header h2,
footer h2 {
  font-size: var(--type-heading-2-size);
  line-height: var(--type-heading-2-line-height);
}

h3 {
  font-family: var(--type-heading-3-family);
  font-weight: var(--type-heading-3-weight);
  font-size: var(--type-heading-3-size);
  line-height: var(--type-heading-3-line-height);
  letter-spacing: var(--type-heading-3-letter-spacing);
  text-transform: var(--type-heading-3-text-transform);
}

h4 {
  font-family: var(--type-heading-4-family);
  font-weight: var(--type-heading-4-weight);
  font-size: var(--type-heading-4-size);
  line-height: var(--type-heading-4-line-height);
  letter-spacing: var(--type-heading-4-letter-spacing);
  text-transform: var(--type-heading-4-text-transform);
}

h5 {
  font-family: var(--type-heading-5-family);
  font-weight: var(--type-heading-5-weight);
  font-size: var(--type-heading-5-size);
  line-height: var(--type-heading-5-line-height);
  letter-spacing: var(--type-heading-5-letter-spacing);
  text-transform: var(--type-heading-5-text-transform);
}

h6 {
  font-family: var(--type-heading-6-family);
  font-weight: var(--type-heading-6-weight);
  font-size: var(--type-heading-6-size);
  line-height: var(--type-heading-6-line-height);
  letter-spacing: var(--type-heading-6-letter-spacing);
  text-transform: var(--type-heading-6-text-transform);
}

/* Shared small-caps label style (category tags, card eyebrows, etc). Pins
   font-family explicitly so it stays correct on any element, including
   heading tags that would otherwise inherit the display/serif family from
   the h1-h6 rules above. */
.eyebrow {
  font-family: var(--type-label-eyebrow-family);
  font-size: var(--type-label-eyebrow-size);
  font-weight: var(--type-label-eyebrow-weight);
  line-height: var(--type-label-eyebrow-line-height);
  letter-spacing: var(--type-label-eyebrow-letter-spacing);
  text-transform: var(--type-label-eyebrow-text-transform);
}

p,
dl,
ol,
ul,
pre,
blockquote {
  margin-top: 0.8em;
  margin-bottom: 0.25em;
}

/* NRF-4497: a raised sup (footnote marker) with its own line-height would make the line it sits on
   taller than the others, which breaks the paragraph spacing. */
sup,
sub {
  line-height: 0;
}

/* NRF-1280 / CPY-10: migrated pull quotes in default richtext (legacy nrf-blockquote) */
blockquote.nrf-blockquote {
  margin: var(--space-40) 0;
  padding: 0 0 0 var(--space-24);
  border: 0;
  border-left: 2px solid var(--color-secondary-soft-black);
  font-family: var(--type-font-family-display);
  font-weight: var(--type-weight-regular);
  font-size: var(--type-heading-5-size);
  line-height: var(--type-lh-heading);
  letter-spacing: var(--type-ls-default);
  color: var(--color-text-primary);
}

blockquote.nrf-blockquote::before {
  content: "";
  display: block;
  width: 69px;
  height: 58px;
  margin-bottom: var(--space-16);
  background-color: var(--color-primary-red);
  mask: url("../icons/quote-mark.svg") center / contain no-repeat;
}

blockquote.nrf-blockquote :is(span, p) {
  margin: 0;
}

blockquote.nrf-blockquote em,
blockquote.nrf-blockquote cite {
  display: block;
  margin-top: var(--space-16);
  font-family: var(--type-body-l-family);
  font-weight: var(--type-body-l-weight);
  font-size: var(--type-body-l-size);
  line-height: var(--type-body-l-line-height);
  letter-spacing: var(--type-body-l-letter-spacing);
  font-style: normal;
  color: var(--color-text-secondary);
}

@media (width >= 768px) {
  blockquote.nrf-blockquote {
    margin: var(--space-48) 0;
    padding-left: var(--space-32);
  }

  blockquote.nrf-blockquote::before {
    width: 3rem;
    height: 2.5rem;
    margin-bottom: var(--space-20);
  }
}

@media (width >= 1200px) {
  blockquote.nrf-blockquote::before {
    width: 3.5rem;
    height: 3rem;
    margin-bottom: var(--space-24);
  }

  blockquote.nrf-blockquote em,
  blockquote.nrf-blockquote cite {
    margin-top: var(--space-20);
  }
}

code,
pre {
  font-size: var(--body-font-size-s);
}

pre {
  padding: var(--space-16);
  border-radius: var(--space-8);
  background-color: var(--light-color);
  overflow-x: auto;
  white-space: pre;
}

b,
strong {
  font-weight: var(--type-weight-bold);
}

/* main content margins — uses spacing tokens (all page templates) */
main > div {
  margin: var(--space-40) var(--space-16);
}

input,
textarea,
select,
button {
  font: inherit;
}

/* links */
a:any-link {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--color-link-decoration);
  overflow-wrap: break-word;
}

a:hover {
  text-decoration: none;
}

a:focus-visible {
  border-radius: 0.25rem;
  outline: 1px dashed var(--color-link-focus-outline);
  text-decoration-line: underline;
}

a[aria-disabled="true"] {
  color: var(--color-link-disabled);
  cursor: not-allowed;
  text-decoration-color: currentcolor;
}

/* Global RTE table */
table {
  --rte-table-col-gap: var(--space-24);
  --rte-table-row-gap: var(--space-8);
  --rte-table-header-gap: var(--space-40);
  --rte-table-header-font-size: 1.5rem; /* 24px, per Figma dev spec */
  --rte-table-min-width: 45rem; /* 720px */

  display: block;
  width: 100%;
  max-width: 100%;
  margin-block: var(--space-48);
  border: 0;
  border-collapse: collapse;
  border-spacing: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table > :is(thead, tbody, tfoot) {
  display: table;
  width: 100%;
  min-width: var(--rte-table-min-width);
}

/* thead and tbody are separate tables, equal column widths keep headings over their cells */
table:has(thead) > :is(thead, tbody, tfoot) {
  table-layout: fixed;
}

@media (width >= 768px) {
  table > :is(thead, tbody, tfoot) {
    min-width: 0;
  }
}

@media (width >= 1200px) {
  table {
    margin-block: var(--space-56);
  }
}

table :is(td, th) {
  padding: 0;
  padding-inline-end: var(--rte-table-col-gap);
  border: 0;
  text-align: start;
  vertical-align: top;
  overflow-wrap: break-word;
}

table :is(td, th):last-child {
  padding-inline-end: 0;
}

table thead th,
table:not(:has(thead)) tbody > tr:first-child > :is(td, th) {
  padding-block-end: var(--rte-table-header-gap);
  color: var(--color-text-primary);
  font-family: var(--type-font-family-body);
  font-size: var(--rte-table-header-font-size);
  font-weight: var(--type-weight-regular);
  line-height: var(--type-lh-heading);
  letter-spacing: var(--type-ls-default);
}

table:has(thead) tbody > tr > :is(td, th),
table:not(:has(thead)) tbody > tr:not(:first-child) > :is(td, th) {
  padding-block: var(--rte-table-row-gap) var(--space-24);
  border-top: 1px solid var(--color-neutral-100);
  color: var(--color-text-primary);
  font-family: var(--type-body-m-family);
  font-size: var(--type-body-m-size);
  font-weight: var(--type-body-m-weight);
  line-height: var(--type-body-m-line-height);
  letter-spacing: var(--type-body-m-letter-spacing);
}

table :is(td, th) > p {
  margin: 0;
}

table :is(td, th) > p + p {
  margin-block-start: var(--space-8);
}

table a:any-link {
  color: inherit;
  text-decoration-line: underline;
  text-underline-offset: 0.15em;
}

table a:hover {
  color: inherit;
  text-decoration: none;
}

table a:focus-visible {
  outline: 1px dashed var(--color-primary-red);
  outline-offset: var(--space-4);
}

/* breadcrumbs links */
.breadcrumbs-nav a:any-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--breadcrumbs-link-decoration-color);
  text-underline-offset: 0.12em;
}

.breadcrumbs-nav a:hover {
  color: inherit;
  text-decoration-color: transparent;
}

.breadcrumbs-nav a:focus-visible {
  outline: 1px dashed var(--breadcrumbs-link-outline-color);
  outline-offset: var(--space-4);
  border-radius: var(--space-4);
}

main img {
  max-width: 100%;
  width: auto;
  height: auto;
}

.icon {
  display: inline-block;
  height: 24px;
  width: 24px;
}

.icon img {
  height: 100%;
  width: 100%;
}

/* reference media ratio pattern (token-driven) */
.media-ratio {
  aspect-ratio: var(--media-aspect-ratio, var(--media-ratio-1-1));
  overflow: hidden;
}

.media-ratio > img,
.media-ratio > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* sections — content grid (--layout-content-* tokens, styles/tokens/spacing.css) */
main > .section {
  margin-block: var(--space-56);
  margin-inline: var(--space-0);
}

/* Fallback: a hero-bleed block always owns its section's full top edge, so
   it can bleed under the fixed nav. Several blocks (services-tout,
   promo-tout, tout-large-pill-callout, …) set their own top padding — and,
   services-tout also an opaque white background — on `.section.<block>-
   container` for when that block has its own dedicated section; if content
   is authored without a `---` divider between one of those and a hero, that
   padding/background pushes the hero's own color down instead, leaving a
   plain white gap behind the fixed nav (NRF-4384: the nav's dark-theme
   styling then has nothing but that white gap to blend against). `div` adds
   one element to this rule's specificity — (0,2,2) vs a single `div.section.
   <block>-container` rule's (0,2,1) — matching `:has()`'s own specificity
   (that of its argument, here one class) to `.section` and still beating
   those rules outright, regardless of CSS load order. */
main > div.section:has(.hero-bleed) {
  padding-block-start: 0;
  background-color: transparent;
}

main > .section > div {
  max-width: var(--layout-content-max-width);
  margin: auto;
  padding-block: var(--space-0);
  padding-inline: var(--layout-content-padding-x-mobile);
}

main > .section > div:has(.embed-ceros-site),
main > .section > div:has(.embed-ceros-com) {
  padding-block: unset;
  padding-inline: unset;
  max-width: unset;
}

main > .section:first-of-type {
  margin-block-start: 0;
}

main > .section:last-child {
  margin-block-end: 0;
}

@media (width >= 1200px) {
  main > .section > div {
    padding-block: var(--space-0);
    padding-inline: var(--layout-content-padding-x);
  }
}

main > .section:first-of-type .advanced-text-wrapper h1,
main > .section:first-of-type .default-content-wrapper h1 {
  color: var(--color-primary-red);
  padding-block: var(--space-32);
  margin: 0;
}

@media (width >= 1200px) {
  main > .section:first-of-type .advanced-text-wrapper h1,
  main > .section:first-of-type .default-content-wrapper h1 {
    font-size: var(--type-heading-2-size);
  }
}

/* theme page property: meta name="theme" → body classes (models/_page.json) */
body.dark {
  background-color: var(--color-secondary-soft-black);
  color: var(--color-text-inverse);

  --text-color: var(--color-text-inverse);
  --light-color: var(--color-neutral-800);
  --dark-color: var(--color-neutral-100);
  --link-color: var(--color-tertiary-light-blue);
  --link-hover-color: var(--color-primary-white);
}

body.light {
  /* explicit light shell; tokens already match default surface */
  background-color: var(--color-surface-default);
  color: var(--color-text-primary);

  --text-color: var(--color-text-primary);
  --light-color: var(--color-surface-subtle);
  --dark-color: var(--color-neutral-800);
  --link-color: var(--color-link-default);
  --link-hover-color: var(--color-link-hover);
}

/* Careers graduates template: white page shell (NRF-4237) */
body.careers-graduates-page {
  background-color: var(--color-surface-default);
}

/* Pages Menu bar follows the white page shell on careers graduates (NRF-4237) */
body.careers-graduates-page .pages-menu-wrapper {
  --pages-menu-background-color: var(--color-surface-default);
}

body:has(.coveo-search) {
  background-color: var(--color-primary-white);
}

/*
 * Shared Atomic search-box pill (Coveo search, header tray, error page).
 * Applied when setupFilledSearchState() adds `.nrf-search-box`.
 *
 * Mobile: no in-field placeholder — guidance is the `.atomic-search-hint` below.
 * Tablet+: placeholder in the field when empty; hide the below-hint until the
 * box has a value (then the hint stays as the search tip under the field).
 */
.atomic-search-hint {
  margin: 0;
  font-family: var(--type-body-s-family);
  font-size: var(--type-body-s-size);
  font-weight: var(--type-body-s-weight);
  line-height: var(--type-body-s-line-height);
  color: var(--color-neutral-600);
}

@media (width >= 768px) {
  atomic-search-box.nrf-search-box:not(.has-value) ~ .atomic-search-hint {
    display: none;
  }
}

/* Pill search field: Neutral/50 fill, full width, icon on the right (Figma). */
atomic-search-box.nrf-search-box {
  display: block;
  width: 100%;

  --atomic-primary: var(--color-primary-red);
  --atomic-neutral: var(--color-border-subtle);
  --atomic-neutral-light: var(--color-neutral-50);
  --atomic-neutral-dark: var(--color-neutral-600);
  --atomic-background: var(--color-neutral-50);
  --atomic-on-background: var(--color-text-primary);
  --atomic-border-radius: 100px;
  --atomic-font-family: var(--type-font-family-body);
}

atomic-search-box.nrf-search-box::part(wrapper) {
  position: relative;
  display: flex;
  align-items: center;
  block-size: var(--space-64);
  padding-block: var(--space-4);
  padding-inline: var(--space-32) var(--space-20);
  border: 1px solid var(--color-neutral-200);
  border-radius: 100px;
  background-color: var(--color-neutral-50);
}

atomic-search-box.nrf-search-box::part(wrapper):hover {
  border-color: var(--color-neutral-300);
}

atomic-search-box.nrf-search-box::part(wrapper):focus-within {
  outline: none;
  box-shadow: none;
}

atomic-search-box.nrf-search-box::part(wrapper):focus-within::after {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--space-4));
  border: 1px dashed var(--color-primary-red);
  border-radius: 100px;
  pointer-events: none;
}

/* Atomic's OOTB textarea auto-expands via a grid + replicated-value pattern.
   Keep NRF's pill single-line (Figma) by disabling that growth. */
atomic-search-box.nrf-search-box::part(textarea-expander) {
  display: block;
  flex: 1 1 auto;
  min-inline-size: 0;
  max-block-size: 100%;
  overflow: hidden;
  align-self: center;
}

atomic-search-box.nrf-search-box::part(textarea-expander)::after {
  content: none;
}

/* Matches .visually-hidden. The label lives in the search-box shadow tree. */
atomic-search-box.nrf-search-box::part(textarea-label) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Figma order: textarea … search icon (Atomic defaults to submit first). */
atomic-search-box.nrf-search-box::part(textarea) {
  order: 1;
  display: block;
  inline-size: 100%;
  block-size: 100%;
  max-block-size: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--type-font-family-body);
  font-size: 1.1875rem; /* 19px */
  font-weight: var(--type-weight-regular);
  line-height: var(--type-lh-heading);
  color: var(--color-secondary-soft-black);
  caret-color: var(--color-primary-red);
  white-space: nowrap;
  overflow: auto hidden;
  resize: none;
  field-sizing: fixed;
}

atomic-search-box.nrf-search-box::part(textarea)::placeholder {
  color: transparent;
}

@media (width >= 768px) {
  atomic-search-box.nrf-search-box::part(textarea)::placeholder {
    color: var(--color-neutral-600);
  }
}

@media (width >= 1200px) {
  atomic-search-box.nrf-search-box::part(textarea) {
    font-size: var(--type-hero-subheading-size); /* 24px */
  }
}

atomic-search-box.nrf-search-box::part(clear-button-wrapper) {
  margin-inline: 0 var(--space-8);
}

atomic-search-box.nrf-search-box::part(clear-button):focus-visible {
  outline: 1px dashed var(--color-primary-red);
  border-radius: var(--space-4);
}

atomic-search-box.nrf-search-box::part(submit-button-wrapper) {
  order: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: 0;
  padding: 0;
}

atomic-search-box.nrf-search-box::part(submit-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: var(--space-40);
  block-size: var(--space-40);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: var(--color-primary-red);
}

atomic-search-box.nrf-search-box::part(submit-button):focus-visible {
  outline: 1px dashed var(--color-primary-red);
  border-radius: var(--space-4);
}

/*
 * Shadow DOM: light-DOM `.button.primary` cannot reach Atomic's submit;
 * mirror primary CTA when setupFilledSearchState toggles `.has-value`.
 */
atomic-search-box.nrf-search-box.has-value::part(submit-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: auto;
  block-size: auto;
  gap: var(--space-8);
  max-width: 100%;
  min-block-size: var(--space-48);
  padding: var(--space-12) var(--space-24);
  border-style: solid;
  border-width: 2px;
  border-color: var(--color-primary-red);
  border-radius: 100px;
  background-color: var(--color-primary-red);
  color: var(--color-primary-white);
  font-family: var(--body-font-family);
  font-style: normal;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-wrap: auto;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    border-width 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

atomic-search-box.nrf-search-box.has-value::part(submit-button):focus {
  outline: none;
}

atomic-search-box.nrf-search-box.has-value::part(submit-button):hover {
  outline: 2px solid var(--color-tertiary-maroon);
  border-color: var(--color-tertiary-maroon);
  color: var(--color-primary-white);
  text-decoration: none;
}

atomic-search-box.nrf-search-box.has-value::part(submit-button):focus-visible {
  outline: 1px dashed var(--color-primary-red);
  outline-offset: var(--space-4);
}

atomic-search-box.nrf-search-box::part(submit-icon) {
  display: block;
  inline-size: var(--space-24);
  block-size: var(--space-24);
  margin: 0;
  color: var(--color-primary-red);
}

atomic-search-box.nrf-search-box.has-value::part(submit-icon) {
  display: none;
}

atomic-search-box.nrf-search-box::part(textarea-spacer) {
  display: none;
}

/* section metadata */
main .section.light,
main .section.highlight {
  background-color: var(--light-color);
  margin: var(--space-0);
  padding-block: var(--space-56);
  padding-inline: var(--space-0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.button,
.button:any-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  height: fit-content;
  max-width: 100%;
  min-height: var(--space-48);
  padding: var(--space-12) var(--space-24);
  border-radius: 100px;
  border-style: solid;
  border-width: 2px;
  font-family: var(--body-font-family);
  font-style: normal;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-wrap: auto;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    border-width 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.button:focus {
  outline: none;
}

.button:hover {
  text-decoration: none;
}

/* ——— background Light: primary ——— */
.button.primary {
  background-color: var(--color-primary-red);
  border-color: var(--color-primary-red);
  color: var(--color-primary-white);
}

.button.primary svg * {
  fill: var(--color-primary-white);
}

.button.primary img {
  filter: brightness(0) invert(1);
}

.button.secondary svg * {
  fill: var(--color-primary-plum);
}

/* Lower-specificity tertiary disabled icons must precede primary `.button:not(...)` svg rules. */
.button.tertiary[aria-disabled="true"] svg *,
.button.tertiary:disabled svg * {
  fill: var(--color-neutral-300);
}

.button.primary:hover {
  outline: 2px solid var(--color-tertiary-maroon);
  border-color: var(--color-tertiary-maroon);
  color: var(--color-primary-white);
}

.button.primary:focus-visible {
  outline: 1px dashed var(--color-primary-red);
  outline-offset: var(--space-4);
}

.button.primary[aria-disabled="true"],
.button.primary[aria-disabled="true"]:hover,
.button.primary:disabled {
  background-color: var(--color-neutral-300);
  border-color: var(--color-neutral-300);
  color: var(--color-primary-white);
  pointer-events: none;
}

/* ——— background Light: secondary ——— */
.button.secondary {
  background-color: transparent;
  border-width: 2px;
  border-color: var(--color-primary-plum);
  color: var(--color-primary-plum);
}

.button.secondary:focus-visible {
  outline: 1px dashed var(--color-primary-red);
  outline-offset: var(--space-4);
}

.button.secondary[aria-disabled="true"],
.button.secondary[aria-disabled="true"]:hover,
.button.secondary:disabled {
  background-color: transparent;
  border-color: var(--color-neutral-300);
  color: var(--color-neutral-300);
  pointer-events: none;
}

.button.secondary[aria-disabled="true"] svg *,
.button.secondary:disabled svg * {
  fill: var(--color-neutral-300);
}

.button.secondary:hover,
.button.secondary:not([aria-disabled="true"]):hover,
.button.secondary:not(:disabled):hover {
  /* outline avoids layout shift vs thicker border on hover */
  outline: 2px solid var(--color-primary-plum);
  border-color: var(--color-primary-plum);
}

/* ——— background Light: tertiary ——— */
.button.tertiary {
  min-height: unset;
  padding: var(--space-8) var(--space-0);
  background-color: transparent;
  border-color: transparent;
  color: var(--color-primary-plum);
  white-space: normal;
}

.button.tertiary:focus-visible {
  outline: 1px dashed var(--color-primary-red);
  outline-offset: var(--space-4);
}

.button.tertiary[aria-disabled="true"],
.button.tertiary[aria-disabled="true"]:hover,
.button.tertiary:disabled,
.button.tertiary:disabled:hover {
  color: var(--color-neutral-300);
  pointer-events: none;
}

/* ——— background Dark (themed block ancestor; skip .theme-default islands) ——— */
:is(.dark, .theme-dark, .theme-plum, [data-theme="dark"])
  :is(.button.primary:not(.theme-default *)) {
  background-color: var(--color-primary-white);
  border-color: var(--color-primary-white);
  color: var(--color-primary-plum);
}

:is(.dark, .theme-dark, .theme-plum, [data-theme="dark"])
  :is(.button.primary:not(.theme-default *) svg *) {
  fill: var(--color-primary-plum);
}

:is(.dark, .theme-dark, .theme-plum, [data-theme="dark"])
  :is(.button.primary:not(.theme-default *) img) {
  filter: none;
}

:is(.dark, .theme-dark, .theme-plum, [data-theme="dark"])
  :is(
    .button.primary:not(.theme-default *):hover,
    .button.primary:not(.theme-default *, [aria-disabled="true"]):hover,
    .button.primary:not(.theme-default *, :disabled):hover
  ) {
  outline: 2px solid var(--color-neutral-200); /* Evaluate using outline 2px instead of border 4px, to avoid element size increase */
  border-color: var(--color-neutral-200);
}

:is(.dark, .theme-dark, .theme-plum, [data-theme="dark"])
  :is(.button.primary:not(.theme-default *):focus-visible) {
  outline: 1px dashed var(--color-primary-white);
  outline-offset: var(--space-4);
}

:is(.dark, .theme-dark, .theme-plum, [data-theme="dark"])
  :is(
    .button.primary:not(.theme-default *)[aria-disabled="true"],
    .button.primary:not(.theme-default *):disabled,
    .button.primary:not(.theme-default *)[aria-disabled="true"]:hover,
    .button.primary:not(.theme-default *):disabled:hover
  ) {
  background-color: var(--color-neutral-300);
  border: 2px solid var(--color-neutral-300);
  color: var(--color-primary-white);
}

:is(.dark, .theme-dark, .theme-plum, [data-theme="dark"])
  :is(
    .button.primary:not(.theme-default *)[aria-disabled="true"] svg *,
    .button.primary:not(.theme-default *):disabled svg *
  ) {
  fill: var(--color-primary-white);
}

:is(.dark, .theme-dark, .theme-plum, [data-theme="dark"])
  :is(
    .button.primary:not(.theme-default *)[aria-disabled="true"] img,
    .button.primary:not(.theme-default *):disabled img
  ) {
  filter: brightness(0) invert(1);
}

:is(.dark, .theme-dark, .theme-plum, [data-theme="dark"])
  :is(.button.secondary:not(.theme-default *)) {
  background-color: transparent;
  border-width: 2px;
  border-color: var(--color-primary-white);
  color: var(--color-primary-white);
}

:is(.dark, .theme-dark, .theme-plum, [data-theme="dark"])
  :is(.button.secondary:not(.theme-default *) svg *) {
  fill: var(--color-primary-white);
}

:is(.dark, .theme-dark, .theme-plum, [data-theme="dark"])
  :is(.button.secondary:not(.theme-default *) img) {
  filter: brightness(0) invert(1);
}

:is(.dark, .theme-dark, .theme-plum, [data-theme="dark"])
  :is(
    .button.secondary:not(.theme-default *):hover,
    .button.secondary:not(.theme-default *, [aria-disabled="true"]):hover,
    .button.secondary:not(.theme-default *, :disabled):hover
  ) {
  outline: 2px solid var(--color-neutral-200);
  border-color: var(--color-neutral-200);
}

:is(.dark, .theme-dark, .theme-plum, [data-theme="dark"])
  :is(.button.secondary:not(.theme-default *):focus-visible) {
  outline: 1px dashed var(--color-primary-white);
  outline-offset: var(--space-4);
}

:is(.dark, .theme-dark, .theme-plum, [data-theme="dark"])
  :is(
    .button.secondary:not(.theme-default *)[aria-disabled="true"],
    .button.secondary:not(.theme-default *):disabled,
    .button.secondary:not(.theme-default *)[aria-disabled="true"]:hover,
    .button.secondary:not(.theme-default *):disabled:hover
  ) {
  border: 2px solid var(--color-neutral-300);
  color: var(--color-neutral-300);
  pointer-events: none;
}

:is(.dark, .theme-dark, .theme-plum, [data-theme="dark"])
  :is(
    .button.secondary:not(.theme-default *)[aria-disabled="true"] svg *,
    .button.secondary:not(.theme-default *):disabled svg *
  ) {
  fill: var(--color-neutral-300);
}

:is(.dark, .theme-dark, .theme-plum, [data-theme="dark"])
  :is(
    .button.secondary:not(.theme-default *)[aria-disabled="true"] img,
    .button.secondary:not(.theme-default *):disabled img
  ) {
  filter: none;
}

:is(.dark, .theme-dark, .theme-plum, [data-theme="dark"])
  :is(.button.tertiary:not(.theme-default *)) {
  color: var(--color-primary-white);
}

:is(.dark, .theme-dark, .theme-plum, [data-theme="dark"])
  :is(.button.tertiary:not(.theme-default *) svg *) {
  fill: var(--color-primary-white);
}

:is(.dark, .theme-dark, .theme-plum, [data-theme="dark"])
  :is(.button.tertiary:not(.theme-default *) img) {
  filter: brightness(0) invert(1);
}

:is(.dark, .theme-dark, .theme-plum, [data-theme="dark"])
  :is(.button.tertiary:not(.theme-default *):focus-visible) {
  outline: 1px dashed var(--color-primary-white);
  outline-offset: var(--space-4);
}

:is(.dark, .theme-dark, .theme-plum, [data-theme="dark"])
  :is(
    .button.tertiary:not(.theme-default *)[aria-disabled="true"],
    .button.tertiary:not(.theme-default *):disabled,
    .button.tertiary:not(.theme-default *)[aria-disabled="true"]:hover,
    .button.tertiary:not(.theme-default *):disabled:hover
  ) {
  color: var(--color-neutral-300);
  pointer-events: none;
}

:is(.dark, .theme-dark, .theme-plum, [data-theme="dark"])
  :is(
    .button.tertiary:not(.theme-default *)[aria-disabled="true"] svg *,
    .button.tertiary:not(.theme-default *):disabled svg *
  ) {
  fill: var(--color-neutral-300);
}

:is(.dark, .theme-dark, .theme-plum, [data-theme="dark"])
  :is(
    .button.tertiary:not(.theme-default *)[aria-disabled="true"] img,
    .button.tertiary:not(.theme-default *):disabled img
  ) {
  filter: none;
}

/* ——— trailing arrow icon ——— */
.button .button-arrow {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  line-height: 0;
}

.button .button-arrow svg,
.button .button-arrow img {
  width: 19px;
  height: 16px;
  display: block;
  object-fit: contain;
}

/* A Bynder icon is delivered as a bitmap. The mask lets it take the button text color. */
.button .button-arrow.button-arrow-mask {
  inline-size: 19px;
  block-size: 16px;
  background-color: currentcolor;
  /* stylelint-disable-next-line property-no-vendor-prefix -- Safari < 15.4 needs the prefixed alias */
  -webkit-mask: var(--button-icon) center / contain no-repeat;
  mask: var(--button-icon) center / contain no-repeat;
}

/* ——— card hover-reveal arrow (bottom-right, per design system) ———
   Consumers append `createCardHoverArrow()` (scripts/icons/icons.js) into the card and
   add their own `:hover`/`:focus-within` rule on the card container to reveal it. */
.card-hover-arrow {
  position: absolute;
  inset-block-end: var(--card-hover-arrow-inset-block, var(--space-32));
  inset-inline-end: var(--card-hover-arrow-inset-inline, var(--space-32));
  opacity: 0;
  pointer-events: none;
  transform: translateX(-0.5rem);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .card-hover-arrow {
    transition: none;
  }
}

.button-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
  list-style-type: none;
  margin: var(--space-0);
  padding: var(--space-0);
}

.button-list-item {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
  list-style-type: none;
  float: left;
}

/* a lone standalone button sits on its own line; adjacent ones keep floating side by side */
p.button-list-item:not(.button-list-item + *, :has(+ .button-list-item)) {
  display: block;
  float: none;
}

html:not([class="adobe-ue-edit"]) {
  .section > div[class$="-wrapper"]:has(.block.no-content),
  .section
    > .content-container
    > div[class$="-wrapper"]:has(.block.no-content) {
    display: none;
  }
}
