/* /guides/<slug> (src/lib/cinematic/pages/guides.ts): reading extras on top of p-discovery.css. */

/* Reading progress: blends to white over the dark hero, dark over the page. */
.gd-progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:60;pointer-events:none;mix-blend-mode:difference}
.gd-progress span{display:block;height:100%;background:#fff;transform:scaleX(0);transform-origin:0 50%}

/* Demo video rising out of the hero */
.gd-stage{max-width:1080px}

/* Section meta chip (notification priorities) */
.dc-read-meta .gd-chip{margin-left:auto;font-size:12px;line-height:16px;font-weight:500;padding:5px 12px;border-radius:999px;background:#f0f0ed;color:#555;white-space:nowrap}
.dc-read:nth-child(-n+2) .gd-chip{background:#fff3de;color:#c47a12}

/* Code blocks: Heard terminal style */
.gd-code{margin:28px 0 0;border-radius:18px;background:#17191d;box-shadow:0 18px 44px rgba(26,24,20,.12);overflow:hidden}
.gd-code figcaption{display:flex;align-items:center;gap:12px;padding:12px 12px 12px 18px;border-bottom:1px solid rgba(255,255,255,.07)}
.gd-dots{display:flex;gap:6px;flex:none}
.gd-dots i{width:10px;height:10px;border-radius:50%;background:#3a3d44}
.gd-code-label{flex:1;min-width:0;font:12px/16px ui-monospace,"SF Mono",SFMono-Regular,Menlo,monospace;color:#9a9ca3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gd-copy{flex:none;font:500 12px/16px var(--body);color:#e8e8e6;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.08);transition:background .2s var(--ease)}
.gd-copy:hover{background:rgba(255,255,255,.16)}
.gd-copy:focus-visible{outline:2px solid #fff;outline-offset:2px}
.gd-code pre{margin:0;padding:18px 20px 20px;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.gd-code pre:focus-visible{outline:2px solid #6b7280;outline-offset:-2px}
.gd-code code{display:block;font:13.5px/22px ui-monospace,"SF Mono",SFMono-Regular,Menlo,monospace;color:#e8e8e6;background:none;padding:0;border-radius:0;white-space:pre;word-break:normal;tab-size:2}

/* Callouts */
.gd-callout{display:grid;grid-template-columns:28px 1fr;gap:14px;margin-top:24px;padding:20px 22px;border-radius:18px;background:#f0f0ed}
.gd-callout-icon{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font:600 13px/1 var(--body)}
.gd-tip .gd-callout-icon{background:#eef6ea;color:#4f8b43;box-shadow:inset 0 0 0 1px #d9edcf}
.gd-warn{background:#fff3de}
.gd-warn .gd-callout-icon{background:#fff;color:#c47a12;box-shadow:inset 0 0 0 1px #f3d9ad}
.gd-callout strong{display:block;font-size:15px;line-height:22px;font-weight:500;color:#222;padding-top:3px}
.story .dc-read .gd-callout p{font-size:15px;line-height:24px;color:#666;margin-top:4px}
.story .dc-read .gd-warn p{color:#6b5a3e}

/* Useful vs noise example */
.gd-compare{display:grid;gap:8px;margin-top:28px;padding:8px;border-radius:24px;background:#f0f0ed}
.gd-compare>div{padding:18px 20px;border-radius:16px;background:#fff}
.gd-compare span{display:inline-block;font-size:11px;line-height:16px;font-weight:500;padding:2px 9px;border-radius:999px}
.gd-good span{background:#eef6ea;color:#4f8b43}
.gd-noise span{background:#f0f0ed;color:#888}
.story .dc-read .gd-compare p{font-size:16px;line-height:25px;color:#222;margin-top:10px}
.story .dc-read .gd-noise p{color:#999;text-decoration:line-through;text-decoration-color:#ccc}

/* Distance-to-mode ladder */
.gd-ladder{list-style:none;display:grid;gap:8px;margin:28px 0 0;padding:8px;border-radius:24px;background:#f0f0ed}
.gd-ladder li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-radius:16px;background:#fff}
.gd-ladder span{font-size:15px;line-height:23px;color:#666}
.gd-ladder strong{flex:none;font-size:13px;line-height:18px;font-weight:500;padding:5px 12px;border-radius:999px;background:#f0f0ed;color:#222}

@media(max-width:720px){
  .gd-code{border-radius:14px;margin-top:22px}
  .gd-code pre{padding:16px}
  .gd-code code{font-size:12px;line-height:20px}
  .gd-callout{grid-template-columns:24px 1fr;gap:12px;padding:18px}
  .gd-callout-icon{width:24px;height:24px;font-size:12px}
  .gd-compare,.gd-ladder{padding:6px;border-radius:20px}
  .gd-compare>div,.gd-ladder li{padding:14px 16px}
  .gd-ladder li{flex-direction:column;align-items:flex-start;gap:8px}
  .dc-read-meta{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){.gd-copy{transition:none}}

/* Prose templates wrap instead of scrolling; tighter gap below the short answer. */
.gd-wrap code span{display:block;white-space:pre-wrap;word-break:break-word;padding-left:11ch;text-indent:-11ch}
.guide-page .dc-body{padding-top:16px}
