/* Popular Build Styles (wide gaps). The old peeks styles are in notes/drafts/peeks-styles.css. */
.page-styles { display: grid; gap: 16px; }
.page-styles .intro { margin-bottom: 0; }
.style-tabs { margin-bottom: 0; }
.style-tabs [role="tab"][disabled] { display: inline-flex; align-items: center; gap: .35rem; }
.gap-panel { display: grid; gap: 16px; }

.how-gaps p { max-width: 70rem; }
.table-wrap { overflow-x: auto; }
.gap-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .92rem; }
.gap-table th, .gap-table td { padding: .45rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.gap-table thead th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.gap-table td b { font-variant-numeric: tabular-nums; white-space: nowrap; }

.gap-body { display: grid; gap: 16px; }
@media (min-width: 980px) { .gap-body { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } }
.gap-fig { margin: 0; display: grid; gap: .5rem; }
.gap-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); border: 1px solid var(--line-strong); background: #6b6a4a; }
.gap-fig figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; }
.gap-text p { margin: 0 0 .7rem; }
.gap-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .2rem .8rem; margin: 0 0 .8rem; font-size: .92rem; }
.gap-facts dt { color: var(--muted); }
.gap-facts dd { margin: 0; font-weight: 600; }
.gap-steps { margin: 0 0 .9rem; padding-left: 1.3rem; display: grid; gap: .25rem; }
.check-gaps ul { margin: 0 0 .8rem; padding-left: 1.2rem; display: grid; gap: .45rem; max-width: 70rem; }

/* ---------- live 3D step player (js/howto-player.js) ---------- */
.howto { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line-strong); background: #9aa9b3; }
.howto-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.howto-canvas.grabbing { cursor: grabbing; }
.howto-labels { position: absolute; inset: 0; pointer-events: none; }
.howto-num {
  position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: #cd412b; color: #fff; border: 2px solid rgba(14, 13, 12, .85); font: 800 12px/1 var(--head-font); box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}
.howto-num.new { width: 30px; height: 30px; background: #f5a742; color: #141210; font-size: 14px; }
.howto-tag { position: absolute; transform: translate(-50%, -50%); padding: .15rem .5rem; background: rgba(14, 13, 12, .86); color: #ffb36b; font: 800 13px/1.2 var(--head-font); white-space: nowrap; }
.howto-badge {
  position: absolute; left: 10px; top: 10px; padding: .3rem .6rem; background: rgba(14, 13, 12, .82); color: #eee8dc;
  font: 700 .78rem/1.2 var(--head-font); text-transform: uppercase; letter-spacing: .04em; pointer-events: none;
}
.howto-cap {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: .1rem; padding: .45rem .8rem .55rem;
  background: rgba(14, 13, 12, .84); border-left: 5px solid #cd412b; color: #eee8dc; pointer-events: none;
}
.howto-n { font: 700 .72rem/1.1 var(--head-font); color: #f5a742; text-transform: uppercase; letter-spacing: .06em; }
.howto-t { font-size: 1rem; line-height: 1.25; }
.howto-ctl { position: absolute; right: 8px; top: 8px; display: flex; gap: 4px; }
.howto-btn, .howto-speed {
  display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 .35rem; border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 4px; background: rgba(14, 13, 12, .78); color: #eee8dc; cursor: pointer; font: 700 .8rem var(--head-font);
}
.howto-btn:hover, .howto-speed:hover { background: rgba(205, 65, 43, .85); }
.howto-hint { position: absolute; right: 10px; bottom: 64px; padding: .15rem .45rem; background: rgba(14, 13, 12, .6); color: #ddd; font-size: .72rem; pointer-events: none; }
.howto-load { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(14, 13, 12, .7); color: #eee8dc; font-weight: 700; }
@media (max-width: 560px) {
  .howto-t { font-size: .85rem; }
  .howto-hint { display: none; }
  .howto-btn, .howto-speed { min-width: 30px; height: 30px; }
}

/* jump links and the smaller cards (the extra gap sizes) */
.jump { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .9rem; }
.section-title { margin: .4rem 0 .6rem; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; }
.gap-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.gap-mini { display: grid; gap: .6rem; align-content: start; }
.gap-mini .gap-facts { margin: 0; }
.gap-more summary { cursor: pointer; font-weight: 700; color: var(--accent-2); }
.gap-more .gap-steps { margin-top: .5rem; font-size: .92rem; }
.gap-mini .btn-row { margin-top: auto; }

/* source notes inline, and the sourced 'on top' list */
.src { color: var(--muted); font-size: .85em; white-space: nowrap; }
.on-top ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; max-width: 70rem; }
