:root {
    --primary-color: #F58025;
    /* Princeton Orange */
    --primary-text: #C4600F;
    --secondary-color: #000000;
    /* Black */
    --text-color: #333333;
    --background-color: #FFFFFF;
    --light-gray: #F8F9FA;
    --dark-gray: #222222;
    --white: #FFFFFF;
    --font-main: 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-speed: 0.3s;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

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

[hidden] {
    display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

html {
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 2px;
}

ul {
    list-style: none;
}

/* Header & Nav */
header {
    background-color: rgba(0, 0, 0, 0.95);
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-color);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-links {
    display: flex;
    gap: clamp(0.8rem, 2vw, 2rem);
    align-items: center;
}

.nav-links a {
    font-weight: 400;
    font-size: 0.95rem;
    opacity: 0.9;
}

.nav-links a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.nav-links a.active {
    color: var(--primary-color);
    opacity: 1;
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.65) 100%), url('images/nassau_hall_autumn.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 8rem 1.5rem 3rem;
    max-width: 100%;
    /* Override section max-width */
    margin: 0;
    /* Override section margin */
}

.feedback-callout {
    padding: 2rem 1.5rem 0;
    text-align: center;
}

.feedback-button {
    display: inline-block;
    padding: 0.8rem 1.75rem;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 700;
}

.feedback-button:hover {
    background-color: #ff9b4d;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -2px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero .hero-subtitle {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--primary-color);
    margin: 0 0 1rem;
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    max-width: 900px;
    margin-bottom: 1.5rem;
    font-weight: 400;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(245, 128, 37, 0.4);
    transition: all var(--transition-speed);
}

.btn:hover {
    background-color: #d46a1a;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 128, 37, 0.6);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (prefers-reduced-motion: no-preference) {
    @keyframes heroFade {
        from {
            opacity: 0;
            transform: translateY(16px);
        }
        to {
            opacity: 1;
            transform: none;
        }
    }

    .hero h1 {
        animation: heroFade 0.7s ease-out both;
        animation-delay: 0s;
    }

    .hero .hero-subtitle {
        animation: heroFade 0.7s ease-out both;
        animation-delay: 0.1s;
    }

    .hero p {
        animation: heroFade 0.7s ease-out both;
        animation-delay: 0.2s;
    }

    .hero-buttons {
        animation: heroFade 0.7s ease-out both;
        animation-delay: 0.3s;
    }
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

/* Sections */
section {
    padding: 2.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    margin-bottom: 4rem;
    color: var(--secondary-color);
    position: relative;
    font-weight: 700;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 6px;
    background-color: var(--primary-color);
    margin: 1.5rem auto 0;
    border-radius: 3px;
}

/* Attendee information */
.attendee-info {
    padding-top: 3rem;
}

.attendee-info .section-title,
.poster-info .section-title,
.old-info .section-title {
    margin-bottom: 1.5rem;
}

.attendee-intro {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.15rem;
}

.attendee-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1.75rem;
    margin: 1.5rem 0 2.5rem;
}

.attendee-info a:not(.map-button),
.poster-info a,
.archive-content a:not(.btn) {
    color: var(--primary-text);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.venue-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #e1e3e5;
    border-radius: 16px;
    overflow: hidden;
    background: var(--light-gray);
}

.venue-info {
    padding: 2rem;
}

.eyebrow {
    color: var(--primary-text);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.venue-info h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1.25rem;
}

.venue-name {
    font-size: 1.4rem;
    font-weight: 700;
}

.venue-info address {
    font-style: normal;
    margin-bottom: 1rem;
}

.map-note {
    margin-top: 1rem;
    padding: 1rem;
    border-left: 3px solid var(--primary-color);
    background: #fff1e5;
    font-size: 0.95rem;
}

.map-button {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 1.5rem;
}

.map-button:hover {
    background: var(--primary-text);
}

.campus-map-link {
    display: block;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.venue-map,
.arrival-map {
    display: block;
    width: 100%;
    border: 0;
    background: #e8ecef;
}

.venue-map {
    height: 100%;
    min-height: 440px;
}

.arrival-heading {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin: 2.5rem 0 1.25rem;
}

.arrival-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.arrival-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e1e3e5;
    border-top: 4px solid var(--primary-color);
    border-radius: 16px;
    overflow: hidden;
}

.arrival-copy {
    flex: 1;
    padding: 1.75rem;
}

.arrival-copy h4,
.accessibility-note h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.arrival-copy p + p {
    margin-top: 1rem;
}

.route-links {
    margin-top: 1.5rem;
}

.route-links li + li {
    margin-top: 0.75rem;
}

.arrival-map {
    height: 280px;
}

.accessibility-note {
    margin-top: 2rem;
    padding: 1.5rem 1.75rem;
    border-left: 4px solid var(--primary-color);
    background: var(--light-gray);
}

.poster-info {
    background: var(--light-gray);
    border-radius: 16px;
}

.poster-info > p {
    max-width: 780px;
    margin: 1rem auto 0;
    font-size: 1.15rem;
    text-align: center;
}

.poster-lookup-heading {
    margin: 2.5rem 0 0.5rem;
    font-size: 1.6rem;
    color: var(--secondary-color);
}

.poster-info > .poster-session-help {
    max-width: none;
    margin: 0 0 1.5rem;
    font-size: 1rem;
    text-align: left;
}

.poster-search-controls {
    margin-bottom: 1.5rem;
}

.poster-search-controls label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.poster-search-row {
    display: flex;
    gap: 0.75rem;
}

#poster-search {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #aaa;
    border-radius: 8px;
    font: inherit;
    background: var(--white);
    color: var(--text-color);
}

#poster-search-clear {
    padding: 0.8rem 1rem;
    border: 1px solid #aaa;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    color: var(--text-color);
    background: var(--white);
    cursor: pointer;
}

#poster-search-clear:disabled {
    color: #777;
    cursor: default;
}

#poster-search-clear:hover:not(:disabled) {
    border-color: var(--primary-text);
    color: var(--primary-text);
}

#poster-search-count {
    margin-top: 0.5rem;
    color: #555;
    font-size: 0.95rem;
}

.poster-info > .poster-search-empty {
    max-width: none;
    padding: 1.25rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    text-align: left;
    background: var(--white);
}

.poster-session {
    margin-top: 1rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: var(--white);
}

.poster-session summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    list-style: none;
    cursor: pointer;
}

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

.poster-session summary::before {
    content: '\25B8';
    color: var(--primary-text);
    font-size: 1.3rem;
}

.poster-session[open] summary::before {
    transform: rotate(90deg);
}

.poster-session[open] summary {
    border-bottom: 1px solid #ddd;
}

.poster-session-label {
    flex: 1;
    font-size: 1rem;
}

.poster-session-time {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.poster-session-count {
    color: #555;
    font-size: 0.9rem;
    text-align: right;
}

.poster-list {
    list-style: none;
}

.poster-entry {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    align-items: start;
    gap: 1.25rem;
    padding: 1.25rem;
    border-bottom: 1px solid #eee;
}

.poster-entry:last-child {
    border-bottom: 0;
}

.poster-board {
    padding: 0.5rem;
    border-radius: 8px;
    background: #fff1e5;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-color);
}

.poster-board strong {
    display: block;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.poster-title {
    font-size: 1.05rem;
    line-height: 1.45;
    color: var(--secondary-color);
    overflow-wrap: anywhere;
}

.poster-authors {
    margin-top: 0.4rem;
    font-size: 0.95rem;
    color: #555;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .poster-session summary {
        padding: 1rem;
        gap: 0.6rem;
    }

    .poster-session-count {
        max-width: 4rem;
    }

    .poster-entry {
        grid-template-columns: 3.25rem minmax(0, 1fr);
        gap: 0.75rem;
        padding: 1rem;
    }
}

/* Archived information */
.old-info {
    border-top: 1px solid #e1e3e5;
    margin-top: 2rem;
}

.archive-panel {
    margin-bottom: 1rem;
    border: 1px solid #e1e3e5;
    border-radius: 12px;
    background: var(--light-gray);
}

.archive-panel summary {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
}

.archive-panel summary h3 {
    display: inline;
    margin-left: 0.5rem;
    font-size: 1.15rem;
}

.archive-content {
    padding: 0 1.5rem 1.5rem;
}

.archive-content p + p {
    margin-top: 1rem;
}

.archive-content h4 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.archive-content .btn {
    background: var(--secondary-color);
    box-shadow: none;
    font-size: 0.85rem;
    padding: 0.8rem 1.5rem;
}

/* Participation */
.participation {
    background-color: var(--light-gray);
    border-radius: 24px;
    padding: 4rem 2rem;
}

.participation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.participation-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border-top: 4px solid var(--primary-color);
}

.participation-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.participation-card p {
    font-size: 1.05rem;
    color: #555;
}

.participation-details {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border-top: 4px solid var(--primary-color);
    margin-top: 3rem;
}

.participation-details h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.participation-details p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 1rem;
}

.participation-details ul {
    font-size: 1.05rem;
    color: #555;
    list-style-type: disc;
    margin: 0 0 1rem 1.5rem;
}

.participation-details a:not(.btn) {
    color: var(--primary-text);
    font-weight: 700;
}

.participation-details a:not(.btn):hover {
    text-decoration: underline;
}

/* Speakers */
.speaker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.speaker-card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.speaker-img {
    width: 100%;
    height: 280px;
    background-color: #e0e0e0;
    object-fit: cover;
}

.speaker-info {
    padding: 2rem;
}

.speaker-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.speaker-name a:hover {
    color: var(--primary-text);
}

.speaker-card-tba {
    border: 1px dashed #ccc;
    box-shadow: none;
}

.speaker-img-tba {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f2f3f5 0%, #e4e6e9 100%);
    color: #b8bcc2;
    font-size: 4.5rem;
    font-weight: 700;
}

.speaker-title {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.speaker-affil {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-text);
}

/* Schedule */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: var(--white);
    box-shadow: var(--card-shadow);
    border-radius: 12px;
    overflow: hidden;
}

.schedule-table th,
.schedule-table td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.schedule-table th {
    background-color: var(--secondary-color);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.schedule-table tr:hover {
    background-color: #f3f4f6;
}

.schedule-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.schedule-table small {
    color: #666;
}

.schedule-table tr.highlight td {
    border-left: none;
}

.schedule-table tbody tr.highlight {
    box-shadow: inset 4px 0 0 var(--primary-color);
    background-color: rgba(245, 128, 37, 0.05);
}

.schedule-table a {
    color: var(--primary-text);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.program-table td {
    vertical-align: top;
}

.program-table th:first-child,
.program-table td:first-child {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.schedule-detail {
    margin-top: 0.35rem;
    color: #555;
    font-size: 0.95em;
}

.schedule-speakers a {
    display: inline-block;
    font-weight: 400;
}

.schedule-label {
    margin: 0 0 0.4rem;
    color: var(--primary-text);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.schedule-talk-title {
    margin: 0;
    max-width: 65ch;
    font-size: 1rem;
    line-height: 1.4;
    text-wrap: pretty;
}

.schedule-speaker {
    margin-top: 0.6rem;
}

.schedule-speaker a {
    color: inherit;
    font-weight: 500;
}

.schedule-speaker span {
    display: inline-block;
}

/* Logistics / Travel */
.logistics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

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

.logistics-card {
    background-color: var(--light-gray);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.logistics-card-wide {
    grid-column: 1 / -1;
}

.logistics-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid rgba(245, 128, 37, 0.2);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.logistics-card a {
    color: var(--primary-text);
    font-weight: 700;
}

.logistics-card a:hover {
    text-decoration: underline;
}

.after-party-address {
    margin: 1rem 0;
}

/* Committee */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.committee-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    text-align: center;
    border: 1px solid #eee;
}

.card-role {
    background: var(--secondary-color);
    color: var(--primary-color);
    font-size: 0.75rem;
    padding: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.committee-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 1.5rem auto 1rem;
    object-fit: cover;
    object-position: top;
    border: 3px solid var(--primary-color);
    padding: 3px;
}

.card-info {
    padding: 0 1.5rem 1.5rem;
}

.card-info a {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.2rem;
}

.card-info a:hover {
    color: var(--primary-text);
}

.card-info p {
    font-size: 0.9rem;
    color: #666;
}

/* Sponsors */
.sponsors-intro {
    text-align: center;
    font-size: 1.15rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.sponsor-logo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.sponsor-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    padding: 1.75rem 2.5rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.sponsor-logo-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.sponsor-logo-link img {
    height: 52px;
    width: auto;
    max-width: min(220px, 100%);
    object-fit: contain;
}

.sponsor-logo-link img[alt="Field AI"] {
    height: 36px;
}

.sponsor-logo-link img[alt="Chewy"] {
    height: 44px;
}

.sponsor-logo-link img[alt="Robotics and AI Institute"] {
    height: 40px;
}

.sponsor-logo-lockup {
    gap: 0.85rem;
}

.sponsor-logo-lockup img {
    height: 46px;
}

.sponsor-logo-lockup span {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--secondary-color);
    white-space: nowrap;
}

.sponsor-princeton {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
    max-width: 800px;
    margin: 0 auto;
}

.sponsor-princeton-shield {
    height: 110px;
    width: auto;
    flex-shrink: 0;
}

.sponsor-princeton-info h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.sponsor-princeton-info p {
    color: #555;
    margin-bottom: 1rem;
}

.sponsor-unit-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
}

.sponsor-unit-list a {
    display: inline-block;
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    padding: 0.35rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    transition: color var(--transition-speed), border-color var(--transition-speed);
}

.sponsor-unit-list a:hover {
    color: var(--primary-text);
    border-color: var(--primary-color);
}

/* Past NERCs */
.past-nercs {
    background-color: var(--light-gray);
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
}

.past-hosts-list ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1.5rem;
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
}

.past-hosts-list li {
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.past-hosts-list li strong {
    color: var(--primary-text);
}

/* Footer */
footer {
    background: linear-gradient(to right, #000 0%, #1a1a1a 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 5px solid var(--primary-color);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
}

/* Mobile and Tablet Styles */
@media (max-width: 768px) {
    section {
        padding: 2.5rem 1.5rem;
    }

    .venue-panel,
    .arrival-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .venue-info,
    .arrival-copy {
        padding: 1.5rem;
    }

    .venue-map {
        height: 320px;
        min-height: 0;
    }

    .archive-content {
        padding: 0 1rem 1rem;
    }

    .archive-content .participation-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .archive-content .participation-card,
    .archive-content .participation-details {
        padding: 1rem;
    }

    .archive-content .btn {
        padding: 0.8rem 1rem;
    }

    .participation,
    .past-nercs {
        padding: 2.5rem 1.5rem;
    }

    .participation-grid,
    .speaker-grid,
    .committee-grid {
        gap: 1.5rem;
    }

    .participation-card,
    .participation-details,
    .logistics-card {
        padding: 1.75rem;
    }

    .sponsor-logo-grid {
        gap: 1.25rem;
    }

    .sponsor-logo-link {
        padding: 1.25rem 0.75rem;
    }

    .sponsor-logo-link img {
        height: 40px;
        max-width: min(180px, 100%);
    }

    .sponsor-logo-link img[alt="Field AI"] {
        height: 28px;
    }

    .sponsor-logo-link img[alt="Chewy"] {
        height: 34px;
    }

    .sponsor-logo-link img[alt="Robotics and AI Institute"] {
        height: 31px;
    }

    .sponsor-logo-lockup img {
        height: 36px;
    }

    .sponsor-logo-lockup span {
        font-size: 1.05rem;
    }

    .sponsor-princeton {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.75rem;
    }

    .sponsor-unit-list {
        justify-content: center;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
    }

    /* Mobile Navigation */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Dropdown directly below fixed header */
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(10px);
        border-bottom: 3px solid var(--primary-color);
        padding: 2rem 0;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        transform: translateY(-150%);
        opacity: 0;
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease;
        pointer-events: none;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1.1rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }

    .nav-links .nav-cta {
        display: inline-block;
    }

    /* Hamburger Animation to 'X' */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
        background-color: var(--primary-color);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
        background-color: var(--primary-color);
    }

    .hero {
        background-image: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.65) 100%), url('images/nassau_hall_autumn_mobile.jpg');
    }
}

/* Custom classes for NERC 2026 */
.skip-link {
    position: absolute;
    top: -1000px;
    left: 0;
    z-index: 2000;
}

.skip-link:focus {
    top: 0;
    left: 0;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 1.5rem;
    z-index: 2000;
}

.btn-row {
    text-align: center;
    margin: 2.5rem 0 1.5rem;
}

.text-center-note {
    text-align: center;
    margin-bottom: 2rem;
}

.hotel-list {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.contact-note {
    text-align: center;
    margin-top: 3rem;
}

.text-center-note a,
.contact-note a,
.participation p a:not(.btn) {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
    transition: color var(--transition-speed);
}

.text-center-note a:hover,
.contact-note a:hover,
.participation p a:not(.btn):hover {
    color: var(--secondary-color);
}

.schedule-table th:first-child,
.schedule-table td:first-child {
    width: 20%;
}

.reg-table {
    max-width: 520px;
    margin: 0 auto 1.5rem;
}

.reg-table td:last-child {
    font-weight: 700;
}

.reg-table th:first-child,
.reg-table td:first-child {
    width: 60%;
}

/* Navigation pill custom styling */
.nav-links .nav-cta {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-weight: 700;
}

.nav-links a.nav-cta:hover {
    background-color: #d46a1a;
    color: var(--white);
    opacity: 1;
}

/* Registration section styling */
.reg-intro {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #444;
}

/* Unified card hover effects */
.participation-card,
.speaker-card,
.committee-card,
.logistics-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .participation-card:hover,
    .speaker-card:not(.speaker-card-tba):hover,
    .committee-card:hover,
    .logistics-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--card-hover-shadow);
    }
}

/* Back-to-top button styling */
#back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Scroll reveal styles */
@media (prefers-reduced-motion: no-preference) {
    html.js section {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    html.js section.revealed {
        opacity: 1;
        transform: none;
    }

    html.js section.hero {
        opacity: 1;
        transform: none;
    }
}

/* Footer Tagline and Links */
.footer-tagline {
    color: #888;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-tagline a {
    color: #aaa;
    text-decoration: none;
}

.footer-tagline a:hover {
    text-decoration: underline;
}

/* Key Dates Section Styling */
.dates {
    background-color: var(--white);
}

.key-dates-table {
    max-width: 800px;
    margin: 0 auto;
}

/* Custom column sizing for Key Dates table */
.key-dates-table th:first-child,
.key-dates-table td:first-child {
    width: 140px;
}

.key-dates-table td:first-child {
    font-weight: 700;
    color: var(--primary-color);
}

.key-dates-table th:nth-child(2),
.key-dates-table td:nth-child(2) {
    width: 240px;
    font-weight: 700;
}

.key-dates-table tr.highlight td:first-child {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .key-dates-table th:first-child,
    .key-dates-table td:first-child {
        width: auto;
    }

    .key-dates-table th:nth-child(2),
    .key-dates-table td:nth-child(2) {
        width: auto;
    }
}
