/* Shared RicSwap header. Pages keep their own fonts and color tokens. */
.ric-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  height: 72px;
  padding: 0 28px;
  background: rgba(3, 4, 7, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ric-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #eef0f8;
}
.ric-brand img { width: 40px; height: 40px; display: block; }
.ric-brand span {
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  letter-spacing: 1px;
  line-height: 1;
}
.ric-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.ric-bar a { text-decoration: none; }
.ric-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  color: #8385a0;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.ric-links a:hover,
.ric-links a[aria-current="page"] {
  color: #eef0f8;
  background: rgba(255, 255, 255, 0.04);
}
.ric-chain {
  display: flex;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.ric-chain button {
  padding: 7px 10px;
  background: transparent;
  color: #8385a0;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.3px;
}
.ric-chain button[aria-pressed="true"] {
  background: rgba(255, 77, 0, 0.16);
  color: #eef0f8;
}
.ric-burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}
.ric-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #eef0f8;
  border-radius: 2px;
}
.ric-bar a:focus-visible,
.ric-bar button:focus-visible,
.ric-warn button:focus-visible {
  outline: 2px solid #ff4d00;
  outline-offset: 2px;
}
.ric-warn {
  position: relative;
  z-index: 90;
  margin-top: 72px;
  background: rgba(255, 77, 0, 0.08);
  border-bottom: 1px solid rgba(255, 77, 0, 0.28);
}
.ric-warn-toggle {
  display: block;
  width: 100%;
  padding: 10px 28px;
  background: transparent;
  color: #eef0f8;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.ric-warn-more {
  padding: 0 28px 12px;
  color: #c0c2d8;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.ric-warn-more a { color: #e8b84b; font-weight: 600; }
.ric-warn-more[hidden] { display: none; }
@media (max-width: 720px) {
  .ric-bar { height: 64px; padding: 0 12px; gap: 8px; }
  .ric-brand span { font-size: 22px; }
  .ric-brand img { width: 32px; height: 32px; }
  .ric-burger { display: flex; }
  .ric-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 12px 14px;
    background: #060810;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    max-height: min(70vh, 480px);
    overflow-y: auto;
  }
  .ric-bar.is-open .ric-links { display: flex; }
  .ric-links a { min-height: 44px; }
  .ric-warn { margin-top: 64px; }
  .ric-warn-toggle,
  .ric-warn-more { text-align: left; padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 420px) {
  .ric-brand span { display: none; }
}
/* Page toolbars (wallet, language) sit under the fixed bar once the warning scrolls away. */
.header.ric-tools,
.nav.ric-tools,
header.ric-tools {
  position: sticky;
  top: 72px;
  z-index: 150;
}
@media (max-width: 720px) {
  .header.ric-tools,
  .nav.ric-tools,
  header.ric-tools { top: 64px; }
}
