/* Inner-guide sheet. Linked only from long guides. Tokens come from petmeds.css. */

.guide-sheet {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.guide-sheet > .card,
.guide-sheet .faq-stack > .card { margin-bottom: 0; }
.guide-sheet .card { min-width: 0; border-radius: 14px; }
.guide-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal-light);
  color: var(--teal-hover, #B9473D);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.guide-sheet .evidence-ledger { container-type: inline-size; }
.guide-sheet .evidence-ledger .decision-grid { margin: 14px 0 6px; }
@container (max-width: 680px) {
  .guide-sheet .evidence-ledger .decision-grid { grid-template-columns: 1fr 1fr; }
}
@container (max-width: 420px) {
  .guide-sheet .evidence-ledger .decision-grid { grid-template-columns: 1fr; }
}

.guide-intro {
  container-type: inline-size;
  display: grid;
  gap: 12px 28px;
  align-items: start;
}
.guide-intro > h1 { margin-bottom: 0; }
.guide-intro > figure { margin: 4px 0 0; }
.guide-intro img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--paper-dark);
}
.guide-intro figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}
@container (min-width: 40rem) {
  .guide-intro:has(> figure) {
    grid-template-columns: minmax(0, 1.35fr) minmax(200px, .78fr);
  }
  .guide-intro:has(> figure) > figure {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
  }
}

.guide-section > h2 {
  margin: 0 0 12px;
  padding-left: 14px;
  border-left: 4px solid var(--teal);
}
.guide-section > p:last-child,
.guide-section .step-list p:last-child,
.guide-section .check-list p:last-child { margin-bottom: 0; }

.step-list,
.check-list {
  list-style: none;
  margin: 14px 0 8px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.step-list { counter-reset: step; }
.step-list > li,
.check-list > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.step-list > li::before {
  counter-increment: step;
  content: counter(step);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-hover, #B9473D);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
}
.check-list > li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--label);
  color: var(--label-ink);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
}
.step-list strong,
.check-list strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: -.01em;
}
.step-list p,
.check-list p {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
}

.guide-sheet .worksheet-wrap { border-radius: 14px; }
.guide-sheet .worksheet tbody th {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .01em;
}
.guide-sheet .worksheet td:nth-child(3),
.guide-sheet .worksheet td:nth-child(4) { background: var(--paper); }
.guide-sheet .worksheet .write-line {
  min-block-size: 2.1rem;
  border-bottom: 1.5px dashed var(--green);
}
.guide-sheet .rx-strip { margin: 12px 0; }
.guide-sheet .table-scroll {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--paper-elevated);
}
.guide-sheet .table-scroll table { margin: 0; }
.guide-sheet .table-scroll caption {
  caption-side: top;
  text-align: left;
  padding: 12px 14px 4px;
  color: var(--ink-soft);
}

.faq-stack { display: grid; gap: 12px; }
.faq-stack > h2 {
  margin: 4px 0 0;
  padding-left: 14px;
  border-left: 4px solid var(--green);
}
.faq-card { border-left: 4px solid var(--green); }
.faq-card h3 {
  font-family: "Crimson Text", Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px;
}
.faq-card p:last-child { margin-bottom: 0; }
.guide-sheet .btn { margin-top: 4px; }

@media (max-width: 640px) {
  .step-list > li,
  .check-list > li { padding: 12px; }
}
