/* Shared navigation for PhotOlympic World — scoped to .pw-site-header.
   Matches the existing Definitions page; does not restyle page content. */
.pw-site-header,
.pw-site-header * { box-sizing: border-box; }
.pw-site-header {
  position: relative;
  z-index: 10;
  background: linear-gradient(105deg,rgba(5,35,26,.97),rgba(5,39,28,.95));
  color: #f7f5ef;
  box-shadow: 0 1px 0 rgba(203,220,195,.1);
  font-family: 'Manrope', Arial, sans-serif;
}
.pw-site-header .pw-shell {
  width: min(1448px, calc(100% - 88px));
  margin-inline: auto;
}
.pw-site-header a { color: inherit; text-decoration: none; }
.pw-header-top {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.pw-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  font-size: clamp(19px,2.2vw,27px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.2;
}
.pw-site-header .pw-brand img { display:block; width:51px; height:51px; object-fit: contain; }
.pw-brand-divider { height:41px; border-left:1px solid rgba(249,247,231,.64); }
.pw-auth-actions { display:flex; align-items:center; gap:12px; }
.pw-site-header .pw-auth-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 83px;
  padding: 8px 17px;
  border: 1px solid rgba(206,219,194,.38);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  color: #eee9da;
  white-space: nowrap;
  transition: background .18s,border-color .18s;
}
.pw-site-header .pw-auth-link:hover,
.pw-site-header .pw-auth-link.pw-auth-current { background:#204734; border-color:#a7bdad; }
.pw-topnav {
  border-top: 1px solid rgba(226,236,218,.12);
  border-bottom: 1px solid rgba(226,236,218,.14);
}
.pw-nav-inner {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(26px,7vw,115px);
  min-height: 56px;
}
.pw-site-header .pw-nav-inner a,
.pw-site-header .pw-nav-inner span {
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  font-size:14px;
  font-weight:650;
  line-height:1.4;
  white-space:nowrap;
}
.pw-site-header .pw-nav-inner a:hover,
.pw-site-header .pw-nav-inner .pw-active { color:#f4c300; }
.pw-site-header .pw-nav-inner .pw-active::after {
  content:"";
  position:absolute;
  height:3px;
  bottom:0;
  left:-14px;
  right:-14px;
  background:#f4c300;
}
.pw-nav-pending { opacity:.9; cursor:default; }
.pw-site-header a:focus-visible { outline:3px solid #f4c300; outline-offset:3px; }
@media (max-width:1190px) {
  .pw-site-header .pw-shell { width:min(1100px,calc(100% - 48px)); }
  .pw-nav-inner { gap:clamp(20px,5vw,58px); }
}
@media (max-width:760px) {
  .pw-site-header .pw-shell { width:calc(100% - 34px); }
  .pw-header-top { min-height:80px; }
  .pw-brand { font-size:19px; gap:9px; }
  .pw-site-header .pw-brand img { width:39px; height:39px; }
  .pw-brand-divider { height:29px; }
  .pw-auth-actions { gap:5px; }
  .pw-site-header .pw-auth-link { min-width:0; font-size:11px; padding:7px 9px; }
  .pw-topnav { overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .pw-site-header .pw-nav-inner { width:max-content; min-width:100%; min-height:52px; justify-content:flex-start; gap:26px; }
  .pw-site-header .pw-nav-inner a,
  .pw-site-header .pw-nav-inner span { font-size:12px; }
}
@media (max-width:480px) {
  .pw-header-top { flex-wrap:wrap; padding:12px 0; }
  .pw-auth-actions { width:100%; justify-content:flex-end; }
  .pw-brand { white-space:normal; }
}
/* Keep the centered registration design beneath its new shared menu. */
.pw-site-header + .auth-shell { min-height:calc(100vh - 140px); padding-block:38px; }
@media (max-width:760px) {
  .pw-site-header + .auth-shell { min-height:calc(100vh - 132px); padding-block:22px; }
}

/* Compact phone navigation: every item remains inside the viewport. */
@media (max-width:760px) {
  .pw-site-header .pw-shell { width:calc(100% - 32px); }
  .pw-site-header .pw-header-top { min-height:60px; flex-wrap:nowrap; padding:9px 0; gap:8px; }
  .pw-site-header a.pw-brand,
  .pw-site-header a.pw-brand.plw-brand {
    display:inline-flex; align-items:center; min-width:0; gap:6px;
    white-space:nowrap; font-size:clamp(12px,3.5vw,18px)!important; line-height:1.2!important;
  }
  .pw-site-header a.pw-brand img,
  .pw-site-header a.pw-brand.plw-brand img {
    width:clamp(25px,7vw,34px)!important; height:clamp(25px,7vw,34px)!important;
    flex:none!important;
  }
  .pw-site-header .pw-brand-divider { height:25px; }
  .pw-site-header .pw-auth-actions { width:auto; flex:0 0 auto; gap:5px; justify-content:flex-end; }
  .pw-site-header .pw-auth-link { min-width:0; padding:6px 7px; font-size:clamp(10px,2.8vw,12px); border-radius:8px; }
  .pw-site-header .pw-topnav { overflow:visible; }
  .pw-site-header .pw-nav-inner {
    width:calc(100% - 32px); min-width:0; min-height:42px;
    justify-content:space-between; flex-wrap:nowrap; gap:6px;
  }
  .pw-site-header .pw-nav-inner a,
  .pw-site-header .pw-nav-inner span { font-size:clamp(10.5px,2.8vw,12px); flex:0 0 auto; }
  .pw-site-header .pw-nav-inner .pw-active::after { left:-3px; right:-3px; }
  .pw-site-header + .auth-shell { min-height:calc(100svh - 104px); }
}
