/* Bright editorial frame around the unchanged dark instrument. The only
   decoration is a static rule: a straight baseline with a noise-perturbed line
   drawn across it. It never enters the detector canvas. */
html:has(> body.home-fullscreen-entry) { background: #f6f8fb; }
body.mond-page.home-event-page.research-look-page.home-fullscreen-entry {
    --home-ink: #16233a;
    --home-ink-soft: #4f5d70;
    --home-accent: #2f5fb3;
    --home-hairline: #d5dde7;
    --home-noise-rule: url("/static/images/home-noise-rule.svg");
    --research-bg: #f6f8fb;
    --research-ink: #1c283a;
    --research-muted: #5a6779;
    --research-line: #d9e0ea;
    background: #f6f8fb !important;
}

/* White navigation at every size; geometry is unchanged. */
html body.mond-page.home-event-page.research-look-page.home-fullscreen-entry > header.nav {
    background: #fffffff5 !important;
    border-bottom: 1px solid #e1e7ef;
    box-shadow: none !important;
    backdrop-filter: blur(14px);
    color: var(--home-ink);
}
html body.mond-page.home-event-page.research-look-page.home-fullscreen-entry.has-scrolled > header.nav {
    background: #fffffffa !important;
    box-shadow: 0 1px 0 #dfe6ef, 0 10px 28px -18px rgb(20 40 70 / 30%) !important;
}
html body.mond-page.home-event-page.research-look-page.home-fullscreen-entry > header.nav .home-header-particle-wordmark {
    filter: brightness(0) saturate(100%);
    opacity: .9;
}
html body.mond-page.home-event-page.research-look-page.home-fullscreen-entry > header.nav .nav-links a { color: #4a5870; }
html body.mond-page.home-event-page.research-look-page.home-fullscreen-entry > header.nav .nav-links a:is(:hover, .is-current) {
    background: #e8effa;
    color: #1d4488;
}
html body.mond-page.home-event-page.research-look-page.home-fullscreen-entry > header.nav #languageToggle {
    border-color: #c8d3e1;
    background: #fff;
    color: #24364f;
}

/* Heading above the instrument (not in short landscape, which keeps the old geometry). */
@media (min-height: 521px) {
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory {
        box-sizing: border-box;
        min-height: 0;
    }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory > .home-event-hero {
        position: relative;
        inset: auto;
        z-index: auto;
        display: block;
        max-width: none;
        pointer-events: auto;
        background: var(--home-noise-rule) left bottom / 100% 24px no-repeat;
    }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory > .home-event-hero .home-event-copy {
        position: static;
        display: block;
        width: auto;
        height: auto;
        margin: 0;
        padding: 0;
        overflow: visible;
        clip-path: none;
    }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory > .home-event-hero .home-event-copy::before {
        content: "CERN · ATLAS OPEN DATA";
        display: block;
        margin: 0 0 10px;
        color: var(--home-accent);
        font: 500 11px/1.6 "IBM Plex Mono", monospace;
        letter-spacing: .16em;
    }
    /* The h1 stays the accessible page title; the navigation already shows the logo. */
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory > .home-event-hero h1.home-brand-hero {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory > .home-event-hero .eyebrow {
        margin: 0;
        max-width: 34em;
        color: var(--home-ink);
        font-family: var(--site-font);
        font-size: clamp(22px, 2.05vw, 31px);
        font-weight: 600;
        line-height: 1.5;
        letter-spacing: -.01em;
        text-transform: none;
        text-wrap: balance;
    }
}

/* Desktop and tablet: framed instrument on a light page. */
@media (min-width: 701px) and (min-height: 521px) {
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory {
        padding: calc(var(--home-navigation-height) + clamp(18px, 3.2vh, 40px)) clamp(20px, 3.4vw, 56px) 36px;
        background:
            radial-gradient(60% 70% at 88% 0%, #e6effb 0%, #e6effb00 70%),
            linear-gradient(#fff, #f6f8fb);
    }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory > .home-event-hero {
        width: min(1440px, 100%);
        margin: 0 auto 18px;
        padding: 0 0 28px;
    }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory .home-split-board {
        width: min(1440px, 100%);
        margin: 0 auto;
    }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory .home-event-card.glass {
        background: #03070d;
        box-shadow: 0 0 0 1px #cfd8e3, 0 28px 64px -32px rgb(16 34 62 / 38%);
    }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory .home-event-canvas:not(:is(:fullscreen, :-webkit-full-screen, .is-detector-fullscreen-fallback)) {
        height: clamp(440px, calc(100svh - var(--home-navigation-height) - var(--home-entry-controls-height) - 200px), 920px);
        min-height: 0;
    }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory .home-event-canvas:not(:is(:fullscreen, :-webkit-full-screen, .is-detector-fullscreen-fallback)) .detector-toolbar {
        inset: 14px 16px auto auto;
        max-width: calc(100% - 32px);
    }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory #particleEventCanvas:not(:is(:fullscreen, :-webkit-full-screen, .is-detector-fullscreen-fallback)) .home-display-question-dock {
        max-height: calc(100% - 170px);
    }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory > .home-observatory-scroll {
        order: 5;
        position: relative;
        inset: auto;
        display: flex;
        width: max-content;
        margin: 22px auto 0;
        transform: none;
        border: 1px solid #c9d5e4;
        background: #ffffffd9;
        color: #24467e;
        transition: background-color 160ms ease;
    }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory > .home-observatory-scroll:hover { background: #eaf1fb; }
}

/* Desktop: a slim dark strip above a near full-window instrument. The SVG
   and hit layer retain their shared container-relative drawing geometry. */
@media (min-width: 951px) and (min-height: 521px) and (pointer: fine) {
    html body.mond-page.home-event-page.research-look-page.home-fullscreen-entry > header.nav {
        padding-block: 10px;
    }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px 24px;
        padding: calc(var(--home-navigation-height) + 8px) max(12px, calc((100% - 2400px) / 2)) 12px;
        background: radial-gradient(80% 60% at 50% 0%, #0c1827, #03070d 70%);
    }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory > .home-event-hero {
        grid-area: 1 / 1;
        width: auto;
        min-width: 0;
        margin: 0;
        padding: 0;
        background: none;
    }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory > .home-event-hero .home-event-copy {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 2px 18px;
    }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory > .home-event-hero .home-event-copy::before {
        margin: 0;
        color: #8fb4ea;
    }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory > .home-event-hero .eyebrow {
        max-width: none;
        color: #dbe5f0;
        font-size: clamp(14px, 1.1vw, 17px);
        font-weight: 500;
    }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory .home-split-board {
        grid-area: 2 / 1 / 3 / -1;
        width: auto;
        margin: 0;
    }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory .home-event-card.glass {
        overflow: clip;
        border-radius: 12px;
        box-shadow: 0 0 0 1px #9fb8d326;
    }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory .home-event-canvas:not(:is(:fullscreen, :-webkit-full-screen, .is-detector-fullscreen-fallback)) {
        height: max(440px, calc(100svh - var(--home-navigation-height) - var(--home-entry-controls-height) - 72px));
    }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory > .home-observatory-scroll {
        grid-area: 1 / 2;
        margin: 0;
        border-color: #9fb8d33d;
        background: #0b1522;
        color: #d3e2f2;
    }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory > .home-observatory-scroll:hover { background: #15263b; }
}

/* Phones: white navigation and heading strip; the instrument stays full width. */
@media (max-width: 700px) and (min-height: 521px) {
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory {
        padding-top: var(--home-navigation-height);
        background: #fff;
    }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory > .home-event-hero {
        width: auto;
        margin: 0;
        padding: 14px 16px 24px;
        background-position: left 16px bottom 4px;
        background-size: calc(100% - 32px) 18px;
    }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory > .home-event-hero .home-event-copy::before {
        margin-bottom: 6px;
        font-size: 10px;
    }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory > .home-event-hero .eyebrow {
        font-size: 16px;
        line-height: 1.55;
    }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory > .home-event-hero .eyebrow.langEn { font-size: 15px; }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory .home-event-canvas:not(:is(:fullscreen, :-webkit-full-screen, .is-detector-fullscreen-fallback)) {
        height: calc(100svh - var(--home-navigation-height) - var(--home-entry-controls-height) - 110px);
        min-height: 360px;
    }
    /* The navigation no longer overlaps the canvas, so controls start at its top. */
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory .home-event-canvas:not(:is(:fullscreen, :-webkit-full-screen, .is-detector-fullscreen-fallback)) .detector-toolbar {
        inset: 8px 12px auto 12px;
        max-width: none;
    }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory #particleEventCanvas:not(:is(:fullscreen, :-webkit-full-screen, .is-detector-fullscreen-fallback)) .home-display-question-dock {
        max-height: calc(100% - 144px);
    }
}

.home-mobile-menu { display: none; }
html.home-entry-positioning { overflow-anchor: none; scroll-behavior: auto; }
@media (max-width: 700px) {
    body.home-fullscreen-entry { --home-navigation-height: 64px; }
    html body.mond-page.home-event-page.research-look-page.home-fullscreen-entry > header.nav {
        display: flex !important; flex-wrap: wrap; align-items: center;
        gap: 8px !important; padding: 8px 12px !important;
        transition: background-color .2s, box-shadow .2s;
    }
    body.home-fullscreen-entry > header.nav .brand { flex: 1; order: 0; }
    body.home-fullscreen-entry > header.nav .nav-actions { order: 1; }
    body.home-fullscreen-entry > header.nav .home-mobile-menu {
        display: inline-flex; align-items: center; justify-content: center; order: 2;
        min-height: 44px; padding: 0 10px; border: 1px solid #cbd5e1;
        border-radius: 12px; background: #fff; color: #34445b; font: inherit;
    }
    html body.home-fullscreen-entry > header.nav .nav-links { display: none !important; order: 3; width: 100%; }
    html body.home-fullscreen-entry.is-mobile-menu-open > header.nav .nav-links { display: flex !important; flex-wrap: wrap; }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory > .home-event-hero { display: none !important; }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory #particleEventCanvas:not(:is(:fullscreen, :-webkit-full-screen, .is-detector-fullscreen-fallback)) {
        height: calc(100svh - var(--home-navigation-height) - var(--home-entry-controls-height));
    }
}

/* Phones have one question entry point, beside the beam control rather than
   across the detector. Keep the existing toggle and its accessibility state. */
@media (max-width: 700px) {
    body.home-fullscreen-entry.research-look-page #observatory > .home-observatory-scroll {
        display: none;
    }
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory {
        background: #03070d;
    }
    body.home-fullscreen-entry #observatory #particleEventCanvas:not(:is(:fullscreen, :-webkit-full-screen, .is-detector-fullscreen-fallback)) .home-display-question-dock.is-collapsed {
        inset: auto 12px 16px auto;
        width: auto;
        max-width: calc(100% - 100px);
        padding: 0 12px;
        border-radius: 24px;
        box-shadow: none;
    }
    body.home-fullscreen-entry #observatory #particleEventCanvas .home-display-question-dock.is-collapsed .home-question-dock-toggle {
        min-height: 44px;
        font-size: 12px;
    }
    body.home-fullscreen-entry #observatory #particleEventCanvas .home-display-question-dock.is-collapsed .home-question-dock-action {
        display: none;
    }
    body.home-fullscreen-entry #observatory #particleEventCanvas:not(:is(:fullscreen, :-webkit-full-screen, .is-detector-fullscreen-fallback)):has(.home-display-question-dock.is-collapsed) .detector-bottom-rail {
        right: 200px;
    }
    body.home-fullscreen-entry #observatory #particleEventCanvas:not(:is(:fullscreen, :-webkit-full-screen, .is-detector-fullscreen-fallback)) .detector-beam-direction-hint {
        max-width: 100%;
        min-height: 44px;
        overflow: hidden;
    }
}

/* Reading space below the instrument. */
body.home-fullscreen-entry .home-exploration-section {
    width: min(1240px, calc(100% - 80px));
    margin: 0 auto 64px;
    padding-top: 56px;
}
body.home-fullscreen-entry .home-editorial-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 0 0 26px;
    border-bottom: 0;
    background: var(--home-noise-rule) left bottom / 100% 20px no-repeat;
    color: #50607a;
    font: 10px/1.6 "IBM Plex Mono", monospace;
    letter-spacing: .12em;
}
.home-editorial-intro {
    max-width: 860px;
    padding: 44px 0 32px;
}
body.home-fullscreen-entry.research-look-page #homeQuestionInvitation {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
    padding: 0;
    gap: 24px;
}
body.home-fullscreen-entry.research-look-page #homeQuestionInvitation h2 {
    color: #16233a;
    font-size: clamp(27px, 2.7vw, 40px);
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: -.035em;
    text-wrap: balance;
}
body.home-fullscreen-entry.research-look-page #homeQuestionInvitation p {
    color: #4f5d70;
    margin-top: 24px;
    line-height: 2;
}
body.home-fullscreen-entry #homeQuestionInvitation .home-question-invitation-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
}
body.home-fullscreen-entry #homeQuestionInvitation .home-question-invitation-actions :is(button, a) {
    border-radius: 4px;
    border-color: #b9c8dc;
    background: transparent;
    color: #24467e;
}
body.home-fullscreen-entry #homeQuestionInvitation .home-question-invitation-actions button {
    border-color: transparent;
    background: #2f5fb3;
    color: #fff;
}
body.home-fullscreen-entry #homeQuestionInvitation .home-question-invitation-actions button:hover { background: #264f98; }
body.home-fullscreen-entry #homeQuestionInvitation .home-question-invitation-actions a:hover { background: #eaf1fb; }
body.home-fullscreen-entry.research-look-page .home-community-research-grid {
    width: min(1240px, calc(100% - 80px));
    gap: 48px;
}
body.home-event-page.home-fullscreen-entry.research-look-page .home-community-research-grid > :is(#physics-frontier, #discovery-wall) {
    background: transparent !important;
    border: 0;
    border-top: 1px solid #cdd6e1;
    border-radius: 0;
    box-shadow: none !important;
    padding: 28px 0;
}
body.home-fullscreen-entry.research-look-page :is(#physics-frontier, #discovery-wall) h2 {
    color: #16233a;
    font-weight: 500;
    letter-spacing: -.025em;
}
body.home-fullscreen-entry #homePhysicsNewsList li { border-color: #dde4ed; }
body.home-fullscreen-entry #homePhysicsNewsList small {
    font-family: "IBM Plex Mono", "Noto Sans JP", sans-serif;
    color: #637189;
}
@media (max-width: 920px) {
    body.home-fullscreen-entry .home-exploration-section,
    body.home-fullscreen-entry.research-look-page .home-community-research-grid {
        width: calc(100% - 40px);
    }
}
@media (max-width: 600px) {
    body.home-fullscreen-entry .home-exploration-section { padding-top: 32px; margin-bottom: 36px; }
    body.home-fullscreen-entry .home-editorial-heading { font-size: 8px; letter-spacing: .06em; background-size: 100% 16px; padding-bottom: 20px; }
    .home-editorial-intro { padding: 30px 0 24px; }
    body.home-fullscreen-entry.research-look-page .home-community-research-grid { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    body.mond-page.home-event-page.research-look-page.home-fullscreen-entry #observatory > .home-observatory-scroll { transition: none; }
}
