/*
 * A congress's own pages, in the site's own frame: a hero on the brand's deep
 * red with the congress's name, facts, register button and flyer; a white bar
 * of tabs that stays in reach; then the page in a card beside an "at a glance"
 * column. --congress is set per conference (only ever #rrggbb) and is used as
 * an accent - a glow in the hero, the year badge - never as the frame.
 */

.congress {
    --congress: var(--brand);
    --congress-deep: var(--brand-deep);
    --congress-tint: var(--brand-tint);
    --congress-radius: 20px;
    background: var(--paper);
}

/* Arrows point the way the page reads. */
html[dir="rtl"] .congress-flip {
    transform: scaleX(-1);
}

.congress-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
    color: var(--brand);
    font-family: var(--font-site);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

html[lang="ar"] .congress-eyebrow {
    letter-spacing: 0;
    font-size: 14px;
}

.congress-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

/* ------------------------------------------------------------ hero */

.congress-hero {
    position: relative;
    isolation: isolate;
    overflow: clip;
    padding: clamp(36px, 6vw, 72px) 0 clamp(40px, 6vw, 76px);
    background:
        radial-gradient(60% 90% at 88% 10%, color-mix(in srgb, var(--congress) 26%, transparent), transparent 70%),
        linear-gradient(135deg, #2a0810 0%, var(--brand-deep) 55%, var(--brand) 100%);
    color: #fff;
}

/* A quiet dot grid and two rings, as the site's other banners carry. */
.congress-hero::before,
.congress-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.congress-hero::before {
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .09) 1.5px, transparent 2px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
    mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

.congress-hero::after {
    inset-block-end: -260px;
    inset-inline-start: -160px;
    width: 520px;
    height: 520px;
    border: 1.5px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(255, 255, 255, .03);
}

.congress-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.congress-hero--flyer .congress-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
}

.congress-hero__eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

html[lang="ar"] .congress-hero__eyebrow {
    letter-spacing: 0;
}

.congress-hero__logo {
    width: 56px;
    height: 56px;
    padding: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    object-fit: contain;
}

.congress-hero__year {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--brand-deep);
    font-weight: 700;
    letter-spacing: .04em;
}

.congress-hero__title {
    max-width: 820px;
    margin: 0;
    color: #fff;
    font-family: var(--font-serif);
    font-size: clamp(30px, 4.2vw, 54px);
    font-weight: 700;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.congress-hero__other {
    max-width: 820px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .78);
    font-family: Cairo, Tajawal, var(--font-site);
    font-size: clamp(17px, 1.8vw, 22px);
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.congress-hero__other[lang="en"] {
    font-family: "EB Garamond", Georgia, serif;
}

/* The other language's name lines up with the page, not with its own script. */
html[dir="ltr"] .congress-hero__other {
    text-align: left;
}

html[dir="rtl"] .congress-hero__other {
    text-align: right;
}

.congress-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.congress-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .08);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    font-size: 15px;
    font-weight: 500;
}

.congress-chip .fa {
    color: rgba(255, 255, 255, .7);
}

.congress-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 22px;
    margin-top: 30px;
}

.congress-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    background: #fff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
    color: var(--brand-deep);
    font-size: 16px;
    font-weight: 700;
    transition: transform .15s ease, box-shadow .15s ease;
}

.congress-cta:hover,
.congress-cta:focus-visible {
    color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .28);
}

.congress-doc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .35);
    text-underline-offset: 5px;
}

.congress-doc:hover {
    color: #fff;
    text-decoration-color: #fff;
}

.congress-hero__flyer {
    display: block;
    justify-self: end;
    width: 100%;
    max-width: 300px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .35);
    transform: rotate(2.5deg);
    transition: transform .25s ease;
}

html[dir="rtl"] .congress-hero__flyer {
    transform: rotate(-2.5deg);
}

.congress-hero__flyer:hover {
    transform: rotate(0) scale(1.02);
}

.congress-hero__flyer img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ------------------------------------------------------------ tabs */

.congress-tabs {
    position: sticky;
    top: var(--site-header);
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 18px rgba(20, 20, 40, .05);
}

.congress-tabs__list {
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 10px 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.congress-tabs__list::-webkit-scrollbar {
    display: none;
}

.congress-tabs__list li {
    flex: 0 0 auto;
}

.congress-tab {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}

.congress-tab:hover {
    background: var(--brand-tint);
    color: var(--brand-deep);
}

.congress-tab--active,
.congress-tab--active:hover {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 6px 14px rgba(155, 19, 33, .25);
}

/* The edge that has more to show fades (data-more-start / data-more-end, set
   by the row's script), so more tabs read as more to slide to. */
.congress-tabs::before,
.congress-tabs::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 48px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s ease;
}

.congress-tabs::before {
    inset-inline-start: 0;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
}

.congress-tabs::after {
    inset-inline-end: 0;
    background: linear-gradient(to left, #fff, rgba(255, 255, 255, 0));
}

html[dir="rtl"] .congress-tabs::before {
    background: linear-gradient(to left, #fff, rgba(255, 255, 255, 0));
}

html[dir="rtl"] .congress-tabs::after {
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
}

.congress-tabs[data-more-start]::before,
.congress-tabs[data-more-end]::after {
    opacity: 1;
}

/* From a laptop up every tab is in view: the row wraps instead of sliding,
   so a tab is never cut at the edge and the page's own tab never scrolls
   the first ones away. */
@media (min-width: 992px) {
    .congress-tabs__list {
        flex-wrap: wrap;
        overflow: visible;
    }

    .congress-tabs::before,
    .congress-tabs::after {
        content: none;
    }
}

/* ------------------------------------------------------------ body */

.congress-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
    padding-block: 36px 72px;
}

.congress-body--wide {
    grid-template-columns: minmax(0, 1fr);
}

.congress-main {
    min-width: 0;
}

.congress-card {
    margin-block-end: 24px;
    padding: clamp(22px, 3.6vw, 40px);
    border: 1px solid var(--line);
    border-radius: var(--congress-radius);
    background: #fff;
    box-shadow: var(--shadow-card);
}


.congress-card__title {
    margin: 0 0 22px;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.congress-card__subtitle {
    margin: 34px 0 16px;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
}

.congress-prose {
    color: var(--text);
    font-family: var(--font-site);
    font-size: 17px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

/* The congress's buttons wear the brand. */
.congress .btn-style-one {
    background: var(--brand);
    box-shadow: 0 6px 16px rgba(155, 19, 33, .22);
}

.congress .btn-style-two {
    color: var(--brand-deep);
}

.congress .btn-style-two:hover {
    border-color: var(--brand);
}

/* ------------------------------------------------------------ home */

.congress-figures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.congress-figure {
    padding: 18px 16px;
    border-radius: 16px;
    background: var(--brand-tint);
    text-align: center;
}

.congress-figure__value {
    display: block;
    color: var(--brand);
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
}

.congress-figure__label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.congress-explore {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.congress-explore__item {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    min-height: 76px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.congress-explore__item:hover,
.congress-explore__item:focus-visible {
    border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
    box-shadow: var(--shadow-soft);
    color: var(--ink);
    transform: translateY(-2px);
}

.congress-explore__icon {
    display: grid;
    flex: 0 0 44px;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-tint);
    color: var(--brand);
    font-size: 18px;
}

.congress-explore__text {
    display: grid;
    flex: 1;
    min-width: 0;
}

.congress-explore__text strong {
    font-size: 16px;
}

.congress-explore__text small {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.45;
}

.congress-explore__go {
    color: var(--line);
    transition: color .15s ease;
}

.congress-explore__item:hover .congress-explore__go {
    color: var(--brand);
}

.congress-topics + .conference-section__more,
.conference-people + .conference-section__more {
    margin-top: 24px;
}

/* ------------------------------------------------------------ at a glance */

.congress-aside {
    position: sticky;
    top: calc(var(--site-header) + 82px);
    display: grid;
    gap: 18px;
}

.congress-glance {
    padding: 24px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--brand);
    border-radius: var(--congress-radius);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.congress-glance__facts {
    display: grid;
    gap: 14px;
    margin: 6px 0 20px;
}

.congress-glance__facts div {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 12px;
}

.congress-glance__icon {
    display: grid;
    grid-row: span 2;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--brand-tint);
    color: var(--brand);
}

.congress-glance__facts dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.congress-glance__facts dd {
    margin: 0;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.4;
}

.congress-glance__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    border-radius: var(--radius-pill);
    background: var(--brand);
    box-shadow: 0 8px 18px rgba(155, 19, 33, .25);
    color: #fff;
    font-weight: 700;
    transition: background-color .15s ease;
}

.congress-glance__cta:hover,
.congress-glance__cta:focus-visible {
    background: var(--brand-deep);
    color: #fff;
}

.congress-glance__status {
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--paper);
    color: var(--muted);
    font-weight: 600;
    text-align: center;
}

.congress-glance__files {
    display: grid;
    gap: 4px;
    margin: 16px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.congress-glance__files a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    color: var(--ink);
    font-weight: 600;
}

.congress-glance__files a:hover {
    color: var(--brand);
}

.congress-glance__files .fa {
    color: var(--brand);
}

.congress-glance__files small {
    margin-inline-start: auto;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.congress-glance__label {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.congress-glance__countdown,
.congress-glance__dates {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.congress-glance__dates dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.congress-glance__dates div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.congress-glance__dates dt {
    color: var(--muted);
    font-weight: 500;
}

.congress-glance__dates dd {
    margin: 0;
    color: var(--ink);
    font-weight: 700;
    white-space: nowrap;
}

.congress-glance .conference-countdown {
    gap: 6px;
}

.congress-glance .conference-countdown__cell {
    flex: 1;
    min-width: 0;
    padding: 10px 4px;
    border-radius: 12px;
    background: var(--brand-tint);
    color: var(--brand);
    text-align: center;
}

.congress-glance .conference-countdown__value {
    color: var(--brand);
    font-size: 24px;
}

.congress-glance .conference-countdown__unit {
    color: var(--muted);
}

.congress-help {
    padding: 24px;
    border-radius: var(--congress-radius);
    background:
        radial-gradient(80% 120% at 100% 0%, rgba(155, 19, 33, .45), transparent 60%),
        var(--ink);
    color: rgba(255, 255, 255, .82);
}

.congress-help__title {
    margin: 0 0 8px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.congress-help p {
    margin: 0 0 14px;
    font-size: 14.5px;
    line-height: 1.6;
}

.congress-help a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    color: #fff;
    font-weight: 600;
}

html[dir="rtl"] .congress-help a {
    justify-content: flex-end;
}

.congress-help a:hover {
    color: #ffd5d9;
}

.congress-help .fa {
    width: 18px;
    color: #ff9aa4;
}

/* ------------------------------------------------------------ countdown */

.conference-countdown {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.conference-countdown__cell {
    min-width: 92px;
    padding: 12px 8px;
    border-radius: 14px;
    background: var(--congress-deep);
    color: #fff;
}

.conference-countdown__value {
    display: block;
    font-family: var(--font-serif);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.conference-countdown__unit {
    display: block;
    font-size: 13px;
    opacity: .9;
}

/* ------------------------------------------------------------ welcome */

.conference-welcome {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.conference-welcome__portrait {
    flex: 0 0 200px;
    width: 200px;
    height: 240px;
    border-radius: 16px;
    object-fit: cover;
}

.conference-welcome__text {
    flex: 1;
}

/* ------------------------------------------------------------ topics */

.congress-topics {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: topic;
}

.congress-topic {
    position: relative;
    padding-block: 14px;
    padding-inline: 56px 0;
    border-bottom: 1px solid var(--line);
    counter-increment: topic;
}

.congress-topic::before {
    content: counter(topic);
    position: absolute;
    top: 12px;
    inset-inline-start: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--congress-deep);
    color: #fff;
    font-family: var(--font-serif);
    font-size: 18px;
}

.congress-topic__title {
    margin: 4px 0 6px;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 23px;
    font-weight: 700;
}

.congress-topic__meta {
    margin: 0 0 4px;
    color: var(--muted);
}

/* ------------------------------------------------------------ committees */

.congress-committees {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 34px 48px;
}

.congress-committee__name {
    margin: 0 0 18px;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
}

.congress-committee__list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.congress-member {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-serif);
    font-size: 18px;
}

.congress-member__photo {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.congress-member__photo--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--congress-tint);
    color: var(--congress-deep);
    font-weight: 700;
}

.congress-member__name {
    color: var(--ink);
}

.congress-member__role {
    color: #444;
}

.congress-member__country {
    display: block;
    color: var(--muted);
    font-family: var(--font-site);
    font-size: 14px;
}

/* ------------------------------------------------------------ people */

.conference-people {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.conference-person {
    padding: 22px 16px;
    border: 1.5px solid var(--line);
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.conference-person__photo {
    display: block;
    width: 120px;
    height: 120px;
    margin: 0 auto 14px;
    border-radius: 50%;
    object-fit: cover;
}

.conference-person__photo--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--congress-tint);
    color: var(--congress-deep);
    font-family: var(--font-serif);
    font-size: 46px;
    font-weight: 700;
}

.conference-person__name {
    margin: 0 0 4px;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.conference-person__role,
.conference-person__country {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 14px;
}

.conference-person__bio {
    margin-block-start: 10px;
    text-align: start;
}

.conference-person__bio summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch);
    color: var(--congress-deep);
    font-weight: 600;
    cursor: pointer;
}

.conference-person__bio p {
    line-height: 1.7;
    overflow-wrap: anywhere;
}

/* A speaker with a biography: the card itself opens it. */
.conference-person__card summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    cursor: pointer;
}

.conference-person__card summary::-webkit-details-marker {
    display: none;
}

.conference-person__card summary:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 4px;
    border-radius: 12px;
}

.conference-person__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: var(--touch);
    color: var(--congress-deep);
    font-weight: 600;
}

.conference-person__card[open] .conference-person__more .fa {
    transform: rotate(180deg);
}

.conference-person__card > .conference-person__bio {
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.conference-section__more {
    margin: 26px 0 0;
    text-align: center;
}

/* ------------------------------------------------------------ cards, files */

.conference-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.conference-card {
    padding: 22px;
    border: 1.5px solid var(--line);
    border-inline-start: 4px solid var(--congress-deep);
    border-radius: 16px;
    background: #fff;
}

.conference-card__title {
    margin: 0 0 10px;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.conference-card__meta {
    margin: 0 0 8px;
    color: var(--muted);
}

.conference-files {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.conference-file {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 20px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--ink);
    font-weight: 600;
}

.conference-file .fa {
    color: var(--congress-deep);
    font-size: 19px;
}

.conference-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.conference-gallery a {
    display: block;
}

.conference-gallery img {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
}

.conference-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

/* Each logo's row is its full height before the logo loads, so the page
   below does not move when it arrives. */
.conference-logos li {
    display: flex;
    align-items: center;
    min-height: 90px;
}

.conference-logos img {
    max-height: 90px;
    max-width: 180px;
    object-fit: contain;
}

/* ------------------------------------------------------------ rooms */

.conference-rooms {
    width: 100%;
    margin-block-end: 24px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.conference-rooms th,
.conference-rooms td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    text-align: start;
}

.conference-rooms tr:last-child td {
    border-bottom: 0;
}

.conference-rooms th {
    background: var(--congress-tint);
    color: var(--ink);
    font-weight: 700;
}

.conference-rooms__stars {
    margin-inline-start: 6px;
    color: #f0a500;
}

/* A form inside the congress card draws no card of its own. */
.registration-form--inset {
    max-width: none;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.congress .registration-choice--chosen,
.congress .registration-choice:focus-within {
    border-color: var(--congress-deep);
    background: var(--congress-tint);
}

.congress .registration-choice input,
.congress .registration-check input {
    accent-color: var(--congress-deep);
}

.congress .registration-choice__price {
    color: var(--congress-deep);
}

/* ------------------------------------------------------------ narrow */

@media (max-width: 1199.98px) {
    .congress-body {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
}

/* Below a laptop the column follows the page, its facts side by side. */
@media (max-width: 991.98px) {
    .congress-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .congress-aside {
        position: static;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .congress-hero--flyer .congress-hero__grid {
        grid-template-columns: minmax(0, 1fr) 200px;
        gap: 28px;
    }
}

@media (max-width: 767px) {
    .congress-hero--flyer .congress-hero__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* On a phone the flyer is a small card under the facts, not tilted. */
    .congress-hero__flyer,
    html[dir="rtl"] .congress-hero__flyer {
        justify-self: start;
        max-width: 190px;
        transform: none;
    }

    .congress-hero__actions {
        gap: 8px 18px;
    }

    .congress-cta {
        flex: 1 1 100%;
        justify-content: center;
    }

    .congress-chip {
        font-size: 14px;
    }

    .congress-tab {
        padding-inline: 14px;
        font-size: 14px;
    }

    .congress-body {
        padding-block: 22px 48px;
    }

    .congress-explore {
        grid-template-columns: minmax(0, 1fr);
    }

    .congress-figure__value {
        font-size: 30px;
    }

    .conference-countdown {
        gap: 6px;
    }

    .conference-countdown__cell {
        flex: 1;
        min-width: 0;
    }

    .conference-countdown__value {
        font-size: 26px;
    }

    .conference-welcome {
        flex-direction: column;
        align-items: center;
    }

    .congress-committees {
        grid-template-columns: 1fr;
    }

    /* Two people to a row on a phone, so a list of speakers stays short. */
    .conference-people {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .conference-person {
        padding: 16px 10px;
    }

    .conference-person__photo {
        width: 76px;
        height: 76px;
        margin-bottom: 10px;
    }

    .conference-person__photo--initials {
        font-size: 30px;
    }

    .conference-person__name {
        font-size: 16px;
    }

    /* Each room its own card, its heading beside each value. */
    .conference-rooms thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .conference-rooms,
    .conference-rooms tbody,
    .conference-rooms tr,
    .conference-rooms td {
        display: block;
    }

    .conference-rooms {
        border: 0;
        background: none;
    }

    .conference-rooms tr {
        margin-block-end: 12px;
        border: 1.5px solid var(--line);
        border-radius: 12px;
        background: #fff;
    }

    .conference-rooms td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }

    .conference-rooms td::before {
        content: attr(data-label);
        font-weight: 700;
    }
}

/* ------------------------------------------------------------ programme */

.congress-programme {
    display: grid;
    gap: 34px;
}

.congress-programme__document {
    margin: 0 0 24px;
}

.congress-programme__date {
    margin: 0 0 14px;
    padding-block: 8px;
    padding-inline: 16px;
    border-inline-start: 4px solid var(--congress-deep);
    border-radius: 10px;
    background: var(--congress-tint);
    color: var(--congress-deep);
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
}

.congress-programme__sessions,
.congress-programme__lectures {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.congress-programme__session {
    padding: 18px 20px;
    border: 1.5px solid var(--line);
    border-inline-start: 4px solid var(--congress-deep);
    border-radius: 16px;
    background: #fff;
}

.congress-programme__time {
    display: inline-block;
    color: var(--congress-deep);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.congress-programme__title {
    margin: 4px 0 6px;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.congress-programme__meta {
    margin: 0 0 4px;
    color: var(--muted);
}

.congress-programme__meta .fa {
    margin-inline-end: 4px;
    color: var(--congress-deep);
}

.congress-programme__lectures {
    gap: 0;
    margin-block-start: 12px;
    border-block-start: 1px solid var(--line);
}

.congress-programme__lecture {
    display: grid;
    grid-template-columns: 9.5em minmax(0, 1fr);
    gap: 14px;
    padding-block: 10px;
    border-block-end: 1px solid var(--line);
}

.congress-programme__lecture:last-child {
    border-block-end: 0;
}

.congress-programme__lecture-title {
    margin: 0;
    color: var(--ink);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.congress-programme__speaker {
    margin: 2px 0 0;
    color: var(--muted);
}

.congress-programme__speaker a,
.congress-programme__meta a {
    color: var(--congress-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.congress-programme__speaker .fa {
    margin-inline-end: 4px;
}

.congress-programme__break {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    padding: 10px 20px;
    border-radius: 12px;
    background: var(--congress-tint);
    color: var(--muted);
}

@media (max-width: 767px) {
    .congress-programme__session {
        padding: 14px;
    }

    .congress-programme__lecture {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

/* ------------------------------------------------------------ people: one card shape */

/* Every person's card the same shape, photo or initials, with or without a
   biography to open: the photo ring, then the words, the "more" at the foot. */
.conference-people > .conference-person {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.conference-person__card {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
}

.conference-person__card summary {
    flex: 1;
}

.conference-person__more {
    margin-block-start: auto;
}

.conference-person__photo {
    flex: 0 0 auto;
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px var(--brand-tint), 0 6px 16px rgba(20, 20, 40, .1);
}

.conference-person__photo--initials {
    background: linear-gradient(135deg, var(--brand-tint), color-mix(in srgb, var(--brand) 14%, #fff));
}

/* The tax under a room's price, and each hotel's terms below the table. */
.conference-rooms__tax { display: block; color: var(--muted, #6b6b6b); font-size: .8rem; }
.conference-hotel-terms { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.conference-hotel-terms li {
    display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 10px 14px;
    border-inline-start: 3px solid var(--congress, var(--brand)); background: var(--congress-tint, #faf6f6); border-radius: 8px;
}
.conference-hotel-terms strong { flex-basis: 100%; }

/* Sponsors grouped by tier: each tier a heading and a grid of cards, the
   logo above the sponsor's name; the higher the tier, the larger the card. */
.conference-sponsors + .conference-sponsors { margin-block-start: 22px; }
.conference-sponsors__tier {
    display: flex; align-items: center; gap: 12px; margin: 0 0 12px;
    font-size: 1rem; font-weight: 700; color: var(--congress, var(--brand)); text-transform: uppercase; letter-spacing: .06em;
}
.conference-sponsors__tier::after { content: ""; flex: 1; height: 1px; background: rgba(0, 0, 0, .1); }
.conference-sponsors__list {
    --card: 150px;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none;
}
.conference-sponsors--rank-1 .conference-sponsors__list { --card: 230px; }
.conference-sponsors--rank-2 .conference-sponsors__list { --card: 190px; }
.conference-sponsors__item {
    display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 12px;
    background: #fff; border: 1px solid rgba(0, 0, 0, .08); border-radius: 14px; text-align: center;
    transition: box-shadow .15s ease, transform .15s ease;
}
.conference-sponsors__item:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.conference-sponsors__logo { display: grid; place-items: center; width: 100%; height: 72px; }
.conference-sponsors--rank-1 .conference-sponsors__logo { height: 110px; }
.conference-sponsors--rank-2 .conference-sponsors__logo { height: 90px; }
.conference-sponsors__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.conference-sponsors__name { font-size: .9rem; font-weight: 600; color: var(--ink, #222); overflow-wrap: anywhere; }
@media (max-width: 575.98px) {
    .conference-sponsors__list { --card: 130px; gap: 10px; }
    .conference-sponsors--rank-1 .conference-sponsors__list { --card: 100%; }
    .conference-sponsors--rank-2 .conference-sponsors__list { --card: 140px; }
}

/* A congress's Contact tab: a card for each way of reaching the organisers, then the map. */
.congress-contact { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.congress-contact__card { position: relative; padding: 18px 16px 16px; background: #fff; border: 1px solid rgba(0, 0, 0, .08); border-radius: 14px; }
.congress-contact__card h3 { margin: 10px 0 6px; font-size: 1rem; font-weight: 700; }
.congress-contact__card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.congress-contact__card a { color: var(--ink, #222); overflow-wrap: anywhere; }
.congress-contact__card a:hover { color: var(--congress, var(--brand)); }
.congress-contact__card p { margin: 0; color: #444; }
.congress-contact__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--congress-tint, #fbf1f2); color: var(--congress, var(--brand)); font-size: 18px; }
.congress-contact__icon--whatsapp { background: #e7f9ee; color: #128c7e; }
.congress-contact__button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: #25d366; color: #fff !important; font-weight: 600; }
.congress-contact__social { display: flex !important; flex-wrap: wrap; gap: 8px !important; }
.congress-contact__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #f3f3f3; }
.congress-contact__notes { margin: 16px 0 0; padding: 12px 16px; border-inline-start: 3px solid var(--congress, var(--brand)); background: var(--congress-tint, #faf6f6); border-radius: 8px; }
.congress-contact__map { margin-top: 18px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(0, 0, 0, .08); aspect-ratio: 16 / 7; }
.congress-contact__map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 575.98px) { .congress-contact__map { aspect-ratio: 4 / 3; } }
