@font-face {
    font-family: Inter;
    src: url("../fonts/inter/InterVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: Inter;
    src: url("../fonts/inter/InterVariable-Italic.woff2") format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

body {
    color: var(--ink);
    margin: 0;
    min-height: 100vh;
    background: #b8edee url("../images/yfc-one-background.png") center / cover fixed no-repeat;
    font: 1rem/1.5 Inter, "Segoe UI", sans-serif;
}

.topbar {
    --header-shadow: 0 10px 35px rgba(31, 45, 82, .14);
    --header-hover: #f3f6fb;
    position: sticky;
    z-index: 20;
    top: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 72px;
    margin: 10px clamp(10px, 2vw, 28px) 0;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--header-shadow);
    backdrop-filter: blur(18px);
    font-size: .9375rem;
}
.brand-group { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.brand { display: flex; align-items: center; width: 205px; height: 52px; min-width: 0; }
.brand img { display: block; width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.main-nav { display: flex; align-self: stretch; gap: 2px; }
.main-nav a, .mobile-nav a, .mobile-nav button, .account-popover button {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: var(--ink);
    text-decoration: none;
}
.main-nav a {
    position: relative;
    min-height: 54px;
    padding: 0 14px;
    font-weight: 700;
    white-space: nowrap;
}
.main-nav a:hover { background: var(--header-hover); }
.main-nav a[aria-current] { color: #102f83; }
.main-nav a[aria-current]::after {
    content: "";
    position: absolute;
    inset: auto 12px -1px;
    height: 3px;
    background: #173f9e;
    border-radius: 3px 3px 0 0;
}
.booking-tabs a[aria-current]::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 4px;
    background: var(--navy);
    border-radius: 4px 4px 0 0;
}
.topbar-tools { display: flex; align-items: center; gap: 1rem; min-width: 0; margin-left: auto; }
.sign-in-button {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    border: 1px solid var(--navy);
    border-radius: .65rem;
    padding: .55rem .95rem;
    min-height: 2.65rem;
    color: var(--navy);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 650;
    white-space: nowrap;
}
.sign-in-button:hover { background: var(--soft-blue); }
.help-button, .mobile-menu > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 44px;
    padding: .5rem .7rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: #233487;
    font-weight: 600;
}
.help-button { flex-shrink: 0; }
.help-button:hover, .mobile-menu > summary:hover { background: #f1eef9; color: #233487; }
.help-button .icon { width: 1.1rem; height: 1.1rem; }
.account { position: relative; min-width: 0; }
.account > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 2px 8px 2px 2px;
    border-radius: 24px;
}
.account > summary:hover { background: var(--header-hover); }
.account > summary > .icon { width: 1rem; height: 1rem; }
.account-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    background: #14377e;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.account-avatar[hidden] { display: none; }
.account-avatar-photo { display: block; object-fit: cover; border: 1px solid var(--line); background: var(--header-hover); }
.account-copy { display: grid; min-width: 0; max-width: 11rem; line-height: 1.2; }
.account-copy :is(strong, small) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy strong { font-size: 13px; }
.account-copy small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.account-popover, .mobile-nav {
    position: absolute;
    z-index: 30;
    padding: 8px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--header-shadow);
}
.account-popover { top: calc(100% + 8px); right: 0; width: 14rem; border-radius: 10px; }
.account-popover button, .mobile-nav :is(a, button) {
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ink);
    font: inherit;
}
.account-popover button:hover, .mobile-nav :is(a:hover, button:hover, a[aria-current]) {
    background: var(--header-hover);
    color: #102f83;
}
.mobile-menu { display: none; }
.mobile-menu > summary { width: 44px; padding: 0; }
.mobile-nav { inset: calc(100% + 8px) 0 auto; border-radius: 12px; }

.events-help {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(100%, 520px);
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
    color: var(--ink);
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(31, 45, 82, .14);
}
.events-help[open] { display: flex; flex-direction: column; animation: events-help-in 180ms ease-out both; }
.events-help[open].is-closing { animation: events-help-out 140ms ease-in both; }
.events-help::backdrop { background: rgba(23, 35, 66, .5); }
.events-help > header { flex: none; background: #f5f3fc; }
.events-help-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.5rem;
}
.events-help h2 { color: #233487; font-size: 1.15rem; margin: 0; }
.events-help button {
    min-height: 44px;
    padding: .5rem .7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: #233487;
}
.events-help button:hover { background: #ece8f7; }
.events-help [hidden] { display: none; }
.events-help-artwork { display: block; width: 100%; height: auto; max-height: 170px; object-fit: cover; }
.events-help-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 1.25rem 1.5rem max(1.5rem, env(safe-area-inset-bottom));
}
.events-help [data-help-content] > h3 { margin: .75rem 0 1rem; font-size: 1.5rem; }
.events-help-article { line-height: 1.65; overflow-wrap: anywhere; }
.events-help-article h3 { margin: 1.2rem 0 .45rem; font-size: 1.1rem; }
.events-help-topics { display: grid; gap: .6rem; padding: 0; margin: 1rem 0; list-style: none; }
.events-help-topics button { width: 100%; justify-content: flex-start; text-align: left; }
@keyframes events-help-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes events-help-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(24px); } }
@media (prefers-reduced-motion: reduce) { .events-help[open], .events-help[open].is-closing { animation: none; } }
@media (max-height: 550px) { .events-help-artwork { max-height: 85px; } }

.skip-link { position: fixed; z-index: 30; top: .75rem; left: .75rem; padding: .65rem 1rem; border-radius: .55rem; background: var(--navy); color: white; }
.skip-link:not(:focus) { transform: translateY(-150%); }
main { padding-block: clamp(1rem, 1.8vw, 2rem) .5rem; }
.content { width: min(1560px, calc(100% - 2 * clamp(1rem, 4vw, 4.4rem))); margin-inline: auto; min-width: 0; }
footer { padding: 2rem 1rem; text-align: center; color: var(--navy); font-size: .85rem; }

@media (max-width: 58rem) {
    .topbar { top: 8px; height: 64px; }
    .brand { width: 170px; height: 48px; }
    .main-nav, .account { display: none; }
    .mobile-menu { display: block; margin-left: auto; }
    .topbar-tools { margin-left: 0; }
}
@media (max-width: 40rem) {
    .topbar, .brand-group { gap: .45rem; }
    .brand { width: 145px; }
    .help-button { padding-inline: .5rem; }
    .help-button .icon { display: none; }
}
@media (max-width: 30rem) {
    .topbar { margin: 6px 6px 0; padding: 6px 8px; border-radius: 12px; }
    .events-help-heading, .events-help-scroll { padding: .85rem 1rem; }
}
@media (max-width: 360px) {
    .sign-in-button { padding-inline: .55rem; }
}
