/* ============================================================
   LLMS Wrangler — Guide Page Template Styles
   ============================================================ */

/* ─── READING PROGRESS BAR ───────────────────────────── */

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  z-index: 200;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ─── GUIDE HERO ─────────────────────────────────────── */

.guide-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--border);
}

.guide-hero-bg {
  position: absolute;
  inset: 0;
  /* background:
    radial-gradient(ellipse 80% 70% at 50% -5%, #e9e6ed 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 90% 100%, #e9e6ed 0%, transparent 60%); */
   background: url(/wp-content/uploads/atlas-ai-connection3.jpg);
    pointer-events: none;
    background-size: cover;
    opacity: .3;
    z-index: -1;
}

.guide-hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.guide-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  margin-bottom: 24px;
}

.guide-breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.guide-breadcrumb a:hover { color: var(--brand-light); }

.guide-breadcrumb span:not(a) { color: var(--text-dim); }

.guide-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* color: var(--brand-light);
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.25); */
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.guide-hero-inner h1 {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.04em;
  max-width: 680px;
  margin-bottom: 20px;
}

.guide-desc {
  font-size: 1.075rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.75;
  margin-bottom: 32px;
}

/* Meta bar */

.guide-meta-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.guide-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
}

.guide-meta-item svg {
  flex-shrink: 0;
}

/* Chapter preview cards */

.guide-chapters-preview {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chapter-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.chapter-card:hover {
  /* border-color: rgba(124,58,237,0.4);
  background: rgba(124,58,237,0.07); */
  background: rgba(65 202 228 / .1);
  border: 1px solid rgba(65 202 228 / .5);
  transform: translateY(-1px);
}

.chapter-num {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand);
  opacity: 0.7;
}

.chapter-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.chapter-card code {
  font-size: 0.78em;
}

/* ─── GUIDE PAGE LAYOUT ──────────────────────────────── */

.guide-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 96px;
}

/* ─── SIDEBAR ────────────────────────────────────────── */

.guide-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.guide-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.guide-toc-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
}

.guide-toc-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.gtoc-chapter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  text-decoration: none;
  transition: background 0.15s;
  margin-top: 6px;
}

.gtoc-chapter:first-child { margin-top: 0; }

.gtoc-chapter:hover { background: rgba(255,255,255,0.03); }

.gtoc-num {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--brand);
  opacity: 0.6;
  flex-shrink: 0;
}

.gtoc-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.3;
}

.gtoc-section {
  display: block;
  padding: 4px 20px 4px 50px;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
  line-height: 1.4;
}

.gtoc-section:hover { color: var(--text-muted); }

.gtoc-chapter.gtoc--active .gtoc-text,
.gtoc-section.gtoc--active {
  color: var(--brand);
  font-weight: 600;
}

.gtoc-chapter.gtoc--active {
  /* background: rgba(124,58,237,0.06); */
  background: rgba(65 202 228 / .1);
  border-left: 2px solid var(--brand);
}

.guide-sidebar-cta {
  /* background: linear-gradient(160deg, rgba(124,58,237,0.14) 0%, var(--bg-card) 60%);
  border: 1px solid rgba(124,58,237,0.3); */
  background: rgba(6 182 212 / .1);
  border: 1px solid rgb(6 182 212);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.guide-sidebar-cta img {
  width: 100px;
}

.guide-sidebar-cta .sidebar-cta-icon {
  font-size: 1.6rem;
  color: var(--brand-light);
}

.guide-sidebar-cta p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 4px;
}

/* ─── CHAPTER LAYOUT ─────────────────────────────────── */

.guide-content {
  min-width: 0;
}

.guide-chapter {
  scroll-margin-top: 88px;
}

.chapter-header {
  margin-bottom: 44px;
}

.chapter-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  /* color: var(--brand-light);
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25); */
  color: var(--brand-light);
  background: rgba(65 202 228 / .1);
  border: 1px solid rgba(65 202 228 / .5);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.chapter-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 14px;
}

.chapter-header h2 code {
  font-size: 0.82em;
  background: rgba(65 202 228 / .1);
  color: var(--brand-light);
  padding: 3px 10px;
  border-radius: 6px;
}

.chapter-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 680px;
}

.chapter-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 64px 0;
}

/* ─── GUIDE BODY TYPOGRAPHY ──────────────────────────── */

.guide-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.guide-body > * + * {
  margin-top: 1.5em;
}

.guide-body h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: 2.5em;
  margin-bottom: -0.25em;
  scroll-margin-top: 88px;
}

.guide-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.guide-body p { color: var(--text-muted); }

.guide-body strong { color: var(--text); font-weight: 700; }

.guide-body a {
  color: var(--brand-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(167,139,250,0.35);
  transition: text-decoration-color 0.2s;
}

.guide-body a:hover { text-decoration-color: var(--brand-light); }

.guide-body code {
  font-size: 0.84em;
  /* font-family: var(--mono);
  background: rgba(255,255,255,0.07);
  color: var(--accent-light);
  padding: 2px 7px;
  border-radius: 5px; */
}

.guide-body pre {
  background: #0f0f17;
  border: 1px solid var(--border-strong);
  /* border-radius: var(--radius-sm); */
  padding: 24px;
  overflow-x: auto;
  margin: 2em 0;
}

.guide-body pre code {
  background: none;
  padding: 0;
  font-size: 0.83rem;
  line-height: 1.9;
  color: var(--text-muted);
}

.guide-body ul, .guide-body ol {
  padding-left: 1.5em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.guide-body ul li { list-style: disc; }
.guide-body ol li { list-style: decimal; }
.guide-body li::marker { color: var(--brand-light); }

.guide-body blockquote {
  border-left: 3px solid var(--brand);
  padding: 18px 28px;
  background: rgba(124,58,237,0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 2em 0;
}

.guide-body blockquote p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

.guide-body img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  display: block;
}

.guide-body figure {
  margin: 2em 0;
}

.guide-body figcaption {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 10px;
}

/* WP block code */

.wp-block-code {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 2em 0;
}

.wp-block-code code {
  display: block;
  font-family: var(--mono);
  font-size: 0.83rem;
  line-height: 1.9;
  background: #0f0f17;
  padding: 24px;
  overflow-x: auto;
  color: var(--text-muted);
}

/* ─── STAT ROW ───────────────────────────────────────── */

.guide-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 2em 0;
}

.guide-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--brand-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ─── CALLOUTS ───────────────────────────────────────── */

.guide-callout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 2em 0;
}

.guide-callout--key {
    background: rgba(6 182 212 / .1);
    border: 1px solid rgb(6 182 212);
}

.guide-callout--tip {
  background: rgba(6,182,212,0.07);
  border: 1px solid rgba(6,182,212,0.2);
}

.guide-callout--warning {
  background: rgba(251,191,36,0.07);
  border: 1px solid rgba(251,191,36,0.2);
}

.guide-callout-icon {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.guide-callout-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guide-callout-body strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  /* display: block; */
}

.guide-callout-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ─── COMPARE COLUMNS ────────────────────────────────── */

.guide-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 2em 0;
}

.compare-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px 26px;
}

.compare-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  display: inline-block;
}

.compare-label--a {
  /* background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3); */
  background: rgba(6,182,212,0.12);
  border: 1px solid rgba(6,182,212,0.3);
  color: var(--brand-light);
}

.compare-label--b {
  background: rgba(6,182,212,0.12);
  border: 1px solid rgba(6,182,212,0.3);
  color: var(--brand);
}

.compare-col ul {
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compare-col li {
  list-style: disc;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.compare-col li::marker { color: var(--brand-light); }

/* ─── PLATFORM GRID ──────────────────────────────────── */

.guide-platform-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 2em 0;
  background: var(--border);
}

.platform-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  background: var(--bg-card);
}

.platform-row:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.platform-row:last-child  { border-radius: 0 0 var(--radius) var(--radius); }

.platform-name {
  padding: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-light);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.platform-detail {
  padding: 20px 24px;
}

.platform-detail p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 12px;
}

.platform-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ptag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.ptag--green  { background: rgba(34,197,94,0.1);  color: #249a4f; border: 1px solid rgba(34,197,94,0.2); }
.ptag--yellow { background: rgba(251,191,36,0.1); color: #a78c1e; border: 1px solid rgba(251,191,36,0.2); }

/* ─── CODE BLOCK ─────────────────────────────────────── */

.code-block {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 2em 0;
}

.code-block-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #16161f;
  border-bottom: 1px solid var(--border);
}

.code-lang {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.code-copy {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.code-copy:hover {
  color: var(--brand-light);
  border-color: rgba(124,58,237,0.4);
}

.code-block pre {
  padding: 24px;
  overflow-x: auto;
  margin: 0;
  background: #0f0f17;
}

.code-block code {
  font-family: var(--mono);
  font-size: 0.83rem;
  line-height: 1.9;
  background: none;
  padding: 0;
  color: var(--text-muted);
}

/* .t-comment { color: var(--text-dim); }
.t-key     { color: var(--brand-light); font-weight: 500; }
.t-val     { color: var(--text); } */

/* ─── ANNOTATED CODE ─────────────────────────────────── */

.annotated-code {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 20px;
  align-items: start;
  margin: 2em 0;
}

.annotated-code .code-block { margin: 0; }

.ann-marker {
  font-size: 0.7rem;
  color: var(--accent-light);
  font-family: var(--mono);
  user-select: none;
}

.annotation-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.annotation-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ann-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  /* background: rgba(6,182,212,0.15);
  border: 1px solid rgba(6,182,212,0.3); */
  color: var(--accent-light);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.annotation-item strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.annotation-item p {
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}

/* ─── EXAMPLES (good / bad) ──────────────────────────── */

.guide-examples {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 2em 0;
}

.example-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.example-row--bad  { background: rgba(244,63,94,0.05);  border-color: rgba(244,63,94,0.2); }
.example-row--good { background: rgba(34,197,94,0.05);  border-color: rgba(34,197,94,0.2); }

.example-label {
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
  color: var(--text-muted);
}

.example-row code {
  font-family: var(--mono);
  font-size: 0.83rem;
  background: none;
  padding: 0;
  color: var(--text-muted);
}

/* ─── PRINCIPLES ─────────────────────────────────────── */

.guide-principles {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
  margin: 2em 0;
}

.principle {
  display: flex;
  align-items: flex-start;
  gap: 0;
  background: var(--bg-card);
}

.principle-num {
  width: 56px;
  padding: 24px 0;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 900;
  /* color: rgba(124,58,237,0.2); */
  color: var(--brand-light);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  font-family: var(--mono);
}

.principle-body {
  padding: 20px 24px;
}

.principle-body h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.principle-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ─── NUMBERED STEPS ─────────────────────────────────── */

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 2em 0;
}

.guide-step {
  display: flex;
  gap: 20px;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  align-items: flex-start;
  transition: border-color 0.2s;
}

.guide-step:hover {
  border-color: rgba(124,58,237,0.3);
}

.gstep-num {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-light);
  opacity: 0.5;
  flex-shrink: 0;
  min-width: 32px;
  line-height: 1.6;
}

.gstep-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.gstep-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ─── CHECKLIST ──────────────────────────────────────── */

.guide-checklist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 2em 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.check-item:last-child { border-bottom: none; }

.check-item:hover {
  background: rgba(255,255,255,0.02);
}

.check-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: var(--brand);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.check-item span {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.check-item input:checked + span {
  color: var(--text-dim);
  text-decoration: line-through;
  text-decoration-color: var(--text-dim);
}

/* ─── GUIDE END CTA ──────────────────────────────────── */

.guide-end-cta {
  margin-top: 72px;
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

.guide-end-cta-inner {
  /* background: linear-gradient(135deg, rgba(124,58,237,0.12) 0%, rgba(6,182,212,0.06) 100%);
  border: 1px solid rgba(124,58,237,0.3); */
  background: rgba(6 182 212 / .1);
  border: 1px solid rgb(6 182 212);
  border-radius: var(--radius);
  padding: 52px 56px;
  text-align: center;
}

.guide-end-cta-inner h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.guide-end-cta-inner p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.guide-end-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */

@media (max-width: 1024px) {
  .annotated-code {
    grid-template-columns: 1fr;
  }

  .annotation-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

@media (max-width: 900px) {
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .guide-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 48px;
  }

  .guide-toc {
    grid-column: span 2;
  }

  .guide-toc-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: none;
    padding: 12px;
    gap: 4px;
  }

  .gtoc-section { display: none; }

  .guide-stat-row {
    grid-template-columns: 1fr;
  }

  .guide-compare {
    grid-template-columns: 1fr;
  }

  .platform-row {
    grid-template-columns: 1fr;
  }

  .platform-name {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
  }
}

@media (max-width: 768px) {
  .guide-hero { padding: 56px 0 60px; }

  .guide-hero-inner h1 { font-size: 2.2rem; }

  .guide-chapters-preview {
    gap: 8px;
  }

  .chapter-card {
    padding: 10px 14px;
  }

  .guide-layout {
    padding-top: 36px;
  }

  .guide-sidebar {
    grid-template-columns: 1fr;
  }

  .guide-toc { grid-column: span 1; }

  .guide-end-cta-inner {
    padding: 36px 28px;
  }

  .guide-end-actions {
    flex-direction: column;
    align-items: center;
  }

  .annotation-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .guide-meta-bar { gap: 16px; }
  .guide-chapters-preview .chapter-card { font-size: 0.78rem; }
  .guide-stat-row { gap: 12px; }
  .stat-number { font-size: 2rem; }
}
