/* DataFloor Academy — Training Guide Styles */
:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-light: #ccfbf1;
  --electric: #2563eb;
  --electric-light: #dbeafe;
  --green: #16a34a;
  --green-light: #dcfce7;
  --amber: #d97706;
  --amber-light: #fef3c7;
  --red: #dc2626;
  --red-light: #fee2e2;
  --ink: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", "Fira Code", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg-soft);
  line-height: 1.65;
  font-size: 1.05rem;
}

.guide-nav {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(135deg, var(--teal-dark), var(--electric));
  color: #fff; padding: 0.75rem 1.25rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem;
  box-shadow: var(--shadow);
}
.guide-nav a { color: #fff; text-decoration: none; font-weight: 600; opacity: 0.95; }
.guide-nav a:hover { opacity: 1; text-decoration: underline; }
.guide-nav .brand { font-size: 1.15rem; letter-spacing: -0.02em; margin-right: auto; }
.guide-nav .brand span { opacity: 0.85; font-weight: 500; font-size: 0.9rem; }

.wrap {
  max-width: 820px; margin: 0 auto; padding: 2rem 1.25rem 4rem;
}
.wrap-wide { max-width: 960px; }

.hero-cover {
  background: linear-gradient(145deg, #0f766e 0%, #1e40af 55%, #0ea5e9 100%);
  color: #fff; border-radius: var(--radius); padding: 3rem 2rem; margin-bottom: 2rem;
  box-shadow: var(--shadow); text-align: center;
}
.hero-cover h1 { margin: 0 0 0.5rem; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.03em; }
.hero-cover .tagline { font-size: 1.2rem; opacity: 0.95; margin-bottom: 1.5rem; }
.hero-cover .meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.hero-cover .pill {
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.35);
  padding: 0.35rem 0.85rem; border-radius: 999px; font-size: 0.9rem;
}

.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.75rem; margin-bottom: 1.25rem; box-shadow: var(--shadow);
}
.card h2, .card h3 { margin-top: 0; }

h1 { font-size: 2rem; letter-spacing: -0.03em; color: var(--ink); }
h2 { font-size: 1.45rem; color: var(--teal-dark); border-bottom: 2px solid var(--teal-light); padding-bottom: 0.35rem; margin-top: 2.25rem; }
h3 { font-size: 1.2rem; color: var(--electric); margin-top: 1.75rem; }
h4 { font-size: 1.05rem; color: var(--ink); margin-top: 1.25rem; }

p { margin: 0.85rem 0; }
ul, ol { margin: 0.75rem 0; padding-left: 1.35rem; }
li { margin: 0.4rem 0; }
a { color: var(--electric); }

.callout {
  border-radius: var(--radius); padding: 1rem 1.15rem; margin: 1.25rem 0;
  border-left: 5px solid; background: var(--bg-soft);
}
.callout strong { display: block; margin-bottom: 0.25rem; }
.callout.pro-tip { border-color: var(--teal); background: var(--teal-light); }
.callout.safety { border-color: var(--red); background: var(--red-light); }
.callout.mistake { border-color: var(--amber); background: var(--amber-light); }
.callout.on-floor { border-color: var(--electric); background: var(--electric-light); }
.callout.objectives { border-color: var(--green); background: var(--green-light); }

.objectives ul { margin-bottom: 0; }

.quiz {
  background: var(--bg); border: 2px dashed var(--teal); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.quiz h3 { margin-top: 0; color: var(--teal-dark); }
.quiz details { margin: 0.75rem 0; }
.quiz summary { cursor: pointer; font-weight: 600; color: var(--electric); }

.checklist {
  list-style: none; padding-left: 0;
}
.checklist li {
  display: flex; gap: 0.65rem; align-items: flex-start;
  padding: 0.55rem 0.75rem; margin: 0.35rem 0;
  background: var(--bg-soft); border-radius: 8px; border: 1px solid var(--border);
}
.checklist li::before {
  content: "☐"; flex-shrink: 0; font-size: 1.15rem; color: var(--teal);
}

.chapter-nav {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 2px solid var(--border);
}
.chapter-nav a {
  display: inline-block; padding: 0.65rem 1.1rem; border-radius: 8px;
  background: var(--teal); color: #fff; text-decoration: none; font-weight: 600;
}
.chapter-nav a:hover { background: var(--teal-dark); }
.chapter-nav a.secondary { background: var(--bg); color: var(--teal-dark); border: 2px solid var(--teal); }

.toc-list { list-style: none; padding: 0; }
.toc-list li {
  margin: 0.5rem 0; padding: 0.85rem 1rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  display: flex; gap: 1rem; align-items: baseline; transition: box-shadow 0.15s, border-color 0.15s;
}
.toc-list li:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.toc-list .num {
  flex-shrink: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--electric));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.toc-list a { text-decoration: none; color: var(--ink); font-weight: 600; }
.toc-list a:hover { color: var(--teal-dark); }
.toc-list .desc { display: block; font-weight: 400; color: var(--muted); font-size: 0.92rem; margin-top: 0.2rem; }

table {
  width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.95rem;
  background: var(--bg); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
th, td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--teal-dark); color: #fff; font-weight: 600; }
tr:nth-child(even) { background: var(--bg-soft); }

.badge {
  display: inline-block; padding: 0.2rem 0.55rem; border-radius: 6px;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.badge.mod { background: var(--teal-light); color: var(--teal-dark); }

.footer-note {
  margin-top: 3rem; padding: 1.25rem; text-align: center; color: var(--muted);
  font-size: 0.9rem; border-top: 1px solid var(--border);
}

.cert-page {
  max-width: 900px; margin: 2rem auto; padding: 3rem;
  border: 8px double var(--teal); background: #fff;
  text-align: center; box-shadow: var(--shadow);
}
.cert-page h1 { color: var(--teal-dark); font-size: 2.2rem; margin-bottom: 0.25rem; }
.cert-page .subtitle { color: var(--muted); font-size: 1.1rem; }
.cert-page .recipient {
  font-size: 2rem; font-weight: 700; color: var(--ink);
  border-bottom: 2px solid var(--border); display: inline-block;
  min-width: 280px; margin: 1.5rem 0; padding: 0.25rem 1rem;
}
.cert-page .seal {
  width: 90px; height: 90px; margin: 1.5rem auto;
  border-radius: 50%; border: 4px solid var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--teal-dark); font-size: 0.7rem;
  background: var(--teal-light);
}

@media print {
  body { background: #fff; font-size: 11pt; }
  .guide-nav, .chapter-nav a.secondary, .no-print { display: none !important; }
  .wrap { max-width: 100%; padding: 0; }
  .card, .callout, .quiz { box-shadow: none; break-inside: avoid; }
  .hero-cover { background: #0f766e !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; text-decoration: none; }
  h2 { break-after: avoid; }
}

@media (max-width: 640px) {
  .wrap { padding: 1.25rem 1rem 3rem; }
  .hero-cover { padding: 2rem 1.25rem; }
  .toc-list li { flex-direction: column; gap: 0.5rem; }
}

/* Expanded-course components (Nov 2026) */
.callout.scenario { border-color: #0ea5e9; background: #f0f9ff; }
.callout.scenario .tag { display:inline-block; font-size:0.75rem; font-weight:700; text-transform:uppercase; letter-spacing:0.05em; color:#0369a1; margin-bottom:0.2rem; }
.callout.exercise { border-color: var(--electric); background: #fff; border-top: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.callout.exercise details { margin-top: 0.75rem; }
.callout.exercise summary { cursor: pointer; font-weight: 600; color: var(--teal-dark); }
.callout.takeaways { border-color: var(--teal-dark); background: #f0fdfa; }
.callout.takeaways ul { margin-bottom: 0; }
ol.walkthrough { counter-reset: step; list-style: none; padding-left: 0; }
ol.walkthrough > li { counter-increment: step; position: relative; padding: 0.6rem 0.85rem 0.6rem 3rem; margin: 0.5rem 0; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; }
ol.walkthrough > li::before { content: counter(step); position: absolute; left: 0.75rem; top: 0.6rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--electric)); color: #fff; font-weight: 700; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; }
.callout.disclaimer { border-color: var(--muted); background: var(--bg-soft); font-size: 0.92rem; }
@media print {
  .callout.scenario, .callout.exercise, .callout.takeaways { break-inside: avoid; }
  details > *:not(summary) { display: block !important; }
  ol.walkthrough > li { break-inside: avoid; }
}
