:root {
    --ink: #20261f;
    --paper: #f7f2e7;
    --paper-deep: #eee5d3;
    --forest: #2d562f;
    --forest-dark: #17351f;
    --gold: #dda81c;
    --gold-soft: #f1d77e;
    --archive: #375862;
    --living: #c34625;
    --society: #dda81c;
    --futures: #51477f;
    --white: #fff;
    --muted: #5d625c;
    --line: rgba(32, 38, 31, 0.16);
    --shadow: 0 24px 60px rgba(18, 27, 19, 0.16);
    --shadow-float: 0 12px 28px rgba(18, 27, 19, 0.12);
    --radius-control: 10px;
    --radius-card: 16px;
    --radius-shell: 24px;
    --radius-pill: 999px;
    --font-body: "ltc-metropolitan-pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "papyrus-std", Georgia, serif;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: auto;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.55;
}

a {
    color: inherit;
    text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px var(--forest-dark);
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 20;
    padding: 10px 14px;
    color: var(--ink);
    background: var(--white);
    border-radius: 8px;
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
    padding: 10px clamp(20px, 5vw, 72px);
    color: var(--white);
    background: var(--forest-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    text-decoration: none;
}

.site-brand span {
    min-width: 0;
}

.site-brand img {
    width: 74px;
    height: 48px;
    object-fit: contain;
}

.site-brand strong,
.site-brand small {
    display: block;
}

.site-brand strong {
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.site-brand small {
    color: var(--gold-soft);
    font-size: 0.86rem;
}

.home-link {
    flex: 0 0 auto;
    font-weight: 700;
}

.programme-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 640px;
    display: grid;
    place-items: center;
    padding: clamp(64px, 10vw, 124px) clamp(20px, 6vw, 88px);
    color: var(--white);
    background: url("/images/chc-new-bg.jpeg") center / cover;
}

.programme-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(100deg, rgba(18, 53, 31, 0.96) 0%, rgba(35, 58, 32, 0.9) 48%, rgba(74, 56, 21, 0.68) 100%),
        linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18));
}

.programme-hero-inner {
    width: min(1120px, 100%);
    min-width: 0;
}

.eyebrow,
.section-kicker,
.agenda-label,
.room-label {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.eyebrow {
    color: var(--gold-soft);
}

.programme-hero h1 {
    max-width: 900px;
    margin: 15px 0;
    font-family: var(--font-display);
    font-size: clamp(3.7rem, 9vw, 7.4rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.5;
    text-wrap: balance;
}

.programme-hero h1 span {
    display: block;
    color: var(--gold-soft);
}

.hero-summary {
    max-width: 700px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    max-width: 100%;
    min-height: 52px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.button-primary {
    color: var(--ink);
    background: var(--gold-soft);
}

.button-secondary {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(8px);
}

.button-secondary span {
    flex: 0 0 auto;
    padding: 4px 8px;
    color: var(--gold-soft);
    background: rgba(0, 0, 0, 0.24);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    white-space: nowrap;
}

@media (hover: hover) {
    .button-primary:hover {
        background: #f5df91;
        box-shadow: 0 10px 24px rgba(18, 27, 19, 0.2);
    }

    .button-secondary:hover {
        background: rgba(255, 255, 255, 0.18);
        border-color: rgba(255, 255, 255, 0.72);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    }
}

.event-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 820px;
    margin: 54px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.event-facts div {
    padding: 18px 24px 0 0;
}

.event-facts dt {
    color: var(--gold-soft);
    font-weight: 800;
}

.event-facts dd {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.8);
}

.day-navigation {
    position: sticky;
    top: 0;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100vw;
    max-width: 100vw;
    margin: -32px 0 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: var(--shadow);
}

.day-navigation a {
    min-height: 72px;
}

.day-navigation a {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 78px;
    justify-content: center;
    padding: 14px clamp(18px, 4vw, 38px);
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease;
}

.day-navigation a:first-child {
    border-radius: 0;
}

.day-navigation a:last-child {
    border-radius: 0;
}

.day-navigation a:focus-visible {
    z-index: 1;
}

.day-navigation a + a {
    border-left: 1px solid var(--line);
}

.day-navigation span {
    color: var(--forest);
    font-size: 0.76rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

@media (hover: hover) {
    .day-navigation a:hover {
        color: var(--forest-dark);
        background: #f3ecdd;
    }
}

.access-notes,
.programme-day {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.access-notes {
    display: grid;
    grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
    gap: clamp(30px, 5vw, 72px);
    align-items: center;
    padding: clamp(56px, 8vw, 82px) 0 clamp(44px, 6vw, 64px);
}

.section-kicker {
    color: var(--forest);
}

.access-notes h2,
.day-heading h2 {
    margin: 15px 0 0;
    color: var(--forest-dark);
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 3vw, 4rem);
    font-weight: 500;
    line-height: 1.5;
    text-wrap: balance;
}

.access-notes ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.access-notes li {
    min-height: 132px;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
}

.access-notes strong,
.access-notes span {
    display: block;
}

.access-notes strong {
    color: var(--forest);
}

.access-notes span {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

.programme-day {
    padding: clamp(36px, 4vw, 48px) clamp(22px, 3.5vw, 42px) clamp(44px, 5vw, 58px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-shell);
    box-shadow: 0 24px 70px rgba(39, 46, 37, 0.09);
    scroll-margin-top: 108px;
}

.day-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
    gap: 30px;
    align-items: end;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
}

.day-heading > p {
    margin: 0;
    color: var(--muted);
}

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

.agenda-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 24px;
    padding: 20px 10px;
    border-bottom: 1px solid var(--line);
}

.agenda-row > time {
    color: var(--forest);
    font-size: 1.08rem;
    font-weight: 900;
}

.agenda-row h3,
.agenda-row h4 {
    margin: 0;
    color: var(--ink);
}

.agenda-row-simple h3 {
    font-size: 1.2rem;
}

.agenda-label,
.room-label {
    color: var(--muted);
}

.keynote-row article {
    padding: 24px;
    background: linear-gradient(135deg, #edf2e9, #fbf5e2);
    border-left: 6px solid var(--gold);
    border-radius: var(--radius-card);
}

@media (max-width: 600px) {
    .keynote-row article {
        border-left: 0;
    }
}

.agenda-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.agenda-meta span,
.format-tag {
    width: fit-content;
    padding: 4px 8px;
    color: var(--forest-dark);
    background: rgba(45, 86, 47, 0.1);
    border-radius: var(--radius-pill);
    font-size: 0.76rem;
    font-weight: 800;
}

.keynote-row h3 {
    max-width: 800px;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4vw, 2.65rem);
    line-height: 1.12;
}

.presenter {
    margin: 12px 0;
    color: var(--muted);
    font-weight: 700;
}

.keynote-row a {
    color: var(--forest);
    font-weight: 800;
}

.break-row {
    background: linear-gradient(90deg, rgba(238, 229, 211, 0.7), transparent);
}

.session-block {
    overflow: hidden;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-float);
}

.session-block > header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
    gap: 20px;
    align-items: end;
    padding: 20px 22px;
    color: var(--white);
    background: var(--archive);
}

.session-block > header .agenda-label,
.session-block > header p {
    color: rgba(255, 255, 255, 0.8);
}

.session-block > header h3 {
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    line-height: 2;
    text-wrap: balance;
}

.session-block > header > p {
    min-width: 0;
    max-width: 420px;
    margin: 0;
    text-align: right;
    overflow-wrap: break-word;
}

.room-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    background: #edf1f2;
}

.room-grid > .presentation-card {
    flex: 1 1 0;
    min-width: 0;
}

.room-grid > .presentation-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
}

.programme-footer {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 76px;
    padding: 38px clamp(20px, 5vw, 72px);
    color: var(--white);
    background: var(--forest-dark);
}

.programme-footer p {
    margin: 0;
}

.programme-footer a {
    color: var(--gold-soft);
}

/* Track palette shared by the programme and abstract pages */
.track-archive-memory {
    --track-bg: var(--archive);
    --track-fg: var(--white);
    --track-wash: #edf1f2;
}

.track-living-heritage {
    --track-bg: var(--living);
    --track-fg: var(--white);
    --track-wash: #faeee9;
}

.track-heritage-society {
    --track-bg: var(--society);
    --track-fg: var(--ink);
    --track-wash: #fcf5df;
}

.track-heritage-futures {
    --track-bg: var(--futures);
    --track-fg: var(--white);
    --track-wash: #f0eef7;
}

.track-mixed {
    --track-bg: var(--forest);
    --track-fg: var(--white);
    --track-wash: #edf2e9;
}

.session-block > header,
.abstract-header {
    color: var(--track-fg, var(--white));
    background: var(--track-bg, var(--archive));
}

.abstract-header h1 {
    color: inherit;
}

.session-block > header .agenda-label,
.session-block > header p {
    color: inherit;
    opacity: 0.82;
}

.session-block .room-grid {
    background: var(--track-wash, #edf1f2);
}

/* Presentation cards generated from the programme data */
.presentation-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: clamp(18px, 2.2vw, 22px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
}

.presentation-card h3,
.presentation-card h4 {
    margin: 14px 0 0;
    color: var(--ink);
    line-height: 1.35;
    overflow-wrap: break-word;
    hyphens: auto;
}

.presentation-card h3 {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.presentation-card.keynote-card h3 {
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1.5;
}

.presentation-card h4 {
    font-size: 1.08rem;
}

.presentation-card h3 a,
.presentation-card h4 a {
    text-decoration-color: transparent;
    text-decoration-thickness: 0.08em;
    transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.presentation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.presentation-meta span {
    max-width: 100%;
    padding: 4px 8px;
    color: var(--forest-dark);
    background: rgba(45, 86, 47, 0.1);
    border-radius: var(--radius-pill);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.25;
}

.presentation-card .presenter {
    margin: 14px 0 0;
    color: var(--ink);
}

.affiliation {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.presentation-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 22px;
}

.track-label {
    width: fit-content;
    padding: 5px 9px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 900;
}

.track-label-archive-memory {
    color: #29454d;
    background: #dfeaec;
}

.track-label-living-heritage {
    color: #8e2f19;
    background: #fae3dc;
}

.track-label-heritage-society {
    color: #694e00;
    background: #fff0b8;
}

.track-label-heritage-futures {
    color: #403667;
    background: #e9e5f4;
}

.abstract-link {
    color: var(--forest);
    font-weight: 900;
    text-decoration-thickness: 0.08em;
    transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

@media (hover: hover) {
    .presentation-card h3 a:hover,
    .presentation-card h4 a:hover,
    .abstract-link:hover {
        color: var(--forest-dark);
        text-decoration-color: currentColor;
    }
}

.keynote-card {
    min-height: 0;
    box-shadow: var(--shadow-float);
}

/* Progressive search and filters */
.filter-shell {
    display: grid;
    grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
    gap: clamp(30px, 5vw, 70px);
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 44px;
    padding: clamp(28px, 4vw, 44px);
    color: var(--white);
    background: var(--forest-dark);
    border-radius: var(--radius-shell);
    box-shadow: var(--shadow);
}

.filter-intro h2 {
    margin: 6px 0 14px;
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.08;
    text-wrap: balance;
}

.filter-intro p:last-child {
    color: rgba(255, 255, 255, 0.78);
}

.filter-shell .section-kicker {
    color: var(--gold-soft);
}

.programme-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-content: center;
    min-width: 0;
}

.search-field {
    grid-column: 1 / -1;
}

.programme-filters label {
    display: grid;
    gap: 7px;
    min-width: 0;
    font-size: 0.84rem;
    font-weight: 800;
}

.programme-filters input,
.programme-filters select {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
    color: var(--ink);
    background: var(--white);
    border: 2px solid transparent;
    border-radius: var(--radius-control);
    font: inherit;
}

.filter-summary {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.filter-summary p {
    margin: 0;
}

.filter-summary button {
    min-height: 44px;
    padding: 8px 14px;
    color: var(--forest-dark);
    background: var(--gold-soft);
    border: 0;
    border-radius: var(--radius-pill);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

@media (hover: hover) {
    .filter-summary button:hover {
        background: #f5df91;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }
}

.no-script-note {
    align-self: center;
    margin: 0;
    color: var(--gold-soft);
}

.filter-empty {
    width: min(720px, calc(100% - 40px));
    margin: 0 auto 44px;
    padding: 30px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
}

.filter-empty h2,
.filter-empty p {
    margin: 0;
}

.filter-empty p {
    margin-top: 8px;
    color: var(--muted);
}

.programme-day + .programme-day,
.posters-section {
    margin-top: 38px;
}

.poster-grid {
    gap: 16px;
    margin-top: 28px;
    background: transparent;
}

.poster-grid .presentation-card {
    border-radius: var(--radius-card);
}

/* Download panels */
.download-panel,
.abstract-download {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    padding: clamp(28px, 4vw, 44px);
    color: var(--white);
    background: var(--forest-dark);
    border-radius: var(--radius-shell);
}

.download-panel {
    width: min(1180px, calc(100% - 40px));
    margin: 48px auto 0;
}

.download-panel h2,
.abstract-download h2 {
    margin: 5px 0 10px;
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
}

.download-panel p,
.abstract-download p {
    max-width: 680px;
}

.download-panel .section-kicker {
    color: var(--gold-soft);
}

/* Abstract detail pages */
.abstract-page {
    background: linear-gradient(#f7f2e7, #eee5d3);
}

.abstract-main {
    width: min(960px, calc(100% - 40px));
    margin: 0 auto;
    padding: 36px 0 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumb a {
    color: var(--forest);
    font-weight: 800;
}

.abstract-article {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-shell);
    box-shadow: var(--shadow);
}

.abstract-header {
    padding: clamp(34px, 7vw, 76px);
}

.abstract-track {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.abstract-header h1 {
    max-width: 20ch;
    margin: 18px 0;
    /* font-family: var(--font-display); */
    /* font-size: clamp(2.3rem, 6vw, 4.5rem); */
    font-weight: 400;
    line-height: 1;
    /* overflow-wrap: break-word; */
    hyphens: auto;
    /* text-wrap: balance; */
}

.abstract-presenters {
    margin: 24px 0 0;
    font-size: 1.2rem;
    font-weight: 900;
}

.abstract-affiliations {
    margin: 5px 0 0;
    opacity: 0.82;
}

.abstract-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    margin: 0;
    padding: 0 clamp(24px, 6vw, 60px);
    background: var(--paper-deep);
    border-bottom: 1px solid var(--line);
}

.abstract-facts div {
    min-width: 0;
    padding: 22px 18px 22px 0;
}

.abstract-facts dt {
    color: var(--forest);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.abstract-facts dd {
    margin: 5px 0 0;
    overflow-wrap: anywhere;
}

.abstract-copy,
.speaker-bios,
.speaker-profile-link {
    padding: clamp(32px, 7vw, 72px);
}

.abstract-copy {
    max-width: 78ch;
    margin-inline: auto;
}

.abstract-copy h2,
.speaker-bios > h2,
.speaker-profile-link h2 {
    margin: 6px 0 24px;
    color: var(--forest-dark);
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
}

.abstract-copy p,
.speaker-bios p {
    line-height: 1.75;
}

.abstract-copy p + p,
.speaker-bios p + p {
    margin-top: 1.3em;
}

.speaker-bios,
.speaker-profile-link {
    background: var(--paper);
    border-top: 1px solid var(--line);
}

.speaker-bios > section {
    max-width: 76ch;
    margin-top: 30px;
}

.speaker-bios > section + section {
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.abstract-pagination {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.abstract-pagination a {
    min-width: 0;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

@media (hover: hover) {
    .abstract-pagination a:hover {
        background: #fbf8f1;
        border-color: rgba(45, 86, 47, 0.42);
        box-shadow: 0 8px 20px rgba(18, 27, 19, 0.1);
    }
}

.abstract-pagination a:last-child {
    text-align: right;
}

.abstract-pagination span {
    display: block;
    margin-bottom: 7px;
    color: var(--forest);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 1040px) {
    .access-notes,
    .day-heading,
    .session-block > header,
    .filter-shell {
        grid-template-columns: 1fr;
    }

    .access-notes {
        align-items: start;
    }

    .access-notes ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .session-block > header > p {
        max-width: none;
        text-align: left;
    }

    .room-grid {
        display: flex;
        flex-wrap: wrap;
    }

    .room-grid > .presentation-card {
        flex: 1 1 calc(50% - 8px);
    }

    .room-grid > .presentation-card:last-child:nth-child(odd) {
        flex-basis: 100%;
    }

    .programme-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-field,
    .filter-summary {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .event-facts,
    .access-notes ul,
    .room-grid {
        display: flex;
        flex-wrap: wrap;
    }

    .room-grid > .presentation-card {
        flex: 1 1 100%;
    }

    .event-facts div {
        padding-top: 14px;
    }

    .access-notes,
    .day-heading {
        grid-template-columns: 1fr;
    }

    .access-notes {
        padding-top: 74px;
    }

    .access-notes li {
        min-height: 0;
    }

    .session-block > header {
        grid-template-columns: 1fr;
    }

    .session-block > header > p {
        text-align: left;
    }

    .filter-shell {
        grid-template-columns: 1fr;
    }

    .programme-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-field,
    .filter-summary {
        grid-column: 1 / -1;
    }

    .download-panel,
    .abstract-download {
        grid-template-columns: 1fr;
    }

    .abstract-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .day-navigation {
        position: sticky;
        top: 0;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100vw;
        max-width: 100vw;
        margin-top: -24px;
        border-left: 0;
        border-right: 0;
    }

    .day-navigation a {
        min-height: 64px;
        padding-inline: 8px;
    }

    .day-navigation a span {
        font-size: 0.64rem;
        letter-spacing: 0.08em;
    }

    .day-navigation a strong {
        font-size: 0.82rem;
        line-height: 1.2;
        white-space: nowrap;
    }

    .site-header {
        flex-wrap: wrap;
        align-items: center;
        gap: 10px 16px;
        padding: 12px 18px;
    }

    .site-brand {
        flex: 1 1 220px;
        gap: 10px;
    }

    .home-link {
        margin-left: auto;
    }

    .home-link {
        font-size: 0.78rem;
    }

    .site-brand strong {
        font-size: 0.84rem;
        line-height: 1.2;
    }

    .site-brand small {
        font-size: 0.72rem;
        line-height: 1.25;
    }

    .site-brand img {
        width: 54px;
        height: 38px;
    }

    .programme-hero {
        min-height: 0;
        padding-block: 72px;
        padding-inline: 20px;
    }

    .programme-hero h1 {
        font-size: clamp(2.8rem, 14vw, 4.8rem);
    }

    .hero-actions,
    .button {
        width: 100%;
    }

    .day-navigation {
        position: sticky;
        top: 0;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: -24px;
        width: 100vw;
        max-width: 100vw;
        border-left: 0;
        border-right: 0;
    }

    .day-navigation a + a {
        border-top: 0;
        border-left: 1px solid var(--line);
    }

    .day-navigation a:first-child,
    .day-navigation a:last-child {
        border-radius: 0;
    }

    .access-notes,
    .programme-day {
        width: min(100% - 24px, 1180px);
    }

    .programme-day {
        padding: 34px 18px 42px;
        border-radius: var(--radius-card);
        scroll-margin-top: 16px;
    }

    .agenda-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .agenda-row > time {
        font-size: 0.86rem;
    }

    .keynote-row article,
    .presentation-card {
        padding: 20px;
    }

    .programme-footer {
        grid-template-columns: 1fr;
    }

    .programme-footer {
        display: grid;
    }

    .filter-shell,
    .download-panel {
        width: min(100% - 24px, 1180px);
    }

    .filter-shell,
    .download-panel,
    .abstract-download {
        padding: 28px 20px;
    }

    .programme-filters,
    .abstract-pagination,
    .abstract-facts {
        grid-template-columns: 1fr;
    }

    .search-field,
    .filter-summary {
        grid-column: auto;
    }

    .filter-summary,
    .presentation-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .abstract-main {
        width: min(100% - 24px, 960px);
        padding-top: 24px;
    }

    .abstract-header,
    .abstract-copy,
    .speaker-bios,
    .speaker-profile-link {
        padding: 28px 22px;
    }

    .abstract-pagination a:last-child {
        text-align: left;
    }

    .programme-footer a {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 420px) {
    .home-link {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

@media print {
    .site-header,
    .hero-actions,
    .day-navigation,
    .programme-footer {
        display: none;
    }

    .filter-shell,
    .filter-empty,
    .download-panel,
    .abstract-pagination,
    .abstract-download {
        display: none !important;
    }

    body {
        background: var(--white);
    }

    .programme-hero {
        min-height: 0;
        padding: 28px 0;
        color: var(--ink);
        background: none;
    }

    .programme-hero::before {
        display: none;
    }

    .programme-hero h1,
    .programme-hero h1 span,
    .eyebrow,
    .hero-summary {
        color: var(--ink);
    }

    .access-notes,
    .programme-day {
        width: 100%;
        box-shadow: none;
    }

    .event-facts dt,
    .event-facts dd {
        color: var(--ink);
    }

    .programme-day + .programme-day {
        break-before: page;
    }

    .agenda-row,
    .presentation-card,
    .abstract-facts div,
    .speaker-bios > section {
        break-inside: avoid;
    }

    .session-block > header,
    .abstract-header {
        color: var(--ink) !important;
        background: none !important;
        border: 1px solid #777;
    }

    .abstract-main {
        width: 100%;
        padding: 0;
    }

    .abstract-article {
        border: 0;
        box-shadow: none;
    }

    .programme-hero h1 {
        font-size: 2.5rem;
    }
}
