/* Build guides: /builds/ and /builds/<slug>/ (made by nixi-studio/scripts/build_guide.py). Uses site.css tokens. */
.guide { display: grid; gap: 18px; padding-bottom: 48px; }
.guide .panel { margin: 0; }
.guide-head, .guide-sec { padding: 20px var(--gutter); min-width: 0; }
.guide-h2 { font-family: var(--font-display); color: var(--heading); font-size: 1.35rem; margin: 0 0 8px; }
.guide-sec p { color: var(--text); line-height: 1.6; margin: 0 0 10px; }
.guide-sec p:last-child { margin-bottom: 0; }
.guide-hint { color: var(--text-soft) !important; font-size: .92rem; }
.guide-facts { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.guide-facts li { background: var(--inner); border: 1px solid var(--inner-edge); border-radius: 999px; padding: 4px 12px;
  font-size: .9rem; color: var(--text); }
.guide-facts b { font-family: var(--font-label); font-weight: 400; color: var(--accent-text); }

/* viewer */
.gv { display: grid; gap: 12px; }
.gv__stage { position: relative; width: 100%; height: min(70vh, 520px); min-height: 300px; border-radius: var(--radius);
  overflow: hidden; background: var(--inner); border: 1px solid var(--inner-edge); touch-action: none; }
.gv__stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline: none; }
.gv__stage canvas:active { cursor: grabbing; }
.gv__stage canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--accent-text); }
.guide-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.gv__load { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: calc(100% - 32px);
  white-space: normal; text-align: center; }
.gv__load small { display: block; opacity: .8; font-size: .78rem; }
.gv__status { position: absolute; left: 12px; bottom: 8px; margin: 0; font-size: .85rem; color: var(--text); }
.gv__status:empty { display: none; }
.gv.is-live .gv__load, .gv.is-live .guide-poster { display: none; }
.gv__tools { display: flex; flex-wrap: wrap; gap: 6px; }
.gv__tools .btn, .gv__row .btn { min-width: 44px; justify-content: center; }
.gv__layers { display: grid; gap: 6px; }
.gv__label { font-family: var(--font-label); color: var(--heading); font-size: .9rem; }
.gv__row { display: flex; align-items: center; gap: 8px; }
.gv__row input[type=range] { flex: 1; min-width: 0; accent-color: var(--accent-text); height: 32px; }
.gv__check { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: .95rem; }
.gv__count { margin: 0 !important; color: var(--text-soft) !important; font-size: .92rem; overflow-wrap: anywhere; }
.gv:not(.is-live) .gv__tools, .gv:not(.is-live) .gv__layers { opacity: .55; }

/* tables */
.guide-table { width: 100%; border-collapse: collapse; font-size: .93rem; color: var(--text); }
.guide-table th, .guide-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide-table thead th { font-family: var(--font-label); font-weight: 400; color: var(--heading); font-size: .82rem; }
.guide-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.guide-table tfoot th, .guide-table tfoot td { font-weight: 600; border-bottom: 0; }
.guide-table small { color: var(--text-soft); }
.guide-sec .table-wrap { overflow-x: auto; max-width: 100%; }
.guide-details summary { cursor: pointer; color: var(--accent-text); font-weight: 600; padding: 4px 0 10px; }

/* downloads, stills */
.guide-dl { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.guide-dl .btn small { opacity: .75; margin-left: 6px; font-size: .78rem; }
.guide-stills { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.guide-still { margin: 0; }
.guide-still img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--inner-edge); }
.guide-notes p { font-size: .93rem; }

/* index */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.guide-card { display: grid; padding: 0; overflow: hidden; text-decoration: none; color: var(--text);
  transition: transform .2s ease; }
.guide-card:hover, .guide-card:focus-visible { transform: translateY(-2px); }
.guide-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.guide-card__body { display: grid; gap: 4px; padding: 14px var(--gutter) 16px; }
.guide-card__title { font-family: var(--font-display); color: var(--heading); font-size: 1.3rem; }
.guide-card__meta { color: var(--text-soft); font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .guide-card { transition: none; } .guide-card:hover { transform: none; } }
