/* Shared public navigation; keep all destinations visible at narrow widths. */
body>header:has(.primary-menu){height:auto;min-height:96px;gap:12px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}.primary-menu{display:flex;flex-wrap:wrap;gap:7px;max-width:100%}.primary-menu a{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;border:1px solid #40556d;border-radius:8px;background:#172535;color:#e6edf6;text-decoration:none;padding:10px 14px;white-space:nowrap}.primary-menu a[aria-current="page"]{background:#d6b578;color:#151b24;border-color:#d6b578}.primary-menu a:focus-visible{outline:2px solid #e4c888;outline-offset:3px}@media(max-width:800px){body>header .primary-menu{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}body>header .primary-menu a{white-space:normal;min-width:0;padding:7px 5px;font-size:12px;line-height:1.35;text-align:center}body>header .primary-menu .menu-icon{display:none}}

.primary-menu .attack-menu{position:relative;overflow:visible}.primary-menu .menu-hot{position:absolute;right:5px;top:-10px;width:20px;height:24px;line-height:0;pointer-events:none;filter:drop-shadow(0 1px 3px #9a340b66)}.primary-menu .menu-hot svg{display:block}@media(max-width:800px){.primary-menu .menu-hot{width:15px;height:18px;right:4px;top:-7px}.primary-menu .menu-hot svg{width:15px;height:18px}}

.primary-menu .duel-menu {
  position: relative;
  overflow: visible;
}
header .primary-menu .menu-new {
  position: absolute;
  top: -7px;
  right: 4px;
  padding: 1px 5px;
  border-radius: 8px;
  background: #ffd46b;
  color: #3b2200;
  box-shadow: 0 0 7px #ffd46b66;
  font: 800 9px/12px system-ui, sans-serif;
  letter-spacing: .04em;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  header .primary-menu .menu-new {
    animation: menu-new-glow 1.2s ease-in-out 2;
  }
}
@keyframes menu-new-glow {
  50% { box-shadow: 0 0 12px 2px #ffd46ba6; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width:800px) {
  header .primary-menu .menu-new { top: -5px; }
}

/* The header is shared across calculators, markets and community pages. */
body>header .primary-menu{align-items:center}
body>header .primary-menu a{min-height:44px;padding:10px 12px;border:1px solid #40556d;border-radius:8px;background:#172535;color:#e6edf6;font-family:inherit;font-size:15px;font-weight:600;line-height:1.4;letter-spacing:0;text-align:center;text-decoration:none}
body>header .primary-menu a[aria-current="page"]{background:#d6b578;color:#151b24;border-color:#d6b578}
body>header:has(.primary-menu)>.brand{font-size:20px;gap:12px;line-height:1.4}
body>header:has(.primary-menu)>.brand small{font-size:12px;letter-spacing:1px}
@media(max-width:800px){body>header .primary-menu a{padding:7px 5px;font-size:12px;line-height:1.35}body>header:has(.primary-menu)>.brand{font-size:16px;gap:8px}body>header:has(.primary-menu)>.brand small{font-size:10px}body>header:has(.primary-menu) .brand-logo{width:44px;height:40px}}

body > .site-standalone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: max(16px, calc((100vw - 1080px) / 2));
  border-bottom: 1px solid var(--line, #2a3544);
}
.site-standalone-header .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-standalone-header .brand small { display: block; }
body main .site-footer {
  display: block;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--line, #2a3544);
  color: var(--muted, #a7b1c1);
  font-family: inherit;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
}
body main .site-footer .visitor-stats,
.site-footer-bottom,
.site-footer-bottom nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
body main .site-footer .visitor-stats {
  justify-content: center;
  margin: 0;
  padding: 14px 0;
  border: 0;
  color: inherit;
  font-size: inherit;
}
.site-footer .visitor-stats strong { margin-inline-start: 4px; color: var(--text, #e9edf3); font-variant-numeric: tabular-nums; }
.site-footer-bottom { justify-content: center; padding: 8px 0 16px; text-align: center; }
.site-footer-bottom nav { justify-content: center; column-gap: 14px; }
.site-footer-bottom nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold, #d6b578); }
@media (max-width: 600px) {
  .site-footer-bottom nav { flex-basis: 100%; }
  body main .site-footer .visitor-stats { gap: 6px 12px; }
}

/* One stable random sponsor per page load; title only, no image. */
.primary-menu [data-banner-text][hidden]{display:none!important}
body>header .primary-menu .menu-ad{position:relative;overflow:visible;min-width:0;white-space:nowrap;text-align:center;justify-content:center}
.menu-ad-title{line-height:1.4;white-space:nowrap}
header .primary-menu .menu-ad-badge{position:absolute;top:-7px;right:4px;padding:1px 5px;border:0;border-radius:8px;background:#ffd46b;color:#3b2200;box-shadow:0 0 7px #ffd46b66;font:800 9px/12px system-ui,sans-serif;letter-spacing:.04em;pointer-events:none}
@media(max-width:800px){header .primary-menu .menu-ad-badge{top:-5px}}

/* Keep every menu and its 44px target while reducing mobile header whitespace. */
@media(max-width:800px){
 body>header:has(.primary-menu){gap:8px;padding-top:8px;padding-bottom:8px}
 body>header .primary-menu,body>header .primary-menu:has(.issues-menu){column-gap:5px;row-gap:3px}
}
/* Shared target minimum also applies to image-overlay banner controls. */
body .banner-next{min-width:44px;min-height:44px}
