/* Look of tables, chairs and room items (seats-art.js), shared by the guest seat map and the room builder.
   Colours come from the site's own tokens (styles.css: --navy --navy-deep --blue --gold --line --paper --ink;
   home.css: --panel --edge); the hex values are only fallbacks.
   Chair state is carried by custom properties, so one rule set colours an HTML <button> chair and an SVG <g> chair. */

/* tier colours: cushion, backrest, number ink (>= 4.5:1 on the cushion) */
.dka-t-gold { --tier-cushion: var(--gold, #f6bf18); --tier-back: #c99a0a; --tier-ink: var(--navy, #06274f); }
.dka-t-green { --tier-cushion: var(--blue, #0759a8); --tier-back: #04407a; --tier-ink: #fff; }
.dka-t-grey { --tier-cushion: #7f95b3; --tier-back: #5d7392; --tier-ink: var(--navy-deep, #031a37); }
.dka-t-blue { --tier-cushion: #3f6fa3; --tier-back: #2c5079; --tier-ink: #fff; }
.dka-t-rose { --tier-cushion: #a85f76; --tier-back: #7d3a50; --tier-ink: #fff; }
.dka-t-purple { --tier-cushion: #7a66aa; --tier-back: #554281; --tier-ink: #fff; }

.dka-st { --c-seat: var(--tier-cushion, #0759a8); --c-back: var(--tier-back, #04407a); --c-edge: var(--tier-back, #04407a); --c-ink: var(--tier-ink, #fff); }
.dka-st.is-yours { --c-seat: var(--navy-deep, #031a37); --c-back: var(--navy, #06274f); --c-edge: var(--gold, #f6bf18); --c-ink: #fff; }
.dka-st.is-held { --c-seat: color-mix(in srgb, var(--tier-cushion, #0759a8) 30%, #e8ecf2); --c-back: color-mix(in srgb, var(--tier-back, #04407a) 35%, #c3ccd8); --c-edge: #b8862a; --c-ink: var(--navy-deep, #031a37); }
.dka-st.is-taken { --c-seat: #cfd6df; --c-back: #b8c0cc; --c-edge: #b8c0cc; --c-ink: #4a5a70; }

.dka-c .ch-seat, .dka-c-svg .ch-seat { fill: var(--c-seat); stroke: var(--c-edge); stroke-width: 1px; transition: fill .1s ease, stroke .1s ease; }
.dka-c .ch-back, .dka-c-svg .ch-back { fill: var(--c-back); stroke: none; transition: fill .1s ease; }
.ch-hatch { display: none; fill: url(#dka-hatch); pointer-events: none; }
.is-held .ch-hatch { display: inline; }
.is-yours .ch-seat { stroke-width: 2px; }
.is-yours .ch-back { stroke: var(--gold, #f6bf18); stroke-width: 1.5px; }
.dka-c-svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; }

/* marks drawn on the cushion so state never depends on colour alone */
.ch-marks { display: none; }
.is-yours .ch-marks, .is-taken .ch-marks, .is-held .ch-marks { display: inline; }
.ch-check, .ch-x, .ch-clock { display: none; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ch-check { stroke: #fff; stroke-width: 2px; }
.is-yours .ch-check { display: inline; }
.ch-x { stroke: #5b6b82; stroke-width: 1.4px; }
.is-taken .ch-x { display: inline; }
.ch-clock circle { fill: #fff; stroke: #7a5a0c; stroke-width: 1.1px; }
.ch-clock path { stroke: #7a5a0c; stroke-width: 1.1px; }
.is-held .ch-clock { display: inline; }
.ch-badge { display: none; }
.ch-badge circle { fill: var(--gold, #f6bf18); stroke: var(--navy-deep, #031a37); stroke-width: 1px; }
.ch-badge path { fill: none; stroke: var(--navy-deep, #031a37); stroke-width: 1.1px; stroke-linecap: round; stroke-linejoin: round; }
.is-yours .ch-badge { display: inline; }

/* "Seat us together": a static 2px dashed navy ring and a small gold dot */
.ch-ring { display: none; fill: none; stroke: var(--navy, #06274f); stroke-width: 2px; stroke-dasharray: 4 3; }
.ch-dot { display: none; fill: var(--gold, #f6bf18); stroke: var(--navy, #06274f); stroke-width: 1px; }
.is-suggest .ch-ring, .is-suggest .ch-dot { display: inline; }

/* floor */
.dka-floor { fill: var(--panel, #eef3f9); }
.dka-floor-edge { fill: none; stroke: var(--edge, #dfe8f2); stroke-width: 1.5px; }

/* tables: navy top, tier-coloured edge band, lighter bevel line */
.dka-table .dka-cloth { fill: var(--navy, #06274f); stroke: var(--tier-cushion, #0759a8); stroke-width: 2px; transition: stroke .1s ease; }
.dka-bevel { fill: none; stroke: #fff; stroke-opacity: .2; stroke-width: 1px; pointer-events: none; }
.dka-table.is-mine .dka-cloth, .dka-table.is-focus .dka-cloth { stroke: var(--gold, #f6bf18); stroke-width: 3px; }
.dka-table.is-full .dka-cloth { fill: #c9d2de; stroke: #9aa6b6; }
.dka-table.is-full .dka-bevel { stroke: #fff; stroke-opacity: .5; }

/* room items */
.dka-it { pointer-events: none; font-weight: 700; }
.dka-lt { fill: #fff; }
.dka-dk { fill: var(--ink, #10233c); font-weight: 600; }
.dka-mute { fill: #4a5a70; font-weight: 600; }
.dka-f-stage { fill: var(--navy-deep, #031a37); stroke: none; }
.dka-f-bar { fill: var(--blue, #0759a8); stroke: var(--navy, #06274f); stroke-width: 1.4px; }
.dka-stool { fill: var(--navy, #06274f); stroke: #fff; stroke-opacity: .7; stroke-width: 1px; }
.dka-f-door { fill: var(--blue, #0759a8); stroke: none; }
.dka-f-exit { fill: var(--navy, #06274f); }
.dka-arc { fill: none; stroke: #fff; stroke-opacity: .85; stroke-width: 1px; stroke-linecap: round; }
.dka-f-dance { fill: url(#dka-parquet); stroke: #b9c7da; stroke-width: 1px; }
.dka-pq-a { fill: var(--paper, #f5f8fc); }
.dka-pq-b { fill: var(--line, #dce4ee); }
.dka-pill { fill: #fff; fill-opacity: .92; }
.dka-f-aisle { fill: #dfe8f3; stroke: #9fb0c7; stroke-width: 1px; }
.dka-f-label { fill: rgba(255, 255, 255, .01); stroke: #8fa1b8; stroke-width: 1px; }
.dka-f-quiet { stroke: none; }
.dka-swatch { display: block; flex: none; overflow: visible; }

@media (prefers-reduced-motion: reduce) {
  .dka-c .ch-seat, .dka-c-svg .ch-seat, .dka-c .ch-back, .dka-c-svg .ch-back, .dka-table .dka-cloth { transition: none; }
}
@media (forced-colors: active) {
  .dka-c .ch-seat, .dka-c-svg .ch-seat { stroke: CanvasText; }
  .is-yours .ch-seat { fill: Highlight; }
}
