/* Sprint 1A.9 — robust tablet polish for 700–1024 CSS px. */
@media (min-width: 700px) and (max-width: 1024px) {
  .hnf-header .hnf-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 12px;
  }

  .hnf-brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .hnf-brand-mark {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  .hnf-brand-name { font-size: 23px; }
  .hnf-nav { display: none !important; }

  .hnf-header-actions {
    flex: 0 0 auto;
    gap: 4px;
  }

  .hnf-header-actions > .hnf-desktop-cta { display: none !important; }

  .hnf-cart-link {
    width: 44px;
    height: 44px;
  }

  .hnf-mobile-menu {
    display: block;
    position: static;
  }

  .hnf-mobile-menu > summary {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--hnf-indigo);
    cursor: pointer;
  }

  .hnf-mobile-menu > summary:hover,
  .hnf-mobile-menu > summary:focus-visible {
    background: rgba(117,84,167,.08);
  }

  .hnf-mobile-menu > summary svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .hnf-mobile-menu__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 70;
    padding: 16px 22px 20px;
    background: rgba(251,249,247,.995);
    border-top: 1px solid var(--hnf-line);
    box-shadow: 0 20px 38px rgba(34,39,75,.14);
  }

  .hnf-mobile-menu__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
  }

  .hnf-mobile-menu__nav > a:not(.hnf-btn) {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--hnf-indigo);
    font-size: 15px;
    font-weight: 700;
  }

  .hnf-mobile-menu__account {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding-top: 10px !important;
    border-top: 1px solid var(--hnf-line);
  }

  .hnf-mobile-menu__nav > .hnf-btn {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 6px;
    color: #fff !important;
  }

  .hnf-optin {
    grid-template-columns: .9fr 1.6fr;
    gap: 22px;
    padding: 28px 30px;
  }

  .hnf-optin__copy { display: none; }

  .hnf-form-inline {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto;
  }

  .hnf-form-inline .hnf-btn {
    padding-inline: 16px;
    white-space: nowrap;
    font-size: 12px;
  }

  .hnf-trust { grid-template-columns: repeat(2, 1fr); }
  .hnf-trust__item + .hnf-trust__item { border-left: 0; }
  .hnf-trust__item:nth-child(even) { border-left: 1px solid var(--hnf-line); }
  .hnf-trust__item:nth-child(n+3) { border-top: 1px solid var(--hnf-line); }
}

@media (max-width: 767px) {
  .hnf-cart-link,
  .hnf-mobile-menu > summary {
    width: 44px;
    height: 44px;
  }
}
