/* ScanBeyond Knowledge Base — Guide Shared Styles */
.guide-page { max-width: 860px; margin: 0 auto; padding: 40px 24px 96px; }

/* Back button + search bar row */
.guide-back-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.guide-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  padding: 7px 14px 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(15,23,42,0.5);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.guide-back-btn:hover { color: #38bdf8; border-color: rgba(56,189,248,0.35); background: rgba(56,189,248,0.07); }
.guide-back-btn svg { flex-shrink: 0; }
.guide-search-form { flex: 1; min-width: 180px; max-width: 380px; }
.guide-search-wrap { position: relative; }
.guide-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #475569; pointer-events: none; }
.guide-search-input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(15,23,42,0.6);
  color: #e2e8f0;
  font-size: 13.5px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.guide-search-input::placeholder { color: #475569; }
.guide-search-input:focus { border-color: rgba(56,189,248,0.45); box-shadow: 0 0 0 3px rgba(56,189,248,0.1); }

.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #e2e8f0;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}
.kb-brand-logo {
  width: 24px;
  height: 29px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.55))
          drop-shadow(0 0 18px rgba(56, 189, 248, 0.5))
          drop-shadow(0 0 36px rgba(14, 116, 144, 0.45));
}
[data-theme="light"] .kb-brand-logo {
  filter: brightness(0.4) saturate(0.7) drop-shadow(0 0 6px rgba(15, 23, 42, 0.25));
}
.guide-brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 0 0 6px rgba(56,189,248,0.12);
}
.guide-nav { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #475569; margin-bottom: 36px; flex-wrap: wrap; }
.guide-nav a { color: #64748b; text-decoration: none; }
.guide-nav a:hover { color: #38bdf8; }
.guide-nav span { color: #334155; }
.guide-header {
  margin-bottom: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr);
  column-gap: 44px;
  row-gap: 12px;
  align-items: start;
}
.guide-category { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.guide-meta { display: grid; gap: 8px; font-size: 12.5px; color: #475569; margin-top: 10px; grid-column: 2; align-content: start; border-left: 1px solid rgba(148,163,184,0.2); padding-left: 18px; }
.guide-meta span { display: flex; align-items: center; gap: 5px; }
.guide-header h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.1; color: #f1f5f9; letter-spacing: -0.03em; margin: 0; max-width: 18ch; text-wrap: balance; }
.guide-intro { font-size: 1.05rem; color: #94a3b8; line-height: 1.72; margin: 0; max-width: 62ch; grid-column: 2; grid-row: 1 / span 2; border-left: 1px solid rgba(148,163,184,0.2); padding-left: 18px; }
.guide-toc { background: rgba(15,23,42,0.7); border: 1px solid rgba(148,163,184,0.15); border-radius: 14px; padding: 24px 28px; margin-bottom: 48px; }
.guide-toc h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #475569; margin: 0 0 14px; }
.guide-toc ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.guide-toc li a { color: #94a3b8; text-decoration: none; font-size: 14px; }
.guide-toc li a:hover { color: #38bdf8; }
.guide-body h2 { font-size: 1.45rem; font-weight: 800; color: #e2e8f0; margin: 52px 0 16px; padding-top: 8px; line-height: 1.25; border-top: 1px solid rgba(148,163,184,0.1); }
.guide-body h3 { font-size: 1.1rem; font-weight: 700; color: #cbd5e1; margin: 28px 0 10px; }
.guide-body p { color: #94a3b8; line-height: 1.75; margin-bottom: 18px; font-size: 15.5px; }
.guide-body ul, .guide-body ol { color: #94a3b8; line-height: 1.75; margin-bottom: 18px; padding-left: 24px; font-size: 15.5px; }
.guide-body li { margin-bottom: 8px; }
.guide-body strong { color: #e2e8f0; }
.guide-body a { color: #38bdf8; text-decoration: underline; text-underline-offset: 3px; }
.warn-box { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25); border-left: 4px solid #ef4444; border-radius: 10px; padding: 18px 20px; margin: 24px 0; }
.warn-box .box-label { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #f87171; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.warn-box p, .warn-box li { color: #fca5a5; font-size: 14.5px; }
.tip-box { background: rgba(52,211,153,0.07); border: 1px solid rgba(52,211,153,0.2); border-left: 4px solid #34d399; border-radius: 10px; padding: 18px 20px; margin: 24px 0; }
.tip-box .box-label { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #34d399; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.tip-box p, .tip-box li { color: #6ee7b7; font-size: 14.5px; }
.info-box { background: rgba(56,189,248,0.07); border: 1px solid rgba(56,189,248,0.2); border-left: 4px solid #38bdf8; border-radius: 10px; padding: 18px 20px; margin: 24px 0; }
.info-box .box-label { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #38bdf8; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.info-box p, .info-box li { color: #7dd3fc; font-size: 14.5px; }
.step-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.step-list li { display: flex; gap: 14px; }
.step-num { width: 28px; height: 28px; min-width: 28px; background: rgba(56,189,248,0.15); border: 1px solid rgba(56,189,248,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #38bdf8; margin-top: 2px; }
.step-content { color: #94a3b8; font-size: 15px; line-height: 1.65; }
.step-content strong { color: #e2e8f0; }
.guide-cta { background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,41,59,0.9)); border: 1px solid rgba(56,189,248,0.25); border-radius: 18px; padding: 40px 36px; margin: 60px 0; text-align: center; }
.guide-cta h3 { font-size: 1.35rem; font-weight: 800; color: #f1f5f9; margin: 0 0 12px; }
.guide-cta p { color: #64748b; margin: 0 0 24px; line-height: 1.6; }
.guide-cta-btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 28px; background: linear-gradient(135deg, #0ea5e9, #2563eb); color: #fff; font-weight: 700; border-radius: 10px; text-decoration: none; font-size: 15px; box-shadow: 0 8px 24px rgba(14,165,233,0.3); transition: all 0.2s ease; }
.guide-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(14,165,233,0.4); }
.related-guides { margin-top: 64px; }
.related-guides h3 { font-size: 1.1rem; font-weight: 800; color: #e2e8f0; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.related-card { --tilt-x: 0deg; --tilt-y: 0deg; --lift-y: 0px; --sheen-x: 50%; --sheen-y: 50%; --sheen-opacity: 0; display: flex; flex-direction: column; gap: 8px; background: rgba(15,23,42,0.6); border: 1px solid rgba(148,163,184,0.13); border-radius: 12px; padding: 20px; text-decoration: none; transition: border-color 280ms cubic-bezier(0.22, 1, 0.36, 1), transform 280ms cubic-bezier(0.22, 1, 0.36, 1); position: relative; overflow: hidden; transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift-y)); transform-style: preserve-3d; }
.related-card::after { content: ''; position: absolute; inset: -1px; background: radial-gradient(200px circle at var(--sheen-x) var(--sheen-y), rgba(125,211,252,0.13), transparent 65%); opacity: var(--sheen-opacity); transition: opacity 240ms cubic-bezier(0.22, 1, 0.36, 1); pointer-events: none; }
.related-card:hover { --lift-y: -1.5px; border-color: rgba(56,189,248,0.25); }
.related-card-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.related-card h4 { font-size: 14px; font-weight: 700; color: #cbd5e1; line-height: 1.4; margin: 0; }
.related-card-arrow { color: #38bdf8; font-size: 13px; margin-top: 2px; }
.faq-item { border-bottom: 1px solid rgba(148,163,184,0.1); padding: 22px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 16px; font-weight: 700; color: #e2e8f0; margin-bottom: 10px; }
.faq-a { color: #94a3b8; font-size: 15px; line-height: 1.7; }
.reveal-item {
  opacity: 0;
  transform: translateY(18px) scale(0.995);
  filter: blur(2px);
  transition:
    opacity 560ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 760ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}
.reveal-item.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}
.guide-page + #footerText { margin-top: 12px; }
@media (max-width: 980px) {
  .guide-header {
    display: block;
  }
  .guide-header h1 {
    max-width: none;
  }
  .guide-intro {
    margin-top: 16px;
    border-left: none;
    padding-left: 0;
  }
  .guide-meta {
    margin-top: 16px;
    border-left: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
}
@media (max-width: 600px) {
  .guide-page { padding: 28px 18px 72px; }
  .guide-body h2 { font-size: 1.25rem; margin-top: 40px; }
  .guide-cta { padding: 28px 20px; }
  .related-grid { grid-template-columns: 1fr; }
  .guide-back-search { flex-direction: column; align-items: stretch; gap: 10px; }
  .guide-search-form { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none !important;
  }
  .related-card {
    transform: none !important;
  }
  .related-card::after {
    opacity: 0 !important;
  }
}
