/* AttackHistory site chrome — replaces UltraMenu while AH_CUSTOM_CHROME is on */

html.ah-chrome-on nav.navbar,
html.ah-chrome-on .navbar.navbar-expand-md,
html.ah-chrome-on .navbar.navbar-expand-lg,
html.ah-chrome-on .navbar.fixed-top,
html.ah-chrome-on .navbar.sticky-top,
html.ah-chrome-on header.navbar,
html.ah-chrome-on #navbarSupportedContent,
html.ah-chrome-on ul.us_menu,
html.ah-chrome-on .us_menu,
html.ah-chrome-on nav:has(> ul.us_menu),
html.ah-chrome-on #footer.footer,
html.ah-chrome-on footer.footer,
html.ah-chrome-on .ah-nav {
  display: none !important;
}

html.ah-chrome-on {
  --ah-accent: #c45c12;
  --ah-hero: #12202c;
}

html.ah-chrome-on body {
  padding-top: 0 !important;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex !important;
  flex-direction: column !important;
}

html.ah-chrome-on .ah-chrome-backdrop,
html.ah-chrome-on .ah-chrome-drawer {
  order: 2;
}

.ah-chrome-wrap {
  position: sticky;
  top: 0;
  z-index: 1070;
}

.ah-chrome {
  --chrome-ink: #f4f7fa;
  --chrome-steel: rgba(244, 247, 250, 0.72);
  --chrome-card: #12202c;
  --chrome-line: #1d3344;
  --chrome-mist: #1a2c3a;
  background: var(--chrome-card);
  border-bottom: 1px solid var(--chrome-line);
  color: var(--chrome-ink);
}

.ah-chrome-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  min-height: 3.35rem;
  padding: 0.45rem clamp(0.85rem, 2vw, 1.5rem);
}

.ah-chrome-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--chrome-ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  min-width: 0;
}

.ah-chrome-brand:hover,
.ah-chrome-brand:focus {
  color: #fff;
  text-decoration: none;
}

.ah-chrome-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  background: #c45c12;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.ah-chrome-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
}

.ah-chrome-page {
  margin: 0;
  color: var(--chrome-steel);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 0.85rem;
  border-left: 1px solid var(--chrome-line);
  min-width: 0;
}

.ah-chrome-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem 0.7rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.ah-chrome-link {
  color: var(--chrome-steel);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.35rem 0.15rem;
}

.ah-chrome-link:hover,
.ah-chrome-link.is-current {
  color: #fff;
  text-decoration: none;
}

.ah-chrome-admin-menu {
  position: relative;
}

.ah-chrome-admin-toggle {
  color: #f0b27a;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  padding: 0.3rem 0.15rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
}

.ah-chrome-admin-toggle::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.35rem;
  border-left: 0.28rem solid transparent;
  border-right: 0.28rem solid transparent;
  border-top: 0.32rem solid currentColor;
  vertical-align: middle;
}

.ah-chrome-admin-toggle:hover,
.ah-chrome-admin-toggle.is-current,
.ah-chrome-admin-toggle[aria-expanded="true"] {
  color: #fff;
}

.ah-chrome-admin-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 13.5rem;
  background: #fff;
  border: 1px solid #d7e0e8;
  border-radius: 0.7rem;
  padding: 0.35rem;
  z-index: 1080;
}

.ah-chrome-admin-menu-list a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 0.45rem;
  color: #0f1c28;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
}

.ah-chrome-admin-menu-list a:hover,
.ah-chrome-admin-menu-list a.is-current {
  background: #f4f7fa;
  text-decoration: none;
}

.ah-chrome-usbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.15rem;
  overflow-x: auto;
  background: #0b151d;
  padding: 0.35rem clamp(0.85rem, 2vw, 1.5rem);
  scrollbar-width: thin;
}

.ah-chrome-usbar-link {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.ah-chrome-usbar-link:hover,
.ah-chrome-usbar-link.is-current {
  color: #fff;
  background: #c45c12;
  text-decoration: none;
}

.ah-chrome-user {
  position: relative;
}

.ah-chrome-user > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  padding: 0.2rem 0.15rem 0.2rem 0.2rem;
  border-radius: 999px;
  user-select: none;
}

.ah-chrome-user > summary::-webkit-details-marker {
  display: none;
}

.ah-chrome-user > summary:hover,
.ah-chrome-user[open] > summary {
  background: var(--chrome-mist);
}

.ah-chrome-avatar {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--chrome-mist);
  border: 1px solid var(--chrome-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #f0b27a;
}

.ah-chrome-user-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--chrome-ink);
  max-width: 8.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ah-chrome-user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 12.5rem;
  background: #fff;
  border: 1px solid #d7e0e8;
  border-radius: 0.7rem;
  padding: 0.35rem;
  z-index: 1080;
}

.ah-chrome-user-menu a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 0.45rem;
  color: #0f1c28;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
}

.ah-chrome-user-menu a:hover {
  background: #f4f7fa;
  text-decoration: none;
}

.ah-chrome-menu-btn {
  display: none;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--chrome-line);
  border-radius: 0.5rem;
  background: #1a2c3a;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ah-chrome-menu-bars,
.ah-chrome-menu-bars::before,
.ah-chrome-menu-bars::after {
  display: block;
  width: 1.05rem;
  height: 2px;
  background: var(--chrome-ink);
  border-radius: 1px;
  position: relative;
}

.ah-chrome-menu-bars::before,
.ah-chrome-menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.ah-chrome-menu-bars::before { top: -5px; }
.ah-chrome-menu-bars::after { top: 5px; }

.ah-chrome-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1075;
}

.ah-chrome-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(20rem, 88vw);
  background: #fff;
  border-right: 1px solid #d7e0e8;
  z-index: 1080;
  display: flex;
  flex-direction: column;
}

.ah-chrome-drawer[hidden],
.ah-chrome-backdrop[hidden] {
  display: none !important;
}

.ah-chrome-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #d7e0e8;
}

.ah-chrome-drawer-close {
  border: 0;
  background: transparent;
  color: #5a6d7c;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.25rem;
}

.ah-chrome-drawer-nav {
  overflow: auto;
  padding: 0.5rem;
  display: grid;
  gap: 0.15rem;
}

.ah-chrome-drawer-nav a {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  color: #0f1c28;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.ah-chrome-drawer-nav a:hover,
.ah-chrome-drawer-nav a.is-current {
  background: #f4f7fa;
  text-decoration: none;
}

.ah-chrome-drawer-heading {
  margin: 0.65rem 0.75rem 0.15rem;
  color: #5a6d7c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .ah-chrome-menu-btn {
    display: inline-flex;
  }

  .ah-chrome-name {
    display: none;
  }

  .ah-chrome-page {
    padding-left: 0;
    border-left: 0;
  }

  .ah-chrome-user-label,
  .ah-chrome-admin-menu,
  .ah-chrome-end .ah-chrome-link {
    display: none;
  }
}

@media (max-width: 560px) {
  .ah-chrome-page {
    display: none;
  }
}

body.ah-chrome-nav-open {
  overflow: hidden;
}

html.ah-us-admin .sidebar-offcanvas,
html.ah-us-admin #sidebar[role="navigation"],
html.ah-us-admin .dashboard-wrapper > .navbar,
html.ah-us-admin #adminMenu,
html.ah-us-admin .admin-menu {
  display: none !important;
}

.ah-footer {
  order: 1;
  margin-top: auto;
  width: 100%;
  flex-shrink: 0;
  background: #0b151d;
  color: rgba(255, 255, 255, 0.72);
  border-top: 3px solid #c45c12;
}

.ah-footer-inner,
.ah-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1.25rem;
  padding: 0.85rem clamp(0.85rem, 2vw, 1.5rem);
}

.ah-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ah-footer-brand:hover {
  color: #fff;
  text-decoration: none;
}

.ah-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.95rem;
}

.ah-footer-nav a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}

.ah-footer-nav a:hover {
  color: #fff;
  text-decoration: none;
}

.ah-footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
}

.ah-footer-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
}
