/* Chess, a Parlor and Play section.
   Same palette and type as the house style:
   pine #1E3A2F, brass #B08A3C, sand #E7DCC3, cream #FAF5EA.
   Fraunces for display, Source Sans 3 for body (loaded per page).
   Tool classes follow the Starter Kit Builder pattern in mahjong.css. */

.crumbs { font-size: 0.88rem; color: var(--muted); margin: 0 0 14px 0; }
.crumbs a { color: var(--pine); }

.trainer {
  background: var(--paper);
  border: 1px solid var(--sand-line);
  padding: 22px 20px;
  margin: 0 0 22px 0;
}
.trainer .oneline {
  font-size: 1.02rem;
  color: var(--pine);
  font-weight: 600;
  margin: 0 0 6px 0;
}

.controls { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px 0; }
.controls .btn { cursor: pointer; font-family: inherit; }

.funnel {
  background: var(--pine); color: var(--cream);
  padding: 24px; margin: 30px 0 8px 0;
}
.funnel h2 { color: var(--cream); margin-top: 0; }
.funnel p { color: var(--cream); }
.funnel .btn { background: var(--brass); border-color: var(--brass); color: #fff; }
.funnel .btn:hover { background: var(--brass-soft); color: var(--pine-dark); }
.funnel .btn.alt { background: transparent; color: var(--cream); border-color: var(--brass-soft); }
.funnel .btn.alt:hover { background: rgba(201, 169, 97, 0.18); color: #fff; }
.funnel .small { color: var(--sand); }
.funnel a { color: var(--brass-soft); }
.funnel a:hover { color: #fff; }

.disclaimer { font-size: 0.88rem; color: var(--muted); border-top: 1px dotted var(--sand-line); padding-top: 16px; margin-top: 26px; }
.disclaimer h2 { font-size: 1.05rem; margin-top: 0; }

/* Compact header for tool pages (same opt-in as the mahjong pages):
   one row on phones so the header does not bury the tool. */
@media (max-width: 760px) {
  header.site.compact .wrap { display: flex; align-items: center; gap: 18px; padding-top: 10px; padding-bottom: 10px; }
  header.site.compact .brand { font-size: 1.12rem; flex: 0 0 auto; }
  header.site.compact .brand small { font-size: 0.58rem; margin-top: 0; }
  header.site.compact nav.main { margin-top: 0; display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  header.site.compact nav.main::-webkit-scrollbar { display: none; }
  header.site.compact nav.main a { white-space: nowrap; margin-right: 14px; font-size: 0.9rem; }
}

/* Set Finder (Nov 10, 2026): option cards, player count, results */
.kitstrip p:last-child { margin-bottom: 0; }
.kitfield { border: 1px solid var(--sand-line); background: #fff; padding: 16px 18px; margin: 0 0 16px 0; }
.kitfield legend { font-family: "Fraunces", Georgia, serif; font-weight: 600; color: var(--pine); font-size: 1.05rem; padding: 0 6px; }
.kitopts { display: grid; gap: 10px; }
@media (min-width: 700px) { .kitopts { grid-template-columns: 1fr 1fr 1fr; } }
.kitopt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--sand-line); background: var(--cream); padding: 12px 14px; cursor: pointer; min-height: 48px; }
.kitopt:hover { border-color: var(--brass); }
.kitopt:has(input:checked) { border-color: var(--brass); background: rgba(176, 138, 60, 0.10); }
.kitopt input { margin-top: 5px; flex: 0 0 auto; }
.kitopt strong { display: block; color: var(--pine); margin-bottom: 2px; }
.kitopt span { font-size: 0.95rem; line-height: 1.45; }
.kittotal { font-family: "Fraunces", Georgia, serif; font-size: 1.45rem; font-weight: 600; color: var(--pine); margin: 6px 0 4px 0; }
ul.checklist { list-style: none; padding: 0; margin: 0 0 1em 0; }
ul.checklist li { position: relative; padding: 9px 0 9px 34px; border-bottom: 1px dotted var(--sand-line); }
ul.checklist li:last-child { border-bottom: none; }
ul.checklist li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 15px; height: 15px; border: 2px solid var(--brass); border-radius: 2px; background: var(--paper); }
#finder-results { margin-top: 18px; }
#finder-results:empty { margin-top: 0; }

.playercount { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.playercount input[type="number"] {
  width: 120px; padding: 10px 12px; font: inherit; font-size: 1.05rem;
  border: 1px solid var(--sand-line); background: #fff; color: var(--ink); border-radius: 2px;
}
.playercount .hint { font-size: 0.92rem; color: var(--muted); }

/* Demonstration board for the How the Pieces Move page */
.boardwrap { max-width: 520px; margin: 14px 0 8px 0; }
.cboard {
  display: grid; grid-template-columns: repeat(8, 1fr);
  border: 2px solid var(--pine-dark);
  width: 100%;
}
.csq {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: clamp(1.15rem, 6vw, 2rem); line-height: 1; user-select: none;
}
.csq.l { background: #F2E8CE; }
.csq.d { background: #7A9B76; }
.csq .wp { color: #FFFDF4; text-shadow: 0 0 2px #243129, 0 1px 2px rgba(20, 42, 33, 0.8); }
.csq .bp { color: #1E2A24; text-shadow: 0 0 2px rgba(250, 245, 234, 0.6); }
.boardcap { font-size: 0.9rem; color: var(--muted); margin: 6px 0 0 0; }

.piecemove { border: 1px solid var(--sand-line); background: var(--paper); padding: 16px 18px; margin: 0 0 14px 0; }
.piecemove h3 { margin-top: 0; }
.piecemove p:last-child { margin-bottom: 0; }
.piecemove .glyph { font-size: 1.5rem; color: var(--pine); margin-right: 8px; }
