/* guide-enhance.css: TOC, callout cards, FAQ accordion, pill cloud, next lesson */

/* ── Table of Contents ──────────────────────────────────────────────── */
.guide-toc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0 2.5rem;
  max-width: 680px;
}
.guide-toc-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 .75rem;
}
.guide-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.guide-toc-item a {
  color: var(--muted);
  text-decoration: none;
  font-size: .875rem;
  line-height: 1.4;
  transition: color .15s;
  display: block;
  padding: .1rem 0;
}
.guide-toc-item a:hover,
.guide-toc-item a.active {
  color: var(--green);
}
.guide-toc-h3 {
  padding-left: 1rem;
}
.guide-toc-h3 a {
  font-size: .82rem;
}

/* ── Callout Cards ──────────────────────────────────────────────────── */
.callout {
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
  border-left: 3px solid;
}
.callout-takeaway {
  background: color-mix(in srgb, var(--green) 8%, var(--panel));
  border-color: var(--green);
}
.callout-takeaway::before {
  content: '✦ Key Takeaway';
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .5rem;
}
.callout-warning {
  background: color-mix(in srgb, #e53935 8%, var(--panel));
  border-color: #e53935;
}
.callout-warning::before {
  content: '⚠ Security Warning';
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #e57373;
  margin-bottom: .5rem;
}
.callout-tip {
  background: color-mix(in srgb, #00bcd4 8%, var(--panel));
  border-color: #00bcd4;
}
.callout-tip::before {
  content: '💡 Pro Tip';
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #4dd0e1;
  margin-bottom: .5rem;
}

/* ── FAQ Accordion ──────────────────────────────────────────────────── */
.guide-faq {
  margin: 2.5rem auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.guide-faq h2 {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: .5rem;
  overflow: hidden;
}
.faq-item[open] {
  border-color: var(--green);
}
.faq-question {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  padding: .9rem 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  color: var(--green);
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .2s;
}
details[open] .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.65;
  padding: 0 1.1rem 1rem;
  border-top: 1px solid var(--line);
}

/* ── Pill Tag Cloud ─────────────────────────────────────────────────── */
.guide-pill-cloud {
  margin: 2rem auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.guide-pill-cloud h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
  margin-bottom: 1rem;
}
.pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.pill {
  display: inline-block;
  padding: .35rem .9rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--green);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.pill:hover {
  background: color-mix(in srgb, var(--green) 10%, var(--panel));
  border-color: var(--green);
}

/* ── Term Links (auto-linked lexicon terms) ──────────────────────────── */
a.term-link {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--green) 50%, transparent);
  padding-bottom: 1px;
}
a.term-link:hover {
  border-bottom-style: solid;
}

/* ── Next Lesson Banner ─────────────────────────────────────────────── */
.next-lesson-banner {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.75rem 0;
  margin-top: 2rem;
}
.next-lesson-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.next-lesson-kicker {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  white-space: nowrap;
}
.next-lesson-title {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.next-lesson-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.25rem;
  background: var(--green);
  color: #001a0e;
  font-size: .875rem;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s;
}
.next-lesson-link:hover {
  opacity: .88;
}

/* ── Lexicon related-terms (from content) ───────────────────────────── */
.related-terms {
  margin: 2rem 0;
}
.related-terms h2 {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: .75rem;
}
.related-terms ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.related-terms li a {
  color: var(--green);
  text-decoration: none;
  font-size: .9rem;
}
.related-terms li a:hover {
  text-decoration: underline;
}
.related-terms li span {
  font-size: .75rem;
  color: var(--muted);
  margin-left: .5rem;
}
