/* IA 101 / AI 101 starter kit. Scoped to .ai101-page; reuses the Midi IA workshop tokens. */
.ai101-hero-copy {
  max-width: 820px;
}

.ai101-page .midi-workshop-meta {
  margin-top: 44px;
}

.ai101-prompt-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
}

.ai101-prompt-head h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.ai101-prompt-head p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--mist);
  font-size: 0.92rem;
  line-height: 1.55;
}

.ai101-prompt-head .btn {
  flex: none;
}

.ai101-prompt-num {
  display: block;
  margin-bottom: 6px;
  color: var(--midi-cyan-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ai101-prompt details {
  border-top: 1px solid var(--midi-line);
}

.ai101-prompt summary {
  padding: 13px 24px;
  color: var(--midi-cyan-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  cursor: pointer;
}

.ai101-prompt summary:hover {
  color: var(--white);
}

.ai101-prompt summary:focus-visible,
.ai101-prompt pre:focus-visible,
.ai101-tablist button:focus-visible,
.ai101-where [role="tabpanel"]:focus-visible {
  outline: 2px solid var(--midi-cyan-soft);
  outline-offset: -2px;
}

.ai101-prompt pre {
  max-height: 460px;
  border-top: 1px solid var(--midi-line);
}

.ai101-where {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid var(--midi-line);
  border-radius: var(--midi-radius);
  background: var(--midi-panel);
}

.ai101-where h3 {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

.ai101-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.ai101-tablist button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 9px;
  border: 1px solid var(--midi-line);
  border-radius: 999px;
  color: var(--cloud);
  background: rgba(4, 12, 26, 0.5);
  font-family: "Sora", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.ai101-tablist button:hover {
  border-color: var(--midi-cyan);
  color: var(--white);
}

.ai101-tablist button[aria-selected="true"] {
  border-color: var(--midi-gold);
  color: var(--white);
  background: rgba(212, 168, 83, 0.12);
}

.ai101-tool-badge {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
}

.ai101-tool-badge img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.ai101-where ol {
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--cloud);
  line-height: 1.7;
}

.ai101-where li + li {
  margin-top: 8px;
}

.ai101-where li strong {
  color: var(--white);
}

.ai101-tab-note,
.ai101-tab-source,
.ai101-verified {
  color: var(--mist);
  font-size: 0.88rem;
  line-height: 1.6;
}

.ai101-tab-note {
  margin: 16px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--midi-gold);
}

.ai101-tab-source {
  margin: 12px 0 0;
}

.ai101-tab-source a {
  color: var(--midi-cyan-soft);
  text-underline-offset: 3px;
}

.ai101-verified {
  max-width: 760px;
  margin: 20px 0 0;
}

.ai101-note {
  margin-top: 24px;
  color: var(--mist);
  font-size: 0.9rem;
}

/* Starter kit link on the workshop hubs. */
.atelier-starter-link {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 20px;
  padding: 20px 24px;
  border: 1px solid rgba(212, 168, 83, 0.45);
  border-radius: 12px;
  color: #dce6f2;
  background: rgba(8, 22, 39, 0.82);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.atelier-starter-link:hover,
.atelier-starter-link:focus-visible {
  border-color: #f0c060;
  transform: translateY(-2px);
}

.atelier-starter-link:focus-visible {
  outline: 2px solid #7bdde2;
  outline-offset: 3px;
}

.atelier-starter-link span {
  display: block;
  max-width: 640px;
  line-height: 1.55;
}

.atelier-starter-link span b {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
}

.atelier-starter-link strong {
  color: #f0c060;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .ai101-prompt-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 18px;
  }

  .ai101-prompt-head .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .ai101-prompt summary {
    padding: 13px 18px;
  }

  .ai101-where {
    padding: 20px 18px;
  }

  .ai101-tablist button {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai101-tablist button,
  .atelier-starter-link {
    transition: none;
  }
}

/* Link from the May 26 workshop prompts to the starter kit. */
.atelier-more-prompts {
  margin: 28px 0 0;
}

/* Click-by-click numbered steps. */
.ai101-steps {
  max-width: 900px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ai101-step;
}

.ai101-steps > li {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 28px;
  counter-increment: ai101-step;
}

.ai101-steps > li::before {
  content: counter(ai101-step);
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid var(--midi-gold);
  border-radius: 50%;
  color: var(--midi-gold-soft);
  background: var(--midi-panel-solid);
  font-family: "Sora", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.ai101-steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 54px;
  bottom: 6px;
  left: 23px;
  width: 2px;
  background: var(--midi-line);
}

.ai101-step-body > p:first-child {
  margin: 0;
  padding-top: 9px;
  color: var(--white);
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  line-height: 1.55;
}

.ai101-step-body .midi-prompt,
.ai101-step-body .ai101-where {
  margin-top: 16px;
}

.ai101-tip {
  margin: 8px 0 0;
  color: var(--mist);
  font-size: 0.95rem;
}

.ai101-done {
  color: var(--midi-green);
}

.ai101-where .ai101-substeps {
  font-size: 1.05rem;
}

.ai101-open {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin: 18px 0 0;
}

.ai101-open span {
  color: var(--mist);
  font-size: 0.95rem;
}

.ai101-rules-title {
  margin: 40px 0 16px;
  font-size: 1.2rem;
}

@media (max-width: 720px) {
  .ai101-steps > li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
  }

  .ai101-steps > li::before {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }

  .ai101-steps > li:not(:last-child)::after {
    top: 44px;
    left: 18px;
  }

  .ai101-step-body > p:first-child {
    padding-top: 5px;
  }
}
