/*
 * BCCISA interior experience system
 *
 * This stylesheet is deliberately loaded by interior routes only. The home
 * page and the shared navigation document do not include it. It normalizes
 * typography, spacing, controls, editorial content, account tools, games,
 * and administration surfaces without changing application behavior.
 */

:root {
    --interior-bg: #f4f2ee;
    --interior-bg-soft: #ece8e1;
    --interior-surface: #ffffff;
    --interior-surface-soft: #faf8f4;
    --interior-ink: #211d1b;
    --interior-muted: #69615c;
    --interior-faint: #8b827b;
    --interior-line: #ded8cf;
    --interior-line-strong: #c9bfb4;
    --interior-maroon: #7b1713;
    --interior-maroon-dark: #54100d;
    --interior-gold: #ba9142;
    --interior-success: #286247;
    --interior-danger: #a42b25;
    --interior-gutter: clamp(1.1rem, 4vw, 3.5rem);
    --interior-content: 72rem;
    --interior-wide: 80rem;
    --interior-radius-sm: 0.6rem;
    --interior-radius: 1rem;
    --interior-radius-lg: 1.5rem;
    --interior-shadow-sm: 0 0.5rem 1.6rem rgba(38, 27, 23, 0.055);
    --interior-shadow: 0 1.2rem 3.6rem rgba(38, 27, 23, 0.09);
    --interior-focus: 0 0 0 3px rgba(186, 145, 66, 0.36);
    --interior-ease: cubic-bezier(.22, 1, .36, 1);
}

/* Foundation: modern product/editorial typography instead of display script. */

body:not(.home-page):not(.eval-page):not(.shen-page) {
    background: var(--interior-bg);
    color: var(--interior-ink);
}

body:not(.home-page):not(.eval-page):not(.shen-page) #main-content {
    min-width: 0;
}

body:not(.home-page):not(.eval-page):not(.shen-page) #main-content :is(h1, h2, h3, h4),
.event-admin-page :is(h1, h2, h3, h4),
.event-reg-page :is(h1, h2, h3, h4) {
    font-family: "Noto Sans SC", "Source Sans 3", system-ui, sans-serif;
    font-style: normal;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

html[lang="en"] body:not(.home-page):not(.eval-page):not(.shen-page) #main-content :is(h1, h2, h3, h4),
html[lang="en"] .event-admin-page :is(h1, h2, h3, h4),
html[lang="en"] .event-reg-page :is(h1, h2, h3, h4) {
    font-family: "Lora", Georgia, serif;
    letter-spacing: -0.03em;
}

body:not(.home-page):not(.eval-page):not(.shen-page) #main-content :is(p, li, dd) {
    text-wrap: pretty;
}

body:not(.home-page):not(.eval-page):not(.shen-page) #main-content a {
    text-underline-offset: 0.22em;
}

body:not(.home-page):not(.eval-page):not(.shen-page) #main-content :is(input, select, textarea) {
    border-color: var(--interior-line-strong);
    border-radius: var(--interior-radius-sm);
    background: var(--interior-surface);
    color: var(--interior-ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body:not(.home-page):not(.eval-page):not(.shen-page) #main-content :is(input, select, textarea):focus {
    border-color: var(--interior-maroon);
    outline: 0;
    box-shadow: var(--interior-focus);
}

body:not(.home-page):not(.eval-page):not(.shen-page) #main-content :is(button, a, summary):focus-visible {
    outline: 3px solid rgba(186, 145, 66, 0.72);
    outline-offset: 3px;
}

/* Standard editorial routes: About, guides, partners, resources. */

#main-content > .page-header {
    width: min(var(--interior-content), calc(100% - var(--interior-gutter) * 2));
    max-width: none;
    margin: 0 auto clamp(2rem, 5vw, 3.5rem);
    padding: 0 0 clamp(1.8rem, 3vw, 2.6rem);
    border: 0;
    border-bottom: 1px solid var(--interior-line-strong);
}

#main-content > .page-header::before {
    display: block;
    width: 3rem;
    height: 0.25rem;
    margin-bottom: 1.35rem;
    border-radius: 999px;
    background: var(--interior-gold);
    content: "";
}

#main-content > .page-header .page-eyebrow {
    margin: 0 0 0.75rem;
    color: var(--interior-maroon);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.17em;
}

#main-content > .page-header .page-title {
    max-width: 18ch;
    margin: 0;
    color: var(--interior-ink);
    font-size: clamp(2.55rem, 5.5vw, 4.9rem);
    font-weight: 620;
    line-height: 1.08;
    letter-spacing: -0.055em;
}

#main-content > .page-header .page-lead {
    max-width: 42rem;
    margin: 1rem 0 0;
    color: var(--interior-muted);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.75;
}

.content-review-note {
    width: fit-content;
    max-width: 54rem;
    margin: 1.5rem 0 0;
    padding: 0.8rem 1rem;
    border: 1px solid #e4dac8;
    border-radius: var(--interior-radius-sm);
    background: #fbf6ea;
    color: #665844;
    font-size: 0.82rem;
    line-height: 1.6;
}

.page-banner {
    width: min(var(--interior-content), calc(100% - var(--interior-gutter) * 2));
    max-width: none;
    margin: 0 auto clamp(3.5rem, 7vw, 6rem);
    overflow: hidden;
    border: 1px solid var(--interior-line);
    border-radius: var(--interior-radius-lg);
    background: var(--interior-surface-soft);
    box-shadow: var(--interior-shadow);
}

.page-banner img {
    display: block;
    width: 100%;
    height: clamp(18rem, 46vw, 35rem);
    object-fit: cover;
    object-position: center;
}

.page-banner figcaption,
.content-figure figcaption,
.image-strip figcaption {
    padding: 0.75rem 1rem;
    color: var(--interior-faint);
    font-size: 0.78rem;
    line-height: 1.45;
}

#main-content > .max-w-5xl {
    width: min(var(--interior-content), calc(100% - var(--interior-gutter) * 2));
    max-width: none;
    padding-inline: 0;
}

#main-content .section-title {
    margin-bottom: 1.6rem;
    padding: 0 0 0.9rem;
    border-bottom: 1px solid var(--interior-line);
    color: var(--interior-ink);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 620;
    line-height: 1.25;
}

#main-content .section-title::before {
    width: 3.5rem;
    height: 3px;
    border-radius: 999px;
    background: var(--interior-maroon);
}

#main-content .subsection-title {
    color: var(--interior-ink);
    font-size: 1.18rem;
    font-weight: 650;
    letter-spacing: -0.02em;
}

#main-content .panel {
    border: 1px solid var(--interior-line);
    border-radius: var(--interior-radius);
    background: var(--interior-surface);
    box-shadow: var(--interior-shadow-sm);
}

#main-content details.panel {
    padding: 0;
    overflow: hidden;
}

#main-content details.panel > summary {
    min-height: 3.5rem;
    padding: 1rem 1.25rem;
    list-style-position: inside;
    cursor: pointer;
}

#main-content details.panel > :not(summary) {
    margin-inline: 1.25rem;
}

#main-content details.panel > :last-child {
    margin-bottom: 1.25rem;
}

.content-split {
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: stretch;
}

.content-split > .panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-figure,
.image-strip {
    overflow: hidden;
    border: 1px solid var(--interior-line);
    border-radius: var(--interior-radius);
    background: var(--interior-surface);
}

.content-figure img,
.image-strip img {
    transition: transform 560ms var(--interior-ease);
}

.resource-grid {
    gap: 1rem;
}

#main-content .resource-card {
    min-width: 0;
    padding: clamp(1.15rem, 2.5vw, 1.55rem);
    border: 1px solid var(--interior-line);
    border-radius: var(--interior-radius);
    background: var(--interior-surface);
    box-shadow: 0 0.35rem 1.2rem rgba(38, 27, 23, 0.035);
    transition: transform 220ms var(--interior-ease), border-color 180ms ease, box-shadow 220ms ease;
}

#main-content .resource-card:hover {
    border-color: #c5b5a5;
    box-shadow: var(--interior-shadow-sm);
    transform: translateY(-2px);
}

#main-content .resource-card h3 {
    color: var(--interior-ink);
    font-weight: 650;
    line-height: 1.35;
}

#main-content .resource-card p,
#main-content .resource-address {
    color: var(--interior-muted);
}

#main-content .resource-icon {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    flex: 0 0 2.6rem;
    place-items: center;
    border-radius: 0.75rem;
    background: #f2e9df;
    color: var(--interior-maroon);
    font-family: "Noto Sans SC", system-ui, sans-serif;
}

#main-content .resource-actions {
    gap: 0.55rem;
}

#main-content .resource-link {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--interior-line-strong);
    border-radius: 999px;
    color: var(--interior-maroon);
    background: transparent;
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

#main-content .resource-link:hover {
    border-color: var(--interior-maroon);
    background: #f8eeea;
}

#main-content .resource-link-primary {
    border-color: var(--interior-maroon);
    background: var(--interior-maroon);
    color: #fff;
}

#main-content .resource-link-primary:hover {
    border-color: var(--interior-maroon-dark);
    background: var(--interior-maroon-dark);
}

.cisa-timeline {
    border-top-color: var(--interior-line-strong);
}

.cisa-timeline li {
    border-bottom-color: var(--interior-line);
}

.member-pool-list {
    gap: 0.65rem;
}

.member-pool-list li {
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--interior-line);
    border-radius: 999px;
    background: var(--interior-surface);
    font-size: 0.9rem;
}

/* Academic calendar: clear controls and a single coherent data surface. */

.calendar-source-meta {
    gap: 0.7rem;
}

.calendar-source-meta div {
    min-width: 8.5rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--interior-line);
    border-radius: var(--interior-radius-sm);
    background: var(--interior-surface);
}

.calendar-actions {
    gap: 0.75rem;
    margin-bottom: 1.4rem;
}

.calendar-subscribe-panel {
    border-color: var(--interior-line);
    border-radius: var(--interior-radius);
    background: var(--interior-surface);
    box-shadow: var(--interior-shadow);
}

.subscribe-option,
.calendar-shell {
    border-color: var(--interior-line);
    border-radius: var(--interior-radius);
    background: var(--interior-surface);
}

.calendar-shell {
    overflow: hidden;
    box-shadow: var(--interior-shadow-sm);
}

.calendar-toolbar {
    padding: clamp(1rem, 2.5vw, 1.6rem);
    border-color: var(--interior-line);
    background: var(--interior-surface-soft);
}

.calendar-audience-toggle {
    gap: 0.25rem;
    padding: 0.25rem;
    border: 1px solid var(--interior-line);
    border-radius: 999px;
    background: var(--interior-bg-soft);
}

.calendar-audience-toggle button,
.calendar-icon-button,
.calendar-today-button {
    border-radius: 999px;
}

.calendar-day,
.calendar-weekday,
.calendar-agenda {
    border-color: var(--interior-line);
}

.calendar-event,
.calendar-agenda-item {
    border-radius: 0.5rem;
}

.calendar-half-term {
    overflow: hidden;
    border: 1px solid var(--interior-line);
    border-radius: var(--interior-radius);
    background: var(--interior-surface);
}

/* Careers and partnerships. */

.careers-main {
    width: min(var(--interior-content), calc(100% - var(--interior-gutter) * 2));
    padding-bottom: 6rem;
}

.career-heading {
    max-width: 16ch;
    color: var(--interior-ink);
    font-family: "Noto Sans SC", "Source Sans 3", system-ui, sans-serif;
    font-size: clamp(2.7rem, 5vw, 4.8rem);
    font-weight: 650;
    line-height: 1.08;
    letter-spacing: -0.055em;
}

html[lang="en"] .career-heading {
    font-family: "Lora", Georgia, serif;
    font-weight: 500;
}

.career-filters {
    margin-top: 2.75rem;
    padding: 1.4rem;
    border: 1px solid var(--interior-line);
    border-radius: var(--interior-radius);
    background: var(--interior-surface);
    box-shadow: var(--interior-shadow-sm);
}

.jobs-list {
    margin-top: 0.75rem;
    border-top-color: var(--interior-line-strong);
}

.job-card {
    border-bottom-color: var(--interior-line);
}

.job-card h2,
.career-section h2,
.career-aside h2,
.career-form h2 {
    font-family: "Noto Sans SC", "Source Sans 3", system-ui, sans-serif;
    font-weight: 650;
}

html[lang="en"] :is(.job-card h2, .career-section h2, .career-aside h2, .career-form h2) {
    font-family: "Lora", Georgia, serif;
    font-weight: 500;
}

.career-notice,
.career-empty {
    border: 1px solid var(--interior-line);
    border-radius: var(--interior-radius);
    background: var(--interior-surface);
}

/* Events: retain the poster-led identity, but remove the nested-card look. */

body:has(#event-archive-grid) #main-content > .max-w-5xl {
    width: min(var(--interior-content), calc(100% - var(--interior-gutter) * 2));
}

body:has(#event-archive-grid) #main-content > .page-header {
    width: min(var(--interior-content), calc(100% - var(--interior-gutter) * 2));
    max-width: none;
    margin-inline: auto;
    padding-left: 0;
}

body:has(#event-archive-grid) .event-feature {
    border-radius: var(--interior-radius-lg);
    box-shadow: var(--interior-shadow);
}

body:has(#event-archive-grid) .event-archive-card {
    border: 1px solid var(--interior-line);
    border-radius: var(--interior-radius);
    box-shadow: var(--interior-shadow-sm);
}

body:has(#event-archive-grid) #game-hub {
    padding-block: clamp(2.5rem, 5vw, 4rem);
}

.event-shell {
    width: min(var(--interior-content), calc(100% - var(--interior-gutter) * 2));
}

.event-hero {
    overflow: hidden;
    border: 1px solid var(--interior-line);
    border-radius: var(--interior-radius-lg);
    background: var(--interior-surface);
    box-shadow: var(--interior-shadow);
}

.event-hero-copy {
    padding: clamp(2rem, 5vw, 4rem);
}

.event-hero h1 {
    font-family: "Noto Sans SC", "Source Sans 3", system-ui, sans-serif;
    font-weight: 650;
}

html[lang="en"] .event-hero h1 {
    font-family: "Lora", Georgia, serif;
    font-weight: 500;
}

.event-cover {
    border-left-color: var(--interior-line);
}

.event-facts {
    margin-top: 1rem;
    padding-inline: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid var(--interior-line);
    border-radius: var(--interior-radius);
    background: var(--interior-surface);
}

.event-fact {
    border-color: var(--interior-line);
}

.event-overview-card {
    border-color: var(--interior-line-strong);
}

.event-registration-section,
.event-gallery-section {
    border-top-color: var(--interior-line-strong);
}

/* Recruitment, Mentor–Mentee, and their management surfaces. */

.recruit-shell {
    width: min(var(--interior-content), calc(100% - var(--interior-gutter) * 2));
}

.recruit-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.4rem;
    padding: clamp(2.2rem, 5vw, 4.5rem);
    border: 1px solid var(--interior-line);
    border-radius: var(--interior-radius-lg);
    background: var(--interior-surface);
    box-shadow: var(--interior-shadow-sm);
}

.recruit-hero::after {
    position: absolute;
    top: 0;
    right: 0;
    width: clamp(5rem, 15vw, 13rem);
    height: 0.35rem;
    border-radius: 0 0 0 999px;
    background: var(--interior-gold);
    content: "";
}

.recruit-eyebrow {
    color: var(--interior-maroon);
    font-weight: 700;
    letter-spacing: 0.16em;
}

.recruit-title {
    max-width: 18ch;
    margin: 0.7rem 0 1rem;
    color: var(--interior-ink);
    font-family: "Noto Sans SC", "Source Sans 3", system-ui, sans-serif;
    font-size: clamp(2.45rem, 5vw, 4.5rem);
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: -0.055em;
}

html[lang="en"] .recruit-title {
    font-family: "Lora", Georgia, serif;
    font-weight: 500;
}

.recruit-lead {
    max-width: 50rem;
    color: var(--interior-muted);
    font-size: 1.03rem;
    line-height: 1.78;
}

.recruit-layout {
    gap: 1.4rem;
}

.recruit-card {
    overflow: hidden;
    border-color: var(--interior-line);
    border-radius: var(--interior-radius);
    background: var(--interior-surface);
    box-shadow: var(--interior-shadow-sm);
}

.recruit-card-body {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.recruit-step-number {
    border-radius: 999px;
    background: var(--interior-maroon);
}

.recruit-input,
.recruit-select,
.recruit-textarea,
.recruit-file-input {
    border-radius: var(--interior-radius-sm);
}

.department-option,
.recruit-choice,
.summary-tile {
    border-color: var(--interior-line);
    border-radius: var(--interior-radius-sm);
    background: var(--interior-surface-soft);
}

.department-option:has(input:checked),
.recruit-choice:has(input:checked) {
    border-color: var(--interior-maroon);
    background: #f9eeeb;
    box-shadow: inset 0 0 0 1px var(--interior-maroon);
}

.recruit-button {
    min-height: 2.85rem;
    border-radius: 999px;
}

.submit-bar {
    border-radius: var(--interior-radius);
    box-shadow: var(--interior-shadow);
}

.admin-table-wrap,
.application-dialog {
    border-radius: var(--interior-radius);
}

/* Member profile and account setup. */

.member-shell {
    width: min(var(--interior-content), calc(100% - var(--interior-gutter) * 2));
}

.member-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--interior-line-strong);
}

.member-header .page-title {
    margin: 0;
    color: var(--interior-ink);
    font-family: "Noto Sans SC", "Source Sans 3", system-ui, sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 650;
    line-height: 1.08;
    letter-spacing: -0.055em;
}

html[lang="en"] .member-header .page-title {
    font-family: "Lora", Georgia, serif;
    font-weight: 500;
}

.member-form,
.member-section {
    gap: 1.4rem;
}

.member-section {
    padding: clamp(1.35rem, 3vw, 2rem);
    border-color: var(--interior-line);
    border-radius: var(--interior-radius);
    background: var(--interior-surface);
    box-shadow: var(--interior-shadow-sm);
}

.member-section__heading {
    border-color: var(--interior-line);
}

.member-input,
.member-select,
.member-textarea {
    min-height: 3rem;
    border-radius: var(--interior-radius-sm);
}

.member-loading {
    min-height: 10rem;
    display: grid;
    place-items: center;
    margin-top: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--interior-line);
    border-radius: var(--interior-radius);
    background: var(--interior-surface);
    color: var(--interior-muted);
    box-shadow: var(--interior-shadow-sm);
}

/* My Courses: remove double masthead spacing and strengthen information hierarchy. */

.academic-shell {
    width: min(var(--interior-content), calc(100% - var(--interior-gutter) * 2));
    margin: 0 auto 5rem !important;
    color: var(--interior-ink);
}

.academic-header {
    align-items: end;
    margin-bottom: 1.75rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--interior-line-strong);
}

.academic-header h1 {
    max-width: 18ch;
    margin: 0.65rem 0 0.8rem;
    color: var(--interior-ink);
    font-family: "Noto Sans SC", "Source Sans 3", system-ui, sans-serif;
    font-size: clamp(2.45rem, 5vw, 4.4rem);
    font-weight: 650;
    line-height: 1.08;
    letter-spacing: -0.055em;
}

html[lang="en"] .academic-header h1 {
    font-family: "Lora", Georgia, serif;
    font-weight: 500;
}

.academic-related {
    gap: 0.35rem;
    padding: 0.45rem;
    border: 1px solid var(--interior-line);
    border-radius: var(--interior-radius);
    background: var(--interior-surface);
    box-shadow: var(--interior-shadow-sm);
}

.academic-related a,
.academic-related-current {
    min-height: 2.7rem;
    display: inline-flex;
    align-items: center;
    border-radius: 0.65rem;
}

.academic-card {
    padding: clamp(1.25rem, 3vw, 2rem);
    border-color: var(--interior-line);
    border-radius: var(--interior-radius);
    background: var(--interior-surface);
    box-shadow: var(--interior-shadow-sm);
}

.academic-heading {
    border-bottom-color: var(--interior-line);
}

.academic-stats {
    gap: 0.85rem;
}

.academic-stat {
    border: 1px solid var(--interior-line);
    border-radius: var(--interior-radius);
    background: var(--interior-surface);
    box-shadow: var(--interior-shadow-sm);
}

.academic-notice {
    border: 1px solid #e4dac8;
    border-left: 4px solid var(--interior-gold);
    border-radius: var(--interior-radius-sm);
    background: #fbf6ea;
}

.academic-button {
    min-height: 2.75rem;
    border-color: var(--interior-line-strong);
    border-radius: 999px;
}

.academic-audit-program,
.academic-audit-summary,
.academic-empty {
    border-color: var(--interior-line);
    border-radius: var(--interior-radius-sm);
}

/* Course Planner: turn the gray control board into a clear planning workspace. */

body:has(.planner-page-context) {
    background: var(--interior-bg) !important;
}

body:has(.planner-page-context) #main-content {
    gap: 1rem;
    padding-inline: var(--interior-gutter);
    padding-bottom: 4rem;
}

.planner-page-context,
.planner-official-shortcuts,
.planner-academic-link,
#root > .dashboard-container {
    width: min(var(--interior-wide), 100%);
    margin-inline: auto;
}

.planner-page-context {
    position: relative;
    gap: clamp(1.5rem, 4vw, 4rem);
    padding: clamp(1.5rem, 3.5vw, 2.75rem);
    border: 1px solid var(--interior-line);
    border-left: 0;
    border-radius: var(--interior-radius-lg);
    background: var(--interior-surface);
    box-shadow: var(--interior-shadow-sm);
}

.planner-page-context::before {
    position: absolute;
    inset: 1rem auto 1rem 0;
    width: 0.3rem;
    border-radius: 0 999px 999px 0;
    background: var(--interior-maroon);
    content: "";
}

.planner-page-context h1 {
    color: var(--interior-ink);
    font-family: "Noto Sans SC", "Source Sans 3", system-ui, sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.planner-page-context p {
    color: var(--interior-muted);
}

.planner-data-meta {
    gap: 0.75rem;
}

.planner-data-meta div {
    border-color: var(--interior-line);
    border-radius: var(--interior-radius-sm);
    background: var(--interior-surface-soft);
}

.planner-official-shortcuts {
    padding: 1rem;
    border: 1px solid var(--interior-line);
    border-radius: var(--interior-radius);
    background: var(--interior-surface);
    box-shadow: var(--interior-shadow-sm);
}

.planner-official-link {
    min-height: 4.25rem;
    border-color: var(--interior-line);
    border-radius: var(--interior-radius-sm);
    background: var(--interior-surface-soft);
}

.planner-official-link-primary {
    background: var(--interior-maroon);
}

.planner-official-icon {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border-radius: 0.65rem;
    background: rgba(123, 23, 19, 0.08);
}

.planner-official-link-primary .planner-official-icon {
    background: rgba(255, 255, 255, 0.14);
}

.planner-academic-link {
    padding: 1.15rem 1.35rem;
    border: 1px solid #e4dac8;
    border-radius: var(--interior-radius);
    background: #fbf6ea;
}

#root > .dashboard-container {
    padding: 0;
}

#root .panel,
#root .plan-panel,
#root .pool-panel {
    border-color: var(--interior-line);
    border-radius: var(--interior-radius);
    background: var(--interior-surface);
    box-shadow: var(--interior-shadow-sm);
}

/* Community: retain the private-campus identity with calmer type and depth. */

.community-shell,
.community-main-shell {
    width: min(var(--interior-wide), calc(100% - var(--interior-gutter) * 2));
}

.community-hero {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--interior-radius-lg);
    box-shadow: var(--interior-shadow);
}

.community-hero h1 {
    font-family: "Noto Sans SC", "Source Sans 3", system-ui, sans-serif;
    font-weight: 620;
    letter-spacing: -0.055em;
}

html[lang="en"] .community-hero h1 {
    font-family: "Lora", Georgia, serif;
    font-weight: 500;
}

.community-hero-tags > span {
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.community-privacy-note,
.community-card,
.community-member,
.community-tab-panel,
.community-listing-card,
.community-question-card,
.community-dialog {
    border-color: var(--interior-line);
    border-radius: var(--interior-radius);
    box-shadow: var(--interior-shadow-sm);
}

.community-tabs {
    gap: 0.35rem;
    padding: 0.35rem;
    border: 1px solid var(--interior-line);
    border-radius: var(--interior-radius);
    background: var(--interior-surface);
}

.community-tab {
    border-radius: 0.7rem;
}

/* Game hub and team finders: premium gaming surfaces, not poster boxes. */

.game-shell,
.valorant-shell {
    width: min(var(--interior-wide), calc(100% - var(--interior-gutter) * 2));
}

.game-hero,
.valorant-hero,
.teammate-hero {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--interior-radius-lg);
    box-shadow: var(--interior-shadow);
}

.game-title,
.valorant-hero h1,
.teammate-hero h1 {
    font-family: "Noto Sans SC", "Source Sans 3", system-ui, sans-serif;
    font-weight: 620;
    letter-spacing: -0.055em;
}

html[lang="en"] :is(.game-title, .valorant-hero h1, .teammate-hero h1) {
    font-family: "Lora", Georgia, serif;
    font-weight: 500;
}

.privacy-note,
.valorant-privacy,
.teammate-route-warning,
.teammate-id-guide {
    border-radius: var(--interior-radius);
    backdrop-filter: blur(10px);
}

.game-card,
.game-gate,
.game-panel,
.room-shell,
.valorant-card,
.valorant-player-card,
.valorant-dialog {
    border-color: var(--interior-line);
    border-radius: var(--interior-radius);
    box-shadow: var(--interior-shadow-sm);
}

.game-card {
    transition: transform 220ms var(--interior-ease), box-shadow 220ms ease, border-color 180ms ease;
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--interior-shadow);
}

.teammate-game-switcher {
    gap: 0.35rem;
    padding: 0.35rem;
    border: 1px solid var(--interior-line);
    border-radius: var(--interior-radius);
    background: var(--interior-surface);
    box-shadow: var(--interior-shadow-sm);
}

.teammate-game-switcher a {
    min-height: 3.1rem;
    border: 0;
    border-radius: 0.7rem;
}

.teammate-game-switcher a[aria-current="page"] {
    background: #f6eae6;
    box-shadow: inset 0 0 0 1px rgba(123, 23, 19, 0.2);
}

.valorant-btn,
.game-btn,
.room-btn,
.action-btn,
.game-start {
    border-radius: 999px;
}

/* Administrative workbenches: quiet, scannable, and dense where appropriate. */

.event-admin-main,
.event-reg-main {
    background: var(--interior-bg);
}

.event-admin-shell,
.event-reg-shell {
    width: min(var(--interior-wide), calc(100% - var(--interior-gutter) * 2));
}

.event-admin-hero,
.event-reg-hero {
    display: block;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3.5rem);
    border: 1px solid var(--interior-line);
    border-radius: var(--interior-radius-lg);
    color: var(--interior-ink);
    background: var(--interior-surface);
    box-shadow: var(--interior-shadow-sm);
}

.event-admin-hero::after,
.event-reg-hero::after,
.event-admin-seal,
.event-reg-seal {
    display: none;
}

.event-admin-eyebrow,
.event-admin-kicker,
.event-reg-eyebrow,
.event-reg-kicker {
    color: var(--interior-maroon);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.event-admin-hero h1,
.event-reg-hero h1 {
    max-width: 18ch;
    margin: 0.7rem 0;
    color: var(--interior-ink);
    font-family: "Noto Sans SC", "Source Sans 3", system-ui, sans-serif;
    font-size: clamp(2.45rem, 5vw, 4.5rem);
    font-weight: 650;
    line-height: 1.08;
    letter-spacing: -0.055em;
}

html[lang="en"] :is(.event-admin-hero h1, .event-reg-hero h1) {
    font-family: "Lora", Georgia, serif;
    font-weight: 500;
}

.event-admin-lead,
.event-reg-lead {
    max-width: 52rem;
    color: var(--interior-muted);
    line-height: 1.75;
}

.event-admin-dashboard,
.event-reg-dashboard {
    gap: 1.1rem;
}

.event-admin-panel,
.event-reg-panel {
    overflow: hidden;
    border-color: var(--interior-line);
    border-radius: var(--interior-radius);
    background: var(--interior-surface);
    box-shadow: var(--interior-shadow-sm);
}

.event-admin-dashboard-bar {
    border-color: var(--interior-line);
    box-shadow: var(--interior-shadow);
}

.event-admin-panel-body,
.event-reg-panel-body {
    padding: clamp(1.2rem, 3vw, 2rem);
}

.event-admin-fieldset {
    border-top-color: var(--interior-line);
}

.event-admin-input,
.event-reg-input {
    min-height: 3rem;
    border-radius: var(--interior-radius-sm);
}

.event-admin-audience-option,
.event-admin-toggle,
.access-role-option,
.access-enabled-toggle,
.event-reg-summary-tile {
    border-color: var(--interior-line);
    border-radius: var(--interior-radius-sm);
    background: var(--interior-surface-soft);
}

.event-admin-button,
.event-reg-button {
    min-height: 2.8rem;
    border-radius: 999px;
}

.event-reg-table-wrap,
.admin-table-wrap {
    overflow: auto;
    border: 1px solid var(--interior-line);
    border-radius: var(--interior-radius);
}

.event-reg-table th,
.admin-table th {
    background: var(--interior-surface-soft);
}

/* CISA Eval is already the strongest product surface; refine its opening scale. */

.eval-main.is-home {
    min-height: min(100svh, 64rem);
}

.is-home .eval-search-home {
    max-width: 52rem;
    margin-top: clamp(6rem, 14vh, 10rem);
}

.is-home .eval-search-home h1 {
    font-size: clamp(4.2rem, 8vw, 7rem);
}

.is-home .eval-search-box {
    border-radius: 1.25rem;
    box-shadow: 0 1.2rem 3.5rem rgba(18, 8, 6, 0.28);
}

.eval-result,
.eval-dashboard,
.eval-profile,
.eval-detail-panel,
.eval-page dialog {
    border-radius: var(--interior-radius);
}

/* Shen keeps its deliberate archival art direction; only interaction polish. */

.shen-page {
    -webkit-font-smoothing: antialiased;
}

.shen-page :is(button, a) {
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms var(--interior-ease);
}

.shen-page :is(button, a):focus-visible {
    outline: 3px solid #b52b28;
    outline-offset: 3px;
}

/* Redirect fallbacks remain useful if scripting is disabled or slow. */

.redirect-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 1.5rem;
    background: var(--interior-bg);
    color: var(--interior-ink);
    font-family: "Source Sans 3", "Noto Sans SC", system-ui, sans-serif;
}

.redirect-card {
    width: min(34rem, 100%);
    padding: clamp(1.5rem, 5vw, 3rem);
    border: 1px solid var(--interior-line);
    border-radius: var(--interior-radius-lg);
    background: var(--interior-surface);
    box-shadow: var(--interior-shadow);
}

.redirect-card small {
    color: var(--interior-maroon);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.redirect-card h1 {
    margin: 0.8rem 0;
    font-size: clamp(2rem, 7vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.redirect-card p {
    margin: 0;
    color: var(--interior-muted);
    line-height: 1.7;
}

.redirect-card a {
    color: var(--interior-maroon);
    font-weight: 650;
    text-underline-offset: 0.22em;
}

/* Responsive pass. */

@media (max-width: 800px) {
    :root {
        --interior-gutter: 1rem;
        --interior-radius-lg: 1.15rem;
    }

    #main-content > .page-header .page-title,
    .career-heading,
    .recruit-title,
    .member-header .page-title,
    .academic-header h1,
    .event-admin-hero h1,
    .event-reg-hero h1 {
        font-size: clamp(2.25rem, 11vw, 3.4rem);
    }

    .page-banner img {
        height: clamp(15rem, 68vw, 24rem);
    }

    #main-content .panel,
    #main-content .resource-card,
    .member-section,
    .academic-card,
    .event-admin-panel-body,
    .event-reg-panel-body {
        padding: 1.1rem;
    }

    .career-filters {
        padding: 1rem;
    }

    .event-hero-copy {
        padding: 1.4rem;
    }

    .event-cover {
        border-top: 1px solid var(--interior-line);
        border-left: 0;
    }

    .recruit-hero,
    .event-admin-hero,
    .event-reg-hero {
        padding: 1.5rem;
    }

    .academic-header {
        align-items: start;
    }

    .academic-related {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: thin;
    }

    .academic-related :is(a, span) {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .academic-stats {
        grid-template-columns: 1fr;
    }

    body:has(.planner-page-context) #main-content {
        padding-inline: var(--interior-gutter);
    }

    .planner-page-context {
        padding: 1.25rem;
    }

    .planner-data-meta,
    .planner-official-grid {
        grid-template-columns: 1fr;
    }

    .community-hero,
    .game-hero,
    .valorant-hero,
    .teammate-hero {
        border-radius: var(--interior-radius-lg);
    }

    .teammate-game-switcher {
        overflow-x: auto;
        grid-template-columns: none;
        display: flex;
        scrollbar-width: thin;
    }

    .teammate-game-switcher a {
        flex: 0 0 auto;
        min-width: 10rem;
    }

    .event-admin-dashboard-bar {
        position: static;
    }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .content-figure:hover img,
    .image-strip:hover img {
        transform: scale(1.02);
    }
}

@media (prefers-reduced-motion: reduce) {
    body:not(.home-page) *,
    body:not(.home-page) *::before,
    body:not(.home-page) *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
