/* =========================================================
   Talks Deck Theme — Max Riechelmann
   ---------------------------------------------------------
   THE shared deck theme. One copy for the whole site: every deck
   links /common/theme.css, no deck keeps a copy of it. Deck-specific
   CSS goes in a <style> block in the deck's own HTML.

   Colours come from common/palette.css, imported below — this file
   declares no colour of its own. Pairs with common/images/logo.png
   (the title/closing masthead and footer mark).

   Section map:
     1. Palette import
     2. Base & reveal overrides
     3. Background atmosphere
     4. Slide layout (title / content / center)
     5. TEMPLATES
        5.1  Headings (eyebrow, h2, lead, callout, note)
        5.2  Phase Card        — numbered stage + checklist
        5.3  Process Timeline  — horizontal step bar with dots
        5.4  Check List        — bullet list (modifiers: two-col, compact, warn)
        5.5  Tag Row           — pill tags (modifiers: warn, accent)
        5.6  Split 2-col       — generic two-column layout
        5.7  Info Card         — soft panel with optional h4
        5.8  Code Block        — title + monospace pre
        5.9  Compare Card      — side-by-side comparison
        5.10 Roadmap Grid      — 3-card horizontal roadmap
        5.11 Metric Grid       — KPI cards
        5.12 Dojo Format       — inline format chips
        5.13 Mermaid Host      — sized container for mermaid SVGs
     6. Footer brand
   ========================================================= */


/* ---------- 1. PALETTE IMPORT ---------- */
/* Colour tokens live in exactly one file. Relative to this stylesheet, so
   every deck sees the same palette whatever its depth in the tree. */

@import url("palette.css");


/* ---------- 2. BASE & REVEAL OVERRIDES ---------- */

.reveal-viewport,
.reveal,
.reveal .slides,
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
}

.reveal { font-size: 28px; font-weight: 400; }
.reveal .slides { text-align: left; }

.reveal .slides > section { padding: 0 !important; box-sizing: border-box; z-index: 1; }

.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
  color: var(--ink);
  text-transform: none;
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

.reveal h1 { font-size: 4.0rem; }
.reveal h2 { font-size: 2.8rem; }
.reveal h2.big { font-size: 4.0rem; }
.reveal h3 { font-size: 1.25rem; font-weight: 600; }
.reveal h4 { font-size: 0.95rem; color: var(--accent-bright); font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; }

.reveal p { line-height: 1.55; color: var(--ink-dim); margin: 0; }
.reveal a { color: var(--accent-bright); text-decoration: none; }
.reveal code { font-family: var(--font-mono); font-size: 0.92em; color: var(--accent-bright); }


/* ---------- 3. BACKGROUND ATMOSPHERE ---------- */

.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 0; pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.bg-gradient {
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(47, 151, 166, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(95, 208, 224, 0.08), transparent 60%);
  z-index: 0; pointer-events: none;
}


/* ---------- 4. SLIDE LAYOUT ---------- */

/* Title slide --------------------------------- */
.title-slide {
  display: flex !important;
  align-items: center; justify-content: center;
  width: 1600px; height: 1000px; box-sizing: border-box;
}

.title-wrap { width: 100%; max-width: 1280px; padding: 0 80px; }

/* The masthead. A banner, not a logo mark: a light low-poly plate laid on the
   hull, the same composition the landing page and the announcement mail use for
   the same artwork. Sized by WIDTH — the wordmark inside has to stay legible from
   the back of the room, which a height-fitted logo box cannot guarantee.

   No teal drop-shadow: a glow around a rectangular plate reads as a halo. It gets
   the landing page's treatment instead — hairline border, soft cast shadow. */
.title-banner {
  display: block;
  width: 140px; max-width: 100%; height: auto;
  margin: 0 0 32px 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.title-divider {
  width: 80px; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  border-radius: 4px; margin-bottom: 28px;
}

.title-slide h1 {
  font-size: 4.4rem; font-weight: 800; letter-spacing: -0.035em;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--accent-pale) 60%, var(--accent-bright) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 22px;
}

.title-slide .subtitle {
  font-size: 1.25rem; color: var(--ink-dim);
  max-width: 820px; margin-bottom: 52px; font-weight: 400;
}

.title-meta {
  display: flex; align-items: center; gap: 28px;
  color: var(--ink-mute); font-size: 0.85rem;
  font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase;
}

.meta-item { display: inline-flex; align-items: center; gap: 10px; }
.meta-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-glow);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Content slide ------------------------------- */
.content-slide {
  width: 1600px; height: 1000px;
  padding: 80px 100px 100px; box-sizing: border-box;
  display: flex; flex-direction: column;
  justify-content: flex-start; gap: 24px;
}

.center-slide { justify-content: center; align-items: center; text-align: center; }
.center-slide h2 { text-align: center; }
.center-slide .eyebrow { text-align: center; justify-content: center; }

/* The closing slide is centred, so the banner is too — and narrower than on the
   title slide, where it is the first thing read. */
.closing-banner {
  display: block;
  width: 110px; max-width: 100%; height: auto;
  margin: 0 auto 24px;
  border: none;
  border-radius: 0;
  box-shadow: none;
}


/* =========================================================
   5. TEMPLATES — reusable components
   ========================================================= */


/* ---------- 5.1 Headings ---------- */

.eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-bright); margin: 0;
  display: inline-flex; align-items: center; gap: 10px;
}

.eyebrow::before {
  content: ""; display: inline-block;
  width: 26px; height: 2px;
  background: var(--accent); border-radius: 2px;
}

.lead {
  font-size: 1.15rem; color: var(--ink-dim);
  max-width: 1100px; line-height: 1.55;
}

.lead-center {
  font-size: 1.15rem; color: var(--ink-dim);
  max-width: 880px; margin: 12px auto 0;
  line-height: 1.55; text-align: center;
}

.callout {
  background: linear-gradient(135deg, rgba(47,151,166,0.12), rgba(95,208,224,0.06));
  border: 1px solid var(--accent-line);
  border-left: 3px solid var(--accent-bright);
  border-radius: var(--radius);
  padding: 20px 26px;
  font-size: 1.15rem; color: var(--ink); line-height: 1.5;
}

.callout-label {
  display: block;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--accent-bright); text-transform: uppercase; letter-spacing: 0.16em;
  margin-bottom: 6px;
}

.callout strong,
.callout b { color: var(--accent-bright); font-weight: 700; }

.note { font-size: 0.95rem; color: var(--ink-mute); font-style: italic; }

.quote-headline {
  font-size: 2.4rem !important; font-weight: 600 !important;
  letter-spacing: -0.02em; line-height: 1.3 !important;
  max-width: 1200px; color: var(--ink);
}

.next-step {
  margin-top: 36px !important;
  font-family: var(--font-mono);
  font-size: 0.95rem !important;
  color: var(--accent-bright) !important;
  letter-spacing: 0.06em;
}


/* ---------- 5.2 Phase Card ---------- */
/*
   Usage:
   <div class="phase-card">
     <div class="phase-stage">
       <div class="phase-num">01</div>
       <div class="phase-label">Discover</div>
     </div>
     <div class="phase-body">
       <ul class="check-list two-col">...</ul>
       <div class="deliverables">
         <span class="deliv-label">Deliverables</span>
         <div class="tag-row">...</div>
       </div>
     </div>
   </div>
*/
.phase-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.phase-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-bright));
}

.phase-stage { padding-right: 20px; border-right: 1px solid var(--line); }

.phase-num {
  font-family: var(--font-mono); font-size: 4.0rem; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1; margin-bottom: 8px;
}

.phase-label {
  font-family: var(--font-mono); font-size: 0.82rem;
  color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.15em;
}

.phase-body {
  display: flex; flex-direction: column;
  gap: 20px; min-height: 0;
}

.deliverables { display: flex; flex-direction: column; gap: 10px; }
.deliv-label {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--accent-bright); text-transform: uppercase; letter-spacing: 0.16em;
}


/* ---------- 5.3 Process Timeline ---------- */
/*
   Usage:
   <div class="process-timeline">
     <div class="proc-line"></div>
     <div class="proc-node">
       <div class="proc-dot [active|future]"></div>
       <div class="proc-step">Step 1</div>
       <div class="proc-title">Discover</div>
     </div>
     ...
   </div>
   Adjust grid-template-columns count for N nodes.
*/
.process-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 36px;
  padding: 20px 0 0;
  width: 100%;
}

.proc-line {
  position: absolute;
  top: 35px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg,
    var(--accent) 0%, var(--accent-bright) 80%, var(--line) 100%);
  border-radius: 2px;
}

.proc-node { text-align: center; position: relative; padding-top: 60px; }

.proc-dot {
  position: absolute; top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  z-index: 1;
}

.proc-dot.active {
  background: var(--accent-bright);
  box-shadow: 0 0 24px var(--accent-bright), 0 0 0 6px rgba(70, 188, 205, 0.15);
  border-color: var(--accent-bright);
}

.proc-node.future .proc-dot { border-style: dashed; border-color: var(--ink-mute); }

.proc-step {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--accent-bright); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 6px;
}

.proc-title { font-weight: 700; font-size: 1.15rem; color: var(--ink); }

.proc-desc {
  font-size: 0.82rem;
  color: var(--ink-dim);
  margin-top: 8px;
  line-height: 1.4;
  padding: 0 8px;
}


/* ---------- 5.4 Check List ---------- */
/*
   Default vertical list. Modifiers (combine on class):
     .two-col  — two-column grid
     .compact  — tighter spacing, no separator
     .warn     — orange ticks (risks)
*/
.check-list { list-style: none; margin: 0; padding: 0; }

.check-list li {
  font-size: 1.05rem; color: var(--ink);
  padding: 10px 0 10px 30px; position: relative;
  border-bottom: 1px solid var(--line-soft);
  line-height: 1.4;
}

.check-list li:last-child { border-bottom: none; }

.check-list li::before {
  content: ""; position: absolute;
  left: 0; top: 18px;
  width: 18px; height: 2px;
  background: var(--accent); border-radius: 2px;
}

.check-list.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 40px;
}

.check-list.compact li {
  font-size: 0.95rem; padding: 6px 0 6px 22px;
  border-bottom: none;
}
.check-list.compact li::before { top: 14px; width: 12px; }

.check-list.warn li::before { background: var(--warn); }


/* ---------- 5.5 Tag Row ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.tag {
  display: inline-flex; align-items: center;
  padding: 7px 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(47, 151, 166, 0.25);
  border-radius: 100px;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--accent-bright); letter-spacing: 0.03em;
}

.tag.accent, .tag.active {
  background: rgba(95, 208, 224, 0.18);
  border-color: var(--accent-bright);
  color: var(--ink);
}

.tag.warn {
  background: var(--warn-soft);
  border-color: var(--warn-line);
  color: var(--warn);
}

.tag.arrow {
  background: transparent; border: none;
  color: var(--ink-mute); padding: 0 4px;
}


/* ---------- 5.5b Stack Layers ---------- */
/*
   Layered visualization of a technology stack.
   <div class="stack-layers">
     <div class="stack-layer">
       <div class="stack-layer-label">Source</div>
       <div class="stack-layer-items">GitHub Enterprise</div>
     </div>
     ...
   </div>
*/
.stack-layers {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.stack-layer {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  padding: 12px 22px 12px 26px;
  background: linear-gradient(90deg, rgba(47,151,166,0.10), rgba(47,151,166,0.02) 60%, transparent);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}

.stack-layer:last-child { border-bottom: none; }

.stack-layer::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-bright));
  opacity: 0.55;
}

.stack-layer:hover::before { opacity: 1; }

.stack-layer-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.stack-layer-items {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}


/* ---------- 5.6 Split 2-col ---------- */
.split-2col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 28px; flex: 1; min-height: 0;
}
.split-2col.tight { gap: 20px; }


/* ---------- 5.7 Info Card ---------- */
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0; left: 22px;
  width: 28px; height: 3px;
  background: var(--accent);
  border-radius: 0 0 3px 3px;
}

.info-card h4 { margin: 0; }


/* ---------- 5.8 Code Block ---------- */
.code-block {
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}

.code-title {
  padding: 10px 18px;
  background: var(--accent-wash);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--accent-bright); letter-spacing: 0.06em;
}

.code-block pre {
  margin: 0; padding: 18px 20px;
  font-family: var(--font-mono); font-size: 0.88rem; line-height: 1.55;
  color: var(--ink); white-space: pre; overflow: auto;
  background: transparent; box-shadow: none;
}

.code-block code {
  color: var(--ink); background: transparent;
  font-size: inherit;
}


/* ---------- 5.8b Milestone Slide & Deep-Dive Tag ---------- */
/*
   Visual treatment for slides that belong to a milestone:
     <section><div class="content-slide milestone-slide">
       <div class="milestone-tag [crit]">Milestone M01 · May → Jul 2026</div>
       <h2>...</h2>
       ...
     </div></section>

   Deep-dive slides use class "deepdive-slide" + "deepdive-tag".
*/
.milestone-slide,
.deepdive-slide { position: relative; }

.milestone-slide::before,
.deepdive-slide::before {
  content: "";
  position: absolute;
  top: 80px;
  bottom: 100px;
  left: 60px;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-bright));
  border-radius: 2px;
  opacity: 0.55;
}

.deepdive-slide::before {
  background: repeating-linear-gradient(
    180deg,
    var(--accent-bright) 0 6px,
    transparent 6px 12px
  );
  opacity: 0.7;
}

.milestone-tag,
.deepdive-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  width: max-content;
  margin: 0;
}

.milestone-tag {
  background: rgba(47, 151, 166, 0.14);
  border: 1px solid rgba(47, 151, 166, 0.40);
  color: var(--accent-bright);
}

.milestone-tag.crit {
  background: var(--warn-soft);
  border-color: var(--warn-line);
  color: var(--warn);
}

.deepdive-tag {
  background: rgba(95, 208, 224, 0.08);
  border: 1px dashed rgba(70, 188, 205, 0.55);
  color: var(--accent-bright);
}


/* ---------- 5.9 Compare Card ---------- */
.compare-card {
  background: linear-gradient(160deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
}

.compare-tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--ink-mute);
  background: rgba(255,255,255,0.04);
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  width: max-content;
}
.compare-tag.accent {
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid rgba(47,151,166,0.25);
}

.compare-quote {
  font-size: 1.25rem; color: var(--ink);
  font-weight: 600; line-height: 1.35;
  font-style: italic;
}


/* ---------- 5.10 Roadmap Grid ---------- */
.roadmap-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; flex: 1; min-height: 0;
}

.roadmap-card {
  background: linear-gradient(160deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 16px;
}

.roadmap-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
}

.roadmap-tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--accent-bright);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: 0.08em;
  width: max-content;
}

.roadmap-card h3 { font-size: 1.3rem; margin: 0; }
.roadmap-card p { font-size: 0.95rem; line-height: 1.55; }


/* ---------- 5.11 Metric Grid ---------- */
.metric-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; flex: 1; min-height: 0;
}

.metric {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
}

.metric::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 3px; width: 40px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  border-radius: 0 0 3px 0;
}

.metric-label {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--accent-bright); text-transform: uppercase; letter-spacing: 0.10em;
}

.metric-value { font-size: 1.0rem; color: var(--ink); line-height: 1.35; }


/* ---------- 5.12 Dojo Format ---------- */
.dojo-format { display: flex; gap: 12px; flex-wrap: wrap; }

.format-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  font-family: var(--font-mono); font-size: 0.88rem;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
}

.format-item span {
  color: var(--accent-bright);
  text-transform: uppercase;
  font-size: 0.68rem; letter-spacing: 0.10em;
}


/* ---------- 5.12b CSS Roadmap (Gantt) ---------- */
/*
   Custom Gantt-like timeline. Better-controlled than Mermaid Gantt.

   <div class="cssgantt" style="--cols: 20;">
     <div class="cssgantt-axis">
       <span style="--col:1; --span:3;">Q2 '26</span>
       <span style="--col:4; --span:3;">Q3 '26</span>
       ...
     </div>
     <div class="cssgantt-section">Milestones</div>
     <div class="cssgantt-row">
       <div class="cssgantt-label">M01 · PoC</div>
       <div class="cssgantt-track">
         <div class="cssgantt-bar active" style="--col:1; --span:3;">May–Jul</div>
       </div>
     </div>
     ...
   </div>
*/
.cssgantt {
  display: grid;
  grid-template-columns: 280px 1fr;
  column-gap: 16px;
  row-gap: 4px;
  align-items: center;
  font-family: var(--font-mono);
  flex: 1;
  min-height: 0;
  align-content: start;
}

.cssgantt-axis {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(var(--cols, 20), 1fr);
  font-size: 0.7rem;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.cssgantt-axis span {
  grid-column: var(--col) / span var(--span, 3);
  padding-left: 6px;
  border-left: 1px solid var(--line-soft);
}
.cssgantt-axis span:first-child { border-left: none; padding-left: 0; }

.cssgantt-section {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 14px 0 4px;
  border-top: 1px dashed var(--line-soft);
  margin-top: 6px;
}
.cssgantt-section:first-of-type { border-top: none; margin-top: 0; padding-top: 4px; }

.cssgantt-label {
  font-size: 0.85rem;
  color: var(--ink);
  padding: 4px 12px 4px 0;
  text-align: right;
  border-right: 2px solid var(--line);
  line-height: 1.3;
}

.cssgantt-track {
  display: grid;
  grid-template-columns: repeat(var(--cols, 20), 1fr);
  align-items: center;
  background-image: linear-gradient(to right, var(--line-soft) 1px, transparent 1px);
  background-size: calc(100% / var(--cols, 20)) 100%;
  height: 28px;
}

.cssgantt-bar {
  grid-column: var(--col) / span var(--span);
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  border-radius: 4px;
  height: 18px;
  padding: 0 10px;
  font-size: 0.72rem;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  letter-spacing: 0.02em;
  box-shadow: 0 0 12px rgba(47, 151, 166, 0.25);
}

.cssgantt-bar.active {
  background: linear-gradient(90deg, var(--accent-bright), var(--accent-glow));
  box-shadow: 0 0 16px rgba(95, 208, 224, 0.40);
  color: var(--bg);
  font-weight: 600;
}

.cssgantt-bar.crit {
  background: linear-gradient(90deg, var(--warn), #FF9933);
  color: var(--bg);
  font-weight: 600;
  box-shadow: 0 0 12px var(--warn-line);
}

.cssgantt-bar.cont {
  background: var(--accent-line);
  border: 1px dashed rgba(70, 188, 205, 0.6);
  color: var(--ink-dim);
  box-shadow: none;
}


/* ---------- 5.13 Mermaid Host ---------- */
.mermaid-host {
  display: flex; align-items: center; justify-content: center;
  flex: 1; min-height: 0; width: 100%;
}

.mermaid {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
}

.mermaid svg {
  max-width: 100%;
  max-height: 600px;
  height: auto !important;
}

.mermaid-host.compact svg { max-height: 460px; }

/* Zoomable mermaid — pairs with svg-pan-zoom. Fills container, lets
   the pan-zoom library handle scale. Controls (built-in icons) sit
   in the lower-left of the SVG. */
.mermaid-host.zoomable {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 26, 35, 0.4);
  overflow: hidden;
  min-height: 600px;
}

.mermaid-host.zoomable .mermaid {
  width: 100%;
  height: 100%;
  display: block;
}

.mermaid-host.zoomable .mermaid svg {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
}

/* svg-pan-zoom control icons — match dark theme */
.mermaid-host.zoomable .svg-pan-zoom-control {
  fill: var(--accent-bright);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.mermaid-host.zoomable .svg-pan-zoom-control:hover { opacity: 1; }
.mermaid-host.zoomable .svg-pan-zoom-control-background { fill: var(--bg-card); }

.mermaid .nodeLabel { color: var(--ink) !important; font-family: var(--font-sans) !important; }
.mermaid .edgeLabel { background: var(--bg) !important; color: var(--ink-dim) !important; }


/* ---------- 6. FOOTER BRAND ---------- */
.footer-brand {
  position: fixed;
  bottom: 16px; left: 24px;
  z-index: 30;
  display: flex; align-items: center; gap: 12px;
  opacity: 0.55; pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
}

.footer-brand img { height: 26px; opacity: 0.9; }


/* reveal progress + slide number */
.reveal .progress { height: 3px; background: rgba(255, 255, 255, 0.05); }
.reveal .progress span { background: linear-gradient(90deg, var(--accent), var(--accent-bright)); }
.reveal .controls { color: var(--accent-bright); }
.reveal .slide-number {
  background: var(--scrim);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 6px 10px;
  border-radius: 6px;
  letter-spacing: 0.10em;
}

::selection { background: var(--accent); color: white; }
