/* =============================================================================
   Launchvox deck chrome — shared slide layout for every executive-summary deck
   -----------------------------------------------------------------------------
   Brand TOKENS (colors, type, pills, cards, motion) come from launchvox-theme.css
   (linked first). This file owns only the DECK LAYOUT: the slide stage, the
   typographic scale used inside slides, reusable content blocks, and the nav
   chrome (progress bar, dot nav, print rules). Straight corners throughout
   (var(--lvx-radius) resolves to 0). Pair with deck.js.

   A deck page is: <link theme> + <link this> ... <div id="deck"> sections </div>
   + the #bar / #nav markup + <script src=deck.js>. See any docs/decks/*.html.
   ============================================================================= */

html, body { margin: 0; height: 100%; }
body { background: #0d0d0d; }

#deck { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.slide {
  display: none;
  width: min(1100px, 94vw);
  max-height: 92vh;
  overflow: auto;
  background: var(--lvx-dark);
  border: 1px solid var(--lvx-border);
  border-radius: var(--lvx-radius-lg);
  padding: 3rem 3.25rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.slide.active { display: block; animation: lvx-reveal 0.45s ease-out; }

h1 { font-size: clamp(2.2rem, 4.6vw, 3.1rem); font-weight: 300; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 0.7rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; line-height: 1.15; margin: 0 0 1rem; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 0.35rem; color: var(--lvx-ink); }
p { line-height: 1.55; }
.lede { color: var(--lvx-text-muted); font-size: 1.05rem; max-width: 70ch; }
ul { line-height: 1.6; }
li { margin: 0.15rem 0; }

/* Brand header / logomark */
.brand { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 2.2rem; }
.brand svg { height: 30px; width: auto; color: var(--lvx-ink); }
.brand .sub { color: var(--lvx-text-muted); font-size: 0.85rem; letter-spacing: 0.02em; }

/* Layout grids */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.card {
  background: var(--lvx-surface); border: 1px solid var(--lvx-border);
  border-radius: var(--lvx-radius); padding: 1.1rem 1.25rem;
}
.card.accent { border-left: 3px solid var(--lvx-green); }
.card h3 + p { margin: 0; }
.card .muted, .muted { color: var(--lvx-text-muted); }

/* Status pills — green-only brand palette, square */
.pill { display: inline-flex; align-items: center; font-size: 0.68rem; font-weight: 700;
  padding: 0.12rem 0.6rem; border-radius: 0; margin-left: 0.45rem;
  border: 1px solid var(--lvx-border-strong); color: var(--lvx-light); text-transform: lowercase; letter-spacing: 0.03em; }
.pill.done { color: var(--lvx-green); border-color: var(--lvx-green); }
.pill.warn { background: var(--lvx-gradient-a); color: #0c1f17; border: none; }

table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--lvx-border); vertical-align: top; }
th { color: var(--lvx-light); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
td { color: var(--lvx-text); }
td:first-child { color: var(--lvx-text-muted); }

/* Hero statement — a pull quote, not a filled card. As a full-bleed gradient
   this fought the headline above it and forced dark-on-bright text that
   inverted the slide; the signature mint→cyan is now a rule down the left edge
   and the sentence carries on typography instead. Large and light, so it reads
   as a statement rather than as a block of UI. */
.hero-card {
  position: relative;
  background: none; border: none; border-radius: 0;
  color: var(--lvx-ink);
  padding: 0.1rem 0 0.1rem 1.6rem;
  font-family: var(--lvx-font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 64ch;
  text-wrap: balance;
}
.hero-card::before {
  content: ""; position: absolute; left: 0; top: 0.12em; bottom: 0.12em;
  width: 3px; background: var(--lvx-gradient-a);
}
/* The brand gradient is mint→cyan — bright enough to vanish against the light
   canvas at 3px, so the bar switches to the deeper brand greens there. */
html.lvx-theme-light .hero-card::before {
  background: linear-gradient(180deg, var(--lvx-green) 0%, var(--lvx-light) 100%);
}
/* Inline emphasis inside the quote — one step up in weight, not a shout. */
.hero-card b { font-weight: 500; }

/* Layer divider — marks the exec→technical boundary inside a deck */
.layer-tag { display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lvx-text-dim); border: 1px solid var(--lvx-border); padding: 0.2rem 0.6rem; }
.layer-tag.tech { color: var(--lvx-light); border-color: var(--lvx-border-strong); }

/* Weekly / phased grid (reused by timeline-style breakdowns) */
.weeks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; margin-top: 0.5rem; }
.week { background: var(--lvx-surface); border: 1px solid var(--lvx-border); border-radius: var(--lvx-radius); padding: 0.9rem; }
.week .wk { font-size: 0.68rem; font-weight: 700; color: var(--lvx-green); letter-spacing: 0.1em; text-transform: uppercase; }
.week h4 { margin: 0.25rem 0 0.5rem; font-size: 0.95rem; font-family: var(--lvx-font-display); font-weight: 600; color: var(--lvx-ink); }
.week ul { margin: 0; padding-left: 1.05rem; font-size: 0.82rem; color: var(--lvx-text-muted); }

/* Numbered stage rows */
.stagerow { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: start; margin: 0.5rem 0; }
.stagenum { width: 52px; height: 52px; border-radius: var(--lvx-radius);
  background: var(--lvx-surface-2); border: 1px solid var(--lvx-border-strong);
  color: var(--lvx-light); display: grid; place-items: center; font-weight: 700; font-size: 1.15rem; font-family: var(--lvx-font-display); }
.stagerow.done .stagenum { background: var(--lvx-green); border-color: var(--lvx-green); color: #0c1f17; }

/* Monospace block (code / payloads) */
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 0.82rem;
  line-height: 1.5; white-space: pre; overflow: auto; color: var(--lvx-text); }

/* Chrome */
#bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--lvx-green); transition: width 0.25s; z-index: 10; }
#nav { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.6rem; background: rgba(26,26,26,0.92);
  border: 1px solid var(--lvx-border); padding: 0.4rem 0.8rem; border-radius: 0; color: var(--lvx-text-muted); font-size: 0.8rem; z-index: 10; }
#nav button { background: none; border: none; color: var(--lvx-text-muted); cursor: pointer; font-size: 1rem; padding: 0 0.3rem; }
#nav button:hover { color: var(--lvx-green); }
#nav a.home { color: var(--lvx-text-muted); text-decoration: none; font-size: 0.9rem; }
#nav a.home:hover { color: var(--lvx-green); }
#dots { display: flex; gap: 5px; }
.dot { width: 7px; height: 7px; border-radius: 0; background: #3a3a3a; cursor: pointer; transition: background 0.3s; }
.dot.active { background: var(--lvx-green); }
.hint { position: fixed; bottom: 16px; right: 18px; color: var(--lvx-text-dim); font-size: 0.74rem; z-index: 10; }

/* Swipe cue — sits at the end of a slide's own scroll, so on a phone it is what
   you meet after reading rather than chrome laid over the content. Injected by
   deck.js into every slide; desktop never shows it. */
.swipe-cue { display: none; }

@media (max-width: 760px) {
  .grid2, .grid3, .weeks, .lvx-branch { grid-template-columns: 1fr; }
  .lvx-branch::before, .lvx-branch > *::before { display: none; }
  .slide { padding: 2rem 1.4rem; }

  /* A phone has no keyboard and no room for a button bar, so navigation is the
     swipe and the dots are only a position readout. Buttons, counter and the
     keyboard hint all go. */
  /* theme-light.css sets `html.lvx-theme-light #nav { background: ... }`, which
     outranks a bare `#nav` here — so the light-mode panel is cleared by name. */
  #nav,
  html.lvx-theme-light #nav {
    bottom: 10px; gap: 0; padding: 0.45rem 0.7rem;
    background: none; border: none;
  }
  #nav button, #counter, #nav a.home, .hint { display: none; }
  #dots { gap: 7px; }
  .dot { width: 6px; height: 6px; }

  .slide { padding-bottom: 3.2rem; }        /* clear of the dots */
  .swipe-cue {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    margin: 1.6rem 0 0; padding-top: 0.9rem;
    border-top: 1px solid var(--lvx-border);
    color: var(--lvx-text-dim); font-size: 0.72rem; letter-spacing: 0.04em;
  }
  .swipe-cue span { opacity: 0.75; }
  .swipe-cue.at-start .prev, .swipe-cue.at-end .next { visibility: hidden; }
}
@media print {
  body { background: #fff; }
  #deck { display: block; }
  .slide { display: block !important; max-height: none; box-shadow: none; page-break-after: always; width: 100%; border-color: #ccc; }
  #nav, #bar, .hint { display: none; }
}
