/* Match OSRS Clan Finder's SiteHeader layout and controls, with Warframe content. */
.site-frame .site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #101117;
  border-radius: 0;
  background: linear-gradient(180deg, #292b35, #21222b);
  box-shadow: inset 0 1px 0 #ffffff08, inset 0 -1px 0 #3d3f4b, 0 3px 8px #0005;
  font-family: Lato, Arial, Helvetica, sans-serif;
}
.site-header::before { display: none; }
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1600px;
  height: 56px;
  margin: 0 auto;
  padding: 0 24px;
}
.site-header .brand { display: flex; align-items: center; flex-shrink: 0; min-width: 0; gap: 10px; text-decoration: none; }
.site-header .brand__icon { display: block; flex-shrink: 0; width: 32px; height: 32px; object-fit: contain; }
.site-header .brand__text { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.site-header .brand__text strong,
.site-header .brand__text small { display: inline; margin: 0; font-size: 18px; font-weight: 900; line-height: 26px; letter-spacing: -.025em; text-transform: none; }
.site-header .brand__text strong { color: #fff; }
.site-header .brand__text small { margin-left: 4px; color: var(--accent); }
.site-header .site-nav { display: flex; align-items: center; min-width: 0; height: 100%; gap: 0; }
.site-header .site-nav__group { display: flex; align-items: center; gap: 12px; }
.site-header__actions { display: flex; align-items: center; flex-shrink: 0; gap: 12px; margin-left: auto; }
.site-header .site-nav a,
.site-header__actions > a,
.site-header .mobile-nav > nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #c8c7d4;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
.site-header .site-nav a::after,
.site-header .mobile-nav > nav a::after { content: none; }
.site-header__actions > a { padding-inline: 8px; }
.site-header .site-nav a:is(:hover, :focus-visible),
.site-header__actions > a:is(:hover, :focus-visible),
.site-header .mobile-nav > nav a:is(:hover, :focus-visible),
.site-header .mobile-nav > summary:hover { background: #343743; color: #f0efe8; }
.site-header .site-nav a[aria-current],
.site-header .mobile-nav > nav a[aria-current],
.site-header .mobile-nav[open] > summary {
  background: linear-gradient(180deg, #1b1d25, #20222c);
  box-shadow: inset 0 0 0 1px #41434f, inset 0 2px 3px #0004;
  color: var(--accent);
}
.site-header .nav-count { background: #30333f; color: var(--accent-strong); }
.site-header__actions > .header-list-clan {
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  background: var(--nav-accent-gradient);
  box-shadow: inset 0 1px 0 #fff5, 0 2px 3px #0004;
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 800;
}
.site-header__actions > .header-list-clan::before { content: "+"; display: inline-flex; justify-content: center; flex: 0 0 16px; width: 16px; font-size: 20px; font-weight: 400; line-height: 16px; }
.site-header__actions > .header-list-clan[data-manage-listing]::before { content: none; }
.site-header__actions > .header-list-clan:is(:hover, :focus-visible) { background: var(--nav-accent-hover-gradient); color: var(--on-accent); }
.header-list-clan__short { display: none; }
.site-header .auth-controls { display: flex; align-items: center; min-width: 0; gap: 8px; padding: 0; border: 0; }
.site-header .auth-header-button,
.site-header .account-menu > summary {
  height: 40px;
  min-height: 0;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid #101117;
  border-radius: 6px;
  background: linear-gradient(180deg, #343743, #262832);
  box-shadow: inset 0 0 0 1px #484b59, inset 0 2px 0 #ffffff0a, 0 2px 3px #0005;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0;
  text-transform: none;
}
.site-header .auth-header-button[data-auth-open="login"] { width: 96px; }
.site-header .auth-header-button:is(:hover, :focus-visible),
.site-header .account-menu > summary:is(:hover, :focus-visible),
.site-header .account-menu[open] > summary {
  background: linear-gradient(180deg, #3b3e4c, #2b2e39);
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 2px 0 #ffffff0a, 0 2px 3px #0005;
}
.site-header .auth-login-icon { display: none; }
.site-header .auth-loading { width: 96px; height: 36px; border-radius: 6px; }
.site-header .account-menu > summary { gap: 8px; max-width: 160px; height: 36px; }
.site-header .account-menu > summary::after { content: ""; flex-shrink: 0; width: 6px; height: 6px; margin-left: 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.site-header .account-menu[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.site-header .account-avatar { flex-shrink: 0; width: 24px; height: 24px; border: 0; background: #1b1c25; color: var(--accent); }
.site-header .account-name { font-size: 12px; }
.site-header .account-popover,
.site-header .mobile-nav > nav {
  border: 1px solid #101117;
  border-radius: 9px;
  background: linear-gradient(180deg, #292b35, #21222b);
  box-shadow: inset 0 0 0 1px #414450, inset 0 3px 0 #ffffff08, 0 8px 24px #0008;
}
.site-header .account-popover { max-width: calc(100vw - 24px); }
.site-header .account-popover :is(a, button) { border-radius: 6px; }
.site-header .account-popover :is(a, button):is(:hover, :focus-visible) { background: #343743; color: var(--accent); }
.site-header .mobile-nav { display: none; position: static; flex-shrink: 0; }
.site-header .mobile-nav > summary {
  display: grid;
  place-content: center;
  gap: 4px;
  width: 40px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: #c8c7d4;
}
.site-header .mobile-nav > summary span { width: 21px; height: 2px; border-radius: 1px; background: currentColor; }
.site-header .mobile-nav[open] > summary span:first-child { transform: translateY(6px) rotate(45deg); }
.site-header .mobile-nav[open] > summary span:nth-child(2) { opacity: 0; }
.site-header .mobile-nav[open] > summary span:last-child { transform: translateY(-6px) rotate(-45deg); }
.site-header .mobile-nav > nav {
  top: calc(100% + 8px);
  left: 24px;
  right: 24px;
  z-index: 50;
  width: auto;
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
}
.site-header .mobile-nav > nav a { display: flex; min-height: 48px; padding: 0 16px; font-weight: 600; }
.site-header .mobile-nav > nav hr { width: 100%; margin: 8px 0; border: 0; border-top: 1px solid #414450; }
.site-header :is(a, button, summary):focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }

@media (max-width: 1279px) {
  .site-header .site-nav,
  .site-header__actions > a:not(.header-list-clan) { display: none; }
  .site-header .mobile-nav { display: block; }
}
@media (max-width: 1023px) {
  .site-header__inner { gap: 16px; }
  .site-header .brand { flex-shrink: 1; }
  .site-header .brand__text strong,
  .site-header .brand__text small { font-size: 18px; line-height: 27px; }
  .site-header .auth-header-button { height: 44px; }
}
@media (max-width: 767px) {
  .site-header .auth-header-button[data-auth-open="login"] { width: 36px; height: 44px; padding: 0; }
  .site-header .auth-header-button[data-auth-open="login"] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .site-header .auth-login-icon { display: block; width: 16px; height: 16px; }
  .site-header .auth-controls .auth-header-button--primary { display: none; }
  .site-header .auth-loading { width: 36px; }
}
@media (max-width: 639px) {
  .site-header__inner { gap: 8px; padding-inline: 12px; }
  .site-header .brand__icon { display: none; }
  .site-header .brand__text strong,
  .site-header .brand__text small { font-size: 15px; line-height: 22.5px; }
  .site-header__actions { gap: 6px; }
  .site-header__actions > .header-list-clan { padding-inline: 8px; }
  .header-list-clan__label { display: none; }
  .header-list-clan__short { display: inline; }
  .site-header .account-menu > summary { justify-content: center; width: 44px; height: 44px; padding: 0; }
  .site-header .account-name,
  .site-header .account-menu > summary::after { display: none; }
  .site-header .mobile-nav > nav { left: 12px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .site-nav a,
  .site-header__actions > a,
  .site-header .mobile-nav > nav a { transition: none; }
}

/* OSRS account-menu spacing and grouping, using Warframe's accent. */
.site-header .account-menu { position:relative; display:flex; flex-shrink:0; align-items:center; }
.site-header .account-menu > summary .account-name { position:static; display:block; width:auto; height:auto; margin:0; padding:0; clip:auto; clip-path:none; }
.site-header .account-menu:not([open]) > .account-menu__panel { display:none; }
.site-header .account-menu__panel { position:absolute; top:calc(100% + 20px); right:0; z-index:50; display:flex; flex-direction:column; width:min(22rem,calc(100vw - 24px)); max-width:calc(100vw - 24px); max-height:calc(100dvh - 88px); overflow:hidden; padding:0; border:1px solid #444651; border-radius:14px; background:#252630; box-shadow:0 16px 48px #0006,0 4px 12px #0003; animation:account-menu-appear 140ms ease-out; }
.site-header .account-menu__identity { display:flex; flex-shrink:0; align-items:center; gap:12px; padding:20px 20px 16px; }
.site-header .account-menu__avatar { display:flex; flex-shrink:0; align-items:center; justify-content:center; width:42px; height:42px; overflow:hidden; border:1px solid #93b8ff24; border-radius:12px; background:#93b8ff0a; color:var(--accent); }
.site-header .account-menu__avatar img { width:100%; height:100%; object-fit:cover; }
.site-header .account-menu__identity-copy { min-width:0; }
.site-header .account-menu__name { margin:0; overflow:hidden; color:#f2f1f5; font-size:14px; font-weight:700; line-height:1.5; text-overflow:ellipsis; white-space:nowrap; }
.site-header .account-menu__email { margin:2px 0 0; overflow:hidden; color:#aaaab9; font-size:12px; font-weight:400; line-height:1.5; text-overflow:ellipsis; white-space:nowrap; }
.site-header .account-menu__shortcuts { display:grid; flex-shrink:0; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; padding:0 12px 16px; }
.site-header .account-menu__sections { min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:0 12px; scrollbar-width:thin; scrollbar-color:#50515f transparent; }
.site-header .account-menu__section { padding:14px 0 12px; border-top:1px solid #ffffff0d; }
.site-header .account-menu__section-label { margin:0 10px 6px; color:#a4a4b3; font-size:10px; font-weight:600; letter-spacing:.1em; line-height:1.6; text-transform:uppercase; }
.site-header .account-menu__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:2px 6px; }
.site-header .account-menu__list { display:grid; }
.site-header .account-menu__list:not(.account-menu__grid) { gap:2px; }
.site-header .account-menu__panel .account-menu__link { display:flex; min-width:0; min-height:42px; align-items:center; justify-content:flex-start; gap:10px; width:100%; margin:0; padding:10px; border:0; border-radius:7px; background:transparent; box-shadow:none; color:#dedee7; font-family:inherit; font-size:13px; font-weight:500; line-height:1.4; letter-spacing:0; text-align:left; text-transform:none; text-decoration:none; cursor:pointer; transition:background-color 140ms ease,color 140ms ease; }
.site-header .account-menu__shortcuts .account-menu__link { border:1px solid #ffffff09; background:#ffffff04; }
.site-header .account-menu__icon { display:flex; flex-shrink:0; color:#a4a4b4; }
.site-header .account-menu__icon svg { width:16px; height:16px; stroke-width:1.7; }
.site-header .account-menu__avatar .account-menu__icon { color:inherit; }
.site-header .account-menu__avatar svg { width:21px; height:21px; }
.site-header .account-avatar .account-menu__icon { color:inherit; }
.site-header .account-avatar svg { width:14px; height:14px; }
.site-header .account-menu__link-label { min-width:0; overflow-wrap:anywhere; }
.site-header .account-menu__panel .account-menu__link:is(:hover,:focus-visible) { background:#ffffff08; color:var(--accent-strong); }
.site-header .account-menu__link:is(:hover,:focus-visible) .account-menu__icon { color:inherit; }
.site-header .account-menu__panel .account-menu__link:focus-visible { outline:1px solid #93b8ff80; outline-offset:-1px; }
.site-header .account-menu__footer { display:grid; flex-shrink:0; grid-template-columns:1fr; gap:8px; padding:10px 12px; border-top:1px solid #ffffff0d; background:#00000012; }
.site-header .account-menu__panel .account-menu__signout { color:#aaaab9; }
.site-header .account-menu__count { display:inline-flex; min-width:18px; min-height:18px; align-items:center; justify-content:center; margin-left:4px; padding:0 4px; border-radius:9px; background:#93b8ff20; color:var(--accent-strong); font-size:11px; }
.site-header .account-menu__panel [hidden] { display:none; }
@keyframes account-menu-appear { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:639px) {
  .site-header .account-menu > summary .account-name { display:none; }
  .site-header .account-menu__panel { position:fixed; top:76px; right:12px; }
  .site-header .account-menu__panel .account-menu__link { min-height:44px; }
}
@media(prefers-reduced-motion:reduce) {
  .site-header .account-menu__panel { animation:none; }
  .site-header .account-menu__panel .account-menu__link { transition:none; }
}
