/* MOLTEN identity, read straight off the event banner. The banner is a poster: a lava mountain
   under a grainy blue sky, heavy black condensed letters, a bright blue subtitle, small orange labels.
   The portal keeps that reading. Blue sky is the page, black is the ink, lava is the action colour,
   the liquid wordmark is the one moving thing. Tokens live in theme.css. */
:root { color-scheme: light; }
body, .workspace { background: var(--paper); color: var(--ink); }
body { background-image: linear-gradient(180deg, #86b1d6 0%, #6a9bc6 45%, #5f90bb 100%); background-attachment: fixed; }
.topbar { background: #6a9bc6e6; border-color: var(--line); backdrop-filter: blur(10px); }
::selection { background: var(--lava); color: var(--ink); }
:focus-visible { outline-color: var(--glow); }
h1, h2 { color: var(--ink); }
a { color: var(--ink); text-decoration-color: #0b142066; }
a:hover { color: var(--ember); }

/* The banner's print grain, over everything, faint */
body::after { content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; background: url("/assets/media/grain.svg") repeat; background-size: 220px 220px; opacity: .11; mix-blend-mode: multiply; }

/* Sidebar: a shade deeper than the page, black type like the banner, orange for where you are */
.sidebar { background: #5c8dba; border-color: #0b142040; }
.brand .brand-name { font-family: "Anton", "Impact", sans-serif; font-weight: 400; font-size: 38px; line-height: .9; letter-spacing: .01em; text-transform: lowercase; color: var(--ink); }
.brand > span:not(.brand-name), .brand i, .sidebar .nav-label, .event-mark p { color: var(--ink-2); }
.sidebar nav > a { color: var(--ink); }
.sidebar nav > a:hover { background: #0b142018; color: var(--ink); }
.sidebar nav > a.active { background: var(--lava); box-shadow: none; color: var(--ink); font-weight: 600; }
.sidebar nav > a.active .nav-symbol { color: var(--ink); }
.sidebar .nav-symbol { color: var(--ink-2); }
.organizer-link { color: var(--ink-2); border-color: #0b142040; }
.event-mark .techweek-logo { filter: brightness(0); opacity: .9; }
.breadcrumb, .edition { color: var(--ink-2); }

/* Page heads: the banner's letterforms, black, large */
.page-head { border-color: var(--line); }
.page-head h1 { font-size: clamp(3rem, 6vw, 5.2rem); line-height: .92; letter-spacing: .012em; color: var(--ink); }
.page-head p { color: var(--ink-2); font-size: 1.05rem; }
.muted, .small-text.muted { color: var(--muted); }

/* The small orange label from the banner, for dates and places only */
.home-meta > span, .section-head time, .cal-dayhead small { color: var(--lava); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }

/* Controls: orange with black text is the banner's one bright pairing */
.button { background: #0b142014; border-color: #0b142055; color: var(--ink); }
.button:hover { background: #0b142026; border-color: var(--ink); }
.button.primary { background: var(--lava); border-color: var(--lava); color: var(--ink); font-weight: 600; }
.button.primary:hover { background: var(--glow); border-color: var(--glow); }
.filter-button, .day-tab { background: transparent; border-color: #0b142055; color: var(--ink); }
.filter-button.active, .day-tab.active, .cal-days button.active, .lab-layout .day-tab.active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
input, select, textarea { background: #f4ede2; color: var(--ink); border-color: #0b142055; }
input::placeholder, textarea::placeholder { color: #5b6b7c; }
.tag { background: #0b142018; color: var(--ink); border-color: #0b142033; }
.tag.orange { background: var(--lava); color: var(--ink); }
.notice { background: #0b142018; border-color: #0b142033; color: var(--ink); }
.notice.warning, .kit-pending { background: #ffb07c; border-color: var(--lava); color: var(--ink); }
.text-link { color: var(--ink); }

/* Surfaces: a lighter patch of sky, black hairline, no shadows */
.panel, .resource-card, .hardware-dossier, .hardware-preview, .help-card, .next-step, .event-day,
.venue-arrival, .venue-plan, .venue-detail, .venue-bottom .panel, .arrival-address, .guide-panel, .judges-demo,
.quicknav, .track, .atlas-problems li, .atlas-link, .cal, .sponsor-wall li, .dayof-list-wrap, .dayof-slides, .dayof-wifi, .judge-banner, .top-icon, .submit-hero, .overnight, .help-card--contact {
  background: var(--surface); border-color: #0b142040; color: var(--ink);
}
.resource-card:hover, .hardware-preview:hover, .quicknav a:hover, .atlas-index a:hover, .top-icon:hover { border-color: var(--ink); background: #9ac0df; }
.resource-card .resource-foot, .quicknav a, .equipment-row, .list-steps li, .timeline-item, td, .dayof-item + .dayof-item { border-color: #0b142040; }
.quicknav strong, .quicknav span, .project p, .project summary, .guide-body p, .guide-body li, .timeline-item time, .footer { color: var(--ink); }
.quicknav span, .footer, .inventory-table .action-note { color: var(--ink-2); }
th { background: var(--surface-2); color: var(--cream); }

/* Home: the banner artwork edge to edge, black liquid letters, the blue subtitle */
.home { background: var(--paper-deep) url("/assets/media/molten-banner-bg.jpg") center / cover no-repeat; }
.home-media { display: none; }
.home::after { background: linear-gradient(180deg, #3f6a9366 0%, #0000 30%, #0000 75%, #3f6a93cc 100%); }
.home-mark { display: grid; justify-items: center; gap: 6px; }
.home-mark .molten-fallback { font-family: "Anton", "Impact", sans-serif; font-weight: 400; font-size: clamp(5rem, 18vw, 15rem); letter-spacing: .01em; line-height: .85; color: #000; margin: 0; text-transform: lowercase; }
.molten-mark { display: block; width: min(62vw, 640px); aspect-ratio: 1.25 / 1; touch-action: none; cursor: grab; }
.molten-mark:active { cursor: grabbing; }
.home-mark:not(.molten-live) .molten-mark { display: none; }
.home-mark.molten-live .molten-fallback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.home-mark p { margin: -10px 0 0; font-size: clamp(1.25rem, 2.2vw, 1.9rem); font-weight: 700; color: var(--sky); letter-spacing: -0.01em; }
.mark-hint { font-size: .76rem; color: #0b1420b3; }
.home-meta { color: var(--ink); }
.home-film { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.home-film:hover { background: #000; }

/* Track index: quiet pills, the icon does the talking */
.atlas-index { background: #6a9bc6e6; border-color: var(--line); }
.atlas-index a { font-family: "Instrument Sans", system-ui, sans-serif; font-weight: 500; font-size: .92rem; text-transform: none; letter-spacing: 0; padding: 6px 14px 6px 6px; border-radius: 999px; border-color: #0b142055; background: transparent; color: var(--ink); }
.atlas-index a:hover { background: #0b142018; border-color: var(--ink); }
.atlas-swatch { border-radius: 50%; }

/* Track art: stills from the film, warmed toward the lava */
.track-art--worldbuild, .atlas-swatch--worldbuild { background-image: url("/assets/tracks/worldbuild.jpg"); }
.track-art--navigate, .atlas-swatch--navigate { background-image: url("/assets/tracks/navigate.jpg"); }
.track-art--capture, .atlas-swatch--capture { background-image: url("/assets/tracks/capture.jpg"); }
.track-art--inhabit, .atlas-swatch--inhabit { background-image: url("/assets/tracks/inhabit.jpg"); }
.track-art--open, .atlas-swatch--open { background-image: url("/assets/tracks/open.jpg"); }
.track-art, .atlas-swatch, .atlas-thumb { background-size: cover; background-position: center; filter: grayscale(1) sepia(1) saturate(2.4) hue-rotate(-14deg) contrast(1.08); }
.track h3, .atlas-head h2 { font-family: "Anton", "Impact", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); }
.atlas-head h2 { font-size: clamp(2.4rem, 8vw, 4.6rem); line-height: .9; overflow-wrap: anywhere; }
.track h3 { font-size: clamp(1.15rem, 4.6vw, 1.5rem); }
.atlas-why { color: var(--ink-2); }
.atlas-link:hover { border-color: var(--ink); }

/* Sponsors: logos sit on the light sky as drawn; dark artwork stays dark like the banner's */
.sponsor-logo--ink img, .track-sponsor--ink img { filter: none; }
.sponsor-name { font-family: "Instrument Sans", system-ui, sans-serif; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink); }
.sponsor-logo--symbol { display: inline-flex; align-items: center; gap: 10px; }
.sponsor-logo-name { font-weight: 600; font-size: .95rem; color: var(--ink); white-space: nowrap; }
.track-sponsor img { max-height: 22px; }
.device-brand img { height: 20px; width: auto; }
/* DataFeel's teal wordmark vanishes on the blue page; print it in ink like the other dark marks */
img[src$="datafeel.png"] { filter: brightness(0); }

/* Dark panels that must stay dark: code and the agent sheet */
.agents-md, .agreement, .code-box { background: var(--ink); color: var(--cream); border: 1px solid var(--ink); }
.dayof-field small { color: var(--ink-2); }
.dayof-field code { color: var(--ink); background: #0b142018; }
.dayof-wifi .dayof-copy { background: var(--lava); color: var(--ink); border-color: var(--lava); }
.dayof-item summary:hover { background: #0b142014; }
.cal-ev--block { background: var(--ember); color: var(--cream); }
.arrival-video--pending, .arrival-photo--pending, .arrival-photo { background: var(--surface-2) !important; color: var(--cream); }
.arrival-wifi { background: var(--surface); border-color: #0b142040; }
.judges-empty { padding: 18px 20px; border: 1px dashed #0b142066; border-radius: 12px; color: var(--ink-2); }

/* Reference projects: each card carries its track's world, dimmed */
.project-art { background: var(--surface); position: relative; isolation: isolate; }
.project-art::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background-size: cover; background-position: center; opacity: .35; filter: grayscale(1) sepia(1) saturate(2.4) hue-rotate(-14deg); }
.project-art--worldbuild::before { background-image: url("/assets/tracks/worldbuild.jpg"); }
.project-art--navigate::before { background-image: url("/assets/tracks/navigate.jpg"); }
.project-art--capture::before { background-image: url("/assets/tracks/capture.jpg"); }
.project-art--inhabit::before { background-image: url("/assets/tracks/inhabit.jpg"); }
.project-art--open::before { background-image: url("/assets/tracks/open.jpg"); }

@media (max-width: 640px) {
  .molten-mark { width: 94vw; }
  .home-mark p { margin-top: 0; }
}

/* Hardware product shots are background-free cutouts: let them sit on the panel with a soft floor shadow. */
.hardware-photo, .hardware-preview-image { background: transparent !important; }
.hardware-photo img, .hardware-preview-image img { filter: drop-shadow(0 16px 18px #0b142038); }
.hardware-photo img { padding: 8px 12px 14px; box-sizing: border-box; }
img.hardware-thumb { background: transparent; filter: drop-shadow(0 3px 3px #0b142030); }
.photo-lightbox img { background: var(--surface) !important; }

.arrival-photo iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.arrival-photo:has(iframe) { position: relative; }
