/* ============================================================
   Global styles
   ============================================================ */

body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
    background: #ffffff;
    color: #111111;
    line-height: 1.7;
}

a {
    text-decoration: none;
}

.content {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 24px;
}

.content section + section {
    margin-top: 34px;
}

.content h2 {
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #d7dde5;
    color: #1b2a41;
}

.content a,
.content a:visited {
    color: #005eb8;
    text-decoration: none;
}

.content a:focus {
    text-decoration: none;
}

.content a:hover {
    text-decoration: underline;
}

.content a:focus-visible {
    outline: 2px solid #385b80;
    outline-offset: 2px;
    text-decoration: underline;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0;
    padding-bottom: 6px;
}

.table-scroll table {
    margin-top: 0;
    margin-bottom: 0;
}

.table-scroll .fee-table,
.table-scroll .legal-table,
.table-scroll .participant-table {
    width: 100%;
    max-width: none;
}

.table-scroll .fee-table {
    min-width: 560px;
}

.table-scroll .legal-table,
.table-scroll .participant-table {
    min-width: 700px;
}

.hero {
    position: relative;
    height: 340px;
    overflow: hidden;
    background: #000;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(to right,
            rgba(0,0,0,0.85) 0%,
            rgba(0,0,0,0) 18%,
            rgba(0,0,0,0) 82%,
            rgba(0,0,0,0.85) 100%),
        url("image/image.png");

    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto 130%;

    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;

    max-width: 1000px;
    margin: 0 auto;

    color: white;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 20px 24px 0 24px;
}

.hero-title {
    margin: 0;
    font-size: clamp(24px, 6.6vw, 56px);
    font-weight: 300;
    line-height: 1.08;
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
    overflow-wrap: normal;
    word-break: keep-all;
}

.hero-subtitle {
    margin-top: 8px;
    font-size: clamp(24px, 6.6vw, 42px);
    font-weight: 300;
    line-height: 1.08;
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
    overflow-wrap: normal;
    word-break: keep-all;
}

.hero-date {
    margin-top: 12px;
    font-size: clamp(17px, 2.8vw, 22px);
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

@media (max-width: 900px) {
    .hero {
        height: 320px;
    }

    .hero-title {
        font-size: clamp(1px, 6.22vw, 56px);
        line-height: 1.12;
    }

    .hero-subtitle {
        font-size: clamp(1px, 4.67vw, 42px);
        line-height: 1.12;
    }

    .hero-date {
        font-size: clamp(1px, 2.44vw, 22px);
    }

    .hero-content {
        padding-top: 30px;
    }
}

@media (max-width: 700px) {
    .table-scroll .fee-table {
        min-width: 520px;
    }

    .table-scroll .legal-table,
    .table-scroll .participant-table {
        min-width: 640px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 300px;
    }

    .content {
        margin: 38px auto;
        padding: 0 18px;
    }
}

@media (max-width: 300px) {
    body {
        font-size: 0.6rem;
    }

    .content {
        padding: 0 14px;
    }

    .content h2 {
        font-size: 1.15rem;
    }

    .content h3 {
        font-size: 1.02rem;
    }
}

/* ============================================================
   Shared components
   ============================================================ */

.important-notice {
    margin-bottom: 28px;
    padding: 16px 18px;
    background: #fff4f4;
    border-left: 4px solid #cc3333;
    color: #992222;
    border-radius: 6px;
    line-height: 1.6;
}

.important-notice p:last-child {
    margin-bottom: 0;
}

.content a.button,
.content a.button:visited {
    display: inline-block;
    margin-bottom: 8px;
    padding: 9px 17px;
    border: 1px solid #385b80;
    border-radius: 6px;
    background: #ffffff;
    color: #385b80;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.content a.button:focus {
    text-decoration: none;
}

.content a.button:hover {
    background: #eef4fb;
    color: #385b80;
    border-color: #2d4968;
    text-decoration: none;
}

.content a.button:focus-visible {
    outline: 2px solid #385b80;
    outline-offset: 3px;
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.logo-area img {
    height: 44px;
    display: block;
}

.logo-area a,
.site-title a {
    color: white;
}

.site-title {
    color: white;
    font-size: 28px;
    font-weight: 500;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: white;
    font-size: 17px;
    position: relative;
    display: inline-block;
}

.nav-links a.active {
    font-weight: bold;
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: #66aaff;
}

.nav-links a:hover {
    color: #d8eaff;
}

.mobile-menu {
    display: none;
    color: white;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 4px 0 4px 12px;
}

@media (max-width: 900px) {
    .navbar {
        padding: 14px 22px;
    }

    .logo-area img {
        height: 38px;
    }

    .site-title {
        font-size: 22px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        right: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        background: rgba(0,0,0,0.95);
        padding: 18px 22px;
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    }

    .nav-links.open {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }
}

@media (max-width: 300px) {
    .site-title {
        font-size: 18px;
    }
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
    background: #18202a;
    color: #e8edf3;
    margin-top: 70px;
    border-top: 4px solid #385b80;
    text-align: center;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 28px 24px 32px;
}

.footer-address {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.6;
}

@media (max-width: 300px) {
    .footer-address {
        font-size: 0.6rem;
        line-height: 1.55;
    }
}

/* ============================================================
   index.html
   ============================================================ */

.home-hero .hero-subtitle {
    max-width: 100%;
}

.deadline-closed {
    display: inline-block;
    margin-left: 0.4em;
    padding: 0.05em 0.45em;
    border: 1px solid #b8b8b8;
    border-radius: 4px;
    color: #666666;
    background: #f2f2f2;
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
}

.group-photo {
    margin: 18px 0 12px;
}

.group-photo img {
    display: block;
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #d7dde5;
}

.group-photo figcaption {
    margin-top: 6px;
    color: #555555;
    font-size: 0.9rem;
    line-height: 1.45;
}

/* ============================================================
   program.html
   ============================================================ */

html {
    scroll-behavior: smooth;
}

.program-overview-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 18px 0 28px;
    padding-bottom: 6px;
}

.program-overview-grid {
    --program-slot-count: 120;
    --program-slot-height: 7px;

    display: grid;
    grid-template-columns: 48px repeat(5, minmax(145px, 1fr));
    min-width: 860px;
    border: 1px solid #d7dde5;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.program-time-header,
.program-day-header {
    background: #f0f4f8;
    color: #1b2a41;
    font-weight: 600;
    text-align: center;
    padding: 8px 6px;
    border-bottom: 1px solid #d7dde5;
}

.program-day-header {
    padding: 0;
    border-left: 1px solid #d7dde5;
    line-height: 1.25;
}

.program-day-header span {
    font-size: 0.88em;
    font-weight: 500;
    color: #555555;
}

.program-time-axis,
.program-day-column {
    display: grid;
    grid-template-rows: repeat(var(--program-slot-count), var(--program-slot-height));
    position: relative;
}

.program-time-axis {
    background: #fafafa;
    border-right: 1px solid #d7dde5;
    color: #555555;
    font-size: 0.78rem;
}

.program-time-label {
    padding-right: 6px;
    text-align: right;
    transform: translateY(-0.65em);
}

.program-time-label:first-child {
    transform: translateY(0.15em);
}

.program-day-column {
    grid-template-columns: 1fr;
    border-left: 1px solid #e3e8ef;
    background:
        repeating-linear-gradient(
            to bottom,
            #ffffff 0,
            #ffffff calc(var(--program-slot-height) * 12 - 1px),
            #f7f9fc calc(var(--program-slot-height) * 12)
        );
}

.program-block {
    grid-column: 1;
    position: relative;
    z-index: 1;

    margin: 2px 4px;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 0.76rem;
    line-height: 1.2;
    text-align: center;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.program-block-time {
    display: block;
    font-size: 0.82em;
    line-height: 1.15;
    opacity: 0.85;
    margin-bottom: 2px;
    font-weight: 500;
}

.program-block-title {
    display: block;
    font-weight: 600;
}

.program-block.compact {
    z-index: 3;

    padding: 2px 5px;
    font-size: 0.70rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.25em;
}

.program-block-time-inline {
    display: inline-flex;
    align-items: center;
    align-self: center;
    font-size: 0.82em;
    line-height: 1.15;
    font-weight: 400;
    opacity: 0.85;
}

.program-block-title-inline {
    display: inline-flex;
    align-items: center;
    align-self: center;
    line-height: 1.15;
    font-weight: 600;
}

.program-block.session {
    background: #eef6fd;
    border: 1px solid #cfddea;
    color: #1b2a41;
}

.program-block.break {
    background: #f5f5f5;
    border: 1px solid #dddddd;
    color: #555555;
}

.program-block.lunch {
    background: #fff8e6;
    border: 1px solid #e2c87a;
    color: #5f4300;
}

.program-block.event {
    background: #f0f4f8;
    border: 1px solid #b8c7d8;
    color: #1b2a41;
    font-weight: 600;
}

.program-block.special {
    background: #fff4f4;
    border: 1px solid #e3b7b7;
    color: #992222;
    font-weight: 600;
}

.program-block.special .program-block-time-inline {
    font-weight: 400;
}

.program-block.special .program-block-title-inline {
    font-weight: 600;
}

.program-day-header a,
.program-day-header a:visited {
    display: block;
    height: 100%;
    padding: 8px 6px;
    box-sizing: border-box;
    color: #1b2a41;
    text-decoration: none;
    transition: background-color 0.18s ease;
}

.program-day-header a:hover {
    background: #dfe7f0;
    text-decoration: none;
}

.program-day-header a:focus {
    text-decoration: none;
}

.program-day-header a:focus-visible {
    background: #dfe7f0;
    outline: 2px solid #385b80;
    outline-offset: -2px;
}

.program-day-header a:focus:not(:focus-visible):not(:hover) {
    background: transparent;
}

.content a.program-block-link,
.content a.program-block-link:visited {
    color: #1b2a41;
    text-decoration: none;
    transition: background-color 0.18s ease;
}

.content a.program-block-link:hover {
    background: #dfe7f0;
    color: #1b2a41;
    text-decoration: none;
}

.content a.program-block-link:focus {
    color: #1b2a41;
    text-decoration: none;
}

.content a.program-block-link:focus-visible {
    background: #dfe7f0;
    outline: 2px solid #385b80;
    outline-offset: -2px;
}

.content a.program-block-link:focus:not(:focus-visible):not(:hover) {
    background: #f0f4f8;
}

.program-detail {
    margin-top: 42px;
}

.program-day-detail {
    scroll-margin-top: 92px;
}

.program-day-detail + .program-day-detail {
    margin-top: 38px;
}

.program-day-detail h3 {
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 6px;
    border-bottom: 1px solid #d7dde5;
    color: #1b2a41;
}

.program-chair {
    margin: 16px 0 8px;
    font-weight: 600;
    color: #1b2a41;
}

.program-talk-list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
}

.program-talk-list li {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 2px;
    padding: 9px 0;
    border-bottom: 1px solid #eef1f5;
}

.program-talk-time {
    grid-row: 1 / span 2;
    color: #555555;
    font-size: 0.94rem;
    white-space: nowrap;
}

.program-talk-speaker {
    font-weight: 600;
    color: #1b2a41;
}

.program-talk-title {
    display: block;
    color: #111111;
}

.talk-links {
    display: inline-flex;
    align-items: center;
    margin-left: 0.45em;
    font-size: 0.86rem;
    white-space: nowrap;
    vertical-align: baseline;
}

.slides-link,
.slides-link:visited {
    display: inline-flex;
    align-items: center;
    padding: 0.05em 0.45em;
    border: 1px solid #cfddea;
    border-radius: 999px;
    background: #ffffff;
    color: #385b80;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

.content a.slides-link:hover,
.content a.slides-link:focus {
    background: #eef4fb;
    border-color: #385b80;
    color: #385b80;
    text-decoration: none;
}

.content a.slides-link:focus-visible {
    outline: 2px solid #385b80;
    outline-offset: 2px;
    text-decoration: none;
}

.program-detail-break,
.program-detail-special,
.program-detail-event {
    margin: 14px 0;
    padding: 8px 12px;
    border-radius: 6px;
    line-height: 1.45;
}

.program-detail-break {
    background: #f5f5f5;
    border-left: 4px solid #dddddd;
    color: #555555;
}

.program-detail-special {
    background: #fff4f4;
    border-left: 4px solid #e3b7b7;
    color: #992222;
    font-weight: 600;
}

.program-detail-event {
    background: #f0f4f8;
    border-left: 4px solid #b8c7d8;
    color: #1b2a41;
    font-weight: 600;
}

.program-detail-event-note {
    font-weight: 400;
}


#program-timetable {
    scroll-margin-top: 92px;
}

/* Floating Back to top button for the program page */
.program-floating-button,
.program-floating-button:visited {
    position: fixed;
    right: calc(14px + env(safe-area-inset-right));
    bottom: 24px;
    z-index: 900;

    padding: 8px 13px;
    border: 1px solid #385b80;
    border-radius: 6px;
    background: #ffffff;
    color: #385b80;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(0,0,0,0.18);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.program-floating-button.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.program-floating-button:hover,
.program-floating-button:focus {
    background: #eef4fb;
    color: #385b80;
    border-color: #2d4968;
    text-decoration: none;
}

.program-floating-button:focus-visible {
    outline: 2px solid #385b80;
    outline-offset: 2px;
}

/* Collapsible abstracts in the detailed program */
.program-abstract {
    grid-column: 2;
    margin-top: 3px;
    font-size: 0.92rem;
}

.program-abstract summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    color: #385b80;
    font-weight: 600;
    cursor: pointer;
}

.program-abstract summary::-webkit-details-marker {
    display: none;
}

.program-abstract summary::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid #385b80;
    transition: transform 0.15s ease;
}

.program-abstract[open] summary::before {
    transform: rotate(90deg);
}

.program-abstract summary:hover,
.program-abstract summary:focus {
    color: #2d4968;
}

.program-abstract summary:focus {
    outline: none;
}

.program-abstract summary:focus-visible {
    outline: 2px solid #385b80;
    outline-offset: 3px;
    border-radius: 3px;
}

.program-abstract-body {
    margin: 6px 0 2px;
    padding: 8px 11px;
    border-left: 3px solid #cfddea;
    border-radius: 0 5px 5px 0;
    background: #f7f9fc;
    color: #333333;
    line-height: 1.55;
}


.poster-presentation-list li {
    grid-template-columns: 72px minmax(0, 1fr);
}

.poster-number {
    grid-row: 1 / span 3;
    color: #1b2a41;
    font-weight: 700;
    white-space: nowrap;
}

.poster-presentation-list .program-abstract {
    grid-column: 2;
}

@media (min-width: 1300px) {
    .program-floating-button,
    .program-floating-button:visited {
        right: max(24px, calc((100vw - 1000px) / 2 - 120px));
    }
}

@media (max-width: 700px) {
    #program-timetable {
        scroll-margin-top: 82px;
    }

    .program-overview-grid {
        min-width: 820px;
    }

    .program-block {
        font-size: 0.72rem;
        padding: 3px 5px;
    }

    .program-block-time {
        font-size: 0.78em;
    }

    .program-block.compact {
        font-size: 0.68rem;
    }

    .program-block-time-inline {
        font-size: 0.78em;
    }

    .program-day-detail {
        scroll-margin-top: 82px;
    }

    .program-talk-list li {
        grid-template-columns: 1fr;
        padding: 10px 0;
    }

    .program-talk-time {
        grid-row: auto;
        margin-bottom: 2px;
    }

    .program-talk-speaker,
    .program-talk-title {
        display: block;
    }

    .talk-links {
        display: inline-flex;
        margin-left: 0;
        margin-top: 2px;
    }

    .program-abstract {
        grid-column: 1;
    }

    .poster-presentation-list li {
        grid-template-columns: 1fr;
    }

    .poster-number {
        grid-row: auto;
        margin-bottom: 2px;
    }

    .poster-presentation-list .program-abstract {
        grid-column: 1;
    }
}

@media (max-width: 580px) {
    .program-floating-button,
    .program-floating-button:visited {
        right: calc(10px + env(safe-area-inset-right));
        padding: 7px 11px;
        font-size: 0.84rem;
    }
}

/* ============================================================
   presentation-guidelines.html
   ============================================================ */

.presentation-guidelines h3 {
    margin-top: 24px;
    margin-bottom: 8px;
    color: #1b2a41;
}

.guideline-placeholder,
.guideline-note {
    margin: 12px 0 0;
    padding: 12px 14px;
    border-radius: 6px;
    line-height: 1.6;
}

.guideline-placeholder {
    border-left: 4px solid #d6a23a;
    background: #fff8e6;
    color: #5f4300;
}

.guideline-note {
    border-left: 4px solid #cfddea;
    background: #f7f9fc;
    color: #333333;
}

.guideline-placeholder p,
.guideline-note p {
    margin: 0;
}

/* ============================================================
   registration.html
   ============================================================ */

.fee-table {
    border-collapse: collapse;
    width: 100%;
    max-width: 840px;
    margin: 16px 0;
}

.fee-table th,
.fee-table td {
    border: 1px solid #d7dde5;
    padding: 10px 14px;
    text-align: left;
}

.fee-table th {
    background: #f0f4f8;
    color: #1b2a41;
}

.fee-table td:first-child {
    font-weight: 600;
}

.content a.link-card,
.content a.link-card:visited {
    display: inline-block;
    width: fit-content;
    padding: 16px 18px;
    border: 1px solid #cfddea;
    border-left: 4px solid #385b80;
    border-radius: 8px;
    background: #f6fbff;
    color: #1b2a41;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.content a.link-card:focus {
    text-decoration: none;
}

.content a.link-card:hover {
    background: #eef6fd;
    border-color: #385b80;
    text-decoration: none;
    transform: translateY(-1px);
}

.content a.link-card:focus-visible {
    outline: 2px solid #385b80;
    outline-offset: 3px;
}

.link-card-title {
    display: block;
    font-weight: 600;
    font-size: 1.02rem;
    margin-bottom: 4px;
}

.link-card-detail {
    display: block;
    color: #555555;
    font-size: 0.94rem;
}

.payment-options-row {
    display: grid;
    grid-template-columns: max-content max-content minmax(240px, 1fr);
    gap: 14px;
    align-items: stretch;
    margin: 18px 0 20px;
}

.payment-options-row.single-payment-option {
    grid-template-columns: max-content minmax(240px, 1fr);
}

.payment-warning {
    padding: 14px 16px;
    background: #fff4f4;
    color: #992222;
    font-size: 0.95rem;
    line-height: 1.6;
}

.deadline-note {
    margin: 10px 0 16px;
    padding: 10px 13px;
    border-left: 4px solid #d6a23a;
    border-radius: 6px;
    background: #fff8e6;
    color: #5f4300;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .payment-options-row {
        grid-template-columns: max-content max-content minmax(0, 1fr);
    }

    .payment-warning {
        grid-column: 1 / -1;
    }

    .payment-options-row.single-payment-option {
        grid-template-columns: max-content minmax(0, 1fr);
    }

    .payment-options-row.single-payment-option .payment-warning {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .fee-table {
        max-width: 100%;
        table-layout: fixed;
        font-size: 0.85rem;
    }

    .fee-table th,
    .fee-table td {
        padding: 8px 8px;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 580px) {
    .payment-options-row {
        grid-template-columns: 1fr;
    }

    .content a.link-card,
    .content a.link-card:visited {
        width: fit-content;
        max-width: 100%;
    }

    .payment-warning {
        grid-column: 1;
    }

    .payment-options-row.single-payment-option {
        grid-template-columns: 1fr;
    }

    .payment-options-row.single-payment-option .payment-warning {
        grid-column: 1;
    }
}

@media (max-width: 300px) {
    .link-card-title {
        font-size: 0.95rem;
    }

    .link-card-detail,
    .payment-warning,
    .payment-note,
    .legal-link-note {
        font-size: 0.86rem;
    }

    .fee-table {
        font-size: 0.8rem;
    }

    .fee-table th,
    .fee-table td {
        padding: 6px 6px;
    }
}

/* ============================================================
   participants.html
   ============================================================ */

.participant-table {
    border-collapse: collapse;
    width: 100%;
    max-width: 840px;
    margin: 14px 0;
    font-size: 0.92rem;
}

.participant-table th,
.participant-table td {
    border: 1px solid #d7dde5;
    padding: 6px 10px;
    text-align: left;
    line-height: 1.45;
}

.participant-table th {
    background: #f0f4f8;
    color: #1b2a41;
    font-weight: 600;
}

.participant-table td {
    vertical-align: top;
}

.participant-table.sortable-table th {
    padding: 0;
}

.participant-table th:nth-child(1),
.participant-table td:nth-child(1) {
    min-width: 130px;
}

.participant-table th:nth-child(2),
.participant-table td:nth-child(2) {
    min-width: 230px;
}

.participant-table th:nth-child(3),
.participant-table td:nth-child(3) {
    min-width: 260px;
}

.participant-table .sort-button {
    white-space: nowrap;
}

.sort-button {
    width: 100%;
    padding: 6px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45em;
}

.sort-button:hover,
.sort-button:focus {
    background: #dfe8f2;
    outline: none;
}

.sort-button:focus-visible {
    outline: 2px solid #385b80;
    outline-offset: -2px;
}

.sort-indicator {
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 2px;
}

.sort-caret-up,
.sort-caret-down {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    opacity: 0.35;
}

.sort-caret-up {
    border-bottom: 5px solid #1b2a41;
}

.sort-caret-down {
    border-top: 5px solid #1b2a41;
}

.sort-button.sort-asc .sort-caret-up,
.sort-button.sort-desc .sort-caret-down {
    opacity: 1;
}

.sort-button.sort-asc .sort-caret-down,
.sort-button.sort-desc .sort-caret-up {
    opacity: 0.18;
}

.participant-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 10px 0 8px;
    color: #555555;
    font-size: 0.95rem;
    font-weight: 600;
}


#participant-list-top {
    scroll-margin-top: 92px;
}


/* Floating navigation buttons for the participant list */
.participant-floating-button,
.participant-floating-button:visited {
    position: fixed;
    right: calc(14px + env(safe-area-inset-right));
    z-index: 900;

    padding: 8px 13px;
    border: 1px solid #385b80;
    border-radius: 6px;
    background: #ffffff;
    color: #385b80;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(0,0,0,0.18);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.participant-floating-top {
    bottom: 66px;
}

.participant-floating-bottom {
    bottom: 24px;
}

.participant-floating-button.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.participant-floating-button:hover,
.participant-floating-button:focus {
    background: #eef4fb;
    color: #385b80;
    border-color: #2d4968;
    text-decoration: none;
}

.participant-floating-button:focus-visible {
    outline: 2px solid #385b80;
    outline-offset: 2px;
}

.participant-list-bottom-anchor {
    display: block;
    height: 0;
    scroll-margin-top: 92px;
}

.back-to-participant-top {
    display: none;
}

body[data-page="participants"] .participant-floating-nav {
    display: none;
}

.participant-table tbody tr:nth-child(even) td {
    background: #f7f9fc;
}

@media (min-width: 1300px) {
    .participant-floating-button,
    .participant-floating-button:visited {
        right: max(24px, calc((100vw - 1000px) / 2 - 120px));
    }
}

@media (max-width: 900px) {
    .participant-table {
        font-size: clamp(0.78rem, 1.55vw, 0.92rem);
        margin: clamp(10px, 1.55vw, 14px) 0;
    }

    .participant-table th,
    .participant-table td {
        padding:
            clamp(4px, 0.9vw, 6px)
            clamp(6px, 1.1vw, 10px);
        overflow-wrap: anywhere;
    }

    .participant-table.sortable-table th {
        padding: 0;
    }

    .sort-button {
        padding:
            clamp(4px, 0.9vw, 6px)
            clamp(6px, 1.1vw, 10px);
    }
}

@media (max-width: 700px) {
    #participant-list-top,
    .participant-list-bottom-anchor {
        scroll-margin-top: 82px;
    }
}

@media (max-width: 580px) {
    .participant-floating-button,
    .participant-floating-button:visited {
        right: calc(10px + env(safe-area-inset-right));
        padding: 7px 11px;
        font-size: 0.84rem;
    }

    .participant-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 300px) {
    .participant-table {
        font-size: 0.74rem;
    }

    .participant-table th,
    .participant-table td {
        padding: 4px 5px;
        line-height: 1.35;
    }

    .participant-table.sortable-table th {
        padding: 0;
    }

    .sort-button {
        padding: 4px 5px;
        line-height: 1.35;
    }
}

/* ============================================================
   venue.html
   ============================================================ */

.map-container {
    margin-top: 24px;
}

.map-container iframe {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
}

.access-text {
    margin-top: 24px;
}

.airport-access {
    margin-top: 28px;
}

.airport-access h3 {
    margin-bottom: 12px;
}

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

.access-route-card {
    padding: 16px 18px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background: #fafafa;
}

.access-route-card h4 {
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #d7dde5;
    color: #1b2a41;
    font-size: 1rem;
    font-weight: 600;
}

.access-route-card p {
    margin: 0;
}

.route-detail {
    display: block;
    margin: 2px 0 8px 1.2em;
    color: #555555;
    font-size: 0.94rem;
}

.venue-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 28px;
}

.venue-photo-grid figure {
    margin: 0;
}

.venue-photo-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #d7dde5;
    display: block;
}

.venue-photo-grid figcaption {
    margin-top: 6px;
    color: #555555;
    font-size: 0.88rem;
    line-height: 1.45;
}

.map-number {
    display: inline-block;
    min-width: 1.5em;
    margin-left: 2px;
    margin-right: 2px;
    border: 1px solid #000000;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    vertical-align: baseline;
}

.map-number-green {
    background: #28785B;
}

.map-number-brown {
    background: #835936;
}

@media (max-width: 700px) {
    .route-grid {
        grid-template-columns: 1fr;
    }

    .venue-photo-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   events.html
   ============================================================ */

/* No page-specific styles. Shared notice styles are defined under Shared components. */

/* ============================================================
   code-of-conduct.html
   ============================================================ */

/* No page-specific styles. */

/* ============================================================
   specified-commercial-transactions.html
   ============================================================ */

.legal-table {
    border-collapse: collapse;
    width: 100%;
    margin: 16px 0;
}

.legal-table th,
.legal-table td {
    border: 1px solid #d7dde5;
    padding: 10px 14px;
    text-align: left;
}

.legal-table th {
    background: #f0f4f8;
    color: #1b2a41;
}

.legal-table p {
    margin: 0 0 0.45em;
}

.legal-table p:last-child {
    margin-bottom: 0;
}

@media (max-width: 300px) {
    .legal-table {
        font-size: 0.8rem;
    }

    .legal-table th,
    .legal-table td {
        padding: 6px 6px;
    }
}

/* ============================================================
   payment-complete.html
   ============================================================ */

/* No page-specific styles. Button styles are defined under Shared components. */