/* ICMBPS 2026 — ocean blue, white, orange accent (from the PDF banner) */
:root {
  --ocean-900: #072f4a;
  --ocean-800: #0a4166;
  --ocean-700: #0b5c8a;
  --ocean-500: #1a87c4;
  --ocean-100: #dcedf8;
  --ocean-50: #f1f8fd;
  --accent: #c2410c;        /* white text on this passes WCAG AA */
  --accent-hover: #9a3412;
  --accent-bright: #fb923c; /* decorative only, never behind text */
  --ink: #15232f;
  --ink-soft: #4a5b6a;
  --line: #d6e2ec;
  --bg: #ffffff;
  --bg-soft: #f6f9fb;
  --tbc-bg: #fff4e5;
  --tbc-ink: #8a3b00;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(7, 47, 74, 0.08);
  --header-h: 72px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-size: 16px; line-height: 1.6; background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--ocean-700); text-underline-offset: 3px; }
a:hover { color: var(--ocean-900); }
h1, h2, h3 { line-height: 1.2; color: var(--ocean-900); margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ocean-500); outline-offset: 2px; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
.muted { color: var(--ink-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; color: var(--accent); margin-bottom: 0.5rem; }

/* TBC marker: anything not yet confirmed by the organisers */
.tbc { display: inline-block; background: var(--tbc-bg); color: var(--tbc-ink); border: 1px dashed #e9a25f; border-radius: 6px; padding: 0 6px; font-size: 0.8em; font-weight: 600; line-height: 1.6; }
.preview-bar { background: var(--tbc-bg); color: var(--tbc-ink); font-size: 0.85rem; padding: 6px 0; text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 650; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.btn-primary { background: var(--ocean-700); color: #fff; }
.btn-primary:hover { background: var(--ocean-900); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--ocean-700); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ocean-700); }
.btn-light { background: #fff; color: var(--ocean-900); }
.btn-light:hover { background: var(--ocean-50); color: var(--ocean-900); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.link-btn { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; padding: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ocean-900); font-size: 1.15rem; }
.brand strong { font-weight: 800; letter-spacing: 0.02em; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav > ul > li > a, .site-nav .menu-toggle, .site-nav .link-btn { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 550; font-size: 0.95rem; }
.site-nav a:hover, .site-nav .menu-toggle:hover, .site-nav .link-btn:hover { background: var(--ocean-50); color: var(--ocean-900); }
.site-nav a[aria-current="page"], .has-menu.is-active > .menu-toggle { color: var(--ocean-700); box-shadow: inset 0 -2px 0 var(--accent-bright); border-radius: 0; }
.menu-toggle { background: none; border: 0; font: inherit; cursor: pointer; }
.menu-toggle::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.has-menu { position: relative; }
.submenu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.submenu a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.has-menu.open .submenu { display: block; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: var(--ocean-900); margin: auto; position: relative; transition: transform 0.2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }

@media (max-width: 991px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: calc(var(--header-h) + 1px) 0 auto 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .site-nav.open { display: flex; }
  .site-nav > ul { flex-direction: column; align-items: stretch; }
  .submenu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .menu-toggle::after { display: none; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent-bright); }
  .btn-register { width: 100%; }
}

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; background: radial-gradient(1200px 600px at 85% -10%, rgba(26, 135, 196, 0.55), transparent 60%), linear-gradient(135deg, var(--ocean-900), var(--ocean-700) 70%, #0f7bb0); }
/* Banner photo across the top of the hero, shown at its own wide shape (2000×365) so it stays sharp,
   fading into the blue below. On phones it's kept at least 150px tall and centred on the sea lion. */
.hero-banner { position: relative; line-height: 0; }
.hero-banner img { display: block; width: 100%; aspect-ratio: 2000 / 365; min-height: 150px; object-fit: cover; object-position: 58% center; }
.hero-banner::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(rgba(7, 47, 74, 0), rgba(7, 47, 74, 0.85)); }
.hero:has(.hero-banner) .hero-inner { padding-top: clamp(32px, 5vw, 64px); }
.hero-art { position: absolute; inset: auto 0 0 0; width: 100%; height: 45%; opacity: 0.35; pointer-events: none; }
.hero-inner { position: relative; padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 9vw, 120px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--accent-bright); }
.hero-lede { font-size: 1.15rem; max-width: 40ch; opacity: 0.92; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 20px 0 28px; font-weight: 600; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.countdown-card { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 20px; padding: 28px; backdrop-filter: blur(6px); }
.countdown-card h2 { color: #fff; font-size: 1rem; font-weight: 600; opacity: 0.9; margin-bottom: 16px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
.countdown div { background: rgba(7, 47, 74, 0.45); border-radius: 12px; padding: 14px 4px; }
.countdown strong { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; }
.countdown-note { font-size: 0.8rem; opacity: 0.8; margin: 12px 0 0; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.page-hero { background: linear-gradient(135deg, var(--ocean-900), var(--ocean-700)); color: #fff; padding: clamp(40px, 6vw, 72px) 0; }
.page-hero h1 { color: #fff; margin-bottom: 0.3em; }
.page-hero p { opacity: 0.9; max-width: 60ch; margin: 0; }
.breadcrumb { font-size: 0.85rem; margin-bottom: 12px; opacity: 0.85; }
.breadcrumb a { color: #fff; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--ocean-100); color: inherit; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--ocean-50); color: var(--ocean-700); display: grid; place-items: center; margin-bottom: 14px; }
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }

.info-strip { margin-top: -40px; position: relative; z-index: 2; }
.info-strip .card { display: flex; gap: 16px; align-items: center; box-shadow: var(--shadow); }
.info-strip .card .icon { margin: 0; flex: none; }
.info-strip small { display: block; color: var(--ink-soft); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* Important dates timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ocean-100); }
.timeline li { position: relative; padding: 0 0 22px 24px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--ocean-700); }
.timeline li.is-key::before { border-color: var(--accent); }
.timeline time, .timeline .date { font-weight: 700; color: var(--ocean-900); display: block; }
.timeline span { color: var(--ink-soft); }

/* Tabs */
.tabs [role="tablist"] { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs [role="tab"] { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 16px; font: inherit; font-weight: 600; color: var(--ink-soft); cursor: pointer; white-space: nowrap; }
.tabs [role="tab"][aria-selected="true"] { color: var(--ocean-700); border-bottom-color: var(--accent); }
.tabs [role="tabpanel"][hidden] { display: none; }

.session-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.session-list a { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; }
.session-list a:hover { border-color: var(--ocean-500); color: var(--ocean-900); }
.session-num { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--ocean-700); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; }

/* Accordion */
.accordion details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 10px; }
.accordion summary { cursor: pointer; padding: 16px 20px; font-weight: 650; display: flex; gap: 14px; align-items: center; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; color: var(--ocean-700); }
.accordion details[open] summary::after { content: "–"; }
.accordion .acc-body { padding: 0 20px 18px; }
.accordion .acc-body ul { margin: 0; padding-left: 1.2em; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--ocean-50); color: var(--ocean-900); font-weight: 650; }
tbody tr:last-child td { border-bottom: 0; }
td.time { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ocean-800); width: 130px; }
tr.break td { background: var(--bg-soft); color: var(--ink-soft); }
tr.highlight td:last-child { font-weight: 600; }

/* Lists and content */
.prose { max-width: 72ch; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2.5px solid var(--ocean-700); border-bottom: 2.5px solid var(--ocean-700); transform: rotate(-45deg); }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 12px; margin: 20px 0; }
.fact { background: var(--ocean-50); border-radius: var(--radius); padding: 16px; }
.fact strong { display: block; font-size: 1.25rem; color: var(--ocean-900); }
.fact span { font-size: 0.85rem; color: var(--ink-soft); }
.callout { border-left: 4px solid var(--accent); background: var(--tbc-bg); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0; }
.callout-info { border-left-color: var(--ocean-700); background: var(--ocean-50); }

/* Speakers, workshops, sponsors, news */
.speaker { text-align: center; }
.speaker img, .speaker .avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; display: grid; place-items: center; }
.speaker .avatar { background: var(--ocean-100); color: var(--ocean-800); font-weight: 750; font-size: 1.6rem; }
.speaker-role { display: inline-block; background: var(--ocean-50); color: var(--ocean-800); border-radius: 999px; padding: 2px 12px; font-size: 0.85rem; font-weight: 600; }
.empty-state { text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); padding: clamp(28px, 6vw, 56px) 20px; background: var(--bg-soft); }
.empty-state h2 { font-size: 1.4rem; }
.empty-state p { max-width: 52ch; margin-inline: auto; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--ocean-50); color: var(--ocean-800); border-radius: 999px; padding: 2px 12px; font-size: 0.85rem; font-weight: 600; }
.tier { display: flex; flex-direction: column; border-top: 4px solid var(--tier, var(--ocean-700)); }
.tier ul { flex: 1; }
.tier .price { font-size: 1.1rem; font-weight: 700; color: var(--ocean-900); margin-bottom: 12px; }
.post-list { display: grid; gap: 16px; }
.post-card h2 { font-size: 1.3rem; margin-bottom: 6px; }
.post-card h2 a { color: var(--ocean-900); text-decoration: none; }
.post-card h2 a:hover { color: var(--ocean-700); text-decoration: underline; }
.post-date { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.page-hero .post-date, .page-hero time { color: #fff; }
.legal h2 { font-size: 1.35rem; margin-top: 1.6em; }
.legal h3 { margin-top: 1.2em; }
.modal-body { padding: 28px; }
.modal-body h2 { font-size: 1.4rem; margin-bottom: 4px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--ocean-800), var(--ocean-700)); color: #fff; border-radius: 20px; padding: clamp(28px, 5vw, 48px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: 0.9; }

/* Forms */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 20px; margin: 0; display: grid; gap: 16px; }
.form legend { font-weight: 700; color: var(--ocean-900); padding: 0 6px; }
label { display: grid; gap: 6px; font-weight: 550; font-size: 0.95rem; }
.req::after { content: " *"; color: var(--accent); }
input, select, textarea { font: inherit; padding: 11px 13px; border: 1px solid #b9c9d6; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--ocean-500); outline: 3px solid rgba(26, 135, 196, 0.2); outline-offset: 0; }
input[type="checkbox"], input[type="radio"] { width: auto; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; }
.hint { font-size: 0.85rem; color: var(--ink-soft); font-weight: 400; }
.word-count { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); text-align: right; }
.word-count.over { color: #b91c1c; }
.field-error { color: #b91c1c; font-size: 0.85rem; font-weight: 500; }
[aria-invalid="true"] { border-color: #b91c1c; }
.coauthor { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
@media (max-width: 560px) { .coauthor { grid-template-columns: 1fr; } }
.form-status { margin: 0; font-weight: 600; }
.form-status:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button[disabled] { opacity: 0.7; cursor: progress; }
.form-status.ok { color: #166534; }
.form-status.err { color: #b91c1c; }
.deadline-banner { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; background: var(--ocean-50); border: 1px solid var(--ocean-100); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 28px; }

/* Modals */
.modal { border: 0; border-radius: 16px; padding: 0; width: min(480px, 100% - 32px); box-shadow: 0 20px 60px rgba(7, 47, 74, 0.3); }
.modal::backdrop { background: rgba(7, 47, 74, 0.55); }
.lead-form { display: grid; gap: 14px; padding: 28px; }
.lead-form h2 { font-size: 1.4rem; margin: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* Floating button */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 12px 18px; font: inherit; font-weight: 650; box-shadow: 0 8px 24px rgba(194, 65, 12, 0.35); cursor: pointer; }
.fab:hover { background: var(--accent-hover); }

/* Footer */
.site-footer { background: var(--ocean-900); color: #cfe0ec; padding: 56px 0 24px; margin-top: 0; }
.site-footer p { margin: 0 0 6px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer-brand { color: #fff; font-size: 1.15rem; }
.footer-h { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-links a { color: #fff; }
.site-footer .muted { color: #9db8cb; }
.site-footer .tbc { background: rgba(255, 244, 229, 0.15); color: #ffd6a8; border-color: rgba(255, 214, 168, 0.5); }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 40px; padding-top: 20px; font-size: 0.85rem; padding-bottom: 56px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
