/* «Как пользоваться трекером» (/guide/). Общая тема — /theme/cerberus.css; здесь только раскладка с префиксом .gd-.
   Сырых цветов нет — только var(--…). */
@import url("/theme/cerberus.css");

.module-title a { color: inherit; text-decoration: none; }
main.gd { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--sp-4); align-items: start; padding-top: 14px; }

/* список статей слева, прилипает при прокрутке */
.gd-nav { position: sticky; top: calc(var(--header-h, 61px) + 12px); display: flex; flex-direction: column; gap: 2px; }
.gd-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; color: var(--text); border-left: 3px solid transparent; border-radius: var(--radius); text-decoration: none; }
.gd-nav a:hover { background: var(--panel-hover); text-decoration: none; }
.gd-nav a[aria-current] { border-left-color: var(--accent); background: var(--panel); color: var(--text-strong); font-weight: var(--fw-semibold); }
.gd-nav .icon { width: 18px; height: 18px; flex: none; color: var(--accent); }
/* ссылка на другую инструкцию (трекер ↔ база знаний) — внизу списка, отделена чертой */
.gd-nav a.gd-other { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line-soft); border-radius: 0; color: var(--muted); font-size: var(--fs-sm); }
.gd-nav a.gd-other:hover { color: var(--text-strong); }

.gd-art { max-width: 980px; padding: var(--sp-4) var(--sp-5); }
.gd-art h1 { margin-top: 0; }
.gd-art h2 { font-size: var(--fs-lg); margin-top: 32px; padding-top: 6px; border-top: 1px solid var(--line-soft); scroll-margin-top: calc(var(--header-h, 61px) + 12px); cursor: pointer; }
.gd-art h3 { scroll-margin-top: calc(var(--header-h, 61px) + 12px); }
.gd-art p, .gd-art li { max-width: 78ch; }
.gd-open { margin: 0 0 var(--sp-3); }

/* скриншоты */
.gd-shot { margin: 14px 0 20px; }
.gd-shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); cursor: zoom-in; background: var(--bg); }
.gd-shot figcaption { margin-top: 6px; font-size: var(--fs-sm); color: var(--muted); }

.gd-zoom { max-width: 96vw; max-height: 96vh; padding: 0; border: 1px solid var(--border-strong); background: var(--bg); }
.gd-zoom::backdrop { background: rgb(0 0 0 / .8); }
.gd-zoom img { display: block; max-width: 96vw; max-height: 92vh; object-fit: contain; cursor: zoom-out; }
.gd-zoom-x { position: absolute; top: 6px; right: 6px; }

.gd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.gd-card { display: flex; flex-direction: column; gap: 4px; color: var(--text); text-decoration: none; }
.gd-card:hover { text-decoration: none; border-color: var(--accent); }
.gd-card b { display: flex; align-items: center; gap: 8px; color: var(--text-strong); }
.gd-card .icon { width: 18px; height: 18px; color: var(--accent); }

.gd-pager { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--line-soft); }

/* телефон: статьи — прокручиваемая полоса сверху */
@media (max-width: 900px) {
  main.gd { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .gd-nav { position: static; flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; scrollbar-width: thin; }
  .gd-nav a { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; padding: 8px 10px; }
  .gd-nav a[aria-current] { border-bottom-color: var(--accent); }
  .gd-nav a.gd-other { margin-top: 0; padding-top: 8px; border-top: 0; }
  .gd-art { padding: var(--sp-3); }
}

/* значки в тексте статей — как на страницах трекера (public/guide/icons.js) */
.gd-art .gd-ic { display: inline-flex; align-items: center; justify-content: center; vertical-align: -0.35em; margin: 0 1px; line-height: 1; }
.gd-art .gd-ic .icon { width: 16px; height: 16px; }
.gd-art .gd-plain { color: var(--accent); vertical-align: -0.2em; }
.gd-art .gd-plain .icon { width: 1.1em; height: 1.1em; }
.gd-art .gd-btn { min-width: 26px; height: 24px; padding: 0 5px; background: var(--neutral); color: var(--text-strong); border: 1px solid var(--border); font-size: 13px; font-weight: var(--fw-bold); }
.gd-art .gd-btn.gd-acc { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.gd-art .gd-bell { filter: grayscale(1) brightness(1.5); font-size: 12px; }
.gd-art .gd-bell.on { filter: none; background: var(--accent); border-color: var(--accent); }
.gd-art .gd-do { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ok); color: var(--ok); font-size: 13px; font-weight: var(--fw-black); }
.gd-art .gd-do.on { background: var(--ok); color: var(--accent-ink); }
.gd-art .gd-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); vertical-align: -0.15em; }
.gd-art .gd-burger i { width: 14px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
.gd-kbpic { display: inline-block; flex: none; width: 1.15em; height: 1.15em; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.gd-nav .gd-kbpic, .gd-card .gd-kbpic { width: 18px; height: 18px; color: var(--accent); }
