/* Visual polish layer: font, calmer labels, softer cards. Loaded after the page's own styles so it can override them. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  scrollbar-width: thin;
  scrollbar-color: #30363d transparent;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: radial-gradient(1100px 380px at 50% -140px, rgba(0, 229, 255, 0.07), transparent 70%) no-repeat, var(--bg);
}

h1, h2, h3 { letter-spacing: -0.015em; }
h1 { font-weight: 800; }

/* numbers line up in columns */
td, th, .g-val, .s-val, .ts-big, #chartWindowStats td, .signal-main .holding { font-variant-numeric: tabular-nums; }

/* section labels: quiet blue-grey with a thin accent bar instead of loud orange */
.section-title, .era-header h3, .log-header h3, .board-header h3 {
  color: #8da2b8;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.section-title::before, .era-header h3::before, .log-header h3::before, .board-header h3::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-right: 8px;
  vertical-align: -0.12em;
  border-radius: 2px;
  background: var(--cyan);
}
.explainer h3 { color: #dbe4ee; border-left: 3px solid var(--cyan); padding-left: 10px; }

/* cards: softer edge, a little depth */
.card, .board-card, .log-card, .era-card, .signal-banner, .explainer {
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 6px 18px rgba(0, 0, 0, 0.22);
}
a.card {
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0) 60%), var(--panel);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 6px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
a.card:hover {
  border-color: rgba(0, 229, 255, 0.65);
  box-shadow: 0 10px 28px rgba(0, 229, 255, 0.10), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

/* buttons and focus */
.preset-btn, .load-btn, .share-btn, .reset-link-btn { transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease; }
.preset-btn:hover { background: rgba(0, 229, 255, 0.07); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }


/* Card titles (trade log, era stress test, leaderboard) match the "How This Setup Fares By Fill Price" title: plain, bold, no bar */
.era-header h3, .log-header h3, .board-header h3 {
  color: var(--text);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}
.era-header h3::before, .log-header h3::before, .board-header h3::before { display: none; }

/* era table: fit a phone without sideways scrolling */
@media (max-width: 600px) {
  table.era-table th { white-space: normal; padding: 8px 5px; font-size: 0.64rem; letter-spacing: 0; line-height: 1.25; vertical-align: bottom; }
  table.era-table td { padding: 9px 5px; font-size: 0.8rem; }
  table.era-table td:first-child, table.era-table th:first-child { white-space: normal; width: 34%; padding-left: 8px; }
  table.era-table td:first-child { font-weight: 400; font-size: 0.8rem; }
}

/* Sidebar section titles match the card titles under the chart (Trade Log, Historical Drawdowns): plain, bold, white, with the bar */
.section-title {
  color: var(--text);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}
.section-title::before { content: none; }
