/* the table keeps the old timeline style while showing real event duration */
.schedule-section {
    min-height: auto;
}

.schedule-intro {
    max-width: 42rem;
    margin: 1.6rem 0 0;
    color: rgba(8, 24, 47, 0.76);
    font-size: clamp(1rem, 1.5vw, 1.16rem);
    line-height: 1.8;
}

.schedule-view-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: clamp(4rem, 8vw, 7rem) 0 1.5rem;
}

.schedule-duration-note {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0;
    color: rgba(8, 24, 47, 0.54);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.schedule-duration-note::before {
    content: "";
    width: 2.25rem;
    height: 1px;
    background: rgba(8, 24, 47, 0.34);
}

.schedule-duration-note__mobile {
    display: none;
}

.schedule-view-switcher {
    display: flex;
    flex: 0 0 auto;
}

.schedule-view-switcher button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0 0.5rem;
    color: #183c66;
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: color 180ms ease;
}

.schedule-view-switcher__icon {
    position: relative;
    display: inline-block;
    width: 1.15rem;
    height: 0.7rem;
}

.schedule-view-switcher__icon::before,
.schedule-view-switcher__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 0.38rem;
    height: 0.38rem;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transition: left 260ms var(--ease), right 260ms var(--ease), transform 260ms var(--ease);
}

.schedule-view-switcher__icon::before {
    left: 0.02rem;
    transform: translateY(-50%) rotate(45deg);
}

.schedule-view-switcher__icon::after {
    right: 0.02rem;
    transform: translateY(-50%) rotate(225deg);
}

.schedule-views[data-active-view="simple"] .schedule-view-switcher__icon::before {
    left: -0.05rem;
    transform: translateY(-50%) rotate(225deg);
}

.schedule-views[data-active-view="simple"] .schedule-view-switcher__icon::after {
    right: -0.05rem;
    transform: translateY(-50%) rotate(45deg);
}

.schedule-view-switcher button::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: #183c66;
    transform: scaleX(1);
    transform-origin: left;
    opacity: 0.42;
    transition: opacity 180ms ease, transform 180ms ease;
}

.schedule-view-switcher button:hover {
    color: #163252;
}

.schedule-view-switcher button:hover::after,
.schedule-view-switcher button:focus-visible::after {
    opacity: 1;
}

.schedule-view-switcher button:focus-visible {
    color: #183c66;
    outline: none;
}

.schedule-views[data-active-view="simple"] .schedule-table-wrap,
.schedule-views[data-active-view="table"] .schedule-simple {
    display: none;
}

.schedule-simple,
.schedule-table-wrap {
    view-transition-name: schedule-view;
    transition: opacity 140ms ease, transform 220ms var(--ease);
}

.schedule-views.is-switching .schedule-simple,
.schedule-views.is-switching .schedule-table-wrap {
    opacity: 0;
    transform: translateY(0.45rem);
}

::view-transition-old(schedule-view) {
    animation: schedule-view-out 160ms ease both;
}

::view-transition-new(schedule-view) {
    animation: schedule-view-in 260ms var(--ease) both;
}

@keyframes schedule-view-out {
    to {
        opacity: 0;
        transform: translateY(-0.35rem);
    }
}

@keyframes schedule-view-in {
    from {
        opacity: 0;
        transform: translateY(0.55rem);
    }
}

.schedule-simple__day + .schedule-simple__day {
    margin-top: clamp(5rem, 9vw, 8rem);
}

.schedule-simple__date {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(8, 24, 47, 0.22);
}

.schedule-simple__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.schedule-simple__stop {
    display: grid;
    grid-template-columns: 8.25rem minmax(0, 1fr);
    min-height: 6rem;
    border-bottom: 1px solid rgba(8, 24, 47, 0.15);
}

.schedule-simple__time {
    position: relative;
    padding: 1.45rem 1.25rem 1.45rem 0;
    color: #183354;
    border-right: 1px solid rgba(8, 24, 47, 0.2);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    font-weight: 650;
    white-space: nowrap;
}

.schedule-simple__time::after {
    content: "";
    position: absolute;
    top: 1.72rem;
    right: -0.32rem;
    width: 0.52rem;
    height: 0.52rem;
    background: #3f6f9e;
    border: 2px solid rgba(247, 251, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(8, 24, 47, 0.25);
}

.schedule-simple__events {
    display: grid;
    gap: 1.15rem;
    align-content: center;
    padding: 1.15rem 0 1.15rem 2.5rem;
}

.schedule-simple__event {
    --block-tint: 102, 83, 174;
    padding-left: 1.1rem;
    border-left: 3px solid rgb(var(--block-tint));
}

.schedule-simple__event-copy > span {
    display: block;
    margin-bottom: 0.25rem;
    color: rgb(var(--block-tint));
    font-size: 0.61rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.schedule-simple__event-copy > strong {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.schedule-simple__event > small {
    display: block;
    margin-top: 0.5rem;
    color: rgba(8, 24, 47, 0.5);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.schedule-simple__event[data-tone="hacking"] { --block-tint: 218, 92, 49; }
.schedule-simple__event[data-tone="workshop"] { --block-tint: 35, 126, 156; }
.schedule-simple__event[data-tone="advanced"] { --block-tint: 102, 83, 174; }
.schedule-simple__event[data-tone="guest"] { --block-tint: 174, 111, 14; }
.schedule-simple__event[data-tone="evening"] { --block-tint: 156, 76, 139; }
.schedule-simple__event[data-tone="meal"] { --block-tint: 167, 101, 15; }
.schedule-simple__event[data-tone="milestone"] { --block-tint: 39, 128, 81; }

a.schedule-simple__event {
    color: inherit;
    transition: transform 180ms ease;
}

a.schedule-simple__event:hover,
a.schedule-simple__event:focus-visible {
    outline: none;
    transform: translateX(0.3rem);
}

a.schedule-simple__event::after {
    content: "info →";
    display: block;
    width: fit-content;
    margin-top: 0.55rem;
    color: rgb(var(--block-tint));
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    opacity: 0.72;
}

.schedule-simple__stop--milestone {
    background: linear-gradient(90deg, rgba(95, 193, 145, 0.1), rgba(247, 251, 255, 0.12));
    border-bottom-color: rgba(39, 128, 81, 0.26);
}

.schedule-simple__stop--milestone .schedule-simple__time {
    color: #286947;
    border-right-color: rgba(39, 128, 81, 0.3);
}

.schedule-simple__stop--milestone .schedule-simple__time::after {
    background: #278051;
}

.schedule-simple__stop--milestone .schedule-simple__event {
    display: block;
    padding-left: 0;
    border-left: 0;
    text-align: center;
}

.schedule-table-wrap {
    overflow-x: auto;
    background: transparent;
    overscroll-behavior-x: contain;
    scrollbar-color: rgba(18, 52, 82, 0.42) transparent;
    scrollbar-width: thin;
}

.schedule-table-wrap::-webkit-scrollbar {
    height: 0.5rem;
}

.schedule-table-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.schedule-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(18, 52, 82, 0.38);
    border-radius: 999px;
}

.schedule-table {
    width: 100%;
    min-width: 62rem;
    border-collapse: collapse;
    table-layout: fixed;
    color: #14263a;
    font-size: clamp(0.74rem, 0.95vw, 0.9rem);
    line-height: 1.3;
}

.schedule-table__time-column {
    width: 8.25rem;
}

.schedule-table__activity-column {
    width: calc((100% - 8.25rem) / 4);
}

.schedule-table tbody tr:not(.schedule-table__date) > th {
    height: 4rem;
}

.schedule-table tbody tr.schedule-table__half-hour > th {
    height: 2.35rem;
}

.schedule-table tbody th[scope="row"] {
    position: sticky;
    left: 0;
    z-index: 3;
    padding: 1rem 1.25rem 1rem 0;
    color: #183354;
    background: rgba(220, 236, 249, 0.14);
    border-right: 1px solid rgba(8, 24, 47, 0.2);
    border-bottom: 1px solid rgba(8, 24, 47, 0.15);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.9rem;
    font-weight: 650;
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.schedule-table tbody th[scope="row"]::after {
    content: "";
    position: absolute;
    top: 1.2rem;
    right: -0.32rem;
    width: 0.52rem;
    height: 0.52rem;
    background: #3f6f9e;
    border: 2px solid rgba(247, 251, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(8, 24, 47, 0.25);
}

.schedule-table__half-hour > th[scope="row"]::after {
    top: 0.95rem;
}

.schedule-table__date th {
    padding: 0 0 1.5rem;
    background: transparent;
    border-bottom: 1px solid rgba(8, 24, 47, 0.22);
    text-align: left;
}

.schedule-table__date--second th {
    padding-top: clamp(5rem, 9vw, 8rem);
}

.schedule-table__date-inner,
.schedule-simple__date {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
}

.schedule-table__date-inner span,
.schedule-simple__date span {
    display: block;
    margin: 0 0 0.55rem;
    color: rgba(8, 24, 47, 0.54);
    font-family: "Manrope", sans-serif;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.schedule-table__date-inner strong,
.schedule-simple__date strong {
    display: block;
    color: #0a1a31;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(3.3rem, 7vw, 6rem);
    font-weight: 500;
    line-height: 0.86;
    letter-spacing: -0.075em;
}

.schedule-table__date-inner > time,
.schedule-simple__date > time {
    padding-bottom: 0.25rem;
    color: rgba(8, 24, 47, 0.74);
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    font-weight: 650;
    white-space: nowrap;
}

.schedule-block {
    --block-tint: 63, 111, 158;
    position: relative;
    padding: 1rem 1rem 1rem 1.35rem;
    overflow-wrap: anywhere;
    vertical-align: top;
    background: transparent;
    border-right: 1px solid rgba(8, 24, 47, 0.07);
    border-bottom: 1px solid rgba(8, 24, 47, 0.15);
    box-shadow: inset 3px 0 0 rgba(var(--block-tint), 0.88);
    transition: background-color 160ms ease;
}

.schedule-block:not(.schedule-block--empty):hover {
    background: rgba(var(--block-tint), 0.08);
}

.schedule-block--linked {
    cursor: pointer;
}

.schedule-block__link {
    display: block;
    color: inherit;
}

.schedule-block__link::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
}

.schedule-block__link:focus-visible {
    outline: none;
}

.schedule-block__link:focus-visible::after {
    outline: 2px solid rgba(var(--block-tint), 0.76);
    outline-offset: -3px;
}

.schedule-block--linked::after {
    content: "info →";
    position: absolute;
    right: 0.7rem;
    bottom: 0.55rem;
    color: rgb(var(--block-tint));
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    opacity: 0.72;
}

.schedule-block::before {
    content: "Activity";
    display: block;
    margin-bottom: 0.28rem;
    color: rgb(var(--block-tint));
    font-size: 0.6rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.schedule-block strong {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(0.9rem, 1.15vw, 1.08rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.schedule-block strong em {
    font-size: 0.84em;
    font-weight: 500;
}

.schedule-block small {
    display: block;
    margin-top: 0.35rem;
    color: rgba(8, 24, 47, 0.5);
    font-size: 0.6rem;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.schedule-block--hacking { --block-tint: 218, 92, 49; }
.schedule-block--hacking::before { content: "Main event"; }
.schedule-block--workshop { --block-tint: 35, 126, 156; }
.schedule-block--workshop::before { content: "Workshop"; }
.schedule-block--advanced { --block-tint: 102, 83, 174; }
.schedule-block--advanced::before { content: "Activity"; }
.schedule-block--guest { --block-tint: 174, 111, 14; }
.schedule-block--guest::before { content: "Guest talk"; }
.schedule-block--evening { --block-tint: 156, 76, 139; }
.schedule-block--evening::before { content: "Late night"; }
.schedule-block--meal { --block-tint: 167, 101, 15; }
.schedule-block--meal::before { content: "Food and rest"; }

.schedule-block--milestone {
    --block-tint: 39, 128, 81;
    padding-left: 1rem;
    color: #16452f;
    background: linear-gradient(90deg, rgba(95, 193, 145, 0.1), rgba(247, 251, 255, 0.12));
    border-bottom-color: rgba(39, 128, 81, 0.26);
    box-shadow: none;
    text-align: center;
    vertical-align: middle;
}

.schedule-block--milestone::before {
    content: attr(data-label);
    color: rgb(var(--block-tint));
}

.schedule-block--milestone strong {
    font-size: clamp(1.15rem, 1.9vw, 1.5rem);
    font-weight: 700;
}

.schedule-table__milestone > th {
    color: #286947 !important;
    background: rgba(95, 193, 145, 0.08) !important;
    border-bottom-color: rgba(39, 128, 81, 0.26) !important;
}

.schedule-table__milestone > th::after {
    background: #278051 !important;
}

.schedule-block--wide {
    text-align: center;
    vertical-align: middle;
}

.schedule-block--empty {
    padding: 0;
    background: transparent;
    border-right-color: rgba(8, 24, 47, 0.04);
    box-shadow: none;
}

.schedule-block--empty::before {
    content: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 720px) {
    .schedule-view-toolbar {
        align-items: stretch;
        gap: 1rem;
        margin-top: 3.5rem;
    }

    .schedule-duration-note {
        display: none;
    }

    .schedule-views[data-active-view="table"] .schedule-duration-note {
        display: flex;
    }

    .schedule-duration-note__desktop {
        display: none;
    }

    .schedule-duration-note__mobile {
        display: inline;
    }

    .schedule-view-switcher {
        width: 100%;
        justify-content: center;
    }

    .schedule-view-switcher button {
        flex: 0 0 auto;
    }

    .schedule-simple__date strong {
        font-size: 3.4rem;
    }

    .schedule-simple__stop {
        grid-template-columns: 5.25rem minmax(0, 1fr);
    }

    .schedule-simple__time {
        padding-right: 0.65rem;
        font-size: 0.78rem;
    }

    .schedule-simple__events {
        padding-left: 1.25rem;
    }

    .schedule-table-wrap {
        margin-right: calc((100vw - var(--page-width)) / -2);
        -webkit-overflow-scrolling: touch;
    }

    .schedule-table {
        min-width: 58rem;
    }

    .schedule-table__time-column {
        width: 6.5rem;
    }

    .schedule-table tbody th[scope="row"] {
        padding-right: 0.8rem;
        font-size: 0.72rem;
    }

    .schedule-table__date-inner strong {
        font-size: 3.4rem;
    }
}
