
/* Deliberately its own, smaller calibration — not unified with the
   other 5 sector pages' shared clamp(1.35rem, 3.9cqw, 2.25rem) (see
   css/common.css). This page's title ("National K-12 School Leadership
   Round Table Speakers Guide") is 50%+ longer than any other sector
   page's; the class is white-space:nowrap, so matching the shared size
   would overflow the fixed-width hero column. Confirmed 2026-08-28
   heading-uniformity pass — this is the justified exception, not an
   unchecked leftover. */
.conference-hero-heading--beyond-academics { font-size: clamp(1rem, 2.7cqw, 1.55rem); }

@media (max-width: 1000px) {
    .conference-hero-heading--beyond-academics {
        white-space: normal;
        font-size: 1.3rem;
    }}

/* Mobile-perf pass (2026-09): the shared .policy-page-intro.k12-wrapper
   rule in css/common.css deliberately left-aligns this hero title block
   (paired with an optional partner-logo card at desktop widths — see
   common.css's own comment above that rule). At <=600px this page's
   title/date-pill column is the only thing in the block (no logo card),
   so left-alignment just reads as an odd ragged edge instead of a
   deliberate two-column layout. Scoped here (not common.css, which is
   shared across all 6 sector pages and off-limits) using this page's
   own hero-heading modifier class to win the cascade — same centering
   recipe as css/common.css's #past-events / .section-header mobile
   block (text-align:center, max-width:820px, margin-inline:auto), just
   targeted at this page's own title block instead of a generic
   .section-header. */
@media (max-width: 600px) {
    .policy-page-intro.k12-wrapper {
        text-align: center;
        max-width: 820px;
        margin-inline: auto;
    }
    .policy-page-intro.k12-wrapper .conference-hero-heading--beyond-academics,
    .policy-page-intro.k12-wrapper .policy-intro-meta {
        text-align: center;
    }}

/* ======================================= */
/* BEYOND ACADEMICS PAGE (round table)      */
/* Sits inside the shared .k12-wrapper page */
/* pattern above — reuses the plain-text Theme
   heading and .k12-cta-wrap as-is; the discussion-
   format steps grid and the 3D hero panel
   below are new to this page. */
/* ======================================= */

.ba-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 6px;
}

.ba-step {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.ba-step-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px 18px;
}

.ba-step-time {
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--text-light);
}

.ba-step-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.35;
    margin: 0;
}

@media (max-width: 900px) {
    .ba-steps-grid { grid-template-columns: repeat(2, 1fr); }}

@media (max-width: 480px) {
    .ba-steps-grid { grid-template-columns: 1fr; }}

/* --- 3D hero table (three.js, see beyond-academics.php's module
   script) — lazy-mounted on scroll-into-view; this CSS provides the
   reserved-size placeholder (avoids CLS) and the tinted panel behind
   the canvas so the block still looks intentional before/without JS. */
.ba-3d-hero {
    position: relative;
    height: clamp(260px, 34vw, 380px);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    overflow: hidden;
    /* Same warm cream room tone as the 3D Floor Planner (#f1eee8) — kept
       as the placeholder background too, so there's no color jump once
       the real WebGL floor renders its first frame. */
    background:
        radial-gradient(60% 60% at 50% 40%, rgba(255, 255, 255, 0.6), transparent 70%),
        #f1eee8;
    border: 1px solid #e3ddd0;
}

/* Static CSS "table" glyph — visible immediately and stays visible if the
   three.js scene never mounts (slow connection, JS disabled, WebGL
   unavailable). Fades out once the real 3D canvas renders its first
   frame (.is-ready, added by the module script below). This is what
   keeps the panel from ever looking like an empty broken box. */
.ba-3d-hero::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(56%, 320px);
    aspect-ratio: 2.5 / 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-image:
        radial-gradient(circle at 34% 26%, #ffffff 0%, #f4f6fb 62%, #e9ecf5 100%),
        conic-gradient(from 90deg, var(--brand-blue), var(--brand-purple), var(--brand-red), var(--brand-purple), var(--brand-blue));
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    border: 6px solid transparent;
    box-shadow: 0 24px 40px -18px rgba(20, 26, 51, 0.35);
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.ba-3d-hero::after {
    content: '';
    position: absolute;
    left: 50%;
    top: calc(50% + 6%);
    width: 14%;
    max-width: 54px;
    aspect-ratio: 0.8 / 1;
    transform: translate(-50%, 0);
    background: linear-gradient(#d7dbe6, #c7cbd8);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 18px 22px -14px rgba(20, 26, 51, 0.3);
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.ba-3d-hero.is-ready::before,
.ba-3d-hero.is-ready::after {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .ba-3d-hero::before,
    .ba-3d-hero::after {
        transition: none;
    }}

.ba-3d-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: pan-y;
}

.ba-3d-canvas:active { cursor: grabbing; }

.ba-3d-hint {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 8px;
    /* Same light hint-pill treatment as the 3D Floor Planner's .hint
       (Connect_X_floor_planner/_source/shell.html) — bottom-left,
       translucent white over the room, not centered/dark. */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    box-shadow: 0 6px 18px rgba(30, 25, 18, 0.12);
    color: #56504a;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ba-3d-hero.is-ready .ba-3d-hint { opacity: 1; }
.ba-3d-hero.is-interacted .ba-3d-hint { opacity: 0; }

.ba-3d-hint svg { width: 14px; height: 14px; flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
    .ba-3d-hint { transition: none; }}

@media (max-width: 600px) {
    .ba-3d-hero { height: 280px; border-radius: var(--radius-sm); }}

/* --- Explore button, top-right of the hero panel --- */
.ba-3d-explore-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px 9px 14px;
    border-radius: 999px;
    border: none;
    /* Dark charcoal pill — same button language as the Floor Planner's
       header .btn/.icon-btn, not the site's white glassy pill. */
    background: rgba(29, 26, 23, 0.85);
    backdrop-filter: blur(6px);
    color: #f1eee8;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ba-3d-hero.is-ready .ba-3d-explore-btn {
    opacity: 1;
    transform: translateY(0);
}

.ba-3d-explore-btn:hover,
.ba-3d-explore-btn:focus-visible {
    background: #2e2a25;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.ba-3d-explore-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
    .ba-3d-explore-btn { transition: none; }}

@media (max-width: 600px) {
    .ba-3d-explore-btn { top: 10px; right: 10px; padding: 8px 13px 8px 11px; font-size: 0.74rem; }}

/* Mobile (<=768px): this button IS the tap-to-load control (see the
   module script's isMobile branch) — it must be visible before the scene
   ever boots, not gated behind .is-ready like desktop's hover-in reveal. */
@media (max-width: 768px) {
    .ba-3d-explore-btn { opacity: 1; transform: none; }
}

/* Loading state while the tapped scene builds — swaps the icon for a
   spinner instead of changing the button's label/layout. */
.ba-3d-explore-btn.is-loading { cursor: default; }
.ba-3d-explore-btn.is-loading svg { animation: ba3dExploreSpin 0.8s linear infinite; }

@keyframes ba3dExploreSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .ba-3d-explore-btn.is-loading svg { animation: none; }}

/* --- Full-screen "Explore" overlay ---
   Opened by .ba-3d-explore-btn. Reparents the SAME <canvas>/renderer/
   scene from .ba-3d-hero into .ba-3d-modal-stage on open (no second
   WebGL context, no duplicated geometry) and moves it back on close.
   Zoom in/out (scroll, pinch, and the +/- buttons) is only enabled
   while this is open — the small hero panel keeps scroll-zoom off so
   dragging it can't hijack page scroll. */
.ba-3d-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 12, 20, 0.72);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.ba-3d-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.25s ease;
}

body.ba-modal-open { overflow: hidden; }

.ba-3d-modal-panel {
    display: flex;
    flex-direction: column;
    width: min(1180px, 100%);
    height: min(760px, 100%);
    background: #fbfbfc;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
    transform: scale(0.96);
    transition: transform 0.25s ease;
}

.ba-3d-modal.is-open .ba-3d-modal-panel { transform: scale(1); }

.ba-3d-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    /* Same dark header bar as the Floor Planner's <header> (#1d1a17) —
       the "Explore" view should feel like the same tool, not a
       different light-chrome modal. */
    background: #1d1a17;
    flex-shrink: 0;
}

.ba-3d-modal-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #f5f3ef;
}

.ba-3d-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #3d382f;
    background: #2c2823;
    color: #d8d2c8;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ba-3d-modal-close:hover,
.ba-3d-modal-close:focus-visible { background: #3a352e; color: #ffffff; transform: scale(1.06); }

.ba-3d-modal-close svg { width: 16px; height: 16px; }

.ba-3d-modal-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    /* Matches the room's own cream floor color (see the module script's
       ROOM_COLOR) so there's no visible seam around the canvas. */
    background: #f1eee8;
}

.ba-3d-modal-stage .ba-3d-canvas { touch-action: none; }

.ba-3d-zoom-controls {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(20, 26, 51, 0.22);
}

/* Pan D-pad — mirrors .ba-3d-zoom-controls on the opposite corner. Only
   the 4 cardinal cells are populated; the center/corners stay empty. */
.ba-3d-pan-controls {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: grid;
    grid-template-columns: repeat(3, 32px);
    grid-template-rows: repeat(3, 32px);
    gap: 3px;
}

.ba-3d-pan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 7px;
    /* Dark icon-pill, same as the Floor Planner's .icon-btn/.btn. */
    background: rgba(30, 25, 18, 0.82);
    color: #f1eee8;
    cursor: pointer;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.ba-3d-pan-btn:hover,
.ba-3d-pan-btn:focus-visible { background: #2e2a25; color: #ffffff; }

.ba-3d-pan-btn:active { transform: scale(0.92); }

.ba-3d-pan-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.ba-3d-pan-up    { grid-column: 2; grid-row: 1; }
.ba-3d-pan-left  { grid-column: 1; grid-row: 2; transform: rotate(-90deg); }
.ba-3d-pan-right { grid-column: 3; grid-row: 2; transform: rotate(90deg); }
.ba-3d-pan-down  { grid-column: 2; grid-row: 3; transform: rotate(180deg); }

.ba-3d-pan-left:active  { transform: rotate(-90deg) scale(0.92); }
.ba-3d-pan-right:active { transform: rotate(90deg) scale(0.92); }
.ba-3d-pan-down:active  { transform: rotate(180deg) scale(0.92); }

@media (max-width: 700px) {
    .ba-3d-pan-controls { left: 10px; bottom: 10px; grid-template-columns: repeat(3, 30px); grid-template-rows: repeat(3, 30px); }}

.ba-3d-zoom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    background: rgba(30, 25, 18, 0.82);
    color: #f1eee8;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.ba-3d-zoom-btn:hover,
.ba-3d-zoom-btn:focus-visible { background: #2e2a25; color: #ffffff; }

.ba-3d-zoom-btn:disabled { color: rgba(241, 238, 232, 0.35); cursor: default; }

.ba-3d-zoom-btn + .ba-3d-zoom-btn { border-top: 1px solid #3d382f; }

@media (prefers-reduced-motion: reduce) {
    .ba-3d-modal,
    .ba-3d-modal-panel { transition: none; }}

@media (max-width: 700px) {
    .ba-3d-modal { padding: 0; }
    .ba-3d-modal-panel { width: 100%; height: 100%; border-radius: 0; }}