/* ═══════════════════════════════════════════════════════════
   Blacknight Liquid Alternative ETI — Shared Stylesheet
   Design: dark navy #0d1b2e, accent #8ab4d4, Inter font
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* ── Reset & tokens ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0d1b2e;
  --bg-dark:      #081422;
  --bg-mid:       #112236;
  --panel:        rgba(255,255,255,0.05);
  --panel-hover:  rgba(255,255,255,0.08);
  --border:       rgba(255,255,255,0.12);
  --border-light: rgba(255,255,255,0.07);
  --accent:       #8ab4d4;
  --accent-dim:   rgba(138,180,212,0.15);
  --accent-border:rgba(138,180,212,0.35);
  --text:         #ffffff;
  --text-muted:   rgba(255,255,255,0.55);
  --text-dim:     rgba(255,255,255,0.35);
  --green:        #4caf87;
  --green-dim:    rgba(76,175,135,0.18);
  --red:          #e07070;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius:       8px;
  --radius-lg:    12px;
  --radius-xl:    16px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────────────────── */
h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
h2 { font-size: 1.1rem; font-weight: 500; letter-spacing: -0.01em; }
h3 { font-size: 0.9rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
p  { color: var(--text-muted); line-height: 1.7; }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
@media (max-width: 768px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ── Header / Nav ────────────────────────────────────────── */
.site-header {
  background: var(--bg-dark);
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 1rem;
}
.brand-name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.site-nav a.active { color: var(--accent); background: var(--accent-dim); }
.lang-switcher {
  display: flex;
  gap: 4px;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 0.5px solid var(--border);
}
.lang-switcher a {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 4px 8px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.lang-switcher a:hover { color: var(--accent); text-decoration: none; }
.lang-switcher a.current { color: var(--accent); background: var(--accent-dim); }
@media (max-width: 640px) {
  .brand-name { font-size: 10px; }
  .site-nav a { padding: 6px 8px; font-size: 12px; }
}

/* ── Page hero ───────────────────────────────────────────── */
.page-hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 0.5px solid var(--border);
}
.listed-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 0.5px solid var(--accent-border);
  border-radius: 20px;
  padding: 3px 12px;
  margin-bottom: 1rem;
}
.listed-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.fund-subtitle { font-size: 0.95rem; color: var(--text-muted); margin-top: 0.5rem; max-width: 600px; }

/* ── Metric cards ────────────────────────────────────────── */
.metrics-row {
  display: flex;
  gap: 0;
  margin: 1.5rem 0;
  background: var(--panel);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.metric {
  flex: 1;
  padding: 1rem 1.25rem;
  border-right: 0.5px solid var(--border);
}
.metric:last-child { border-right: none; }
.metric-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: 0.3rem; }
.metric-value { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; }
.metric-value.positive { color: var(--green); }
.metric-note { font-size: 11px; color: var(--text-dim); margin-top: 0.15rem; }
@media (max-width: 640px) {
  .metrics-row { flex-direction: column; }
  .metric { border-right: none; border-bottom: 0.5px solid var(--border); }
  .metric:last-child { border-bottom: none; }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  border-radius: var(--radius);
  padding: 9px 18px;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
}
.btn-primary:hover { background: #a0c8e8; }
.btn-secondary {
  background: var(--panel);
  color: var(--text);
  border: 0.5px solid var(--border);
}
.btn-secondary:hover { background: var(--panel-hover); }
.btn-icon { font-size: 14px; }

/* ── Quick access doc links ──────────────────────────────── */
.quick-docs { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.quick-doc {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  font-size: 13px;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  text-decoration: none !important;
}
.quick-doc:hover { background: var(--panel-hover); color: var(--text); }
.quick-doc-icon { font-size: 15px; flex-shrink: 0; }

/* ── Page content sections ───────────────────────────────── */
.page-content { padding: 2rem 0 4rem; }
.section { margin-bottom: 2.5rem; }
.section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 0.5px solid var(--border);
}

/* ── Document table ──────────────────────────────────────── */
.doc-category { margin-bottom: 2rem; }
.doc-category-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.doc-list { display: flex; flex-direction: column; gap: 0.5rem; }
.doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--panel);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  transition: background 0.15s;
}
.doc-item:hover { background: var(--panel-hover); }
.doc-item-left { display: flex; align-items: center; gap: 0.75rem; }
.doc-icon { font-size: 18px; flex-shrink: 0; }
.doc-name { font-size: 13px; font-weight: 500; color: var(--text); }
.doc-date { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.doc-badge {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 0.5px solid var(--accent-border);
  border-radius: 20px;
  padding: 2px 8px;
  flex-shrink: 0;
}
.doc-download {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color 0.15s;
  flex-shrink: 0;
  text-decoration: none !important;
}
.doc-download:hover { color: var(--accent); }

/* ── Performance / chart area ────────────────────────────── */
.chart-wrap {
  background: var(--panel);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.chart-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.5rem; }
.chart-title { font-size: 13px; font-weight: 500; }
.chart-note { font-size: 11px; color: var(--text-dim); }
.chart-canvas { width: 100%; height: 200px; }
.perf-table { width: 100%; border-collapse: collapse; }
.perf-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 500;
  text-align: right;
  padding: 0.5rem 0.75rem;
  border-bottom: 0.5px solid var(--border);
}
.perf-table th:first-child { text-align: left; }
.perf-table td {
  font-size: 13px;
  text-align: right;
  padding: 0.5rem 0.75rem;
  border-bottom: 0.5px solid var(--border-light);
  color: var(--text-muted);
}
.perf-table td:first-child { text-align: left; color: var(--text); }
.perf-table td.pos { color: var(--green); }
.perf-table td.neg { color: var(--red); }

/* ── Disclosures ─────────────────────────────────────────── */
.disc-section { margin-bottom: 2rem; }
.disc-section h2 { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 0.75rem; }
.disc-section p, .disc-section li { font-size: 13px; color: var(--text-muted); line-height: 1.75; }
.disc-section ul { padding-left: 1.25rem; margin-top: 0.5rem; }
.disc-section li { margin-bottom: 0.4rem; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-dark);
  border-top: 0.5px solid var(--border);
  padding: 1.5rem 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.footer-disclaimer {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.footer-meta {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-meta span { opacity: 0.7; }

/* ── Gate page specific ──────────────────────────────────── */
.gate-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: var(--bg-dark);
}
.gate-brand {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.gate-headline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 2rem;
  text-align: center;
}
.gate-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,360px));
  gap: 1rem;
  width: 100%;
  max-width: 1100px;
}
@media (max-width: 900px) { .gate-cols { grid-template-columns: 1fr; max-width: 480px; } }

.gate-panel {
  background: var(--panel);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}
.gate-panel:hover { border-color: rgba(138,180,212,0.3); }

.lang-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border: 0.5px solid var(--accent-border);
  border-radius: 20px;
  padding: 2px 10px;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
  width: fit-content;
}
.gate-notice-title { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 0.6rem; }
.gate-notice-intro { font-size: 12.5px; color: var(--text-muted); line-height: 1.65; margin-bottom: 1rem; }
.gate-checks { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.25rem; }
.gate-checks li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}
.check-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--accent-border);
  border-radius: 3px;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-icon::after { content: '✓'; font-size: 10px; color: var(--accent); line-height: 1; }
.gate-divider { width: 100%; height: 0.5px; background: var(--border); margin: 1rem 0; }
.gate-actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: auto; }
.gate-btn-confirm {
  background: var(--accent-dim);
  border: 0.5px solid var(--accent-border);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s;
  text-align: center;
}
.gate-btn-confirm:hover { background: rgba(138,180,212,0.28); }
.gate-btn-exit {
  background: transparent;
  border: 0.5px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font);
  text-align: center;
  transition: color 0.15s;
}
.gate-btn-exit:hover { color: var(--text-muted); }
.gate-footer-note {
  margin-top: 2rem;
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  max-width: 640px;
}

/* ── Utilities ───────────────────────────────────────────── */
.divider { height: 0.5px; background: var(--border); margin: 1.5rem 0; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Key Information ─────────────────────────────────────── */
.ki-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 768px) { .ki-grid { grid-template-columns: 1fr; } }
.ki-panel {
  background: var(--panel);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.ki-panel-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.ki-table { width: 100%; border-collapse: collapse; }
.ki-table tr:not(:last-child) td { border-bottom: 0.5px solid var(--border); }
.ki-label {
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 0.45rem 0;
  width: 52%;
  vertical-align: top;
}
.ki-value {
  font-size: 12.5px;
  color: var(--text);
  text-align: right;
  font-weight: 500;
  padding: 0.45rem 0;
  vertical-align: top;
}
.ki-note {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 0.75rem;
  line-height: 1.7;
}

/* ── Characteristics / feature list ─────────────────────── */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}
.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
}

/* ── Underlying Security ─────────────────────────────────── */
.underlying-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}
.underlying-card {
  background: var(--panel);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.underlying-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.underlying-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

/* ── Product disclosure list ─────────────────────────────── */
.prod-disc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.prod-disc-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}
.prod-disc-list li::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
}

/* ── Info table (Key Information, Underlying Security) ───── */
.info-table { width: 100%; border-collapse: collapse; }
.info-table tr:not(.info-sub):not(:last-child) td { border-bottom: 0.5px solid var(--border); }
.info-sub td {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  font-weight: 500;
  padding: 1rem 0 0.4rem;
}
.info-sub:first-child td { padding-top: 0.1rem; }
.info-label {
  font-size: 13px;
  color: var(--text-muted);
  padding: 0.5rem 2rem 0.5rem 0;
  width: 30%;
  vertical-align: top;
}
.info-value {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 0;
  text-align: right;
  vertical-align: top;
}

/* ── Performance page — BID/ASK/YTD layout ─────────────── */
.perf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
@media (max-width: 700px) {
  .perf-grid { grid-template-columns: 1fr; }
}
.perf-cards {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.perf-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
}
.perf-card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.perf-card-value {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.perf-stats-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.4rem 1.6rem;
}
.perf-stats-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin: 1.2rem 0 0.5rem;
}
.perf-stats-sub:first-child { margin-top: 0; }
.perf-stats-table {
  width: 100%;
  border-collapse: collapse;
}
.perf-stats-label {
  font-size: 13px;
  color: var(--text-muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border-light);
}
.perf-stats-val {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  text-align: right;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border-light);
}
.perf-data-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
