/* ==========================================================================
   Activation guides - help centre
   Loaded by guides.html only, which is also the template for /guide/<slug>,
   so this file styles both the board (list mode) and the reader (detail mode).
   Everything here reuses the storefront tokens from style.css.
   ========================================================================== */

/* Difficulty is the one dimension every card, chip and meter shares, so its
   three colours are declared once and referenced by class everywhere below. */
:root{
  --lv-easy: #4ade80;
  --lv-medium: #60a5fa;
  --lv-advanced: #fbbf24;
}
.lv-easy{ --lv: var(--lv-easy); }
.lv-medium{ --lv: var(--lv-medium); }
.lv-advanced{ --lv: var(--lv-advanced); }
.lv-none{ --lv: var(--dim); }

.gx-wrap{ max-width: 1120px; }

/* This page is keyboard-driven by design ("/" to search, arrows through the
   results, Space to tick a step), so every control it adds carries a ring that
   reads on the dark panels instead of the browser default. */
.gx-chip:focus-visible, .gx-lvbtn:focus-visible, .gx-lvclear:focus-visible,
.gxt:focus-visible, .gx-quick:focus-visible, .gx-mine-card:focus-visible,
.gx-clear:focus-visible, .gxg-shop:focus-visible, .gx-help:focus-visible,
.gd-vote-btn:focus-visible, .gd-track-reset:focus-visible, .gd-copy:focus-visible,
.gd-toc a:focus-visible, .gd-anchor:focus-visible,
.pd-rich-desc .docs-step.gd-step .num:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Section headers used above every band on the board. */
.gx-band{ margin-bottom: 34px; }
.gx-band-head{ display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; flex-wrap: wrap; }
.gx-band-head h2{ font-size: 17px; letter-spacing: -.01em; }
.gx-band-head span{ font-size: 12.5px; color: var(--dim); }

/* ==========================================================================
   Hero: what this library actually contains
   ========================================================================== */
.gx-hero{
  position: relative; overflow: hidden;
  padding: 22px 24px 20px; margin-bottom: 18px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--panel);
}
.gx-hero::after{
  content: ""; position: absolute; inset: -60% -10% auto -10%; height: 220px; pointer-events: none;
  background: radial-gradient(58% 100% at 50% 0%, rgba(59,130,246,.16), transparent 70%);
}
.gx-hero-top{
  position: relative; z-index: 1;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.gx-hero-top h2{ font-size: 20px; line-height: 1.3; }
.gx-hero-top p{ margin: 5px 0 0; font-size: 13.5px; color: var(--muted); max-width: 54ch; }
.gx-help{
  display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0;
  padding: 9px 16px; border-radius: 999px; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  background: var(--panel-2); border: 1px solid var(--line-strong);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.gx-help:hover{ color: var(--text); border-color: rgba(59,130,246,.5); }
.gx-help i{
  width: 7px; height: 7px; border-radius: 50%; background: var(--lv-easy);
  box-shadow: 0 0 8px rgba(74,222,128,.8); animation: detection-pulse 1.8s ease-in-out infinite;
}

/* Four numbers that answer "is what I need in here?" before any scrolling. */
.gx-stats{
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 17px;
}
.gx-stat{
  padding: 10px 14px 11px; border-radius: var(--radius-md);
  background: var(--panel-2); border: 1px solid var(--line);
}
.gx-stat b{
  display: block; font-family: 'Space Grotesk', sans-serif; font-size: 21px; line-height: 1.1;
  color: var(--text); font-variant-numeric: tabular-nums;
}
.gx-stat b small{ font-size: 13px; font-weight: 600; }
.gx-stat span{ display: block; margin-top: 2px; font-size: 11.5px; color: var(--dim); }

/* Difficulty mix of whatever is currently on screen. Same meter language the
   status board uses for detection mix, so the two pages read as one system -
   and its legend IS the difficulty filter, so the numbers are never printed
   twice on the page. */
#gxMix:empty{ display: none; }
.gx-mix{
  position: relative; z-index: 1; display: flex; gap: 3px; height: 6px; margin-top: 15px;
  border-radius: 999px; overflow: hidden; background: var(--panel-2);
}
.gx-mix span{
  height: 100%; border-radius: 999px; min-width: 4px; background: var(--lv);
  transition: width .25s var(--ease), opacity .2s var(--ease);
}
.gx-mix span.is-dim{ opacity: .22; }
.gx-mix-key{
  position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 11px;
}
.gx-lvbtn{
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px;
  font-size: 12px; color: var(--muted); background: transparent; border: 1px solid var(--line);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.gx-lvbtn::before{ content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--lv); }
.gx-lvbtn b{ color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.gx-lvbtn:hover:not(:disabled){ background: var(--panel-2); color: var(--text); }
.gx-lvbtn.is-active{
  color: var(--text); background: color-mix(in srgb, var(--lv) 14%, transparent);
  border-color: color-mix(in srgb, var(--lv) 55%, transparent);
}
.gx-lvbtn:disabled{ opacity: .35; cursor: default; }
.gx-lvclear{
  border: none; background: none; padding: 4px 2px; font-size: 11.5px; color: var(--dim);
  text-decoration: underline; text-underline-offset: 3px;
}
.gx-lvclear:hover{ color: var(--muted); }

/* ==========================================================================
   Controls: search + difficulty + game rail
   ========================================================================== */
.gx-controls{ display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.gx-search{ position: relative; flex: 1 1 340px; min-width: 240px; display: flex; align-items: center; }
.gx-search > svg{ position: absolute; left: 15px; width: 17px; height: 17px; color: var(--dim); pointer-events: none; }
.gx-search input{
  width: 100%; padding: 13px 74px 13px 42px; border-radius: 999px; font-size: 14px;
  color: var(--text); background: var(--panel); border: 1px solid var(--line-strong); outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.gx-search input::placeholder{ color: var(--dim); }
.gx-search input::-webkit-search-cancel-button{ display: none; }
.gx-search input:focus{ border-color: rgba(59,130,246,.5); box-shadow: 0 0 0 3px rgba(59,130,246,.14); }
/* "/" hint, swapped for a clear button once there is something to clear. */
.gx-kbd{
  position: absolute; right: 14px; padding: 3px 8px; border-radius: 6px; pointer-events: none;
  font-size: 11px; font-weight: 600; color: var(--dim);
  background: var(--panel-2); border: 1px solid var(--line);
}
.gx-clear{
  position: absolute; right: 12px; width: 26px; height: 26px; border-radius: 50%; border: none;
  background: var(--panel-2); color: var(--muted); font-size: 17px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.gx-clear:hover{ color: var(--text); }
.gx-kbd[hidden], .gx-clear[hidden]{ display: none; }

.gx-chip{
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap;
  background: var(--panel); border: 1px solid var(--line-strong);
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.gx-chip:hover:not(:disabled){ color: var(--text); background: var(--panel-2); }
.gx-chip.is-active{ color: var(--text); border-color: rgba(59,130,246,.55); background: rgba(59,130,246,.12); }
.gx-chip:disabled{ opacity: .4; cursor: default; }
.gx-chip .dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--lv); flex-shrink: 0; }
.gx-num{
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 11.5px;
  color: var(--dim); font-variant-numeric: tabular-nums;
}
.gx-chip.is-active .gx-num{ color: var(--text); }

/* Every game we cover, visible at once: the rail doubles as the page's claim
   about breadth, so on a desktop it wraps rather than hiding titles off-screen.
   A phone has no room for three lines of chips, so there it scrolls sideways
   with a soft edge fade instead of a scrollbar drawn across the page. */
.gx-rail{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
@media (max-width: 760px){
  .gx-rail{
    flex-wrap: nowrap; padding-bottom: 6px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent);
  }
  .gx-rail::-webkit-scrollbar{ display: none; }
}
.gx-rail .gx-chip{ flex-shrink: 0; padding: 7px 15px 7px 7px; }
.gx-rail .gx-chip-all{ padding: 7px 15px; }
.gx-rail-art{
  width: 26px; height: 26px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
  background: var(--panel-2); display: flex; align-items: center; justify-content: center; color: var(--dim);
}
.gx-rail-art img{ width: 100%; height: 100%; object-fit: cover; filter: saturate(1.15) brightness(1.18); }
.gx-rail-art .glyph-ph{ width: 15px; }

/* ==========================================================================
   Bands above the board: your purchases, then the two "I am stuck" entries
   ========================================================================== */
.gx-mine-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.gx-mine-card{
  position: relative; display: flex; align-items: center; gap: 13px;
  padding: 13px 16px 13px 14px; border-radius: var(--radius-md); overflow: hidden;
  background: linear-gradient(180deg, rgba(59,130,246,.10), rgba(59,130,246,.03));
  border: 1px solid rgba(59,130,246,.32);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.gx-mine-card:hover{ border-color: rgba(59,130,246,.6); transform: translateY(-2px); }
.gx-owned{
  display: inline-block; margin-bottom: 3px; padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #bfd7ff; background: rgba(59,130,246,.18);
}

.gx-quick-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.gx-quick{
  display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px;
  border-radius: var(--radius-md); background: var(--panel); border: 1px solid var(--line);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.gx-quick:hover{ border-color: rgba(59,130,246,.45); transform: translateY(-2px); }
.gx-quick-ico{
  width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: rgba(59,130,246,.12); color: #7fb0ff; margin-bottom: 4px;
}
.gx-quick-ico svg{ width: 19px; height: 19px; }
.gx-quick b{ font-size: 14.5px; color: var(--text); }
.gx-quick p{ margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.gx-quick-go{ margin-top: auto; padding-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--gold); }

/* ==========================================================================
   The board: one panel per game, guides as art-led tiles
   ========================================================================== */
.gx-board{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px){ .gx-board{ grid-template-columns: 1fr; } }
.gxg{
  padding: 18px 20px 20px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--panel);
  transition: border-color .2s var(--ease);
}
.gxg.is-wide{ grid-column: 1 / -1; }
.gxg-head{
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px solid var(--line);
}
.gxg-art{
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; overflow: hidden;
  background: var(--panel-2); display: flex; align-items: center; justify-content: center; color: var(--dim);
}
/* Key art is dark and moody; at this size it needs a lift to read. */
.gxg-art img{ width: 100%; height: 100%; object-fit: cover; filter: saturate(1.15) brightness(1.18); }
.gxg-art .glyph-ph{ width: 22px; }
.gxg-headline{ flex: 1; min-width: 0; }
.gxg-title{
  font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gxg-sub{ margin: 2px 0 0; font-size: 12px; color: var(--dim); }
.gxg-shop{
  flex-shrink: 0; font-size: 11.5px; font-weight: 600; color: var(--dim); white-space: nowrap;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.gxg-shop:hover{ color: var(--text); border-color: var(--line-strong); }

.gxg-grid{ display: grid; grid-template-columns: 1fr; gap: 10px; }
.gxg.is-wide .gxg-grid{ grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); }

.gxt{
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 11px 34px 11px 14px; border-radius: 14px; overflow: hidden;
  background: var(--panel-2); border: 1px solid var(--line);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
/* The difficulty colour reads before any text does: a hairline down the edge. */
.gxt::before{ content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--lv); }
.gxt:hover{ border-color: var(--line-strong); transform: translateY(-2px); }
.gxt-chev{
  position: absolute; right: 12px; top: 50%; width: 15px; height: 15px; margin-top: -7px;
  color: var(--dim); transition: transform .2s var(--ease), color .2s var(--ease);
}
.gxt:hover .gxt-chev{ transform: translateX(3px); color: var(--gold); }
.gxt-art{
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 11px; overflow: hidden;
  background: var(--panel); display: flex; align-items: center; justify-content: center; color: var(--dim);
}
.gxt-art img{ width: 100%; height: 100%; object-fit: cover; }
.gxt-art .glyph-ph{ width: 22px; }
.gxt-body{ flex: 1; min-width: 0; }
.gxt-body b{
  display: block; font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gxt-meta{
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px;
  margin-top: 4px; font-size: 11px; color: var(--dim);
}
.gxt-meta .lv{ display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.gxt-meta .lv::before{ content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lv); }
.gxt-meta .sep{ opacity: .45; }

/* ==========================================================================
   Search results: a flat ranked list replaces the board while typing
   ========================================================================== */
.gx-results{ display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 10px; }
.gx-results mark{ background: rgba(59,130,246,.28); color: var(--text); border-radius: 3px; padding: 0 1px; }
.gxt.is-cursor{ border-color: rgba(59,130,246,.65); box-shadow: 0 0 0 3px rgba(59,130,246,.14); }
.gx-count{ font-size: 12.5px; color: var(--dim); margin: 0 0 14px; }

.gx-empty{ text-align: center; padding: 54px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.gx-empty-ico{
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--panel-2); color: var(--dim);
}
.gx-empty-ico svg{ width: 26px; height: 26px; }
.gx-empty h3{ font-size: 18px; margin-bottom: 8px; }
.gx-empty p{ color: var(--muted); margin: 0 auto 22px; max-width: 46ch; font-size: 13.5px; }
.gx-empty-actions{ display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Skeleton shown for the one paint before /api/guides answers. */
.gx-skel{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 900px){ .gx-skel{ grid-template-columns: 1fr; } }
.gx-skel-box{
  height: 190px; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--panel); position: relative; overflow: hidden;
}
.gx-skel-box::after{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(140,170,255,.06), transparent);
  animation: gx-shimmer 1.4s linear infinite;
}
@keyframes gx-shimmer{ from{ transform: translateX(-100%); } to{ transform: translateX(100%); } }

@media (max-width: 620px){
  .gx-hero{ padding: 20px 18px; }
  .gx-stats{ grid-template-columns: repeat(2, 1fr); }
  .gxg{ padding: 16px 14px; }
  .gxg-shop{ display: none; }
  /* A phone clips these titles right where the game name lives ("How to set
     up TZX Project…"), so let them take a second line instead. */
  .gxt-body b{
    white-space: normal; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
  }
}

/* ==========================================================================
   Reader: /guide/<slug>
   ========================================================================== */

/* How far through the guide you are. Fixed under the header so it survives
   the sticky nav, and hidden entirely on a guide short enough not to scroll. */
.gd-progress{
  position: fixed; left: 0; right: 0; top: var(--header-h); height: 2px; z-index: 60;
  background: transparent; pointer-events: none;
}
.gd-progress i{
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-dark), var(--blue));
  box-shadow: 0 0 10px var(--gold-glow);
}

.gd-layout{ display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 34px; align-items: start; }
@media (max-width: 980px){ .gd-layout{ grid-template-columns: 1fr; gap: 26px; } }
/* The reader column carries its own measure; .pd-rich-desc caps at 720px which
   would leave a ragged gap inside an already-narrowed grid column. */
.gd-main .pd-rich-desc{ max-width: none; }

/* ---- Fact strip above the body ---------------------------------------- */
.gd-facts{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.gd-fact{
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font-size: 12.5px; color: var(--muted); background: var(--panel); border: 1px solid var(--line);
}
.gd-fact b{ color: var(--text); font-weight: 600; }
.gd-fact svg{ width: 14px; height: 14px; color: var(--dim); }
.gd-fact-lv{ color: var(--text); }
.gd-fact-lv::before{ content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lv); }

/* ---- Step tracker ------------------------------------------------------ */
.gd-track{
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; margin-bottom: 24px; border-radius: var(--radius-md);
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.gd-track-bar{ flex: 1 1 150px; height: 6px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.gd-track-bar i{
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-dark), var(--lv-easy));
  transition: width .25s var(--ease);
}
.gd-track-label{ font-size: 13px; color: var(--muted); }
.gd-track-label b{ color: var(--text); font-variant-numeric: tabular-nums; }
.gd-track.is-done{ border-color: rgba(74,222,128,.4); background: rgba(74,222,128,.06); }
.gd-track-reset{
  border: none; background: none; padding: 0; font-size: 12px; color: var(--dim);
  text-decoration: underline; text-underline-offset: 3px;
}
.gd-track-reset:hover{ color: var(--muted); }

/* Steps become tickable in place. The number box turns into the control, so
   the guide gains a checklist without a second column of checkboxes. */
.pd-rich-desc .docs-step .num{ transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.pd-rich-desc .docs-step.gd-step .num{ cursor: pointer; position: relative; user-select: none; }
.pd-rich-desc .docs-step.gd-step .num:hover{ border-color: var(--gold); color: var(--gold); }
.pd-rich-desc .docs-step.gd-step.is-done .num{
  background: var(--lv-easy); border-color: var(--lv-easy); color: transparent;
}
.pd-rich-desc .docs-step.gd-step.is-done .num::after{
  content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 10px; margin: -6px 0 0 -3px;
  border: solid #06210f; border-width: 0 2.2px 2.2px 0; transform: rotate(42deg);
}
.pd-rich-desc .docs-step.gd-step.is-done > div:last-child{ opacity: .48; }

/* ---- Headings get an anchor you can copy ------------------------------- */
.pd-rich-desc h2[id]{ scroll-margin-top: calc(var(--header-h) + 22px); }
.gd-anchor{
  margin-left: 8px; font-size: .72em; color: var(--dim); opacity: 0;
  transition: opacity .15s var(--ease), color .15s var(--ease);
}
.pd-rich-desc h2:hover .gd-anchor, .gd-anchor:focus{ opacity: 1; }
.gd-anchor:hover{ color: var(--gold); }

/* ---- Copyable inline commands ----------------------------------------- */
.gd-copy{
  display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; padding: 1px 7px;
  border-radius: 6px; vertical-align: middle;
  font-size: 10.5px; font-weight: 600; color: var(--dim);
  background: var(--panel-2); border: 1px solid var(--line);
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.gd-copy:hover{ color: var(--text); border-color: var(--line-strong); }
.gd-copy.is-copied{ color: var(--lv-easy); border-color: rgba(74,222,128,.45); }

/* ---- Sidebar ----------------------------------------------------------- */
/* A guide with many sections can make the sidebar taller than the screen; when
   it is pinned that would put the bottom of the contents permanently out of
   reach, so the column scrolls inside itself past that point. */
.gd-aside{
  position: sticky; top: calc(var(--header-h) + 20px);
  display: flex; flex-direction: column; gap: 14px;
  max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto;
  scrollbar-width: thin;
}
.gd-aside::-webkit-scrollbar{ width: 6px; }
.gd-aside::-webkit-scrollbar-thumb{ background: var(--panel-2); border-radius: 999px; }
@media (max-width: 980px){ .gd-aside{ position: static; max-height: none; overflow: visible; } }
.gd-card{ padding: 16px 18px; border-radius: var(--radius-md); background: var(--panel); border: 1px solid var(--line); }
.gd-card-title{
  font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 12px;
}

.gd-prod{ display: flex; gap: 12px; align-items: center; margin-bottom: 13px; }
.gd-prod-art{
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 11px; overflow: hidden; background: var(--panel-2);
  display: flex; align-items: center; justify-content: center; color: var(--dim);
}
.gd-prod-art img{ width: 100%; height: 100%; object-fit: cover; }
.gd-prod-art .glyph-ph{ width: 22px; }
.gd-prod-info{ min-width: 0; }
.gd-prod-info b{ display: block; font-size: 13.5px; color: var(--text); line-height: 1.35; }
.gd-prod-info span{ display: block; font-size: 11.5px; color: var(--dim); margin-top: 2px; }

/* Table of contents with scroll spy. */
.gd-toc ol{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.gd-toc a{
  display: block; padding: 7px 11px 7px 14px; border-radius: 9px; position: relative;
  font-size: 12.5px; line-height: 1.45; color: var(--muted);
  transition: color .15s var(--ease), background .15s var(--ease);
}
.gd-toc a::before{
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px;
  background: transparent; transition: background .15s var(--ease);
}
.gd-toc a:hover{ color: var(--text); background: var(--panel-2); }
.gd-toc a.is-current{ color: var(--text); background: rgba(59,130,246,.10); }
.gd-toc a.is-current::before{ background: var(--gold); }

.gd-mini{ display: flex; flex-direction: column; gap: 9px; }
.gd-mini > div{ display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.gd-mini .k{ color: var(--dim); }
.gd-mini .v{ color: var(--text); font-weight: 600; text-align: right; }

.gd-help-card{ background: linear-gradient(180deg, rgba(59,130,246,.10), rgba(59,130,246,.02)); border-color: rgba(59,130,246,.28); }
.gd-help-card p{ margin: 0 0 13px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* ---- Foot: helpful vote + siblings ------------------------------------ */
.gd-foot{ margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.gd-vote{
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px 18px; border-radius: var(--radius-md); background: var(--panel); border: 1px solid var(--line);
}
.gd-vote > b{ font-size: 13.5px; color: var(--text); margin-right: auto; }
.gd-vote-btn{
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  background: var(--panel-2); border: 1px solid var(--line-strong);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.gd-vote-btn svg{ width: 15px; height: 15px; }
.gd-vote-btn:hover{ color: var(--text); border-color: rgba(59,130,246,.5); }
.gd-vote-btn.is-on{ color: var(--lv-easy); border-color: rgba(74,222,128,.5); background: rgba(74,222,128,.10); }
.gd-vote-thanks{ font-size: 13px; color: var(--muted); }

.gd-related{ margin-top: 30px; }
.gd-related h2{ font-size: 16px; margin-bottom: 14px; }
.gd-related-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 10px; }

.gd-updated{ margin-top: 26px; font-size: 12.5px; color: var(--dim); }

@media (max-width: 620px){
  .gd-track{ padding: 13px 15px; }
  .gd-vote{ padding: 14px 15px; }
  .gd-vote > b{ flex: 1 1 100%; margin-bottom: 4px; }
}
