/* The public site (GitHub Pages): a few additions to the shared style.css. */

.about p { margin: 0 0 8px; line-height: 1.5; color: var(--ink-2); font-size: 0.92rem; }
.about a, .site-footer a { color: var(--accent); }
.site-footer { text-align: center; color: var(--ink-muted); font-size: 0.85rem; padding: 24px 16px 32px; }
.actions button:disabled { opacity: 0.5; }

.player { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captured { display: inline-flex; align-items: center; gap: 6px; min-height: 22px; }
.captured .group { display: inline-flex; }
.captured .piece { width: 22px; height: 22px; cursor: default; flex: none; }
.captured .piece + .piece { margin-left: -13px; }     /* same kind: overlapped */
.captured .score { color: var(--ink-2); font-size: 0.85rem; font-weight: 600; }
@media (max-width: 520px) {                           /* phones: smaller icons, so a full row still fits */
  .captured { gap: 4px; }
  .captured .piece { width: 17px; height: 17px; }
  .captured .piece + .piece { margin-left: -10px; }
}
.move-list .san[data-ply] { cursor: pointer; }
.move-list .san[data-ply]:hover { background: var(--line); }

.board.viewing { outline: 3px solid var(--accent); outline-offset: 2px; }   /* not the game's position */

.step-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.step-buttons button { padding: 6px 0; font-size: 0.95rem; line-height: 1; }
.step-buttons button:disabled { opacity: 0.4; }
.play-from-here { width: 100%; margin-top: 8px; }
#adaptive-note { margin: 6px 0 0; }
.adaptive-history { margin-top: 6px; font-size: 0.85rem; }
.adaptive-history summary { cursor: pointer; color: var(--muted, inherit); }
.adaptive-history ol { margin: 6px 0; padding-left: 1.2em; }
.adaptive-history button { margin-top: 2px; }
.result-banner .adaptive-result { font-weight: 600; }
.badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 0.75rem;
         font-weight: 600; vertical-align: middle; border: 1px solid currentColor; opacity: 0.8; }

.segmented span { white-space: nowrap; }

.opening { margin: -4px 0 10px; color: var(--ink-2); font-size: 0.9rem; }
.opening .eco { font: 600 0.8rem ui-monospace, monospace; color: var(--ink-muted); margin-right: 4px; }

.mode-switch { margin-bottom: 14px; }
#position-fields label { color: var(--ink-2); font-size: 0.9rem; }
#position-fields textarea { font: 0.85rem ui-monospace, monospace; padding: 6px 8px; border-radius: 6px; resize: vertical;
  border: 1px solid var(--line); background: var(--page); color: var(--ink); width: 100%; }

.form-error { color: var(--danger); font-size: 0.85rem; margin: 2px 0 0; }

.volume { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 0.9rem; }
.volume input { width: 90px; }

/* Pages: Play and Analyse */
.site-nav { display: flex; gap: 14px; flex-wrap: wrap; margin: 4px 0 6px; font-size: 0.95rem; }
.site-nav a { color: inherit; opacity: 0.75; text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav a:hover { opacity: 1; }
.site-nav a[aria-current="page"] { opacity: 1; border-bottom-color: currentColor; font-weight: 600; }

/* The Analyse page */
.analyse-layout { max-width: 820px; margin: 0 auto; padding: 0 16px 24px; display: grid; gap: 16px; }
.analyse-layout textarea { width: 100%; box-sizing: border-box; font-family: ui-monospace, monospace; font-size: 0.85rem; }
.analyse-layout input[type="text"] { width: 100%; box-sizing: border-box; }
.estimate-list { padding-left: 1.2em; line-height: 1.5; }
.estimate-list li { margin-bottom: 6px; }
.estimate-overall { font-weight: 600; margin: 8px 0; }
.estimate-list .misfit { margin: 4px 0 0; font-size: 0.9rem; }
.fetch-games { border: 0; padding: 0; margin: 0 0 10px; }
.fetch-row { display: flex; gap: 8px; flex-wrap: wrap; }
.fetch-row input[type="text"] { flex: 1 1 140px; width: auto; }

/* The Review page's game box fills its panel */
#review-pgn { width: 100%; box-sizing: border-box; font-family: ui-monospace, monospace; font-size: 0.85rem; }
.review-options { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.review-options .primary { flex: 1 1 140px; }
