.guide-page .content-hero { padding-bottom: 64px; }

/* Hub directory page (/guide) */
.guide-hub { padding-bottom: 24px; }
.guide-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.guide-hub-card {
  display: flex;
  flex-direction: column;
  padding: 28px 28px 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}
html[data-theme="light"] .guide-hub-card {
  background: #ffffff;
}
.guide-hub-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.guide-hub-head h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.25;
  margin: 0;
}
.guide-hub-head h2 a {
  color: var(--ink);
  text-decoration: none;
  transition: color .15s;
}
.guide-hub-head h2 a:hover { color: var(--accent); }
.guide-hub-intro {
  font-size: 14.5px;
  line-height: 1.7;
  color: #a4a099;
  margin: 0 0 18px;
}
html[data-theme="light"] .guide-hub-intro { color: #68665f; }
.guide-question-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.guide-question-list li {
  border-bottom: 1px solid var(--line);
}
.guide-question-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 6px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  border-radius: 10px;
  transition: color .15s, background .15s, padding-left .15s;
}
.guide-question-link:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, .03);
  padding-left: 10px;
}
html[data-theme="light"] .guide-question-link:hover {
  background: #f6f5f2;
}
.guide-arrow {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #807c76;
  transition: transform .15s, color .15s;
}
.guide-question-link:hover .guide-arrow {
  color: var(--accent);
  transform: translateX(2px);
}
.guide-hub-more {
  display: inline-block;
  margin-top: 16px;
  align-self: flex-start;
  font-size: 13.5px;
  font-weight: 600;
  color: #a4a099;
  text-decoration: none;
  transition: color .15s;
}
html[data-theme="light"] .guide-hub-more { color: #68665f; }
.guide-hub-more:hover { color: var(--accent); }

/* Category detail page (/guide/<slug>) */
.guide-detail-hero { padding-top: 68px; }
.guide-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 13.5px;
  font-weight: 500;
  color: #8e8a83;
}
.guide-breadcrumb a {
  color: #b7b3ac;
  text-decoration: none;
  transition: color .15s;
}
html[data-theme="light"] .guide-breadcrumb { color: #78746c; }
html[data-theme="light"] .guide-breadcrumb a { color: #4f4c45; }
.guide-breadcrumb a:hover { color: var(--accent); }

.guide-detail-page .content-hero h1 {
  font-size: clamp(46px, 6vw, 76px);
}
.guide-detail-page .feature-index nav a b {
  font-weight: 500;
}
.guide-detail-page .feature-index nav a[aria-current="location"] b {
  font-weight: 600;
}

.guide-topic {
  padding-bottom: 56px;
  margin-bottom: 52px;
}
.guide-topic h2 {
  font-size: 30px;
  line-height: 1.28;
  letter-spacing: -.035em;
}
.guide-answer {
  font-size: 16.5px;
  line-height: 1.85;
  color: #c8c4bc;
  margin: 0 0 18px;
  max-width: 720px;
}
html[data-theme="light"] .guide-answer {
  color: #393732;
}
.guide-tip {
  margin: 16px 0 0;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  font-size: 14px;
  line-height: 1.75;
  color: #a4a099;
  max-width: 720px;
}
html[data-theme="light"] .guide-tip {
  background: #f5f4f0;
  color: #5b5851;
}
.guide-action {
  margin: 14px 0 0;
}

.guide-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}
.guide-shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  font-size: 14px;
}
html[data-theme="light"] .guide-shortcut-row {
  background: #ffffff;
}
.guide-shortcut-keys {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.guide-shortcut-keys kbd {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
html[data-theme="light"] .guide-shortcut-keys kbd {
  background: #f3f3f0;
  color: #1d1d1f;
}

/* Prev / Next category pager */
.guide-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.guide-pager-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s, background .15s;
}
html[data-theme="light"] .guide-pager-link {
  background: #ffffff;
}
.guide-pager-link.is-next { text-align: right; }
.guide-pager-link small {
  font-size: 12px;
  color: #8e8a83;
}
.guide-pager-link strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.guide-pager-link:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, .04);
}
html[data-theme="light"] .guide-pager-link:hover {
  background: #faf9f6;
}

@media (max-width: 860px) {
  .guide-hub-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .guide-detail-hero { padding-top: 44px; }
  .guide-shortcuts, .guide-pager { grid-template-columns: 1fr; }
  .guide-pager-link.is-next { text-align: left; }
  .guide-topic h2 { font-size: 25px; }
}
