/* Salitonics Institutional Stylesheet
 * Proportional typography (Inter); tabular numerals only on numbers that align
 * in a column (Tailwind `tabular-nums` per element), never on body: Inter's
 * tnum feature also gives the hyphen a figure-wide slot ("Deep - Tech").
 * obsidian/cyan palette, zero space-padded grids.
 */
:root {
  --bg-obsidian: #06090f;
  --bg-panel: #0b101b;
  --bg-panel-hover: #101829;
  --border-slate: #1e293b;
  --accent-cyan: #00e5ff;
  --accent-cobalt: #2563eb;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

.bg-tech-grid {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(30, 41, 59, 0.24) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 41, 59, 0.24) 1px, transparent 1px);
}

.bg-sub-grid {
  background-size: 12px 12px;
  background-image:
    linear-gradient(to right, rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
}

.glow-cyan {
  box-shadow: 0 0 24px -4px rgba(0, 229, 255, 0.26);
}

.glow-border {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.glow-border:hover {
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 28px -10px rgba(0, 229, 255, 0.2);
}

/* Custom Range Sliders (used inside optional Soliton Modal) */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: #1e293b;
  height: 5px;
  border-radius: 999px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #00e5ff;
  cursor: pointer;
  border: 2px solid #06090f;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.75);
  transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Active navigation link highlight */
.nav-link-active {
  color: #00e5ff !important;
  position: relative;
}

.nav-link-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: #00e5ff;
  border-radius: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #06090f;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00e5ff;
}

/* ---- Product pages (generated by tools/build_product_pages.py) ---- */
:focus-visible {
  outline: 2px solid #00e5ff;
  outline-offset: 2px;
}

.pp-skip {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 60;
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  background: #00e5ff;
  color: #06090f;
  font-size: 0.875rem;
  font-weight: 600;
}
.pp-skip:focus { top: 8px; }

.pp-h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  overflow-wrap: anywhere;
}
.pp-lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 44rem;
}
.pp-badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border-width: 1px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pp-fig {
  margin: 0;
  background: var(--bg-panel);
  border: 1px solid var(--border-slate);
  border-radius: 14px;
  padding: 1.5rem;
}
.pp-fig-scroll { overflow-x: auto; }
.dg { display: block; width: 100%; min-width: 520px; max-width: 680px; height: auto; margin: 0 auto; }
.dg-box { fill: #101829; stroke: #334155; stroke-width: 1.25; }
.dg-acc { stroke: #00e5ff; }
.dg-t { fill: #f1f5f9; font: 600 14px Inter, system-ui, sans-serif; }
.dg-s { fill: #a8b5c8; font: 400 13px Inter, system-ui, sans-serif; }
.dg-c { fill: #94a3b8; font: 600 11px Inter, system-ui, sans-serif; letter-spacing: 0.08em; }
.dg-ln { stroke: #64748b; stroke-width: 1.5; fill: none; }
.dg-hd { fill: #64748b; }
.dg-nd { fill: #00e5ff; }
.dg-cell { fill: #1e3a5f; stroke: #00e5ff; stroke-width: 1; }
.dg-wv { fill: none; stroke: #94a3b8; stroke-width: 2.5; }
.dg-acc2 { stroke: #00e5ff; }

.pp-dl { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 44rem; border-top: 1px solid var(--border-slate); }
.pp-row { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 0.625rem 0; border-bottom: 1px solid var(--border-slate); font-size: 0.875rem; }
.pp-row dt { color: var(--text-muted); text-align: right; }
.pp-row dd { color: var(--text-secondary); margin: 0; }

.pp-hl { display: flex; gap: 1rem; align-items: flex-start; height: 100%; }
.pp-n { color: #00e5ff; font-size: 0.8125rem; font-weight: 600; padding-top: 0.125rem; }

.pp-pre { overflow-x: auto; border-radius: 8px; background: #06090f; border: 1px solid var(--border-slate); padding: 1rem; font-size: 0.8125rem; line-height: 1.6; color: #e2e8f0; }

.pp-tile { display: block; padding: 0.875rem 1rem; border-radius: 12px; background: #06090f; border: 1px solid var(--border-slate); transition: border-color 0.2s ease; }
.pp-tile:hover { border-color: rgba(0, 229, 255, 0.5); }
.pp-tile-cur { border-color: rgba(0, 229, 255, 0.6); background: #0b101b; }
.pp-here { flex-shrink: 0; font-size: 0.6875rem; font-weight: 600; color: #00e5ff; }

@media (max-width: 480px) {
  .pp-row { grid-template-columns: 1fr; gap: 0.125rem; }
  .pp-row dt { text-align: left; }
  .pp-fig { padding: 1rem; }
}
