/* Product guides — layered on top of site.css.
   Guides deliberately avoid .section/.reveal so site.js's stacked-card and
   scroll-in effects never touch long-form documentation. */

.guide-wrap {
  max-width: 1080px; margin: 0 auto; padding: 0 20px 80px;
  display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 44px;
}
.guide-head { grid-column: 1 / -1; padding: 56px 0 8px; }
.guide-head .lede { max-width: 640px; }

/* --- table of contents ------------------------------------------------- */
.toc {
  position: sticky; top: 86px; align-self: start;
  font-size: 13.5px; line-height: 1.5;
  border-left: 1px solid var(--line); padding-left: 16px;
  max-height: calc(100vh - 110px); overflow-y: auto;
}
.toc summary {
  cursor: pointer; list-style: none; font: 500 12px/1 var(--mono);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--mint);
  margin-bottom: 10px;
}
.toc summary::-webkit-details-marker { display: none; }
.toc a { display: block; padding: 4px 0; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); }

/* --- article ------------------------------------------------------------ */
.guide { min-width: 0; }
.guide h2 {
  font-size: 26px; margin: 46px 0 12px; scroll-margin-top: 84px;
}
.guide h3 { font-size: 18px; margin: 28px 0 8px; scroll-margin-top: 84px; }
.guide p, .guide li { color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.guide p b, .guide li b { color: var(--text); }
.guide ul, .guide ol { padding-left: 22px; margin: 10px 0; }
.guide li { margin: 6px 0; }
.guide hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* button / control names as the user sees them */
kbd {
  font: 600 12.5px/1 var(--mono); letter-spacing: 0.04em;
  background: #0a1513; color: var(--text);
  border: 1px solid var(--line-strong); border-bottom-width: 2px;
  border-radius: 6px; padding: 2px 7px 3px; white-space: nowrap;
}

/* --- callouts ------------------------------------------------------------ */
.callout {
  border: 1px solid var(--line-strong); border-left-width: 3px;
  border-radius: 10px; padding: 12px 16px; margin: 16px 0;
  font-size: 14.5px; line-height: 1.6; color: var(--muted);
}
.callout b:first-child, .callout .label {
  display: block; font: 600 11px/1 var(--mono); letter-spacing: 0.16em;
  text-transform: uppercase; margin-bottom: 6px;
}
.callout.tip { border-left-color: var(--mint); }
.callout.tip .label { color: var(--mint); }
.callout.warn { border-left-color: #f0b429; }
.callout.warn .label { color: #f0b429; }
.callout.danger { border-left-color: #ef5b5b; background: rgba(239, 91, 91, 0.05); }
.callout.danger .label { color: #ef5b5b; }

/* --- figures / screenshots ------------------------------------------------ */
figure.shot { margin: 20px 0; }
figure.shot img {
  max-width: 100%; border: 1px solid var(--line-strong); border-radius: 12px;
  display: block;
}
figure.shot .ph {
  /* placeholder until the screenshot pass (docs/MANUALS_PLAN.md, Chunk D) */
  border: 1px dashed var(--line-strong); border-radius: 12px;
  padding: 34px 18px; text-align: center; color: var(--muted);
  font: 500 12.5px/1.5 var(--mono); letter-spacing: 0.04em; opacity: 0.75;
}
figure.shot figcaption {
  font-size: 12.5px; color: var(--muted); opacity: 0.75; margin-top: 8px;
}

/* guide chooser cards (guides/index.html) */
.guide-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 26px; }
.guide-card {
  display: block; border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 22px; text-decoration: none; transition: border-color .15s ease;
}
.guide-card:hover { border-color: var(--mint); text-decoration: none; }
.guide-card h3 { margin: 0 0 6px; color: var(--text); font-size: 17px; }
.guide-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* --- responsive ------------------------------------------------------------ */
@media (max-width: 899px) {
  .guide-wrap { grid-template-columns: 1fr; gap: 0; }
  .toc {
    position: static; max-height: none; border-left: 0; padding: 12px 16px;
    border: 1px solid var(--line-strong); border-radius: 12px; margin-bottom: 10px;
  }
  .guide-cards { grid-template-columns: 1fr; }
}

/* --- print ------------------------------------------------------------ */
@media print {
  .nav, .toc, footer, .btn { display: none !important; }
  body { background: #fff; color: #111; }
  .guide p, .guide li { color: #222; }
  .guide h2, .guide h3, .guide-head h1 { color: #000; }
  figure.shot .ph { display: none; }
  .callout { break-inside: avoid; }
}
