/* EWGLA 2027 — design system (no framework) */

:root {
  --navy: #0a2540;
  --navy-2: #0f3358;
  --blue: #005e96;
  --blue-2: #0b7bc0;
  --sky: #eaf3fa;
  --tint: #f5f8fb;
  --accent: #ffd23f;
  --accent-2: #ffc400;
  --ink: #16212e;
  --muted: #5b6978;
  --line: #e2e8ef;
  --white: #fff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, .06), 0 2px 8px rgba(10, 37, 64, .06);
  --shadow: 0 10px 30px rgba(10, 37, 64, .12);
  --header-h: 72px;

  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6em; color: var(--navy); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 48px); }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tint { background: var(--tint); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.plain-list { list-style: none; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Buttons ------------------------------------------------------------ */
.btn { white-space: nowrap; display: inline-flex; align-items: center; gap: .55em; padding: .65em 1.25em; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: .85em 1.6em; font-size: 1.02rem; }
.btn--accent { background: var(--accent); color: var(--navy); }
.btn--accent:hover { background: var(--accent-2); box-shadow: 0 8px 20px rgba(255, 196, 0, .35); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-2); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .18); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow .icon { transition: transform .15s; }

/* Header ------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header__inner { width: min(1320px, 100% - 40px); display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); flex: none; }
.brand img { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 1.05rem; letter-spacing: .01em; }
.brand__text small { color: var(--muted); font-size: .76rem; }

.nav { display: flex; align-items: center; gap: 10px; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: .3em; padding: .5em .6em; border: 0; background: none; font: inherit; font-size: .9rem; font-weight: 500; color: var(--ink); text-decoration: none; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.nav__link:hover, .has-dropdown.is-open > .nav__link { background: var(--sky); color: var(--blue); }
.nav__link[aria-current="page"] { color: var(--blue); background: var(--sky); }
.icon--chevron { width: 1em; height: 1em; transition: transform .2s; }
.is-open > .nav__link .icon--chevron { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; list-style: none; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.dropdown--right { left: auto; right: 0; min-width: 160px; }
.dropdown a { display: block; padding: .6em .9em; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .92rem; }
.dropdown a:hover, .dropdown a[aria-current] { background: var(--sky); color: var(--blue); }
.is-open > .dropdown, .has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1320px) {
  .has-dropdown:hover > .dropdown { opacity: 1; visibility: visible; transform: none; }
}
.nav__lang .nav__link { color: var(--muted); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; border-radius: 12px; color: var(--navy); cursor: pointer; }
.nav-toggle .icon { width: 24px; height: 24px; }

@media (max-width: 1319px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 24px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h)); overflow-y: auto; display: none; }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link { width: 100%; justify-content: space-between; padding: .8em .6em; border-radius: 10px; }
  .dropdown { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 12px; min-width: 0; }
  .is-open > .dropdown { display: block; }
  .has-dropdown:focus-within > .dropdown { display: none; }
  .is-open:focus-within > .dropdown { display: block; }
  .nav__cta { justify-content: center; }
}
@media (max-width: 480px), (min-width: 1320px) and (max-width: 1439px) { .brand__text small { display: none; } }

/* Hero --------------------------------------------------------------- */
.hero { position: relative; min-height: clamp(520px, 82vh, 780px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy); isolation: isolate; }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; transition: opacity 1.4s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img, .hero__slide video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero__slide.is-active img { animation: kenburns 9s ease-out forwards; }
.hero__slide--video video { transform: none; }
@keyframes kenburns { to { transform: scale(1.12); } }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(10, 37, 64, .92) 0%, rgba(10, 37, 64, .66) 48%, rgba(10, 37, 64, .15) 100%),
  linear-gradient(0deg, rgba(10, 37, 64, .55) 0%, transparent 35%); }
.hero__content { position: relative; z-index: 1; padding-block: 96px 120px; }
.hero__content > * { max-width: 740px; }
.eyebrow { display: inline-block; margin-bottom: 1.1em; padding: .35em .9em; border-radius: 999px; background: rgba(255, 210, 63, .16); color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow--dark { background: var(--sky); color: var(--blue); }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5.2vw, 3.8rem); margin-bottom: .35em; text-wrap: balance; }
.hero__sub { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: rgba(255, 255, 255, .88); }
.hero__where { display: flex; align-items: center; gap: .5em; color: var(--accent); font-weight: 600; margin-bottom: 1.8em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__dots { position: absolute; z-index: 2; left: 50%; bottom: 84px; transform: translateX(-50%); display: flex; gap: 10px; }
.hero__dots button { width: 34px; height: 5px; padding: 0; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .4); cursor: pointer; transition: background .2s, width .2s; }
.hero__dots button.is-active { background: var(--accent); width: 54px; }
@media (max-width: 720px) {
  .hero__shade { background: linear-gradient(0deg, rgba(10, 37, 64, .9) 0%, rgba(10, 37, 64, .55) 100%); }
  .hero__dots { left: 24px; transform: none; }
}

/* Key dates (overlaps the hero) --------------------------------------- */
.key-dates { position: relative; z-index: 3; margin-top: -64px; }
.key-dates__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.key-date { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.key-date__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--sky); color: var(--blue); }
.key-date__icon .icon { width: 24px; height: 24px; }
.key-date time { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--navy); }
.key-date p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Sections ----------------------------------------------------------- */
.section-heading { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.section-heading--center { text-align: center; margin-bottom: 1.4em; }
.welcome { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.welcome__art { margin: 0; }
.welcome__art img { border-radius: 22px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 880px) { .welcome { grid-template-columns: 1fr; } }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature-card { display: flex; flex-direction: column; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 16px; background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; }
.feature-card__icon .icon { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.3rem; }
.feature-card p { color: var(--muted); flex: 1; }
.feature-card__more { display: inline-flex; align-items: center; gap: .4em; color: var(--blue); font-weight: 600; font-size: .92rem; }
.feature-card:hover .feature-card__more .icon { transform: translateX(4px); }
.feature-card__more .icon { transition: transform .15s; }

.band { position: relative; padding-block: clamp(72px, 10vw, 128px); color: #fff; text-align: center; background: linear-gradient(rgba(10, 37, 64, .6), rgba(10, 37, 64, .72)), var(--band-image) center / cover fixed; }
.band h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.band .eyebrow { margin-bottom: .6em; }

.partners { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; max-width: 980px; margin-inline: auto; }
.partner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 22px 16px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s, transform .2s; }
.partner:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.partner img { width: auto; height: auto; max-width: 150px; max-height: 64px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .25s, opacity .25s; }
.partner:hover img { filter: none; opacity: 1; }
.partner span { font-size: .8rem; color: var(--muted); text-align: center; }

/* Inner pages -------------------------------------------------------- */
.page-header { background: radial-gradient(1200px 400px at 85% -20%, rgba(11, 123, 192, .55), transparent 60%), linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding-block: clamp(36px, 6vw, 64px); }
.page-header h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin: 0; }
.breadcrumb { display: flex; gap: .6em; margin-bottom: .8em; font-size: .85rem; color: rgba(255, 255, 255, .7); }
.breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.prose { font-size: 1.06rem; line-height: 1.75; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--blue); }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.6em 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .98rem; }
.prose th, .prose td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--navy); color: #fff; font-weight: 600; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) { background: var(--tint); }
.prose td:not(:first-child), .prose th:not(:first-child) { text-align: center; }
.prose tbody td:not(:first-child) { font-weight: 700; color: var(--blue); }
.prose .small { font-size: .88rem; color: var(--muted); }

.member-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.member { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s, transform .2s; }
.member:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.member__avatar { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.member strong { display: block; color: var(--navy); line-height: 1.3; }
.member span:not(.member__avatar) { color: var(--muted); font-size: .9rem; line-height: 1.35; display: block; }

.timeline { list-style: none; position: relative; padding-left: 0; }
.timeline::before { content: ""; position: absolute; left: 53px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.timeline__item { position: relative; display: flex; align-items: center; gap: 32px; padding: 14px 0; }
.timeline__item::before { content: ""; position: absolute; left: 47px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--navy); }
.timeline time { width: 100px; flex: none; text-align: center; background: #fff; }
.timeline time strong { display: block; font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--navy); }
.timeline time span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.timeline p { margin: 0 0 0 20px; padding: 18px 24px; flex: 1; background: var(--tint); border-radius: var(--radius); font-size: 1.1rem; font-weight: 600; color: var(--navy); }

.contact-card { display: flex; align-items: center; gap: 24px; padding: 32px; background: var(--tint); border-radius: var(--radius); border: 1px solid var(--line); }
.contact-card .icon { width: 48px; height: 48px; padding: 12px; background: var(--blue); color: #fff; border-radius: 16px; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card__mail { font-family: var(--font-display); font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 700; text-decoration: none; }

.venue-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-top: 40px; }
.venue-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.venue-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.venue-card__body { padding: 24px 28px 8px; font-size: 1rem; }
.venue-card__body h2 { margin-top: 0; font-size: 1.5rem; }
.venue-map { height: 440px; margin-top: 16px; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); z-index: 0; }

.empty-state { text-align: center; padding-block: 96px; }
.empty-state__code { font-family: var(--font-display); font-size: clamp(4rem, 12vw, 8rem); font-weight: 700; line-height: 1; margin: 0; color: var(--sky); -webkit-text-stroke: 2px var(--blue); }

/* Footer ------------------------------------------------------------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .78); }
.site-footer a { color: var(--accent); }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1em; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-block: 64px 40px; }
.brand--footer { color: #fff; margin-bottom: 16px; }
.footer-bottom { padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; }
.site-footer .muted { color: rgba(255, 255, 255, .6); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .band { background-attachment: scroll; }
}

@media (max-width: 640px) {
  .prose table { font-size: .88rem; }
  .prose th, .prose td { padding: 10px 8px; }
  .prose td:first-child { width: 38%; }
  .container { width: min(1180px, 100% - 32px); }
  .container--narrow { width: min(820px, 100% - 32px); }
}

/* Registration ------------------------------------------------------- */
.fees { margin: 2em 0 1em; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.fee-table { width: 100%; border-collapse: collapse; background: #fff; }
.fee-table th, .fee-table td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.fee-table thead th { background: var(--navy); color: #fff; font-weight: 600; vertical-align: bottom; }
.fee-table thead th small, .fee-table tbody th small { display: block; font-weight: 400; font-size: .8rem; opacity: .8; margin-top: 2px; }
.fee-table tbody th { font-weight: 600; color: var(--navy); }
.fee-table tbody th small { color: var(--muted); opacity: 1; }
.fee-table tbody tr:last-child > * { border-bottom: 0; }
.fee-table td { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--muted); }
.fee-table .is-current { background: var(--sky); color: var(--blue); }
.fee-table thead .is-current { background: var(--blue); color: #fff; }
.fees__cta { text-align: center; margin: 2em 0; }

.form-section { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px 28px; margin: 0 0 24px; background: #fff; }
.form-section legend { padding: 0 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--navy); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-section { padding: 18px; } }
.field { margin-bottom: 18px; }
.field label, .field__label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .92rem; color: var(--navy); }
.field .req { color: #c53030; margin-left: 2px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea, .field select { width: 100%; padding: .75em .9em; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #cfd8e1; border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 94, 150, .15); }
.field--error input, .field--error textarea { border-color: #c53030; }
.field__help { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.field__error { margin: 6px 0 0; font-size: .88rem; color: #c53030; font-weight: 600; }
.check { display: flex !important; align-items: flex-start; gap: 12px; font-weight: 500 !important; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

.option-list { display: grid; gap: 12px; }
.option-card { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.option-card:hover { border-color: #b8c7d6; }
.option-card:has(input:checked) { border-color: var(--blue); background: var(--sky); box-shadow: 0 0 0 3px rgba(0, 94, 150, .12); }
.option-card input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.option-card__body { flex: 1; }
.option-card__body strong { display: block; color: var(--navy); }
.option-card__body small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.4; margin-top: 2px; }
.option-card__price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--blue); }

.segmented { display: inline-flex; padding: 4px; background: var(--tint); border: 1px solid var(--line); border-radius: 999px; }
.segmented > div { display: flex; }
.segmented label { display: inline-block; margin: 0; }
.segmented input { position: absolute; opacity: 0; }
.segmented label { padding: .5em 1.2em; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--muted); }
.segmented label:has(input:checked) { background: var(--blue); color: #fff; }

.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; border: 1px solid; }
.alert p { margin: .4em 0 0; }
.alert--success { background: #effaf3; border-color: #a7dfba; color: #1c4532; }
.alert--error { background: #fff3f3; border-color: #f1b5b5; color: #742a2a; }

.ref-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px; margin-bottom: 20px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: var(--radius); }
.ref-card__label { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.ref-card__number { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(1.6rem, 5vw, 2.4rem); letter-spacing: .12em; color: var(--accent); }
.status { padding: .45em 1.1em; border-radius: 999px; font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; background: #fff; }
.status--pending { color: #b7791f; }
.status--approved { color: #2f855a; }
.status--rejected { color: #c53030; }
.summary { margin: 0 0 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.summary > div { display: flex; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.summary > div:last-child { border-bottom: 0; }
.summary > div:nth-child(even) { background: var(--tint); }
.summary dt { width: 190px; flex: none; color: var(--muted); font-size: .92rem; }
.summary dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 560px) { .summary > div { flex-direction: column; gap: 2px; } .summary dt { width: auto; } }
.small { font-size: .88rem; }

/* Accounts ----------------------------------------------------------- */
.auth { padding-block: clamp(32px, 6vw, 80px); background: var(--tint); min-height: 60vh; }
.auth__card { width: min(560px, 100% - 32px); margin-inline: auto; padding: clamp(24px, 4vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.auth__card h1 { font-size: 1.9rem; margin-bottom: .5em; }
.auth__links { margin: 18px 0 0; text-align: center; font-size: .92rem; }
.auth__alt { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-size: .95rem; color: var(--muted); }
.btn--block { display: flex; justify-content: center; width: 100%; }
.btn--sm { padding: .45em 1em; font-size: .85rem; }
.field input[type="password"], .field input[type="number"], .field input[type="url"] { width: 100%; padding: .75em .9em; font: inherit; border: 1.5px solid #cfd8e1; border-radius: var(--radius-sm); }
.field input[type="password"]:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 94, 150, .15); }
.field__help ul { margin: 6px 0 0; padding-left: 1.2em; }
.summary--compact { margin-bottom: 20px; }
.messages { padding-top: 16px; }
.alert--warning { background: #fffaf0; border-color: #f6d9a0; color: #7b4a0b; }
.verify-banner { background: #fffaf0; border-bottom: 1px solid #f6d9a0; color: #7b4a0b; font-size: .92rem; }
.verify-banner__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-block: 10px; }
.verify-banner form { margin: 0; }
.verify-banner .btn { border: 0; }
.nav__account-name { max-width: 9ch; overflow: hidden; text-overflow: ellipsis; }
.dropdown form { margin: 0; }
.dropdown__button { display: block; width: 100%; padding: .6em .9em; border: 0; border-radius: 8px; background: none; font: inherit; font-size: .92rem; text-align: left; color: var(--ink); cursor: pointer; }
.dropdown__button:hover { background: var(--sky); color: var(--blue); }

/* Submission --------------------------------------------------------- */
.info-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 28px; }
.info-strip > div { padding: 16px 18px; background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); }
.info-strip span { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.info-strip strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--navy); }
.text-ok { color: #2f855a !important; }
.text-bad { color: #c53030 !important; }
.section-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 14px; }
.section-bar .section-heading { margin: 0; }
.abstract-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; margin-bottom: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.abstract-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.abstract-card__main strong { display: block; color: var(--navy); }
.status--draft { color: #718096; }
.status--submitted { color: #b7791f; }
.status--withdrawn { color: #4a5568; }
.abstract-card .status, .ref-card .status { white-space: nowrap; }
.abstract-card .status { background: var(--tint); }
.abstract-title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 1em; }
.abstract-text { padding: 20px 24px; background: var(--tint); border-radius: var(--radius); }
.author-list { padding-left: 1.3em; }
.author-list li { margin-bottom: .8em; }
.tag { padding: .1em .6em; border-radius: 999px; background: var(--sky); color: var(--blue); font-size: .75rem; font-weight: 700; }
.word-counter { margin: -8px 0 18px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.word-counter.is-ok { color: #2f855a; }
.word-counter.is-bad { color: #c53030; }
.author-row { padding: 18px 20px 4px; margin-bottom: 16px; background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); }
.author-row__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.link-button { border: 0; background: none; padding: 0; font: inherit; font-size: .88rem; color: #c53030; cursor: pointer; text-decoration: underline; }
.field textarea { resize: vertical; }
.field select { appearance: auto; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0 12px; }
.form-actions form { margin: 0; }
.btn--outline { color: var(--blue); border-color: var(--blue); background: #fff; }
.btn--outline:hover { background: var(--sky); }
.btn--danger { color: #c53030; border-color: #f1b5b5; background: #fff; }
.btn--danger:hover { background: #fff3f3; }
.cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; margin: 1.6em 0; background: var(--sky); border: 1px solid #cfe2f0; border-radius: var(--radius); }
.cta-box p { margin: .2em 0 0; font-size: .95rem; color: var(--muted); }
.cta-box__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-bar { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr auto; gap: 0 14px; align-items: end; margin-bottom: 20px; }
.filter-bar .field { margin-bottom: 0; }
@media (max-width: 720px) { .filter-bar { grid-template-columns: 1fr; gap: 12px; } }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 20px; }

/* Program ------------------------------------------------------------ */
.program-tabs { position: sticky; top: var(--header-h); z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 24px 0; padding: 10px 0; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); }
.program-tabs a { padding: .5em 1.1em; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--navy); }
.program-tabs a:hover { background: var(--sky); }
.program-tabs small { color: var(--muted); font-weight: 400; }
.program-day { margin-bottom: 48px; }
.program-row { margin-bottom: 14px; }
.program-row--parallel { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .program-row--parallel { grid-template-columns: 1fr; } }
.pitem { height: 100%; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: var(--radius); }
.pitem--break { background: var(--tint); border-left-color: #b8c7d6; padding-block: 12px; }
.pitem--break .pitem__title { font-size: 1rem; font-weight: 500; color: var(--muted); }
.pitem--plenary { border-left-color: var(--accent-2); background: #fffdf2; }
.pitem--social { border-left-color: #2f855a; background: #f3fbf6; }
.pitem--other { border-left-color: #b8c7d6; }
.pitem__head { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.pitem__time { font-weight: 700; color: var(--blue); }
.pitem__room { display: inline-flex; align-items: center; gap: .3em; }
.pitem__title { font-size: 1.2rem; margin: 0 0 .4em; }
.pitem__desc { color: var(--muted); }
.pitem__chair { font-size: .92rem; margin-bottom: .8em; }
.talk { border-top: 1px solid var(--line); }
.talk summary { display: flex; gap: 14px; padding: 10px 0; cursor: pointer; list-style: none; }
.talk summary::-webkit-details-marker { display: none; }
.talk__time { flex: none; width: 3.2em; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.talk__main strong { display: block; color: var(--navy); line-height: 1.35; }
.talk__main small { color: var(--muted); }
.talk__abstract { padding: 0 0 12px 4.2em; font-size: .92rem; color: var(--ink); }
@media print {
  .site-header, .site-footer, .program-tabs, .verify-banner { display: none !important; }
  .talk[open] .talk__abstract, .talk__abstract { display: block; }
  .pitem { break-inside: avoid; border-color: #999; }
}
