/* Primary navigation refinement. Mega-menu panels keep their existing design. */
.cr-site .cr-header .cr-nav > .cr-page-link,
.cr-site .cr-header .cr-nav .cr-mega-toggle {
  min-height: 50px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
.cr-site .cr-header .cr-nav-mobile-actions { display: none; }
.cr-site .cr-header .cr-header-actions { gap: 10px; }
.cr-site .cr-header .cr-nav .cr-mega-toggle > span { line-height: 1.4; }
.cr-site .cr-header .cr-mega-chevron { width: 13px; height: 13px; flex-basis: 13px; }

@media (min-width: 861px) {
  .cr-site .cr-header > .cr-shell { min-height: 112px; }
  .cr-site .cr-header .cr-nav { gap: 16px; }
  .cr-site .cr-header .cr-nav > .cr-page-link,
  .cr-site .cr-header .cr-nav .cr-mega-toggle { padding: 10px 8px; gap: 9px; border-radius: 8px; }
  .cr-site .cr-header .cr-nav > [aria-current="page"] { position: relative; }
  .cr-site .cr-header .cr-nav > [aria-current="page"]::after {
    content: ""; position: absolute; width: 24px; height: 3px;
    left: calc(50% - 12px); bottom: 2px; border-radius: 2px; background: var(--cr-primary);
  }
  html[data-cr-mode="enhanced"] .cr-site .cr-header .cr-nav > [aria-current="page"]::after { background: var(--cr-teal); }
  .cr-site .cr-header .cr-nav .cr-mega-toggle:hover,
  .cr-site .cr-header .cr-nav .cr-mega-toggle[aria-expanded="true"] { background: var(--cr-sage); color: var(--cr-ink); }
  .cr-site .cr-header .cr-header-actions > .cr-button {
    min-height: 52px; padding: 13px 20px; border-radius: 9px; font-size: 15px;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--cr-primary) 10%, transparent);
  }
  .cr-site .cr-header .cr-header-actions > .cr-button-secondary { box-shadow: none; }
}

@media (min-width: 861px) {
  .cr-site .cr-header > .cr-shell {
    display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); column-gap: 24px;
  }
  .cr-site .cr-header > .cr-shell > .cr-brand { justify-self: start; }
  .cr-site .cr-header .cr-nav { margin: 0; justify-self: center; }
  .cr-site .cr-header .cr-header-actions { margin: 0; justify-self: end; }
}

/* Let a wider set of account buttons wrap when a compact viewport or enlarged text needs it. */
@media (min-width: 861px) and (max-width: 1200px) {
  .cr-site .cr-header > .cr-shell {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 6px;
  }
  .cr-site .cr-header .cr-nav { margin-inline: auto; }
  .cr-site .cr-header .cr-header-actions { margin-inline-start: auto; }
}

/* Preserve the existing 860px mobile boundary and avoid crowded tablet labels. */
@media (min-width: 861px) and (max-width: 1050px) {
  .cr-site .cr-header > .cr-shell { gap: 16px; min-height: 100px; }
  .cr-site .cr-header .cr-nav { gap: 10px; }
  .cr-site .cr-header .cr-nav > .cr-page-link,
  .cr-site .cr-header .cr-nav .cr-mega-toggle { font-size: 16px; padding-inline: 4px; gap: 7px; }
  .cr-site .cr-header .cr-header-actions > .cr-button { padding-inline: 15px; font-size: 14px; }
}

@media (max-width: 860px) {
  .cr-site .cr-header .cr-header-actions > .cr-button { display: none; }
  .cr-site .cr-header .cr-nav-mobile-actions {
    display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px;
    margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--cr-line);
  }
  .cr-site .cr-header .cr-nav-mobile-actions > .cr-button {
    min-height: 48px; padding: 11px 12px; border-radius: 8px; font-size: 14px; gap: 10px;
  }
  .cr-site .cr-header .cr-nav-mobile-actions > .cr-auth-login { flex: 0 0 auto; }
  .cr-site .cr-header .cr-nav-mobile-actions > [data-cr-page="trial"] { flex: 1; }
  .cr-site .cr-header .cr-nav > .cr-page-link,
  .cr-site .cr-header .cr-nav .cr-mega-toggle { min-height: 54px; padding-block: 13px; }
  .cr-site .cr-header .cr-menu-toggle {
    min-height: 44px; padding: 10px 13px; border-radius: 8px;
    background: var(--cr-sage); border-color: transparent; font-size: 13px !important; font-weight: 600;
  }
}

/* Compact only the main navigation row after scrolling. The sensory strip
   deliberately keeps its original height, typography, spacing and controls. */
.cr-site .cr-header.cr-is-scrolled > .cr-shell { min-height: 80px; padding-block: 8px; }
.cr-site .cr-header.cr-is-scrolled > .cr-shell > .cr-brand { font-size: 25px; gap: 9px; }
.cr-site .cr-header.cr-is-scrolled > .cr-shell > .cr-brand img.cr-brand-mark { width: 42px; }
@media (min-width: 861px) {
  .cr-site .cr-header.cr-is-scrolled .cr-nav > .cr-page-link,
  .cr-site .cr-header.cr-is-scrolled .cr-nav .cr-mega-toggle { min-height: 44px; font-size: 16px; padding-block: 8px; }
}
.cr-site .cr-header.cr-is-scrolled .cr-header-actions > .cr-button {
  min-height: 44px; padding-block: 9px; font-size: 14px;
}
@media (min-width: 861px) and (max-width: 1050px) {
  .cr-site .cr-header.cr-is-scrolled > .cr-shell { min-height: 78px; }
}
@media (max-width: 860px) {
  .cr-site .cr-header.cr-is-scrolled > .cr-shell { min-height: 76px; }
  .cr-site .cr-header.cr-is-scrolled > .cr-shell > .cr-brand { font-size: 22px; gap: 8px; }
  .cr-site .cr-header.cr-is-scrolled > .cr-shell > .cr-brand img.cr-brand-mark { width: 36px; }
}
