/* A neutral reference directory inside the existing community layout. */
body.home-event-page.research-look-page #discovery-wall .home-discovery-profile-note {
    margin: 1rem 0 0;
    font-size: .8125rem;
    text-align: right;
}

body.home-event-page.research-look-page #discovery-wall .home-discovery-profile-note a {
    display: inline-block;
    padding: .5rem 0;
    color: var(--research-muted);
    text-underline-offset: .2em;
}

body.home-event-page.research-look-page #physics-frontier .home-reference-groups {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

body.home-event-page.research-look-page #physics-frontier h3 {
    margin: 0 0 .6rem;
    font-size: .95rem;
    font-weight: 600;
}

body.home-event-page.research-look-page #physics-frontier .home-reference-links {
    display: grid;
    gap: .75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

body.home-event-page.research-look-page #physics-frontier .home-reference-links li {
    min-width: 0;
    font-size: .875rem;
    line-height: 1.65;
}

body.home-event-page.research-look-page #physics-frontier .home-reference-links a {
    display: block;
    width: fit-content;
    padding: .25rem 0;
    color: var(--research-blue);
    text-underline-offset: .2em;
}

body.home-event-page.research-look-page #physics-frontier .home-reference-links li > span {
    color: var(--research-muted);
}

body.home-event-page.research-look-page .home-reference-directory-links a {
    display: inline-block;
    padding: .4rem 0;
    font-size: .875rem;
    overflow-wrap: anywhere;
}
body.home-event-page.research-look-page #homeAiAnswerDirectorySources ul {
    list-style: none;
    padding: 0;
    margin: .6rem 0;
}
/* Desktop: news on the left, community questions on the right. */
@media (min-width: 921px) {
    body.home-event-page.research-look-page .home-community-research-grid #physics-frontier { order: 0; }
    body.home-event-page.research-look-page .home-community-research-grid #discovery-wall { order: 1; }
}

/* Mobile reading follows one clear order; return to the event with one tap. */
@media (max-width: 920px) {
    body.home-event-page.research-look-page main .home-community-research-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    body.home-event-page.research-look-page .home-community-research-grid #discovery-wall { order: 0; }
    body.home-event-page.research-look-page .home-community-research-grid #physics-frontier { order: 1; }
}

.home-return-to-event {
    position: fixed;
    right: 12px;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 40;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #a5bbd2;
    border-radius: 24px;
    background: #f5f9ff;
    color: #213c60;
    box-shadow: 0 4px 18px #18385920;
    font-size: 14px;
    cursor: pointer;
}
.home-return-to-event[hidden] { display: none; }

/* The brand was absolutely positioned over the shared-X question. Give it a
   real row only on those entry links, preserving the immersive default LP. */
body.home-event-page.research-look-page .home-immersive-stage:has(#homeXQuestionLanding:not([hidden])) > .home-event-hero {
    position: relative;
    inset: auto;
    width: auto;
    margin: 22px 24px 16px;
}
body.home-event-page.research-look-page .home-immersive-stage #homeXQuestionLanding {
    margin-inline: 16px;
}

.home-physics-news { margin: 0 0 24px; padding-bottom: 24px; border-bottom: 1px solid #d6e0ed; }
.home-physics-news h2 { margin: 0 0 10px; font-size: clamp(20px, 2vw, 26px); }
.home-news-schedule { color: #254e7e; font-size: .9375rem; line-height: 1.7; margin: 6px 0; }
.home-news-intro, #homePhysicsNewsStatus { color: #617187; font-size: .875rem; line-height: 1.7; }
#homePhysicsNewsList { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
#homePhysicsNewsList li { display: grid; gap: 5px; padding: 13px 0; border-bottom: 1px solid #e0e7f0; }
#homePhysicsNewsList small { color: #68788d; font-size: 12px; }
#homePhysicsNewsList a { color: #254e7e; font-size: 14px; line-height: 1.7; text-decoration: none; overflow-wrap: anywhere; }
.home-physics-news nav { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; }
.home-physics-news a:hover { text-decoration: underline; }
.home-physics-news a:focus-visible, .home-return-to-event:focus-visible { outline: 2px solid #306cbb; outline-offset: 3px; }

/* Small, text-only entry points; no third-party images or video embeds. */
.home-physics-learning {
    margin: 0 0 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #d6e0ed;
}
.home-physics-learning h2 {
    margin: 0 0 .75rem;
    font-size: clamp(1.25rem, 2vw, 1.625rem);
}
.home-learning-links {
    display: grid;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.home-learning-links li { min-width: 0; }
.home-learning-links a {
    display: grid;
    gap: .25rem;
    min-height: 44px;
    padding: .875rem;
    border: 1px solid #d6e0ed;
    border-radius: .75rem;
    background: #f3f7fc;
    color: #254e7e;
    text-decoration: none;
    overflow-wrap: anywhere;
    line-height: 1.65;
}
.home-learning-links strong { font-size: 1rem; font-weight: 600; }
.home-learning-links .home-learning-description { color: #455a73; font-size: .875rem; }
.home-learning-links small { color: #617187; font-size: .75rem; }
.home-learning-links a:hover { background: #e8f0fa; border-color: #a5bbd2; }
.home-learning-links a:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.home-learning-links a:focus-visible { outline: 2px solid #306cbb; outline-offset: 3px; }
