:root { scroll-behavior: auto; --ink: #192a54; --muted: #56627f; --gold: #ffad01; --maroon: #a20404; --line: #dce1ec; }
body { color: var(--ink); background: #fffaf0; }
.guide-header { background: #fff; border-bottom: 1px solid var(--line); }
.guide-logo { width: 48px; height: 48px; object-fit: contain; }
.guide-eyebrow { color: var(--maroon); font-size: .75rem; font-weight: 800; letter-spacing: .1em; }
.guide-title { font-weight: 800; letter-spacing: -.035em; }
.guide-navigation { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
.guide-navigation a { color: var(--ink); border-left: 3px solid transparent; }
.guide-navigation a:hover, .guide-navigation a[aria-current="step"] { background: #fff1cf; border-left-color: var(--maroon); }
.guide-stage { scroll-margin-top: 1rem; border: 1px solid var(--line); border-radius: 1.25rem; background: #fff; }
.guide-stage h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 800; }
.guide-stage li { margin-bottom: .5rem; line-height: 1.6; }
.guide-stage li::marker { color: var(--maroon); font-weight: 700; }
.guide-note { border-left: 4px solid var(--gold); background: #fff8e5; }
.guide-code { background: #101b38; color: #f1f4fb; padding: 1rem; margin: 0; border-radius: .75rem; max-height: 34rem; overflow: auto; font-size: .9rem; line-height: 1.65; tab-size: 2; }
.guide-code code { color: inherit; font: inherit; white-space: pre; }
.guide-code .is-new { background: #203d38; box-shadow: -3px 0 #7cd9a7; }
.guide-code .is-new-marker { color: #a0ecc2; font-weight: 700; }
.guide-stage details > summary { color: var(--maroon); cursor: pointer; font-weight: 700; padding: .75rem 0; }
.guide-stage details[open] > summary { margin-bottom: .5rem; }
.guide-content { min-width: 0; }
.guide-button { color: #fff; background: var(--maroon); border-color: var(--maroon); }
.guide-button:hover { color: #fff; background: #7c0303; border-color: #7c0303; }
@media (max-width: 991.98px) { .guide-navigation { position: static; max-height: none; } }

/* Diaktifkan per halaman agar panduan lain tidak berubah sebelum ditinjau. */
@page praktikum { size: A4 portrait; margin: 14mm; }
@media print {
  body.print-guide { page: praktikum; background: #fff; color: #111; font-size: 10.5pt; line-height: 1.45; }
  .print-guide .guide-header, .print-guide aside, .print-guide footer,
  .print-guide .btn, .print-guide [role="status"],
  .print-guide .guide-stage > .d-flex,
  .print-guide .guide-stage > .row > .col-xl-6:last-child { display: none !important; }
  .print-guide main.container { width: auto !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
  .print-guide main .row { display: block !important; margin: 0 !important; }
  .print-guide .guide-content,
  .print-guide .guide-stage > .row > .col-xl-6:first-child { width: 100% !important; max-width: none !important; padding: 0 !important; }
  .print-guide .guide-title { font-size: 23pt; }
  .print-guide .lead { font-size: 11pt; }
  .print-guide .guide-eyebrow { color: #333; font-size: 8pt; }
  .print-guide .guide-stage { border: 0; border-radius: 0; padding: 0 !important; margin: 6mm 0 0 !important; break-inside: auto; }
  .print-guide .guide-stage + .guide-stage { break-before: page; }
  .print-guide .guide-stage h2 { font-size: 16pt; }
  .print-guide h1, .print-guide h2, .print-guide h3,
  .print-guide .guide-stage summary { break-after: avoid; }
  .print-guide .guide-stage li { margin-bottom: 2mm; }
  .print-guide .guide-note { background: #fff; border: 1px solid #aaa; border-left: 3px solid #555; border-radius: 0 !important; padding: 3mm !important; margin: 3mm 0 !important; }
  .print-guide .guide-stage details { display: block; break-inside: auto; }
  .print-guide .guide-stage summary { font-size: 10pt; color: #111; padding: 2mm 0; }
  .print-guide summary::marker { content: ''; }
  .print-guide .guide-code { background: #fff; color: #111; border: 1px solid #bbb; border-radius: 0; padding: 3mm; font-size: 9.5pt; line-height: 1.35; max-height: none; height: auto; overflow: visible; break-inside: auto; }
  .print-guide .guide-code code { white-space: pre-wrap; overflow-wrap: anywhere; }
  .print-guide .guide-code span { color: #111; background: transparent; box-shadow: none; }
  .print-guide .guide-code .is-new-marker { font-weight: 700; }
  .print-guide code { color: #111; }
  .print-guide p, .print-guide li { orphans: 2; widows: 2; }
}
