/* =========================================================
   Shared "step guide" page template — for any single-topic
   how-to page linked from the "All Guides" / "Updates" /
   "Troubleshooting" nav dropdowns (numbered steps, screenshot
   lightbox, warning callout). Markup shape:

   <div class="guide-page">
     <div class="gp-banner">
       <div class="gp-banner-icon">🎧</div>
       <h1 class="gp-banner-title">Page Title</h1>
       <p class="gp-banner-sub">One-line description.</p>
     </div>
     <div class="wrap"><div class="card">...steps...</div></div>
     <div id="lightbox">...</div>
   </div>

   The banner is a sibling of .wrap (not inside it) so it can
   render full-bleed edge-to-edge; .wrap keeps the 760px reading
   column for the card below it, and rides up slightly over the
   banner's bottom edge for a layered look.

   Also owns #lightbox (shared with js/guide.js) since that's
   used by both this template AND the New Hire Setup Guide app
   — one lightbox implementation, not two.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&display=swap');

.guide-page, .guide-page *, .guide-page *::before, .guide-page *::after {
  box-sizing: border-box;
}

.guide-page {
  --gp-bg:#f5f6f8;--gp-surface:#fff;--gp-border:#e2e5ea;--gp-text:#111827;--gp-muted:#6b7280;
  --gp-accent:#3b6ef0;--gp-accent-dark:#274fc0;--gp-warn-bg:#fffbeb;--gp-warn-border:#fde68a;--gp-r:10px;
  font-family:'DM Sans',sans-serif;color:var(--gp-text);font-size:14px;line-height:1.55;
  background:var(--gp-bg);
}

.guide-page .gp-banner {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 48px 24px 42px;
  color: #fff;
  background-color: var(--gp-accent);
  background-image:
    radial-gradient(rgba(255,255,255,.16) 1.5px, transparent 1.5px),
    linear-gradient(135deg, #5c8bf7 0%, var(--gp-accent) 55%, var(--gp-accent-dark) 100%);
  background-size: 20px 20px, 100% 100%;
}
.guide-page .gp-banner-icon {
  width: 84px; height: 72px; margin: 0 auto 16px;
  background: #fff;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(16,34,90,.22);
  padding: 7px;
  overflow: hidden;
  font-size: 27px;
}
.guide-page .gp-banner-icon img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; display: block;
}
.guide-page .gp-banner-title { font-size: 26px; font-weight: 700; line-height: 1.25; margin-bottom: 8px; }
.guide-page .gp-banner-sub { font-size: 13.5px; color: rgba(255,255,255,.85); max-width: 480px; margin: 0 auto; line-height: 1.5; }

.guide-page .wrap { position: relative; z-index: 1; max-width: 760px; margin: -26px auto 0; padding: 0 18px 40px; }
.guide-page .card { background: var(--gp-surface); border: 1px solid var(--gp-border); border-radius: var(--gp-r); padding: 16px 18px; box-shadow: 0 1px 2px rgba(17,24,39,.04); }
.guide-page .callout { display: flex; gap: 9px; align-items: flex-start; background: var(--gp-warn-bg); border: 1px solid var(--gp-warn-border); border-radius: var(--gp-r); padding: 11px 13px; font-size: 12.5px; color: #92660b; font-weight: 600; margin-bottom: 16px; line-height: 1.45; }
.guide-page .callout-icon { flex-shrink: 0; }
.guide-page .callout a { color: inherit; text-decoration: underline; }
/* Blue "tip" variant — for helpful asides that aren't a caution/warning.
   Use <div class="callout tip">; the base .callout rule above still
   supplies layout, only color changes. */
.guide-page .callout.tip { background: #eef2fd; border-color: #c7d6fb; color: #1e3a8a; }

/* Plain bulleted list for reference content (platform lists, requirement
   lists, resource links, sub-points under a numbered step) that doesn't
   fit the numbered .step pattern. Supports one level of nested <ul>. */
.guide-page .bullets { margin: 8px 0 12px; padding-left: 20px; }
.guide-page .bullets > li { font-size: 13px; color: var(--gp-text); margin-bottom: 6px; }
.guide-page .bullets > li::marker { color: var(--gp-muted); }
.guide-page .bullets ul { margin: 5px 0 6px; padding-left: 18px; }
.guide-page .bullets ul li { font-size: 12.5px; color: #374151; margin-bottom: 3px; }
.guide-page .bullets a { color: var(--gp-accent); text-decoration: none; }
.guide-page .bullets a:hover { text-decoration: underline; }

/* Prose helpers shared by every content shape (numbered guide, single-flow
   article, or accordion section): a plain paragraph, a minor inline
   sub-heading, and a muted inline cross-reference note. */
.guide-page .body-text { font-size: 13.5px; color: var(--gp-text); margin-bottom: 12px; }
.guide-page .body-text:last-child { margin-bottom: 0; }
.guide-page .body-text a { color: var(--gp-accent); text-decoration: none; }
.guide-page .body-text a:hover { text-decoration: underline; }
.guide-page .subhead { font-size: 13px; font-weight: 700; color: var(--gp-text); margin: 18px 0 8px; }
.guide-page .xref { color: var(--gp-muted); }

/* Major section divider within a single non-collapsing card (e.g. a
   troubleshooting article with a couple of named sections in reading
   order — "Why this happens" / "How to fix it" — that doesn't need
   expand/collapse). Bigger and border-separated, unlike .subhead above. */
.guide-page .section-title { font-size: 15px; font-weight: 700; margin: 24px 0 10px; padding-top: 14px; border-top: 1px solid #eef0f4; }
.guide-page .section-title.first, .guide-page .section-title:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.guide-page ol.steps { list-style: none; margin: 0; padding: 0; }
.guide-page .step { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid #eef0f4; }
.guide-page .step:first-child { padding-top: 0; }
.guide-page .step:last-child { border-bottom: none; padding-bottom: 0; }
.guide-page .step-num { flex-shrink: 0; width: 24px; height: 24px; background: var(--gp-accent); color: #fff; border-radius: 50%; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.guide-page .step-body { flex: 1; min-width: 0; }
.guide-page .step-text { font-size: 13.5px; color: var(--gp-text); padding-top: 2px; }
.guide-page .step-img-wrap { margin-top: 8px; }
.guide-page .step-img { display: block; max-width: 88%; max-height: 260px; width: auto; height: auto; border-radius: 7px; border: 1px solid var(--gp-border); object-fit: contain; cursor: zoom-in; }
.guide-page .step-img:hover { opacity: .92; }
.guide-page .img-fallback { font-size: 11px; color: var(--gp-muted); font-style: italic; display: none; margin-top: 2px; }

#lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.82); z-index: 9999; align-items: center; justify-content: center; cursor: zoom-out; }
#lightbox.open { display: flex; }
#lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 6px; object-fit: contain; box-shadow: 0 4px 32px rgba(0,0,0,.5); }

@media (max-width: 600px) {
  .guide-page .step-img { max-width: 100%; }
  .guide-page .wrap { margin-top: -20px; padding: 0 14px 32px; }
  .guide-page .gp-banner { padding: 38px 18px 34px; }
  .guide-page .gp-banner-icon { width: 68px; height: 58px; font-size: 22px; margin-bottom: 12px; }
  .guide-page .gp-banner-title { font-size: 21px; }
}

@media print {
  .guide-page .gp-banner { background: none; color: #000; padding: 0 0 14px; }
  .guide-page .gp-banner-icon { display: none; }
  .guide-page .gp-banner-sub { color: #4b5563; }
  .guide-page .wrap { margin-top: 0; }
  .guide-page .card { border: none; box-shadow: none; padding: 0; }
  .guide-page .step-img { max-width: 60%; }
}
