/* =====================================================================
   JAW 2026 — Joint APPCAIR Workshop
   Joint APPCAIR Workshop, BITS Pilani, 14-15 August 2026.
   The accent colour is the APPCAIR brand indigo #2E3192, sampled from
   the official APPCAIR lockup.
   ===================================================================== */

/* ===== CSS Variables ===== */
:root {
    /* Typography - Inter for everything (standard academic) */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Font sizes */
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Layout */
    --content-width: 1000px;
    --content-padding: 24px;
    --nav-height: 64px;

    /* Light mode colors (default) — poster palette, blue-tinted */
    --bg-primary: #FFFFFF;
    --bg-secondary: #eef4fb;
    --bg-tertiary: #dbe6f5;
    --text-primary: #14213f;
    --text-secondary: #47567a;
    --text-tertiary: #8794b3;
    --accent: #1666c9;
    --accent-hover: #2f6fe0;
    --accent-light: #e3eefb;
    --border: #dbe4f0;
    --shadow: rgba(20, 33, 63, 0.08);
}

/* Dark mode — the poster's full navy treatment */
[data-theme="dark"] {
    --bg-primary: #070c30;
    --bg-secondary: #0c1240;
    --bg-tertiary: #12205e;
    --text-primary: #eaf3ff;
    --text-secondary: #b9c9e6;
    --text-tertiary: #8299c4;
    --accent: #5adce5;
    --accent-hover: #7ee8f0;
    --accent-light: #12305a;
    --border: rgba(120, 180, 255, 0.16);
    --shadow: rgba(0, 0, 0, 0.45);
}

/* ===== Base Styles ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
    margin-bottom: var(--space-4);
}

h2 {
    font-size: var(--text-2xl);
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border);
}

h3 {
    font-size: var(--text-xl);
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
}

p {
    margin: 0 0 var(--space-6);
    color: var(--text-primary);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

strong {
    font-weight: 600;
}

ul, ol {
    margin: var(--space-4) 0 var(--space-6);
    padding-left: var(--space-8);
}

li {
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

li:last-child {
    margin-bottom: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--content-padding);
}

.section {
    padding: var(--space-16) 0;
}

.section--alt {
    background-color: var(--bg-secondary);
}

/* ===== Site Header / Navigation ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-6);
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.header-logo-img {
    height: 32px;
    width: auto;
}

[data-theme="dark"] .header-logo-img--invert {
    filter: invert(1);
}

.header-logo {
    display: flex;
    gap: 0.4em;
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.header-logo span {
    letter-spacing: 0.1em;
}

.header-logo:hover {
    color: var(--text-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.header-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--space-2) var(--space-3);
    transition: color 0.2s ease;
}

.header-link:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    padding: var(--space-2) var(--space-3);
    border-radius: 6px;
    background-color: var(--bg-secondary);
    transition: all 0.2s ease;
}

.header-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
    text-decoration: none;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Mobile menu - hidden by default on desktop */
.mobile-menu {
    display: none;
}

/* ===== Dark Mode Toggle ===== */
#theme-toggle {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background-color: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    font-size: 18px;
}

#theme-toggle:hover {
    background-color: var(--bg-tertiary);
}

[data-theme="light"] .moon-icon,
[data-theme="dark"] .sun-icon {
    display: none;
}

[data-theme="light"] .sun-icon,
[data-theme="dark"] .moon-icon {
    display: inline;
}

/* ===== Main Content ===== */
main {
    padding-top: var(--nav-height);
}

/* ===== Hero Section ===== */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-20) var(--content-padding) var(--space-8);
    background-color: var(--bg-primary);
}

.hero__content {
    max-width: 800px;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-4);
}

.hero__title {
    margin-bottom: var(--space-4);
}

.hero__title--easter-egg .egg {
    transition: color 0.3s ease;
}

.hero__title--easter-egg:hover .egg {
    color: var(--accent);
}

.hero__subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
}

.hero__signup {
    width: 100%;
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}

.hero__signup a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hero__signup a:hover {
    color: var(--accent-hover);
}

/* ===== Supported By ===== */
.supported-by {
    margin-top: var(--space-8);
    text-align: center;
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
}

.supported-by__label {
    font-size: var(--text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: var(--space-6);
}

.supported-by__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: nowrap;
}

.supported-by__logos .logo--circular {
    height: clamp(40px, 5vw, 60px);
}

.supported-by__logos img {
    height: clamp(28px, 3.5vw, 44px);
    max-width: clamp(90px, 12vw, 150px);
    width: auto;
    object-fit: contain;
}

[data-theme="dark"] .supported-by__logos .logo--invert {
    filter: invert(1);
}

[data-theme="dark"] .supported-by__logos .logo--white {
    filter: brightness(0) invert(1);
}

/* Awards Sponsors section (team.html) — left-aligned, larger logos */
#awards-sponsors .supported-by__logos {
    justify-content: flex-start;
    gap: var(--space-12);
    margin-top: var(--space-8);
    margin-bottom: var(--space-8);
}

#awards-sponsors .supported-by__logos img {
    height: clamp(44px, 5.5vw, 64px);
    max-width: clamp(120px, 16vw, 180px);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px var(--shadow);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.btn--pill {
    padding: var(--space-1) var(--space-4);
    font-size: 0.8rem;
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: none;
}

.btn--pill:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff;
    box-shadow: none;
}

.btn--primary {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.btn--primary:hover {
    color: var(--bg-primary);
}

.btn--secondary {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border);
    box-shadow: none;
}

.btn--secondary:hover {
    background-color: var(--bg-secondary);
    box-shadow: none;
}

.btn--disabled {
    background-color: var(--bg-secondary);
    color: var(--text-tertiary);
    border-color: var(--border);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn--disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ===== Content Sections ===== */
.content-section {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: var(--space-8) var(--content-padding);
}

.content-section h2:first-child {
    margin-top: 0;
}

/* ===== Highlight Box (like TL;DR) ===== */
.highlight-box {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: var(--space-6) var(--space-8);
    margin: var(--space-8) 0;
    border-left: 4px solid var(--accent);
}

.highlight-box h3 {
    margin-top: 0;
    font-size: var(--text-xl);
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

/* ===== Cards Grid ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin: var(--space-8) 0;
}

.card {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: var(--space-6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
}

.card h3 {
    margin-top: 0;
    margin-bottom: var(--space-3);
    font-size: var(--text-lg);
}

.card p {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

/* ===== Timeline ===== */
.timeline {
    margin: var(--space-8) 0;
}

.timeline-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border);
}

.timeline-row:last-child {
    border-bottom: none;
}

.timeline-item {
    display: flex;
    gap: var(--space-4);
}

.timeline-date {
    flex-shrink: 0;
    width: 100px;
    display: flex;
    flex-direction: column;
    color: var(--accent);
}

.timeline-date__day {
    font-weight: 600;
    font-size: var(--text-lg);
    line-height: 1.2;
}

.timeline-date__year {
    font-size: var(--text-sm);
    opacity: 0.8;
}

.timeline-content {
    flex: 1;
}

.timeline-content h4 {
    margin: 0 0 var(--space-1);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-base);
}

.timeline-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

/* ===== Team Grid ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-6);
    margin: var(--space-6) 0;
}

.team-member {
    text-align: center;
    padding: var(--space-4);
}

.team-member__image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    margin: 0 auto var(--space-3);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-member__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member__image-placeholder {
    color: var(--text-tertiary);
    font-size: var(--text-2xl);
}

.team-member h4 {
    margin: 0 0 var(--space-1);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-base);
}

.team-member__role {
    margin: 0 0 var(--space-1);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-style: italic;
}

.team-member__institution {
    margin: 0 0 var(--space-2);
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.team-member__social {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
}

.team-member__social a {
    color: var(--text-tertiary);
    transition: color 0.2s ease;
}

.team-member__social a:hover {
    color: var(--accent);
}

.team-member__social svg {
    width: 18px;
    height: 18px;
}

/* Compact team list */
.team-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin: var(--space-6) 0 var(--space-4);
}

.team-list__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.team-list__name {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-base);
    color: var(--text-primary);
}

.team-list__role {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-style: italic;
}

.team-list__institution {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.team-list__social {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-1);
}

.team-list__social a {
    color: var(--text-tertiary);
    transition: color 0.2s ease;
}

.team-list__social a:hover {
    color: var(--accent);
}

.team-list__social svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 1024px) {
    .team-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ===== Team Page ===== */
.team-hero {
    padding: calc(var(--nav-height) + var(--space-8)) var(--content-padding) var(--space-8);
    max-width: var(--content-width);
    margin: 0 auto;
}

.team-hero .eyebrow {
    text-align: left;
    margin-bottom: var(--space-3);
    text-transform: none;
}

.team-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--space-4);
    line-height: 1.15;
}

.team-hero__subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

.team-member__areas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: var(--space-2) 0;
}

/* ===== Team Card (horizontal, used on team.html) ===== */
.team-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: 8px;
    background-color: transparent;
    transition: background-color 0.2s ease;
}

.team-card:hover {
    background-color: var(--bg-secondary);
}

.team-card__photo {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--bg-tertiary);
    flex-shrink: 0;
}

.team-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.team-card__name-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.team-card__name {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-base);
    color: var(--text-primary);
    line-height: 1.3;
}

.team-card__chair-badge {
    display: inline-block;
    background-color: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 999px;
}

.team-card__role {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.35;
}

.team-card__institution {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.35;
}

.team-card__areas {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 8px;
    margin-top: 0;
}

.team-card__social {
    display: flex;
    gap: var(--space-2);
    margin-top: 0;
}

.team-card__social a {
    color: var(--text-tertiary);
    transition: color 0.2s ease;
}

.team-card__social a:hover {
    color: var(--accent);
}

.team-card__social svg {
    width: 16px;
    height: 16px;
}

/* Compact variant — used on the Program Committee */
.team-card--compact .team-card__photo {
    width: 56px;
    height: 56px;
    min-width: 56px;
}

.team-card--compact .team-card__name {
    font-size: 0.875rem;
}

.team-card--compact .team-card__chair-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
}

.team-card--compact .team-card__role,
.team-card--compact .team-card__institution {
    font-size: 0.75rem;
}

.team-card--compact .team-pill {
    font-size: 0.625rem;
    padding: 3px 6px 3px 0;
}

.team-card--compact .team-card__social svg {
    width: 14px;
    height: 14px;
}

.team-pill {
    display: inline-block;
    padding: 4px 7px 4px 0;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2px;
    color: var(--accent);
    background-color: transparent;
    white-space: nowrap;
}

/* Fixed 2-column layout (e.g., Steering: 5 members → 2 + 2 + 1) */
.team-grid--2col {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 640px) {
    .team-grid--2col {
        grid-template-columns: 1fr;
    }
}

/* 3-column layout for larger committees */
.team-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

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

@media (max-width: 560px) {
    .team-grid--3col {
        grid-template-columns: 1fr;
    }
}

/* ===== Footer ===== */
.footer {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: var(--space-12) 0 var(--space-6);
    border-top: 1px solid var(--border);
}

.footer__inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--content-padding);
}

.footer__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    padding-bottom: var(--space-8);
    margin-bottom: var(--space-6);
    border-bottom: 1px solid var(--border);
}

.footer__col h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin: 0 0 var(--space-4);
}

.footer__links,
.footer__emails {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links li,
.footer__emails li {
    margin-bottom: var(--space-2);
}

.footer__links a,
.footer__emails a {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    transition: color 0.2s ease;
}

.footer__links a:hover,
.footer__emails a:hover {
    color: var(--text-primary);
}

.footer__social {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.footer__social a {
    color: var(--text-tertiary);
    transition: color 0.2s ease;
}

.footer__social a:hover {
    color: var(--accent-hover);
}

.footer__social svg {
    width: 20px;
    height: 20px;
}

.footer__organized-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-6) 0;
}

.footer__organized-by span {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer__org-logos {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.footer__org-logo {
    height: 24px;
    width: auto;
    opacity: 0.7;
}

[data-theme="dark"] .footer__org-logo--invert {
    filter: invert(1);
}

.footer__copyright {
    text-align: center;
    padding-top: var(--space-6);
    color: var(--text-tertiary);
    font-size: var(--text-sm);
}

.footer__credit {
    text-align: left;
    color: var(--text-tertiary);
    font-size: 0.72rem;
    margin-top: var(--space-2);
    opacity: 0.7;
}

.footer__credit a {
    color: var(--accent);
    text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    html {
        font-size: 17px;
    }

    .site-header {
        padding: 0 var(--space-4);
    }

    .header-right {
        gap: var(--space-2);
    }

    .header-btn {
        padding: var(--space-2);
        font-size: 0;
        gap: 0;
    }

    .header-btn span {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .header-link {
        display: none;
    }

    .header-right .header-btn {
        display: none;
    }

    .header-right #theme-toggle {
        display: flex;
    }

    /* Mobile menu */
    .mobile-menu {
        display: block;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background-color: var(--bg-primary);
        border-bottom: 1px solid var(--border);
        padding: var(--space-4);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .mobile-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu a {
        display: block;
        padding: var(--space-3) 0;
        color: var(--text-primary);
        font-weight: 500;
        border-bottom: 1px solid var(--border);
    }

    .mobile-menu a:last-child {
        border-bottom: none;
    }

    .hero {
        padding: var(--space-12) var(--content-padding);
    }

    .content-section {
        padding: var(--space-12) var(--content-padding);
    }

    .timeline-row {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        flex-direction: column;
        gap: var(--space-2);
    }

    .timeline-date {
        width: auto;
    }

    .footer__columns {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

@media (max-width: 900px) {
    .supported-by__logos {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: var(--space-4) var(--space-6);
    }

    .supported-by__logos img {
        height: 32px;
        max-width: 110px;
    }

    .supported-by__logos .logo--circular {
        height: 44px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 16px;
    }

    .hero__cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* ===== Print Styles ===== */
@media print {
    .site-header,
    #theme-toggle,
    .nav-toggle {
        display: none;
    }

    main {
        padding-top: 0;
    }

    body {
        background: white;
        color: black;
    }
}

/* =====================================================================
   Additional components
   ===================================================================== */

/* Status pill, e.g. "Coming soon" / "Confirmed" */
.pill {
    display: inline-block;
    padding: 2px 10px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.pill--accent {
    color: var(--accent);
    border-color: var(--accent);
}

/* Card used as a link */
.card--link {
    display: block;
    color: inherit;
}

.card--link:hover {
    color: inherit;
}

.card__meta {
    display: block;
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent);
}

/* Lists inside cards (day-by-day outline) */
.card ul {
    margin: var(--space-3) 0 0;
    padding-left: var(--space-5);
}

.card ul li {
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.card__eyebrow {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
}

/* Speaker cards reuse .team-grid / .team-member */
.team-member__day {
    margin: var(--space-2) 0 0;
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.team-member--tba .team-member__image {
    border: 1px dashed var(--border);
    background-color: transparent;
}

/* Committee portfolio groups */
.portfolio-group {
    margin-bottom: var(--space-6);
}

.portfolio-group h4 {
    margin: 0 0 var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
}

.portfolio-group p {
    margin: 0;
    color: var(--text-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin: var(--space-6) 0;
}

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

@media (max-width: 560px) {
    .portfolio-grid { grid-template-columns: 1fr; }
}

/* Key facts row under the hero title */
.hero__facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3) var(--space-6);
    margin-bottom: var(--space-8);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.hero__facts span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.hero__facts svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .hero__facts { font-size: var(--text-base); }
}

/* "Details coming soon" interior pages */
.stub-page {
    min-height: 60vh;
}

.stub-page .eyebrow {
    text-align: left;
}

/* APPCAIR lockup is a wide horizontal logo, so it needs its own sizing
   rather than the square-ish defaults in .supported-by__logos. */
.supported-by__logos .logo--appcair {
    height: clamp(24px, 3vw, 36px);
    max-width: clamp(170px, 24vw, 270px);
}

.footer__org-logo--appcair {
    height: 24px;
    max-width: 175px;
}

/* In the poster theme the hero and footer logo groups always sit on a white
   chip, so the navy APPCAIR lockup stays as-is in both light and dark mode. */
[data-theme="dark"] .supported-by__logos .logo--appcair,
[data-theme="dark"] .footer__org-logo--appcair {
    filter: none;
}

/* Leadership, called out above the portfolio grid */
.committee-leads {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin: var(--space-6) 0 var(--space-4);
}

@media (max-width: 640px) {
    .committee-leads { grid-template-columns: 1fr; }
}

.committee-chair {
    padding: var(--space-4) var(--space-6);
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
}

.committee-chair__campus {
    display: block;
    margin-top: var(--space-1);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.committee-chair h4 {
    margin: 0 0 var(--space-1);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
}

.committee-chair p {
    margin: 0;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
}

/* =====================================================================
   Poster theme — dark-navy hero band + wave footer
   The hero and footer carry the poster's identity (deep navy, cyan,
   circuit ring, wave ribbon) in both light and dark mode. The reading
   content between them follows the light/dark tokens above.
   ===================================================================== */

/* ---- Primary button: blue-to-cyan gradient ---- */
.btn--primary {
    background: linear-gradient(135deg, #1666c9 0%, #33c6e0 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(22, 102, 201, .28);
}
.btn--primary:hover { color: #fff; box-shadow: 0 8px 22px rgba(22, 102, 201, .36); }

/* ---- Dark-navy hero, straight off the poster ---- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(90% 120% at 82% 20%, #123a8f 0%, transparent 55%),
        radial-gradient(80% 100% at 12% 100%, #0e2170 0%, transparent 60%),
        linear-gradient(160deg, #0a1550 0%, #060b33 70%);
    color: #eaf3ff;
}
.hero::after {
    content: "";
    position: absolute;
    top: -80px; right: -100px;
    width: 640px; height: 640px;
    background: url("assets/circuit.svg") no-repeat center / contain;
    opacity: .5;
    pointer-events: none;
}
.hero__content { position: relative; z-index: 1; }

.hero .eyebrow { color: #5adce5; }
.hero__title { color: #ffffff; text-shadow: 0 0 30px rgba(90, 220, 229, .28); }
.hero__facts { color: #dbe9ff; }
.hero__facts svg { color: #5adce5; }
.hero__subtitle { color: rgba(219, 233, 255, .82); }

.hero .btn--secondary {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(147, 197, 253, .5);
    color: #eaf3ff;
}
.hero .btn--secondary:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.hero .supported-by__label { color: rgba(219, 233, 255, .6); }

/* logos sit on a white chip so both the crest and the navy lockup read */
.hero .supported-by__logos {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 26px;
    display: inline-flex;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}

/* ---- Dark footer with a wave lip on top ---- */
.footer {
    position: relative;
    background: linear-gradient(160deg, #0a1550 0%, #060b33 80%);
    color: rgba(219, 233, 255, .72);
    border-top: 0;
    margin-top: 60px;
}
.footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 70px;
    transform: translateY(-100%);
    background: url("assets/wave.svg") no-repeat bottom / cover;
    pointer-events: none;
}
.footer__col h4,
.footer__copyright { color: rgba(147, 197, 253, .7); }
.footer__links a,
.footer__emails a { color: rgba(219, 233, 255, .78); }
.footer__links a:hover,
.footer__emails a:hover { color: #fff; }
.footer__columns,
.footer__organized-by { border-color: rgba(147, 197, 253, .18); }
.footer__organized-by span { color: rgba(147, 197, 253, .6); }
.footer__organized-by .footer__org-logos {
    background: #fff;
    border-radius: 12px;
    padding: 8px 18px;
}

/* ---- Dark-mode polish: cyan top rule on cards, like the poster panels ---- */
[data-theme="dark"] .card { border-top: 3px solid var(--accent); }
[data-theme="dark"] .highlight-box,
[data-theme="dark"] .committee-chair { border-left-color: var(--accent); }

/* =====================================================================
   Hackathon page
   ===================================================================== */

.hack-theme {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3.2vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin: var(--space-3) 0 var(--space-2);
}

.hack-tagline {
    font-style: italic;
    font-size: var(--text-lg);
    color: var(--accent);
    margin: 0 0 var(--space-6);
}

/* "In collaboration with" strip */
.collab {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-5);
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-secondary);
    margin-bottom: var(--space-8);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.collab:hover { border-color: var(--accent); transform: translateY(-1px); color: inherit; }
.collab__label {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
}
.collab img { height: 30px; width: auto; }
.collab strong { font-weight: 700; color: var(--text-primary); }
[data-theme="dark"] .collab img { filter: brightness(1.4); }

/* Task input / output */
.spec-list { list-style: none; padding: 0; margin: var(--space-4) 0 0; }
.spec-list li {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-top: 1px solid var(--border);
    line-height: 1.6;
}
.spec-list li:last-child { border-bottom: 1px solid var(--border); }
.spec-list .spec-key {
    flex: 0 0 84px;
    font-weight: 700;
    color: var(--accent);
}

/* Scoring formula */
.formula {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: var(--space-6);
    margin: var(--space-6) 0;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    font-size: var(--text-lg);
    text-align: center;
}
.frac {
    display: inline-flex;
    flex-direction: column;
    text-align: center;
}
.frac .num { padding: 0 0.5rem 0.15rem; border-bottom: 2px solid currentColor; }
.frac .den { padding: 0.15rem 0.5rem 0; }

/* Hackathon timeline */
.hack-timeline {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0 0;
}
.hack-timeline li {
    position: relative;
    padding: 0 0 var(--space-6) var(--space-8);
    border-left: 2px solid var(--border);
    margin: 0;
}
.hack-timeline li:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}
.hack-timeline li::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-primary);
}
.hack-timeline .tl-date {
    display: block;
    font-weight: 700;
    font-size: var(--text-sm);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-1);
}
.hack-timeline .tl-body {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =====================================================================
   Schedule (homepage)
   ===================================================================== */
.schedule {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin-top: var(--space-4);
}
@media (max-width: 760px) { .schedule { grid-template-columns: 1fr; } }

.sched-day {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 12px;
    padding: var(--space-5) var(--space-6) var(--space-4);
}
.sched-day__title { margin: 0 0 var(--space-2); font-size: var(--text-lg); }

.sched-list { list-style: none; margin: 0; padding: 0; }
.sched-row {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    margin: 0;
    border-top: 1px solid var(--border);
}
.sched-row:first-child { border-top: 0; }
.sched-time {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1.45;
}
.sched-sess { line-height: 1.45; }
.sched-sess strong { display: block; font-weight: 600; color: var(--text-primary); }
.sched-meta { font-size: var(--text-sm); color: var(--text-secondary); }
.sched-row--break .sched-time { color: var(--text-tertiary); }
.sched-row--break .sched-sess strong { font-weight: 500; font-style: italic; color: var(--text-secondary); }

/* Hackathon call-to-action button row */
.hack-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin: 0 0 var(--space-8);
}
.btn svg { flex: none; }

/* Speaker name links to their profile */
.team-member h4 a {
    color: inherit;
    text-decoration: none;
}
.team-member h4 a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Register button + highlighted BITS-email hint stacked beneath it */
.hack-cta { align-items: flex-start; }
.hack-cta__reg {
    display: inline-flex;
    flex-direction: column;
    gap: 7px;
}
.hack-cta__hint {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--accent);
    background: var(--accent-light);
    border-radius: 7px;
    padding: 6px 10px;
}

/* Talk title under a speaker's affiliation */
.team-member__talk {
    margin: var(--space-2) 0 0;
    font-size: var(--text-sm);
    font-style: italic;
    color: var(--accent);
    line-height: 1.4;
}

/* ===== Sponsors ===== */
.sponsors {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
    margin-top: var(--space-2);
}
.sponsor {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-6);
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-secondary);
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.sponsor:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow);
    color: var(--text-primary);
}
.sponsor img { height: 40px; width: auto; }
.sponsor__name { line-height: 1.25; }
.sponsor__name strong { display: block; font-weight: 700; font-size: var(--text-lg); }
.sponsor__name span { font-size: var(--text-sm); color: var(--text-secondary); }
[data-theme="dark"] .sponsor img { filter: brightness(1.4); }

/* Hackathon sponsor badge in the hero */
.hero__sponsor {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--space-6);
    padding: 8px 18px;
    border: 1px solid rgba(147, 197, 253, 0.5);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
    font-size: var(--text-sm);
    color: #eaf3ff;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.hero__sponsor:hover { border-color: #5adce5; background: rgba(255, 255, 255, 0.1); color: #fff; }
.hero__sponsor .lbl { color: #ffffff; }
.hero__sponsor img { height: 20px; width: auto; filter: brightness(1.6); }
.hero__sponsor strong { color: #fff; font-weight: 700; }
