.home-header .header-inner { position: relative; gap: 24px; }
.home-header .nav { gap: clamp(14px, 2vw, 26px); padding: 0; overflow: visible; }
.home-header .nav[hidden], .home-menu-button[hidden] { display: none; }
.home-account-actions { display: flex; align-items: center; gap: 8px; }
.home-header .home-account-actions a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 12px;
  border: 1px solid #46607d; border-radius: 8px; font-size: 13px; font-weight: 700; white-space: nowrap;
}
.home-header .home-account-login:hover { border-color: #63b0ff; }
.home-header .home-account-actions .home-account-signup { color: #0b1524; background: #63b0ff; border-color: #63b0ff; }
.home-header .home-account-actions .home-account-signup:hover { background: #8ec6ff; border-color: #8ec6ff; }
.home-resources { position: relative; }
.home-resources summary, .home-menu-button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; white-space: nowrap; cursor: pointer;
}
.home-resources summary { list-style: none; }
.home-resources summary::-webkit-details-marker { display: none; }
.home-resources summary::after {
  content: ""; width: 6px; height: 6px; border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg);
}
.home-resources[open] summary::after { transform: translateY(2px) rotate(225deg); }
.home-resources-links {
  position: absolute; z-index: 4; top: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  min-width: 165px; padding: 5px; background: #111b2a;
  border: 1px solid #334962; border-radius: 10px;
  box-shadow: 0 12px 32px #0006;
}
.home-header .home-resources-links a {
  display: flex; align-items: center; min-height: 44px; padding: 6px 11px; border-radius: 6px;
}
.home-resources-links a:hover, .home-resources-links a:focus-visible { background: #1b2b40; }
.home-header :is(a, button, summary):focus-visible { outline: 2px solid #63b0ff; outline-offset: 3px; }
.home-menu-button {
  font: inherit; color: #e6eef8; padding: 0 12px;
  border: 1px solid #46607d; border-radius: 8px; background: #121e2d;
}
.home-menu-icon { width: 14px; height: 12px; border-block: 1px solid; position: relative; }
.home-menu-icon::after {
  content: ""; position: absolute; top: calc(50% - .5px); inset-inline: 0; border-top: 1px solid;
}
@media (max-width: 820px) {
  .home-header .header-inner:has(.home-menu-button:not([hidden])) {
    display: flex; min-height: 64px; padding: 0; gap: 8px;
  }
  .home-header .brand { margin-right: auto; flex-shrink: 0; }
  .home-header .header-inner:has(.home-menu-button:not([hidden])) > .nav {
    position: absolute; z-index: 5; top: calc(100% + 6px); inset-inline: 0;
    display: grid; gap: 0; padding: 6px; color: #e1eaf6;
    border: 1px solid #334962; border-radius: 10px; background: #111b2a;
    box-shadow: 0 12px 32px #0006; font-size: 14px;
  }
  .home-header .header-inner:has(.home-menu-button:not([hidden])) > .nav[hidden] { display: none; }
  .home-header .header-inner:has(.home-menu-button:not([hidden])) > .nav > a,
  .home-header .header-inner:has(.home-menu-button:not([hidden])) .home-resources summary {
    display: flex; align-items: center; min-height: 44px; padding: 6px 11px;
  }
  .home-account-actions { gap: 6px; }
  .home-header .home-account-actions a { min-height: 44px; padding: 5px 8px; }
  .home-resources-links {
    position: static; transform: none; margin-inline: 11px 3px; padding: 0 0 0 8px;
    box-shadow: none; border: 0; border-left: 1px solid #334962; border-radius: 0;
  }
}
@media (max-width: 375px) {
  .home-header .brand { gap: 6px; font-size: 17px; }
  .home-header .brand img { width: 24px; height: 24px; }
  .home-header .home-account-actions a { font-size: 12px; padding-inline: 7px; }
  .home-menu-button { justify-content: center; min-width: 44px; padding: 0 8px; }
  .home-menu-label { display: none; }
}

.home-account-actions form{margin:0}
.home-header .home-account-actions button{
 display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:6px 12px;
 border:1px solid #46607d;border-radius:8px;font-family:inherit;font-size:13px;font-weight:700;white-space:nowrap;cursor:pointer;
 color:#e6eef8;background:transparent
}
.home-account-actions button:focus-visible{outline:2px solid #63b0ff;outline-offset:3px}
.home-account-role{font-size:12px;white-space:nowrap;color:#b6d8fc}
.home-member-notice{margin:12px auto;width:min(calc(100% - 40px),1320px);color:#b6d8fc}
@media(max-width:820px){.home-header .home-account-actions button{min-height:44px;padding:5px 8px}}
@media(max-width:375px){.home-header .home-account-actions button{font-size:12px;padding-inline:7px}}

@media (max-width: 480px) {
  .home-header .header-inner:has(.home-menu-button:not([hidden])) {
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 8px;
    padding-block: 8px;
  }
  .home-header .header-inner:has(.home-menu-button:not([hidden])) > .brand {
    grid-area: 1 / 1;
  }
  .home-header .header-inner:has(.home-menu-button:not([hidden])) > .home-menu-button {
    grid-area: 1 / 2;
  }
  .home-header .header-inner:has(.home-menu-button:not([hidden])) > .home-account-actions {
    grid-area: 2 / 1 / 3 / -1;
    justify-self: end;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
