/*
 * Axioma theme for the web journal (2026-10-08). Loaded after main.css and
 * terminal.css: it re-points their variables to the terminal's own tokens
 * (src/styles/tokens.css, PREMIUM_UI.md theme "Bloomberg", D-629) so the
 * journal, the website and the terminal read as one product.
 */

@font-face {
  font-family: 'Axioma Sans';
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/axioma-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Axioma Sans';
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/axioma-sans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Axioma Sans';
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/axioma-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Axioma Sans';
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/axioma-sans-700.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  /* main.css */
  --bg-primary: #000000;
  --bg-secondary: #0a0b0c;
  --bg-card: #0a0b0c;
  --bg-nav: #000000;
  --bg-input: #131517;
  --text-primary: #d9dad9;
  --text-secondary: #9ea0a0;
  --text-muted: #7e8080;
  --accent-green: #51ef6b;
  --accent-red: #ff1838;
  --border-color: #2c2f33;
  --border-accent: #3a3e43;
  --color-success: #51ef6b;
  --color-danger: #ff1838;
  --color-warning: #f4c430;
  --color-info: #5b9cff;
  --color-accent: #5b9cff;
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 3px;
  /* terminal.css */
  --t-bg: #000000;
  --t-panel: #0a0b0c;
  --t-panel-2: #131517;
  --t-rule: #2c2f33;
  --t-rule-soft: #1c1f22;
  --t-text: #d9dad9;
  --t-text-dim: #9ea0a0;
  --t-text-faint: #7e8080;
  --t-up: #51ef6b;
  --t-down: #ff1838;
  --t-flat: #7e8080;
  --t-amber: #f4c430;
  --t-accent: #5b9cff;
  --t-mono: 'JetBrains Mono', Consolas, 'SFMono-Regular', monospace;
  --t-sans: 'Axioma Sans', 'Barlow Semi Condensed', 'Segoe UI', sans-serif;
  --ax-gold: #f4c430;
  --ax-segment: #2f5185;
}

html,
body {
  background: #000;
}

body {
  font-family: var(--t-sans);
  font-size: 15px;
  color: var(--text-primary);
}

input,
select,
textarea,
button {
  font-family: var(--t-sans);
}

::selection {
  background: #4a3b0e;
  color: #fff;
}

a {
  color: #8db5ff;
}

/* ---------- Top bar ---------- */

nav {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid #1c1f22;
  background: rgba(0, 0, 0, 0.94);
}

.ax-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 8px;
  text-decoration: none;
}

.ax-brand img {
  width: 26px;
  height: 26px;
  border-radius: 3px;
}

.ax-brand span {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.ax-brand b {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ax-brand small {
  color: var(--ax-gold);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 6px 10px;
  border-radius: 3px;
  border-bottom: 0;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  background: #131517;
  color: #fff;
}

.nav-links a.nav-active {
  background: #131517;
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--ax-gold);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.lang-toggle {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #2c2f33;
  border-radius: 3px;
}

.lang-btn {
  padding: 4px 8px;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.lang-btn.lang-active {
  background: var(--ax-segment);
  color: #e8f1ff;
}

/* ---------- Surfaces and controls ---------- */

.card,
.t-panel,
.t-card {
  border-color: #2c2f33;
  border-radius: 3px;
}

button,
.btn,
input[type='submit'] {
  border-radius: 3px;
}

input,
select,
textarea {
  border: 1px solid #2c2f33;
  border-radius: 3px;
  background: #131517;
  color: var(--text-primary);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2f80ed;
  outline: none;
  box-shadow: 0 0 0 2px rgba(47, 128, 237, 0.25);
}

.shared-filter-form,
.filters-bar {
  border-bottom: 1px solid #1c1f22;
  background: #000;
}

.breadcrumbs,
.breadcrumb {
  background: #000;
}

/* ---------- Auth pages ---------- */

.ax-auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
}

.ax-auth-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: clamp(32px, 6vw, 96px);
  border-right: 1px solid #1c1f22;
  background: radial-gradient(700px 380px at 20% 10%, rgba(244, 196, 48, 0.08), transparent 70%),
    #000;
}

.ax-brand-lg img {
  width: 34px;
  height: 34px;
}

.ax-brand-lg b {
  font-size: 19px;
}

.ax-auth-claim {
  max-width: 18ch;
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1.08;
}

.ax-auth-points {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
  font-size: 16px;
}

.ax-auth-points li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 12px;
  background: var(--ax-gold);
  vertical-align: 3px;
}

.ax-auth-main {
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: #0a0b0c;
}

.ax-auth-card {
  width: min(400px, 100%);
}

.ax-auth-card h1 {
  margin: 0 0 24px;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
}

.ax-form {
  display: grid;
  gap: 8px;
}

.ax-form label {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ax-form input,
.ax-form select {
  height: 44px;
  padding: 0 12px;
  font-size: 16px;
}

.ax-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  margin-top: 18px;
  border: 1px solid #2c2f33;
  border-radius: 3px;
  background: #131517;
  color: #d9dad9;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.ax-btn-primary {
  border-color: var(--ax-gold);
  background: var(--ax-gold);
  color: #000;
}

.ax-btn-primary:hover {
  border-color: #ffd453;
  background: #ffd453;
}

.login-error {
  padding: 10px 12px;
  border: 1px solid rgba(255, 24, 56, 0.32);
  border-radius: 3px;
  background: rgba(255, 24, 56, 0.1);
  color: #ff8f9a;
  font-size: 14px;
}

.login-register-link,
.ax-auth-foot {
  margin: 20px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.ax-auth-foot {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #1c1f22;
  color: var(--text-muted);
}

.login-register-link a,
.ax-auth-foot a {
  color: var(--ax-gold);
  text-decoration: none;
}

@media (max-width: 860px) {
  .ax-auth {
    grid-template-columns: 1fr;
  }

  .ax-auth-side {
    gap: 16px;
    padding: 28px 20px;
    border-right: 0;
    border-bottom: 1px solid #1c1f22;
  }

  .ax-auth-points {
    display: none;
  }

  nav {
    flex-wrap: wrap;
    padding: 8px 12px;
  }
}

.breadcrumb-trail {
  border-bottom: 1px solid #1c1f22;
  background: #000;
}
