/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1.2em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg2: #f5f5f5;
  --bg3: #eaeaea;
  --border: #e0e0e0;
  --border2: #d0d0d0;
  --text: #1a1a1a;
  --text2: #4a4a4a;
  --text3: #8a8a8a;

  --red: #CE1720;
  --red-bg: rgba(206,23,32,0.06);
  --red-border: rgba(206,23,32,0.25);
  --red-light: #fef2f2;

  --green: #16a34a;
  --green-bg: rgba(22,163,74,0.06);
  --green-border: rgba(22,163,74,0.3);

  --amber: #b45309;
  --amber-bg: rgba(180,83,9,0.06);
  --amber-border: rgba(180,83,9,0.3);

  --blue: #2563eb;
  --blue-bg: rgba(37,99,235,0.06);
  --blue-border: rgba(37,99,235,0.3);

  --gold: #a16207;
  --gold-bg: rgba(161,98,7,0.06);
  --gold-border: rgba(161,98,7,0.3);

  --grey-sc: #6b7280;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'PT Sans', -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== SITE BANNER ===== */
.site-banner {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-banner-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.site-banner-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-banner-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-banner-name span { color: var(--red); }

.site-banner-tagline {
  font-size: 0.62rem;
  color: var(--text3);
  margin-top: 0.05rem;
}

/* ===== ANALYSIS PAGE: HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem 0;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.header h1 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.header-accent { color: var(--red); font-weight: 700; }

.header-badge {
  font-family: 'PT Mono', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text3);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
}

/* Nav tabs */
.nav-tabs {
  display: flex;
  gap: 0;
}

.nav-tab {
  flex: 1;
  padding: 0.6rem 0.25rem;
  border: none;
  background: transparent;
  color: var(--text3);
  font-family: 'PT Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
}

.nav-tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
  font-weight: 700;
}

/* Tab panels */
.tab-panel {
  visibility: hidden;
  height: 0;
  overflow: hidden;
  opacity: 0;
}

.tab-panel.active {
  visibility: visible;
  height: auto;
  overflow: visible;
  animation: tabIn 0.3s ease forwards;
}

@keyframes tabIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== ANALYSIS PAGE: MAIN ===== */
.main {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.container { padding: 0 1rem; }

.section { padding: 1.5rem 0; }

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.section-num {
  font-family: 'PT Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--red);
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.section-sub {
  font-size: 0.8rem;
  color: var(--text3);
  margin-top: 0.15rem;
}

.sub-heading {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 1.5rem 0 0.75rem;
  padding: 0 1rem;
}

/* ===== SUMMARY ===== */
.summary-card {
  background: var(--red-light);
  border: 1.5px solid var(--red-border);
  border-radius: 12px;
  padding: 1.25rem 1.15rem;
}

.summary-label {
  font-family: 'PT Mono', monospace;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.summary-text {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.summary-sub {
  font-size: 0.8rem;
  color: var(--text2);
}

/* ===== SCENARIO BAR ===== */
.scenario-bar {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.sc-btn {
  flex: 1;
  padding: 0.5rem 0.25rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text3);
  font-family: 'PT Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.sc-btn:active { transform: scale(0.97); }
.sc-btn.on { font-weight: 600; }
.sc-btn[data-sc="black"].on { border-color: var(--red); color: var(--red); background: var(--red-bg); }
.sc-btn[data-sc="grey"].on { border-color: var(--grey-sc); color: var(--text); background: rgba(107,114,128,0.06); }
.sc-btn[data-sc="gold"].on { border-color: var(--gold); color: var(--gold); background: var(--gold-bg); }

.sc-icon { margin-right: 0.2rem; }

/* ===== FORK FLOW ===== */
.start-node {
  text-align: center;
  padding: 1rem 0;
}

.start-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--border2);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.start-label { font-weight: 600; font-size: 0.9rem; }
.start-sub {
  font-size: 0.7rem;
  color: var(--text3);
  font-family: 'PT Mono', monospace;
}

.connector {
  display: flex;
  justify-content: center;
  padding: 0.2rem 0;
}

.conn-line {
  width: 2px;
  height: 24px;
  background: var(--border);
  border-radius: 1px;
  transition: background 0.3s;
}

/* Fork */
.fork { padding: 0.5rem 0; }

.fork-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.5rem;
}

.fork-num {
  font-family: 'PT Mono', monospace;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text3);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.12rem 0.4rem;
  flex-shrink: 0;
}

.fork-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text2);
}

.fork-tag {
  font-family: 'PT Mono', monospace;
  font-size: 0.52rem;
  color: var(--text3);
  margin-left: auto;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

/* Cards row */
.cards-row {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}
.cards-row::-webkit-scrollbar { display: none; }

.card {
  flex: 0 0 min(75vw, 250px);
  scroll-snap-align: start;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 0.9rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 10px 10px 0 0;
}

.card:active { transform: scale(0.98); }

.card.v-open { border-color: var(--green-border); }
.card.v-open::before { background: var(--green); }
.card.v-closed { border-color: var(--red-border); }
.card.v-closed::before { background: var(--red); }
.card.v-risk { border-color: var(--amber-border); }
.card.v-risk::before { background: var(--amber); }
.card.v-neutral { border-color: var(--blue-border); }
.card.v-neutral::before { background: var(--blue); }

.card.dimmed {
  opacity: 0.18;
  transform: scale(0.97);
}

.card.highlighted {
  box-shadow: 0 0 0 1.5px var(--highlight-color, var(--gold)), 0 2px 8px rgba(0,0,0,0.06);
  border-color: var(--highlight-color, var(--gold));
}

.card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.card-verdict {
  display: inline-block;
  font-family: 'PT Mono', monospace;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.4rem;
}

.card.v-open .card-verdict { background: var(--green-bg); color: var(--green); }
.card.v-closed .card-verdict { background: var(--red-bg); color: var(--red); }
.card.v-risk .card-verdict { background: var(--amber-bg); color: var(--amber); }
.card.v-neutral .card-verdict { background: var(--blue-bg); color: var(--blue); }

.card-snippet {
  font-size: 0.75rem;
  color: var(--text2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tap-hint {
  font-size: 0.62rem;
  color: var(--text3);
  margin-top: 0.4rem;
  text-align: right;
}

/* Blocker */
.fork-blocker {
  margin-top: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: var(--red-bg);
  border-left: 2.5px solid var(--red);
  border-radius: 0 6px 6px 0;
  font-size: 0.75rem;
  color: var(--text2);
  line-height: 1.5;
}
.fork-blocker strong { color: var(--red); font-weight: 600; }

/* Outcomes */
.outcomes { padding: 0.75rem 0 0.5rem; }
.outcomes-title {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.outcome-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.outcome-card:active { transform: scale(0.97); }
.outcome-card.dimmed { opacity: 0.15; }
.outcome-card.highlighted {
  border-color: var(--highlight-color);
  box-shadow: 0 0 0 1.5px var(--highlight-color), 0 2px 8px rgba(0,0,0,0.06);
}

.outcome-icon { font-size: 1.3rem; margin-bottom: 0.2rem; }
.outcome-name { font-size: 0.75rem; font-weight: 600; line-height: 1.3; margin-bottom: 0.15rem; }
.outcome-sub {
  font-family: 'PT Mono', monospace;
  font-size: 0.52rem;
  color: var(--text3);
}

/* ===== TRANSITION / BLIND SPOTS ===== */
.section-transition {
  background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
  border-top: 2px solid var(--red-border);
  border-bottom: 2px solid var(--red-border);
}

.pills-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.blind-spot-card {
  display: flex;
  gap: 0.75rem;
  background: var(--bg);
  border: 1.5px solid var(--red-border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.blind-spot-num {
  font-family: 'PT Mono', monospace;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--red);
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-radius: 6px;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.blind-spot-body { flex: 1; min-width: 0; }

.blind-spot-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.blind-spot-metric {
  font-family: 'PT Mono', monospace;
  font-size: 0.65rem;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.blind-spot-desc {
  font-size: 0.78rem;
  color: var(--text2);
  line-height: 1.6;
}

/* ===== VECTORS HUB ===== */
.vectors-hub {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.vector-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--vector-color, var(--border));
  border-radius: 10px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.vector-card:active { transform: scale(0.97); }

.vector-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.vector-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.vector-badge {
  font-family: 'PT Mono', monospace;
  font-size: 0.55rem;
  font-weight: 500;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text3);
}

.vector-metric {
  font-size: 0.78rem;
  color: var(--text2);
  margin-bottom: 0.15rem;
}

.vector-type {
  font-size: 0.68rem;
  color: var(--text3);
}

/* Center card for desktop hub */
.center-card {
  background: var(--red-light);
  border: 2px solid var(--red-border);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.center-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--red);
}

.center-card-sub {
  font-size: 0.72rem;
  color: var(--text2);
  font-family: 'PT Mono', monospace;
}

/* Strategy section */
.strategy-section { margin-top: 1.5rem; }

.strategy-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 0.75rem;
}

.strategy-cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.strategy-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.strategy-card-num {
  font-family: 'PT Mono', monospace;
  font-size: 0.55rem;
  color: var(--red);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.strategy-card-title {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.strategy-card-text {
  font-size: 0.75rem;
  color: var(--text2);
  line-height: 1.5;
}

/* ===== COMPARISON ===== */
.comparison-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 1rem;
}

/* Group */
.comp-group-header {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.comp-group-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Row */
.comp-row {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.comp-row--red { border-left: 4px solid var(--red); }
.comp-row--amber { border-left: 4px solid var(--amber); }
.comp-row--green { border-left: 4px solid var(--green); }

.comp-dimension {
  font-family: 'PT Mono', monospace;
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--text3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.comp-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.comp-cell {
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
}

.comp-cell--fin {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
}

.comp-cell--bel {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
}

.comp-cell-label {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.comp-cell--fin .comp-cell-label { color: var(--green); }
.comp-cell--bel .comp-cell-label { color: var(--red); }

.comp-cell-text {
  font-size: 0.75rem;
  color: var(--text2);
  line-height: 1.5;
}

/* Key insight */
.comp-key-insight {
  background: var(--gold-bg);
  border: 2px solid var(--gold-border);
  border-radius: 12px;
  padding: 1.15rem 1.1rem;
}

.comp-key-label {
  font-family: 'PT Mono', monospace;
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.comp-key-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.comp-key-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.comp-key-col {
  padding: 0.7rem 0.75rem;
  border-radius: 8px;
  background: var(--bg);
}

.comp-key-col--fin { border-left: 3px solid var(--green); }
.comp-key-col--bel { border-left: 3px solid var(--red); }

.comp-key-col-label {
  font-size: 0.65rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.comp-key-col--fin .comp-key-col-label { color: var(--green); }
.comp-key-col--bel .comp-key-col-label { color: var(--red); }

.comp-key-quote {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  margin: 0 0 0.4rem;
  padding-left: 0.6rem;
  border-left: 2px solid var(--border);
}

.comp-key-desc {
  font-size: 0.72rem;
  color: var(--text2);
  line-height: 1.5;
}

/* ===== RISKS & CONCLUSIONS ===== */
.risks-grid, .conclusions-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1rem;
}

.risk-card {
  background: var(--bg);
  border: 1.5px solid var(--red-border);
  border-radius: 10px;
  padding: 0.85rem 0.9rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.risk-severity {
  font-family: 'PT Mono', monospace;
  font-size: 0.55rem;
  font-weight: 500;
  color: var(--red);
  margin-bottom: 0.25rem;
}

.risk-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.risk-text {
  font-size: 0.75rem;
  color: var(--text2);
  line-height: 1.5;
}

.conclusion-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 0.9rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}


.conclusion-num {
  font-family: 'PT Mono', monospace;
  font-size: 0.55rem;
  font-weight: 500;
  color: var(--red);
  margin-bottom: 0.25rem;
}

.conclusion-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.conclusion-text {
  font-size: 0.75rem;
  color: var(--text2);
  line-height: 1.5;
}

/* ===== PARADOX PANEL ===== */
.paradox-panel {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, rgba(161,98,7,0.06) 0%, rgba(161,98,7,0.12) 100%);
  border: 2px solid var(--gold-border);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  position: relative;
}

.paradox-panel-label {
  font-family: 'PT Mono', monospace;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.paradox-panel-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.paradox-panel-text {
  font-size: 0.8rem;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.paradox-panel-quote {
  font-size: 0.92rem;
  font-weight: 700;
  font-style: italic;
  color: var(--text);
  line-height: 1.55;
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
}

/* ===== SHEET ===== */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.sheet-overlay.open { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-height: 80vh;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.sheet.open { transform: translateY(0); }

.sheet-handle {
  width: 36px; height: 4px;
  background: var(--border2);
  border-radius: 2px;
  margin: 10px auto 0;
}

.sheet-body { padding: 1rem 1.25rem 2.5rem; }

.sheet-type {
  font-family: 'PT Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.sheet-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  line-height: 1.3;
}

.sheet-desc {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.sheet-badge {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.sheet-badge.open { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.sheet-badge.closed { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); }
.sheet-badge.risk { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-border); }
.sheet-badge.neutral { background: var(--blue-bg); color: var(--blue); border: 1px solid var(--blue-border); }

.sheet-links { margin-top: 0.25rem; }
.sheet-links h4 {
  font-family: 'PT Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 0.35rem;
  margin-top: 0.65rem;
}

.sheet-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  margin: 0.15rem 0;
  font-size: 0.8rem;
  color: var(--text2);
  border-radius: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.1s;
}
.sheet-link:active { background: var(--bg2); }

.sheet-link-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sheet-section-label {
  font-family: 'PT Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin: 0.75rem 0 0.4rem;
}

.sheet-data-point {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.6;
  padding-left: 0.5rem;
  border-left: 2px solid var(--border);
  margin-bottom: 0.4rem;
}

/* ===== FADE IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HOMEPAGE ===== */
.content {
  flex: 1;
  max-width: 720px;
  width: 100%;
  padding: 2rem 1.25rem;
}

.section-label {
  font-family: 'PT Mono', monospace;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 0.75rem;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.article-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.article-card:hover {
  border-color: var(--red);
  box-shadow: 0 2px 8px rgba(206, 23, 32, 0.08);
}

.article-card:active { transform: scale(0.99); }

.article-tag {
  font-family: 'PT Mono', monospace;
  font-size: 0.55rem;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.article-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.3rem;
}

.article-desc {
  font-size: 0.78rem;
  color: var(--text2);
  line-height: 1.5;
}

.article-meta {
  font-family: 'PT Mono', monospace;
  font-size: 0.55rem;
  color: var(--text3);
  margin-top: 0.45rem;
}

.site-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.7rem;
  color: var(--text3);
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media (max-width: 420px) {
  .comp-pair,
  .comp-key-pair {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

@media (min-width: 700px) {
  .cards-row {
    overflow-x: visible;
    flex-wrap: wrap;
    justify-content: center;
  }
  .card { flex: 0 0 210px; }

  .outcomes-grid {
    max-width: 520px;
    margin: 0 auto;
  }

  .vectors-hub {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.6rem;
  }

  .vectors-hub .center-card {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .strategy-cards {
    flex-direction: column;
  }


  .sheet {
    max-width: 460px;
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    border-radius: 16px;
    max-height: 70vh;
    border: 1px solid var(--border);
    opacity: 0;
    pointer-events: none;
  }
  .sheet.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .site-banner { padding: 1rem 2rem; }
  .site-banner-logo { width: 44px; height: 44px; }
  .content { padding: 2.5rem 2rem; }

  .risks-grid, .conclusions-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .risk-card { flex: 1 1 calc(33% - 0.35rem); }
  .conclusion-card { flex: 1 1 calc(50% - 0.25rem); }
}

@media (min-width: 1000px) {
  .card { flex: 0 0 220px; }
  .main { max-width: 960px; }
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

