/* Print stylesheet — NRF-1015
   Wrapped in @media print because Adobe Edge Delivery Services strips the
   media="print" attribute from the <link> in head.html; without this guard
   these rules would apply on-screen too. See AC-02/AC-03. */

@media print {
  html {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  
  :root {
    /* ——— Print type scale and spacing (NRF-4537) ———
       Values are rem at the 16px root, so 1rem = 12pt (pt ÷ 12 = rem). */
    --type-heading-1-size: 2.3333rem; /* 28pt */
    --type-heading-2-size: 1.8333rem; /* 22pt */
    --type-heading-3-size: 1.5rem; /* 18pt */
    --type-heading-4-size: 1.25rem; /* 15pt */
    --type-heading-5-size: 1.125rem; /* 13.5pt */
    --type-heading-6-size: 1rem; /* 12pt */
    --type-heading-4-weight: var(--type-weight-semibold);
    --type-heading-5-weight: var(--type-weight-semibold);
    --type-heading-6-weight: var(--type-weight-bold);
    --type-body-l-size: 1rem; /* 12pt */
    --type-body-m-size: 0.9167rem; /* 11pt */
    --type-body-s-size: 0.8333rem; /* 10pt */
    --type-label-eyebrow-size: 0.75rem; /* 9pt */
    --type-hero-heading-size: 2.6667rem; /* 32pt */
    --type-hero-heading-size-80: 2.6667rem;
    --type-hero-heading-size-100: 2.6667rem;
    --type-hero-heading-size-120: 2.6667rem;
    --type-hero-heading-size-130: 2.6667rem;
    --type-hero-heading-size-140: 2.6667rem;
    --type-hero-heading-size-150: 2.6667rem;
    --type-hero-heading-letter-spacing: var(--type-ls-default);
    --type-hero-subheading-size: 1.3333rem; /* 16pt */
    --type-hero-body-size: 1rem; /* 12pt */
    --type-article-h2-size: 1.8333rem; /* 22pt */
    --type-article-hero-h1-size: 2.3333rem; /* 28pt */
    --type-rte-h2-size: 1.8333rem; /* 22pt */
    --type-rte-h3-size: 1.5rem; /* 18pt */
    --type-rte-h4-size: 1.25rem; /* 15pt */
    --type-rte-h5-size: 1.0833rem; /* 13pt */
    --type-rte-h6-size: 1rem; /* 12pt */

    /* print spacing: cap the large end of the scale at --space-40 */
    --space-48: var(--space-40);
    --space-56: var(--space-40);
    --space-60: var(--space-40);
    --space-64: var(--space-40);
    --space-72: var(--space-40);
    --space-80: var(--space-40);
    --space-96: var(--space-40);
    --space-120: var(--space-40);
    --space-128: var(--space-40);
    --space-184: var(--space-40);
    --space-200: var(--space-40);

    /* breadcrumbs */
    --breadcrumbs-height: 0rem;
  }

  /* ——— Decorative/interactive effects (AC-10) ——— */

  * {
    box-shadow: none !important;
    transition: none !important;
    animation: none !important;
  }

  /* ——— Header: keep only the NRF logo (AC-04, AC-05) ——— */

  header .nav-sections,
  header .nav-tools,
  header .nav-hamburger,
  header .nav-secondary,
  header .block.header-search,
  header .language-selector-wrapper {
    display: none !important;
  }

  /* header is `position: fixed` on screen, which makes most browsers reprint
     it on every page. Flowing it into the document instead confines it to
     page 1, but then the `main`/hero top offsets reserved for the fixed
     header (see styles.css) are no longer needed and must be zeroed out. */
  header {
    --header-background-color: var(--color-primary-white) !important;
    --header-nav-brand-filter: none !important;

    position: static !important;
    backdrop-filter: none !important;
    background-color: var(--color-primary-white) !important;
  }

  main,
  main > .section:first-child > *:first-child[class*="hero"] {
    margin-block-start: 0 !important;
    padding-block-start: 0 !important;
  }

  /* ——— Footer: hide entirely (NRF-3900) ——— */

  footer {
    display: none !important;
  }

  /* ——— Breadcrumb ——— */

  /* Hide the whole wrapper, not just `.breadcrumbs-container`: the outer
     `.breadcrumbs` element carries its own `margin-top: var(--nav-height)`
     (reserved for the on-screen fixed header) which otherwise still renders
     as an empty gap/band once the header is no longer fixed in print. */
  .breadcrumbs {
    display: none !important;
  }

  /* ——— Hero banners ——— */

  [class*="-wrapper"] .block[class*="homepage-hero-"] .hero-image {
    display: none;
  }

  [class*="-wrapper"] .block[class*="homepage-hero-"] .hero-bleed {
    padding-block-start: var(--nav-height);
  }

  [class*="-wrapper"] .block[class*="homepage-hero-"] .featured-cards .featured-card {
    min-height: auto;
  }

  [class*="-wrapper"] .block.hero-banner .hero-banner-chevron {
    display: none;
  }

  [class*="-wrapper"] .block[class*="homepage-hero-"] .external-card-slot.swiper [class*="-wrapper"] {
    flex-wrap: wrap;
    gap: var(--space-12);
  }

  [class*="-wrapper"] .block[class*="homepage-hero-"] .external-card-slot.swiper [class*="-slide"] {
    width: calc(33.3333% - var(--space-12));
    margin-inline: 0 !important;
  }
  
  [class*="-wrapper"] .block[class*="homepage-hero-"] .internal-card .internal-card-peek-tab {
    width: 100%;
  }

  /* ——— CTAs, downloads, form actions (AC-09) ——— */

  main .button,
  main [class*="download"],
  main form button,
  main form input[type="submit"],
  .hero-banner-share,
  .social-share {
    display: none !important;
  }

  /* People-card CTAs ("View bio" / "View insights") are stamped into the
     atomic-result's shadow DOM by the Coveo Atomic result template (see
     blocks/coveo-search/cards.js), so the light-DOM `.button` rule above
     can't reach them — same reason coveo-search.css has to style them via
     `::part()` instead of `.button.primary`/`.button.secondary` (NRF-3900). */
  .coveo-search atomic-result-list::part(people-view-bio),
  .coveo-search atomic-result-list::part(people-view-insights) {
    display: none !important;
  }

  /* ——— Carousels → stacked content, controls hidden (AC-07) ——— */

  .carousel-arrow,
  .swiper-pagination,
  .swiper-button-next,
  .swiper-button-prev,
  .swiper-scrollbar {
    display: none !important;
  }

  .carousel-swiper,
  .carousel-swiper .swiper-wrapper {
    position: static !important;
    overflow: visible !important;
    transform: none !important;
    height: auto !important;
    display: flex !important;
  }

  .carousel .carousel-region .carousel-swiper {
    flex-direction: column;
  }

  .carousel-region .carousel-swiper .swiper-wrapper {
    flex-flow: row wrap;
    row-gap: var(--space-12);
  }

  .carousel-swiper .swiper-slide {
    width: 100% !important;
    flex-shrink: 0 !important;
  }

  .carousel-region .carousel-swiper .swiper-wrapper .swiper-slide {
    flex-basis: 30%;
    height: auto;
  }

  /* market-recognition-carousel ships its own arrows/dots instead of Swiper's */
  .market-recognition-carousel-arrow,
  .market-recognition-carousel-progress {
    display: none !important;
  }

  /* Its "pages" are paginated via the [hidden] attribute (only the current
     page's cards are shown) and, at desktop widths, laid out 2-up. For print,
     unhide every card and stack them one under another. */
  .market-recognition-carousel-card[hidden] {
    display: block !important;
  }

  .market-recognition-carousel-track {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* ——— Floating on-screen chrome with no meaning on paper ——— */

  .back-to-top-cta {
    display: none !important;
  }

  /* ——— Accordions: force fully expanded (AC-07) ——— */

  .block.collapsible-listing {
    --collapsible-listing-collapse-item-closed-grid-template-rows: 0fr 1fr;
    --collapsible-listing-collapse-content-closed-visibility: visible;
  }

  .block.collapsible-listing ul button[aria-expanded]::after {
    display: none !important;
  }

  /* ——— Accordion: force fully expanded (NRF-3892) ——— */

  .block.accordion .accordion-item-content[hidden] {
    display: block !important;
  }

  .block.accordion .accordion-item-trigger[aria-expanded]::after {
    display: none !important;
  }

  /* ——— Video/podcast transcript: force fully expanded (NRF-3892) ——— */

  .video-transcript-body[hidden],
  .podcast-player-transcript-body[hidden] {
    display: block !important;
  }

  .video-transcript-toggle,
  .podcast-player-transcript-toggle {
    display: none !important;
  }

  /* ——— services-tout: force the desktop "expanded list" presentation instead
     of the mobile/tablet combobox dropdown, since print has no viewport width
     to trigger the >=1200px breakpoint ——— */

  .services-tout-section-subheading {
    display: block !important;
  }

  .services-tout-section-list {
    display: flex !important;
  }

  .services-tout-section-dropdown {
    display: none !important;
  }

  /* ——— tout-large-pill-callout ——— */

  .tout-large-pill-callout .tout-large-pill-callout-header-cta {
    display: none;
  }

  /* ——— cards ——— */

  .block.cards > ul {
    grid-template-columns: repeat(3, 1fr);
  }

  /* ——— category-cards ——— */

  .category-cards-wrapper .block.category-cards .category-cards-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-cards-wrapper .block.category-cards .category-cards-list .category-card {
    display: block;
  }

  /* ——— awards cards ——— */
  
  .block.awards .awards-list {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* ——— awards cards ——— */

  .block.card-grid > ul {
    grid-template-columns: repeat(3, 1fr);
  }

  /* ——— contacts-tout ——— */

  .block.contacts-tout .contacts-tout-list {
    grid-template-columns: repeat(3, 1fr);
  }

  /* ——— interactive-trigger ——— */

  .block.interactive-trigger .interactive-trigger-item:has(.interactive-trigger-media):not([hidden]) {
    display: grid;
    grid-template: "media content" auto "media actions" 1fr / 1.076fr 1fr;
    column-gap: var(--space-32);
  }

  /* ——— social-connect-tout ——— */

  .social-connect-tout-wrapper .block.social-connect-tout {
    flex-direction: row;
    gap: var(--space-24);
  }

  /* ——— instagram-carousel ——— */

  .instagram-carousel .carousel-region .carousel-swiper .swiper-wrapper {
    row-gap: 0;
  }

  /* ——— image-featured-card ——— */

  .block.image-featured-card {
    flex-direction: column;
    height: auto;
  }

  .block.image-featured-card .overlay-content {
    height: auto;
    position: static;
    transform: none;
    margin-block-start: calc(var(--space-32) * -1);
  }

  /* ——— people-pills: show every item, hide the "show more" toggle (AC-07, AC-09) ——— */

  .block.people-pills ul li[hidden] {
    display: block !important;
  }

  .block.people-pills .show-more {
    display: none !important;
  }

  /* ——— Sticky/scroll UI that makes no sense on paginated output ——— */

  .content-side-nav-wrapper {
    display: none !important;
  }

  /* ——— Insights search results: pagination (NRF-3900) ——— */

  .block.insights-results .insights-results-pagination {
    display: none !important;
  }

  .insights-results-wrapper .block.insights-results .insights-results-list {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-12);
  }

  /* ——— Coveo search: search box, sort, results-per-page, filters/facets,
     pagination (NRF-3900) ——— */

  .coveo-search-top,
  .coveo-search-toolbar,
  .coveo-search atomic-pager {
    display: none !important;
  }

  .coveo-search:is(.insights, .events, .topics) .coveo-search-content atomic-result-list::part(result-list) {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .coveo-search .coveo-search-content atomic-result-list::part(people-card) {
    align-items: start;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-16) var(--space-32);
  }

  .coveo-search .coveo-search-content atomic-result-list::part(people-image) {
    width: 100%;
    height: auto;
  }

  /* ——— Speculative: tabs / generic pagination / filters / country selector
     Fallback for blocks not individually audited yet; rules target likely
     role/class patterns so print hiding activates automatically once such
     UI ships. ——— */

  [role="tablist"],
  [role="tab"],
  .pagination,
  [class*="filter"],
  [class*="country-selector"] {
    display: none !important;
  }

  /* ——— Page breaks: keep small repeating card/slide units whole rather than
     splitting them across two printed pages. Deliberately scoped to these
     small units, not `.section`/`.block` broadly — applying `break-inside:
     avoid` to a large block pushes the whole thing to the next page when it
     doesn't fit in the remaining space, leaving a big blank gap behind. ——— */

  .carousel-slide,
  .market-recognition-carousel-card {
    break-inside: avoid;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    break-after: avoid;
  }

  p,
  li {
    orphans: 3;
    widows: 3;
  }
}
