/* Pulse website: the starter guides (/guides and /guides/<slug>). Loaded after site.css, pages.css and legal.css,
   whose reading layout (contents list, sections) the guide pages share. */

/* ---------- header ---------- */
.gd-crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: .9rem; color: var(--text-2); }
.gd-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.gd-crumbs li + li::before { content: '/'; margin: 0 10px; color: var(--text-3); }
.gd-crumbs a { color: var(--sky); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(76, 201, 255, .35); text-underline-offset: 4px; }
.gd-crumbs a:hover { text-decoration-color: var(--sky); }
.gd-crumbs [aria-current] { color: var(--text-2); overflow-wrap: anywhere; }
.gd-head .page-title { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.05; text-wrap: balance; }
.gd-head .page-lede code, .gd-brief code { font: 500 .9em var(--font-mono); color: var(--mint); background: rgba(61, 245, 176, .08); padding: 1px 6px; border-radius: 6px; }

/* ---------- "Before you start" card ---------- */
.gd-brief { position: relative; margin: clamp(16px, 2.5vw, 28px) 0 clamp(32px, 4.5vw, 52px); padding: 26px clamp(20px, 3vw, 32px) 22px; border-radius: 6px 22px 22px 22px; background: linear-gradient(180deg, rgba(76, 201, 255, .06), transparent 70%), var(--ink-850); border: 1px solid rgba(76, 201, 255, .22); box-shadow: var(--shadow-site); }
.gd-brief .tape { top: -11px; left: 30px; }
.gd-brief h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.gd-brief h2 .sticker { font-size: 13px; }
.gd-brief-list { margin: 16px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 36px; }
.gd-brief-list dt { font: 700 .78rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--sky); }
.gd-brief-list dd { margin: 6px 0 0; color: var(--text-2); line-height: 1.65; }
.gd-brief-list b { color: var(--text); }

/* ---------- steps ---------- */
.gd-steps { list-style: none; margin: 18px 0 0 !important; padding: 0 !important; display: grid; gap: 30px !important; counter-reset: step; max-width: none !important; }
.gd-step { position: relative; padding-left: 52px; counter-increment: step; scroll-margin-top: calc(var(--nav-h) + 20px); }
.gd-step::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad-signal); color: #0a0c18; font: 800 .95rem var(--font-body); }
.gd-step::after { content: ''; position: absolute; left: 16px; top: 42px; bottom: -22px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--line-strong), transparent); }
.gd-step:last-child::after { display: none; }
.lg-sec .gd-step h3 { margin: 4px 0 0; font-size: 1.1rem; line-height: 1.35; }
.lg-sec .gd-step ul { margin-top: 10px; }
.lg-sec .gd-step li { color: var(--text-2); }

/* screenshots: never wider than the column, crisp at their own size, framed like a dashboard panel */
.gd-shot { margin: 16px 0 0; max-width: 100%; }
.gd-shot img { display: block; max-width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--ink-900); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .8); }
.lg-sec > .gd-shot { margin-top: 18px; }
/* a screenshot cropped part way down a panel fades out at the bottom instead of ending on a hard cut */
.gd-shot.is-cut img { -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent); border-bottom-color: transparent; }
/* each screenshot is a plain link to its image file, so a tap or click opens it full size (no script, nothing for the
   CSP to block); the link hugs the image and its alt text is the link's name. A quiet hint shows on narrow screens only. */
.gd-zoom { display: block; width: fit-content; max-width: 100%; border-radius: 14px; text-decoration: none; cursor: zoom-in; }
.gd-zoom:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.gd-zoom-hint { display: none; }
.gd-zoom-hint svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- troubleshooting and next steps ---------- */
.gd-faq { margin: 14px 0 0; display: grid; gap: 12px; }
.gd-faq > div { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.gd-faq dt { color: var(--text); font-weight: 800; line-height: 1.45; }
.gd-faq dd { margin: 6px 0 0; color: var(--text-2); line-height: 1.65; }
.gd-faq code { font: 500 .9em var(--font-mono); color: var(--mint); background: rgba(61, 245, 176, .08); padding: 1px 6px; border-radius: 6px; }
.lg-sec .gd-next { list-style: none; padding: 0; gap: 10px; }
.lg-sec .gd-next li { padding-left: 26px; position: relative; }
.lg-sec .gd-next li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 12px; height: 2px; border-radius: 2px; background: var(--mint); }
.lg-sec .gd-next li::after { content: ''; position: absolute; left: 8px; top: calc(.62em - 3px); width: 6px; height: 6px; border: solid var(--mint); border-width: 2px 2px 0 0; transform: rotate(45deg); }

/* ---------- the /guides index ---------- */
.gd-index { padding-bottom: clamp(56px, 8vw, 110px); }
.gd-cards { list-style: none; margin: clamp(8px, 2vw, 20px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; counter-reset: none; }
.gd-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px; border-radius: 20px; background: var(--ink-850); border: 1px solid var(--line-strong); box-shadow: var(--shadow-site); transition: border-color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.gd-card:hover { border-color: rgba(76, 201, 255, .45); transform: translateY(-2px); }
.gd-card:focus-within { border-color: var(--sky); }
.gd-card-n { margin: 0; font: 700 .8rem var(--font-mono); letter-spacing: .08em; color: var(--mint); }
.gd-card-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 1.8vw, 1.3rem); letter-spacing: -.02em; line-height: 1.25; }
.gd-card-title a { color: var(--text); text-decoration: none; }
/* the whole card opens the guide; the topic links below sit above this layer */
.gd-card-title a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.gd-card-title a:focus-visible { outline: none; }
.gd-card-title a:focus-visible::after { outline: 2px solid var(--sky); outline-offset: 3px; }
.gd-card-sum { margin: 0; color: var(--text-2); line-height: 1.6; }
.gd-card-sum code { font: 500 .9em var(--font-mono); color: var(--mint); }
.gd-card-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .86rem; color: var(--text-2); }
.gd-card-meta time { color: var(--text); font-weight: 700; }
.gd-card-topics { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .84rem; }
.gd-card-covers { color: var(--text-2); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .72rem; }
.gd-card-topics a { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); color: var(--text-2); font-weight: 700; text-decoration: none; }
.gd-card-topics a:hover { color: var(--text); border-color: rgba(160, 170, 255, .38); }

.gd-help { margin-top: clamp(28px, 4vw, 44px); padding: 22px clamp(20px, 3vw, 28px); border-radius: 18px; border: 1px dashed var(--line-strong); }
.gd-help h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.gd-help p { margin-top: 8px; color: var(--text-2); line-height: 1.65; }

@media (max-width: 720px) {
  .gd-brief-list, .gd-cards { grid-template-columns: minmax(0, 1fr); }
  .gd-crumbs { padding-right: 78px; }
  .gd-crumbs li:last-child { display: none; } /* the page title follows straight after */
  .gd-step { padding-left: 44px; }
  .gd-step::before { width: 30px; height: 30px; font-size: .88rem; }
  .gd-step::after { left: 14px; top: 38px; }
  .gd-shot img { border-radius: 10px; }
  .gd-zoom { border-radius: 10px; }
  .gd-zoom-hint { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 8px; font-size: .78rem; font-weight: 600; color: var(--text-2); }
}
@media (prefers-reduced-motion: reduce) {
  .gd-card, .gd-card:hover { transition: none; transform: none; }
}
@media print {
  .gd-brief { box-shadow: none; }
  .gd-shot img { box-shadow: none; }
}
