/* Shared WordPress header. Reference: public marketplace, 2026-10-15.
 * Header presentation and clearance for existing sticky in-page navigation.
 * No auth dialog, cart or footer rules.
 */
.site-header {
  box-sizing: border-box;
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 68px;
  padding: .75rem max(1.25rem, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(220, 229, 234, .92);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
.site-header .brand {
  margin: 0;
  padding: 0;
  color: #152937;
  font-size: 1.32rem;
  font-weight: 850;
  line-height: 1.6;
  white-space: nowrap;
  text-decoration: none;
}
.site-header .main-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
}
.site-header .main-nav a {
  flex-shrink: 0;
  color: #152937;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  white-space: nowrap;
}
.site-header .main-nav a[aria-current],
.site-header .main-nav a:hover {
  color: #244cb8;
}
.site-header .header-login,
.site-header .header-action {
  box-sizing: border-box;
  display: block;
  min-height: 38px;
  margin: 0;
  padding: .55rem .85rem;
  border: 1px solid #dce5ea;
  border-radius: .7rem;
  background: #fff;
  color: #152937;
  font: inherit;
  white-space: nowrap;
  text-decoration: none;
}
.site-header a:focus-visible {
  outline: 2px solid #244cb8;
  outline-offset: 3px;
}
/* Authenticated button is shared too: do not rely on the page's base CSS.
 * Keep initials and the asynchronously loaded photo in the same fixed slot. */
.site-header .header-login.header-account {
  display: inline-flex !important;
  align-items: center !important;
  gap: .55rem !important;
  min-width: 0;
  max-width: 100%;
  justify-self: end;
}
.site-header .header-account-avatar {
  flex: 0 0 1.8rem !important;
  line-height: 1;
}
.site-header .header-account-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.admin-bar .site-header { top: 32px; }
@media (max-width: 850px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: .75rem;
  }
  .site-header .main-nav {
    grid-column: 1 / -1;
    order: 3;
    overflow-x: auto;
    padding-bottom: .25rem;
  }
  .site-header:has(.header-account) {
    grid-template-columns: auto minmax(0, 1fr);
  }
}
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
  .site-header {
    position: static;
    padding: .8rem 1rem;
  }
  .site-header .main-nav { gap: 1rem; }
}
/* Existing in-page nav used a fixed 68px top. Keep it below the actual header,
 * including the two-row tablet header and the WordPress admin bar. */
@media (min-width: 601px) and (max-width: 1000px) {
  body #main-content .platform-jump,
  body #main-content .feature-jump {
    top: var(--odin-shared-header-bottom, 109.24px);
  }
}

/* Presentation CTA: editable in the existing primary menu. */
.site-header .main-nav a[href$="/presentation/"] {
  box-sizing: border-box;
  margin-left: auto;
  padding: .55rem .85rem;
  border: 1px solid #315eef;
  border-radius: .7rem;
  background: #315eef;
  color: #fff;
}
.site-header .main-nav a[href$="/presentation/"]:hover,
.site-header .main-nav a[href$="/presentation/"][aria-current] {
  background: #244cb8;
  border-color: #244cb8;
  color: #fff;
}
@media (min-width: 1101px) {
  .site-header .header-account { max-width: 210px; }
}
@media (min-width: 851px) and (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; gap: .75rem; }
  .site-header .main-nav { grid-column: 1 / -1; order: 3; overflow-x: auto; padding-bottom: .25rem; }
  .site-header:has(.header-account) { grid-template-columns: auto minmax(0, 1fr); }
}
