/* ═══════════════════════════════════════════════════════════
   Jagderfolg Handbuch — shared article & TOC styles
   Builds on the landing design system (forest / bark / amber,
   DM Serif Display + Libre Franklin via the Tailwind CDN config).
   ═══════════════════════════════════════════════════════════ */

/* Article prose: applied to the <article class="prose"> wrapper on
   topic pages so we get readable typography without per-element classes. */
.prose {
  color: #253c26; /* forest-800 */
  line-height: 1.7;
}

.prose h2 {
  font-family: '"DM Serif Display"', Georgia, serif;
  font-size: 1.75rem;
  color: #1a2e1b; /* forest-900 */
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 5rem; /* clears the sticky header on anchor jumps */
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-weight: 600;
  font-size: 1.15rem;
  color: #2d4a2d; /* forest-700 */
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul,
.prose ol {
  margin: 0.5rem 0 1.25rem;
  padding-left: 1.4rem;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose a {
  color: #a87623; /* amber-600 */
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: #c4922e; /* amber-500 */
}

.prose strong {
  color: #1a2e1b;
  font-weight: 600;
}

/* Numbered step blocks */
.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 1.5rem;
}

.steps > li {
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 1rem;
  min-height: 1.75rem;
}

.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 1.9rem;
  height: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d4a03c; /* amber-400 */
  color: #1a2e1b;
  font-weight: 700;
  border-radius: 9999px;
  font-size: 0.95rem;
}

/* Screenshot figure */
figure.shot {
  margin: 1.5rem 0;
}

figure.shot img {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 20px 40px -16px rgba(14, 26, 15, 0.35);
}

figure.shot--wide img {
  max-width: 520px;
  border-radius: 12px;
}

figure.shot figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: #88664d; /* bark-700 */
  margin-top: 0.6rem;
}

.shot-placeholder {
  width: 100%;
  max-width: 320px;
  min-height: 420px;
  margin: 0 auto;
  border: 2px dashed #d4c5af; /* bark-300 */
  border-radius: 18px;
  background: #f3efe8; /* bark-100 */
  color: #6f5442; /* bark-800 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 20px 40px -16px rgba(14, 26, 15, 0.18);
}

.shot-placeholder code {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: #88664d; /* bark-700 */
  word-break: break-all;
}

.shot-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 768px) {
  .shot-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

/* Tip / note callout */
.note {
  border-left: 3px solid #d4a03c;
  background: #f3efe8; /* bark-100 */
  padding: 0.9rem 1.1rem;
  border-radius: 0 8px 8px 0;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

.note strong {
  color: #a87623;
}

/* TOC cards on the index */
.toc-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.toc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -18px rgba(14, 26, 15, 0.4);
}
