/* ============================================================
   Sonesta V21 Stylesheet — S1184
   Derived from consulting/fineline-v21-staging/FINELINE_STRATEGIC_REIMAGINATION_RESEARCH_V21.html
   Palette swap per S1170 Agent 8 V21 assessment:
     --navy (deep #0a1628 preserved) + Sonesta gold #c9a84c preserved
     Sonesta cream + warm retained (85% palette alignment per audit)
   Typography retained (Cormorant Garamond + Playfair Display + Source Sans 3 + JetBrains Mono)
   Purpose: single canonical stylesheet for the 5 V21-elevated Sonesta deliverables
            in static/sonesta/docs/v21/.
   Ascension Certification: this stylesheet is itself a V21 contract —
            any HTML that imports it inherits the Genesis voice + visual authority.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Playfair+Display:wght@400;700;800;900&family=Source+Sans+3:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --navy: #0a1628;
  --deep: #0f1d35;
  --mid: #1a3a5c;
  --gold: #c9a84c;
  --gold-lt: #e4cc7a;
  --cream: #faf8f4;
  --warm: #f5f0e8;
  --white: #ffffff;
  --text: #2a2a2a;
  --muted: #555555;
  --border: #e0dbd2;
  --ascension: #1e6b45;
}

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

body {
  font-family: 'Source Sans 3', -apple-system, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.85;
  font-size: 17.5px;
  -webkit-font-smoothing: antialiased;
}

.tier-bar {
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt), var(--gold));
}

/* Hero */
.hero {
  background: var(--navy);
  color: #e8e6e1;
  padding: 72px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(201, 168, 76, 0.06), transparent 60%),
    radial-gradient(ellipse at 20% 70%, rgba(42, 100, 150, 0.04), transparent 50%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 64px;
}
.badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.35);
  padding: 5px 16px;
  border-radius: 3px;
  margin-bottom: 24px;
}
.ascension-mark {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ascension);
  border: 1px solid rgba(30, 107, 69, 0.4);
  background: rgba(30, 107, 69, 0.06);
  padding: 4px 12px;
  border-radius: 3px;
  margin-left: 10px;
}
.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3.2rem;
  font-weight: 300;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.1;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero .tagline {
  font-size: 1.15rem;
  font-weight: 300;
  opacity: 0.75;
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero .stats {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
}
.hero .stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1.05;
}
.hero .stat-label {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.6;
}
.hero-meta {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Document body */
.doc-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 64px 72px;
  background: var(--white);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.03);
}
.doc-body h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 1.75rem;
  color: var(--navy);
  margin: 64px 0 22px;
  padding: 16px 0 14px;
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid var(--border);
  line-height: 1.25;
}
.doc-body h1:first-child { margin-top: 0; border-top: none; }
.doc-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 1.38rem;
  color: var(--navy);
  margin: 44px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  line-height: 1.3;
}
.doc-body h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--mid);
  margin: 32px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.doc-body p { margin-bottom: 18px; }
.doc-body strong { color: var(--navy); }
.doc-body ul, .doc-body ol { padding-left: 22px; margin-bottom: 18px; }
.doc-body li { margin-bottom: 8px; }

/* Tables */
.doc-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0 26px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(10, 22, 40, 0.05);
  font-size: 0.92rem;
}
.doc-body thead th {
  background: var(--navy);
  color: #ffffff;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  font-size: 0.78rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.doc-body tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  vertical-align: top;
}
.doc-body tbody tr:last-child td { border-bottom: none; }
.doc-body tbody tr:hover td { background: var(--warm); }

/* Callouts */
.insight-box, .critical-box, .so-what, .implications {
  border-radius: 10px;
  padding: 32px 36px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}
.insight-box { background: linear-gradient(135deg, #fdf8ef, #faf3e3); border: 1px solid rgba(201, 168, 76, 0.25); }
.insight-box::before { content: ''; position: absolute; top: 0; left: 0; width: 5px; height: 100%; background: linear-gradient(180deg, var(--gold), var(--gold-lt)); }
.insight-box .label { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 800; color: var(--gold); margin-bottom: 12px; }

.critical-box { background: linear-gradient(135deg, #fdf0ef, #fae8e6); border: 1px solid rgba(180, 60, 40, 0.15); }
.critical-box::before { content: ''; position: absolute; top: 0; left: 0; width: 5px; height: 100%; background: linear-gradient(180deg, #c0392b, #e74c3c); }
.critical-box .label { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 800; color: #b43c28; margin-bottom: 12px; }

.so-what { background: linear-gradient(135deg, #edf2f9, #e4ecf5); border: 1px solid rgba(26, 58, 92, 0.1); }
.so-what::before { content: ''; position: absolute; top: 0; left: 0; width: 5px; height: 100%; background: linear-gradient(180deg, #2e6baf, #4a90d9); }
.so-what .label { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 800; color: var(--mid); margin-bottom: 12px; }

.implications { background: linear-gradient(135deg, #f2f8f4, #e8f2ec); border: 1px solid rgba(39, 120, 80, 0.1); }
.implications::before { content: ''; position: absolute; top: 0; left: 0; width: 5px; height: 100%; background: linear-gradient(180deg, #1e6b45, #3da876); }
.implications .label { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 800; color: #2a7850; margin-bottom: 14px; }

/* Blockquote */
.doc-body blockquote {
  background: var(--warm);
  border: none;
  border-radius: 10px;
  padding: 36px 44px 32px 60px;
  margin: 28px 0;
  font-style: italic;
  color: #3a3a3a;
  font-size: 1.12rem;
  line-height: 1.7;
  position: relative;
}
.doc-body blockquote::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  left: 18px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  opacity: 0.7;
}
.doc-body blockquote .attr {
  display: block;
  font-style: normal;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 12px;
  font-weight: 500;
}

/* Footer */
.doc-footer {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 64px 56px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  line-height: 1.7;
}
.doc-footer .footer-mark {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}
.doc-footer a { color: var(--gold-lt); }

/* Print CSS — every V21 doc prints flawless 8.5x11 per Carter directive 6 */
@media print {
  @page {
    size: 8.5in 11in;
    margin: 0.75in 0.75in 0.9in 0.75in;
  }
  body {
    background: #ffffff;
    font-size: 10.5pt;
    line-height: 1.55;
    color: #000000;
  }
  .hero {
    padding: 28px 0 22px;
    background: #ffffff;
    color: var(--navy);
    break-after: auto;
  }
  .hero::before { display: none; }
  .hero h1 { color: var(--navy); font-size: 24pt; }
  .hero .tagline { color: var(--muted); }
  .hero .stat-num { color: var(--navy); }
  .hero .stat-label { color: var(--muted); }
  .hero-inner, .doc-body, .doc-footer { padding-left: 0; padding-right: 0; max-width: 100%; }
  .doc-body { box-shadow: none; padding-top: 16px; }
  .doc-body h1 { font-size: 16pt; margin-top: 28px; page-break-after: avoid; }
  .doc-body h2 { font-size: 13pt; page-break-after: avoid; }
  .doc-body h3 { font-size: 10pt; page-break-after: avoid; }
  .doc-body p, .doc-body li { orphans: 3; widows: 3; }
  .doc-body table { page-break-inside: avoid; font-size: 9pt; box-shadow: none; }
  .doc-body thead { display: table-header-group; }
  .insight-box, .critical-box, .so-what, .implications {
    page-break-inside: avoid;
    background: #f7f7f5;
    border: 1px solid #d0ccc2;
    color: #000;
  }
  .doc-body blockquote { page-break-inside: avoid; background: #f5f0e8; }
  .doc-footer { background: #ffffff; color: var(--muted); border-top: 2px solid var(--gold); margin-top: 24px; }
  .doc-footer .footer-mark { color: var(--gold); }
  a { color: inherit; text-decoration: none; }
  a[href]::after { content: ''; }
  .no-print { display: none !important; }
}

/* Mobile */
@media screen and (max-width: 720px) {
  .hero-inner, .doc-body, .doc-footer { padding-left: 24px; padding-right: 24px; }
  .hero h1 { font-size: 2.2rem; }
  .hero .stats { gap: 24px; }
}
