/* VeraScripts Light Guides Hub & Reader — Layered Depth & Polish (2026-11-27) */

.gh-page {
  background-color: #eaeef5;
  background-image:
    radial-gradient(960px 440px at 80% -6%, rgba(11, 111, 208, 0.095), transparent 62%),
    radial-gradient(640px 360px at 14% 8%, rgba(56, 189, 248, 0.065), transparent 60%);
  color: #0b1928;
  min-height: calc(100vh - 120px);
  padding: 36px 24px 88px;
}
.gh-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

/* ---------- Layered Hero + Elevated Search ---------- */
.gh-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(480px 260px at 100% 0%, rgba(11, 111, 208, 0.12), transparent 72%),
    linear-gradient(160deg, #ffffff 0%, #f3f8ff 100%);
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 22px;
  padding: clamp(30px, 4.5vw, 48px) clamp(24px, 4vw, 44px);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.045),
    0 14px 36px -16px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  margin-bottom: 40px;
}
.gh-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0b6fd0 0%, #38bdf8 55%, transparent 100%);
}
.gh-hero-inner { max-width: 700px; position: relative; z-index: 1; }
.gh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eaf4fe;
  border: 1px solid rgba(11, 111, 208, 0.2);
  color: #0b6fd0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.gh-hero h1 {
  margin: 0 0 10px;
  font-family: var(--font-display, "Clash Display", "Geist", sans-serif);
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #0b1928;
}
.gh-hero h1 em { font-style: normal; color: #0b6fd0; }
.gh-sub { margin: 0 0 24px; font-size: 16px; line-height: 1.55; color: #475569; max-width: 56ch; }

/* Elevated Search Pill */
.gh-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 560px;
  margin-bottom: 18px;
}
.gh-search-ico { position: absolute; left: 15px; color: #64748b; pointer-events: none; }
.gh-search {
  width: 100%;
  height: 48px;
  padding: 0 74px 0 44px;
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  background: #ffffff;
  color: #0b1928;
  font: inherit;
  font-size: 14.5px;
  box-shadow: 0 4px 14px -8px rgba(15, 23, 42, 0.14), inset 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.gh-search::placeholder { color: #94a3b8; }
.gh-search:focus {
  outline: none;
  border-color: #0b6fd0;
  box-shadow: 0 0 0 3px rgba(11, 111, 208, 0.15), 0 6px 18px -8px rgba(11, 111, 208, 0.25);
}
.gh-search-clear {
  position: absolute;
  right: 8px;
  height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: #eef2f7;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.gh-search-clear:hover { background: #dce4ef; color: #0b1928; }

/* Tactile Filter Tabs */
.gh-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.gh-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #d5dfec;
  background: #ffffff;
  color: #475569;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.gh-tab span { font-size: 11.5px; font-weight: 700; color: #64748b; }
.gh-tab:hover { border-color: #93c5fd; color: #0b1928; transform: translateY(-1px); }
.gh-tab.is-active {
  background: linear-gradient(180deg, #167ee6 0%, #0b6fd0 100%);
  border-color: #095fb4;
  color: #ffffff;
  box-shadow: 0 4px 12px -4px rgba(11, 111, 208, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.gh-tab.is-active span { color: rgba(255, 255, 255, 0.88); }

/* ---------- Sections & Uniform 3-Column Grid ---------- */
.gh-sections { display: flex; flex-direction: column; gap: 44px; }
.gh-section[hidden], .gh-card[hidden], .gh-empty[hidden] { display: none !important; }
.gh-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.09);
}
.gh-sec-head h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: #0b1928; }
.gh-sec-count { font-size: 12.5px; font-weight: 600; color: #64748b; }

.gh-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* ---------- Elevated Guide Card ---------- */
.gh-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.045),
    0 10px 26px -14px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.gh-card:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 111, 208, 0.34);
  box-shadow:
    0 4px 10px -4px rgba(11, 111, 208, 0.14),
    0 18px 34px -14px rgba(11, 111, 208, 0.24);
}

/* Strict 16:9 Media Frame with Rich Dimensional Gradients */
.gh-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: #dbeafe;
}
.gh-media.is-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 280ms ease;
}
.gh-card:hover .gh-media.is-art img { transform: scale(1.03); }
.gh-media.is-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  background:
    radial-gradient(220px 140px at 50% 10%, rgba(255, 255, 255, 0.65), transparent 70%),
    linear-gradient(145deg, #dcecff 0%, #c4dffb 100%);
}
.gh-media.is-icon.is-troubleshoot {
  background:
    radial-gradient(220px 140px at 50% 10%, rgba(255, 255, 255, 0.65), transparent 70%),
    linear-gradient(145deg, #e0e7ff 0%, #c7d6fe 100%);
}
.gh-media.is-icon.is-tuning {
  background:
    radial-gradient(220px 140px at 50% 10%, rgba(255, 255, 255, 0.65), transparent 70%),
    linear-gradient(145deg, #dcf0ff 0%, #bae0fd 100%);
}
.gh-media-badge {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(11, 111, 208, 0.18);
  color: #0b6fd0;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 22px -10px rgba(11, 111, 208, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 180ms ease;
}
.gh-card:hover .gh-media-badge { transform: translateY(-2px); }
.gh-media-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #094f99;
}

.gh-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 18px 20px 16px; }
.gh-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.gh-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef3f9;
  color: #475569;
  font-size: 11.5px;
  font-weight: 600;
}
.gh-owner-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eaf4fe;
  border: 1px solid rgba(11, 111, 208, 0.2);
  color: #0b6fd0;
  font-size: 11.5px;
  font-weight: 700;
}
.gh-time-pill { font-size: 12px; color: #64748b; font-weight: 500; }
.gh-card-title {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.32;
  color: #0b1928;
  transition: color 140ms ease;
}
.gh-card:hover .gh-card-title { color: #0b6fd0; }
.gh-card-desc {
  margin: 0;
  flex: 1 1 auto;
  font-size: 13.5px;
  line-height: 1.54;
  color: #475569;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gh-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
  font-size: 12.5px;
  color: #64748b;
}
.gh-read-link { display: inline-flex; align-items: center; gap: 5px; color: #0b6fd0; font-weight: 650; }
.gh-card:hover .gh-read-link svg { transform: translateX(3px); }
.gh-read-link svg { transition: transform 140ms ease; }

/* ---------- Empty State & Help Footer ---------- */
.gh-empty {
  text-align: center;
  padding: 48px 24px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 18px;
  box-shadow: 0 10px 26px -14px rgba(15, 23, 42, 0.1);
}
.gh-empty h3 { margin: 0 0 6px; font-size: 18px; color: #0b1928; }
.gh-empty p { margin: 0 0 16px; font-size: 14px; color: #475569; }
.gh-reset-btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #095fb4;
  background: linear-gradient(180deg, #167ee6 0%, #0b6fd0 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
}

.gh-help-band {
  margin-top: 48px;
  padding: 26px 30px;
  background: linear-gradient(160deg, #ffffff 0%, #f2f7ff 100%);
  border: 1px solid rgba(11, 111, 208, 0.18);
  border-radius: 18px;
  box-shadow: 0 10px 26px -14px rgba(15, 23, 42, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.gh-help-band h2 { margin: 0 0 4px; font-size: 18.5px; font-weight: 700; color: #0b1928; }
.gh-help-band p { margin: 0; font-size: 14px; color: #475569; }
.gh-help-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.gh-btn-primary,
.gh-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 140ms ease, filter 140ms ease, border-color 140ms ease;
}
.gh-btn-primary {
  background: linear-gradient(180deg, #167ee6 0%, #0b6fd0 100%);
  border: 1px solid #095fb4;
  color: #ffffff !important;
  box-shadow: 0 6px 16px -6px rgba(11, 111, 208, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.gh-btn-primary:hover { filter: brightness(0.96); transform: translateY(-1px); }
.gh-btn-ghost {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0b1928 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.gh-btn-ghost:hover { border-color: #94a3b8; background: #f8fafc; }
.gh-btn-full { width: 100%; }

/* ---------- Article Reader (/guides/{slug}) ---------- */
.gh-reader-wrap { max-width: 1060px; margin: 0 auto; }
.gh-crumb { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 13.5px; color: #5b6d82; }
.gh-crumb a { display: inline-flex; align-items: center; gap: 4px; color: #0b6fd0; font-weight: 650; text-decoration: none; }
.gh-crumb a:hover { text-decoration: underline; }

.gh-reader-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 28px;
  align-items: start;
}
.gh-article {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 20px;
  padding: clamp(26px, 4vw, 42px);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.045),
    0 14px 36px -16px rgba(15, 23, 42, 0.12);
}
.gh-art-head { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid #eef2f7; }
.gh-art-head h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #0b1928;
}
.gh-lede { margin: 0; font-size: 16px; line-height: 1.58; color: #475569; }
.gh-art-banner {
  margin-top: 20px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 10px 24px -14px rgba(15, 23, 42, 0.25);
  aspect-ratio: 16 / 9;
}
.gh-art-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }

.gh-prose { font-size: 15.5px; line-height: 1.7; color: #334155; }
.gh-prose h2 { margin: 32px 0 12px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: #0b1928; scroll-margin-top: 90px; }
.gh-prose h3 { margin: 24px 0 8px; font-size: 17px; font-weight: 650; color: #0b1928; }
.gh-prose p { margin: 0 0 16px; }
.gh-prose ul, .gh-prose ol { margin: 0 0 20px; padding-left: 22px; }
.gh-prose li { margin-bottom: 8px; }
.gh-prose strong, .gh-prose b { color: #0b1928; font-weight: 650; }
.gh-prose code {
  font-family: var(--font-mono, monospace);
  font-size: 13.5px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #eef3f9;
  border: 1px solid #d5dfec;
  color: #0958a8;
}
.gh-prose blockquote {
  margin: 20px 0;
  padding: 15px 19px;
  border-left: 3px solid #0b6fd0;
  border-radius: 0 12px 12px 0;
  background: #eff6ff;
  color: #0b1928;
}
.gh-prose blockquote p:last-child { margin-bottom: 0; }
.gh-prose table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 14px; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.gh-prose th, .gh-prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid #e2e8f0; }
.gh-prose th { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; background: #f4f7fb; }
.gh-prose a { color: #0b6fd0; font-weight: 500; }

.gh-paywall {
  margin-top: 28px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(11, 111, 208, 0.25);
  background: linear-gradient(155deg, #eef6ff 0%, #ffffff 100%);
  box-shadow: 0 8px 24px -12px rgba(11, 111, 208, 0.22);
}
.gh-paywall h3 { margin: 10px 0 8px; font-size: 19px; color: #0b1928; }
.gh-paywall p { margin: 0 0 16px; font-size: 14.5px; color: #475569; }
.gh-paywall-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.gh-related { margin-top: 36px; padding-top: 24px; border-top: 1px solid #eef2f7; }
.gh-related h3 { margin: 0 0 14px; font-size: 16px; font-weight: 700; color: #0b1928; }
.gh-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gh-related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px 16px;
  border-radius: 13px;
  border: 1px solid #e2e8f0;
  background: #f5f8fc;
  text-decoration: none;
  color: #0b1928;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}
.gh-related-card:hover { border-color: #93c5fd; background: #ffffff; transform: translateY(-1px); }
.gh-related-card b { font-size: 14.5px; line-height: 1.35; }

/* Right TOC Rail */
.gh-toc-col { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }
.gh-toc-card,
.gh-toc-help {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 16px;
  padding: 17px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 22px -12px rgba(15, 23, 42, 0.09);
}
.gh-toc-card[hidden] { display: none !important; }
.gh-toc-title {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #8494a7;
  margin-bottom: 10px;
}
.gh-toc-card nav { display: flex; flex-direction: column; gap: 3px; }
.gh-toc-card a { padding: 6px 9px; border-radius: 8px; font-size: 13px; color: #475569; text-decoration: none; line-height: 1.35; }
.gh-toc-card a:hover { background: #eaf4fe; color: #0b6fd0; }
.gh-toc-help b { display: block; font-size: 14.5px; color: #0b1928; margin-bottom: 4px; }
.gh-toc-help p { margin: 0 0 12px; font-size: 13px; line-height: 1.45; color: #64748b; }

@media (max-width: 980px) {
  .gh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gh-reader-grid { grid-template-columns: minmax(0, 1fr); }
  .gh-toc-col { position: static; }
}
@media (max-width: 640px) {
  .gh-page { padding: 20px 16px 64px; }
  .gh-grid, .gh-related-grid { grid-template-columns: minmax(0, 1fr); }
}
