/* ═══════════════════════════════════════════════
   Sports RWA Marketplace — White Paper Stylesheet
   External CSS — no inline styles
   ═══════════════════════════════════════════════ */

/* ───────────────────────────────────────────────
   CSS CUSTOM PROPERTIES — single source of truth
   ─────────────────────────────────────────────── */
:root {
  --navy:   #0f2044;
  --orange: #e07b39;
  --text:   #1a1a1a;
  --muted:  #555555;
  --light:  #f7f8fc;
  --border: #e0e4ed;
  --radius: 6px;

  /* Fluid type scale — clamp(min, preferred, max)
     min = mobile, preferred = viewport-relative, max = desktop */
  --fs-xs:   clamp(11px, 2.8vw, 13px);
  --fs-sm:   clamp(13px, 3.2vw, 15px);
  --fs-base: clamp(15px, 3.8vw, 17px);
  --fs-md:   clamp(17px, 4.2vw, 20px);
  --fs-lg:   clamp(20px, 5vw,   26px);
  --fs-xl:   clamp(26px, 6.5vw, 36px);
  --fs-2xl:  clamp(32px, 8vw,   48px);

  --lh-body: 1.75;
  --lh-head: 1.2;

  /* Fluid spacing */
  --sp-xs:  clamp(6px,  1.5vw, 10px);
  --sp-sm:  clamp(10px, 2.5vw, 16px);
  --sp-md:  clamp(16px, 4vw,   28px);
  --sp-lg:  clamp(24px, 6vw,   44px);
  --sp-xl:  clamp(36px, 8vw,   64px);
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: var(--fs-base);
  color: var(--text);
  background: #ffffff;
  line-height: var(--lh-body);
  max-width: 780px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 40px);
}

/* ───────────────────────────────────────────────
   TYPOGRAPHY
   ─────────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--navy);
  line-height: var(--lh-head);
}

h1 { font-size: var(--fs-2xl); font-weight: 900; }
h2 { font-size: var(--fs-xl);  font-weight: 700; margin-bottom: var(--sp-sm); }
h3 { font-size: var(--fs-lg);  font-weight: 700; margin-top: var(--sp-md); margin-bottom: var(--sp-xs); }
h4 { font-size: var(--fs-md);  font-weight: 700; margin-top: var(--sp-sm); margin-bottom: var(--sp-xs); }

p {
  margin-bottom: var(--sp-sm);
  font-size: var(--fs-base);
}

p:last-child { margin-bottom: 0; }

strong { font-weight: 700; color: var(--navy); }

ul,
ol {
  padding-left: 1.4em;
  margin-bottom: var(--sp-sm);
}

li {
  margin-bottom: 0.4em;
  line-height: var(--lh-body);
  font-size: var(--fs-base);
}

/* ───────────────────────────────────────────────
   COVER PAGE
   ─────────────────────────────────────────────── */
.cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-xl) 0 var(--sp-lg);
  border-bottom: 3px solid var(--border);
  margin-bottom: var(--sp-xl);
}

.cover-eyebrow {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888888;
  margin-bottom: var(--sp-md);
}

.cover-eyebrow .dot {
  color: var(--orange);
  margin: 0 0.35em;
}

.cover-title {
  font-size: var(--fs-2xl);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: var(--sp-xs);
}

.cover-title .accent { color: var(--orange); }

.cover-subtitle {
  font-family: 'Georgia', serif;
  font-size: var(--fs-md);
  font-style: italic;
  color: var(--muted);
  margin-bottom: var(--sp-md);
}

.cover-rule {
  width: 48px;
  height: 4px;
  background: var(--orange);
  border: none;
  margin: 0 auto var(--sp-md);
}

.cover-hero {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.15);
  margin-bottom: var(--sp-sm);
}

.cover-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.cover-caption {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--fs-xs);
  color: #aaaaaa;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-md);
}

.cover-footer {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--fs-sm);
  color: #666666;
  line-height: 1.7;
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--border);
  width: 100%;
}

/* ───────────────────────────────────────────────
   TABLE OF CONTENTS
   ─────────────────────────────────────────────── */
.toc-page {
  margin-bottom: var(--sp-xl);
  padding-bottom: var(--sp-lg);
  border-bottom: 3px solid var(--border);
}

.toc-heading {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888888;
  border-bottom: 3px solid var(--orange);
  padding-bottom: var(--sp-xs);
  margin-bottom: var(--sp-md);
}

.toc-item {
  display: flex;
  align-items: baseline;
  gap: var(--sp-sm);
  padding: var(--sp-xs) 0;
  border-bottom: 1px solid #ebebeb;
  flex-wrap: wrap;
}

.toc-label {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  min-width: 80px;
  flex-shrink: 0;
}

.toc-title {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--fs-base);
  color: var(--text);
}

/* ───────────────────────────────────────────────
   SECTION LAYOUT
   ─────────────────────────────────────────────── */
.section {
  margin-bottom: var(--sp-xl);
  padding-bottom: var(--sp-lg);
  border-bottom: 2px solid var(--border);
}

.section:last-child { border-bottom: none; }

.section-eyebrow {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 4px;
}

.section-intro {
  font-family: 'Georgia', serif;
  font-size: var(--fs-md);
  font-style: italic;
  color: var(--muted);
  margin-bottom: var(--sp-md);
  line-height: 1.55;
}

/* ───────────────────────────────────────────────
   STATS ROW — responsive grid
   ─────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-sm);
  margin: var(--sp-md) 0;
}

@media (min-width: 560px) {
  .stats-row { grid-template-columns: repeat(4, 1fr); }
}

.stat-cell {
  background: var(--light);
  border: 1px solid var(--border);
  border-top: 4px solid var(--orange);
  padding: var(--sp-sm) var(--sp-xs);
  text-align: center;
  border-radius: 0 0 var(--radius) var(--radius);
}

.stat-number {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--orange);
  display: block;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--fs-xs);
  color: #666666;
  line-height: 1.4;
}

/* ───────────────────────────────────────────────
   CALLOUT BOXES
   ─────────────────────────────────────────────── */
.callout {
  background: var(--light);
  border-left: 5px solid var(--orange);
  padding: var(--sp-sm) var(--sp-md);
  margin: var(--sp-sm) 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout p {
  margin-bottom: 0;
  font-size: var(--fs-base);
}

/* ───────────────────────────────────────────────
   LAYER CARDS
   ─────────────────────────────────────────────── */
.layer-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-sm) var(--sp-md);
  margin-bottom: var(--sp-sm);
}

.layer-card-label {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #999999;
  margin-bottom: 2px;
}

.layer-card-title {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--orange);
  margin-bottom: var(--sp-xs);
}

.layer-card p {
  font-size: var(--fs-sm);
  color: #444444;
  margin-bottom: 0;
}

/* ───────────────────────────────────────────────
   NUMBERED STEPS
   ─────────────────────────────────────────────── */
.steps { margin: var(--sp-sm) 0; }

.step {
  display: flex;
  gap: var(--sp-sm);
  padding: var(--sp-sm) 0;
  border-bottom: 1px solid #ebebeb;
  align-items: flex-start;
}

.step:last-child { border-bottom: none; }

.step-num {
  width: clamp(28px, 7vw, 36px);
  height: clamp(28px, 7vw, 36px);
  min-width: clamp(28px, 7vw, 36px);
  background: var(--navy);
  color: #ffffff;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--fs-sm);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content h4 {
  margin-top: 0;
  margin-bottom: 4px;
  font-size: var(--fs-md);
}

.step-content p {
  font-size: var(--fs-sm);
  color: #444444;
  margin-bottom: 0;
}

/* ───────────────────────────────────────────────
   OWNERSHIP TABLE — stacks on mobile
   ─────────────────────────────────────────────── */
.ownership-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-sm);
  margin: var(--sp-sm) 0;
}

@media (min-width: 520px) {
  .ownership-table { grid-template-columns: 1fr 1fr; }
}

.ownership-col {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-sm) var(--sp-md);
}

.ownership-col-header {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: var(--sp-xs);
  margin-bottom: var(--sp-xs);
  border-bottom: 2px solid var(--orange);
}

.ownership-col.is { border-top: 4px solid var(--navy); }
.ownership-col.is .ownership-col-header { color: var(--navy); }

.ownership-col.is-not { border-top: 4px solid var(--orange); }
.ownership-col.is-not .ownership-col-header { color: var(--orange); }

.ownership-col ul {
  padding-left: 1.2em;
  margin-bottom: 0;
}

.ownership-col li {
  font-size: var(--fs-sm);
  color: #444444;
  margin-bottom: 5px;
}

/* ───────────────────────────────────────────────
   PRODUCT SURFACES TABLE — scrollable on mobile
   ─────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--sp-sm) 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.surfaces-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.surfaces-table th {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--navy);
  padding: var(--sp-xs) var(--sp-sm);
  text-align: left;
  white-space: nowrap;
}

.surfaces-table td {
  padding: var(--sp-xs) var(--sp-sm);
  vertical-align: top;
  border-bottom: 1px solid #e8eaf0;
  color: #333333;
  line-height: 1.6;
  font-size: var(--fs-sm);
}

.surfaces-table tr:last-child td { border-bottom: none; }

.surfaces-table tr:nth-child(even) td { background: var(--light); }

.surfaces-table td:first-child {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

/* ───────────────────────────────────────────────
   METRICS LIST
   ─────────────────────────────────────────────── */
.metrics-list { margin: var(--sp-sm) 0; }

.metric-item {
  display: flex;
  gap: var(--sp-xs);
  padding: var(--sp-xs) 0;
  border-bottom: 1px solid #ebebeb;
  align-items: flex-start;
}

.metric-item:last-child { border-bottom: none; }

.metric-arrow {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--fs-md);
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
  line-height: var(--lh-body);
}

.metric-text {
  font-size: var(--fs-base);
  color: #333333;
  line-height: var(--lh-body);
}

.metric-text strong { color: var(--navy); }

/* ───────────────────────────────────────────────
   PHASE BOXES
   ─────────────────────────────────────────────── */
.phase-box {
  background: var(--light);
  border: 1px solid var(--border);
  border-left: 5px solid var(--navy);
  padding: var(--sp-sm) var(--sp-md);
  margin-bottom: var(--sp-xs);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.phase-box-label {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 3px;
}

.phase-box p {
  font-size: var(--fs-base);
  color: #444444;
  margin-bottom: 0;
}

/* ───────────────────────────────────────────────
   IMAGES
   ─────────────────────────────────────────────── */
.img-block {
  margin: var(--sp-md) 0;
  text-align: center;
}

.img-block img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 340px;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  display: inline-block;
}

.img-caption {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--fs-xs);
  color: #999999;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: var(--sp-xs);
}

/* Image trio — 3-col on tablet+, 1-col on small mobile */
.img-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-sm);
  margin: var(--sp-md) 0;
}

@media (max-width: 400px) {
  .img-trio { grid-template-columns: 1fr; }
}

.img-trio-cell { text-align: center; }

.img-trio-cell img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
}

.img-trio-cell .img-caption { margin-top: 5px; }

/* ───────────────────────────────────────────────
   REVENUE ITEMS
   ─────────────────────────────────────────────── */
.revenue-item {
  padding: var(--sp-sm) 0;
  border-bottom: 1px solid #ebebeb;
}

.revenue-item:last-child { border-bottom: none; }

.revenue-item h4 {
  font-size: var(--fs-md);
  margin-top: 0;
  margin-bottom: 5px;
}

.revenue-item p {
  font-size: var(--fs-base);
  color: #444444;
  margin-bottom: 0;
}

/* ───────────────────────────────────────────────
   CONCLUSION BOX
   ─────────────────────────────────────────────── */
.conclusion-box {
  background: var(--navy);
  color: #ffffff;
  padding: var(--sp-lg) var(--sp-xl);
  border-radius: var(--radius);
  margin: var(--sp-md) 0;
}

.conclusion-box .headline {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--orange);
  line-height: 1.35;
  margin-bottom: var(--sp-md);
}

.conclusion-box p {
  font-size: var(--fs-base);
  color: #c8d4e8;
  line-height: var(--lh-body);
  margin-bottom: var(--sp-xs);
}

.conclusion-box p:last-child { margin-bottom: 0; }

.conclusion-checklist {
  list-style: none;
  padding: 0;
  margin: var(--sp-sm) 0;
}

.conclusion-checklist li {
  display: flex;
  gap: var(--sp-xs);
  font-size: var(--fs-base);
  color: #c8d4e8;
  padding: var(--sp-xs) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  line-height: var(--lh-body);
  align-items: flex-start;
}

.conclusion-checklist li:last-child { border-bottom: none; }

.conclusion-checklist li::before {
  content: "✓";
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

/* ───────────────────────────────────────────────
   DOCUMENT FOOTER
   ─────────────────────────────────────────────── */
.doc-footer {
  margin-top: var(--sp-lg);
  padding-top: var(--sp-sm);
  border-top: 1px solid #dddddd;
  text-align: center;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--fs-xs);
  color: #999999;
  line-height: 1.8;
  padding-bottom: var(--sp-xl);
}

/* ───────────────────────────────────────────────
   PARAGRAPH UTILITY — top spacing after callouts
   ─────────────────────────────────────────────── */
.mt-sm { margin-top: var(--sp-sm); }

/* ───────────────────────────────────────────────
   PRINT STYLES — larger fonts for PDF export
   ─────────────────────────────────────────────── */
@media print {
  @page {
    size: A4 portrait;
    margin: 18mm 20mm 22mm 20mm;
  }

  @page :first {
    @bottom-center { content: none; }
  }

  body {
    font-size: 11pt;
    max-width: none;
    padding: 0;
    color: #000000;
  }

  h1 { font-size: 32pt; }
  h2 { font-size: 20pt; }
  h3 { font-size: 14pt; }
  h4 { font-size: 11.5pt; }

  p,
  li,
  .metric-text,
  .step-content p,
  .layer-card p,
  .phase-box p,
  .revenue-item p,
  .toc-title { font-size: 11pt; }

  .stat-number { font-size: 20pt; }
  .stat-label  { font-size: 9pt; }

  .cover { border-bottom: none; padding-top: 0; }
  .cover-hero { max-width: 280pt; }

  .section,
  .toc-page { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

  .stats-row {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 6pt;
  }

  .stat-cell { display: table-cell; width: 25%; }

  .ownership-table {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 8pt;
  }

  .ownership-col { display: table-cell; width: 50%; vertical-align: top; }

  .img-trio {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 8pt;
  }

  .img-trio-cell { display: table-cell; width: 33.33%; }
  .img-trio-cell img { aspect-ratio: auto; }

  .table-wrap { overflow: visible; border: none; }
  .surfaces-table { min-width: 0; }

  .conclusion-box,
  .callout,
  .stat-cell,
  .phase-box,
  .layer-card,
  .step-num,
  .ownership-col,
  .surfaces-table th {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
