/* The board and its own table accessories share one layout in both games. */
.board-table-layout {display:grid;grid-template-columns:minmax(0,1fr) minmax(235px,300px);align-items:start;gap:16px;width:100%;max-width:1050px;margin:auto;min-width:0}
.board-table-layout>.board-coordinates {align-self:start;width:100%;max-width:600px}
.board-table-sidebar {box-sizing:border-box;display:flex;flex-direction:column;gap:10px;min-width:0;width:100%;color:#19364c;direction:var(--board-clock-text-direction,ltr)}
.board-table-sidebar>.board-clock {margin:0;max-width:none}
.board-table-sidebar>.chess-sidebar {max-width:none;padding:12px;width:100%;overflow:visible;max-height:none}
.board-table-layout>.board-caption {grid-column:1/-1;margin:0;text-align:center}
.board-table-extra {box-sizing:border-box;border:1px solid #b7c9d8;border-radius:12px;background:#fffdf5;overflow:hidden;min-width:0}
.board-table-extra>summary {box-sizing:border-box;cursor:pointer;min-height:44px;padding:11px 12px;font:700 .85rem/1.5 system-ui,sans-serif;overflow-wrap:anywhere}
.board-table-extra>summary:focus-visible,.board-record-choice:focus-within {outline:3px solid #075b8c;outline-offset:-3px}
.board-table-extra[open]>summary {border-bottom:1px solid #cedae2}
.board-table-content {padding:10px;min-width:0}
.board-table-content p {font:400 .75rem/1.5 system-ui,sans-serif;margin:6px 0;overflow-wrap:anywhere}
.board-capture-side+.board-capture-side {margin-top:10px}
.board-capture-name {display:block;font:650 .77rem/1.4 system-ui,sans-serif;margin-bottom:4px}
.board-capture-pieces {display:flex;flex-wrap:wrap;align-items:center;gap:3px;min-height:30px;direction:ltr}
.board-capture-piece {display:grid;place-items:center;position:relative;width:30px;height:37px;flex:none}
.board-capture-piece>.chess-piece {width:100%;height:100%;max-width:none;max-height:none}
.board-capture-piece>.checker {box-sizing:border-box;width:25px;height:25px;border-width:2px}
.board-capture-piece .checker-crown {width:70%;height:70%}
.board-record-choice {display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;font:650 .8rem/1.4 system-ui,sans-serif}
.board-record-choice input {width:22px;height:22px;flex:none;accent-color:#075b8c;margin:0}
.board-move-list {display:grid;grid-template-columns:2.5em minmax(0,1fr) minmax(0,1fr);gap:0;direction:ltr;border:1px solid #d0dce5;border-radius:7px;max-height:240px;overflow:auto;overscroll-behavior:contain;font:650 .82rem/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;font-variant-numeric:tabular-nums}
.board-move-row {display:contents}
.board-move-row>span {padding:5px 4px;min-width:0;overflow-wrap:anywhere;border-bottom:1px solid #e1e7ed}
.board-move-number {color:#607486;font-weight:400;background:#edf2f6;text-align:center}
.board-move-row:last-child>span {border-bottom:0}
.board-move-more {font-size:.78rem;min-height:44px;width:100%;margin-top:6px}
.board-table-layout .chess-turn strong {font-size:15px}
#board:is([data-board-style=living][data-board-ready=true],[data-chess-style=living]) .board-table-extra {border-color:#af9062;background:#fcf6e8;color:#433724;box-shadow:0 3px 0 #b49c7155}
#board:is([data-board-style=living][data-board-ready=true],[data-chess-style=living]) .board-move-number {background:#e9dfcb;color:#61543b}
html[data-km-contrast=high] .board-table-extra {background:#fff;color:#102837;border:2px solid #102837;box-shadow:none}
html[dir=rtl] .board-table-sidebar {--board-clock-text-direction:rtl}
@media(max-width:899px) {.board-table-layout {grid-template-columns:minmax(0,1fr);max-width:620px}.board-table-sidebar>.chess-sidebar {padding:10px}.board-table-layout>.board-caption {grid-column:1}.board-table-sidebar {max-width:600px;margin:auto}}
html.km-playing .board-table-layout {display:grid;grid-template-columns:var(--km-coordinate-frame-width,var(--km-grid-width)) var(--km-table-sidebar-w,280px);gap:14px;width:max-content;max-width:100%;align-items:start}
html.km-playing.km-phone-landscape .board-table-layout {grid-template-columns:var(--km-coordinate-frame-width,var(--km-grid-width)) var(--km-table-sidebar-w,280px);align-items:start}
html.km-playing .board-table-layout>.board-coordinates {width:var(--km-coordinate-frame-width);max-width:none}
html.km-playing .board-table-sidebar {max-height:var(--km-table-panel-height,var(--km-fit-height));overflow:auto;overscroll-behavior:contain;padding:2px 4px 4px;scrollbar-gutter:stable;align-self:start}
html.km-playing .board-table-sidebar>* {flex-shrink:0}
html.km-playing .board-table-sidebar .chess-sidebar {max-height:none;overflow:visible}
html.km-playing .board-table-layout>.board-caption {font-size:12px;line-height:1.4}
html.km-playing.km-table-portrait .board-table-layout {grid-template-columns:var(--km-coordinate-frame-width,var(--km-grid-width));gap:8px}
html.km-playing.km-table-portrait .board-table-sidebar {width:100%;max-width:none}
html.km-playing.km-clean .board-table-sidebar .chess-turn,html.km-playing.km-clean .board-table-sidebar .chess-tip {display:none}
html.km-playing.km-clean.km-phone-landscape .board-table-layout>.board-caption {display:none}
html.km-playing.km-clean .board-table-sidebar .chess-sidebar:has(.chess-coach[hidden]) .game-controls {margin:0}
@media(forced-colors:active) {.board-table-extra {background:Canvas!important;color:CanvasText!important;border-color:CanvasText!important;box-shadow:none!important}.board-record-choice input {accent-color:auto}}
