/*
 * Guide Explainer Pages — Session B
 * Warm editorial layout — visually distinct from lab-test.css
 * All selectors scoped to .ge-page to prevent any overlap
 * @package LML 2.2.0
 */

/* ══ CSS VARIABLES (scoped) ══════════════════════════════════ */
.ge-page {
  /* Palette — warm amber editorial, not teal clinical */
  --ge-amber:       #B45309;
  --ge-amber-mid:   #D97706;
  --ge-amber-light: #FEF3C7;
  --ge-amber-xlt:   #FFFBEB;
  --ge-amber-line:  #FCD34D;

  --ge-ink:         #1C1917;
  --ge-ink-2:       #44403C;
  --ge-ink-3:       #78716C;
  --ge-ink-4:       #A8A29E;

  --ge-paper:       #FAFAF9;
  --ge-paper-2:     #F5F5F4;
  --ge-paper-3:     #E7E5E4;

  --ge-sage:        #4A7C59;
  --ge-sage-lt:     #DCFCE7;
  --ge-red-lt:      #FEF2F2;
  --ge-red:         #B91C1C;
  --ge-blue-lt:     #EFF6FF;
  --ge-blue:        #1D4ED8;

  --ge-border:      #E7E5E4;
  --ge-shadow:      0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  --ge-shadow-md:   0 4px 20px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);

  --ge-radius:      12px;
  --ge-radius-sm:   8px;
  --ge-radius-lg:   20px;

  --ge-w:           1160px;
  --ge-col:         680px; /* main text column */
  --ge-side:        260px;
  --ge-gap:         48px;

  --ge-serif:       'Georgia', 'Times New Roman', serif;
  --ge-sans:        'Poppins', system-ui, sans-serif;
}


/* ── Font override — prevent global h1-h6 Poppins rule from bleeding in ── */
.ge-page h1, .ge-page h2, .ge-page h3, .ge-page h4 {
  font-family: var(--ge-serif) !important;
}

/* ══ RESET WITHIN SCOPE ══════════════════════════════════════ */
.ge-page *, .ge-page *::before, .ge-page *::after { box-sizing: border-box; margin: 0; padding: 0; }
.ge-page a { text-decoration: none; }
.ge-page img { display: block; max-width: 100%; }
.ge-page ul { list-style: none; }

/* ══ PAGE WRAPPER ════════════════════════════════════════════ */
.ge-page {
  background: var(--ge-paper);
  color: var(--ge-ink);
  font-family: var(--ge-sans);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ══ HERO ════════════════════════════════════════════════════ */
.ge-hero {
  background: var(--ge-ink);
  position: relative;
  overflow: hidden;
  padding: 72px 24px 0;
}

/* Decorative ruled lines top-right */
.ge-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 380px; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 28px,
    rgba(255,255,255,.03) 28px,
    rgba(255,255,255,.03) 29px
  );
  pointer-events: none;
}

/* Warm glow blob top-left */
.ge-hero::after {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(180,83,9,.18) 0%, transparent 65%);
  pointer-events: none;
}

.ge-hero-inner {
  max-width: var(--ge-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}

/* Left: text */
.ge-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.ge-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(180,83,9,.2);
  border: 1px solid rgba(180,83,9,.35);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 10.5px;
  font-weight: 700;
  color: #FCD34D;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.ge-read-time {
  font-size: 12px;
  color: rgba(255,255,255,.45);
  display: flex;
  align-items: center;
  gap: 5px;
}

.ge-hero-h1 {
  font-family: var(--ge-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.85rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.22;
  letter-spacing: -.02em;
  margin-bottom: 20px;
  max-width: 640px;
}

.ge-hero-sub {
  font-size: 15.5px;
  color: rgba(255,255,255,.62);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 32px;
}

/* Quick learn chips */
.ge-quick-learn {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}

.ge-ql-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ge-amber-mid);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ge-ql-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.72);
  line-height: 1.5;
}

.ge-ql-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(180,83,9,.25);
  border: 1px solid rgba(180,83,9,.4);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.ge-ql-dot svg { stroke: #FCD34D; }

/* Reviewer strip */
.ge-reviewer-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--ge-radius);
  padding: 12px 18px;
  margin-bottom: 48px;
}

.ge-reviewer-ava {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(180,83,9,.25);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ge-reviewer-ava img { width: 100%; height: 100%; object-fit: cover; }

.ge-reviewer-info { flex: 1; }
.ge-reviewer-role { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .07em; }
.ge-reviewer-name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); }

.ge-medrev-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(74,124,89,.2);
  border: 1px solid rgba(74,124,89,.35);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 10.5px;
  font-weight: 700;
  color: #86EFAC;
  letter-spacing: .05em;
}

/* Right: document illustration */
.ge-hero-doc {
  align-self: flex-end;
  position: relative;
}

.ge-doc-card {
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 28px 24px;
  box-shadow: 0 -8px 40px rgba(0,0,0,.3);
  min-height: 280px;
}

.ge-doc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ge-border);
}

.ge-doc-logo-dot {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--ge-amber);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ge-doc-logo-dot svg { stroke: #fff; }
.ge-doc-title-sm { font-size: 12px; font-weight: 700; color: var(--ge-ink); }
.ge-doc-sub-sm { font-size: 10px; color: var(--ge-ink-3); }

.ge-doc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px dashed var(--ge-paper-3);
  font-size: 11.5px;
  gap: 8px;
}

.ge-doc-row:last-child { border-bottom: none; }
.ge-doc-label { color: var(--ge-ink-3); font-weight: 500; flex-shrink: 0; }
.ge-doc-val { font-weight: 700; color: var(--ge-ink); text-align: right; }
.ge-doc-val.flag-h { color: #DC2626; }
.ge-doc-val.flag-l { color: #2563EB; }
.ge-doc-val.flag-ok { color: #059669; }
.ge-doc-val.flag-w { color: #D97706; }

/* ══ KEY FACTS BAR ═══════════════════════════════════════════ */
.ge-facts-bar {
  background: var(--ge-amber-xlt);
  border-top: 3px solid var(--ge-amber-line);
  border-bottom: 1px solid var(--ge-border);
}

.ge-facts-inner {
  max-width: var(--ge-w);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.ge-fact {
  flex: 1;
  min-width: 160px;
  padding: 4px 24px 4px 0;
  border-right: 1px solid var(--ge-amber-line);
  margin-right: 24px;
}

.ge-fact:last-child { border-right: none; margin-right: 0; }
.ge-fact-label { font-size: 10px; font-weight: 700; color: var(--ge-amber); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
.ge-fact-value { font-size: 14.5px; font-weight: 700; color: var(--ge-ink); line-height: 1.3; }

/* ══ MAIN CONTENT LAYOUT ═════════════════════════════════════ */
.ge-content-wrap {
  max-width: var(--ge-w);
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: grid;
  grid-template-columns: 1fr var(--ge-side);
  gap: var(--ge-gap);
  align-items: start;
}

/* ── MAIN COLUMN ─────────────────────────────────────────── */
.ge-main {}

/* Content section */
.ge-section {
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--ge-border);
}

.ge-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.ge-section-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ge-amber);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ge-section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--ge-amber-mid);
  border-radius: 2px;
}

.ge-section-title {
  font-family: var(--ge-serif) !important;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 700;
  color: var(--ge-ink);
  line-height: 1.3;
  letter-spacing: -.018em;
  margin-bottom: 16px;
}

.ge-section-lead {
  font-size: 16px;
  font-weight: 500;
  color: var(--ge-ink-2);
  line-height: 1.7;
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 3px solid var(--ge-amber-mid);
}

.ge-body-p {
  font-size: 15px;
  color: var(--ge-ink-2);
  line-height: 1.8;
  margin-bottom: 16px;
}

.ge-body-p:last-child { margin-bottom: 0; }

/* ── CALLOUT BOXES ───────────────────────────────────────── */
.ge-callout {
  border-radius: var(--ge-radius);
  padding: 18px 20px;
  margin: 24px 0;
  display: flex;
  gap: 14px;
}

.ge-callout-ico {
  width: 34px; height: 34px;
  border-radius: var(--ge-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ge-callout-body { flex: 1; }
.ge-callout-title { font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.ge-callout-text { font-size: 13.5px; line-height: 1.65; }

/* Tip */
.ge-callout.tip { background: var(--ge-amber-light); border: 1px solid rgba(180,83,9,.2); }
.ge-callout.tip .ge-callout-ico { background: rgba(180,83,9,.15); }
.ge-callout.tip .ge-callout-ico svg { stroke: var(--ge-amber); }
.ge-callout.tip .ge-callout-title { color: var(--ge-amber); }
.ge-callout.tip .ge-callout-text { color: #78450A; }

/* Info */
.ge-callout.info { background: var(--ge-blue-lt); border: 1px solid rgba(29,78,216,.15); }
.ge-callout.info .ge-callout-ico { background: rgba(29,78,216,.1); }
.ge-callout.info .ge-callout-ico svg { stroke: var(--ge-blue); }
.ge-callout.info .ge-callout-title { color: var(--ge-blue); }
.ge-callout.info .ge-callout-text { color: #1E3A8A; }

/* Warning */
.ge-callout.warning { background: var(--ge-red-lt); border: 1px solid rgba(185,28,28,.15); }
.ge-callout.warning .ge-callout-ico { background: rgba(185,28,28,.1); }
.ge-callout.warning .ge-callout-ico svg { stroke: var(--ge-red); }
.ge-callout.warning .ge-callout-title { color: var(--ge-red); }
.ge-callout.warning .ge-callout-text { color: #7F1D1D; }

/* ── NUMBERED STEPS ──────────────────────────────────────── */
.ge-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.ge-step {
  display: flex;
  gap: 18px;
  background: #fff;
  border: 1.5px solid var(--ge-border);
  border-radius: var(--ge-radius);
  padding: 18px 20px;
  transition: border-color .2s, box-shadow .2s;
}

.ge-step:hover {
  border-color: rgba(180,83,9,.3);
  box-shadow: var(--ge-shadow);
}

.ge-step-num {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--ge-amber-light);
  border: 2px solid var(--ge-amber-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--ge-amber);
  flex-shrink: 0;
  line-height: 1;
  font-family: var(--ge-sans);
  letter-spacing: -.02em;
}

.ge-step-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ge-ink);
  margin-bottom: 5px;
}

.ge-step-body {
  font-size: 13.5px;
  color: var(--ge-ink-3);
  line-height: 1.65;
}

/* ── DATA TABLE ──────────────────────────────────────────── */
.ge-table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  border-radius: var(--ge-radius);
  border: 1.5px solid var(--ge-border);
}

.ge-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ge-table thead th {
  background: var(--ge-ink);
  color: #fff;
  padding: 11px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ge-table thead th:first-child { border-radius: 10px 0 0 0; }
.ge-table thead th:last-child { border-radius: 0 10px 0 0; }

.ge-table tbody tr {
  border-bottom: 1px solid var(--ge-border);
  transition: background .15s;
}

.ge-table tbody tr:last-child { border-bottom: none; }
.ge-table tbody tr:hover { background: var(--ge-amber-xlt); }

.ge-table tbody td {
  padding: 11px 14px;
  color: var(--ge-ink-2);
  line-height: 1.5;
  vertical-align: top;
}

.ge-table tbody td:first-child { font-weight: 600; color: var(--ge-ink); }

.ge-table .cell-yes { color: var(--ge-sage); font-weight: 700; }
.ge-table .cell-no  { color: var(--ge-ink-4); }
.ge-table .cell-pref { color: var(--ge-amber); font-weight: 600; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.ge-sidebar {
  position: sticky;
  top: 100px;
}

/* TOC */
.ge-toc {
  background: #fff;
  border: 1.5px solid var(--ge-border);
  border-radius: var(--ge-radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--ge-shadow);
}

.ge-toc-hd {
  background: var(--ge-ink);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.ge-toc-hd svg { stroke: #FCD34D; flex-shrink: 0; }
.ge-toc-hd-txt { font-size: 11.5px; font-weight: 700; color: #fff; letter-spacing: .04em; text-transform: uppercase; }

.ge-toc-list { padding: 10px 0; }

.ge-toc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
}

.ge-toc-item:hover { background: var(--ge-amber-xlt); }

.ge-toc-item.active {
  background: var(--ge-amber-light);
  border-left: 3px solid var(--ge-amber);
  padding-left: 15px;
}

.ge-toc-n {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--ge-paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--ge-ink-3);
  flex-shrink: 0;
  transition: background .15s, color .15s;
}

.ge-toc-item.active .ge-toc-n { background: var(--ge-amber); color: #fff; }
.ge-toc-item-txt { font-size: 12.5px; color: var(--ge-ink-2); line-height: 1.4; font-weight: 500; }
.ge-toc-item.active .ge-toc-item-txt { color: var(--ge-amber); font-weight: 700; }

/* Progress */
.ge-progress-wrap { padding: 12px 18px 14px; border-top: 1px solid var(--ge-border); }
.ge-progress-label { font-size: 10px; color: var(--ge-ink-4); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 7px; display: flex; justify-content: space-between; }
.ge-progress-bar-bg { height: 5px; background: var(--ge-paper-3); border-radius: 100px; overflow: hidden; }
.ge-progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--ge-amber), var(--ge-amber-mid)); border-radius: 100px; transition: width .4s ease; width: 0%; }

/* Related tests sidebar card */
.ge-sb-card {
  background: #fff;
  border: 1.5px solid var(--ge-border);
  border-radius: var(--ge-radius-lg);
  overflow: hidden;
  box-shadow: var(--ge-shadow);
}

.ge-sb-card-hd {
  background: linear-gradient(135deg, #B45309, #D97706);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ge-sb-card-hd svg { stroke: rgba(255,255,255,.8); }
.ge-sb-card-hd-txt { font-size: 11.5px; font-weight: 700; color: #fff; letter-spacing: .04em; text-transform: uppercase; }

.ge-sb-links { padding: 8px 0; }

.ge-sb-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  text-decoration: none;
  transition: background .15s;
}

.ge-sb-link:hover { background: var(--ge-amber-xlt); }

.ge-sb-link-ico {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--ge-amber-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ge-sb-link-ico svg { stroke: var(--ge-amber); }
.ge-sb-link-txt { font-size: 12.5px; font-weight: 600; color: var(--ge-ink); line-height: 1.35; }

/* ══ KNOWLEDGE RESOURCES (same section, ge- scoped) ═════════ */
.ge-page .kr-sec { background: var(--ge-paper-2); border-top: 1px solid var(--ge-border); padding: 64px 0; }

/* ══ DISCLAIMER ══════════════════════════════════════════════ */
.ge-disc {
  background: var(--ge-paper-2);
  border-top: 1px solid var(--ge-border);
  padding: 24px;
}

.ge-disc-inner {
  max-width: var(--ge-w);
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ge-disc-inner svg { stroke: var(--ge-ink-4); flex-shrink: 0; margin-top: 2px; }
.ge-disc-text { font-size: 12px; color: var(--ge-ink-4); line-height: 1.65; }
.ge-disc-text strong { color: var(--ge-ink-3); }

/* ══ SCROLL ANIMATIONS ═══════════════════════════════════════ */
.ge-fade {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s ease, transform .45s ease;
}

.ge-fade.in {
  opacity: 1;
  transform: translateY(0);
}

/* ══ RESPONSIVE ══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .ge-hero-inner { grid-template-columns: 1fr; }
  .ge-hero-doc { display: none; }
}

@media (max-width: 900px) {
  .ge-content-wrap {
    grid-template-columns: 1fr;
  }
  .ge-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .ge-hero { padding: 48px 16px 0; }
  .ge-hero-h1 { font-size: 1.6rem; }
  .ge-content-wrap { padding: 36px 16px 60px; }
  .ge-facts-inner { flex-direction: column; gap: 12px; }
  .ge-fact { border-right: none; border-bottom: 1px solid var(--ge-amber-line); padding-bottom: 12px; margin-bottom: 0; padding-right: 0; }
  .ge-fact:last-child { border-bottom: none; }
  .ge-sidebar { grid-template-columns: 1fr; }
}
