/* Session Stats on the Hit Analyzer template. Colours and type come from hit-analyzer.css. */
.ss-page figure img { display: block; width: 100%; height: auto; }
.ss-page figcaption { color: var(--sub); font-size: .94rem; line-height: 1.5; }
.ss-page figcaption strong { color: var(--fg); }

/* Hero: the mini panel holds both garage widgets, the showcase holds the whole window. */
.ss-page #mini-content { justify-content: flex-start; gap: .55rem; margin-top: .6rem; }
.ss-page #mini-content > img { max-height: none; border-radius: 5px; }
.ss-page #mini-content h3 { font-size: .86rem; font-weight: 700; color: var(--fg); }
.ss-page #mini-content h3:not(:first-child) { margin-top: .5rem; }
.ss-page .mini p { margin-top: 0; }
.ss-page .showcase { align-self: center; }
.ss-page .showcase > a { display: block; background: var(--well); }
.ss-page .neg { color: var(--red); }
.ss-page .pos { color: var(--green); }

/* Worked example */
.ss-page .ss-case p { color: #c9d5df; margin-top: .8rem; max-width: 70ch; }
.ss-page .ss-case p.caption { color: var(--sub); }
.ss-page .stat.red { background: #45292d; }
.ss-page .stats + .stats { margin-top: .45rem; }
.ss-page .ss-detail { margin-top: 1rem; }
.ss-page .ss-detail img { border: 1px solid var(--edge); border-radius: 6px; }
.ss-page .ss-detail figcaption { margin-top: .45rem; }

/* Guide chapters: text on the left, the game window on the right. */
.ss-page .ss-intro { border-top: 1px solid var(--edge); margin-top: 1.65rem; padding: 1.35rem 0 .2rem; }
.ss-page .ss-intro p { color: #c9d5df; max-width: 84ch; margin-top: .5rem; }
.ss-page .ss-chapter {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.38fr);
  gap: clamp(1rem, 2.2vw, 2.2rem); align-items: start;
  padding: clamp(1rem, 2vw, 1.8rem); margin: 1.2rem 0;
}
.ss-page .ss-chapter .over { display: block; margin-bottom: .3rem; }
.ss-page .ss-copy p { color: #c9d5df; margin-top: .8rem; }
.ss-page .ss-copy h3 { font-size: 1.08rem; margin-top: 1.2rem; }
.ss-page .ss-copy h3 + p { margin-top: .35rem; }
.ss-page .ss-shot a { display: block; border: 1px solid var(--edge); border-radius: 6px; overflow: hidden; background: var(--well); }
.ss-page .ss-shot a:hover { border-color: #9d8053; }
.ss-page .ss-shot figcaption { margin-top: .5rem; }
.ss-page .ss-widgets { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
/* The six tab buttons stay under the site header while the chapters scroll. */
.ss-page .ss-guide .ss-chapter { scroll-margin-top: 3.75rem; }
.ss-page .ss-tabs {
  position: sticky; top: var(--mod-header, 4.3rem); z-index: 5;
  display: flex; gap: .45rem; margin: 1rem 0 0; padding: .6rem 0;
  background: var(--bg); border-bottom: 1px solid var(--edge);
  font-weight: 700; font-size: .93rem; color: var(--fg);
  overflow-x: auto; scrollbar-width: none;
}
.ss-page .ss-tabs::-webkit-scrollbar { display: none; }
.ss-page .ss-tabs a, .ss-page .ss-tabs a:last-child {
  background: #1c2a35; border: 1px solid var(--edge); border-radius: 6px;
  padding: .5rem .9rem; white-space: nowrap; color: var(--fg);
}
.ss-page .ss-tabs a:hover { border-color: #e6a33c; }
.ss-page .ss-tabs a[aria-current] { background: #49391f; border-color: #e79c2b; color: #ffc16b; }

@media (max-width: 800px) {
  .ss-page .ss-chapter, .ss-page .ss-widgets { grid-template-columns: 1fr; }
  .ss-page .ss-widgets .ss-shot { max-width: 26rem; }
}
