/* ==========================================================================
   From Mortgages to Markets 2026 — event page
   Mobile-first. All assets local (except the embedded Google map).
   ========================================================================== */

/* Fonts ------------------------------------------------------------------ */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/roboto-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/roboto-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tokens ----------------------------------------------------------------- */
:root {
  /* key visual blues */
  --navy-950: #011A38;     /* header, footer */
  --navy-900: #04254C;     /* hero */
  --navy-600: #124B80;     /* accent on light backgrounds */
  --sky: #A9CBEF;          /* accent on dark backgrounds */
  /* BNM brand */
  --ink: #404759;          /* body text */
  --ink-soft: #5D6577;     /* secondary text */
  --mist: #EEF2F7;         /* tinted sections */
  --line: #D8DEE8;
  --paper: #FFFFFF;

  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --wrap: 1160px;
  --gutter: 16px;
  --radius: 8px;
  --header-h: 60px;
  --quickbar-h: 56px;
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: calc(var(--quickbar-h) + env(safe-area-inset-bottom));
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 500; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid #5B9BE0;
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.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: 8px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy-950);
  color: #fff;
  border-radius: var(--radius);
}
.skip-link:focus { top: 8px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-600); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: #DCE8F6; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-950);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand { display: block; min-width: 0; }
.brand img { height: 19px; width: auto; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px; height: 48px;
  margin-right: -10px;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--navy-950);
  border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 16px 24px rgba(1,26,56,.35);
  display: none;
}
.site-nav.is-open { display: block; }
.site-nav ul { padding: 4px var(--gutter) 16px; }
.site-nav a {
  display: block;
  padding: 13px 0;
  font-size: 1.125rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-nav li:last-child a { border-bottom: 0; }

/* Hero ------------------------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #06305E 0%, #072649 100%);
  color: #fff;
  overflow: hidden;
}

.hero-inner { padding-top: 28px; }
.hero-media { order: 2; position: relative; }
.hero-media img {
  width: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
}

.hero-organisers { width: 100%; max-width: 440px; }

.hero-title { margin-top: 36px; }
.hero-title img { width: 100%; max-width: 640px; }

.hero-kicker {
  margin: 16px 0 0;
  color: #C8D5E6;
  font-size: 1rem;
  max-width: 36ch;
}

.hero-actions {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.hero-when { margin-top: 28px; }
.hero-date {
  margin: 0 0 6px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.hero-note {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  font-size: .92rem;
  color: #BACADD;
}
.countdown { color: #fff; font-weight: 500; font-variant-numeric: tabular-nums; }
.countdown:empty { display: none; }

/* Sections --------------------------------------------------------------- */
.section { padding: 56px 0; }
.section-tint { background: var(--mist); }

.section-head { margin-bottom: 28px; }
.section-title {
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -.015em;
  color: var(--navy-900);
  margin-bottom: 10px;
}
.section-meta { color: var(--ink-soft); margin: 0; max-width: 60ch; }

.lead { font-size: 1.15rem; line-height: 1.55; }
.about-text p { max-width: 66ch; }

.subhead {
  font-size: 1.2rem;
  color: var(--navy-900);
  margin: 36px 0 16px;
}

.goals { display: grid; gap: 14px; max-width: 66ch; }
.goals li {
  position: relative;
  padding-left: 30px;
}
.goals li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 18px; height: 9px;
  border: 2px solid var(--navy-600);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.glance {
  margin-top: 40px;
  border-top: 3px solid var(--navy-900);
  padding-top: 20px;
}
.glance-title { font-size: 1.1rem; color: var(--navy-900); margin-bottom: 8px; }
.glance dl { margin: 0; }
.glance dl div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.glance dt { font-size: .85rem; color: var(--ink-soft); }
.glance dd { margin: 2px 0 0; font-weight: 500; }

/* Agenda ----------------------------------------------------------------- */
.moderator { margin-top: 20px; }
.moderator .people-role { margin-bottom: 6px; }

.agenda { display: grid; gap: 10px; }

.slot {
  display: grid;
  gap: 6px;
}
.slot-time {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy-900);
  white-space: nowrap;
}
.slot-body {
  background: var(--paper);
  border-radius: var(--radius);
  border-left: 4px solid var(--ink);
  padding: 16px;
}
.slot--panel .slot-body { border-left-color: var(--navy-600); }

.slot-label {
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.slot--panel .slot-label { color: var(--navy-600); font-weight: 600; }

.slot-title {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--navy-900);
  margin: 0;
}

/* breaks: quiet, no card */
.slot--break { align-items: baseline; }
.slot--break .slot-body {
  background: none;
  border-left: 0;
  padding: 2px 0 6px;
}
.slot--break .slot-title { font-weight: 400; font-size: 1rem; color: var(--ink-soft); }
.slot--break .slot-time { color: var(--ink-soft); font-weight: 500; }
.slot-note { margin: 2px 0 0; font-size: .9rem; color: var(--ink-soft); }

.people { margin-top: 14px; display: grid; gap: 12px; }
.people-role { font-size: .8rem; color: var(--ink-soft); margin: 0 0 6px; }
.people-list { display: grid; gap: 8px; }

.person {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 4px;
  margin: -4px;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  color: inherit;
  border-radius: var(--radius);
  cursor: pointer;
}
.person:hover .person-name { text-decoration: underline; }
.person img {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--mist);
}
.person-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.person-name { font-weight: 500; font-size: .95rem; color: var(--navy-900); }
.person-role { font-size: .82rem; color: var(--ink-soft); }

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.6;
  border-radius: 4px;
  vertical-align: 1px;
  border: 1px solid currentColor;
}
.tag--tbc, .tag--tbd { color: #8A4B00; }
.tag--online { color: var(--navy-600); }

.slot-details { margin-top: 14px; border-top: 1px solid var(--line); }
.slot-details summary {
  cursor: pointer;
  padding: 12px 0 0;
  font-weight: 500;
  font-size: .95rem;
  color: var(--navy-900);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.slot-details summary::-webkit-details-marker { display: none; }
.slot-details summary::before {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .15s;
}
.slot-details[open] summary::before { transform: rotate(45deg); }
.slot-details ul { display: grid; gap: 8px; margin: 8px 0 12px; }
.slot-details li { padding-left: 16px; position: relative; }
.slot-details li::before {
  content: "";
  position: absolute; left: 0; top: .7em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--navy-600);
}
.slot-details p { font-size: .92rem; color: var(--ink-soft); margin: 0 0 4px; }
.slot-details .details-head { font-size: .85rem; font-weight: 600; color: var(--ink); margin: 10px 0 0; }

/* Speakers --------------------------------------------------------------- */
.speakers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 16px;
}
.speaker-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-radius: var(--radius);
}
.speaker-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--mist);
  margin-bottom: 10px;
}
.speaker-card:hover .speaker-name { text-decoration: underline; }
.speaker-name { font-weight: 500; font-size: 1rem; line-height: 1.3; color: var(--navy-900); }
.speaker-role { font-size: .85rem; color: var(--ink-soft); line-height: 1.4; margin-top: 2px; }
.speaker-card .tag { margin: 6px 0 0; align-self: flex-start; }
.speaker-card--tba .speaker-name { color: var(--ink-soft); font-weight: 400; }

/* Dialog ----------------------------------------------------------------- */
/* Centred card on every screen size */
.speaker-dialog {
  width: calc(100% - 32px);
  max-width: 600px;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 14px;
  color: var(--ink);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 24px 48px rgba(1,26,56,.35);
}
.speaker-dialog::backdrop { background: rgba(1,26,56,.65); }
html.has-dialog { overflow: hidden; }
.dialog-body { position: relative; padding: 24px 20px 28px; }
.dialog-body:focus { outline: none; }
.dialog-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--mist);
  color: var(--navy-900);
  cursor: pointer;
  transition: background-color .15s;
}
.dialog-close:hover { background: var(--line); }
.dialog-close:focus-visible { outline-offset: 2px; border-radius: 50%; }
.dialog-close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.dialog-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.dialog-photo { width: 132px; height: 132px; flex: none; border-radius: 50%; object-fit: cover; background: var(--mist); }
.dialog-name { font-size: 1.35rem; font-weight: 500; color: var(--navy-900); }
.dialog-role { color: var(--ink-soft); margin: 4px 0 0; line-height: 1.4; }
.dialog-tags { margin: 6px 0 0; }
.dialog-tags:empty { display: none; }
.dialog-tags .tag { margin-left: 0; margin-right: 6px; }
.dialog-bio { margin-top: 20px; }
.dialog-bio:empty { display: none; }
.dialog-bio p { font-size: .95rem; line-height: 1.6; }
.dialog-subhead { font-size: 1rem; color: var(--navy-900); margin: 20px 0 10px; }
.dialog-sessions { display: grid; gap: 12px; }
.dialog-sessions li { border-left: 3px solid var(--navy-600); padding-left: 12px; }
.dialog-sessions p { margin: 0; }
.dialog-sessions .ds-time { font-size: .85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.dialog-sessions .ds-title { font-weight: 500; line-height: 1.35; }

/* Venue ------------------------------------------------------------------ */
.venue { display: grid; gap: 32px; }
.venue-name { font-size: 1.25rem; font-weight: 500; color: var(--navy-900); margin-bottom: 4px; }
.venue-address { font-style: normal; margin-bottom: 16px; }
.venue-hint { color: var(--ink-soft); max-width: 50ch; }
.venue-map {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}
.venue-map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Contact ---------------------------------------------------------------- */
.contact p { max-width: 60ch; }
.contact .btn { margin-top: 4px; width: 100%; }

/* Footer ----------------------------------------------------------------- */
.site-footer {
  background: var(--navy-950);
  color: #BACADD;
  font-size: .92rem;
}
.footer-inner { display: grid; gap: 24px; padding-top: 40px; padding-bottom: 32px; }
.footer-title { color: #fff; font-weight: 500; margin-bottom: 4px; }
.footer-inner p { margin-bottom: 0; }
.footer-subtitle { color: #fff; font-weight: 500; margin-bottom: 8px !important; }
.footer-links { display: grid; gap: 4px; }
.footer-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 4px 0;
  text-decoration: none;
  line-height: 1.35;
}
.footer-links img { width: 36px; height: 36px; flex: none; object-fit: contain; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-copy { color: #8E9DB3; font-size: .85rem; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; }

/* Mobile quick bar ------------------------------------------------------- */
.quickbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--navy-950);
  border-top: 1px solid rgba(255,255,255,.12);
  padding-bottom: env(safe-area-inset-bottom);
}
.quickbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--quickbar-h);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
}
.quickbar a + a { border-left: 1px solid rgba(255,255,255,.12); }

/* >= 600px --------------------------------------------------------------- */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .brand img { height: 22px; }
  .hero-actions { grid-template-columns: auto auto; justify-content: start; }
  .hero-note { flex-direction: row; flex-wrap: wrap; }
  .hero-note span + span { margin-left: 12px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.28); }
  .speakers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
  .contact .btn { width: auto; }

  .dialog-body { padding: 32px; }
  .dialog-close { top: 18px; right: 18px; }
  .dialog-head { flex-direction: row; align-items: center; gap: 20px; padding-right: 52px; }
  .dialog-photo { width: 156px; height: 156px; }
}

/* >= 900px --------------------------------------------------------------- */
@media (min-width: 900px) {
  :root { --header-h: 72px; }
  body { padding-bottom: 0; }
  .quickbar { display: none; }

  .brand img { height: 24px; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: block;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .site-nav ul { display: flex; align-items: center; gap: 4px; padding: 0; }
  .site-nav a {
    padding: 8px 14px;
    font-size: .98rem;
    border: 0;
    border-radius: var(--radius);
  }
  .site-nav a:hover { background: rgba(255,255,255,.08); }
  .site-nav .nav-cta { background: #fff; color: var(--navy-900); margin-left: 8px; }
  .site-nav .nav-cta:hover { background: #DCE8F6; }

  /* Key visual fills the hero; content sits in the dark area on the left */
  .hero {
    position: relative;
    display: block;
    background: var(--navy-900);
    min-height: clamp(600px, calc(100vh - var(--header-h)), 860px);
  }
  .hero-media { position: absolute; inset: 0; }
  .hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 100%;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3,30,62,.45) 0%, rgba(3,30,62,0) 50%);
  }
  .hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: inherit;
    padding-top: 48px;
    padding-bottom: 44px;
  }
  .hero-organisers { max-width: 480px; }
  .hero-title { margin-top: 48px; }
  .hero-title img { width: 600px; }
  .hero-actions { margin-top: 32px; }
  .hero-when { margin-top: auto; padding-top: 32px; }
  .hero-date { font-size: 2rem; }

  .section { padding: 88px 0; }
  .section-head { margin-bottom: 40px; }

  .about { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; align-items: start; }
  .glance { margin-top: 0; position: sticky; top: calc(var(--header-h) + 24px); }

  .moderator { margin-left: 152px; }
  .slot { grid-template-columns: 128px minmax(0, 1fr); gap: 24px; }
  .slot-time { padding-top: 16px; text-align: right; }
  .slot--break .slot-time { padding-top: 2px; }
  .slot-body { padding: 20px 24px; }
  .slot-title { font-size: 1.2rem; }
  .people-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 20px; }

  .speakers { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; }

  .venue { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }

  .footer-inner { grid-template-columns: 1fr 1fr; align-items: start; gap: 32px 48px; }
  .footer-copy { grid-column: 1 / -1; }
}

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