/* Data Collection and Storage no Inteli: folha da disciplina com a paleta e as fontes do Inteli
   (roxo #2e2640, roxo claro #2e2640, azul #2e2640, Inter e JetBrains Mono). */
/* ==========================================================================
   dc-slides.css  -  deck da disciplina Data Collection and Storage (Inteli)
   Editorial / technical. High contrast, square-leaning, responsive.
   Used by every lecture slide deck. Content-specific animation and diagram
   styles (e.g. Aula 02 SDD loop) live inside the aula HTML file itself.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Typography imports
   -------------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Surfaces */
  --deck-bg:        #ffffff;   /* warm off-white page */
  --deck-surface:   #f3f2f4;   /* subtle paper fill for cards */
  --deck-surface-2: #e9e7ec;
  --deck-panel:     #ffffff;   /* clean white for main shell + panels */
  --deck-line:      #dbdfe3;   /* neutral 1px rule */
  --deck-line-soft: #e6eaeb;   /* even softer rule (table body) */

  /* Ink */
  --deck-border:    #2e2640;
  --deck-text:      #2e2640;
  --deck-muted:     #4d475d;
  --deck-accent:    #2e2640;

  /* Code */
  --deck-code-bg:   #2e2640;
  --deck-code-fg:   #f3f2f4;
  --deck-code-dim:  #a19da9;

  /* Typography */
  --font-sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* --------------------------------------------------------------------------
   2. Base reset & body
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: var(--deck-bg);
  color: var(--deck-text);
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  font-feature-settings: 'ss01', 'cv02', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a         { color: var(--deck-accent); }
a:hover   { opacity: 0.8; }
a:focus   { outline: 2px solid var(--deck-accent); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   3. Slide container & navigation system
   -------------------------------------------------------------------------- */

.slide-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.slide {
  width: 100%;
  height: 100%;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  flex-direction: column;
  overflow-y: auto;
  padding-bottom: 72px; /* space for fixed footer */
}

.slide.active {
  display: flex;
  animation: slideIn 0.45s cubic-bezier(.22, .61, .36, 1);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   4. Fixed navigation footer
   -------------------------------------------------------------------------- */

.slide-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(243, 245, 245, 0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid var(--deck-line);
  z-index: 100;
  flex-wrap: wrap;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--deck-accent);
  border-radius: 4px;
  background: var(--deck-accent);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s ease;
}

.nav-buttons button:hover    { background: #2e2640; }
.nav-buttons button:active   { background: #000000; }
.nav-buttons button:disabled { opacity: 0.3; cursor: not-allowed; }

.copy-button {
  padding: 10px 14px;
  border: 1px solid var(--deck-border);
  border-radius: 4px;
  color: var(--deck-panel);
  background: var(--deck-accent);
  font: 600 .72em/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
}

.copy-button:hover { background: #2e2640; }

.slide-counter {
  font-family: var(--font-mono);
  font-size: 0.78em;
  font-weight: 500;
  color: var(--deck-muted);
  white-space: nowrap;
  user-select: none;
}

.fullscreen-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--deck-line);
  border-radius: 4px;
  background: var(--deck-panel);
  color: var(--deck-text);
  font-size: 0.9em;
  cursor: pointer;
  transition: background 0.15s ease;
}

.fullscreen-btn:hover { background: var(--deck-surface); }

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.back-home, .material-link {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--deck-line);
  border-radius: 4px;
  background: var(--deck-panel);
  color: var(--deck-text);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.15s ease;
}

.back-home:hover     { background: var(--deck-surface); }

.material-link {
  background: var(--deck-accent);
  border-color: var(--deck-accent);
  color: #ffffff;
}

.material-link:hover { background: #2e2640; }

/* --------------------------------------------------------------------------
   5. Internal slide layout  -  .deck-shell (main content wrapper)
   -------------------------------------------------------------------------- */

.deck-shell {
  /* 640px ideal; em telas baixas (1280x720) desconta margens (44px) e o
     espaço do rodapé fixo (72px) para não gerar rolagem em slide vazio. */
  min-height: min(640px, calc(100vh - 116px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 44px 52px;
  background: var(--deck-panel);
  border: 1px solid var(--deck-line);
  border-radius: 4px;
  box-shadow:
    var(--ds-sombra-2);
  margin: 22px;
  position: relative;
  overflow: hidden;
}

/* Thin editorial accent in top-left of every shell */
.deck-shell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 140px;
  background: var(--deck-accent);
}

/* Decorative giant numeral on cover slides.
   Opt-in by placing data-aula-number="01" on the shell in slide 1. */
.deck-shell[data-aula-number]::after {
  content: attr(data-aula-number);
  position: absolute;
  bottom: -70px;
  right: -30px;
  font-family: var(--font-mono);
  font-size: 22em;
  font-weight: 700;
  color: var(--deck-accent);
  opacity: 0.045;
  letter-spacing: -0.05em;
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
}

/* --------------------------------------------------------------------------
   6. Kicker  -  editorial mono label with short rule
   -------------------------------------------------------------------------- */

.deck-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deck-muted);
  margin-bottom: 18px;
}

.deck-kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--deck-accent);
  display: inline-block;
}

/* --------------------------------------------------------------------------
   7. Title, year, subtitle, meta, summary
   -------------------------------------------------------------------------- */

.deck-title {
  margin: 0 0 18px;
  font-size: 2.55em;
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 28ch;
}

/* Fora da capa, o título ocupa a largura útil do shell para caber em uma
   linha na projeção (títulos curtos e descritivos, ver CLAUDE.md). */
.deck-shell:not([data-aula-number]) .deck-title { max-width: 44ch; }

.deck-year {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 4em;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--deck-accent);
}

.deck-meta {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 0.82em;
  color: var(--deck-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.deck-subtitle {
  margin-top: 28px;
  max-width: 52ch;
  font-size: 1.15em;
  line-height: 1.5;
  font-weight: 400;
  color: var(--deck-text);
}

.deck-summary {
  max-width: 62ch;
  font-size: 1.08em;
  line-height: 1.55;
  color: #2e2640;
}

.deck-note {
  color: var(--deck-muted);
  font-size: 1em;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   8. Grid & cards
   -------------------------------------------------------------------------- */

.deck-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.deck-card {
  padding: 24px 26px;
  background: var(--deck-surface);
  border: 1px solid var(--deck-line);
  border-radius: 4px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.deck-card:hover {
  transform: translateY(-1px);
  border-color: #a19da9;
  box-shadow: var(--ds-sombra-1);
}

.deck-card h3 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--deck-line);
  font-family: var(--font-mono);
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--deck-text);
}

.deck-card ul, .deck-card ol {
  margin: 0;
  padding-left: 18px;
  font-size: 0.96em;
}

.deck-card li {
  margin-bottom: 8px;
  line-height: 1.45;
  color: #2e2640;
}

/* --------------------------------------------------------------------------
   9. Table  -  editorial, two heavy rules, soft body rules
   -------------------------------------------------------------------------- */

.deck-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92em;
  line-height: 1.45;
}

.deck-table th,
.deck-table td {
  border: 0;
  border-bottom: 1px solid var(--deck-line-soft);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.deck-table thead th {
  border-top: 2px solid var(--deck-accent);
  border-bottom: 2px solid var(--deck-accent);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.78em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--deck-muted);
}

.deck-table tbody tr:last-child td {
  border-bottom: 2px solid var(--deck-accent);
}

.deck-table tbody tr { transition: background .15s ease; }
.deck-table tbody tr:hover td { background: var(--deck-surface); }

.deck-table code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--deck-surface);
  padding: 2px 6px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   10. Columns (2-column layout)
   -------------------------------------------------------------------------- */

.deck-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* --------------------------------------------------------------------------
   11. Callout  -  bordered highlight with left accent
   -------------------------------------------------------------------------- */

.deck-callout {
  padding: 22px 28px;
  border: 1px solid var(--deck-line);
  border-left: 3px solid var(--deck-accent);
  border-radius: 4px;
  background: var(--deck-surface);
  font-size: 1em;
  line-height: 1.5;
}

.deck-callout strong:first-child {
  display: block;
  margin-bottom: 10px;
  font-size: 1.05em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   12. Panel  -  plain bordered box
   -------------------------------------------------------------------------- */

.deck-panel {
  padding: 24px 26px;
  border: 1px solid var(--deck-line);
  border-radius: 4px;
  background: var(--deck-panel);
  font-size: 1em;
  line-height: 1.5;
}

.deck-panel > strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.04em;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.deck-panel ul, .deck-panel ol {
  margin: 0;
  padding-left: 22px;
}

.deck-panel li { margin-bottom: 8px; }

/* Method diagrams and quality gates shared by Data Visualization decks. */
.method-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  counter-reset: method-step;
}

.method-step {
  position: relative;
  min-height: 148px;
  padding: 20px 18px;
  border: 1px solid var(--deck-line);
  border-radius: 4px;
  background: var(--deck-panel);
}

.method-step::before {
  counter-increment: method-step;
  content: "0" counter(method-step);
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: .72em;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--deck-muted);
}

.method-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -18px;
  z-index: 2;
  width: 24px;
  text-align: center;
  background: var(--deck-bg);
  font-family: var(--font-mono);
  font-weight: 700;
}

.method-step strong,
.quality-gate strong { display: block; margin-bottom: 8px; }

.method-step span,
.quality-gate span {
  display: block;
  color: var(--deck-muted);
  font-size: .78em;
  line-height: 1.45;
}

/* Com mais de cinco etapas o fluxo quebra em duas linhas: a seta da última
   coluna apontaria para fora do shell. */
.method-step:nth-child(5n)::after { content: none; }

.method-step.is-current {
  border-color: var(--deck-accent);
  box-shadow: inset 0 0 0 2px var(--deck-accent);
}

.quality-gates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.quality-gate {
  padding: 18px 20px;
  border-top: 3px solid var(--deck-accent);
  background: var(--deck-surface);
}

.standard-map {
  display: grid;
  grid-template-columns: minmax(180px, .75fr) minmax(0, 1.6fr);
  gap: 18px;
  align-items: stretch;
}

.standard-map > strong {
  display: grid;
  place-items: center;
  padding: 26px;
  border: 1px solid var(--deck-accent);
  background: var(--deck-accent);
  color: #fff;
  text-align: center;
  font-family: var(--font-mono);
  line-height: 1.5;
}

.standard-principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.standard-principles span {
  padding: 14px 16px;
  border: 1px solid var(--deck-line);
  background: var(--deck-panel);
  font-size: .82em;
}

.severity-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--deck-line);
}

.severity-scale > div {
  padding: 16px 12px;
  border-right: 1px solid var(--deck-line);
  text-align: center;
}

.severity-scale > div:last-child { border-right: 0; }
.severity-scale strong { display: block; font-family: var(--font-mono); font-size: 1.35em; }
.severity-scale span { color: var(--deck-muted); font-size: .72em; }

/* --------------------------------------------------------------------------
   13. Placeholder (asymmetric 2-column layout)
   -------------------------------------------------------------------------- */

.deck-placeholder {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

/* --------------------------------------------------------------------------
   14. Logos
   -------------------------------------------------------------------------- */

.deck-logo-full {
  display: block;
  height: 44px;
  width: auto;
  margin-bottom: 26px;
}

.slide-logo-mini {
  position: fixed;
  bottom: 72px; /* above the navigation footer */
  left: 14px;
  height: 28px;
  width: auto;
  opacity: 0.45;
  z-index: 99;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   15. deck-footer  -  in-slide bottom info bar (distinct from .slide-footer)
   -------------------------------------------------------------------------- */

.deck-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--deck-line);
  font-family: var(--font-mono);
  font-size: 0.72em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--deck-muted);
}

.deck-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.deck-link {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--deck-line);
  border-radius: 4px;
  background: var(--deck-panel);
  color: var(--deck-accent);
  text-decoration: none;
  font-weight: 600;
}

.deck-link:hover,
.deck-link:focus { background: var(--deck-surface); }

/* --------------------------------------------------------------------------
   16. Code  -  dark editorial block with subtle "terminal chrome"
   -------------------------------------------------------------------------- */

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--deck-surface);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--deck-line-soft);
}

pre {
  position: relative;
  margin: 14px 0 0;
  padding: 28px 24px 22px !important;
  border: 1px solid #2e2640;
  border-radius: 6px !important;
  background: var(--deck-code-bg) !important;
  color: var(--deck-code-fg) !important;
  font-family: var(--font-mono) !important;
  font-size: 0.88em !important;
  line-height: 1.65 !important;
  overflow-x: auto;
  box-shadow: var(--ds-sombra-2);
}

pre::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4d475d;
  box-shadow: 12px 0 0 #4d475d, 24px 0 0 #4d475d;
}

pre code {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
   17. Utility: keyboard hint
   -------------------------------------------------------------------------- */

.keyboard-hint {
  position: fixed;
  bottom: 62px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 0.65em;
  color: var(--deck-muted);
  opacity: 0.7;
  pointer-events: none;
  z-index: 101;
}

/* --------------------------------------------------------------------------
   18. Print styles
   -------------------------------------------------------------------------- */

@media print {
  .slide-footer,
  .slide-logo-mini,
  .keyboard-hint { display: none !important; }

  .slide {
    display: flex !important;
    position: relative !important;
    page-break-after: always;
    height: auto !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }

  .slide-container {
    overflow: visible !important;
    height: auto !important;
  }

  .deck-shell {
    box-shadow: none !important;
  }
}

/* --------------------------------------------------------------------------
   19. Responsive  -  mobile / small screens
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  html, body { font-size: 17px; }

  .deck-grid,
  .deck-placeholder,
  .deck-columns { grid-template-columns: 1fr; }

  .method-flow,
  .quality-gates,
  .standard-principles { grid-template-columns: 1fr; }
  .method-step { min-height: 0; }
  .method-step:not(:last-child)::after { content: "↓"; top: auto; right: 50%; bottom: -19px; }
  .standard-map { grid-template-columns: 1fr; }
  .severity-scale { grid-template-columns: 1fr; }
  .severity-scale > div { border-right: 0; border-bottom: 1px solid var(--deck-line); }

  .deck-shell {
    min-height: auto;
    padding: 26px 22px;
    margin: 12px;
    box-shadow: var(--ds-sombra-1);
  }

  .deck-title { font-size: 1.8em; }
  .deck-year  { font-size: 2.8em; }

  .deck-table    { font-size: 0.84em; }
  .deck-callout  { font-size: 0.94em; padding: 18px 22px; }

  pre { padding: 22px 16px 16px !important; font-size: 0.8em !important; }

  .slide-footer  { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
  .nav-wrapper   { gap: 8px; }
  .nav-buttons button { min-width: 30px; height: 28px; padding: 0 8px; font-size: 0.68em; }
  .slide-counter { font-size: 0.72em; }
  .footer-links  { gap: 6px; }

  .back-home,
  .material-link { padding: 5px 10px; font-size: 0.66em; }

  .slide-logo-mini { height: 22px; bottom: 58px; }
  .slide { padding-bottom: 56px; }

  .deck-shell[data-aula-number]::after {
    font-size: 14em;
    bottom: -40px;
    right: -20px;
  }
}

@media (max-width: 600px) {
  /* No celular a tabela rola dentro do slide em vez de ser cortada pelo shell. */
  .deck-table { display: block; overflow-x: auto; }
}

@media (max-width: 480px) {
  html, body { font-size: 15px; }

  .deck-shell { padding: 16px 14px; margin: 6px; gap: 16px; }
  .deck-title { font-size: 1.45em; }
  .deck-year  { font-size: 2.2em; }
  .deck-kicker { font-size: 0.68em; }

  .slide-footer { padding: 6px 8px; }
}

/* --------------------------------------------------------------------------
   Lista de etapas numeradas — compartilhada pelos decks de laboratório.
   -------------------------------------------------------------------------- */

.deck-steps {
  counter-reset: dstep;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.deck-steps > li {
  counter-increment: dstep;
  position: relative;
  padding-left: 42px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.deck-steps > li::before {
  content: counter(dstep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--deck-muted);
  border: 1px solid var(--deck-line);
  border-radius: 4px;
  padding: 2px 7px;
  background: var(--deck-panel);
}

/* Bloco de esquema/diagrama em texto monoespaçado, tema escuro. */
.deck-schema {
  font-family: var(--font-mono);
  font-size: 0.82em;
  line-height: 1.75;
  white-space: pre;
  background: var(--deck-code-bg);
  color: var(--deck-code-fg);
  border-radius: 6px;
  padding: 26px 24px 22px;
  margin: 16px 0 0;
  overflow-x: auto;
  box-shadow: var(--ds-sombra-2);
}

/* Variantes de bloco de código para comandos longos no slide.
   is-compact reduz a fonte; is-wrap quebra linhas longas (URLs, prompts)
   em vez de exigir rolagem horizontal durante a projeção. */
pre.is-compact { font-size: 0.74em !important; }
pre.is-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Variante compacta de shell: mais conteúdo por slide sem quebrar a escala. */
.deck-shell.is-dense .deck-title { font-size: 2.1em; }
.deck-shell.is-dense .deck-summary { font-size: 0.95em; }
.deck-shell.is-dense .deck-card { padding: 18px 20px; }
.deck-shell.is-dense .deck-table th,
.deck-shell.is-dense .deck-table td { padding: 7px 10px; font-size: 0.86em; }

/* Modelos comparativos de gráficos — galeria didática da Aula 03. */
.chart-model {
  display: grid;
  grid-template-columns: minmax(280px, 1.12fr) minmax(280px, 0.88fr);
  gap: 22px;
  align-items: stretch;
}

.chart-frame {
  min-height: 300px;
  padding: 18px;
  background: var(--deck-surface);
  border: 1px solid var(--deck-line);
  border-radius: 4px;
}

.chart-frame svg { display: block; width: 100%; height: 100%; min-height: 264px; }
.chart-frame .axis { stroke: var(--deck-text); stroke-width: 1.2; }
.chart-frame .gridline { stroke: var(--deck-line); stroke-width: 1; stroke-dasharray: 3 4; }
.chart-frame .mark { fill: var(--deck-text); }
.chart-frame .mark-light { fill: var(--deck-surface-2); stroke: var(--deck-text); stroke-width: 1.2; }
.chart-frame .series { fill: none; stroke: var(--deck-text); stroke-width: 3; }
.chart-frame .series-light { fill: none; stroke: var(--deck-muted); stroke-width: 2; stroke-dasharray: 5 4; }
.chart-frame text { fill: var(--deck-muted); font-family: var(--font-mono); font-size: 11px; }
.chart-frame .label-strong { fill: var(--deck-text); font-weight: 700; }

.chart-guide {
  display: grid;
  grid-template-rows: repeat(4, auto);
  border-top: 2px solid var(--deck-border);
  border-bottom: 1px solid var(--deck-border);
}

.chart-guide div { padding: 12px 2px; border-bottom: 1px solid var(--deck-line-soft); }
.chart-guide div:last-child { border-bottom: 0; }
.chart-guide strong { display: block; margin-bottom: 4px; font-family: var(--font-mono); font-size: 0.7em; letter-spacing: 0.1em; text-transform: uppercase; }
.chart-guide span { display: block; font-size: 0.88em; line-height: 1.42; }

.chart-compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.chart-option { padding: 16px; border: 1px solid var(--deck-line); border-radius: 4px; background: var(--deck-panel); }
.chart-option h3 { margin: 0 0 6px; font-family: var(--font-mono); font-size: 0.76em; letter-spacing: 0.08em; text-transform: uppercase; }
.chart-option p { margin: 6px 0 0; font-size: 0.78em; line-height: 1.35; }
.chart-option svg { display: block; width: 100%; height: 148px; background: var(--deck-surface); }

@media (max-width: 900px) {
  .chart-model { grid-template-columns: 1fr; }
  .chart-frame { min-height: 230px; }
  .chart-frame svg { min-height: 200px; }
  .chart-compare { grid-template-columns: 1fr; }
}

/* Par comparativo "como costuma aparecer x versão corrigida" — vieses do artefato, Aula 06 DV. */
.bias-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.bias-frame {
  margin: 0;
  padding: 12px 14px 10px;
  background: var(--deck-panel);
  border: 1px solid var(--deck-line);
  border-radius: 4px;
}

.bias-frame.is-fixed { border-color: var(--deck-accent); box-shadow: inset 0 0 0 1px var(--deck-accent); }
.bias-tag { display: block; margin-bottom: 6px; font-family: var(--font-mono); font-size: 0.66em; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--deck-muted); }
.bias-frame.is-fixed .bias-tag { color: var(--deck-text); }
.bias-frame svg { display: block; width: 100%; height: auto; max-height: 236px; }
.bias-frame svg text { fill: var(--deck-muted); font-family: var(--font-mono); font-size: 11px; }
.bias-frame svg .strong { fill: var(--deck-text); font-weight: 700; }
.bias-frame svg .tile { font-size: 10px; font-weight: 700; }
.bias-frame svg .hero { font-family: var(--font-sans); font-size: 58px; font-weight: 700; }
.bias-frame svg .kpi { fill: var(--deck-text); font-family: var(--font-sans); font-size: 30px; font-weight: 700; }
.bias-frame svg .grid { stroke: var(--deck-line); stroke-width: 1; stroke-dasharray: 3 4; }
.bias-frame svg .axis { stroke: var(--deck-text); stroke-width: 1.2; }
.bias-frame svg .ref { stroke: var(--deck-text); stroke-width: 2.5; stroke-dasharray: 4 3; }
.bias-frame figcaption { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--deck-line-soft); font-size: 0.78em; line-height: 1.4; }
.bias-source { margin: 10px 0 0; font-family: var(--font-mono); font-size: 0.66em; color: var(--deck-muted); }

@media (max-width: 900px) {
  .bias-pair { grid-template-columns: 1fr; }
}

@media (max-height: 800px) {
  .bias-frame svg { max-height: 172px; }
  .bias-frame figcaption { margin-top: 4px; padding-top: 6px; font-size: 0.72em; }
  .deck-shell.is-dense:has(.bias-pair) { gap: 14px; padding-top: 34px; }
}

/* Identidade Inteli */
:root { --inteli-grad: linear-gradient(135deg, #2e2640 0%, #2e2640 100%); }
.deck-kicker, .kicker { color: #2e2640; }
.slide-footer, .material-nav { border-top-color: #2e2640; }
