/* Shared navigation for the public homepage and contact page. */
.complete-content .navigation-panel { display: contents; }
.complete-content .menu-toggle { display: none; }
.complete-content .header nav { order: 0; width: auto; }

@media (max-width: 1280px) {
  .complete-content .header {
    align-items: center;
    gap: 20px;
  }
  .complete-content .header .brand {
    flex: 1;
    max-width: none;
    width: auto;
  }
  .complete-content .navigation-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
  .complete-content .header nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }
  .complete-content .header nav a {
    display: block;
    padding: 12px 8px;
    border-radius: 6px;
  }
  .complete-content .header nav a:hover {
    background: #eee9f2;
  }
  .complete-content .navigation-panel > .button {
    align-self: flex-start;
  }
  .complete-content .header[data-navigation-enhanced] .menu-toggle:not([hidden]) {
    display: inline-flex;
    flex: 0 0 64px;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #eee9f2;
    color: var(--purple);
    cursor: pointer;
  }
  .complete-content .menu-toggle:hover {
    background: #e4dbea !important;
  }
  .complete-content .menu-toggle:focus-visible {
    outline: 3px solid #a884d0;
    outline-offset: 5px;
  }
  .complete-content .menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
  }
  .complete-content .menu-icon span {
    display: block;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .18s ease, opacity .18s ease;
  }
  .complete-content .menu-toggle[aria-expanded="true"] .menu-icon span:first-child {
    transform: translateY(10px) rotate(45deg);
  }
  .complete-content .menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) {
    opacity: 0;
  }
  .complete-content .menu-toggle[aria-expanded="true"] .menu-icon span:last-child {
    transform: translateY(-10px) rotate(-45deg);
  }
  .complete-content .header[data-navigation-enhanced] .navigation-panel {
    display: none;
  }
  .complete-content .header[data-navigation-enhanced][data-navigation-open] .navigation-panel {
    display: flex;
  }
}

@media (max-width: 600px) {
  .complete-content .header { padding: 20px; }
  .complete-content .navigation-panel > .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .complete-content .menu-icon span { transition: none; }
}
