/* ========================================================================
   Contrarian Corpus — editorial dark-mode financial library
   Aesthetic anchors: Financial Times editorial · Stripe Docs · Arc · Linear
   ======================================================================== */

:root {
  /* Surfaces */
  --bg: #0A0A0B;
  --bg-surface: #0F1012;
  --bg-elevated: #15171A;
  --bg-hover: #1C1E22;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.055);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);

  /* Text */
  --text: #EDECE8;
  --text-2: #B4B1A8;
  --text-3: #7C7A73;
  --text-4: #504E48;

  /* Accents */
  --accent: #D97757;                 /* warm orange, Anthropic-ish */
  --accent-hover: #E58B6B;
  --accent-activist: #D97757;
  --accent-short: #E5B864;           /* amber for short sellers */
  --success: #6EE7B7;
  --danger: #F87171;
  --info: #93C5FD;

  /* Type */
  --serif: 'Instrument Serif', 'Source Serif 4', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono:  'JetBrains Mono', 'SF Mono', 'Menlo', monospace;

  /* Radii */
  --r-sm: 4px;
  --r: 6px;
  --r-md: 8px;
  --r-lg: 12px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --max: 1340px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Subtle noise/texture on body for depth */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(217, 119, 87, 0.08), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(229, 184, 100, 0.05), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
.link { color: var(--accent); transition: color .2s var(--ease); }
.link:hover { color: var(--accent-hover); }
strong { font-weight: 600; }
em, .ital { font-style: italic; font-family: var(--serif); font-size: 1.05em; color: var(--text); }
.dim { color: var(--text-3); }
.mono { font-family: var(--mono); font-feature-settings: "tnum", "ss01"; }
.smaller { font-size: 12px; }

::selection { background: var(--accent); color: #1A0D07; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ========================================================================
   Topbar
   ======================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border-subtle);
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 14px;
  transition: opacity .2s var(--ease);
}
.brand:hover { opacity: 0.75; }
.brand-mark {
  font-size: 14px;
  color: var(--accent);
  transform: translateY(-0.5px);
}
.brand-name { color: var(--text); }

.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav-link {
  padding: 7px 12px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: all .15s var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--bg-hover); }
.nav-link.is-active { color: var(--text); background: var(--bg-hover); }

.search-box {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  width: 340px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r);
  transition: all .15s var(--ease);
}
.search-box:focus-within {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}
.search-box svg { color: var(--text-3); flex-shrink: 0; }
.search-box input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
.search-box input::placeholder { color: var(--text-3); }
.search-box kbd {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  padding: 2px 6px;
  border: 1px solid var(--border-default);
  border-radius: 3px;
  background: rgba(255,255,255,0.02);
}

/* ========================================================================
   Main + Footer
   ======================================================================== */
.main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 28px 80px;
  position: relative;
  z-index: 1;
}

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 28px;
  font-size: 12px;
  color: var(--text-3);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; justify-content: space-between;
}

/* ========================================================================
   Hero
   ======================================================================== */
.hero {
  padding: 60px 0 72px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 56px;
}
.hero-inner { max-width: 920px; }
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 5px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 99px;
  margin-bottom: 24px;
}

.display {
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--text);
  margin-bottom: 24px;
}
.display em {
  font-style: italic;
  color: var(--accent);
  font-size: 1em;
}

.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 680px;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  margin-bottom: 32px;
  overflow: hidden;
}
.stat {
  background: var(--bg);
  padding: 22px 24px;
  transition: background .2s var(--ease);
}
.stat:hover { background: var(--bg-surface); }
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  font-feature-settings: "tnum";
}
.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.hero-cta { display: flex; gap: 12px; align-items: center; }

/* ========================================================================
   Buttons
   ======================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--r);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all .15s var(--ease);
  line-height: 1;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--accent);
  color: #140804;
  border-color: var(--accent);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -4px rgba(217, 119, 87, 0.4);
}
.btn-ghost {
  color: var(--text-2);
  border-color: var(--border-default);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-hover);
}
.btn-small { padding: 6px 12px; font-size: 12px; }

/* ========================================================================
   Section primitives
   ======================================================================== */
.section {
  margin-bottom: 64px;
}
.section-head {
  margin-bottom: 28px;
  max-width: 720px;
}
.section-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 8px;
  color: var(--text);
}
.section-sub {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.55;
}

.section-split {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 48px;
  margin-bottom: 64px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 48px;
}
.section-split .section-title { font-size: 22px; margin-bottom: 20px; }

@media (max-width: 900px) {
  .section-split { grid-template-columns: 1fr; }
}

/* ========================================================================
   Pattern grid (home)
   ======================================================================== */
.pattern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.pattern-card {
  padding: 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  transition: all .2s var(--ease);
  position: relative;
  overflow: hidden;
}
.pattern-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-101%);
  transition: transform .4s var(--ease);
}
.pattern-card:hover {
  background: var(--bg-elevated);
  border-color: var(--border-default);
  transform: translateY(-2px);
}
.pattern-card:hover::before { transform: translateX(0); }
.pattern-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.pattern-icon {
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
}
.pattern-count {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.pattern-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.pattern-card p {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.5;
}

/* ========================================================================
   Deck cards (used in grids)
   ======================================================================== */
.deck-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.deck-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.deck-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  transition: all .15s var(--ease);
  min-height: 180px;
}
.deck-card:hover {
  background: var(--bg-elevated);
  border-color: var(--border-default);
  transform: translateY(-1px);
}

.card-meta {
  display: flex; justify-content: space-between;
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.card-firm {
  font-weight: 500;
  color: var(--text-2);
}
.card-target {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 10px;
}
.card-target .ticker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  background: rgba(217, 119, 87, 0.08);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 6px;
  letter-spacing: 0.03em;
}
.card-thesis {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: auto;
  padding-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.card-scores { display: flex; gap: 6px; }
.score {
  display: inline-flex; align-items: center; gap: 2px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
}
.score-label {
  opacity: 0.5;
  margin-right: 2px;
}
.card-flags { display: flex; gap: 4px; }
.flag {
  font-size: 13px;
  color: var(--accent);
  line-height: 1;
  opacity: 0.8;
}

/* ========================================================================
   Deck list rows
   ======================================================================== */
.deck-list { display: flex; flex-direction: column; }
.deck-list-header {
  display: grid;
  grid-template-columns: 100px 180px 1fr 1.4fr 90px;
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--border-subtle);
  gap: 16px;
}
.deck-row {
  display: grid;
  grid-template-columns: 100px 180px 1fr 1.4fr 90px;
  padding: 14px 16px;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  transition: background .12s var(--ease);
  font-size: 13px;
}
.deck-row:hover { background: var(--bg-surface); }
.row-col-date { color: var(--text-3); font-size: 12px; }
.row-col-firm {
  color: var(--text-2);
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
}
.row-col-target strong { color: var(--text); font-weight: 500; font-size: 14px; }
.row-col-target .ticker {
  font-family: var(--mono);
  font-size: 10px;
  margin-left: 6px;
  color: var(--accent);
}
.row-col-thesis { color: var(--text-2); font-size: 13px; line-height: 1.45; }
.row-col-scores { display: flex; gap: 6px; justify-content: flex-end; }
.score-mini {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
  padding: 2px 6px;
  background: rgba(255,255,255,0.03);
  border-radius: 3px;
}

/* ========================================================================
   Kind indicators
   ======================================================================== */
.kind-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--sans);
  border: 1px solid transparent;
}
.kind-tag.activist {
  color: var(--accent-activist);
  background: rgba(217, 119, 87, 0.1);
  border-color: rgba(217, 119, 87, 0.25);
}
.kind-tag.short_seller {
  color: var(--accent-short);
  background: rgba(229, 184, 100, 0.08);
  border-color: rgba(229, 184, 100, 0.25);
}
.doctype-tag, .phase-tag {
  display: inline-block;
  padding: 3px 9px;
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--text-3);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
}
.kind-dot {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.kind-dot.activist { background: var(--accent-activist); }
.kind-dot.short_seller { background: var(--accent-short); }

/* ========================================================================
   Mini table (by fund)
   ======================================================================== */
.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.mini-table th {
  padding: 8px 10px;
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--border-subtle);
}
.mini-table th.num, .mini-table td.num { text-align: right; }
.mini-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-2);
}
.mini-table tr:hover td { background: rgba(255,255,255,0.015); color: var(--text); }
.mini-table .link { color: var(--text); }
.mini-table .link:hover { color: var(--accent); }
.mini-table .kind-tag { font-size: 9px; padding: 2px 6px; margin-left: 8px; }

/* ========================================================================
   Thesis bars
   ======================================================================== */
.thesis-bars { display: flex; flex-direction: column; gap: 2px; }
.thesis-bar {
  display: grid;
  grid-template-columns: 160px 1fr 44px;
  gap: 14px;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--r);
  transition: background .15s var(--ease);
}
.thesis-bar:hover { background: var(--bg-surface); }
.thesis-name {
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.005em;
  text-transform: capitalize;
}
.thesis-track {
  height: 8px;
  background: var(--border-subtle);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.thesis-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(217, 119, 87, 0.5), var(--accent));
  border-radius: 2px;
}
.thesis-count {
  font-size: 11px;
  color: var(--text-3);
  text-align: right;
}

/* ========================================================================
   Year bars
   ======================================================================== */
.year-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 150px;
  padding: 20px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.year-bar {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 6px;
  height: 100%;
  position: relative;
  transition: opacity .15s var(--ease);
}
.year-bar:hover { opacity: 0.7; }
.year-fill {
  width: 100%;
  min-height: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(217, 119, 87, 0.4));
  border-radius: 2px 2px 0 0;
  transition: transform .2s var(--ease);
  transform-origin: bottom;
}
.year-bar:hover .year-fill { transform: scaleY(1.05); }
.year-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.03em;
}
.year-count {
  position: absolute;
  top: -14px;
  font-size: 9px;
  color: var(--text-4);
  opacity: 0;
  transition: opacity .15s var(--ease);
}
.year-bar:hover .year-count { opacity: 1; color: var(--accent); }

/* ========================================================================
   Browse layout
   ======================================================================== */
.browse-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .browse-layout { grid-template-columns: 1fr; }
}

.filters {
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  padding-right: 6px;
  padding-bottom: 16px;
}
.filter-group {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.filter-group:last-child { border-bottom: none; }
.filter-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.filter-group select {
  width: 100%;
  padding: 7px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  outline: none;
  transition: border-color .15s var(--ease);
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none' stroke='%237C7A73' stroke-width='1.5'><path d='M2 4 L5 7 L8 4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  cursor: pointer;
}
.filter-group select:hover { border-color: var(--border-default); }
.filter-group select:focus { border-color: var(--border-strong); }

.year-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  align-items: center;
}
.year-range-sep { font-size: 13px; opacity: 0.5; }

.chip-row { display: flex; flex-wrap: wrap; gap: 4px; }
.chip {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 99px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-2);
  font-size: 11px;
  transition: all .15s var(--ease);
}
.chip:hover { border-color: var(--border-default); color: var(--text); }
.chip.is-active {
  background: var(--accent);
  color: #140804;
  border-color: var(--accent);
  font-weight: 500;
}

.stars-filter { display: flex; flex-wrap: wrap; gap: 3px; }
.star-radio {
  display: inline-block;
  cursor: pointer;
}
.star-radio input { display: none; }
.star-radio span {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: var(--r);
  border: 1px solid var(--border-subtle);
  color: var(--text-3);
  transition: all .15s var(--ease);
}
.star-radio:hover span { border-color: var(--border-default); color: var(--text-2); }
.star-radio input:checked + span {
  background: var(--accent);
  color: #140804;
  border-color: var(--accent);
}

.check {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0;
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
  transition: color .15s var(--ease);
}
.check:hover { color: var(--text); }
.check input {
  appearance: none;
  width: 14px; height: 14px;
  border: 1px solid var(--border-default);
  border-radius: 3px;
  background: var(--bg-surface);
  cursor: pointer;
  transition: all .15s var(--ease);
  position: relative;
}
.check input:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.check input:checked::after {
  content: "";
  position: absolute;
  top: 2px; left: 4px;
  width: 4px; height: 7px;
  border: solid #140804;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

/* Results */
.results-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.results-header h1 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.025em;
}
.view-switch {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r);
  padding: 2px;
}
.view-btn {
  padding: 5px 12px;
  background: transparent;
  border: 0;
  color: var(--text-3);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  border-radius: 4px;
  transition: all .15s var(--ease);
}
.view-btn.is-active {
  background: var(--bg-elevated);
  color: var(--text);
}

.search-indicator {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 14px;
}
.search-indicator em { color: var(--text); font-weight: 500; }

.empty-state {
  padding: 80px 40px;
  text-align: center;
  color: var(--text-3);
}
.empty-icon {
  display: inline-block;
  font-size: 48px;
  color: var(--text-4);
  margin-bottom: 16px;
  font-family: var(--serif);
}

/* ========================================================================
   Breadcrumb
   ======================================================================== */
.breadcrumb {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 28px;
}
.breadcrumb .sep { color: var(--text-4); }
.breadcrumb .link:hover { color: var(--accent); }

/* ========================================================================
   Deck detail page
   ======================================================================== */
.deck-article { max-width: 100%; }

.deck-header {
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
}
.deck-header-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 8px;
}
.deck-target {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.028em;
  margin-bottom: 22px;
}
.ticker.big {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  padding: 4px 10px;
  margin-left: 12px;
  vertical-align: middle;
  color: var(--accent);
  background: rgba(217, 119, 87, 0.1);
  border: 1px solid rgba(217, 119, 87, 0.25);
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.deck-oneliner {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  color: var(--text-2);
  max-width: 780px;
  margin-bottom: 28px;
  font-style: italic;
}
.deck-scores-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}
.score-big {
  display: flex; align-items: baseline; gap: 6px;
}
.score-letter {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.score-value {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--text);
  font-weight: 400;
  line-height: 1;
}
.score-name {
  font-size: 11px;
  color: var(--text-3);
  margin-left: 2px;
}
.spacer { flex: 1; }

/* Body */
.deck-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}
@media (max-width: 980px) {
  .deck-body { grid-template-columns: 1fr; }
}

.block {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border-subtle);
}
.block:last-child { border-bottom: none; }
.block-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}
.block-notes p {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  font-style: italic;
}
.deck-summary {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  max-width: 780px;
}

/* SCQA */
.scqa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 700px) {
  .scqa-grid { grid-template-columns: 1fr; }
}
.scqa-card {
  padding: 18px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 2px solid var(--accent);
  border-radius: var(--r);
}
.scqa-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.scqa-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

/* Reasons list */
.reasons-list {
  list-style: none;
  counter-reset: reason;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.reasons-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
}
.reason-num {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  color: var(--accent);
  font-style: italic;
}
.reasons-list li p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

/* Demands list */
.demands-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.demands-list li {
  padding: 12px 16px;
  border-left: 2px solid var(--border-subtle);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  transition: border-color .15s var(--ease);
}
.demands-list li:hover { border-color: var(--accent); }

/* KPI table */
.kpi-table {
  display: flex; flex-direction: column;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  overflow: hidden;
}
.kpi-row {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
}
.kpi-row:last-child { border-bottom: none; }
.kpi-row:hover { background: var(--bg-surface); }
.kpi-metric {
  color: var(--text-2);
  font-weight: 500;
  padding-right: 12px;
  border-right: 1px solid var(--border-subtle);
}
.kpi-detail {
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
}

/* Rhetorical grid */
.rhetoric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.rhet-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r);
  opacity: 0.55;
  transition: all .15s var(--ease);
}
.rhet-cell.is-true {
  opacity: 1;
  border-color: rgba(217, 119, 87, 0.3);
  background: linear-gradient(135deg, rgba(217, 119, 87, 0.06), transparent);
}
.rhet-icon {
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
  flex-shrink: 0;
  width: 28px; text-align: center;
}
.rhet-cell strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
}
.rhet-cell p {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.3;
}

/* Slides gallery */
.slides-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.slide-thumb {
  position: relative;
  padding: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r);
  cursor: zoom-in;
  overflow: hidden;
  transition: all .2s var(--ease);
  aspect-ratio: 16/10;
}
.slide-thumb:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.6);
}
.slide-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  background: #fff;
}
.slide-page {
  position: absolute;
  bottom: 6px; left: 6px;
  padding: 2px 7px;
  background: rgba(10, 10, 11, 0.88);
  color: var(--text);
  font-size: 10px;
  letter-spacing: 0.03em;
  border-radius: 3px;
  backdrop-filter: blur(6px);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(8, 8, 10, 0.94);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: var(--r-md);
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
  background: #fff;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 40px; height: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text);
  font-size: 22px;
  border-radius: 50%;
  cursor: pointer;
  transition: all .15s var(--ease);
}
.lightbox-close:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}
.lightbox-meta {
  position: absolute;
  top: 26px; left: 28px;
  font-size: 12px;
  color: var(--text-3);
}

/* Sidebar */
.deck-side {
  position: sticky;
  top: 72px;
  padding-left: 24px;
  border-left: 1px solid var(--border-subtle);
}
.side-block {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.side-block:last-child { border-bottom: none; }
.side-title {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
.side-firm {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border-radius: var(--r);
  border: 1px solid var(--border-subtle);
  transition: all .15s var(--ease);
}
.side-firm:hover { background: var(--bg-elevated); border-color: var(--border-default); }
.side-firm strong { font-size: 14px; }
.side-firm .dim { font-size: 11px; }
.side-dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 14px;
  font-size: 12px;
}
.side-dl dt { color: var(--text-3); }
.side-dl dd { color: var(--text-2); }

.tag-list { display: flex; flex-wrap: wrap; gap: 4px; }
.tag {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 3px;
  background: rgba(217, 119, 87, 0.08);
  color: var(--accent);
  border: 1px solid rgba(217, 119, 87, 0.18);
  transition: all .15s var(--ease);
}
.tag:hover {
  background: rgba(217, 119, 87, 0.18);
  border-color: rgba(217, 119, 87, 0.4);
}
.tag-peer {
  background: rgba(147, 197, 253, 0.08);
  color: var(--info);
  border-color: rgba(147, 197, 253, 0.2);
}
.tag-peer:hover {
  background: rgba(147, 197, 253, 0.15);
}
.tag-val {
  background: rgba(110, 231, 183, 0.06);
  color: var(--success);
  border-color: rgba(110, 231, 183, 0.2);
}
.tag-val:hover {
  background: rgba(110, 231, 183, 0.12);
}

/* Related */
.related {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--border-subtle);
}
.related-col .section-title { font-size: 22px; margin-bottom: 16px; }

/* ========================================================================
   Firm page
   ======================================================================== */
.firm-header {
  padding-bottom: 48px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--border-subtle);
}
.firm-header .kind-tag { margin-bottom: 14px; }
.firm-header .display {
  font-size: clamp(48px, 8vw, 88px);
  margin-bottom: 18px;
}

/* ========================================================================
   Timeline (target page)
   ======================================================================== */
.timeline {
  display: flex;
  flex-direction: column;
}
.timeline-row {
  display: grid;
  grid-template-columns: 100px 30px 1fr 80px;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: start;
  transition: background .12s var(--ease);
}
.timeline-row:hover { background: rgba(255,255,255,0.015); }
.timeline-date {
  font-size: 12px;
  color: var(--text-3);
  padding-top: 4px;
}
.timeline-mark {
  display: flex; justify-content: center;
  padding-top: 8px;
  position: relative;
}
.timeline-mark::before {
  content: "";
  position: absolute;
  left: 50%; top: 18px; bottom: -20px;
  width: 1px;
  background: var(--border-subtle);
  transform: translateX(-50%);
}
.timeline-row:last-child .timeline-mark::before { display: none; }
.timeline-firm {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 4px;
  font-weight: 500;
}
.timeline-thesis {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
  color: var(--text);
  font-style: italic;
}
.timeline-scores {
  text-align: right;
  font-size: 11px;
  padding-top: 4px;
}

/* ========================================================================
   Patterns page
   ======================================================================== */
.pattern-section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
}
.pattern-section:last-child { border-bottom: none; }

.pattern-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.pattern-section-title {
  display: flex; align-items: flex-start; gap: 16px;
  max-width: 680px;
}
.pattern-section-icon {
  font-size: 32px;
  line-height: 1;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 4px;
}
.pattern-section-title h2 {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-bottom: 4px;
}
.pattern-section-title p {
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.5;
}
.pattern-section-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border-default);
  border-radius: var(--r);
  font-size: 12px;
  color: var(--text-2);
  transition: all .15s var(--ease);
}
.pattern-section-cta:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(217, 119, 87, 0.05);
}
.pattern-section-cta .arrow {
  color: var(--accent);
  transition: transform .15s var(--ease);
}
.pattern-section-cta:hover .arrow { transform: translateX(3px); }

.empty-state.small { padding: 20px; text-align: left; }

/* ========================================================================
   Precedents list + outcome badges
   ======================================================================== */
.precedents-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 6px;
}
.precedents-list li {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
  background: rgba(147, 197, 253, 0.04);
  border-left: 2px solid rgba(147, 197, 253, 0.35);
  border-radius: 0 var(--r) var(--r) 0;
}

.outcome-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 1px solid transparent;
}
.outcome-won {
  color: var(--success);
  background: rgba(110, 231, 183, 0.1);
  border-color: rgba(110, 231, 183, 0.3);
}
.outcome-partial_win {
  color: #FDE68A;
  background: rgba(253, 230, 138, 0.08);
  border-color: rgba(253, 230, 138, 0.25);
}
.outcome-lost {
  color: var(--danger);
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.3);
}
.outcome-abandoned {
  color: var(--text-3);
  border-color: var(--border-default);
}
.outcome-ongoing {
  color: var(--info);
  background: rgba(147, 197, 253, 0.08);
  border-color: rgba(147, 197, 253, 0.25);
}

/* Clickable rhet cells (links now) */
a.rhet-cell { display: flex; align-items: center; }
a.rhet-cell:hover {
  border-color: var(--accent);
  transform: translateX(2px);
}

/* ========================================================================
   Taxonomy hub (thesis types, valuation frameworks, sectors)
   ======================================================================== */
.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.taxonomy-card {
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  transition: all .2s var(--ease);
  position: relative;
  overflow: hidden;
}
.taxonomy-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-101%);
  transition: transform .4s var(--ease);
}
.taxonomy-card:hover {
  background: var(--bg-elevated);
  border-color: var(--border-default);
  transform: translateY(-2px);
}
.taxonomy-card:hover::before { transform: translateX(0); }
.tax-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
}
.tax-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 400;
  line-height: 1.15;
  text-transform: capitalize;
}
.tax-count {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}
.tax-exemplars {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.55;
}
.tax-exemplars strong { color: var(--text-2); font-weight: 500; }

/* ========================================================================
   Browse — expanded filters
   ======================================================================== */
.filter-accordion {
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  margin-top: 14px;
}
.filter-accordion summary {
  cursor: pointer;
  padding: 4px 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex; align-items: center; justify-content: space-between;
  user-select: none;
}
.filter-accordion summary::-webkit-details-marker { display: none; }
.filter-accordion summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--text-3);
  transition: transform .2s var(--ease);
}
.filter-accordion[open] summary::after { transform: rotate(45deg); }
.filter-accordion summary:hover { color: var(--text); }
.filter-accordion[open] { padding-bottom: 8px; }
.filter-accordion-body { padding-top: 10px; }

/* Active filter chips bar */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r);
  align-items: center;
}
.active-filters-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-right: 4px;
}
.active-filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px;
  background: rgba(217, 119, 87, 0.12);
  border: 1px solid rgba(217, 119, 87, 0.3);
  border-radius: 99px;
  font-size: 11px;
  color: var(--accent);
}
.active-filter-chip .x {
  opacity: 0.7;
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  padding: 0 2px;
}
.active-filter-chip:hover .x { opacity: 1; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 32px 0 8px;
  margin-top: 24px;
}
.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r);
  background: transparent;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 12px;
  transition: all .12s var(--ease);
}
.page-btn:hover {
  border-color: var(--border-default);
  color: var(--text);
  background: var(--bg-surface);
}
.page-btn.is-current {
  background: var(--accent);
  color: #140804;
  border-color: var(--accent);
  font-weight: 600;
}
.page-btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}
.page-ellipsis {
  padding: 0 4px;
  color: var(--text-4);
  font-family: var(--mono);
}
.page-info {
  margin-left: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
}

/* ========================================================================
   Skill page
   ======================================================================== */
.skill-article { max-width: 860px; margin: 0 auto; }
.skill-article .firm-header { text-align: left; padding-bottom: 48px; }
.skill-para {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 720px;
  margin-bottom: 14px;
}
.skill-para code {
  font-family: var(--mono);
  font-size: 13px;
  padding: 2px 6px;
  background: rgba(217, 119, 87, 0.08);
  border: 1px solid rgba(217, 119, 87, 0.2);
  border-radius: 3px;
  color: var(--accent);
}
.install-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}
.install-tab {
  padding: 18px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
}
.install-tab .install-block {
  margin-bottom: 10px;
  padding: 12px 14px;
  font-size: 11px;
  line-height: 1.5;
  background: #02040a;
  border-color: rgba(217, 119, 87, 0.2);
}
.install-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.install-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  padding: 18px 22px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  overflow-x: auto;
  line-height: 1.55;
}
.use-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.use-list li {
  padding: 10px 16px;
  margin-bottom: 6px;
  border-left: 2px solid var(--border-subtle);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  transition: border-color .15s var(--ease);
}
.use-list li:hover { border-color: var(--accent); }

/* ========================================================================
   Legal page
   ======================================================================== */
.legal-article { max-width: 760px; margin: 0 auto; }
.legal-section {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}
.legal-section:last-child { border-bottom: none; }
.legal-section h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.legal-section p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 14px;
}
.legal-section ul, .legal-section ol {
  margin: 14px 0 14px 24px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.65;
}
.legal-section ul li, .legal-section ol li {
  margin-bottom: 6px;
  padding-left: 4px;
}
.takedown-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin-top: 18px;
}
.takedown-head {
  display: flex; align-items: baseline; gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.takedown-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.takedown-email {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--accent);
  font-weight: 500;
}
.takedown-email:hover { color: var(--accent-hover); text-decoration: underline; }
.takedown-body ol {
  margin: 8px 0 12px 24px;
}
.legal-foot {
  padding-top: 40px;
  text-align: center;
}

/* ========================================================================
   Responsive tweaks
   ======================================================================== */
@media (max-width: 760px) {
  .topbar-inner { flex-wrap: wrap; padding: 12px 18px; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .search-box { width: 100%; margin-left: 0; order: 2; }
  .main { padding: 24px 18px 60px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .deck-side { position: static; padding-left: 0; border-left: 0; border-top: 1px solid var(--border-subtle); padding-top: 32px; }
  .deck-list-header, .deck-row { grid-template-columns: 80px 120px 1fr 60px; }
  .row-col-thesis { display: none; }
}
