/* ============================================================
   SPEARHEAD — Full Investment Thesis (long-form document)
   Light "paper" reading document, branded, print-to-PDF ready.
   Layers on styles.css tokens.
   ============================================================ */

.thesis-body{ background:var(--paper-2); color:var(--on-paper); line-height:1.62; overflow-x:hidden; }

/* ---------- top utility bar (screen only) ---------- */
.t-topbar{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  padding:12px clamp(16px,3vw,28px);
  background:rgba(10,20,31,.92); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line-dark);
}
.t-back{ font-family:var(--mono); font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--on-dark-dim); text-decoration:none; }
.t-back:hover{ color:var(--gold-br); }
.t-brand{ display:flex; align-items:center; gap:10px; font-family:var(--serif); font-size:14px; letter-spacing:.14em; text-transform:uppercase; color:#eef1f4; }
.t-brand img{ height:22px; width:auto; }
.t-print{
  font-family:var(--mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--ink); background:var(--gold); border:0; border-radius:5px; padding:10px 16px; cursor:pointer; transition:background .2s;
}
.t-print:hover{ background:var(--gold-br); }
@media(max-width:640px){ .t-brand{ display:none; } }

/* ---------- cover ---------- */
.t-cover{
  position:relative; min-height:min(92vh,860px);
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  padding:80px clamp(22px,5vw,60px);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(19,49,79,.5), transparent 60%),
    radial-gradient(80% 60% at 50% 100%, rgba(184,149,90,.08), transparent 60%),
    var(--ink);
  color:#fff;
}
.t-cover-inner{ max-width:760px; }
.t-cover-mark{ height:96px; width:auto; margin:0 auto 26px; opacity:.95; }
.t-cover-brand{ font-family:var(--serif); font-weight:500; letter-spacing:.3em; text-transform:uppercase; font-size:15px; color:#e7ebf0; }
.t-cover-rule{ width:64px; height:2px; background:var(--gold); margin:30px auto; }
.t-cover-eyebrow{ font-family:var(--mono); font-size:11.5px; letter-spacing:.26em; text-transform:uppercase; color:var(--gold-br); }
.t-cover-title{ font-family:var(--serif); font-weight:300; letter-spacing:-.02em; font-size:clamp(36px,6vw,68px); line-height:1.04; margin:20px 0 0; color:#fff; }
.t-cover-sub{ font-family:var(--serif); font-style:italic; font-weight:300; font-size:clamp(17px,2.2vw,22px); line-height:1.5; color:var(--on-dark); max-width:54ch; margin:26px auto 0; }
.t-cover-foot{ display:flex; gap:40px; justify-content:center; margin-top:44px; font-family:var(--mono); font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--on-dark-dim); }
.t-cover-confidential{ position:absolute; bottom:26px; left:0; right:0; text-align:center; font-family:var(--mono); font-size:10px; letter-spacing:.22em; text-transform:uppercase; color:var(--on-dark-dim); }

/* ---------- document body ---------- */
.t-doc{
  max-width:820px; margin:0 auto; padding:clamp(40px,6vw,86px) clamp(22px,5vw,64px) 40px;
  background:var(--paper);
  box-shadow:0 1px 0 rgba(0,0,0,.04);
}
.t-doc > *{ max-width:64ch; }
.t-doc > .t-section, .t-doc > .t-fig, .t-doc > .t-stats, .t-doc > .t-tablewrap, .t-doc > .t-terms{ max-width:none; }

.t-doc p{ font-size:16px; line-height:1.68; color:#2c3540; margin:0 0 16px; text-wrap:pretty; }
.t-doc p strong{ color:var(--on-paper); font-weight:600; }

/* section dividers */
.t-section{ margin:60px 0 26px; }
.t-section:first-child{ margin-top:0; }
.t-section-rule{ display:block; width:46px; height:3px; background:var(--gold); margin-bottom:18px; }
.t-section h2{ font-family:var(--serif); font-weight:400; font-size:clamp(26px,3.4vw,38px); line-height:1.08; letter-spacing:-.01em; color:var(--ink); text-transform:none; }

/* sub-headings */
.t-sub{ font-family:var(--serif); font-weight:600; font-size:clamp(19px,2.2vw,23px); line-height:1.2; color:var(--ink); margin:34px 0 12px; letter-spacing:-.005em; }
.t-sub-caps{ font-family:var(--mono); font-weight:600; font-size:12.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--gold); margin:36px 0 14px; }

/* lists */
.t-list{ list-style:none; margin:8px 0 20px; padding:0; display:grid; gap:11px; }
.t-list li{ position:relative; padding-left:24px; font-size:15.5px; line-height:1.6; color:#2c3540; }
.t-list li::before{ content:""; position:absolute; left:2px; top:9px; width:7px; height:7px; background:var(--gold); transform:rotate(45deg); }
.t-list li strong{ color:var(--on-paper); font-weight:600; }

/* numbered steps */
.t-steps{ list-style:none; counter-reset:step; margin:18px 0 24px; padding:0; display:grid; gap:14px; }
.t-steps li{ counter-increment:step; position:relative; padding:18px 20px 18px 64px; background:var(--paper-2); border-radius:8px; font-size:15.5px; line-height:1.6; color:#2c3540; }
.t-steps li::before{ content:counter(step); position:absolute; left:18px; top:16px; width:32px; height:32px; border-radius:50%; background:var(--ink); color:var(--gold-br); font-family:var(--serif); font-size:16px; display:flex; align-items:center; justify-content:center; }
.t-step-h{ font-weight:700; color:var(--ink); }

/* pullquotes */
.t-pullquote{ margin:30px 0; padding:4px 0 4px 26px; border-left:3px solid var(--gold); }
.t-pullquote p{ font-family:var(--serif); font-style:italic; font-weight:300; font-size:clamp(20px,2.6vw,26px); line-height:1.4; color:var(--ink); margin:0; }

/* labelled callouts */
.t-callout{ margin:28px 0; padding:24px 26px; background:var(--ink); border-radius:10px; color:var(--on-dark); }
.t-callout-eyebrow{ font-family:var(--mono); font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:var(--gold-br); margin-bottom:12px; }
.t-callout p{ font-size:15px; line-height:1.62; color:#d7dde4; margin:0; }
.t-callout p strong{ color:#fff; }

/* stat cards */
.t-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin:30px 0; }
.t-stat{ background:var(--ink); border-radius:10px; padding:24px 18px; text-align:center; }
.t-stat .n{ font-family:var(--serif); font-weight:400; font-size:clamp(26px,3.4vw,36px); color:var(--gold-br); line-height:1; letter-spacing:-.01em; }
.t-stat .l{ font-size:13px; color:#fff; font-weight:600; margin-top:10px; line-height:1.3; }
.t-stat .s{ font-family:var(--mono); font-size:9.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--on-dark-dim); margin-top:8px; line-height:1.4; }
@media(max-width:680px){ .t-stats{ grid-template-columns:repeat(2,1fr); } }

/* figures */
.t-fig{ margin:30px 0; background:#fff; border:1px solid var(--line-paper); border-radius:10px; padding:18px; }
.t-fig img{ width:100%; height:auto; border-radius:3px; }

/* terms (key/value) */
.t-terms{ margin:22px 0 28px; border-top:1px solid var(--line-paper); }
.t-term{ display:grid; grid-template-columns:minmax(160px,34%) 1fr; gap:24px; padding:15px 4px; border-bottom:1px solid var(--line-paper); }
.t-term dt{ font-family:var(--mono); font-size:12px; letter-spacing:.04em; color:var(--ink); }
.t-term dt strong{ font-weight:600; }
.t-term dd{ font-size:15px; color:#2c3540; line-height:1.55; }
.t-empty{ color:var(--on-paper-dim); }
@media(max-width:600px){ .t-term{ grid-template-columns:1fr; gap:4px; } }

/* data tables */
.t-tablewrap{ margin:26px 0; overflow-x:auto; border:1px solid var(--line-paper); border-radius:10px; }
.t-table{ width:100%; border-collapse:collapse; font-size:14px; min-width:560px; }
.t-table th, .t-table td{ padding:13px 16px; text-align:left; border-bottom:1px solid var(--line-paper); vertical-align:top; line-height:1.45; }
.t-table thead th{ background:var(--ink); color:#fff; font-family:var(--mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; font-weight:500; border-bottom:0; }
.t-table thead th strong{ font-weight:600; }
.t-table tbody th[scope=row]{ color:var(--ink); font-weight:600; background:var(--paper-2); }
.t-table tbody td{ color:#2c3540; }
.t-table tbody tr:last-child th, .t-table tbody tr:last-child td{ border-bottom:0; }
.t-table tr.t-total th, .t-table tr.t-total td{ background:color-mix(in oklch, var(--gold), transparent 86%); color:var(--ink); font-weight:600; }
.t-table tbody td strong, .t-table tbody th strong{ color:var(--ink); }

/* document footer */
.t-docfoot{ max-width:820px; margin:0 auto; padding:36px clamp(22px,5vw,64px) 70px; background:var(--paper); border-top:1px solid var(--line-paper); }
.t-docfoot-mark{ display:flex; align-items:center; gap:10px; font-family:var(--serif); font-size:13px; letter-spacing:.14em; text-transform:uppercase; color:var(--ink); margin-bottom:14px; }
.t-docfoot-mark img{ height:20px; width:auto; }
.t-docfoot p{ font-size:12.5px; line-height:1.6; color:var(--on-paper-dim); max-width:none; }

/* ============================================================
   PRINT / PDF
   ============================================================ */
@media print{
  @page{ size:A4; margin:18mm 16mm; }
  .thesis-body{ background:#fff; }
  .t-topbar{ display:none !important; }
  .t-cover{ min-height:auto; height:auto; page-break-after:always; background:#0a141f !important; -webkit-print-color-adjust:exact; print-color-adjust:exact; padding:60px 40px; }
  .t-doc, .t-docfoot{ box-shadow:none; max-width:none; padding-left:0; padding-right:0; }
  .t-section{ break-after:avoid; page-break-after:avoid; margin-top:30px; }
  .t-section h2{ break-after:avoid; }
  .t-sub, .t-sub-caps{ break-after:avoid; page-break-after:avoid; }
  .t-fig, .t-stats, .t-tablewrap, .t-callout, .t-pullquote, .t-steps li, .t-term{ break-inside:avoid; page-break-inside:avoid; }
  .t-table thead th, .t-stat, .t-callout, .t-table tbody th[scope=row], .t-table tr.t-total th, .t-table tr.t-total td{ -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .t-doc p, .t-list li{ orphans:3; widows:3; }
  a[href]{ color:inherit; text-decoration:none; }
}
