/* Guide pages — matches homepage glass aesthetic */

/* Shared glass card (also on homepage) */
.glass-card-static {
  background: rgba(255, 255, 255, .65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
}

.guide-page { background: var(--bg); }

.guide-hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}
.guide-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .45;
  pointer-events: none;
}
.guide-glow-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(124,58,237,.14), transparent 70%);
  top: -120px; right: -80px;
}
.guide-glow-2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(139,92,246,.12), transparent 70%);
  bottom: -60px; left: -40px;
}
.guide-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.guide-back {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 1rem;
}
.guide-back:hover { color: #7c3aed; }
.guide-eyebrow {
  margin: 0 0 .5rem;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #7c3aed;
}
.guide-hero h1 {
  margin: 0 0 .85rem;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.12;
}
.guide-lead {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 38rem;
}
.guide-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.guide-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: 2.5rem 0 3rem;
}
.guide-sidebar { position: relative; }
.guide-toc {
  position: sticky;
  top: 5.5rem;
  padding: 1rem 1.1rem;
}
.guide-toc-label {
  margin: 0 0 .65rem;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.guide-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.guide-toc-list li { margin: 0; }
.guide-toc-list a {
  display: block;
  padding: .35rem 0;
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.35;
  border-left: 2px solid transparent;
  padding-left: .55rem;
  margin-left: -.55rem;
  transition: color .12s, border-color .12s;
}
.guide-toc-list a:hover { color: var(--ink); }
.guide-toc-list a.is-active {
  color: #7c3aed;
  border-left-color: #7c3aed;
  font-weight: 600;
}
.guide-toc-list .toc-h3 a {
  padding-left: 1rem;
  font-size: .72rem;
}

.guide-article {
  padding: 2rem 2.25rem;
  min-width: 0;
}

/* Prose */
.guide-prose {
  max-width: 42rem;
  font-size: .96rem;
  line-height: 1.7;
  color: var(--ink);
}
.guide-prose > p:first-child {
  font-size: 1.02rem;
  color: var(--muted);
}
.guide-prose h2 {
  margin: 2.25rem 0 .75rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
  scroll-margin-top: 5.5rem;
}
.guide-prose h2:first-child { margin-top: 0; }
.guide-prose h3 {
  margin: 1.5rem 0 .5rem;
  font-size: 1rem;
  font-weight: 700;
  scroll-margin-top: 5.5rem;
}
.guide-prose p { margin: 0 0 1rem; color: var(--muted); }
.guide-prose strong { color: var(--ink); font-weight: 600; }
.guide-prose a {
  color: #7c3aed;
  font-weight: 500;
  text-decoration: none;
}
.guide-prose a:hover { text-decoration: underline; }
.guide-prose ul, .guide-prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--muted);
}
.guide-prose li { margin-bottom: .4rem; }
.guide-prose li::marker { color: #7c3aed; }

.guide-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.5rem;
  font-size: .88rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.guide-prose th,
.guide-prose td {
  padding: .65rem .85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.guide-prose th {
  background: rgba(0, 0, 0, .03);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.guide-prose tr:last-child th,
.guide-prose tr:last-child td { border-bottom: none; }

.guide-prose blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid #7c3aed;
  background: rgba(0, 113, 227, .05);
  border-radius: 0 10px 10px 0;
  font-size: .9rem;
  color: var(--muted);
}
.guide-prose blockquote p { margin: 0; }

.guide-prose hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.guide-prose code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: .84em;
  background: rgba(0, 0, 0, .05);
  padding: .15rem .35rem;
  border-radius: 4px;
}
.guide-prose pre {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  background: #f8f7fc;
  color: #27272a;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  font-size: .8rem;
  line-height: 1.55;
}
.guide-prose pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* CTA band */
.guide-cta-band { padding: 0 0 4rem; }
.guide-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, rgba(0,113,227,.06) 0%, rgba(255,255,255,.75) 50%);
}
.guide-cta-copy h2 {
  margin: 0 0 .35rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.guide-cta-copy p {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
  max-width: 28rem;
}

/* Guides index */
.guides-index-hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 2rem;
}
.guides-index-hero .guide-glow { opacity: .4; }
.guides-index-hero h1 {
  margin: .5rem 0 .75rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -.03em;
}
.guides-index-lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.6;
}
.guides-featured-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}
.guides-featured-card {
  display: block;
  padding: 1.35rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s;
}
.guides-featured-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.guides-featured-card .tag {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #7c3aed;
  margin-bottom: .5rem;
  display: block;
}
.guides-featured-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: .35rem;
}
.guides-featured-card span {
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.5;
}
.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-bottom: 4rem;
}
.guide-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s;
  height: 100%;
}
.guide-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.guide-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: .85rem;
  background: rgba(0, 113, 227, .1);
  color: #7c3aed;
}
.guide-card h3 {
  margin: 0 0 .5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.guide-card p {
  margin: 0;
  flex: 1;
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.55;
}
.guide-card-link {
  margin-top: 1rem;
  font-size: .78rem;
  font-weight: 600;
  color: #7c3aed;
}

@media (max-width: 900px) {
  .guide-shell { grid-template-columns: 1fr; }
  .guide-sidebar {
    display: block;
    position: static;
    margin-bottom: 1rem;
  }
  .guide-toc {
    position: static;
    top: auto;
  }
  .guide-toc-list {
    max-height: 11rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .guide-toc-list a {
    min-height: 36px;
    display: flex;
    align-items: center;
    padding-top: .45rem;
    padding-bottom: .45rem;
  }
  .guide-article { padding: 1.35rem 1.15rem; }
  .guide-hero-actions { width: 100%; }
  .guide-hero-actions .btn { flex: 1; min-width: 0; }
  .guides-featured-row,
  .guides-grid { grid-template-columns: 1fr; }
  .guide-prose table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .guide-cta-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}
