/* ============================================================
   GitHub extra mini-course styles
   Matches the M3 "となりのAI" episode 1/2 editorial taste:
   generated illustration heroes, dense diagrams, teal accent, proof cards.
   ============================================================ */

.deck {
  --color-accent: #0B7DA3;
  --teal: #0B7DA3;
  --teal-soft: #f0f6f8;
  --teal-line: #cfe0e6;
  --warm: #C8682E;
  --ink: #111;
  --muted: #7a8288;
  --line: #d9dee1;
  --panel: #f8fafb;
  --cream: #fbf3ea;
  --cream-line: #ecd9c2;
  --green: #1b8a5a;
  --green-soft: #eaf7ef;
  --pink: #c34775;
  --pink-soft: #fff0f6;
}

.slide-content .body b,
.slide h2 b { color: var(--teal); }
.headbar .mark { letter-spacing: .06em; font-size: .8rem; }
.slide-title.photo .label { color: rgba(255,255,255,.84); }
.slide-photo, .m3hero { background-color: #14181c; background-size: cover; background-position: center; }

.m3hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(8,12,16,.78) 0%, rgba(8,12,16,.56) 38%, rgba(8,12,16,.18) 72%, rgba(8,12,16,0) 100%);
}
.m3hero > .headbar { z-index: 3; }
.m3hero > .headbar .mark,
.m3hero > .headbar .sec { color: #fff; }
.m3hero > .headbar .sep { background: rgba(255,255,255,.5); }
.m3hero > .body {
  position: relative;
  z-index: 2;
  flex: 1;
  justify-content: center;
  max-width: 830px;
  gap: 18px;
  text-shadow: 0 2px 22px rgba(0,0,0,.62);
}
.m3hero .body .label { color: #8fdaf0; font-size: .82rem; }
.m3hero .body .bigline,
.m3hero .body h2 { color: #fff; font-size: 2.7rem; line-height: 1.34; }
.m3hero .body .bigline b,
.m3hero .body h2 b { color: #8fdaf0; }
.m3hero .body p { color: #fff; font-size: 1.1rem; line-height: 1.72; }
.m3hero .body p b { color: #a6e6f6; }

.kicker {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--teal);
  text-transform: uppercase;
}
.bigline {
  font-size: 2.15rem;
  font-weight: 900;
  line-height: 1.38;
  color: var(--ink);
  letter-spacing: .01em;
}
.small-copy {
  font-size: .92rem;
  line-height: 1.75;
  color: var(--muted);
}
.src {
  font-family: var(--font-mono);
  font-size: .58rem;
  color: #9aa3a8;
  letter-spacing: .02em;
}

.cols-2.visual {
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 38px;
}
.cols-2.visual.rev { grid-template-columns: .92fr 1.08fr; }
.visual-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
}
.visual-card.soft {
  background: var(--teal-soft);
  border-color: var(--teal-line);
}
.visual-card img {
  display: block;
  width: 100%;
  max-height: 310px;
  object-fit: contain;
  border-radius: 10px;
}
.visual-card.tall img { max-height: 380px; }
.visual-caption {
  margin-top: 9px;
  font-size: .72rem;
  line-height: 1.55;
  color: var(--muted);
  font-family: var(--font-mono);
}

.diagram-full {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.diagram-full img {
  display: block;
  width: 100%;
  max-height: 492px;
  object-fit: contain;
}
.diagram-full.tight img { max-height: 520px; }
.diagram-note {
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 7px solid var(--teal);
  padding: 10px 0 10px 18px;
  font-size: .96rem;
  line-height: 1.58;
  color: #343b40;
}
.diagram-note b { color: var(--teal); }

.remember-slab {
  width: 100%;
  min-height: 440px;
  border-radius: 8px;
  overflow: hidden;
  background: #101418;
}
.remember-slab img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: contain;
}

.meaning-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}
.meaning-line {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.meaning-line:last-child { border-bottom: 0; }
.meaning-line .word {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 900;
  color: var(--teal);
}
.meaning-line .meaning {
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.42;
  color: #111;
}

.story-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  border-top: 7px solid #111;
  padding-top: 28px;
}
.story-rail::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 6px solid #111;
}
.story-step {
  padding-right: 22px;
}
.story-step .time {
  display: block;
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 900;
  color: var(--teal);
  letter-spacing: .08em;
  margin-bottom: 7px;
}
.story-step .title {
  display: block;
  font-size: 1.16rem;
  font-weight: 900;
  color: #111;
  line-height: 1.35;
  margin-bottom: 6px;
}
.story-step .desc {
  display: block;
  font-size: .78rem;
  line-height: 1.58;
  color: #555;
}

.mini-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  width: 100%;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 900;
  color: #59636a;
}
.mini-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.mini-legend span::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
}
.mini-legend .green::before { background: var(--green); }
.mini-legend .warm::before { background: var(--warm); }
.mini-legend .pink::before { background: var(--pink); }

.quote-band {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  background: #0f0f0f;
  color: #fff;
}
.quote-band .label2 {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 900;
  color: #8fdaf0;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.quote-band p {
  color: #dfe6ea;
  font-size: .86rem;
  line-height: 1.62;
}
.quote-band b { color: #fff; }

.datacards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  width: 100%;
}
.dcard {
  background: var(--teal-soft);
  border: 1px solid var(--teal-line);
  border-radius: 12px;
  padding: 17px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.dcard.dark {
  background: #f4f6f7;
  border-color: #d9dee1;
}
.dcard .dnum {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--teal);
  line-height: 1;
}
.dcard.dark .dnum { color: #1a1a1a; }
.dcard .dlbl {
  font-size: .8rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.35;
}
.dcard .dsrc {
  font-size: .55rem;
  color: #9aa3a8;
  font-family: var(--font-mono);
}

.usecases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
  width: 100%;
}
.uc {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 15px 18px;
  background: var(--panel);
}
.uc.hot {
  background: var(--teal-soft);
  border-color: var(--teal-line);
}
.uc.warn {
  background: var(--cream);
  border-color: var(--cream-line);
}
.uc .uct {
  font-size: 1rem;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.uc .ucd {
  font-size: .82rem;
  line-height: 1.58;
  color: #555;
}

.beats {
  display: flex;
  gap: 9px;
  align-items: stretch;
  width: 100%;
}
.beat {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 110px;
}
.beat .bnum {
  font-family: var(--font-mono);
  font-size: .62rem;
  color: #9aa3a8;
  font-weight: 800;
}
.beat .bname {
  font-size: 1.05rem;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.34;
}
.beat.lit {
  background: var(--teal);
  border-color: var(--teal);
}
.beat.lit .bname,
.beat.lit .bnum { color: #fff; }
.beat-arrow {
  display: flex;
  align-items: center;
  color: #c4ccd0;
  font-size: 1.1rem;
}

.fork {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
  width: 100%;
}
.fork .path {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 22px 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fork .path.active {
  border-color: var(--teal);
  background: var(--teal-soft);
}
.fork .ptag {
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9aa3a8;
}
.fork .path.active .ptag { color: var(--teal); }
.fork .ph {
  font-size: 1.35rem;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.25;
}
.fork .path.active .ph { color: var(--teal); }
.fork .pp {
  font-size: .9rem;
  line-height: 1.62;
  color: #555;
}
.fork .vs {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 900;
  color: #b8c0c5;
}

.flowline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  width: 100%;
}
.flowstep {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 16px 14px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}
.flowstep.hot {
  background: var(--teal-soft);
  border-color: var(--teal-line);
}
.flowstep .no {
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 900;
  color: var(--teal);
  letter-spacing: .08em;
}
.flowstep .name {
  font-size: 1.02rem;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.3;
}
.flowstep .desc {
  font-size: .76rem;
  line-height: 1.55;
  color: #555;
}

.terminal {
  background: #0f1216;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
  width: 100%;
}
.terminal .tm-bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  background: #1a1f25;
}
.terminal .tm-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #39424b;
}
.terminal .tm-body {
  margin: 0;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.75;
  color: #9fb0bf;
  white-space: pre-wrap;
}
.terminal .tm-body .bad { color: #ff8f8f; }
.terminal .tm-body .ok { color: #8fdaf0; }

.diff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}
.diff .pane {
  background: #101418;
  border-radius: 11px;
  padding: 15px 16px;
  font-family: var(--font-mono);
  font-size: .76rem;
  line-height: 1.65;
  color: #dfe6ea;
}
.diff .minus { color: #ff9aa5; }
.diff .plus { color: #a5e9bd; }
.diff .label {
  display: block;
  font-size: .58rem;
  letter-spacing: .08em;
  color: #8fdaf0;
  margin-bottom: 8px;
}

.safebar {
  background: #0f0f0f;
  color: #fff;
  border-radius: 11px;
  padding: 16px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}
.safebar .sb-label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  color: #8fdaf0;
  padding-top: 2px;
}
.safebar .sb-text {
  font-size: .84rem;
  line-height: 1.6;
  color: #dfe6ea;
}
.safebar .sb-text b { color: #fff; }

.agenda-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
}
.agenda-mini .slot {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.agenda-mini .slot.current {
  background: var(--teal-soft);
  border-color: var(--teal-line);
}
.agenda-mini .slot .t {
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 900;
  color: var(--teal);
  letter-spacing: .08em;
}
.agenda-mini .slot .h {
  font-size: 1.1rem;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.35;
}
.agenda-mini .slot .d {
  font-size: .8rem;
  line-height: 1.55;
  color: #555;
}

@media print {
  .slide-content .bigline,
  .m3hero .body .bigline { font-weight: 900 !important; }
  .dcard .dnum,
  .beat .bname,
  .flowstep .name { font-weight: 900 !important; }
}
