/* =====================================================================
   InSearch 2027 — Public stylesheet
   Academic / institutional visual language: deep navy, warm gold, paper.
   ===================================================================== */

:root {
  --navy-900: #0a1f3b;
  --navy-800: #0e2a4f;
  --navy-700: #173c6b;
  --navy-600: #25528a;
  --ink: #13213a;
  --text: #2a3548;
  --muted: #5b6678;
  --line: #dfe3ea;
  --line-strong: #c7cedb;
  --paper: #f7f5f0;
  --paper-2: #efece4;
  --surface: #ffffff;
  --gold: #b8892d;
  --gold-600: #9c7222;
  --gold-soft: #f3e7c9;
  --teal: #1f6f78;
  --ok: #1e6b43;
  --ok-bg: #e7f3ec;
  --bad: #a4262c;
  --bad-bg: #fbeaea;
  --warn: #8a5a00;
  --warn-bg: #fff4dc;
  --info: #1f4f86;
  --info-bg: #e9f0f9;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 31, 59, .06);
  --shadow: 0 6px 24px rgba(10, 31, 59, .08);
  --font-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1180px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--gold-600); }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.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-800); color: #fff; padding: 10px 14px; z-index: 1000; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.print-only { display: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 860px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border: 1px solid transparent; border-radius: var(--radius);
  font: 600 .95rem/1.2 var(--font-sans); letter-spacing: .01em; text-decoration: none;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap;
}
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-sm { padding: 7px 12px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-600); color: #fff; }
.btn-outline { background: transparent; color: var(--navy-800); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--navy-800); color: var(--navy-800); background: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { background: #861d22; color: #fff; }
.btn-disabled, .btn[disabled] { background: #9aa3b2; color: #fff; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--navy-700); }
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--gold-600); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-logo { width: 58px; height: 58px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; color: var(--navy-800); letter-spacing: .01em; }
.brand-sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; }
.primary-nav { display: flex; align-items: center; gap: 18px; }
.primary-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.primary-nav a:not(.btn) {
  display: block; padding: 8px 10px; color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500;
  border-bottom: 2px solid transparent;
}
.primary-nav a:not(.btn):hover { color: var(--navy-700); border-bottom-color: var(--gold-soft); }
.primary-nav a.active:not(.btn) { color: var(--navy-800); border-bottom-color: var(--gold); font-weight: 600; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 10px 9px; cursor: pointer; }
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: var(--navy-800); margin: 4px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Scientific pattern (subtle molecular lattice) ---------- */
.hero-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("../images/pattern-lattice.svg");
  background-size: 520px auto; background-repeat: repeat; opacity: .22;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, #133764 100%);
  padding: 88px 0 96px;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -80px; width: 620px; height: 620px;
  background: url("../images/hero-molecule.svg") no-repeat center / contain; opacity: .5; pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.eyebrow { font: 600 .76rem/1.4 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); margin: 0 0 12px; }
.eyebrow-light { color: #e2c98f; }
.hero-title { font-size: clamp(2.8rem, 6vw, 4.6rem); color: #fff; margin: 0 0 8px; letter-spacing: -.01em; font-weight: 700; }
.hero-tagline { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.7rem); color: #f1e3c0; margin-bottom: 22px; }
.hero-lead { font-size: 1.08rem; color: #d5deeb; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-card {
  background: rgba(255,255,255,.97); color: var(--text); border-radius: var(--radius-lg);
  box-shadow: 0 18px 48px rgba(0,0,0,.25); padding: 28px; border-top: 4px solid var(--gold);
}
.facts { margin: 0; display: grid; gap: 14px; }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding-top: 2px; }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); }
.hero-counter { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.counter-number { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 700; color: var(--navy-800); line-height: 1; }
.counter-label { font-weight: 600; color: var(--muted); }

.page-hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: #fff; padding: 64px 0 56px; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 8px; }
.page-hero-lead { color: #d5deeb; font-size: 1.08rem; margin: 0; max-width: 720px; }
.page-hero-compact { padding: 44px 0 40px; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-tint { background: var(--paper-2); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.prose { font-size: 1.05rem; }
.prose p:last-child { margin-bottom: 0; }
.note { color: var(--muted); font-size: .92rem; margin-top: 16px; }

.card-grid { display: grid; gap: 22px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.feature-card, .info-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.feature-card h3, .info-card h3, .info-card h2 { font-size: 1.2rem; margin-bottom: 8px; }
.feature-card p, .info-card p { color: var(--muted); margin-bottom: 0; }
.info-card p + p { margin-top: 10px; }
.feature-icon { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; background: var(--gold-soft); align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--navy-800); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; font-size: 1.03rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--gold); background: radial-gradient(circle, var(--gold) 0 3.5px, transparent 4px);
}
.notice-box {
  margin-top: 28px; padding: 16px 20px; border: 1px solid #e6d3a3; background: #fbf5e6;
  border-radius: var(--radius); color: #5c4513; font-size: .95rem;
}
.tag { display: inline-block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; margin-right: 6px; }

/* ---------- Speakers ---------- */
.speaker-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; gap: 24px; align-items: flex-start; box-shadow: var(--shadow-sm); }
.speaker-card-compact { flex-direction: column; align-items: center; text-align: center; }
.speaker-photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--gold-soft), var(--shadow-sm); background: var(--paper-2); flex-shrink: 0; }
.speaker-list { display: grid; gap: 24px; }
.speaker-list .speaker-photo { width: 200px; height: 200px; }
.speaker-name { font-size: 1.35rem; margin-bottom: 4px; }
.speaker-inst { font-weight: 600; color: var(--navy-700); margin-bottom: 6px; }
.speaker-area { color: var(--muted); margin-bottom: 12px; }
.speaker-bio { margin: 0; }
.speaker-talk { margin-bottom: 12px; }
.speaker-talk em { font-style: italic; color: var(--navy-800); font-weight: 600; }
.speakers-soon { text-align: center; font-size: 1.05rem; }

/* ---------- Programme ---------- */
.programme-preview { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: prog; }
.programme-preview li {
  counter-increment: prog; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 16px 16px 58px; position: relative; font-weight: 600; color: var(--ink); min-height: 64px; display: flex; align-items: center;
}
.programme-preview li::before {
  content: counter(prog, decimal-leading-zero); position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-serif); color: var(--gold-600); font-size: 1.15rem;
}
.timeline { list-style: none; margin: 28px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 190px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); }
.timeline-item { display: grid; grid-template-columns: 170px 1fr; gap: 40px; padding: 0 0 26px; position: relative; }
.timeline-item::before { content: ""; position: absolute; left: 184px; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); }
.timeline-time { text-align: right; font-weight: 600; color: var(--navy-700); padding-top: 4px; font-size: .95rem; }
.timeline-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.timeline-body h2 { font-size: 1.2rem; margin-bottom: 4px; }
.timeline-body p { margin: 0; color: var(--muted); }
.timeline-step { font-family: var(--font-serif); color: var(--gold-600); font-size: .9rem; }

/* ---------- Counter band & CTA ---------- */
.counter-band { background: var(--navy-800); color: #fff; padding: 46px 0; position: relative; overflow: hidden; }
.counter-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band-number { margin: 0; font-family: var(--font-serif); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.1; color: #fff; }
.band-unit { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 500; color: #d5deeb; }
.cta { background: linear-gradient(180deg, var(--paper) 0%, var(--gold-soft) 100%); padding: 72px 0; text-align: center; border-top: 1px solid var(--line); }
.cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.cta p { color: var(--muted); font-weight: 500; }
.cta-closed { font-weight: 600; color: var(--bad) !important; }
.address-block { font-style: normal; font-size: 1.1rem; line-height: 1.7; margin-bottom: 20px; }
.venue-visual img { border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
.contact-card h2 { font-size: 1.15rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c3cddc; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-title { font-family: var(--font-serif); font-size: 1.5rem; color: #fff; margin-bottom: 2px; font-weight: 700; }
.footer-tag { color: #e2c98f; font-style: italic; font-family: var(--font-serif); }
.footer-date { color: #fff; font-weight: 600; }
.footer-heading { color: #fff; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; margin-bottom: 14px; }
.footer-links, .footer-social { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #dfe6f1; text-decoration: none; }
.site-footer a:hover { color: #e2c98f; }
.social-placeholder { color: #8390a5; cursor: default; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 18px; padding-bottom: 18px; font-size: .82rem; }
.footer-bottom p { margin: 0; }

/* ---------- Alerts & badges ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius); border: 1px solid; margin: 0 0 18px; font-size: .95rem; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert p:last-child { margin-bottom: 0; }
.alert-success { background: var(--ok-bg); border-color: #b9dcc7; color: var(--ok); }
.alert-error { background: var(--bad-bg); border-color: #efc2c4; color: var(--bad); }
.alert-warning { background: var(--warn-bg); border-color: #f0d9a3; color: var(--warn); }
.alert-info { background: var(--info-bg); border-color: #c8d8ee; color: var(--info); }
.alert a { color: inherit; font-weight: 600; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-muted { background: #eceff4; color: #4f5a6c; }

/* ---------- Registration ---------- */
.form-container { max-width: 920px; }
.form-container-wide { max-width: 1100px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 10px 0 8px; }
.choice-card {
  display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px; text-decoration: none; color: var(--text);
  border-top: 4px solid var(--navy-800); box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s, border-color .15s;
}
.choice-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-top-color: var(--gold); color: var(--text); }
.choice-kicker { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; }
.choice-title { font-family: var(--font-serif); font-size: 1.5rem; color: var(--ink); font-weight: 700; }
.choice-desc { color: var(--muted); flex-grow: 1; }
.choice-cta { font-weight: 600; color: var(--navy-700); margin-top: 8px; }
.closed-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; text-align: center; }

.stepper { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: column; grid-auto-columns: 1fr; margin: 0 0 32px; padding: 0; counter-reset: s; }
.stepper:has(li:nth-child(4)) { grid-template-columns: repeat(4, 1fr); }
.stepper li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 3px solid var(--line); color: var(--muted); }
.stepper-num { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; color: var(--line-strong); }
.stepper-label { font-weight: 600; font-size: .95rem; }
.stepper li.done { border-bottom-color: var(--navy-600); color: var(--navy-700); }
.stepper li.done .stepper-num { color: var(--navy-600); }
.stepper li.current { border-bottom-color: var(--gold); color: var(--ink); }
.stepper li.current .stepper-num { color: var(--gold-600); }

.reg-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.form-heading { font-size: 1.5rem; margin: 0 0 6px; }
.reg-form .form-heading + .form-grid, .admin-form .form-heading + .form-grid { margin-top: 18px; }
.form-grid + .form-heading { margin-top: 34px; }
.form-intro { color: var(--muted); margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.form-grid-1 { grid-template-columns: 1fr; }
.span-2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.req { color: var(--bad); }
.field input, .field select, .field textarea, .filter-bar input, .filter-bar select, .mini-form input, .mini-form select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font: 400 .97rem/1.35 var(--font-sans); color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(37, 82, 138, .15); outline: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--bad); background: #fffafa; }
.field-hint { font-size: .82rem; color: var(--muted); margin: 0; }
.field-error { font-size: .85rem; color: var(--bad); margin: 0; font-weight: 500; }
.error-summary ul { margin-top: 4px; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-weight: 500 !important; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--navy-800); }
.confirm-field { margin-top: 26px; padding: 18px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }

.review-section { border: 1px solid var(--line); border-radius: var(--radius); margin-top: 22px; overflow: hidden; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
.review-head h3, .review-head h2 { margin: 0; font-size: 1.1rem; }
.review-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.review-list div { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.review-list dt { font-size: .78rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.review-list dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); word-break: break-word; white-space: pre-line; }
.review-list-single { grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 20px; }
.review-list-single div { display: grid; grid-template-columns: 220px 1fr; gap: 12px; align-items: baseline; }
.review-list-single div:last-child { border-bottom: 0; }

/* Institutional */
.summary-strip { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; }
.summary-strip .label { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.summary-strip .btn { margin-left: auto; }
.upload-steps { display: grid; gap: 18px; }
.upload-step { display: grid; grid-template-columns: 48px 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.upload-step h2 { font-size: 1.2rem; margin-bottom: 6px; }
.upload-step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-800); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem; }
.file-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px; border: 2px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--paper); text-align: center; cursor: pointer; margin: 12px 0; }
.file-drop:hover, .file-drop.dragover { border-color: var(--navy-600); background: #f2f5fa; }
.file-drop-title { font-weight: 700; color: var(--navy-800); }
.file-drop-hint { font-size: .85rem; color: var(--muted); }
.file-drop input[type=file] { max-width: 100%; font-size: .9rem; }
.file-name { font-weight: 600; color: var(--ok); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; border-top: 3px solid var(--navy-700); }
.stat-ok { border-top-color: var(--ok); } .stat-bad { border-top-color: var(--bad); } .stat-warn { border-top-color: var(--gold); }
.stat-num { display: block; font-family: var(--font-serif); font-size: 1.9rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.stat-label { font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.issue-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 22px; }
.issue-panel > p { padding: 0 18px 14px; margin: 0; }
.issue-list { list-style: none; margin: 0; padding: 8px 18px; max-height: 320px; overflow: auto; }
.issue-list li { padding: 7px 0 7px 14px; border-bottom: 1px dashed var(--line); font-size: .92rem; border-left: 3px solid transparent; }
.issue-error { border-left-color: var(--bad) !important; }
.issue-warn { border-left-color: var(--gold) !important; }
.confirm-form { margin-top: 22px; }
.confirm-form .field + .field { margin-top: 12px; }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); -webkit-overflow-scrolling: touch; }
.table-wrap:focus { outline: 2px solid var(--navy-600); }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th { text-align: left; background: var(--paper); color: var(--ink); font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; padding: 11px 12px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; position: sticky; top: 0; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tbody tr:hover { background: #fafbfd; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.row-error { background: #fff6f6; }
.row-warn { background: #fffaee; }
#main .table-wrap { max-height: 560px; }

/* Confirmation */
.confirmation { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.confirmation-head { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; justify-content: space-between; }
.confirmation-head > div { flex: 1; }
.confirmation-title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0; }
.success-mark svg { width: 56px; height: 56px; fill: var(--ok-bg); stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lookup-form { max-width: 560px; margin: 0 auto; }

/* Error page */
.error-body { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 24px; }
.error-shell { max-width: 620px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius-lg); padding: 36px; }
.debug-box { background: #1b2433; color: #f3d9a4; padding: 12px; border-radius: var(--radius); overflow: auto; font-size: .82rem; white-space: pre-wrap; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; align-items: center; }
.pagination a, .pagination span { padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); text-decoration: none; font-size: .9rem; background: #fff; }
.pagination .current { background: var(--navy-800); color: #fff; border-color: var(--navy-800); font-weight: 700; }
.pagination .disabled { color: #a3abb8; }
.pagination .gap { border: 0; background: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .primary-nav a:not(.btn) { padding: 8px 7px; font-size: .88rem; }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .programme-preview { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; box-shadow: var(--shadow); display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav ul { flex-direction: column; }
  .primary-nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .primary-nav a.active { border-bottom-color: var(--gold); }
  .nav-cta { margin-top: 14px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .split { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  body { font-size: 15.5px; }
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .hero { padding: 60px 0 64px; }
  .hero::after { width: 420px; height: 420px; right: -180px; opacity: .3; }
  .card-grid-3, .card-grid-4, .choice-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .reg-form, .confirmation { padding: 22px; }
  .review-list { grid-template-columns: 1fr; }
  .review-list-single div { grid-template-columns: 1fr; gap: 2px; }
  .stepper li { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 8px; }
  .stepper-label { font-size: .8rem; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .speaker-card { flex-direction: column; align-items: center; text-align: center; }
  .timeline::before { left: 7px; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; padding-left: 30px; }
  .timeline-item::before { left: 1px; }
  .timeline-time { text-align: left; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .btn { width: 100%; white-space: normal; }
  .form-actions > span:empty { display: none; }
  .summary-strip .btn { margin-left: 0; }
}
@media (max-width: 480px) {
  .brand-logo { width: 48px; height: 48px; }
  .brand-title { font-size: 1.15rem; }
  .hero-card { padding: 20px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
  .programme-preview { grid-template-columns: 1fr; }
  .upload-step { grid-template-columns: 1fr; padding: 20px; }
  .btn-lg { padding: 13px 18px; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Photo gallery ---------- */
.gallery-section { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gallery-item { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--paper-2); box-shadow: var(--shadow-sm); }
.gallery-item-feature { grid-column: span 2; grid-row: span 2; }
/* exactly 4 photos: the last one fills the free space next to the large one */
.gallery-item:nth-child(4):last-child { grid-column: span 2; }
.gallery-item a { display: block; width: 100%; height: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item a:hover img, .gallery-item a:focus-visible img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; color: #fff; font-weight: 600; font-size: .9rem;
  background: linear-gradient(180deg, rgba(10,31,59,0) 0%, rgba(10,31,59,.85) 100%); pointer-events: none;
}
.gallery-item-feature figcaption { font-size: 1.05rem; padding: 40px 20px 16px; }
.sample-tag { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.92); color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; pointer-events: none; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(6, 18, 36, .88); }
.lightbox img { width: min(1000px, 90vw); max-height: 80vh; object-fit: contain; margin: 0 auto; border-radius: var(--radius); background: #0a1f3b; }
.lightbox-caption { color: #fff; text-align: center; margin: 12px 0 0; font-weight: 500; }
.lightbox-btn { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; width: 48px; height: 48px; font-size: 1.4rem; cursor: pointer; }
.lightbox-btn:hover { background: rgba(255,255,255,.28); }
.lightbox-prev { left: 18px; } .lightbox-next { right: 18px; }
.lightbox-close { top: 22px; right: 18px; transform: none; }

@media (max-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } .gallery-item:nth-child(4):last-child { grid-column: span 3; } }
@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: 10px; } .gallery-item:nth-child(4):last-child { grid-column: span 2; } }
@media (max-width: 480px) {
  .gallery-grid { grid-auto-rows: 130px; }
  .gallery-item-feature { grid-row: span 2; }
  .gallery-item figcaption { font-size: .78rem; padding: 20px 10px 8px; }
  .gallery-item:not(.gallery-item-feature) .sample-tag { display: none; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; transform: none; }
}

.flow-note { margin: -16px 0 24px; color: var(--muted); font-size: .92rem; }
.hero-status { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.hero-status .badge { font-size: .85rem; padding: 5px 12px; }
.band-text { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
/* ---------- Review: submit guidance ---------- */
.submit-note { margin: 0 0 12px; padding: 12px 14px; background: #fbf5e6; border: 1px solid #e6d3a3; border-radius: var(--radius); color: #5c4513; font-size: .93rem; }
.submit-hint { text-align: right; margin-top: 8px; }
.btn[disabled].btn-gold { background: #c9b58a; cursor: not-allowed; }

/* ---------- Registration ID ---------- */
.reg-id-box { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; margin: 0 0 22px; padding: 20px; border: 2px dashed var(--gold); border-radius: var(--radius-lg); background: #fbf5e6; }
.reg-id-label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); }
.reg-id-value { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 700; color: var(--navy-800); letter-spacing: .04em; }
.reg-id-hint { font-size: .85rem; color: var(--muted); }
.reg-code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .85em; font-weight: 700; color: var(--navy-800); background: var(--gold-soft); padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.reg-code-inst { background: #e9f0f9; color: var(--navy-600); font-weight: 600; }
.reg-code-line { margin: 0 0 6px !important; }
@media print { .reg-id-box { border: 2px solid #000; background: #fff; } }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .no-print, .lightbox, .skip-link, .hero-pattern, .cta, .page-hero { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .section { padding: 0; }
  .confirmation { border: 0; box-shadow: none; padding: 0; }
  .print-only { display: block; margin-top: 24px; font-size: 10pt; color: #444; }
  .alert { border: 1px solid #999; background: #fff; color: #000; }
  a { color: #000; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Home page (landing) ---------- */
.section-intro { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section-intro .section-title { margin-bottom: 12px; }
.section-lead { color: var(--muted); font-size: 1.08rem; margin: 0; }
.explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.explore-card {
  display: flex; flex-direction: column; gap: 6px; padding: 26px 24px 22px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.explore-card:hover, .explore-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); color: var(--text); }
.explore-icon { display: inline-flex; width: 48px; height: 48px; border-radius: 12px; background: var(--gold-soft); align-items: center; justify-content: center; margin-bottom: 8px; }
.explore-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--navy-800); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.explore-title { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: var(--navy-800); }
.explore-desc { color: var(--muted); font-size: .96rem; flex: 1; }
.explore-link { margin-top: 10px; font-weight: 600; font-size: .92rem; color: var(--navy-700); }
.explore-link::after { content: " →"; transition: margin-left .2s; }
.explore-card:hover .explore-link { color: var(--gold-600); }

.speaker-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 16px; }
.speaker-mini {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.speaker-mini:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.speaker-mini-photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gold-soft); background: var(--paper-2); }
.speaker-mini-name { display: block; font-family: var(--font-serif); font-weight: 700; font-size: 1.08rem; color: var(--navy-800); line-height: 1.3; }
.speaker-mini-inst { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }

.gallery-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.gallery-strip-item { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg); background: var(--paper-2); box-shadow: var(--shadow-sm); }
.gallery-strip-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-strip-item:hover img { transform: scale(1.04); }
.gallery-strip-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px; color: #fff; font-size: .9rem; font-weight: 500; background: linear-gradient(transparent, rgba(8, 22, 44, .78)); }

.register-band { background: linear-gradient(135deg, var(--navy-900), var(--navy-800)); color: #d5deeb; padding: 56px 0; }
.register-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.register-band h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 0 0 6px; }
.register-band p { margin: 0; }
.btn-row-center { justify-content: center; }

.nav-utility { font-size: .88rem; font-weight: 600; color: var(--navy-700); text-decoration: none; white-space: nowrap; }
.nav-utility:hover, .nav-utility.active { color: var(--gold-600); }

@media (max-width: 1180px) {
  .nav-utility { display: none; }
}
@media (max-width: 1024px) {
  .nav-utility { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .explore-grid, .speaker-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .gallery-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-strip-item:nth-child(3) { display: none; }
  .section-intro { text-align: left; margin-bottom: 24px; }
}
@media (max-width: 560px) {
  .explore-grid, .speaker-strip { grid-template-columns: 1fr; }
  .explore-card { padding: 20px; }
  .register-band .btn-row .btn { width: 100%; }
  .section-head .btn { width: 100%; }
}
.primary-nav a:not(.btn) { white-space: nowrap; }
/* Desktop header: keep every item on one line; "Find My Registration" is shown in
   the mobile menu, the footer, the home page and the registration page. */
@media (min-width: 1025px) {
  .primary-nav a.nav-utility:not(.btn) { display: none; }
}
@media (min-width: 1025px) and (max-width: 1240px) {
  .primary-nav { gap: 10px; }
  .primary-nav a:not(.btn) { padding: 8px 5px; font-size: .86rem; }
  .brand-title { font-size: 1.2rem; }
  .nav-cta { padding: 10px 14px; }
}
@media (min-width: 561px) and (max-width: 1024px) {
  .speaker-strip { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .speaker-mini { flex-direction: column; text-align: center; padding: 18px 12px; }
}
@media (max-width: 560px) {
  .explore-grid { gap: 12px; }
  .explore-card { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 2px; padding: 16px; }
  .explore-icon { grid-row: span 3; width: 44px; height: 44px; margin: 0; }
  .explore-title { font-size: 1.1rem; }
  .explore-desc { font-size: .9rem; }
  .explore-link { margin-top: 4px; }
  .gallery-strip { grid-template-columns: 1fr; }
  .gallery-strip-item:nth-child(n+2) { display: none; }
}

/* ---------- Home: institute highlighted, event name secondary ---------- */
.hero-event {
  display: inline-block; margin: 0 0 6px; color: var(--gold-soft);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: .02em;
}
.hero-event + .hero-tagline { font-size: clamp(1.05rem, 1.8vw, 1.3rem); margin-bottom: 18px; }
/* JNCASR logo + institute name on the home hero */
.hero-institute { margin: 0 0 20px; }
.hero-institute-emblem {
  display: inline-flex; align-items: center; justify-content: center; width: 74px; height: 90px; margin-bottom: 18px;
  background: #fff; border-radius: var(--radius-lg); box-shadow: 0 8px 24px rgba(3, 12, 28, .35);
}
.hero-institute-emblem img { width: 52px; height: auto; }
.hero-institute .hero-institute-name {
  display: block; margin: 0; max-width: 600px; font-family: var(--font-serif); font-weight: 700; color: #fff;
  font-size: clamp(1.7rem, 2.7vw, 2.35rem); line-height: 1.18; letter-spacing: -.005em; text-wrap: balance;
}
.hero-institute-presents {
  display: flex; align-items: center; gap: 12px; margin: 16px 0 0;
  font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #e2c98f;
}
.hero-institute-presents::before { content: ""; width: 44px; height: 2px; background: var(--gold); }
@media (max-width: 560px) {
  .hero-institute-emblem { width: 60px; height: 74px; margin-bottom: 14px; }
  .hero-institute-emblem img { width: 42px; }
  .hero-institute .hero-institute-name { font-size: 1.55rem; }
}
/* Home: registration fee */
.fee-unit { font-weight: 500; color: var(--muted); font-size: .88em; }
.register-band .fee-pill {
  display: inline-block; margin-top: 14px; padding: 7px 16px; border-radius: 999px;
  background: rgba(226, 201, 143, .14); border: 1px solid rgba(226, 201, 143, .45); color: #f1e3c0; font-size: .95rem;
}
.register-band .fee-pill strong { color: #fff; font-size: 1.05rem; }

/* ---------- Entry pass ---------- */
.pass-page-title { font-size: 1.8rem; margin-bottom: 16px; text-align: center; }
.pass-card { background: #fff; border: 2px solid var(--navy-800); border-radius: 14px; overflow: hidden; max-width: 560px; margin: 0 auto 18px; box-shadow: var(--shadow); break-inside: avoid; page-break-inside: avoid; }
.pass-head { display: flex; align-items: center; gap: 10px; background: var(--navy-800); color: #fff; padding: 12px 16px; }
.pass-head div { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.pass-head strong { font-family: var(--font-serif); font-size: 1.15rem; }
.pass-head span { font-size: .8rem; color: #e2c98f; }
.pass-head img { background: #fff; border-radius: 6px; padding: 2px; }
.pass-tag { flex: 0 0 auto !important; background: var(--gold); color: #fff !important; font-weight: 700; font-size: .72rem !important; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.pass-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 18px; align-items: center; }
.pass-qr .qr-svg { width: 100%; height: auto; display: block; max-width: 260px; margin: 0 auto; }
.pass-name { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 700; color: var(--ink); margin: 0 0 6px; line-height: 1.2; overflow-wrap: anywhere; }
.pass-id { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; font-size: 1.05rem; color: var(--navy-800); background: var(--gold-soft); display: inline-block; padding: 3px 8px; border-radius: 4px; margin: 0 0 8px; }
.pass-sub, .pass-venue { margin: 0 0 4px; color: var(--muted); font-size: .92rem; }
.pass-foot { margin: 0; padding: 10px 16px; background: var(--paper); border-top: 1px dashed var(--line-strong); font-size: .85rem; color: var(--text); text-align: center; }
.pass-card-group { border-color: var(--gold); }
.pass-help { text-align: center; color: var(--muted); }
.pass-section .form-actions { justify-content: center; }
.pass-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pass-card-compact { margin: 0; box-shadow: none; border-width: 1px; border-style: dashed; }
.pass-card-compact .pass-body { padding: 12px; gap: 10px; }
.pass-card-compact .pass-name { font-size: 1.1rem; }
.pass-card-compact .pass-head { padding: 8px 12px; }
.pass-card-compact .pass-head strong { font-size: 1rem; }
.pass-inline { margin: 22px 0; }
.pass-inline h2 { text-align: center; font-size: 1.3rem; margin-bottom: 10px; }
.checkin-public { text-align: center; }
.muted-note { color: var(--muted); font-size: .9rem; }
@media (max-width: 480px) {
  .pass-body { grid-template-columns: 1fr; text-align: center; }
  .pass-qr .qr-svg { max-width: 240px; }
}
@media print {
  .pass-card { box-shadow: none; }
  .pass-grid { grid-template-columns: 1fr 1fr; gap: 8mm; }
  .page-pass .pass-section .container { max-width: none; }
}
.hero-more { margin: 16px 0 0; }
.hero-more a { color: #e2c98f; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(226, 201, 143, .45); }
.hero-more a:hover { color: #fff; border-bottom-color: #fff; }

/* ---------- Feedback ---------- */
.feedback-form .form-heading { margin-top: 26px; }
.star-field, .choice-field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.star-field legend, .choice-field legend { font-weight: 600; color: var(--ink); margin-bottom: 6px; padding: 0; }
.star-field .req { color: var(--bad); }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 2.1rem; line-height: 1; color: #cfd5df; cursor: pointer; padding: 2px; transition: color .1s; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--gold); }
.stars input:focus-visible + label { outline: 2px solid var(--navy-600); outline-offset: 2px; border-radius: 4px; }
.star-field.has-error .stars label { color: #e8b4b4; }
.choice-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.choice-pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-pills label { border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 18px; cursor: pointer; font-weight: 600; background: #fff; }
.choice-pills input:checked + label { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.choice-pills input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.feedback-switch { margin-top: 10px; text-align: center; }
.link-button { background: none; border: 0; padding: 0; color: var(--navy-700); text-decoration: underline; text-underline-offset: 3px; font: inherit; cursor: pointer; }
.feedback-thanks { text-align: center; }
.feedback-thanks .success-mark { display: inline-block; margin-bottom: 8px; }
/* Venue poster */
.poster-body { background: #fff; }
.poster { max-width: 720px; margin: 0 auto; padding: 40px 24px; text-align: center; }
.poster h1 { font-size: 3rem; margin: 6px 0; color: var(--navy-800); }
.poster-kicker { color: var(--gold-600); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.poster-lead { font-size: 1.4rem; }
.poster-qr { max-width: 420px; margin: 18px auto; border: 4px solid var(--navy-800); border-radius: 18px; padding: 10px; }
.poster-qr .qr-svg { width: 100%; height: auto; display: block; }
.poster-url { font-family: ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.poster-note { color: var(--muted); }
.poster-org { margin-top: 28px; font-weight: 600; color: var(--navy-800); }

/* ---------- Certificate verification ---------- */
.verify-box h1 { text-align: center; margin-bottom: 18px; }
.verify-result { border-radius: var(--radius-lg); padding: 22px; border: 2px solid; }
.verify-ok { border-color: var(--ok); background: var(--ok-bg); }
.verify-bad { border-color: var(--bad); background: var(--bad-bg); }
.verify-mark { font-size: 1.5rem; font-weight: 700; margin: 0 0 8px; }
.verify-ok .verify-mark { color: var(--ok); }
.verify-bad .verify-mark { color: var(--bad); }

/* ---------- "I attended" share page ---------- */
.share-page { text-align: center; }
.share-page h1 { margin: 4px 0 8px; }
.share-lead { color: var(--muted); }
.share-tabs { display: inline-flex; gap: 6px; background: var(--paper-2); padding: 5px; border-radius: 999px; margin: 14px 0; flex-wrap: wrap; justify-content: center; }
.share-tab { border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font: inherit; font-weight: 600; color: var(--navy-700); cursor: pointer; }
.share-tab.active { background: var(--navy-800); color: #fff; }
.share-preview { margin: 0 auto 16px; max-width: 540px; }
.share-preview img { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow); display: block; }
.share-actions { justify-content: center; }
.share-caption { text-align: left; max-width: 540px; margin: 22px auto 0; }
.share-caption label { font-weight: 600; display: block; margin-bottom: 6px; }
.share-caption textarea { width: 100%; padding: 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); font: inherit; resize: vertical; margin-bottom: 8px; }
.share-tips { text-align: left; max-width: 540px; margin: 18px auto 0; color: var(--text); }
.share-cert { margin-top: 18px; }
.cert-rule .notice-box { margin-bottom: 10px; }
.pass-foot-compact { font-size: .75rem; padding: 6px 10px; }
.programme-note { margin-top: 6px; font-weight: 600; color: var(--gold-600); }
.timeline-item .talk-title { font-style: italic; color: var(--gold-600); }
.timeline-talk h2 { color: var(--navy-800); }
.schedule-sheet { margin: 0 0 32px; text-align: center; }
.schedule-sheet img { display: block; width: 100%; max-width: 760px; height: auto; margin: 0 auto 14px; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.schedule-sheet figcaption { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: center; }

/* ---------- Policies ---------- */
.policy-page h2 { font-size: 1.25rem; margin: 26px 0 8px; }
.policy-page ul { padding-left: 1.2em; }
.policy-page li { margin-bottom: 6px; }
.policy-intro { background: var(--paper-2); border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: var(--radius); }
.footer-policies { flex-basis: 100%; order: 3; font-size: .82rem; margin: 6px 0 0; }
.footer-policies a { white-space: nowrap; }

/* Upload preview — exact cells with mistakes */
.issue-help { font-size: .92rem; color: #4a5568; margin: 4px 0 10px; }
.issue-cells { margin: 4px 0 2px 18px; padding: 0; list-style: disc; }
.issue-cells li { margin: 2px 0; font-size: .92rem; }
.data-table td.cell-error { background: #ffd5da; color: #8a0014; font-weight: 600; outline: 2px solid #e0526a; outline-offset: -2px; }
.data-table td.cell-warn { background: #fff1c2; color: #6b4e00; font-weight: 600; }
.cell-ref { display: inline-block; font-size: .72rem; font-weight: 700; background: #8a0014; color: #fff; border-radius: 4px; padding: 0 5px; margin-left: 4px; vertical-align: middle; }
.cell-warn .cell-ref { background: #8a6d00; }
.cell-error-key { background: #ffd5da; color: #8a0014; font-weight: 700; padding: 0 4px; border-radius: 3px; }
.review-head .btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Homepage 3D molecular network ---------- */
.hero-3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero.hero-3d-on::after { opacity: 0; }                 /* the static molecule picture is replaced */
.hero.hero-3d-on .hero-card { position: relative; background: #fff; }
.hero-copy { position: relative; }
@media (prefers-reduced-motion: reduce) { .hero-3d { opacity: .8; } }

/* ---------- 3D tilt cards (Explore) ---------- */
.explore-grid { perspective: 1100px; }
.explore-card.tilt-3d {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; transform-style: preserve-3d; will-change: transform;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease, border-color .3s ease;
}
.explore-card.tilt-3d.is-tilting { transition: transform .08s linear, box-shadow .3s ease, border-color .3s ease; }
.explore-card.tilt-3d:hover, .explore-card.tilt-3d:focus-visible {
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(14px);
  box-shadow: 0 22px 40px rgba(10, 31, 59, .16), 0 4px 10px rgba(10, 31, 59, .08);
}
.explore-card.tilt-3d::after { /* moving light shine */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .55), rgba(226, 201, 143, .14) 32%, transparent 60%);
  mix-blend-mode: soft-light;
}
.explore-card.tilt-3d:hover::after { opacity: 1; }
.explore-card.tilt-3d .explore-icon { transform: translateZ(34px); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.explore-card.tilt-3d .explore-title { transform: translateZ(22px); }
.explore-card.tilt-3d .explore-desc, .explore-card.tilt-3d .explore-link { transform: translateZ(12px); }
.explore-card.tilt-3d:hover .explore-icon { box-shadow: 0 10px 18px rgba(184, 137, 45, .28); }
@media (hover: none) { .explore-card.tilt-3d { transition: transform .2s linear; } }

/* ---------- 3D molecule in inner-page headers ---------- */
.page-hero .hero-3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }


/* Invisible bot trap (never shown to people) */
.hp-field { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Payment Test Mode banner */
.test-banner { background: #b3261e; color: #fff; text-align: center; font-size: .88rem; padding: 7px 16px; line-height: 1.4; position: relative; z-index: 60; }
.test-banner strong { letter-spacing: .06em; }
.no-refund-note { margin-top: 16px; }

/* Last date to register */
.deadline-note { margin-bottom: 20px; }
.register-band .deadline-line { margin-top: 6px; }

/* ---------- Programme: schedule sheet (edited in Admin → Programme) ---------- */
.schedule-doc { max-width: 760px; margin: 0 auto; border-radius: 6px; overflow: hidden; box-shadow: 0 10px 34px rgba(10, 31, 59, .16); background: #f6f2ea url("../images/schedule/schedule-bg.jpg") center top / cover; }
.schedule-doc-head { background: #0e2a4f url("../images/schedule/schedule-head.jpg") center bottom / cover; text-align: center; padding: 30px 20px 30px; color: #fff; border-bottom: 5px solid #c79a3e; border-image: linear-gradient(90deg, #b8892d, #e0bd6e, #b8892d) 1; }
.schedule-doc-head p { margin: 0; }
.sd-name { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: clamp(2.3rem, 7.5vw, 3.6rem); line-height: 1.05; color: #fff; letter-spacing: .01em; }
.sd-name span { color: #d8b46a; }
.sd-tagline { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.05rem, 3vw, 1.45rem); color: #f1e6c8; margin-top: 10px !important; }
.sd-date { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1rem, 2.8vw, 1.35rem); color: #d8b46a; margin-top: 8px !important; }
.sd-venue { font-size: .82rem; color: #e4ebf3; margin-top: 4px !important; padding-bottom: 6px; }
.schedule-doc-body { padding: 22px clamp(18px, 7vw, 74px) 34px; }
.schedule-doc-body h2 { text-align: center; font-family: Georgia, "Times New Roman", serif; font-weight: 700; color: #13294b; font-size: clamp(1.6rem, 4.6vw, 2.15rem); margin: 0 0 14px; letter-spacing: .02em; }
.sd-list { list-style: none; margin: 0; padding: 0; }
.sd-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(19, 41, 75, .14); }
.sd-what { min-width: 0; }
.sd-title { display: block; color: #3d4556; font-size: .95rem; }
.sd-speaker .sd-title, .sd-student .sd-title { color: #13294b; font-weight: 700; }
.sd-talk { display: block; color: #9a7330; font-style: italic; font-size: .86rem; margin-top: 2px; }
.sd-speaker { padding-bottom: 20px; }
.sd-time { color: #13294b; font-weight: 700; font-size: .92rem; white-space: nowrap; text-align: right; }
.schedule-actions { text-align: center; margin: 22px 0 0; }
@media (max-width: 560px) {
  .sd-row { flex-direction: column; gap: 2px; }
  .sd-time { text-align: left; order: -1; font-size: .85rem; color: #9a7330; }
  .sd-speaker { padding-bottom: 11px; }
}
@media print {
  .schedule-section { padding: 0 !important; }
  .schedule-section .container { max-width: none; padding: 0; }
  .schedule-doc { box-shadow: none; border-radius: 0; max-width: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .schedule-doc * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .page-programme .site-header, .page-programme .site-footer { display: none !important; }
  .schedule-doc-head { padding: 16px 12px 14px; }
  .sd-name { font-size: 30pt; }
  .sd-tagline { font-size: 13pt; margin-top: 4px !important; }
  .sd-date { font-size: 12pt; margin-top: 4px !important; }
  .sd-venue { font-size: 8.5pt; }
  .schedule-doc-body { padding: 12px 40px 16px; }
  .schedule-doc-body h2 { font-size: 19pt; margin-bottom: 6px; }
  .sd-row { padding: 5px 0; break-inside: avoid; }
  .sd-speaker { padding-bottom: 7px; }
  .sd-title, .sd-time { font-size: 9.5pt; }
  .sd-talk { font-size: 8.5pt; margin-top: 0; }
}

/* Footer "Last updated" */
.footer-updated { font-size: .8rem; opacity: .8; }
