:root {
    --mit-brick-red: #661b21;
    --mit-dawn-orange: #f26522;
    --mit-midnight-blue: #192955;
    --mit-purple: #462556;
    --mit-light-yellow: #ffefcf;
    --mit-lilac: #dfcbe3;
    --mit-light-blue: #d3eefb;

    --bg: #fffaf1;
    --surface: #ffffff;
    --surface-soft: #ffefcf;
    --ink: #192955;
    --ink-muted: #3f4b6f;
    --primary: #192955;
    --primary-strong: #661b21;
    --accent: #f26522;
    --line: #e9ddc7;
    --shadow: 0 16px 34px rgba(25, 41, 85, 0.14);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Allumi Std", "Halyard Micro", "Segoe UI", sans-serif;
    color: var(--ink);
    line-height: 1.75;
    background:
        radial-gradient(circle at 5% 10%, var(--mit-light-blue) 0%, transparent 36%),
        radial-gradient(circle at 92% 18%, var(--mit-lilac) 0%, transparent 36%),
        var(--bg);
}

.container {
    width: min(1160px, 90%);
    margin: 0 auto;
}

section {
    padding: 92px 0;
}

h1,
h2,
h3 {
    font-family: "Halyard Micro", "Allumi Std", sans-serif;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 4.6vw, 3.45rem);
    line-height: 1.15;
    margin-bottom: 16px;
    color: #fff;
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.55rem);
    margin-bottom: 26px;
    color: var(--primary-strong);
}

h3 {
    font-size: 1.18rem;
    margin-bottom: 10px;
}

p {
    color: var(--ink-muted);
    margin-bottom: 18px;
    max-width: 900px;
}

.auto-margin {
    margin: 0 auto;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--mit-light-yellow);
    margin-bottom: 14px;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1100;
    padding: 0;
    background: rgba(255, 250, 241, 0.9);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(8px);
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.navbar.scrolled {
    border-color: rgba(102, 27, 33, 0.2);
    box-shadow: 0 10px 24px rgba(25, 41, 85, 0.08);
    background: rgba(255, 250, 241, 0.96);
}

.scroll-progress {
    height: 4px;
    width: 100%;
    background: rgba(102, 27, 33, 0.1);
}

.scroll-progress span {
    display: block;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--mit-dawn-orange), var(--mit-brick-red));
    transition: width 0.08s linear;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 16px 0;
}

.navbar .container {
    width: min(1400px, 94%);
}

.logo {
    flex: 0 0 auto;
    font-family: "Halyard Micro", "Allumi Std", sans-serif;
    text-decoration: none;
    font-size: 1.15rem;
    color: var(--primary-strong);
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.2vw, 22px);
}

.nav-links a,
.drop-toggle {
    text-decoration: none;
    color: var(--primary-strong);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover,
.drop-toggle:hover {
    color: var(--accent);
}

.registration-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.registration-open-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #e6f6e9;
    color: #176b2c;
    font-size: .62rem;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.registration-open-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2b9a45;
    box-shadow: 0 0 0 3px rgba(43, 154, 69, .14);
}

.dropdown {
    position: relative;
}

.drop-toggle {
    border: none;
    background: transparent;
    font-family: inherit;
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 6px;
}

.arrow {
    font-size: 0.72rem;
    transition: transform 0.25s ease;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 265px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
}

.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
}

.dropdown-menu a:hover {
    background: #fff7e6;
}

@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown:hover .arrow {
        transform: rotate(180deg);
    }
}

.hamburger {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--primary-strong);
    left: 0;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    top: 18px;
}

.hamburger.active span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(128deg, var(--mit-midnight-blue) 0%, var(--mit-purple) 52%, var(--mit-brick-red) 100%);
    padding: 118px 0 94px;
}

.hero-bg-shape {
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
    z-index: 0;
}

.hero-bg-shape-one {
    width: 260px;
    height: 260px;
    background: rgba(242, 101, 34, 0.24);
    top: -90px;
    right: 8%;
}

.hero-bg-shape-two {
    width: 330px;
    height: 330px;
    background: rgba(211, 238, 251, 0.22);
    bottom: -140px;
    left: -40px;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero .location,
.hero .hero-content p {
    color: #e5ecff;
}

.hero-cta-row {
    margin-top: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.partner-logos {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.partner-logo-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(223, 203, 227, 0.75);
    border-radius: 12px;
    padding: 10px 12px;
    min-height: 150px;
    display: grid;
    grid-template-rows: 1fr auto;
    place-items: center;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(25, 41, 85, 0.1);
}

.partner-logo-card img {
    width: min(100%, 250px);
    height: 95px;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
}

.partner-logo-card p {
    margin: 8px 0 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mit-brick-red);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    padding: 13px 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, #f26522, #f88c52);
    box-shadow: 0 12px 22px rgba(242, 101, 34, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.about-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.about-heading-row h2 {
    margin-bottom: 0;
}

.about-school-button {
    flex: 0 0 auto;
    padding: 10px 18px;
    font-size: .88rem;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .about-heading-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }
}

.btn-ghost {
    border: 1px solid rgba(255, 239, 207, 0.5);
    color: var(--mit-light-yellow);
    background: rgba(255, 255, 255, 0.05);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.event-meta-grid {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.meta-card {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(223, 203, 227, 0.38);
    padding: 16px;
    border-radius: 12px;
    text-align: left;
}

.meta-card > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.meta-card > div p {
    text-align: right;
}

.meta-card h3 {
    color: #fff;
    margin-bottom: 3px;
}

.meta-card p {
    color: #ede3f3;
    margin-bottom: 0;
    font-size: 0.92rem;
}

.countdown-card {
    margin-top: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(223, 203, 227, 0.4);
    border-radius: 14px;
    padding: 18px;
}

.countdown-card h3 {
    color: #fff;
    margin-bottom: 12px;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.time-box {
    border-radius: 10px;
    padding: 12px 10px;
    background: rgba(25, 41, 85, 0.5);
}

.time-box span {
    color: #fff;
    display: block;
    font-family: "Halyard Micro", "Allumi Std", sans-serif;
    font-size: 1.6rem;
    line-height: 1;
    margin-bottom: 4px;
}

.time-box small {
    color: #e3d7ea;
    text-transform: uppercase;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
}

/* Sections */
.section-light {
    background: transparent;
}

.section-dark {
    color: #f6f1fa;
    background: linear-gradient(130deg, var(--mit-midnight-blue) 0%, var(--mit-purple) 100%);
    position: relative;
}

.section-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 18%, rgba(242, 101, 34, 0.17), transparent 35%);
    pointer-events: none;
}

.section-dark .container {
    position: relative;
    z-index: 1;
}

.section-dark h2,
.section-dark h3 {
    color: #fff;
}

.section-dark p,
.section-dark li {
    color: #eadff3;
}

.section-neutral {
    background: linear-gradient(160deg, #f3f1ec 0%, #ece2dc 100%);
    color: var(--ink);
    position: relative;
}

.section-neutral::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 18%, rgba(242, 101, 34, 0.08), transparent 40%);
    pointer-events: none;
}

.section-neutral .container {
    position: relative;
    z-index: 1;
}

.section-neutral h2,
.section-neutral h3 {
    color: var(--mit-midnight-blue);
}

.section-neutral p,
.section-neutral li {
    color: #3a2f2a;
}

#call-for-papers p {
    font-size: 1.02rem;
}

#call-for-papers li {
    font-size: 0.98rem;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.theme-grid div {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(223, 203, 227, 0.36);
    border-radius: 10px;
    padding: 16px;
    font-size: 20px;
}

.track {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 20px rgba(25, 41, 85, 0.08);
    overflow: hidden;
}

.track summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    cursor: pointer;
    padding: 10px 20px;
    transition: background 0.2s ease;
}

.track summary::-webkit-details-marker {
    display: none;
}

.track summary::after {
    content: "+";
    font-size: 1.35rem;
    line-height: 1;
    color: var(--primary-strong);
    font-weight: 600;
}

.track[open] summary::after {
    content: "−";
}

.track summary:hover {
    background: rgba(223, 203, 227, 0.28);
}

.track h3 {
    margin-bottom: 0;
}

.track ul {
    list-style: none;
    padding: 0 22px 18px;
}

.track li {
    padding: 8px 0;
    border-bottom: 1px dashed #d7c5df;
}

.track li:last-child {
    border-bottom: 0;
}

#submission ul {
    list-style-position: inside;
}

.dates-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(25, 41, 85, 0.08);
}

.dates-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.dates-table th,
.dates-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #eadfcb;
    border-right: 1px solid #eadfcb;
    text-align: left;
    vertical-align: top;
}

.dates-table th:last-child,
.dates-table td:last-child {
    border-right: 0;
}

.dates-table tr:last-child td {
    border-bottom: 0;
}

.dates-table th {
    background: #fff6e4;
    color: var(--primary-strong);
    font-family: "Halyard Micro", "Allumi Std", sans-serif;
    font-size: 1.02rem;
}

.dates-table tbody tr:nth-child(even) {
    background: #fffdfa;
}

.registration-intro {
    margin-bottom: 18px;
    max-width: 980px;
}

.registration-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(25, 41, 85, 0.08);
}

.registration-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.registration-table th,
.registration-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #eadfcb;
    border-right: 1px solid #eadfcb;
    text-align: left;
    vertical-align: top;
}

.registration-table th:last-child,
.registration-table td:last-child {
    border-right: 0;
}

.registration-table tr:last-child td {
    border-bottom: 0;
}

.registration-table th {
    background: #fff6e4;
    color: var(--primary-strong);
    font-family: "Halyard Micro", "Allumi Std", sans-serif;
    font-size: 1.02rem;
}

.registration-table tbody tr:nth-child(even) {
    background: #fffdfa;
}

.registration-note {
    margin-top: 14px;
    font-size: 0.95rem;
}

.registration-contact {
    display: grid;
    grid-template-columns: minmax(190px, .75fr) minmax(0, 2fr);
    gap: 24px;
    align-items: center;
    margin-top: 28px;
    padding: 22px 24px;
    border: 1px solid rgba(102, 27, 33, .18);
    border-left: 5px solid var(--accent);
    border-radius: 14px;
    background: linear-gradient(135deg, #fff6e4, #fffdfa);
    box-shadow: 0 10px 24px rgba(25, 41, 85, .07);
}

.registration-contact-kicker,
.registration-contact-label {
    display: block;
    color: var(--primary-strong);
    font-size: .76rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.registration-contact-heading h3 {
    margin: 2px 0 0;
    color: var(--ink);
}

.registration-contact-details {
    display: grid;
    grid-template-columns: 1fr .75fr 1.5fr;
    gap: 18px;
    margin: 0;
    font-style: normal;
}

.registration-contact-item {
    min-width: 0;
}

.registration-contact-item strong,
.registration-contact-item a {
    color: var(--ink);
    font-weight: 700;
}

.registration-contact-item a {
    text-decoration-color: rgba(242, 101, 34, .55);
    text-underline-offset: 3px;
}

.registration-contact-item a:hover {
    color: var(--accent);
}

.registration-contact-email a {
    overflow-wrap: anywhere;
}

@media (max-width: 850px) {
    .registration-contact,
    .registration-contact-details {
        grid-template-columns: 1fr;
    }

    .registration-contact {
        gap: 16px;
    }

    .registration-contact-details {
        gap: 12px;
    }
}

.section-map {
    padding-top: 58px;
}

.map-wrapper {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: var(--mit-light-blue);
}

.map-wrapper iframe {
    width: 100%;
    height: min(58vh, 430px);
    border: none;
}

footer {
    background: var(--mit-midnight-blue);
    color: #f4ecf8;
    text-align: center;
    padding: 36px 0;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

footer p {
    color: #f4ecf8;
    margin-bottom: 4px;
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: var(--mit-brick-red);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(25, 41, 85, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
    z-index: 1200;
}

.back-to-top:hover {
    background: var(--mit-dawn-orange);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Effects */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Switch to the menu before the expanded navigation becomes crowded. */
@media (max-width: 1280px) {
    .navbar {
        padding: 0;
    }

    .nav-wrapper {
        padding: 14px 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 8px);
        left: 50%;
        width: min(560px, calc(100vw - 24px));
        max-height: calc(100vh - 92px);
        padding: 14px;
        overflow: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        transform: translate(-50%, -8px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        background: rgba(255, 250, 241, .98);
        border: 1px solid rgba(102, 27, 33, .16);
        border-radius: 14px;
        box-shadow: 0 20px 35px rgba(25, 41, 85, .16);
        text-align: left;
        transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(-50%, 0);
    }

    .nav-links a,
    .drop-toggle {
        width: 100%;
        padding: 12px 14px;
        border-radius: 10px;
        font-size: .95rem;
    }

    .nav-links a:hover,
    .drop-toggle:hover {
        background: #fff2db;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* Mobile */
@media (max-width: 768px) {
    section {
        padding: 72px 0;
    }

    .hero {
        padding-top: 100px;
    }

    .event-meta-grid,
    .countdown,
    .partner-logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .partner-logo-card {
        min-height: 140px;
    }

    .partner-logo-card img {
        height: 80px;
    }

    .navbar {
        padding: 0;
    }

    .nav-wrapper {
        padding: 14px 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 8px);
        left: 50%;
        width: 100vw;
        transform: translate(-50%, -8px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        background: rgba(255, 250, 241, 0.98);
        border: 1px solid rgba(102, 27, 33, 0.16);
        border-radius: 14px;
        box-shadow: 0 20px 35px rgba(25, 41, 85, 0.16);
        padding: 14px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        text-align: left;
        max-height: calc(100vh - 92px);
        overflow: auto;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(-50%, 0);
    }

    .nav-links a,
    .drop-toggle {
        width: 100%;
        padding: 12px 14px;
        border-radius: 10px;
    }

    .nav-links a:hover,
    .drop-toggle:hover {
        background: #fff2db;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        margin-top: 6px;
        min-width: 0;
        background: #fff9ed;
        border-radius: 10px;
        box-shadow: none;
        border: 1px solid #ead7be;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown.open .arrow {
        transform: rotate(180deg);
    }

    .back-to-top {
        right: 14px;
        bottom: 16px;
    }

    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 520px) {
    .partner-logos {
        grid-template-columns: 1fr;
    }
}

.text-deco {
    text-decoration: line-through;
}

/* ===================== Registration notes ===================== */
.reg-note-block {
    margin-top: 26px;
}

.reg-note-label {
    font-family: "Halyard Micro", "Allumi Std", sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: -0.01em;
    color: var(--primary-strong);
    margin-bottom: 10px;
}

.reg-note-block ol,
.reg-note-block ul {
    padding-left: 20px;
    color: var(--ink-muted);
}

.reg-note-block > ol {
    list-style: none;
    padding-left: 6px;
}

.reg-note-block > ol > li {
    position: relative;
    padding: 8px 0 8px 20px;
    border-bottom: 1px dashed #eadfcb;
    line-height: 1.6;
}

.reg-note-block > ol > li:last-child {
    border-bottom: 0;
}

.reg-note-block > ol > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
}

.reg-note-block ul {
    margin-top: 6px;
}

.reg-note-block ul li {
    padding: 3px 0;
    list-style: disc;
}

.reg-note-block ul li::marker {
    color: var(--primary-strong);
}

.reg-highlight {
    color: var(--accent);
    font-weight: 700;
}

#registration h3 {
    color: var(--primary-strong);
    margin-top: 8px;
}

.reg-charges {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    margin-bottom: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.reg-charges th,
.reg-charges td {
    padding: 10px 14px;
    border-bottom: 1px solid #eadfcb;
    text-align: left;
}

.reg-charges thead th {
    background: #fff6e4;
    color: var(--primary-strong);
    font-family: "Halyard Micro", "Allumi Std", sans-serif;
    font-weight: 600;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.reg-charges tbody tr:last-child td {
    border-bottom: 0;
}

.reg-charges td:last-child,
.reg-charges th:last-child {
    text-align: right;
}

.reg-footnote {
    font-size: .9rem;
    color: var(--ink-muted);
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.reg-footnote a {
    color: var(--primary-strong);
    font-weight: 600;
}

.host-orgs-label {
    margin-top: 28px;
    color: var(--mit-light-yellow);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    font-weight: 700;
    text-align: center;
}

.host-orgs {
    margin-top: 14px; /* was 28px — label above now carries that spacing */
}

.host-org-card {
    text-align: center;
}

.host-org-logo {
    display: block;
    width: 100%;
    max-width: 120px;
    height: 56px;
    object-fit: contain;
    margin: 0 auto 10px;
}

/* ===================== Global Experts ===================== */

.experts-grid {
    display: grid;
    gap: 24px;
    margin-top: 30px;
}

.expert-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 28px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(25, 41, 85, 0.08);
}

.expert-image img {
    width: 100%;
    max-width: 210px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 12px;
}

.expert-content h3 {
    font-size: 1.3rem;
    color: var(--primary-strong);
    margin-bottom: 8px;
}

.speaker-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.expert-role {
    font-weight: 700;
    color: var(--primary) !important;
    line-height: 1.6;
    margin-bottom: 16px;
}

.expert-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .expert-card {
        grid-template-columns: 1fr;
    }

    .expert-image img {
        max-width: 180px;
    }
}

/* ===================== Homepage Speakers ===================== */

.home-speakers-intro {
    max-width: 720px;
    margin-bottom: 30px;
}

.home-speakers-grid {
    display: grid;
    grid-template-columns: repeat(20, minmax(0, 1fr));
    grid-auto-rows: 320px;
    gap: 20px;
}

.speaker-carousel-controls {
    display: none;
}

.home-speaker-item {
    grid-column: span 4;
}

.home-speaker-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 22px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(25, 41, 85, .08);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.home-speaker-card:hover,
.home-speaker-card:focus-visible {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 15px 32px rgba(25, 41, 85, .14);
}

.home-speaker-card:focus-visible,
.speaker-modal-close:focus-visible {
    outline: 3px solid rgba(242, 101, 34, .35);
    outline-offset: 3px;
}

.home-speaker-photo {
    width: 118px;
    height: 118px;
    margin: 0 auto 17px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mit-midnight-blue), var(--mit-purple));
    color: #fff;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: .05em;
    box-shadow: 0 8px 20px rgba(25, 41, 85, .18);
}

.home-speaker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-speaker-card .speaker-label {
    margin-bottom: 6px;
    font-size: .65rem;
}

.home-speaker-name {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6em;
    margin: 0 0 7px;
    color: var(--primary-strong);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-speaker-summary {
    margin: 0;
    color: var(--primary);
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.4;
}

.speaker-details {
    display: none;
}

.speaker-modal {
    position: fixed;
    inset: 0;
    width: min(650px, calc(100% - 32px));
    height: 85vh;
    height: 85dvh;
    max-height: none;
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(14, 23, 52, .3);
}

.speaker-modal::backdrop {
    background: rgba(13, 20, 45, .72);
    backdrop-filter: blur(3px);
}

.speaker-modal-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 36px;
    overflow: hidden;
}

.speaker-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #fff3ed;
    color: var(--primary-strong);
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
}

.speaker-modal-profile {
    display: grid;
    grid-template-columns: 125px 1fr;
    gap: 24px;
    align-items: center;
    flex: 0 0 auto;
    padding-right: 32px;
}

.speaker-modal-profile .home-speaker-photo {
    width: 125px;
    height: 125px;
    margin: 0;
}

.speaker-modal-profile h3 {
    margin-bottom: 8px;
    color: var(--primary-strong);
    font-size: 1.5rem;
}

.speaker-modal-profile .expert-role {
    margin: 0;
}

.speaker-modal-copy {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 24px;
    padding-top: 20px;
    padding-right: 8px;
    overflow-y: auto;
    border-top: 1px solid var(--line);
    scrollbar-gutter: stable;
}

.speaker-modal-copy p:last-child {
    margin-bottom: 0;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 1199px) {
    .home-speakers-grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(250px, 42vw);
        overflow-x: auto;
        overflow-y: hidden;
        padding: 6px 4px 18px;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
    }

    .home-speaker-item {
        grid-column: auto;
        scroll-snap-align: start;
    }

    .speaker-carousel-controls {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        margin-top: 14px;
    }

    .speaker-carousel-button {
        width: 44px;
        height: 44px;
        border: 1px solid var(--line);
        border-radius: 50%;
        background: #fff;
        color: var(--primary-strong);
        font-size: 1.35rem;
        line-height: 1;
        cursor: pointer;
        box-shadow: 0 6px 15px rgba(25, 41, 85, .1);
    }

    .speaker-carousel-button:hover:not(:disabled),
    .speaker-carousel-button:focus-visible {
        border-color: var(--accent);
        color: var(--accent);
    }

    .speaker-carousel-button:disabled {
        opacity: .35;
        cursor: default;
    }
}

@media (max-width: 540px) {
    .home-speakers-grid {
        grid-auto-columns: minmax(245px, 84vw);
    }

    .speaker-modal-inner {
        padding: 54px 24px 28px;
    }

    .speaker-modal {
        width: calc(100% - 24px);
    }

    .speaker-modal-profile {
        grid-template-columns: 1fr;
        padding-right: 0;
        text-align: center;
    }

    .speaker-modal-profile .home-speaker-photo {
        margin: 0 auto;
    }
}

/* ===================== Event Schedule ===================== */

.program-schedule-intro {
    margin-top: -12px;
    color: rgba(255, 255, 255, .78) !important;
}

.schedule-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(620px, 100%);
    gap: 10px;
    margin: 30px 0;
    padding: 6px;
    border: 1px solid rgba(223, 203, 227, .3);
    border-radius: 14px;
    background: rgba(255, 255, 255, .07);
}

.schedule-tab {
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, .76);
    font: inherit;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.schedule-tab span {
    display: block;
    margin-bottom: 2px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.schedule-tab:hover,
.schedule-tab:focus-visible {
    color: #fff;
}

.schedule-tab:focus-visible {
    outline: 3px solid rgba(255, 239, 207, .45);
    outline-offset: 2px;
}

.schedule-tab.active {
    background: var(--mit-light-yellow);
    color: var(--primary-strong);
    box-shadow: 0 7px 18px rgba(8, 15, 39, .2);
}

.schedule-panel[hidden] {
    display: none;
}

.schedule-subitems {
    display: grid;
    gap: 9px;
    margin: 12px 0 0;
    padding-left: 20px;
}

.schedule-subitems li {
    padding-left: 3px;
    line-height: 1.55;
}

.schedule-subitems li::marker {
    color: var(--mit-light-yellow);
}

.schedule-resource-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.schedule-resource-links a {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid rgba(255, 239, 207, .45);
    border-radius: 999px;
    color: var(--mit-light-yellow);
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.schedule-resource-links a:hover,
.schedule-resource-links a:focus-visible {
    background: var(--mit-light-yellow);
    color: var(--primary-strong);
}

.schedule-date {
    color: var(--mit-light-yellow) !important;
    font-weight: 700;
    margin-bottom: 28px;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-item {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 20px;
    padding: 20px 22px;
    border: 1px solid rgba(223, 203, 227, .3);
    border-radius: 12px;
    background: rgba(255,255,255,.07);
}

.schedule-time {
    color: var(--mit-light-yellow);
    font-weight: 700;
}

.schedule-info h3 {
    color: #fff !important;
    margin-bottom: 5px;
}

.schedule-info p {
    color: rgba(255,255,255,.78) !important;
    margin: 5px 0;
}

@media (max-width: 700px) {
    .schedule-tabs {
        grid-template-columns: 1fr;
    }

    .schedule-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

.submission-guidelines {
    margin: 20px 0 30px 22px;
    color: rgba(255,255,255,.85);
}

.submission-guidelines li {
    margin-bottom: 12px;
}

.resource-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 18px 0 28px;
}

.poster-dimension-note {
    padding: 18px 20px;
    border-left: 4px solid var(--accent);
    background: rgba(255,255,255,.08);
    border-radius: 0 10px 10px 0;
    color: rgba(255,255,255,.85);
}

/* ===================== Speaker Biography ===================== */

.expert-bio {
    margin-top: 16px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.expert-bio summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--accent);
    font-size: .9rem;
    font-weight: 700;
    list-style: none;
    user-select: none;
}

.expert-bio summary::-webkit-details-marker {
    display: none;
}

.expert-bio summary::after {
    content: "+";
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff3ed;
    color: var(--accent);
    font-size: 1rem;
    transition: transform .2s ease;
}

.expert-bio[open] summary::after {
    content: "−";
}

.expert-bio-content {
    padding-top: 18px;
}

.expert-bio-content p {
    font-size: .92rem;
    line-height: 1.7;
}

.expert-bio-content p:last-child {
    margin-bottom: 0;
}
