/* ============================================================================
   seating-chart.css  —  🧑‍🏫 The Seating Chart (classroom randomizer) styling (.sea-*)
   A top-down classroom of desks; a warm spotlight sweeps and lands on one desk.
   Self-contained. Warm-wood desks, chalkboard-green board, spotlight-gold.
   ============================================================================ */
.sea-stage { position: relative; }
.sea-room { background: linear-gradient(160deg, #f4ead4, #e7d4ae); border-radius: 18px; padding: 16px 16px 20px; position: relative; overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(120, 84, 30, .25); }
.page-sea-scope[data-nope] { } /* placeholder */

.sea-board { background: linear-gradient(180deg, #2f5d47, #274d3b); color: #eaf5ee; border-radius: 10px; padding: 9px 14px; text-align: center;
    font-weight: 800; letter-spacing: .04em; font-size: 15px; margin-bottom: 16px; border: 3px solid #7c5730;
    box-shadow: inset 0 2px 6px rgba(0,0,0,.3), 0 3px 0 #6b4a2c; }
.sea-board-status { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; color: rgba(234,245,238,.78); min-height: 14px; margin-top: 2px; }

.sea-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px 11px; }
@media (max-width: 575.98px) { .sea-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 576px) and (max-width: 991.98px) { .sea-grid { grid-template-columns: repeat(4, 1fr); } }

/* a school desk seen from above: a wooden top (text directly on the wood, no
   card), a raised front edge, and a chair tucked below. Every desk is a FIXED
   size so the grid stays uniform whatever the label length. */
.sea-desk { position: relative; display: flex; flex-direction: column; align-items: center; cursor: default;
    transition: transform .18s ease, opacity .2s, filter .2s; }
.sea-desktop { width: 100%; height: 54px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 5px 6px;
    background: linear-gradient(180deg, #e3b87d, #c48f4c); border: 1.5px solid #9a6a30; border-bottom-width: 5px;
    box-shadow: 0 6px 10px -6px rgba(80,50,15,.55), inset 0 1px 0 rgba(255,255,255,.35); transition: box-shadow .2s; }
.sea-who { font-weight: 800; font-size: 12.5px; color: #3a2410; line-height: 1.12; text-align: center; text-shadow: 0 1px 0 rgba(255,255,255,.28);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-height: 2.3em; word-break: break-word; }
.sea-chair { width: 44%; height: 11px; margin-top: 5px; border-radius: 0 0 7px 7px; background: linear-gradient(180deg, #d3a367, #9a6a30);
    box-shadow: 0 3px 5px -3px rgba(0,0,0,.4); }
/* idle "fidget" — a chair scoots a little, like a student shifting in their seat */
.sea-chair.sea-fidget { animation: seaFidget .95s ease-in-out; }
@keyframes seaFidget { 0%,100% { transform: none; } 28% { transform: translate(-3px, 3px) rotate(-6deg); } 60% { transform: translate(2px, 1px) rotate(3deg); } 82% { transform: translate(-1px, 1px) rotate(-1deg); } }

.sea-room.sea-dim .sea-desk { opacity: .42; filter: saturate(.6); }
.sea-desk.sea-active { opacity: 1 !important; filter: none !important; transform: translateY(-2px) scale(1.03); z-index: 2; }
.sea-desk.sea-active::after { content: ""; position: absolute; inset: -14px -10px; border-radius: 18px; z-index: -1; pointer-events: none;
    background: radial-gradient(circle at 50% 42%, rgba(255,217,119,.85), transparent 72%); }
.sea-desk.sea-win { opacity: 1 !important; filter: none !important; transform: translateY(-6px) scale(1.08); z-index: 3; }
.sea-desk.sea-win .sea-desktop { box-shadow: 0 0 0 3px #ffd977, 0 14px 22px -8px rgba(120,80,20,.7); }
.sea-desk.sea-win::after { content: ""; position: absolute; inset: -16px -12px; border-radius: 20px; z-index: -1; pointer-events: none;
    background: radial-gradient(circle at 50% 42%, rgba(255,217,119,.9), transparent 72%); }

/* mode chips — swap what's on the desks */
.sea-modes-wrap { text-align: center; }
.sea-modes-lbl { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--theme-muted, #6b7280); margin: 0 0 8px; }
.sea-modes { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin: 0 auto 16px; }
.sea-mode { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13.5px; font-weight: 650; padding: 7px 13px; border-radius: 11px;
    background: var(--theme-surface, #fff); color: var(--theme-text, #1a1a2e); border: 1.5px solid var(--theme-border, #dfe4ee);
    transition: transform .12s ease, border-color .15s, background .15s, box-shadow .15s; }
.sea-mode .sea-mode-e { font-size: 15px; line-height: 1; }
.sea-mode:hover { transform: translateY(-2px); border-color: var(--sea-accent, #2f7d5b); }
.sea-mode.is-on { background: var(--sea-accent, #2f7d5b); border-color: var(--sea-accent, #2f7d5b); color: #fff; box-shadow: 0 7px 18px -6px var(--sea-accent, #2f7d5b); }
.sea-mode:focus-visible { outline: 3px solid color-mix(in srgb, var(--sea-accent, #2f7d5b) 55%, transparent); outline-offset: 2px; }

.sea-pickbtn-wrap { text-align: center; }
.sea-pickbtn-main { display: inline-flex; align-items: center; gap: 8px; margin: 16px auto 0; font-size: 15px; font-weight: 800; color: #fff;
    padding: 13px 34px; border-radius: 14px; border: 0; cursor: pointer; letter-spacing: .3px;
    background: linear-gradient(135deg, var(--sea-grad-a, #34a06f), var(--sea-grad-b, #1f5d41));
    box-shadow: 0 12px 24px -8px var(--sea-accent, #2f7d5b), inset 0 1px 0 rgba(255,255,255,.22); transition: transform .12s ease, filter .15s; }
.sea-pickbtn-main:hover { transform: translateY(-2px); filter: brightness(1.05); }
.sea-pickbtn-main:disabled, .sea-pickbtn-main.is-busy { opacity: .6; cursor: default; transform: none; filter: grayscale(.2); }

.sea-effects { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-size: 13px; color: var(--theme-text, #1a1a2e); justify-content: center; }
.sea-effects label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.sea-items-ta { width: 100%; min-height: 220px; font-family: monospace; font-size: .9rem; line-height: 1.55; border-radius: 10px; border: 1px solid var(--theme-border, #d7dbe0); background: var(--theme-bg, #fff); color: var(--theme-text, #1a1a2e); padding: 10px 12px; resize: vertical; }
.sea-items-ta:focus { outline: 2px solid var(--sea-accent, #2f7d5b); outline-offset: 1px; border-color: transparent; }

.page-sea-scope {
    --wsp-result-accent: var(--sea-accent, #2f7d5b);
    --wsp-result-grad: linear-gradient(135deg, var(--sea-grad-a, #34a06f), var(--sea-grad-b, #1f5d41));
    --wsp-result-plate: color-mix(in srgb, var(--sea-accent, #2f7d5b) 13%, #fff);
}

/* ── SEO content (.sea-content) — type scale from .content-guide; colour only ── */
.sea-content { color: var(--theme-text, #1a1a2e); background: var(--theme-bg, #fff); padding: 3.25rem 0 3.5rem; margin-top: 1rem; border-top: 1px solid var(--theme-border, #e9ecef); }
.sea-inner { max-width: 860px; margin: 0 auto; padding: 0 1rem; }
.sea-content h2, .sea-content h3 { color: var(--theme-text, #1a1a2e); }
.sea-content p, .sea-content li { color: var(--theme-muted, #5b6470); }
.sea-content strong { color: var(--theme-text, #1a1a2e); }
.sea-content a { color: #1f6d4b; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.sea-kicker-chip { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, #34a06f, #1f5d41); border-radius: 999px; padding: .3rem .85rem; margin-bottom: .95rem; }
.sea-content .sea-lead { font-size: 1.2rem; line-height: 1.7; color: var(--theme-text, #1a1a2e); margin-bottom: 1.25rem; }
.sea-section { margin-top: 2.9rem; }
.sea-content .table { font-size: 1rem; }
.sea-content .table thead th { text-transform: uppercase; letter-spacing: .05em; font-size: .74rem; font-weight: 800; color: #fff; background: #1f6d4b; padding: .7rem 1rem; }
.sea-content .table tbody td { padding: .6rem 1rem; border-bottom: 1px solid var(--theme-border, #e9ecef); vertical-align: top; }
.sea-content .table tbody td:first-child { font-weight: 700; color: var(--theme-text, #1a1a2e); white-space: nowrap; }
.sea-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.sea-pair-card { background: var(--theme-surface, #f8f9fa); border: 1px solid var(--theme-border, #e9ecef); border-radius: 12px; padding: 1rem 1.1rem; border-top: 3px solid #34a06f; }
.sea-pair-card h3 { margin-top: 0 !important; font-size: 1.02rem !important; } .sea-pair-card p:last-child { margin-bottom: 0; font-size: .92rem; }
.sea-faq { margin-top: 1.4rem; }
.sea-faq .accordion-item { background: transparent; border: 0; border-bottom: 1px solid var(--theme-border, #e9ecef); }
.sea-faq .accordion-button { background: transparent; color: var(--theme-text, #1a1a2e); font-weight: 600; padding-left: 0; padding-right: 2.5rem; box-shadow: none; }
.sea-faq .accordion-button:not(.collapsed) { color: #1f6d4b; background: transparent; }
.sea-faq .accordion-button:focus { box-shadow: none; }
.sea-faq .accordion-body { padding-left: 0; color: var(--theme-muted, #5b6470); }
@media (max-width: 767.98px) { .sea-pair { grid-template-columns: 1fr; } }
body[data-theme="high-contrast"] .sea-content p, body[data-theme="high-contrast"] .sea-content li, body[data-theme="high-contrast"] .sea-content .sea-lead { color: rgba(255,255,255,.84); }
body[data-theme="high-contrast"] .sea-content h2, body[data-theme="high-contrast"] .sea-content h3 { color: #fff; }
