:root {
  --navy: #16165e;
  --navy-2: #0e0e45;
  --gold: #ffd84d;
  --orange: #ff9b3d;
  --ink: #1b1b3a;
  --muted: #5c5f7a;
  --line: #dfe2f0;
  --bg: #f5f6fb;
  --white: #fff;
  --ok: #138a4b;
  --err: #c62828;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 22, 94, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.2); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .2px; }
.brand img { height: 54px; width: auto; background: #fff; border-radius: 8px; padding: 3px; }
.brand span { font-size: .95rem; line-height: 1.2; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: #e6e7ff; text-decoration: none; font-size: .9rem; font-weight: 500; }
.nav a:hover { color: var(--gold); }
.nav .btn { white-space: nowrap; padding: 9px 20px; font-size: .9rem; color: var(--navy-2); }
.nav .btn:hover { color: var(--navy-2); }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }
@media (max-width: 420px) { .brand span { font-size: .8rem; } .brand img { height: 42px; } }

/* hero: accreditation + highlights */
.accredit { display: inline-flex; align-items: center; gap: 12px; background: #fff; color: var(--navy); border-radius: 14px; padding: 8px 18px 8px 10px; margin: 4px 0 16px; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.accredit img { height: 46px; width: auto; }
.accredit b { display: block; font-size: 1.05rem; line-height: 1.2; }
.accredit small { display: block; color: var(--muted); font-size: .76rem; }
.highlights { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; max-width: 560px; }
.highlights li { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.08); border: 1px solid rgba(255,216,77,.45); border-radius: 12px; padding: 10px 14px; color: #fff; font-weight: 500; }
.highlights .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--navy-2); display: grid; place-items: center; font-weight: 800; font-size: .85rem; margin-top: 1px; }

/* organisers */
.org-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; max-width: 900px; margin-inline: auto; }
@media (max-width: 640px) { .org-grid { grid-template-columns: 1fr; gap: 22px; } }
.org { margin: 0; text-align: center; }
.org img { height: 120px; width: auto; margin: 0 auto 8px; object-fit: contain; }
.org figcaption { font-size: .85rem; color: var(--muted); }
.nissl-block { background: var(--bg); border: 2px solid var(--gold); border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--shadow); }
.nissl-block img.xl { height: 190px; max-width: 100%; margin-bottom: 12px; }
.nissl-block figcaption { color: var(--ink); font-size: .95rem; }
.nissl-block .subunit { display: block; margin-top: 4px; color: var(--navy); font-size: .9rem; }
.nissl-block img.nif { height: 64px; margin: 14px auto 0; background: #fff; border-radius: 8px; padding: 2px 8px; }

/* committee / patrons */
.faculty.people { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 36px; }
.people .person { width: 200px; }
.group-title { text-align: center; color: var(--navy); margin: 34px 0 18px; font-size: 1.05rem; letter-spacing: 1.5px; text-transform: uppercase; }
.group-title::after { content: ""; display: block; width: 48px; height: 3px; background: var(--gold); margin: 8px auto 0; }
.avatar img { object-position: center top; }

/* previous workshops gallery */
.past-block { margin-bottom: 44px; }
.past-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; border-bottom: 3px solid var(--gold); margin-bottom: 18px; padding-bottom: 6px; }
.past-head h3 { margin: 0; color: var(--navy); font-size: 1.5rem; }
.past-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.empty-note { background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); margin: 0; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pthumb { padding: 0; border: 0; background: var(--bg); border-radius: 12px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.pthumb:hover img { transform: scale(1.05); }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.vid { margin: 0; }
.vid video, .vid iframe, .vid-play { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #000; display: block; }
.vid-play { position: relative; cursor: pointer; background-size: cover; background-position: center; padding: 0; }
.play-icon { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%; background: rgba(22,22,94,.85); color: var(--gold); display: grid; place-items: center; font-size: 1.4rem; padding-left: 4px; }
.vid figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,8,40,.92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox img { max-height: 80vh; max-width: 100%; border-radius: 10px; margin: 0 auto; }
.lightbox figcaption { color: #dfe0ff; margin-top: 10px; font-size: .92rem; }
.lb-close, .lb-nav { position: absolute; border: 0; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; border-radius: 50%; width: 46px; height: 46px; font-size: 1.8rem; line-height: 1; }
.lb-close { top: 16px; right: 16px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-close:hover, .lb-nav:hover { background: var(--gold); color: var(--navy-2); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; font: inherit; font-weight: 700; text-decoration: none;
  padding: 12px 26px; border-radius: 999px; color: var(--navy-2);
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 6px 18px rgba(255, 155, 61, .35);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(255, 155, 61, .45); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.lg { padding: 15px 34px; font-size: 1.05rem; }
.btn.ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); box-shadow: none; }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn.navy { background: var(--navy); color: #fff; box-shadow: none; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 80% -10%, #2b2bb0 0%, transparent 60%), var(--navy); color: #fff; padding: 56px 0 72px; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero .grid { grid-template-columns: 1fr; } }
.eyebrow { display: inline-block; color: var(--gold); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: .8rem; margin-bottom: 10px; }
.hero h1 { margin: 0 0 10px; font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.15; }
.hero h1 small { display: block; font-size: .5em; font-weight: 500; color: #dfe0ff; margin-top: 8px; }
.tagline { color: #d6d8ff; margin: 8px 0 22px; font-size: 1.05rem; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.pill { background: rgba(255,255,255,.1); border: 1px solid rgba(255,216,77,.5); color: var(--gold); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .92rem; }
.seat-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.seat { background: #fff; color: var(--navy); border-radius: 12px; padding: 10px 16px; min-width: 150px; }
.seat b { display: block; font-size: 1.5rem; line-height: 1.1; }
.seat span { font-size: .8rem; color: var(--muted); }
.seat.full b { color: var(--err); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hex-frame { clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); background: var(--gold); padding: 8px; aspect-ratio: 1 / .92; width: min(100%, 440px); margin-inline: auto; }
.hex-frame img { width: 100%; height: 100%; object-fit: cover; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.countdown { display: flex; gap: 10px; margin: 0 0 24px; }
.countdown div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 8px 14px; text-align: center; min-width: 64px; }
.countdown b { display: block; font-size: 1.4rem; color: var(--gold); line-height: 1.1; }
.countdown span { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: #cfd0ff; }

/* sections */
section { padding: 64px 0; }
section.alt { background: var(--bg); }
.sec-title { text-align: center; margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--navy); }
.sec-sub { text-align: center; color: var(--muted); margin: 0 auto 36px; max-width: 640px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 40px; }
.logo-row img { height: 84px; width: auto; object-fit: contain; }
.logo-row.small img { height: 64px; }
.label { text-align: center; font-weight: 700; color: var(--navy); text-decoration: underline; margin: 0 0 14px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--gold); font-weight: 700; margin-bottom: 12px; }

.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.day { border-radius: var(--radius); padding: 20px; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--gold); }
.day b { color: var(--navy); }
.day p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }

.faculty { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; }
.person { text-align: center; }
.avatar { width: 140px; height: 140px; border-radius: 50%; border: 5px solid var(--gold); margin: 0 auto 10px; overflow: hidden; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-size: 2.2rem; font-weight: 700; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h4 { margin: 0; color: var(--navy); font-size: 1rem; }
.person small { color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 30px; }
.gallery img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.fees { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 760px; margin-inline: auto; }
.fee { text-align: center; background: #fff; border-radius: var(--radius); padding: 28px 22px; border: 2px solid var(--line); box-shadow: var(--shadow); }
.fee.primary { border-color: var(--gold); }
.fee h3 { margin: 0; color: var(--navy); }
.fee .amt { font-size: 2.3rem; font-weight: 800; color: var(--navy); margin: 6px 0; }
.fee ul { list-style: none; padding: 0; margin: 12px 0 18px; color: var(--muted); font-size: .93rem; }
.policy { max-width: 760px; margin: 26px auto 0; background: #fff8dc; border: 1px solid var(--gold); border-radius: var(--radius); padding: 16px 20px; font-size: .95rem; }

details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; color: var(--navy); }
details p { margin: 10px 0 0; color: var(--muted); }

.venue { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 800px) { .venue { grid-template-columns: 1fr; } }
.venue iframe { width: 100%; height: 300px; border: 0; border-radius: var(--radius); }

footer { background: var(--navy-2); color: #cfd0ff; padding: 36px 0; font-size: .92rem; }
footer a { color: var(--gold); }
footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px; }

/* forms & flow pages */
.flow-hero { background: var(--navy); color: #fff; padding: 30px 0 60px; }
.flow-hero h1 { margin: 0 0 4px; font-size: clamp(1.4rem, 3vw, 2rem); }
.flow-hero p { margin: 0; color: #d6d8ff; }
.steps { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.step { padding: 5px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; border: 1px solid rgba(255,255,255,.35); color: #d6d8ff; }
.step.on { background: var(--gold); color: var(--navy-2); border-color: var(--gold); }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-top: -36px; margin-bottom: 40px; border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .9rem; color: var(--navy); }
label .req { color: var(--err); }
input, select {
  font: inherit; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(22,22,94,.15); }
.field.bad input, .field.bad select { border-color: var(--err); }
.hint { font-size: .8rem; color: var(--muted); }
.error-msg { font-size: .8rem; color: var(--err); min-height: 1em; }
.type-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .type-cards { grid-template-columns: 1fr; } }
.type-card { position: relative; border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; display: block; }
.type-card input { position: absolute; opacity: 0; }
.type-card:has(input:checked) { border-color: var(--navy); background: #f0f1ff; box-shadow: 0 0 0 3px rgba(22,22,94,.12); }
.type-card:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.type-card b { color: var(--navy); font-size: 1.05rem; }
.type-card .price { float: right; font-weight: 800; color: var(--navy); }
.type-card small { display: block; color: var(--muted); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; font-weight: 400; color: var(--ink); }
.consent input { width: auto; margin-top: 5px; }
.alert { padding: 12px 16px; border-radius: 10px; margin: 16px 0; font-size: .95rem; }
.alert.err { background: #fdecec; color: var(--err); border: 1px solid #f5b5b5; }
.alert.ok { background: #e6f6ed; color: var(--ok); border: 1px solid #a8dcbd; }
.alert.info { background: #eef0ff; color: var(--navy); border: 1px solid #c9ceff; }
.summary { width: 100%; border-collapse: collapse; margin: 6px 0 18px; }
.summary td { padding: 10px 4px; border-bottom: 1px solid var(--line); }
.summary td:last-child { text-align: right; font-weight: 600; }
.summary tr.total td { border-bottom: 0; font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.side { background: var(--bg); border-radius: 12px; padding: 18px; font-size: .92rem; color: var(--muted); }
.side h3 { margin: 0 0 8px; color: var(--navy); font-size: 1rem; }
.center { text-align: center; }
.big-check { width: 72px; height: 72px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 2.4rem; display: grid; place-items: center; margin: 0 auto 14px; }
.regid { display: inline-block; font-family: ui-monospace, Menlo, monospace; background: var(--bg); border: 1px dashed var(--navy); border-radius: 10px; padding: 8px 18px; font-size: 1.3rem; font-weight: 700; color: var(--navy); letter-spacing: 1px; }
.demo-bar { background: #fff3cd; color: #6b5200; text-align: center; padding: 6px 12px; font-size: .82rem; font-weight: 600; }
.spinner { width: 18px; height: 18px; border: 3px solid rgba(14,14,69,.25); border-top-color: var(--navy-2); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* admin */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table.data { border-collapse: collapse; width: 100%; font-size: .85rem; white-space: nowrap; }
table.data th, table.data td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; }
table.data th { background: var(--navy); color: #fff; position: sticky; top: 0; }
.status { padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: .78rem; }
.status.Paid { background: #e6f6ed; color: var(--ok); }
.status.Pending { background: #fff3cd; color: #8a6d00; }
.status.Expired, .status.Failed { background: #f1f1f4; color: var(--muted); }

@media print { .site-header, .no-print, footer { display: none !important; } .panel { box-shadow: none; margin-top: 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
