/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --daisy-blue: #003366;
  --daisy-mid: #0057a8;
  --daisy-accent: #e8821a;
  --daisy-accent-strong: #b35c12;
  --daisy-accent-strong-hover: #964d0e;
  --daisy-light: #e8f1fa;
  --daisy-lighter: #f4f8fd;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --border: #d1dce8;
  --white: #ffffff;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-card: 0 2px 12px rgba(0, 51, 102, 0.08), 0 1px 3px rgba(0, 51, 102, 0.06);
  --shadow-hover: 0 8px 28px rgba(0, 51, 102, 0.14), 0 2px 6px rgba(0, 51, 102, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--daisy-lighter);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--daisy-mid); text-decoration: underline; }
a:hover { color: var(--daisy-blue); }
a:focus-visible {
  outline: 3px solid var(--daisy-accent-strong);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: .5rem 1rem;
  background: var(--daisy-accent-strong);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 999;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(1080px, 94%);
  margin-inline: auto;
}

/* ── Header / hero ─────────────────────────────────────────── */
header {
  background: var(--daisy-blue);
  color: var(--white);
  padding: 2.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 90% 50%, rgba(0, 87, 168, 0.55) 0%, transparent 70%),
    repeating-linear-gradient(-45deg, transparent, transparent 28px, rgba(255, 255, 255, 0.025) 28px, rgba(255, 255, 255, 0.025) 29px);
  pointer-events: none;
}

.header-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-logos {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.header-logo-pill {
  background: white;
  border-radius: 8px;
  padding: .35rem .75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  align-self: flex-start;
  transition: opacity .2s ease;
}
.header-logo-pill:hover { opacity: .85; }

.header-logo {
  height: 64px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

/* ── Site navigation ──────────────────────────────────────────── */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
}

.site-nav a {
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.site-nav a:hover { color: var(--white); }

.site-nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--daisy-accent);
}

.hero-kicker {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--daisy-accent);
  margin-bottom: .5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.2;
  color: var(--white);
  max-width: 24ch;
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, .82);
  max-width: 60ch;
  margin-top: .75rem;
}

.hero-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.75rem;
  font-size: .92rem;
  opacity: .92;
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.hero-meta svg { opacity: .8; flex-shrink: 0; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--daisy-accent-strong);
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  transition: background .2s ease, transform .2s ease;
}
.btn-primary:hover {
  background: var(--daisy-accent-strong-hover);
  color: var(--white);
  transform: translateY(-1px);
}

/* Outline button for use on the dark hero, beside .btn-primary */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  padding: calc(.85rem - 2px) calc(1.5rem - 2px);
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn-ghost:hover {
  background: var(--white);
  color: var(--daisy-blue);
  border-color: var(--white);
  transform: translateY(-1px);
}

.precon-note {
  font-size: .85rem;
  color: rgba(255, 255, 255, .7);
}

/* Links inside the dark header/hero prose need a light colour for contrast */
.precon-note a,
.page-subtitle a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.precon-note a:hover,
.page-subtitle a:hover {
  color: var(--daisy-light);
}

/* ── Page header (non-hero pages) ─────────────────────────────── */
.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  line-height: 1.2;
  color: var(--white);
  max-width: 30ch;
}

.page-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, .82);
  max-width: 60ch;
  margin-top: .75rem;
}

/* ── Section anatomy ───────────────────────────────────────── */
section { padding: 3.5rem 0; }
section + section { border-top: 1px solid var(--border); }

.section-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--daisy-mid);
  margin-bottom: .6rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  color: var(--daisy-blue);
  margin-bottom: 1.5rem;
}

/* ── Welcome message ──────────────────────────────────────────── */
.welcome-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 68ch;
}

.welcome-speaker {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.welcome-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  flex-shrink: 0;
}

.welcome-speaker-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.welcome-speaker-role {
  font-size: .85rem;
  color: var(--text-muted);
}

.welcome-audio {
  width: 100%;
}

.welcome-text {
  color: var(--text-secondary);
  font-size: .98rem;
  border-left: 3px solid var(--daisy-light);
  padding-left: 1.1rem;
}
.welcome-text p + p { margin-top: .75rem; }

/* ── About / body text ────────────────────────────────────────── */
.about-text {
  font-size: 1.02rem;
  color: var(--text-secondary);
  max-width: 72ch;
}
.about-text + .about-text { margin-top: 1rem; }

/* ── Programme themes ──────────────────────────────────────── */
.themes-list {
  list-style: none;
  display: grid;
  gap: .9rem;
}

.themes-list li {
  display: flex;
  gap: .9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-card);
  font-size: .95rem;
  color: var(--text-primary);
}

.theme-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--daisy-light);
  color: var(--daisy-mid);
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Register CTA band ─────────────────────────────────────── */
.register-band {
  background: var(--daisy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.register-band h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--daisy-blue);
  margin-bottom: .35rem;
}

.register-band p {
  color: var(--text-secondary);
  font-size: .92rem;
  max-width: 46ch;
}

.register-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--daisy-blue);
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
.btn-secondary:hover {
  background: var(--daisy-mid);
  color: var(--white);
  transform: translateY(-1px);
}

/* ── Speakers grid ─────────────────────────────────────────── */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.speaker-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem 1.25rem;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.speaker-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.speaker-avatar {
  width: 80%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  align-self: center;
  border-radius: 50%;
  background: var(--daisy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--border);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

button.speaker-avatar {
  appearance: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

button.speaker-avatar:hover img { transform: scale(1.08); }

button.speaker-avatar:focus-visible {
  outline: 3px solid var(--daisy-accent-strong);
  outline-offset: 2px;
}

.speaker-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 2;
  transition: transform .2s ease;
}

.avatar-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 3.5rem);
  color: var(--daisy-mid);
  z-index: 1;
}

.speaker-name {
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.speaker-role {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.4;
  flex: 1;
}

.speaker-location {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .76rem;
  color: var(--text-muted);
}

.speaker-location svg { flex-shrink: 0; opacity: .8; }

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 600;
  color: #0a66c2;
  text-decoration: none;
  padding: .35rem .65rem;
  border: 1.5px solid #0a66c2;
  border-radius: var(--radius-sm);
  transition: background .15s ease, color .15s ease;
  align-self: flex-start;
  margin-top: auto;
}
.linkedin-link:hover { background: #0a66c2; color: var(--white); }
.linkedin-link svg { flex-shrink: 0; }

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--daisy-mid);
  text-decoration: none;
  padding: .35rem .65rem;
  border: 1.5px solid var(--daisy-mid);
  border-radius: var(--radius-sm);
  transition: background .15s ease, color .15s ease;
  align-self: flex-start;
  margin-top: auto;
}
.profile-link:hover { background: var(--daisy-mid); color: var(--white); }
.profile-link svg { flex-shrink: 0; }

/* ── Venue ─────────────────────────────────────────────────── */
.venue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.venue-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-card);
}

.venue-card h3 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--daisy-mid);
  margin-bottom: .5rem;
}

.venue-card p { font-size: .92rem; color: var(--text-primary); }
.venue-card p + p { margin-top: .5rem; }

.venue-map {
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 7;
}

.venue-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 560px) {
  .venue-map { aspect-ratio: 4 / 5; }
}

/* ── Organisation cards ───────────────────────────────────────── */
.org-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.org-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.org-logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: var(--daisy-light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: .5rem;
}

.org-logo img { width: 100%; height: 100%; object-fit: contain; }

.org-logo-initials {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--daisy-mid);
}

.org-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--daisy-blue);
  margin-bottom: .6rem;
}

.org-body p {
  color: var(--text-secondary);
  font-size: .95rem;
  max-width: 68ch;
}
.org-body p + p { margin-top: .75rem; }

.org-body a { font-weight: 600; }

@media (max-width: 560px) {
  .org-card { flex-direction: column; }
}

/* ── Programme ─────────────────────────────────────────────────── */
.programme-list {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.programme-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 1.5rem;
  scroll-margin-top: 1rem;
}

.programme-time {
  flex-shrink: 0;
  width: 130px;
  font-weight: 700;
  color: var(--daisy-mid);
  font-size: .88rem;
  line-height: 1.4;
}

.programme-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--daisy-blue);
  margin-bottom: .35rem;
}

.programme-desc {
  color: var(--text-secondary);
  font-size: .92rem;
  margin-bottom: .75rem;
}

.programme-speakers {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.programme-speaker-link {
  display: inline-flex;
  align-items: center;
  font-size: .82rem;
  font-weight: 600;
  color: var(--daisy-mid);
  text-decoration: none;
  padding: .3rem .65rem;
  border: 1.5px solid var(--daisy-mid);
  border-radius: var(--radius-sm);
  transition: background .15s ease, color .15s ease;
}
.programme-speaker-link:hover { background: var(--daisy-mid); color: var(--white); }

.programme-item.is-break {
  background: var(--daisy-lighter);
  border-style: dashed;
  box-shadow: none;
  align-items: center;
}

.programme-item.is-break .programme-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .92rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

@media (max-width: 560px) {
  .programme-item { flex-direction: column; gap: .5rem; }
  .programme-time { width: auto; }
}

/* ── FAQ ───────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  font-size: .98rem;
  color: var(--text-primary);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:focus-visible {
  outline: 3px solid var(--daisy-accent-strong);
  outline-offset: -3px;
}

.faq-item summary .faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--daisy-mid);
  transition: transform .2s ease;
}

.faq-item[open] summary .faq-icon { transform: rotate(45deg); }

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  font-size: .95rem;
  max-width: 68ch;
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--daisy-blue);
  color: rgba(255, 255, 255, .7);
  font-size: .82rem;
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
}

.footer-brand img {
  height: 36px;
  width: auto;
  object-fit: contain;
  background: white;
  border-radius: 6px;
  padding: 4px 10px;
  display: block;
}

footer a { color: rgba(255, 255, 255, .7); }
footer a:hover { color: var(--white); }

/* ── Photo lightbox ────────────────────────────────────────── */
.photo-dialog {
  border: none;
  padding: 0;
  border-radius: var(--radius-md);
  width: min(90vw, 480px);
  background: var(--white);
  box-shadow: var(--shadow-hover);
}

.photo-dialog::backdrop {
  background: rgba(0, 17, 34, .72);
}

.photo-dialog:focus-visible {
  outline: 3px solid var(--daisy-accent-strong);
  outline-offset: 2px;
}

.photo-dialog img {
  width: 100%;
  display: block;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.photo-dialog-caption {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.photo-dialog-caption span {
  font-weight: 600;
  color: var(--text-primary);
}

.photo-dialog-close {
  all: unset;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  flex-shrink: 0;
}
.photo-dialog-close:hover { background: var(--daisy-light); color: var(--daisy-blue); }
.photo-dialog-close:focus-visible {
  outline: 3px solid var(--daisy-accent-strong);
  outline-offset: 2px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero-meta { flex-direction: column; gap: .5rem; }
  .register-band { flex-direction: column; align-items: flex-start; }
}
