/* Board names identify the destination. The larger line answers what a
   visitor can do there. Both use the active board's navigation palette. */
@layer premium-navigation {
 @media screen {
  #site-header :is(.shell-mobile-products, .after-dark-product-list) > a.shell-mobile-product[aria-description] .shell-mobile-product-copy {
    display: grid;
    min-width: 0;
    align-content: center;
    gap: .22rem;
  }

  #site-header :is(.shell-mobile-products, .after-dark-product-list) > a.shell-mobile-product[aria-description] .shell-mobile-product-copy strong {
    color: var(--product-menu-purpose-ink, var(--site-directory-muted, #c3d1d3)) !important;
    font: 650 .84rem/1.2 var(--site-directory-type, system-ui, sans-serif) !important;
    letter-spacing: .015em;
  }

  #site-header :is(.shell-mobile-products, .after-dark-product-list) > a.shell-mobile-product[aria-description] .shell-mobile-product-copy em {
    display: block !important;
    overflow: visible !important;
    color: var(--product-menu-name-ink, var(--site-directory-ink, #fff7e9)) !important;
    font: 720 1rem/1.25 var(--site-directory-type, system-ui, sans-serif) !important;
    white-space: normal !important;
    text-overflow: clip !important;
    text-wrap: pretty;
  }
 }
}

@media screen {
  #site-header :is(.shell-mobile-products, .after-dark-product-list) > a.shell-mobile-product[aria-description]:focus-visible,
  #main .essential-choices[data-quick-browse] a:focus-visible {
    outline: 3px solid var(--site-directory-focus, #ffc36c) !important;
    outline-offset: 2px;
  }

  #main .essential-choices[data-quick-browse] h2 {
    text-wrap: balance;
  }

  #main .essential-choices[data-quick-browse] li > a {
    box-sizing: border-box;
    min-height: 48px;
  }
  #main .essential-choices[data-quick-browse] li > a > span { min-width: 0; }
  #main .essential-choices[data-quick-browse] li strong { text-wrap: pretty; }
  #main .essential-choices[data-quick-browse] li small { line-height: 1.45; }

  /* The existing full index owns search, category navigation and save state.
     This first selection stays in that same document and can shrink even
     when visitors increase the text size. */
  @media (max-width: 760px) {
    #main .essential-choices[data-quick-browse] .essential-heading {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      column-gap: .75rem;
      row-gap: 0;
    }
    body.skill-page #main section.essential-choices[data-quick-browse="skill"] > ul > li:first-child > a,
    body.self-premium #main section.essential-choices[data-quick-browse="self"] > ul > li:first-child > a {
      display: grid;
      grid-template: "photo copy" auto / minmax(4.4rem, 28%) minmax(0, 1fr);
      align-items: stretch;
      height: auto;
      gap: 0;
      padding: 0;
      overflow: hidden;
    }
    body.skill-page #main section.essential-choices[data-quick-browse="skill"] > ul > li:first-child > a > img,
    body.self-premium #main section.essential-choices[data-quick-browse="self"] > ul > li:first-child > a > img {
      display: block;
      grid-area: photo;
      align-self: stretch;
      margin: 0;
      width: 100%;
      height: 100%;
      min-height: 0;
      aspect-ratio: auto;
      object-fit: cover;
      object-position: center;
      border-radius: 0;
    }
    body.skill-page #main section.essential-choices[data-quick-browse="skill"] > ul > li:first-child > a > span,
    body.self-premium #main section.essential-choices[data-quick-browse="self"] > ul > li:first-child > a > span {
      grid-area: copy;
      align-self: center;
      padding: .85rem .9rem;
    }
    body.skill-page #main section.essential-choices[data-quick-browse="skill"] > ul > li:first-child strong,
    body.self-premium #main section.essential-choices[data-quick-browse="self"] > ul > li:first-child strong {
      font-size: clamp(1.12rem, 4.8vw, 1.38rem);
      line-height: 1.15;
    }
  }
}
