/* The expanded six-item navigation uses the existing menu pattern below desktop. */
/* On phones, the existing call action replaces Get Started in the same header row. */
@media (max-width: 767px) {
  .masthead .header-inner { width: calc(100% - 32px); }
  .masthead .header-actions { right: 54px; top: 18px; }
  .masthead .header-actions .button:not(.phone) { display: none; }
  .masthead .header-actions .phone {
    /* The approved legacy stylesheet hides .phone with !important on mobile. */
    display: inline-flex !important;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px;
    white-space: nowrap;
  }
  .masthead .menu-label { right: 0; }
  .masthead #menu { right: 0; }
  .masthead #main-navigation { left: -16px; width: calc(100% + 32px); }
}
@media (max-width: 359px) {
  .masthead .brand img { width: 80px; }
  .masthead .header-actions .phone { font-size: 13px; padding: 10px; }
}
@media (min-width: 1280px) {
  .masthead .header-inner { gap: 30px; }
  .masthead .brand,
  .masthead .header-actions { flex-shrink: 0; }
  .masthead #main-navigation { gap: 30px; }
  .masthead .header-actions .button { white-space: nowrap; flex-shrink: 0; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .masthead .header-inner {
    height: 80px;
    gap: 0;
    position: relative;
    justify-content: space-between;
  }
  .masthead .brand { flex-shrink: 0; }
  .masthead .menu-label {
    display: flex;
    position: absolute;
    right: -5px;
    top: 18px;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: white;
    border-radius: 3px;
    cursor: pointer;
  }
  .masthead .menu-label span {
    position: static;
    display: block;
    width: 22px;
    height: 3px;
    margin: 0;
    background: #1c1e37;
  }
  .masthead .header-actions {
    position: absolute;
    right: 56px;
    top: 18px;
    margin-left: 0;
  }
  .masthead .header-actions .button {
    min-height: 44px;
    white-space: nowrap;
  }
  .masthead #main-navigation {
    display: none;
    position: absolute;
    top: 80px;
    left: -24px;
    width: calc(100% + 48px);
    padding: 20px 24px;
    background: white;
    z-index: 20;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    font-size: 18px;
  }
  .masthead #menu:checked ~ #main-navigation { display: flex; }
}
