program-agenda,
program-timeline,
program-grid,
program-builder {
    display: block;
    width: 100%;
}

.program-page__hero {
    padding: 0.25rem 0 1rem;
}

.program-page__title {
    max-width: none !important;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem) !important;
    line-height: 1.15 !important;
    margin: 0.15rem 0 0.5rem;
}

.program-toolbar {
    display: grid;
    gap: 0.9rem;
    margin: 0.25rem 0 1.25rem;
}

.program-modules {
    display: grid;
    gap: 0.55rem;
}

.program-board {
    margin-top: 0.25rem;
}

.program-empty {
    padding: 1.25rem 0;
}

.program-day-block + .program-day-block {
    margin-top: 2rem;
}

.program-day-title {
    font-size: 1.25rem;
    margin: 0 0 0.85rem;
}

.program-agenda {
    display: grid;
    gap: 0.65rem;
}

.program-agenda__row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background: var(--surface, #fff);
    border: 1px solid var(--line, rgba(20, 33, 43, 0.12));
    border-radius: 12px;
}

.program-agenda__time {
    font-weight: 700;
    white-space: nowrap;
}

.program-agenda__type {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted, #5c6b76);
    margin-bottom: 0.2rem;
}

.program-agenda__meta {
    color: var(--muted, #5c6b76);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.program-agenda__body p {
    margin: 0.4rem 0 0;
    color: var(--muted, #5c6b76);
}

@media (max-width: 700px) {
    .program-agenda__row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}

.program-nav {
    display: grid;
    gap: 0.85rem;
}

.program-day-tabs,
.program-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.35rem;
}

.program-day-tabs {
    border-bottom: 1px solid var(--line, rgba(20, 33, 43, 0.12));
    gap: 0;
}

.program-day-tabs a {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1rem 0.85rem;
    border: 0;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    background: transparent;
    color: var(--muted, #5c6b76);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
}

.program-day-tabs a:hover {
    color: var(--ink, #14212b);
}

.program-day-tabs a.is-active {
    color: var(--accent-deep, var(--accent, #0f6e56));
    border-bottom-color: var(--accent, #0f6e56);
}

.program-chips a {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--line, rgba(20, 33, 43, 0.12));
    border-radius: 999px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.program-chips a.is-active {
    background: var(--chip-color, var(--accent, #0f6e56));
    border-color: transparent;
    color: #fff;
}

.program-track-badge,
.program-group-label {
    display: inline-block;
    margin-right: 0.35rem;
    padding: 0.12rem 0.45rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.program-track-badge {
    background: var(--track-color, var(--accent, #0f6e56));
    color: #fff;
}

.program-group-label {
    background: rgba(20, 33, 43, 0.08);
    color: inherit;
}

.program-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.program-filters select {
    border: 1px solid var(--line, rgba(20, 33, 43, 0.12));
    border-radius: 8px;
    padding: 0.45rem 0.7rem;
    background: #fff;
}

.program-children {
    margin: 0.55rem 0 0;
    padding-left: 1.1rem;
}

.program-children__time {
    font-weight: 600;
    margin-right: 0.35rem;
}

.program-timeline {
    position: relative;
    padding-left: 1.1rem;
    border-left: 2px solid var(--line, rgba(20, 33, 43, 0.18));
    display: grid;
    gap: 1rem;
}

.program-timeline__item {
    position: relative;
    padding: 0.15rem 0 0.15rem 0.9rem;
}

.program-timeline__item::before {
    content: "";
    position: absolute;
    left: -1.45rem;
    top: 0.45rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent, #0f6e56);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(15, 110, 86, 0.25);
}

.program-timeline .program-agenda__time {
    margin-bottom: 0.2rem;
}

.program-items {
    margin: 0.45rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.9rem;
}

.program-session__title {
    font-weight: 800;
    line-height: 1.35;
}

.program-session__track {
    color: var(--accent-deep, var(--accent, #0f6e56));
    margin-right: 0.2rem;
}

.program-session__chairs,
.program-session__people,
.program-session__meta,
.program-session__desc {
    color: var(--muted, #5c6b76);
    font-size: 0.88rem;
    margin-top: 0.3rem;
    line-height: 1.45;
}

.program-session__label {
    font-weight: 700;
    color: var(--ink, #14212b);
    margin-right: 0.25rem;
}

.program-talks {
    margin: 0.5rem 0 0;
    padding-left: 1rem;
    font-size: 0.9rem;
}

.program-talks li + li {
    margin-top: 0.28rem;
}

.program-talks em {
    font-style: italic;
    font-weight: 600;
}

.program-talks__time {
    font-weight: 700;
    margin-right: 0.35rem;
    font-style: normal;
}

.program-talks__speaker {
    color: var(--muted, #5c6b76);
    font-style: normal;
    margin-left: 0.25rem;
}

.program-upcoming {
    display: grid;
    gap: 0.7rem;
}

.program-upcoming__item {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line, rgba(20, 33, 43, 0.1));
}

.program-upcoming__time {
    font-weight: 700;
    font-size: 0.88rem;
}

.program-upcoming__date {
    display: block;
    color: var(--muted, #5c6b76);
    font-weight: 600;
    font-size: 0.78rem;
}

/* Complex programme: shared by the module, tenant page and shortcode. */
.program-complex {
    --program-blue: #225895;
    color: #172b42;
    font-family: Arial, Helvetica, sans-serif;
    min-width: 0;
    max-width: 100%;
}

.program-complex .program-day-tabs {
    display: flex;
    gap: 0.4rem;
    border: 0;
}

.program-complex .program-day-tabs a {
    flex: 1 1 150px;
    justify-content: center;
    margin: 0;
    padding: 0.85rem 1rem;
    border: 2px solid var(--program-blue, #225895);
    border-radius: 0;
    background: #fff;
    color: var(--program-blue, #225895);
}

.program-complex .program-day-tabs a.is-active,
.program-complex .program-day-tabs a:hover {
    background: var(--program-blue, #225895);
    color: #fff;
}

.program-complex .program-day-title {
    color: var(--program-blue, #225895);
    font: 700 1.2rem/1.4 Arial, Helvetica, sans-serif;
}

.program-grid-wrap {
    width: 100%;
    max-width: 100%;
    overflow: auto;
    background: #fff;
    border: 1px solid #c7d4e2;
    overscroll-behavior-x: contain;
    scrollbar-color: #8ca9c8 #edf2f8;
}

.program-grid-wrap:focus-visible,
.program-complex a:focus-visible {
    outline: 3px solid #225895;
    outline-offset: 3px;
}

.program-grid-wrap table.program-grid {
    display: table !important;
    width: 100% !important;
    min-width: calc(128px + var(--program-room-count, 4) * 220px);
    border-collapse: separate !important;
    border-spacing: 0;
    table-layout: fixed;
    background: #fff;
    color: #172b42;
    font: 14px/1.5 Arial, Helvetica, sans-serif;
    margin: 0;
}

.program-grid-wrap .program-grid thead { display: table-header-group !important; }
.program-grid-wrap .program-grid tbody { display: table-row-group !important; }
.program-grid-wrap .program-grid tr { display: table-row !important; }

.program-grid-wrap .program-grid th,
.program-grid-wrap .program-grid td {
    display: table-cell !important;
    border: 0 !important;
    border-right: 1px solid #d3dde7 !important;
    border-bottom: 1px solid #d3dde7 !important;
    padding: 0 !important;
    text-align: left !important;
    vertical-align: top !important;
    background: #fff;
    overflow-wrap: anywhere;
}

.program-grid-wrap .program-grid thead th {
    padding: 1rem 0.65rem !important;
    background: var(--program-blue, #225895) !important;
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center !important;
    letter-spacing: 0.025em;
    position: sticky;
    top: 0;
    z-index: 2;
}

.program-grid-wrap .program-grid .program-grid__time {
    width: 128px !important;
    padding: 0.85rem 0.5rem !important;
    white-space: nowrap;
    text-align: center !important;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: #edf2f8;
    position: sticky;
    left: 0;
    z-index: 1;
    box-shadow: 1px 0 0 #b9cbdc;
}

.program-grid-wrap .program-grid thead .program-grid__time { z-index: 3; }
.program-grid .program-grid__cell { padding: 0; background: transparent; }
.program-grid .program-session {
    --session-bg: #e6edf5;
    padding: 0.8rem;
    background: var(--session-bg);
    color: #172b42;
}

.program-grid .program-session[data-track="IR" i] { --session-bg: #94b6d1; }
.program-grid .program-session[data-track="IO" i] { --session-bg: #e1b192; }
.program-grid .program-session[data-track="INR" i] { --session-bg: #a8e4cf; }
.program-grid .program-session[data-track="Oral" i] { --session-bg: #9ba5db; }
.program-grid .program-session[data-track="LS" i] { --session-bg: #b3dce3; }
.program-grid .program-session[data-track="TP" i] { --session-bg: #eab250; }
.program-grid .program-session[data-track="BM" i] { --session-bg: #b7d293; }
.program-grid .program-session[data-track="HT" i],
.program-grid .program-session[data-track="HandsOn" i] { --session-bg: #d5c3bc; }
.program-grid .program-session[data-track="PS" i],
.program-grid .program-session[data-track="Plenary" i],
.program-grid .program-session[data-type="plenary"] { --session-bg: #f4c5c5; }
.program-grid .program-session[data-type="break"],
.program-grid .program-session[data-type="lunch"] { --session-bg: #fff0b3; }
.program-grid .program-session[data-type="ceremony"],
.program-grid .program-session[data-type="social"] { --session-bg: #f4c5c5; }

.program-grid .program-session__title {
    color: #132c48;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}
.program-grid .program-session__track { color: inherit; }
.program-grid .program-session__chairs,
.program-grid .program-session__people,
.program-grid .program-session__meta {
    margin-top: 0.45rem;
    color: #26384b;
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: center;
}
.program-grid .program-session__label {
    display: block;
    color: #9b1c24;
    font-weight: 700;
}
.program-grid .program-talks {
    list-style: none;
    margin: 0.8rem -0.8rem -0.8rem;
    padding: 0;
    background: #fff;
    font-size: 0.85rem;
}
.program-grid .program-talks li {
    margin: 0;
    padding: 0.75rem;
    border-top: 1px solid #d3dde7;
    line-height: 1.55;
}
.program-grid .program-talks li:nth-child(even) { background: #f7f9fc; }
.program-grid .program-talks em { color: #233d5a; font-style: normal; font-weight: 400; }
.program-grid .program-talks__speaker { display: block; margin: 0.25rem 0 0; color: #225895; }
.program-grid .program-grid__span .program-session__title { text-transform: uppercase; }

@media (max-width: 700px) {
    .program-complex .program-day-tabs { flex-wrap: nowrap; overflow-x: auto; }
    .program-complex .program-day-tabs a { flex: 0 0 auto; font-size: 0.9rem; }
}

@media print {
    .program-toolbar,
    .site-header,
    .site-footer,
    .nav {
        display: none !important;
    }
    .program-grid-wrap { overflow: visible; }
    .program-grid-wrap table.program-grid { min-width: 0; font-size: 9px; }
    .program-grid-wrap .program-grid th,
    .program-grid-wrap .program-grid td { position: static; }
    .program-grid { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

.pb {
    --pb-gutter: 72px;
    border: 1px solid var(--admin-line, #e6ebf2);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.pb__status {
    min-height: 1.2rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    color: var(--muted, #5c6b76);
}

.pb__status.is-error {
    color: #b42318;
}

.pb__head,
.pb__body {
    display: grid;
    grid-template-columns: var(--pb-gutter) 1fr;
}

.pb__head {
    border-bottom: 1px solid var(--admin-line, #e6ebf2);
    background: rgba(15, 110, 86, 0.05);
    font-weight: 700;
    font-size: 0.85rem;
}

.pb__cols {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    min-width: 0;
}

.pb__col-head,
.pb__col {
    border-left: 1px solid var(--admin-line, #e6ebf2);
    min-width: 140px;
}

.pb__col-head {
    padding: 0.55rem 0.7rem;
}

.pb__body {
    position: relative;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 27px,
        rgba(20, 33, 43, 0.06) 27px,
        rgba(20, 33, 43, 0.06) 28px
    );
}

.pb__gutter {
    position: relative;
}

.pb__time {
    position: absolute;
    left: 0.5rem;
    font-size: 0.75rem;
    color: #5c6b76;
    transform: translateY(-0.4em);
}

.pb__col {
    position: relative;
}

.pb__col.is-target {
    background: rgba(15, 110, 86, 0.08);
}

.pb__spans {
    position: absolute;
    left: var(--pb-gutter);
    right: 0;
    top: 0;
    bottom: 0;
    pointer-events: none;
}

.pb__card {
    position: absolute;
    left: 6px;
    right: 6px;
    z-index: 2;
    background: #f3fbf7;
    border: 1px solid #cde6db;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(20, 33, 43, 0.06);
    overflow: hidden;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.pb__card--span {
    pointer-events: auto;
    background: rgba(15, 110, 86, 0.12);
    border-color: #9dccb8;
}

.pb__card--block {
    cursor: default;
    background: #f4f6f8;
    border-color: #d9dee5;
}

.pb__card.is-dragging,
.pb__card.is-resizing {
    opacity: 0.85;
    z-index: 5;
}

.pb__card--conflict-error {
    outline: 2px solid #d63939;
    box-shadow: 0 0 0 2px rgba(214, 57, 57, 0.15);
}

.pb__card--conflict-warning {
    outline: 2px solid #f59f00;
    box-shadow: 0 0 0 2px rgba(245, 159, 0, 0.15);
}

.pb__conflict-flag {
    display: inline-block;
    margin-right: 0.25rem;
    color: #d63939;
    font-weight: 700;
}

.pb__card--conflict-warning .pb__conflict-flag {
    color: #f59f00;
}

.pb__conflicts {
    margin: 0 0 0.5rem;
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
    background: #fff8e6;
    color: #8a6d1d;
    border: 1px solid #f2df9a;
}
    opacity: 0.88;
    cursor: grabbing;
    z-index: 5;
}

.pb__card-body {
    padding: 0.35rem 0.5rem 0.7rem;
    font-size: 0.82rem;
}

.pb__card-meta {
    font-size: 0.72rem;
    color: #5c6b76;
    margin-bottom: 0.15rem;
}

.pb__resize {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 10px;
    cursor: ns-resize;
    background: linear-gradient(to bottom, transparent, rgba(15, 110, 86, 0.25));
}
