/* ============================================================
   Lahav Advisory — Shared Document Stylesheet
   Screen-first. For print use @media print overrides.
   ============================================================ */

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

/* ── Variables ── */
:root {
  --gold:       #C9A84C;
  --gold-dim:   rgba(201,168,76,0.15);
  --black:      #09090B;
  --dark:       #111113;
  --dark2:      #18181B;
  --dark3:      #27272A;
  --grey:       #71717A;
  --light:      #D4D4D8;
  --offwhite:   #FAFAF9;
  --lgrey:      #F4F4F5;
  --border:     rgba(201,168,76,0.18);
  --crit:       #F87171;
  --crit-bg:    rgba(185,28,28,0.2);
  --high:       #FB923C;
  --high-bg:    rgba(194,65,12,0.2);
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'DM Sans', 'Helvetica Neue', sans-serif;
  --text:       #E8E4DA;
  --text-muted: #9A9A9A;
}

/* ── Base ── */
html, body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: 1fr auto;
  position: relative;
}

.page::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  z-index: 10;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  background: var(--black);
  padding: 40px 24px 32px 24px;
  display: flex;
  flex-direction: column;
}
.sidebar::after { display: none; }

/* Mobile-only wordmark header — hidden on desktop */
.sidebar-header { display: none; }

/* ── Wordmark ── */
.wordmark {
  margin-bottom: 16px;
}
.wordmark-logo {
  height: 74.21875px;
  width: auto;
  margin-bottom: 12px;
  margin-left: -8px;
  display: block;
}
.wordmark-name {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1.05;
  letter-spacing: 0.02em;
}
.wordmark-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--offwhite);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 8px;
  padding-bottom: 12px;
}

/* ── Sidebar sections ── */
.s-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #2D2D30;
}
.wordmark + .s-section {
  border-top: none;
}
.s-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.s-label--lg {
  font-size: 11px;
}
.s-body {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.55;
}
.s-body + .s-body { margin-top: 6px; }

.s-list { list-style: none; }
.s-list--2col { columns: 2; }
.s-list li {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 11px;
  position: relative;
  margin-bottom: 4px;
}
.s-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

/* ── Sidebar contact ── */
.s-contact { margin-bottom: 12px; }
.s-contact-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}
.s-contact-value {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 300;
}
.s-contact-value a {
  color: var(--text-muted);
  text-decoration: none;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.main {
  background: var(--dark);
  padding: 57px 36px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-left: 1px solid rgba(201,168,76,0.18);
}

.doc-confidential {
  font-size: 7px;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

/* ── Hero / title block ── */
.hero-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.hero-h1 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}
.hero-rule {
  width: 150px;
  height: 2px;
  background: var(--gold);
  margin: 10px 0;
}
.hero-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 16px;
}

/* ── Disclaimer block ── */
.disclaimer {
  background: var(--dark2);
  border-left: 2px solid var(--gold);
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}
.disclaimer strong { color: var(--light); font-weight: 500; }

/* ── Section label ── */
.m-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

/* ============================================================
   FINDINGS / PRICE CHIPS
   ============================================================ */
.finding {
  background: var(--dark2);
  border-left: 2px solid var(--border);
  margin-bottom: 10px;
}
.finding--critical { border-left-color: var(--crit); }
.finding--high     { border-left-color: var(--high); }

.finding-top {
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.finding-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 6px;
}
.finding-header > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.finding-ref {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.finding-domain {
  font-size: 10px;
  color: var(--gold);
  font-weight: 700;
}

/* ── Severity badges ── */
.severity {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  flex-shrink: 0;
}
.severity--critical { background: var(--crit-bg); color: var(--crit); }
.severity--high     { background: var(--high-bg);  color: var(--high); }

.finding-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 6px;
}
.finding-observation {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
  padding: 10px 16px;
}

/* ── Finding body / fields ── */
.finding-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.finding-field {
  padding: 10px 16px;
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.finding-field:last-child { border-right: none; }

.finding-field-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.finding-field-label::before {
  content: '';
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Exposure label inline figure ── */
.exposure-label-pipe {
  color: var(--light);
  font-weight: 600;
  margin: 0 3px;
  letter-spacing: 0;
}
.exposure-label-figure {
  font-size: 9px;
  font-weight: 600;
  color: var(--light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-left: 0;
}
.finding-field-value {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}
.exposure-figure { display: none; }
.exposure-note {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* ============================================================
   CTA BLOCK
   ============================================================ */
.findings-cta-link {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s;
  font-weight: 500;
  font-size: 13px;
}
.findings-cta-link:hover { color: #e0bc6a; }

.cta {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--dark2);
  border-left: 2px solid var(--gold);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cta-diamond { color: var(--gold); font-size: 11px; flex-shrink: 0; margin-top: 2px; }
.cta-text { font-size: 11px; color: var(--text-muted); line-height: 1.65; font-weight: 300; }
.cta-text strong { color: var(--light); font-weight: 500; }
.cta-text a { color: var(--gold); text-decoration: none; }
.cta-text a:hover { color: #e0bc6a; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  grid-column: 1 / -1;
  background: var(--dark2);
  border-top: 1px solid var(--gold);
  padding: 10px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left { font-size: 10px; color: var(--text-muted); font-weight: 500; }
.footer-right { display: flex; align-items: center; gap: 16px; }
.footer-url { font-size: 11px; font-weight: 500; color: var(--gold); }
.footer-contact { font-size: 10px; color: var(--text-muted); font-weight: 300; }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.section-block {
  display: flex;
  flex-direction: column;
}
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.card { padding: 18px 20px; position: relative; }
.card--light { background: var(--dark2); border-left: 2px solid var(--gold); }
.card--dark  { background: var(--dark2); border-left: 2px solid var(--gold); }
.card-eyebrow {
  font-size: 9px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 4px;
}
.card-title {
  font-family: var(--serif); font-size: 17px; font-weight: 700;
  line-height: 1.15; margin-bottom: 2px;
}
.card--light .card-title { color: var(--text); }
.card--dark  .card-title { color: var(--offwhite); }
.card-title em { color: var(--gold); font-style: italic; }
.card-stage {
  font-size: 10px; color: var(--text-muted); margin-bottom: 10px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column; gap: 4px;
  min-height: 56px;
}
.card--light .card-stage { border-bottom-color: rgba(255,255,255,0.06); }
.card--dark  .card-stage { border-bottom-color: rgba(255,255,255,0.06); }
.card-stage-item { display: flex; align-items: center; gap: 8px; }
.card-stage-diamond { color: var(--gold); font-size: 9px; flex-shrink: 0; }
.card-stage-primary { color: var(--text); font-weight: 500; font-size: 12px; }
.card--dark .card-stage-primary { color: var(--offwhite); }
.card-stage-secondary { color: var(--text); font-size: 12px; }
.card--dark .card-stage-secondary { color: var(--offwhite); }
.card-items { list-style: none; }
.card-items li {
  font-size: 12px; line-height: 1.55; margin-bottom: 8px;
  padding-left: 11px; position: relative;
}
.card--light .card-items li { color: var(--light); }
.card--dark  .card-items li { color: var(--light); }
.card-items li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 4px; height: 1px; background: var(--gold);
}
.card-items li strong { font-weight: 500; display: block; }
.card--light .card-items li strong { color: var(--text); }
.card--dark  .card-items li strong { color: var(--offwhite); }

/* ── Inline Price Chip ── */
.chip {
  background: var(--dark2); border-left: 3px solid var(--crit);
  padding: 20px; position: relative;
}
.chip-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.chip-title { font-size: 14px; font-weight: 500; color: var(--text); }
.chip-badge {
  background: var(--crit-bg); color: var(--crit); font-size: 10px;
  font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; flex-shrink: 0; margin-left: 16px;
}
.chip-meta { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.chip-meta strong { color: var(--light); font-weight: 500; }
.chip-body { font-size: 12px; color: var(--text-muted); line-height: 1.65; margin-bottom: 10px; font-weight: 300; }
.chip-exposure { font-size: 12px; color: var(--text-muted); line-height: 1.55; margin-bottom: 6px; font-weight: 300; }
.chip-exposure strong { font-weight: 500; }
.chip-tagline { font-size: 12px; font-weight: 500; color: var(--gold); margin-top: 6px; }

/* ── Process strip ── */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.step { background: var(--dark2); padding: 16px 12px; text-align: center; border-top: 2px solid var(--gold); }
.step-num { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 4px; }
.step-title { font-size: 11px; font-weight: 500; color: var(--text); margin-bottom: 4px; line-height: 1.3; }
.step-desc  { font-size: 10px; color: var(--text-muted); line-height: 1.6; font-weight: 300; }
.step-badge { display: inline-block; font-size: 8px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }

/* ── Guarantee block ── */
.guarantee { margin-top: auto; padding: 14px 16px; border: 1px solid var(--gold); background: var(--dark2); }
.guarantee-title {
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); text-align: center; padding-bottom: 8px; margin-bottom: 8px;
  border-bottom: 1px solid rgba(201,168,76,0.25);
}
.guarantee-body { font-size: 11px; color: var(--light); line-height: 1.55; text-align: center; font-weight: 300; }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {

  /* Wordmark header first, main content second, sidebar sections last */
  .page {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
  }

  .sidebar-header {
    display: block;
    order: 1;
    background: var(--black);
    padding: 16px 24px 14px 24px;
    position: static;
    border-bottom: 1px solid var(--border);
  }

  .reading-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--gold);
    width: 0%;
    transition: width 0.08s linear;
  }

  .sidebar .wordmark { display: none; }

  .main {
    order: 2;
    padding: 32px 20px 24px 20px;
    border-left: none;
    border-top: none;
    gap: 20px;
  }

  .sidebar {
    order: 3;
    padding: 16px 24px 24px 24px;
    border-top: 1px solid rgba(201,168,76,0.25);
  }

  /* Scale up hero for mobile */
  .hero-h1 { font-size: 26px; }

  /* Single column cards */
  .cards {
    grid-template-columns: 1fr;
  }

  /* Remove min-height on stage — no need to align across stacked cards */
  .card-stage { min-height: unset; }

  /* Process: 2 columns then wrap */
  .process {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Finding body: stack fields */
  .finding-body {
    grid-template-columns: 1fr;
  }
  .finding-field { border-right: none; }


  .footer {
    order: 4;
    padding: 10px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .cta { align-items: center; }
  .cta-diamond { margin-top: 0; }
}

/* ============================================================
   BRIEF SHARED — common across sidebar-layout briefs
   ============================================================ */

/* ── Brief page layout ── */
@media (min-width: 769px) {
  .page { grid-template-columns: 1fr 3fr; }
}

/* ── Opening ── */
.brief-opening {
  padding-bottom: 28px;
  margin-bottom: 28px;
}
.brief-h1 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 14px;
}
.brief-h1 .gold { color: var(--gold); }
.brief-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 10px;
}
.brief-pullquote {
  background: var(--dark2);
  border-left: 2px solid var(--gold);
  padding: 12px 16px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.brief-pullquote-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}
.pq-diamond { color: var(--gold); font-size: 8px; flex-shrink: 0; margin-top: 4px; }

/* ── Document sections ── */
.doc-section {
  padding-bottom: 28px;
  margin-bottom: 28px;
}
.doc-section:last-child { margin-bottom: 0; padding-bottom: 0; }
.doc-section-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
}
.doc-section-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  line-height: 1;
}
.doc-section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Sidebar definition ── */
.s-definition {
  margin-top: 8px;
  padding-top: 0;
  margin-bottom: 24px;
}
.s-definition + .s-section { border-top: none; }
.s-definition-term {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.s-definition-term .noun {
  color: var(--text-muted);
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: none;
  margin-left: 5px;
}
.s-definition-body {
  margin-top: 6px;
  padding-left: 10px;
  border-left: 1px solid rgba(201,168,76,0.45);
  font-size: 11px;
  color: var(--light);
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
}

/* ── Brief link ── */
.brief-link { cursor: pointer; }
.brief-link:hover { text-decoration: underline; opacity: 0.85; }

/* ── Consequence ── */
.consequence-item {
  padding: 12px 0;
}
.consequence-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 5px;
}
.consequence-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}

/* ── From field ── */
.from-field {
  background: var(--black);
  border-left: 2px solid var(--gold);
  padding: 12px 16px;
  margin-top: 16px;
}
.from-field p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  font-style: italic;
}

/* ── Engagements ── */
.engagement {
  margin-bottom: 20px;
  padding-bottom: 20px;
}
.engagement:last-child { margin-bottom: 0; padding-bottom: 0; }
.engagement-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.engagement-name em { color: var(--gold); font-style: italic; }
.engagement-stage {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
  padding-bottom: 8px;
}
.engagement-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}
.engagement-body p + p { margin-top: 8px; }
.engagement-deliverable {
  background: var(--dark2);
  border-left: 2px solid var(--gold);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
  margin-top: 12px;
}
.engagement-deliverable strong { color: var(--text); font-weight: 500; }
.engagement-outputs { margin-top: 14px; }

/* ── Surfaces list ── */
.surfaces-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.surfaces-list li {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
  padding-left: 12px;
  border-left: 1px solid rgba(201,168,76,0.3);
}
.surfaces-list li strong {
  display: block;
  font-weight: 500;
  color: var(--text);
  font-size: 11px;
  margin-bottom: 1px;
}
