/* ============================================================
   program.css — styles for the program page
   All classes prefixed prog- to avoid jQuery Mobile conflicts.
   Color palette from style.css:
     teal   #007896  darker #005f78
     yellow #ffcc00
     green  #009682

     Now use 275D38 as the primary color
   ============================================================ */

/* ── Day tabs ─────────────────────────────────────────────── */
.prog-day-tabs {
    display: flex;
    background: #275D38;
    padding: 0 0 0 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 14px;
    border-radius: 6px 6px 0 0;
}

.prog-day-tab {
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color 0.15s;
    user-select: none;
}

.prog-day-tab:hover {
    color: #fff;
}

.prog-day-tab.active {
    color: #fff;
    border-bottom-color: #ffcc00;
}

.prog-day-tab small {
    font-size: 10px;
    opacity: 0.75;
    margin-left: 4px;
}

/* ── Grid legend ─────────────────────────────────────────── */
.prog-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 11px;
    margin-bottom: 12px;
    color: #555;
}

/* ── View toggle — sliding pill segmented control ─────────── */
.prog-view-toggle {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    position: relative;
    background: #b7e1c4;
    border: 1px solid #275D38;
    border-radius: 100px;
    padding: 3px;
    flex-shrink: 0;
    gap: 0;
}

/* Animated sliding pill (positioned by JS on init/switch) */
.prog-view-pill {
    position: absolute;
    top: 3px;
    left: 3px;
    height: calc(100% - 6px);
    background: #275D38;
    border-radius: 100px;
    transition: left 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(0,120,150,0.30);
    pointer-events: none;
    z-index: 0;
}

.prog-view-btn {
    position: relative;
    z-index: 1;
    display: inline-block;
    border-radius: 100px;
    padding: 5px 14px;
    cursor: pointer;
    color: #275D38;
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.02em;
    white-space: nowrap;
    line-height: 1.4;
    transition: color 0.18s ease;
    -webkit-user-select: none;
    user-select: none;
}

.prog-view-btn:hover {
    color: #122b1a;
}

.prog-view-btn--active {
    color: #fff;
}

.prog-view-btn--active:hover {
    color: #e2f3e8;
}

.prog-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.prog-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* ── Grid layout ─────────────────────────────────────────── */
.prog-grid-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 4px;
    cursor: grab;
}

.prog-grid-wrap:active {
    cursor: grabbing;
}

/* Multi-track (workshop) days: fixed track width so grid overflows and scrolls */
.prog-multi-track .prog-grid-wrap {
    scroll-behavior: smooth;
}

/*
 * Without width: max-content, the flex container defaults to the parent's width
 * and clips the overflow (due to overflow:hidden for border-radius).
 * max-content makes it expand to fit all tracks, so the wrapper can scroll.
 */
.prog-multi-track .prog-grid {
    width: max-content;
}

.prog-multi-track .prog-track {
    flex: 0 0 240px;
    min-width: 240px;
}

/* Room view grid — JS sets track widths via adjustRoomGrid() */
.prog-room-grid .prog-track {
    min-width: 220px;
}

.prog-grid {
    display: flex;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    min-width: 340px;
    position: relative;   /* anchor for .prog-spanning-layer */
}

/* Time ruler column */
.prog-time-ruler {
    width: 56px;
    flex-shrink: 0;
    background: #fafafa;
    /* No border-right here — every .prog-track carries its own border-left so
       the separator is DOM-order-independent and survives column drag-reorder. */
    position: relative;
}

.prog-time-ruler-header {
    height: 50px;
    box-sizing: border-box;    /* border included in height so ruler aligns with track headers */
    background: #333;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #555;
}

.prog-time-ruler-body {
    position: relative;
}

.prog-hour-tick {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px solid #ddd;
    display: flex;
    align-items: flex-start;
    padding-top: 3px;
    padding-left: 4px;
}

.prog-hour-tick span {
    font-size: 10px;
    color: #888;
    white-space: nowrap;
}

.prog-half-tick {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px dashed #eee;
    pointer-events: none;
}

/* Track column */
.prog-track {
    flex: 1 0 180px;
    display: flex;
    flex-direction: column;
    min-width: 180px;
    border-left: 1px solid #e8e8e8;
}



.prog-track-header {
    height: 50px;
    background: #275D38;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 8px;
    text-align: center;
}

.prog-track-body {
    position: relative;
    overflow: hidden;
}

/* ── Scrollable inner wrapper for regular event blocks ───────────────────
   Content scrolls silently via JS (no visible scrollbar).
   `flex: 1; min-height: 0` fills remaining block height inside the flex
   column without expanding the block itself.                              */
.prog-event-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;    /* Firefox */
    -ms-overflow-style: none; /* IE / Edge */
    /* No padding-bottom: maxScroll = scrollHeight - clientHeight already
       stops exactly when the last text line reaches the bottom edge. */
}

.prog-event-scroll::-webkit-scrollbar { display: none; }

/* Subtle bottom-fade indicates more content below when auto-scrolling */
.prog-event--scrollable::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.55));
    pointer-events: none;
    z-index: 2;
}

/* Background hour/half-hour grid lines */
.prog-track-bg-grid {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    pointer-events: none;
    z-index: 0;
    /*
     * PX_PER_MIN = 1.5 → 90px per hour, 45px per half-hour.
     * Hour ticks have border-top at y = 0, 90, 180 … so the solid
     * gradient line must also start at those multiples (0px in period).
     * Half-hour ticks sit at y = 45, 135 … → line at 45px in the period.
     * Both gradients use a 90px period so they stay in phase.
     */
    background-image:
        repeating-linear-gradient(
            to bottom,
            #dddddd 0px,
            #dddddd 1px,
            transparent 1px,
            transparent 90px
        ),
        repeating-linear-gradient(
            to bottom,
            transparent 0px,
            transparent 45px,
            #eeeeee 45px,
            #eeeeee 46px,
            transparent 46px,
            transparent 90px
        );
}

/* Event blocks */
.prog-event {
    position: absolute;
    left: 3px;
    right: 3px;
    border-radius: 0px;
    padding: 5px 8px;
    font-size: 11px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
    box-sizing: border-box;
    cursor: pointer;        /* all events are clickable */
}

/* Spanning events (breaks/lunch that cross all workshop columns) */
.prog-spanning-layer {
    position: absolute;
    left: 57px;             /* ruler 56px + 1px border */
    right: 0;
    top: 0;                 /* JS sets this to the actual header offsetHeight after render */
    bottom: 0;
    pointer-events: none;
    z-index: 4;
}

.prog-event--spanning {
    left: 4px;
    right: 4px;
    pointer-events: all;
    background: rgba(230, 230, 230, 0.93) !important;
    color: #555 !important;
    /* No flex centering — JS positions .prog-event-spanning-inner instead */
    overflow: hidden;
}

/* Inner label div whose `left` is driven by JS to stay centred in the
   scrollable viewport regardless of horizontal scroll position.        */
.prog-event-spanning-inner {
    position: absolute;
    top: 50%;
    /* `left` is set dynamically by JS; start centred for the no-scroll case */
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    pointer-events: none; /* clicks fall through to the block → opens modal */
}

.prog-event-spanning-inner .prog-event-title {
    font-weight: 600;
    font-size: 11px;
}

.prog-event-spanning-inner .prog-event-time {
    font-size: 10px;
    opacity: 0.65;
    flex-shrink: 0;
}

.prog-modal-body p {
    color: #666;
    font-size: 13px;
    margin-bottom: 0;
}

.prog-modal-body p a {
    color: #275D38;
	text-decoration: none;
	font-weight: bold;
	transition: 0.3s ease;
}

.underline-link {
    color: #275d38 !important;
    text-decoration: none !important;
    cursor: pointer;
    font-weight: bold !important;
    transition: 0.3s ease;
}

.underline-link:hover {
    color: #275d38;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

.prog-modal-body p a:hover {
    color: #275d38;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}

.paper-list-item__inner p a {
    color: #275D38 !important;
	text-decoration: none;
	font-weight: bold !important;
	transition: 0.3s ease;
}

.paper-list-item__inner p a:hover {
    color: #275d38;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}

/* Google Calendar button — absolutely positioned bottom-right of every block */
.prog-gcal-btn {
    position: absolute;
    bottom: 3px;
    right: 4px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 5px;
    font-size: 9px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 3px;
    backdrop-filter: blur(2px);
}

.prog-event:hover .prog-gcal-btn {
    opacity: 1;
    pointer-events: all;
}

.prog-gcal-btn:hover {
    text-decoration: underline;
}

/* On compact blocks the label would overlap content — hide text, keep icon only */
.prog-event--compact .prog-gcal-text {
    display: none;
}

.prog-event--compact .prog-gcal-btn {
    padding: 2px 3px;
    background: rgba(255, 255, 255, 0.88);
}

.prog-event-time {
    font-size: 10px;
    opacity: 0.72;
}

.prog-event-title {
    font-weight: 600;
    line-height: 1.3;
}

.prog-event-sub {
    font-size: 10px;
    opacity: 0.78;
    margin-bottom: 2px;
}

.prog-event-badge {
    display: inline-block;
    font-size: 9px;
    background: rgba(0, 0, 0, 0.1);
    padding: 1px 5px;
    border-radius: 3px;
    margin-top: 4px;
    align-self: flex-start;
}

/* Event type colours */
.prog-evt-break {
    background: rgba(240, 240, 240, 0.95);
    color: #666;
}

.prog-evt-keynote {
    background: rgba(219, 234, 254, 0.97);
    color: #1e40af;
    border-left: 3px solid #3b82f6;
}

.prog-evt-session {
    background: rgba(255, 243, 205, 0.97);
    color: #7c5a00;
    border-left: 3px solid #ffcc00;
}

.prog-evt-social {
    background: rgba(209, 250, 229, 0.97);
    color: #065f46;
    border-left: 3px solid #009682;
}

.prog-evt-award {
    background: rgba(254, 226, 226, 0.97);
    color: #991b1b;
    border-left: 3px solid #ef4444;
}

.prog-evt-poster {
    background: rgba(255, 237, 213, 0.97);
    color: #7c2d12;
    border-left: 3px solid #f97316;
}

.prog-evt-workshop {
    background: rgba(237, 233, 254, 0.97);
    color: #4c1d95;
    border-left: 3px solid #7c3aed;
}

.prog-event:hover {
    filter: brightness(0.93);
}

/* Current-time indicator */
.prog-now-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #ef4444;
    z-index: 10;
    pointer-events: none;
}

.prog-now-line::before {
    content: '';
    position: absolute;
    left: -1px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
}

/* ── Modal ───────────────────────────────────────────────── */
.prog-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.48);
    z-index: 9000;
    align-items: center;
    justify-content: center;
}

.prog-modal-overlay.prog-modal-open {
    display: flex;
}

.prog-modal-box {
    background: #fff;
    border-radius: 10px;
    max-width: 600px;
    width: 94%;
    max-height: 82vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.28);
    border-top: 5px solid #275D38;
}

.prog-modal-header {
    padding: 16px 20px 10px;
    border-bottom: 1px solid #eee;
}

.prog-modal-header h3 {
    font-size: 16px;
    color: #275D38;
    margin: 0;
    padding-right: 28px;
    line-height: 1.3;
}

.prog-modal-meta {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.prog-modal-close {
    float: right;
    cursor: pointer;
    color: #aaa;
    font-size: 22px;
    line-height: 1;
    margin-left: 10px;
}

.prog-modal-close:hover {
    color: #333;
}

.prog-modal-body {
    padding: 0px 20px 20px;
}

/* Organizers section inside modal body */
.prog-modal-organizers {
    margin-bottom: 14px;
    margin-top: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef0ec;
}
.prog-modal-org-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #275D38;
    margin-bottom: 5px;
}
.prog-modal-organizer {
    font-size: 13px;
    line-height: 1.6;
    color: #222;
}
.prog-modal-org-affil {
    color: #666;
}

/* Paper items inside modal */
.prog-modal-paper {
    padding: 9px 0;
    border-bottom: 1px solid #f0f0f0;
}

.prog-modal-paper:last-child {
    border-bottom: none;
}

.prog-modal-paper-title {
    font-size: 13px;
    font-weight: 600;
    color: #275D38;
    cursor: pointer;
    line-height: 1.4;
}

.prog-modal-paper-title:hover {
    text-decoration: none;
}

.prog-modal-paper-authors {
    font-size: 11px;
    color: #666;
    margin-top: 3px;
}

.prog-modal-abstract {
    display: none;
    font-size: 12px;
    color: #444;
    margin-top: 7px;
    line-height: 1.55;
    background: #fafafa;
    border-left: 3px solid #ccc;
    padding: 7px 10px;
    border-radius: 3px;
}

.prog-modal-abstract.prog-abs-open {
    display: block;
}

/* ── Shared badge base (type + award) ────────────────────────
   Both classes inherit these properties so sizing and alignment
   are always consistent, in the modal and in list contexts.      */
.prog-paper-type-badge,
.prog-award-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    padding: 3px 7px;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1.4;
}

/* Type badge colors in the program modal */
.prog-badge-full {
    background: #fff3cd;
    color: #7c5a00;
}

.prog-badge-note {
    background: #e0f2fe;
    color: #0369a1;
}


/* ── Award badges ─────────────────────────────────────────── */
/* Colors come from JSON via inline style; shimmer animation shared. */

/* Periodic shimmer — sweeps once, then rests ~4 s before repeating */
@keyframes badge-periodic-shine {
    0%   { left: -110%; }
    18%  { left: 150%; }
    100% { left: 150%; }
}

.prog-award-badge::after {
    content: '';
    position: absolute;
    top: 0; left: 150%; bottom: 0;
    width: 55%;
    background: linear-gradient(
        105deg,
        transparent 15%,
        rgba(255, 255, 255, 0.38) 50%,
        transparent 85%
    );
    pointer-events: none;
    animation: badge-periodic-shine 4s cubic-bezier(.17,.67,.83,.67) infinite;
}

/* Stagger so stacked / adjacent badges don't all fire at once */
.prog-award-badge:nth-child(2)::after { animation-delay: -1.6s; }
.prog-award-badge:nth-child(3)::after { animation-delay: -3.2s; }
.paper-badges-stack .prog-award-badge:nth-child(1)::after { animation-delay: -0.4s; }
.paper-badges-stack .prog-award-badge:nth-child(2)::after { animation-delay: -2.4s; }

/* ── Badge stack in accepted-papers / program full list ───── */
/* No longer absolutely positioned — it is a flex item in the list-item
   row so align-items:center on the parent centres it automatically.    */
.paper-badges-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.prog-modal-actions {
    margin-top: 5px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.prog-copy-title {
    color: #007bff;
    cursor: pointer;
}

.prog-copy-title:hover {
    text-decoration: underline;
}

/* Google Calendar link in modal header */
.prog-modal-gcal {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: background 0.13s, border-color 0.13s;
}

.prog-modal-gcal:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    text-decoration: none;
    color: #374151;
}

/* ── Full paper list (below grid) ────────────────────────── */
.prog-full-list {
    margin-top: 32px;
}

.prog-full-list h2 {
    font-size: 16px;
    font-weight: 700;
    color: #275D38;
    border-bottom: 2px solid #275D38;
    padding-bottom: 6px;
    margin-bottom: 16px;
}

.prog-fl-session {
    margin-bottom: 22px;
}

.prog-fl-header {
    background: #275D38;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px 6px 0 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.prog-fl-meta {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.88;
    margin-top: 2px;
}

.prog-modal-paper-badge {
    margin-bottom: 5px;
}

/* ══ SIGEnergy Achievement Award Spotlight ═══════════════════════════════ */
.achieve-spotlight {
    margin: 20px 0 32px;
}

.achieve-eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.achieve-eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(130deg, #b07d28 0%, #d4a43a 50%, #c9973a 100%);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border-radius: 20px;
    padding: 5px 15px;
    box-shadow: 0 2px 10px rgba(201, 151, 58, 0.38);
}

.achieve-eyebrow-sub {
    font-size: 12.5px;
    color: #7a9a82;
    font-style: italic;
}

/* ── Main card ─────────────────────────────────────────────────────────── */
.achieve-card {
    background: #fff;
    border: 1.5px solid #e4e8e4;
    box-shadow: 0 4px 28px rgba(39, 93, 56, 0.09);
    padding: 32px 36px 32px 40px;
    display: flex;
    gap: 36px;
    align-items: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
    text-decoration: none;
}

/* gold-to-green left accent bar */
.achieve-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(to bottom, #c9973a 0%, #FF6C0C 100%);
}

.achieve-card:hover {
    box-shadow: 0 12px 44px rgba(39, 93, 56, 0.15);
    transform: translateY(-2px);
}

/* ── Portrait column ───────────────────────────────────────────────────── */
.achieve-portrait-col {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.achieve-portrait-ring {
    width: 152px;
    height: 152px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #c9973a 0%, #FF6C0C 55%, #FFA970 100%);
    box-shadow: 0 6px 24px rgba(39, 93, 56, 0.2), 0 0 0 6px rgba(201, 151, 58, 0.12);
    flex-shrink: 0;
}

.achieve-portrait-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #e8ede9;
    display: block;
}

.achieve-institution {
    display: inline-block;
    font-weight: bold;
    margin: 0;
    color: #FF6C0C;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ── Content column ────────────────────────────────────────────────────── */
.achieve-content-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.achieve-name {
    font-size: 26px;
    font-weight: 700;
    color: #1a2e1f;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.achieve-role {
    font-size: 13px;
    color: #275D38;
    margin: 0;
    line-height: 1.5;
}

.achieve-citation {
    margin: 4px 0;
    padding: 12px 16px;
    border-left: 3.5px solid #275D38;
    background: rgba(39, 93, 56, 0.08);
    border-radius: 0 8px 8px 0;
    font-size: 13.5px;
    font-style: italic;
    color: #2d3d32;
    line-height: 1.7;
}

/* ── Biography button ──────────────────────────────────────────────────── */
.achieve-bio-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    padding: 8px 20px;
    background: #fff;
    color: #275D38;
    border: #275D38 1px solid;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s ease;
    align-self: flex-start;
    font-family: inherit;
}

.achieve-bio-btn:hover {
    background: #275D38;
    color: #fff;
    box-shadow: 0 4px 14px rgba(39, 93, 56, 0.32);
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 650px) {
    .achieve-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 28px 22px 28px;
        gap: 22px;
    }

    /* swap left-bar to a top-bar */
    .achieve-card::before {
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        width: auto;
        height: 4px;
        background: linear-gradient(to right, #c9973a 0%, #275D38 100%);
    }

    .achieve-portrait-ring {
        width: 130px;
        height: 130px;
    }

    .achieve-content-col {
        align-items: center;
    }

    .achieve-citation {
        text-align: left;
    }

    .achieve-fellowships {
        justify-content: center;
    }

    .achieve-bio-btn {
        align-self: center;
    }
}

/* ══ Keynote Page ═════════════════════════════════════════════════════════ */
.keynote-section {
    margin: 20px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ── Card shell ─────────────────────────────────────────────────────────── */
.keynote-card {
    background: #fff;
    border: 1.5px solid #e4e8e4;
    box-shadow: 0 4px 28px rgba(39, 93, 56, 0.09);
    overflow: hidden;
    position: relative;
}

.umass-color::before {
    background: linear-gradient(to bottom, #881c1c 0%, #212721 100%) !important;
}

.delta-color::before {
    background: linear-gradient(to bottom, #E20E2E 0%, #E91C24 100%) !important;
}
/* Pure green left accent — visually distinct from the gold-green of the achievement award */
.keynote-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(to bottom, #4a9660 0%, #1b4a2a 100%);
    pointer-events: none;
}

.keynote-card-inner {
    padding: 0;
}

/* ── Header: talk title ─────────────────────────────────────────────────── */
.keynote-header {
    padding: 26px 32px 22px 40px;
    border-bottom: 1px solid #eaf0eb;
}

.keynote-eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 13px;
}

.keynote-badge {
    display: inline-flex;
    align-items: center;
    background: #275D38;
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    border-radius: 20px;
    padding: 4px 13px;
}

.keynote-date {
    font-size: 12.5px;
    color: #7a9a82;
    font-style: italic;
}

.keynote-title {
    font-size: 21px;
    font-weight: 700;
    color: #1a2e1f;
    margin: 0;
    line-height: 1.38;
    letter-spacing: -0.015em;
}

/* ── Body: speaker column + abstract column ─────────────────────────────── */
.keynote-body {
    display: flex;
    gap: 0;
    padding: 24px 32px 28px 40px;
    align-items: flex-start;
}

/* ── Speaker column ─────────────────────────────────────────────────────── */
.keynote-speaker-col {
    flex-shrink: 0;
    width: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-right: 26px;
    border-right: 1px solid #eaf0eb;
    margin-right: 26px;
}

.keynote-portrait-ring {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    padding: 3.5px;
    background: linear-gradient(135deg, #275D38 0%, #4a9660 100%);
    box-shadow: 0 4px 16px rgba(39, 93, 56, 0.18);
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
    margin-bottom: 14px;
}

.keynote-portrait-ring:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(39, 93, 56, 0.28);
}

.keynote-portrait-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #e8ede9;
    display: block;
}

.keynote-speaker-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.keynote-speaker-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a2e1f;
    line-height: 1.3;
    cursor: pointer;
    transition: color 0.15s;
    margin-bottom: 3px;
}

.keynote-speaker-name:hover {
    color: #275D38;
}

.keynote-speaker-title {
    font-size: 11px;
    color: #4a7255;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 3px;
    line-height: 1.4;
}

.keynote-speaker-affil {
    font-size: 11.5px;
    color: #7a9a82;
    line-height: 1.4;
    margin-bottom: 12px;
}

.keynote-fellow-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.keynote-fellow-pill {
    display: inline-block;
    font-size: 10px;
    color: #5a7060;
    background: #f0f6f1;
    border: 1px solid #ddeae0;
    border-radius: 20px;
    padding: 2px 8px;
    font-weight: 500;
    white-space: nowrap;
}

/* ── Abstract column ────────────────────────────────────────────────────── */
.keynote-abstract-col {
    flex: 1;
    min-width: 0;
}

.keynote-abstract-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #7a9a82;
    margin-bottom: 10px;
}

.keynote-abstract {
    font-size: 13.5px;
    line-height: 1.76;
    color: #2d3d32;
}

.keynote-abstract p {
    margin: 0 0 12px;
}

.keynote-abstract p:last-child {
    margin-bottom: 0;
}

.keynote-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

/* ── "More to be announced" note ────────────────────────────────────────── */
.keynote-tba-note {
    font-size: 13px;
    color: #9ab8a2;
    font-style: italic;
    text-align: center;
    margin: 4px 0 0;
}

/* ── Track column toggle + drag-reorder controls ─────────────────────────────
   Sits between the legend and the grid-wrap on multi-track (workshop) days.
   Design: compact chip strip — monochrome chips, colour-dot sole accent,
   grab-handle that brightens on hover, drop-indicator with a left-rule flash.
   ─────────────────────────────────────────────────────────────────────────── */

.prog-track-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 0 0 10px;
    font-size: 11px;
}

.prog-tc-label {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #aaa;
    flex-shrink: 0;
    padding-right: 2px;
    user-select: none;
}

.prog-tc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

/* ── Individual chip ─────────────────────────────────────────────────────── */
.prog-tc-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 7px 4px 5px;
    border: 1px solid #e2e2e2;
    border-radius: 5px;
    background: #fafafa;
    cursor: pointer;
    user-select: none;
    font-size: 11px;
    color: #3a3a3a;
    transition: border-color 0.14s, background 0.14s, box-shadow 0.14s, opacity 0.14s;
    position: relative;
}

.prog-tc-chip:hover {
    border-color: #275D38;
    background: #fff;
    box-shadow: 0 1px 5px rgba(39, 93, 56, 0.12);
}

/* Hidden state: faded + name struck-through */
.prog-tc-chip--hidden {
    opacity: 0.42;
    background: #f0f0f0;
}
.prog-tc-chip--hidden .prog-tc-name {
    text-decoration: line-through;
    color: #999;
}

/* Dragging source: dashed, ghost-transparent */
.prog-tc-chip--dragging {
    opacity: 0.3;
    border-style: dashed;
}

/* Drop target: left-rule flash in brand green */
.prog-tc-chip--drag-over {
    border-color: #275D38;
    background: #edf7f1;
    box-shadow: -3px 0 0 0 #275D38, 0 1px 5px rgba(39, 93, 56, 0.16);
}

/* ── Drag handle ─────────────────────────────────────────────────────────── */
.prog-tc-drag-handle {
    /* Two vertical dots — a gentle "grip" glyph */
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -2px;
    color: #d0d0d0;
    cursor: grab;
    font-size: 14px;
    line-height: 1;
    padding: 0 1px;
    flex-shrink: 0;
    transition: color 0.12s;
    /* prevent accidental text selection on drag */
    -webkit-user-select: none;
    user-select: none;
}
.prog-tc-chip:hover .prog-tc-drag-handle { color: #888; }
.prog-tc-drag-handle:active               { cursor: grabbing; }

/* ── Colour dot ──────────────────────────────────────────────────────────── */
.prog-tc-dot {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    flex-shrink: 0;
    /* colour is set inline via JS */
}

/* ── Track name ──────────────────────────────────────────────────────────── */
.prog-tc-name {
    font-weight: 500;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1;
    transition: color 0.14s, text-decoration 0.14s;
}

/* ── Eye toggle button ───────────────────────────────────────────────────── */
.prog-tc-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0 0 0 3px;
    cursor: pointer;
    color: #c0c0c0;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    transition: color 0.12s;
    line-height: 1;
}
.prog-tc-toggle-btn:hover { color: #275D38; }

.prog-tc-eye-icon {
    width: 13px;
    height: 13px;
    display: block;
    overflow: visible;
}

/* ── Tutorial event type ─────────────────────────────────────────────────── */
.prog-evt-tutorial {
    background: rgba(224, 242, 254, 0.97);
    color: #075985;
    border-left: 3px solid #0ea5e9;
}

/* ── Keynote card inside program modal ───────────────────────────────────── */
/* Remove the standalone-card chrome (shadow, hover lift) so the card sits   */
/* flush inside the modal box. Accent bar and layout are preserved.          */
.prog-keynote-modal-card {
    cursor: default;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}
.prog-keynote-modal-card::before {
    background: none !important;
}
.prog-keynote-modal-card:hover {
    box-shadow: none !important;
    transform: none !important;
}
/* Remove outer padding so the card's own body padding aligns with modal edges */
.prog-modal-body--keynote {
    padding: 0;
}

/* ── Abstract / Biography segmented slider (speaker-photo modal) ─────────── */
.prog-speaker-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.prog-content-segment {
    position: relative;
    display: inline-flex;
    align-self: flex-start;
    background: #e8f0eb;
    border: 1px solid #cddfd3;
    border-radius: 999px;
    padding: 3px;
    margin-bottom: 16px;
    box-shadow: inset 0 1px 2px rgba(39, 93, 56, 0.06);
}

.prog-content-segment-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(39, 93, 56, 0.14),
                0 4px 12px rgba(39, 93, 56, 0.08);
    transition: transform 0.32s cubic-bezier(0.34, 1.2, 0.64, 1);
    pointer-events: none;
}

.prog-content-segment-slider.is-bio {
    transform: translateX(100%);
}

.prog-content-segment-btn {
    position: relative;
    z-index: 1;
    flex: 1 1 50%;
    border: none;
    background: transparent;
    padding: 7px 20px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #7a9a82;
    cursor: pointer;
    transition: color 0.22s ease;
    min-width: 100px;
    line-height: 1.2;
    font-family: inherit;
}

.prog-content-segment-btn:hover {
    color: #4a7a58;
}

.prog-content-segment-btn.is-active {
    color: #275D38;
}

.prog-content-segment-btn:focus-visible {
    outline: 2px solid #4a9660;
    outline-offset: 2px;
    border-radius: 999px;
}

.prog-speaker-panels {
    position: relative;
    min-height: 60px;
    overflow: hidden;
    transition: height 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.prog-speaker-panels.is-animating {
    will-change: height;
}

.prog-speaker-panels.is-animating .prog-speaker-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.prog-speaker-panel {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.prog-speaker-panel.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.prog-speaker-panel.is-leaving {
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    z-index: 1;
}

.prog-speaker-panel[hidden] {
    display: none !important;
}

.prog-speaker-empty {
    color: #7a9a82;
    font-size: 13px;
    font-style: italic;
    margin: 0;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 620px) {
    .keynote-header {
        padding: 20px 20px 18px 26px;
    }

    .keynote-title {
        font-size: 17.5px;
    }

    .keynote-body {
        flex-direction: column;
        padding: 20px 20px 24px 26px;
    }

    .keynote-speaker-col {
        width: 100%;
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: 16px;
        padding-right: 0;
        margin-right: 0;
        border-right: none;
        border-bottom: 1px solid #eaf0eb;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .keynote-portrait-ring {
        width: 82px;
        height: 82px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .keynote-speaker-info {
        align-items: flex-start;
    }

    .keynote-fellow-pills {
        justify-content: flex-start;
    }
}

/* ══ Doctoral Dissertation Award ═════════════════════════════════════════ */
.dd-award-section {
    margin: 20px 0 36px;
}

.dd-award-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dd-award-card {
    background: #fff;
    border: 1.5px solid #e4e8e4;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(39, 93, 56, 0.08);
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.dd-award-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.dd-winner::before {
    background: linear-gradient(90deg, #c9973a 0%, #e8b84b 50%, #c9973a 100%);
}

.dd-honorable::before {
    background: linear-gradient(90deg, #5a8a6a 0%, #7aaa8a 50%, #5a8a6a 100%);
}

.dd-award-card:hover {
    box-shadow: 0 10px 36px rgba(39, 93, 56, 0.14);
    transform: translateY(-3px);
}

.dd-card-badge-row {
    margin-bottom: 18px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.dd-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border-radius: 20px;
    padding: 4px 14px;
}

.dd-badge-winner {
    background: linear-gradient(130deg, #b07d28 0%, #d4a43a 50%, #c9973a 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(201, 151, 58, 0.35);
}

.dd-badge-honorable {
    background: linear-gradient(130deg, #3d6b4e 0%, #5a8a6a 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(90, 138, 106, 0.3);
}

.dd-portrait-wrap {
    margin-bottom: 20px;
}

.dd-portrait-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.dd-ring-winner {
    box-shadow: 0 0 0 3px #d4a43a, 0 0 0 6px rgba(212, 164, 58, 0.18), 0 6px 24px rgba(201, 151, 58, 0.28);
}

.dd-ring-honorable {
    box-shadow: 0 0 0 3px #5a8a6a, 0 0 0 6px rgba(90, 138, 106, 0.18), 0 6px 24px rgba(90, 138, 106, 0.22);
}

.dd-portrait-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dd-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.dd-name {
    font-size: 17px;
    font-weight: 700;
    color: #1a2e1f;
    margin: 0;
    line-height: 1.3;
}

.dd-institution {
    font-size: 12.5px;
    color: #4a6a52;
    line-height: 1.5;
    margin: 0;
}

.dd-role {
    color: #7a9a82;
    font-style: italic;
}

.dd-card-actions {
    margin-top: auto;
    padding-top: 6px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
    .dd-award-grid {
        grid-template-columns: 1fr;
    }
}
