/* KavachQ — /guides/ cluster (built by scripts/build_guides.py). Uses styles.css tokens. */
.gd-crumbs { display: flex; gap: 8px; align-items: center; font: 12px var(--mono); color: var(--muted); margin-bottom: 14px; }
.gd-crumbs a { color: var(--muted); text-decoration: none; }
.gd-crumbs a:hover { color: var(--ink); }
.gd-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font: 12px var(--mono); letter-spacing: .03em; color: var(--muted); }
.gd-meta span + span::before { content: "·"; margin-right: 18px; color: var(--line-2); }

.gd-section { padding-top: clamp(20px, 3vh, 40px); }
.gd-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.gd-main { min-width: 0; max-width: 820px; }
.gd-toc { position: sticky; top: 96px; font-size: 13px; }
.gd-toc p { margin: 0 0 10px; font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gd-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.gd-toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.gd-toc li a:hover { color: var(--ink); border-left-color: var(--green); }

.gd-body h2 { scroll-margin-top: 96px; }
.gd-main h2[id] { scroll-margin-top: 96px; }
.gd-body pre { margin: 18px 0; padding: 16px 18px; border-radius: var(--r-md); background: #0b0f1a; border: 1px solid rgba(160,185,235,.14); overflow-x: auto; }
.gd-body pre code { font: 12.5px/1.6 var(--mono); color: #cdd6e6; background: none; padding: 0; white-space: pre; }
.gd-body sup { font-size: .7em; line-height: 0; }
.gd-body sup a { text-decoration: none; }
.gd-disclaimer { font: 12px/1.6 var(--mono); color: var(--muted); }

.gd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 36px; }
.gd-group { font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin: 8px 0 14px; }
.gd-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 17px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.gd-card:hover { border-color: var(--green); transform: translateY(-2px); }
.gd-card .gd-k { font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep); }
.gd-card b { font-family: var(--display); font-weight: 500; font-size: 17px; line-height: 1.3; }
.gd-card span:last-child { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.gd-also b { font-size: 15.5px; }
.gd-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }

@media (max-width: 960px) {
  .gd-layout { grid-template-columns: 1fr; gap: 0; }
  .gd-toc { display: none; }
  .gd-related { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .gd-card { transition: none; } .gd-card:hover { transform: none; } }

/* wide tables: scroll sideways on small screens instead of crushing columns */
.gd-body .xb-fig { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gd-body .xb-fig table { min-width: 640px; }
.gd-body td code { white-space: nowrap; }
@media (max-width: 700px) { .gd-body .xb-fig table { font-size: 13px; } }
