/**
 * Shared styles for the "Knowledge Graphs for AECO" 6-day course decks.
 * Layered on top of dist/theme/qaecy.css — only adds, never overrides the theme.
 */

/* ── Day badge on the title slide ───────────────────────────────── */
.day-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-family: monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0d5be9;
  border: 1px solid rgba(13, 91, 233, 0.35);
  border-radius: 2rem;
  padding: 0.3em 1em;
  margin-bottom: 1.2rem;
}

/* ── Numbered learning objectives ───────────────────────────────── */
.reveal .objectives {
  list-style: none;
  margin-left: 0;
  text-align: left;
}
.reveal .objectives li {
  font-size: 0.75em;
  line-height: 1.45;
  margin-bottom: 0.7rem;
  padding-left: 2.4rem;
  position: relative;
}
.reveal .objectives li::before {
  content: counter(list-item);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.6rem;
  height: 1.6rem;
  line-height: 1.6rem;
  text-align: center;
  border-radius: 50%;
  background: #e7efff;
  color: #0d5be9;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ── Generic card grid (2, 3 or 4 up) ───────────────────────────── */
.card-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.4rem;
  text-align: left;
}
.card-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.card-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.card-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.card {
  background: #f4f6fa;
  border: 1px solid #dde3ec;
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
}
.card .card-title {
  font-size: 0.6em;
  font-weight: 600;
  color: #0d5be9;
  margin-bottom: 0.45rem;
}
.card p,
.card li {
  font-size: 0.52em;
  line-height: 1.45;
  margin: 0;
  opacity: 0.85;
}
.card .card-meta {
  font-size: 0.46em;
  font-family: monospace;
  opacity: 0.65;
}
.card.centered {
  text-align: center;
}
.card.accent {
  border: none;
  border-top: 3px solid #0d5be9;
  border-radius: 0 0 0.5rem 0.5rem;
}
.card.warn {
  background: #ffe9e2;
  border-color: #e8663d;
}
.card.warn .card-title {
  color: #a8452a;
}
.card.good {
  background: #e7efff;
  border-color: #0d5be9;
}

/* ── The four-systems radiator story (Day 1) ────────────────────── */
.system-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 1.6rem 0 0.8rem 0;
}
.system-card {
  background: #f4f6fa;
  border: 1px solid #dde3ec;
  border-radius: 0.5rem;
  padding: 0.9rem 0.6rem;
  text-align: center;
}
.system-card .system-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.35rem;
}
.system-card .system-name {
  font-size: 0.62em;
  font-weight: 600;
  color: #0d5be9;
  display: block;
  margin-bottom: 0.3rem;
}
.system-card .system-id {
  font-size: 0.5em;
  font-family: monospace;
  opacity: 0.65;
  display: block;
}

/* ── 🔧 Persona module hook ─────────────────────────────────────── */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
  text-align: left;
}
.persona-card {
  background: #f4f6fa;
  border-top: 3px solid #0d5be9;
  border-radius: 0 0 0.5rem 0.5rem;
  padding: 0.9rem 1rem;
}
.persona-card .persona-name {
  font-size: 0.62em;
  font-weight: 600;
  color: #0d5be9;
  margin-bottom: 0.45rem;
}
.persona-card p {
  font-size: 0.55em;
  line-height: 1.45;
  margin: 0;
  opacity: 0.85;
}

/* ── Exercise / lab callout ─────────────────────────────────────── */
.callout {
  background: #f4f6fa;
  border-left: 4px solid #0d5be9;
  border-radius: 0 0.4rem 0.4rem 0;
  padding: 1rem 1.3rem;
  text-align: left;
  margin-top: 1.2rem;
}
.callout p,
.callout li {
  font-size: 0.62em;
  line-height: 1.5;
}
.callout p:first-child {
  margin-top: 0;
  margin-bottom: 0.6rem;
}
.callout ol,
.callout ul {
  margin-top: 0;
}
.callout p:last-child {
  margin-bottom: 0;
}
/* 🖥️ lab variant — visually distinct from the paper exercises */
.callout.lab {
  border-left-color: #e8663d;
  background: #fdf3ef;
}

/* ── Aha! moment ────────────────────────────────────────────────── */
.aha {
  font-size: 1.15em;
  font-weight: 600;
  color: #0d5be9;
  line-height: 1.35;
}

/* ── Big single figure (silo score, scale statements) ───────────── */
.tally {
  font-size: 3.2em;
  font-weight: 700;
  color: #e8663d;
  line-height: 1;
}
.stat {
  font-size: 2.6em;
  font-weight: 700;
  color: #0d5be9;
  line-height: 1.05;
}
.stat-sub {
  font-size: 0.66em;
  opacity: 0.8;
}

/* ── App-centric vs. data-centric diagrams (Day 1) ──────────────── */
.centric {
  margin-top: 1.4rem;
}
.app-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.app-box {
  background: #f4f6fa;
  border: 1px solid #dde3ec;
  border-radius: 0.5rem;
  padding: 0.7rem 0.6rem;
}
.app-box .app-name {
  font-size: 0.6em;
  font-weight: 600;
  color: #0d5be9;
  margin-bottom: 0.55rem;
}
.app-box .app-layer {
  font-size: 0.44em;
  border-radius: 0.3rem;
  padding: 0.55rem 0.3rem;
  background: #fff;
  border: 1px solid #b8bfcc;
  color: #666;
}
.app-box .app-layer.own-data {
  margin-top: 0.4rem;
  background: #ffe9e2;
  border-color: #e8663d;
  color: #a8452a;
  font-weight: 600;
}
.app-box.slim {
  padding: 0.9rem 0.6rem;
}
.app-box.slim .app-name {
  margin-bottom: 0;
}
.connectors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  height: 2.2rem;
}
.connectors span {
  display: block;
  width: 2px;
  height: 100%;
  margin: 0 auto;
  background: #0d5be9;
}
.shared-layer {
  background: #e7efff;
  border: 2px solid #0d5be9;
  border-radius: 0.6rem;
  padding: 1.1rem 1rem;
}
.shared-layer .shared-title {
  font-size: 0.62em;
  font-weight: 600;
  color: #0d5be9;
}
.shared-layer .shared-sub {
  font-size: 0.46em;
  color: #3a63a8;
  margin-top: 0.4rem;
}
.centric-caption {
  font-size: 0.46em;
  opacity: 0.7;
  margin-top: 1rem;
}
.centric-caption.warn {
  color: #a8452a;
  opacity: 1;
  font-weight: 600;
}

/* ── Subject–Predicate–Object strip (Day 2) ─────────────────────── */
.spo-strip {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.6rem;
}
.spo-cell {
  flex: 1;
  border-radius: 0.5rem;
  padding: 0.9rem 0.7rem;
  background: #f4f6fa;
  border: 1px solid #dde3ec;
}
.spo-cell .spo-role {
  font-size: 0.42em;
  font-family: monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0d5be9;
  margin-bottom: 0.4rem;
}
.spo-cell .spo-value {
  font-size: 0.58em;
  font-weight: 600;
}
.spo-arrow {
  align-self: center;
  color: #0d5be9;
  font-size: 0.8em;
}

/* ── TBox / ABox two-column contrast (Day 2) ────────────────────── */
.contrast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1.4rem;
  text-align: left;
}
.contrast-col {
  background: #f4f6fa;
  border-radius: 0.5rem;
  padding: 1rem 1.1rem;
}
.contrast-col .contrast-label {
  font-size: 0.55em;
  font-family: monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d5be9;
  margin-bottom: 0.3rem;
}
.contrast-col .contrast-analogy {
  font-size: 0.62em;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.contrast-col p {
  font-size: 0.52em;
  line-height: 1.45;
  margin: 0.35rem 0;
  opacity: 0.85;
}
.contrast-col code {
  font-size: 0.9em;
}

/* ── Numbered layer stack (Day 5 — Cue's five layers) ───────────── */
.layer-stack {
  margin-top: 1.2rem;
  text-align: left;
}
.layer-row {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  background: #f4f6fa;
  border-left: 3px solid #0d5be9;
  border-radius: 0 0.3rem 0.3rem 0;
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.5rem;
}
.layer-row .layer-num {
  font-size: 0.5em;
  font-family: monospace;
  font-weight: 700;
  color: #0d5be9;
  min-width: 1.4rem;
}
.layer-row .layer-name {
  font-size: 0.58em;
  font-weight: 600;
  min-width: 9rem;
}
.layer-row .layer-desc {
  font-size: 0.5em;
  opacity: 0.8;
  line-height: 1.4;
}

/* ── Object Type Library worksheet grid (Day 5/6) ───────────────── */
.otl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin-top: 1.3rem;
}
.otl-card {
  border: 2px dashed #b8bfcc;
  border-radius: 0.4rem;
  min-height: 4.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5em;
  color: #0d5be9;
  font-weight: 600;
  text-align: center;
  padding: 0.4rem;
}
.otl-card.filled {
  border-style: solid;
  border-color: #0d5be9;
  background: #e7efff;
}

/* ── Horizontal flow strip (Day 6 recap) ────────────────────────── */
.flow-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}
.flow-step {
  background: #f4f6fa;
  border: 1px solid #dde3ec;
  border-radius: 0.4rem;
  padding: 0.6rem 0.8rem;
  font-size: 0.46em;
  font-weight: 600;
  color: #0d5be9;
}
.flow-arrow {
  color: #b8bfcc;
  font-size: 0.5em;
}

/* ── Source-attribution caption bar ─────────────────────────────────
   Lives in .reveal outside .slides; filled in by a `.neptune cap:after`
   style scoped to a slide's data-state. Copied from knowledge-graphs.html. */
cap {
  position: absolute;
  bottom: 12vh;
  left: 0;
  width: 100%;
  z-index: 500;
  text-align: center;
  font-size: 1.2vw;
  font-style: italic;
  color: #65625e;
  font-family: "Courier New", Courier, monospace;
}

/* ── Ontology term + property lists (Days 5–6, from schema.html) ─────
   The source used a white overlay tuned for a dark deck; on the light
   qaecy theme it was invisible, so these use a light tint instead. */
code.ont {
  font-size: 0.85rem;
  background: #e7efff;
  color: #0d5be9;
  border-radius: 0.2rem;
  padding: 0.05em 0.4em;
}
.prop-list {
  font-size: 0.95rem;
  line-height: 1.9rem;
  text-align: left;
  margin: 0 auto;
  width: 80%;
}
.prop-list code {
  font-size: 0.8rem;
  background: #f4f6fa;
  border-radius: 0.2rem;
  padding: 0.05em 0.4em;
}

/* ── Source / document type tags (from offering.html) ───────────── */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 1.4rem;
}
.tag {
  background: #f4f6fa;
  border: 1px solid #dde3ec;
  border-radius: 0.3rem;
  padding: 0.25em 0.75em;
  font-size: 0.5em;
}

/* ── Pillar overview grid (from offering.html, Studio de-emphasised) ── */
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.pillar-card {
  background: #f4f6fa;
  border: 1px solid #dde3ec;
  border-radius: 0.5rem;
  padding: 1.1rem 1.3rem;
  text-align: left;
}
.pillar-card .pillar-number {
  font-size: 0.7rem;
  font-family: monospace;
  opacity: 0.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.pillar-card .pillar-name {
  font-size: 0.62em;
  font-weight: 600;
  color: #0d5be9;
  margin-bottom: 0.4rem;
}
.pillar-card p {
  font-size: 0.5em;
  line-height: 1.45;
  opacity: 0.75;
  margin: 0;
}
/* Out of scope for this course — kept visible but clearly parked */
.pillar-card.out-of-scope {
  opacity: 0.32;
  border-style: dashed;
}
.pillar-card.out-of-scope .pillar-name {
  color: #666;
}
