/* TreasuryX shared styles.
   Change the tokens below to restyle the whole site, including the navigation.
   Page files keep their own layout and calculator rules. */

:root {
  color-scheme: dark;
  --tx-bg: #05070a;
  --tx-panel: #0d1117;
  --tx-panel-2: #111821;
  --tx-line: #202b38;
  --tx-text: #e8eef6;
  --tx-muted: #91a0b2;
  --tx-faint: #8993a4;
  --tx-accent: #4da3ff;
  --tx-accent-strong: #2563eb;
  --tx-green: #39d98a;
  --tx-red: #ff6b78;
  --tx-orange: #f7931a;
  --tx-footer: #4f5969;
  --tx-radius: 16px;
  --tx-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --tx-nav-bg: rgba(10, 12, 18, 0.96);
  --tx-nav-link: #aeb6c5;
  --tx-nav-text: #ffffff;
  --tx-menu-bg: #151922;
  --tx-menu-muted: #7f8999;
  --tx-menu-current: #9dccff;
  --tx-mobile-bg: #10131a;
  --tx-mobile-text: #dce2ec;
  --tx-mobile-link: #8993a4;
  --tx-mobile-sign: #758093;

  /* Names already used by the LEAPS, option, and price-impact pages. */
  --bg: var(--tx-bg);
  --panel: var(--tx-panel);
  --panel2: var(--tx-panel-2);
  --line: var(--tx-line);
  --text: var(--tx-text);
  --muted: var(--tx-muted);
  --blue: var(--tx-accent);
  --green: var(--tx-green);
  --red: var(--tx-red);
  --radius: var(--tx-radius);
}

html {
  background: var(--tx-bg);
  /* Keep the same scrollbar space on every page, so the centered menu does not jump. */
  scrollbar-gutter: stable;
  scrollbar-color: #6d7c90 #121820;
  scrollbar-width: auto;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #121820;
}

::-webkit-scrollbar-thumb {
  background: #6d7c90;
  border-radius: 999px;
  border: 3px solid #121820;
}

::-webkit-scrollbar-thumb:hover {
  background: #8b97a8;
}

.callout {
  border: 1px solid #23384d;
  background: #0b1722;
  border-radius: 12px;
  padding: 13px;
  color: #b8c8d9;
  font-size: 12px;
  line-height: 1.55;
  margin: 18px 0 0;
}

.callout.warning {
  border-color: #55452b;
  background: #19150e;
  color: #e7d2a7;
}

body {
  margin: 0;
  background: var(--tx-bg);
  color: var(--tx-text);
  font-family: var(--tx-font);
}

::selection {
  background: var(--tx-accent);
  color: #041018;
}

/* One content column, aligned with the navigation, on every page. */
.page,
.app-container,
.wrap,
.page-wrap {
  box-sizing: border-box;
  width: min(1200px, calc(100% - 40px));
  max-width: none;
  margin: 0 auto;
  padding: 28px 0 48px;
}

@media (max-width: 800px) {
  .page,
  .app-container,
  .wrap,
  .page-wrap {
    width: min(1200px, calc(100% - 40px));
    padding: 22px 0 40px;
  }
}

@media (max-width: 450px) {
  .page,
  .app-container,
  .wrap,
  .page-wrap {
    width: calc(100% - 28px);
    padding: 18px 0 32px;
  }
}

.hero {
  position: relative;
  padding: 10px 0 42px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  color: var(--tx-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tx-accent);
  box-shadow: 0 0 10px rgb(from var(--tx-accent) r g b / 0.8);
}

.hero-eyebrow.topic-crypto { color: #06b6d4; }
.hero-eyebrow.topic-crypto .hero-dot {
  background: #06b6d4;
  box-shadow: 0 0 10px rgb(from #06b6d4 r g b / 0.8);
}

.hero-eyebrow.topic-stock { color: #F7931A; }
.hero-eyebrow.topic-stock .hero-dot {
  background: #F7931A;
  box-shadow: 0 0 10px rgb(from #F7931A r g b / 0.8);
}

.hero-eyebrow.topic-options { color: #39d98a; }
.hero-eyebrow.topic-options .hero-dot {
  background: #39d98a;
  box-shadow: 0 0 10px rgb(from #39d98a r g b / 0.8);
}

.hero-eyebrow.topic-macro { color: #d416ce; }
.hero-eyebrow.topic-macro .hero-dot {
  background: #d416ce;
  box-shadow: 0 0 10px rgb(from #d416ce r g b / 0.8);
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 35px);
  line-height: 1.05;
  letter-spacing: -1.8px;
  color: var(--tx-nav-text);
}

.hero h1 span {
  color: var(--tx-accent);
}

.hero p {
  max-width: 680px;
  margin: 15px 0 0;
  color: var(--tx-faint);
  font-size: 15px;
  line-height: 1.6;
}

/* Name rows on the data pages, laid out like a DefiLlama ranking row. */
.tx-logo-name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  vertical-align: middle;
}

.tx-logo-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.15;
}

.tx-logo-title {
  font-weight: 650;
  color: inherit;
}

.tx-logo-sub {
  margin-top: 2px;
  color: #8b98a8;
  font-size: 11px;
  font-weight: 500;
}

.tx-mark-ring {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  display: block;
  background: #1b2330;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.tx-logo-name .tx-mark,
.tx-mark-ring .tx-mark {
  width: 32px;
  height: 32px;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: transparent;
}

.tx-mark-sm,
.tx-logo-sm {
  gap: 6px;
}

.tx-mark-ring.tx-mark-sm,
.tx-mark-ring.tx-mark-sm .tx-mark {
  width: 16px;
  height: 16px;
}

.tx-mark-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3a4154;
  color: #e8eef6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  user-select: none;
}

.tx-mark-ring.tx-mark-sm .tx-mark-fallback {
  font-size: 8px;
  letter-spacing: 0;
}

/* Footer. The markup is added by master/js/tx-footer.js. */
.footer {
  padding: 20px;
  text-align: center;
  color: var(--tx-footer);
  font-size: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
