/* TekCapitol Research: editorial publication, not a product landing page */
:root {
  --rs-bg: #080e1a;
  --rs-ink: #0a1020;
  --rs-panel: #0f172a;
  --rs-line: #1e293b;
  --rs-soft: #94a3b8;
  --rs-muted: #64748b;
  --rs-white: #f1f5f9;
  --rs-accent: #22d3ee;
  --rs-blue: #93c5fd;
  --rs-warn: #fbbf24;
  --rs-weak: #f59e0b;
  --rs-mono: "Space Mono", "IBM Plex Mono", ui-monospace, monospace;
  --rs-sans: "Manrope", system-ui, sans-serif;
  --rs-max: 760px;
  --rs-wide: 1080px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--rs-bg);
  color: var(--rs-white);
  font-family: var(--rs-sans);
  font-size: 17px;
  line-height: 1.7;
  min-height: 100vh;
}
a { color: var(--rs-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.rs-shell { max-width: var(--rs-wide); margin: 0 auto; padding: 0 1.25rem 4rem; }
.site-nav {
  border-bottom: 1px solid var(--rs-line);
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0;
}
.site-nav-brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #e2e8f0;
  text-decoration: none;
}
.site-nav-brand span { color: #3b82f6; }
.site-nav-brand:hover { text-decoration: none; }

.rs-hero {
  padding: 2.75rem 0 2.25rem;
  border-bottom: 1px solid var(--rs-line);
  margin-bottom: 2.5rem;
}
.rs-eyebrow {
  font-family: var(--rs-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rs-accent);
  margin-bottom: 0.85rem;
}
.rs-hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 0.85rem;
  max-width: 18ch;
}
.rs-subhead {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--rs-soft);
  font-weight: 500;
  max-width: 36rem;
  margin-bottom: 1.25rem;
  line-height: 1.45;
}
.rs-intro {
  color: var(--rs-soft);
  max-width: 40rem;
  margin-bottom: 1.5rem;
}
.rs-intro p { margin-bottom: 0.75rem; }
.rs-intro .pull {
  color: var(--rs-white);
  font-weight: 600;
}
.rs-btns { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.rs-btn {
  display: inline-block;
  font-family: var(--rs-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.7rem 1.05rem;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid var(--rs-line);
}
.rs-btn:hover { text-decoration: none; }
.rs-btn-primary {
  background: var(--rs-accent);
  color: #041018;
  border-color: var(--rs-accent);
  font-weight: 700;
}
.rs-btn-ghost { color: var(--rs-blue); background: transparent; }

.rs-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 2.25rem;
  align-items: start;
}
@media (max-width: 900px) {
  .rs-layout { grid-template-columns: 1fr; }
}
.rs-toc {
  position: sticky;
  top: 1rem;
  font-size: 0.82rem;
}
@media (max-width: 900px) {
  .rs-toc { position: static; border: 1px solid var(--rs-line); border-radius: 8px; padding: 1rem; background: var(--rs-ink); }
}
.rs-toc-label {
  font-family: var(--rs-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rs-muted);
  margin-bottom: 0.65rem;
}
.rs-toc a {
  display: block;
  color: var(--rs-soft);
  padding: 0.22rem 0;
  text-decoration: none;
}
.rs-toc a:hover { color: var(--rs-white); }
.rs-paper { min-width: 0; max-width: var(--rs-max); }
.rs-meta {
  font-family: var(--rs-mono);
  font-size: 0.68rem;
  color: var(--rs-muted);
  letter-spacing: 0.04em;
  margin-bottom: 1.75rem;
}
.rs-paper h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 2.6rem 0 0.9rem;
  line-height: 1.2;
}
.rs-paper h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 1.6rem 0 0.5rem;
  color: #e2e8f0;
}
.rs-paper p { color: var(--rs-soft); margin-bottom: 0.95rem; }
.rs-paper ul, .rs-paper ol {
  color: var(--rs-soft);
  margin: 0 0 1rem 1.2rem;
}
.rs-paper li { margin-bottom: 0.35rem; }
.rs-paper .lede-block p { font-size: 1.02rem; }
.fn {
  font-size: 0.72em;
  vertical-align: super;
  font-family: var(--rs-mono);
  color: var(--rs-accent);
  margin-left: 0.08em;
}
.thesis {
  border-left: 3px solid var(--rs-accent);
  padding: 0.85rem 1rem;
  margin: 1.35rem 0 1.6rem;
  background: rgba(34, 211, 238, 0.05);
}
.thesis p { color: var(--rs-white); font-weight: 600; margin: 0; font-size: 1.08rem; }

.layer {
  border: 1px solid var(--rs-line);
  border-radius: 8px;
  padding: 1.15rem 1.2rem 1.05rem;
  margin: 1.25rem 0 1.6rem;
  background: var(--rs-panel);
}
.layer-num {
  font-family: var(--rs-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rs-accent);
  margin-bottom: 0.3rem;
}
.layer h3 { margin-top: 0; font-size: 1.2rem; }
.layer .q {
  color: var(--rs-white);
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.layer h4 {
  font-family: var(--rs-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rs-muted);
  margin: 0.85rem 0 0.35rem;
}
.actions {
  list-style: none;
  margin-left: 0;
}
.actions li { margin-bottom: 0.55rem; }
.actions strong { color: #e2e8f0; }

figure.rs-figure {
  margin: 1.75rem 0 2rem;
  border: 1px solid var(--rs-line);
  border-radius: 8px;
  background: var(--rs-ink);
  padding: 1.15rem 1.1rem 1rem;
}
.rs-figure figcaption {
  font-family: var(--rs-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rs-accent);
  margin-bottom: 0.85rem;
}
.rs-figure .caption {
  font-size: 0.88rem;
  color: var(--rs-soft);
  margin: 0.85rem 0 0;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--rs-sans);
}
.rs-figure .disclaimer {
  font-size: 0.78rem;
  color: var(--rs-warn);
  margin-top: 0.55rem;
  font-family: var(--rs-mono);
  letter-spacing: 0.02em;
}

.flow-path {
  list-style: none;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: stretch;
}
.flow-path li {
  background: #111827;
  border: 1px solid var(--rs-line);
  color: var(--rs-soft);
  font-size: 0.72rem;
  padding: 0.5rem 0.55rem;
  border-radius: 4px;
  flex: 1 1 6.2rem;
  min-width: 5.5rem;
  line-height: 1.3;
}
.flow-path li.is-model {
  border-color: var(--rs-accent);
  color: var(--rs-white);
  background: rgba(34, 211, 238, 0.1);
  font-weight: 700;
}

.diag-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}
@media (max-width: 860px) {
  .diag-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .diag-grid { grid-template-columns: 1fr; }
}
.diag-cell {
  border: 1px solid var(--rs-line);
  border-radius: 4px;
  padding: 0.7rem 0.65rem;
  background: #0b1220;
}
.diag-cell .n {
  font-family: var(--rs-mono);
  font-size: 0.58rem;
  color: var(--rs-accent);
  letter-spacing: 0.1em;
}
.diag-cell h4 {
  font-family: var(--rs-sans);
  font-size: 0.82rem;
  text-transform: none;
  letter-spacing: -0.02em;
  color: var(--rs-white);
  margin: 0.25rem 0 0.35rem;
}
.diag-cell p { font-size: 0.78rem; color: var(--rs-soft); margin: 0; line-height: 1.4; }

.bars { display: flex; flex-direction: column; gap: 0.55rem; }
.bar-row {
  display: grid;
  grid-template-columns: 9.5rem 1fr 2.2rem;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.78rem;
}
@media (max-width: 640px) {
  .bar-row { grid-template-columns: 1fr; gap: 0.2rem; }
}
.bar-row .label { color: var(--rs-soft); }
.bar-row .val { font-family: var(--rs-mono); color: var(--rs-muted); text-align: right; }
.track { height: 10px; background: #1e293b; border-radius: 99px; overflow: hidden; }
.fill { height: 100%; background: #3b82f6; border-radius: 99px; }
.fill.model { background: var(--rs-accent); }
.fill.weak { background: var(--rs-weak); }

.profile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 0.75rem 0 0.5rem;
}
.profile-table th, .profile-table td {
  text-align: left;
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid var(--rs-line);
}
.profile-table th { color: var(--rs-muted); font-weight: 500; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.profile-table td { color: var(--rs-soft); }
.profile-table .weak td { color: var(--rs-warn); }

.callout {
  background: var(--rs-panel);
  border: 1px solid var(--rs-line);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  margin: 1.4rem 0;
}
.callout strong { color: var(--rs-white); }

.rs-sources ol { margin-left: 1.15rem; }
.rs-sources li { margin-bottom: 0.7rem; font-size: 0.88rem; }
.rs-sources a { word-break: break-word; }

.rs-cta {
  margin-top: 2.75rem;
  padding: 1.5rem 1.35rem;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 8px;
  background: linear-gradient(145deg, #0a1628 0%, #0f172a 70%);
}
.rs-cta h2 { margin-top: 0; }
.rs-cta .tiny {
  font-family: var(--rs-mono);
  font-size: 0.68rem;
  color: var(--rs-muted);
  margin-top: 0.85rem;
}

.rs-index-hero { padding: 2.5rem 0 1.5rem; }
.rs-index-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 0.6rem;
}
.rs-index-lede { color: var(--rs-soft); max-width: 38rem; margin-bottom: 2rem; }
.rs-card {
  display: block;
  border: 1px solid var(--rs-line);
  border-radius: 8px;
  padding: 1.4rem 1.4rem 1.25rem;
  background: var(--rs-panel);
  text-decoration: none;
  max-width: 40rem;
}
.rs-card:hover { border-color: rgba(34, 211, 238, 0.45); text-decoration: none; }
.rs-card-kicker {
  font-family: var(--rs-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rs-accent);
  margin-bottom: 0.5rem;
}
.rs-card h2 { color: var(--rs-white); font-size: 1.45rem; margin-bottom: 0.4rem; letter-spacing: -0.03em; }
.rs-card p { color: var(--rs-soft); margin-bottom: 0.9rem; }
.rs-card .go {
  font-family: var(--rs-mono);
  font-size: 0.72rem;
  color: var(--rs-blue);
}

[data-tc-footer] { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rs-line); }

@media print {
  body { background: #fff; color: #111; }
  .site-nav, [data-tc-footer], .rs-btns, .rs-toc { display: none; }
  .rs-layout { display: block; }
  .rs-paper p, .rs-paper li { color: #222; }
}
