/* ==========================================================================
   HGM 2027 — Inner pages
   Extends template-b.css (tokens, buttons, grids). Only things the homepage
   does not already provide live here. Loaded after template-b.css.
   ========================================================================== */

/* ---------- Header: 11-tab navigation ---------- */
.nav-desktop { gap: 14px; }
.nav-desktop a.is-active:not(.nav-cta),
.nav-mobile a.is-active:not(.nav-cta) { color: var(--indigo); }
.nav-desktop a.is-active:not(.nav-cta) { box-shadow: 0 2px 0 var(--indigo); }
.nav-desktop .nav-cta, .nav-mobile .nav-cta { /* Registration tab keeps the primary-button look */ }
.nav-desktop .nav-cta.is-active { background: var(--indigo-d); }
.footer-about a { color: #fff; }
.footer-links li { overflow-wrap: anywhere; }

/* Seven top-level tabs fit on one line down to 1200px; below that the menu becomes the hamburger */
@media (max-width: 1199px) {
  .nav-desktop { display: none; }
  .nav-toggle-btn { display: block; }
}

/* ==========================================================================
   INNER BANNER — all banner styling is managed here
   ========================================================================== */
.inner-banner {
  --banner-min-height: 340px;
  --banner-pad-y: 56px;
  --banner-overlay: linear-gradient(90deg, rgba(19,23,27,.94) 0%, rgba(19,23,27,.72) 55%, rgba(19,23,27,.45) 100%);
  --banner-title-size: clamp(36px, 5.2vw, 66px);
  --banner-accent: var(--lime);

  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: var(--banner-min-height);
  padding: var(--banner-pad-y) 0;
  background-color: var(--ink);
  background-image: var(--banner-overlay), var(--banner-image, none);
  background-size: cover;
  background-position: center;
  color: var(--dark-text);
  border-bottom: 4px solid var(--banner-accent);
}
.inner-banner-inner { width: 100%; animation: fadeUp .7s ease both; }
.inner-banner .breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--dark-muted); margin-bottom: 26px; }
.inner-banner .breadcrumb a { color: var(--dark-text); }
.inner-banner .breadcrumb a:hover { color: var(--banner-accent); }
.inner-banner-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--banner-accent); }
.inner-banner-kicker::before { content: ""; width: 8px; height: 8px; background: var(--banner-accent); border-radius: 50%; }
.inner-banner h1 { font-weight: 800; font-size: var(--banner-title-size); line-height: 1; margin: 18px 0 0; letter-spacing: -0.4px; color: #fff; }
.inner-banner-lead { font-size: clamp(16px, 1.6vw, 19px); color: #b7bdbb; max-width: 56ch; margin: 20px 0 0; }

@media (max-width: 619px) {
  .inner-banner { --banner-min-height: 260px; --banner-pad-y: 40px; }
  .inner-banner .breadcrumb { margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) { .inner-banner-inner { animation: none; } }

/* ---------- Generic page building blocks ---------- */
.page-section { padding-top: 80px; padding-bottom: 80px; }
.page-section + .page-section { padding-top: 0; }
.section-intro { margin: 18px 0 0; font-size: 16px; color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.section-intro + .section-intro { margin-top: 12px; }
.prose p { margin: 0 0 14px; color: var(--muted); font-size: 16px; max-width: 70ch; }
.prose h3 { font-family: var(--display); font-size: 20px; margin: 30px 0 10px; }
.prose ul { color: var(--muted); padding-left: 20px; max-width: 70ch; }
.prose li { margin-bottom: 6px; }
.band { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-section.band { padding-top: 80px; }
.page-section.band + .page-section { padding-top: 80px; }
.stack > * + * { margin-top: 44px; }

.btn.is-pending { opacity: .55; cursor: not-allowed; }
.btn.is-pending:hover { opacity: .55; }
.btn-row.start { margin-top: 30px; }
.draft-note {
  margin: 22px 0 0; padding: 12px 16px; max-width: 70ch;
  border-left: 3px solid var(--lime); background: var(--panel);
  font-size: 13px; color: var(--muted);
}

/* Cell grids built on the homepage's .why-cell look */
.cell-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 44px; }
.cell-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cell-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cell-grid .why-cell { display: flex; flex-direction: column; }
.cell-grid .why-cell .btn { align-self: flex-start; margin-top: 16px; }
.cell-grid.dates .date-cell { background: var(--panel); }
.cell-grid a.why-cell { color: inherit; transition: background .2s ease; }
.cell-grid a.why-cell:hover { background: var(--bg2); }
.cell-grid .why-cell .link-arrow { margin-top: auto; padding-top: 18px; align-self: flex-start; }
.cell-grid .why-cell .btn { margin-top: auto; }
.cell-grid .why-cell p { margin-bottom: 14px; }

/* ---------- Tables ---------- */
.table-wrap { margin-top: 36px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--panel); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; text-align: left; }
.data-table th { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--bg); }
.data-table td, .data-table tbody th { padding: 18px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tbody th { font-family: var(--display); font-size: 15.5px; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--ink); background: transparent; }
.data-table tbody:last-child tr:last-child td,
.data-table tbody:last-child tr:last-child th { border-bottom: 0; }
.data-table .tbc { color: var(--faint); font-style: italic; }
.data-table .chairs span { display: block; }

/* ---------- Programme day tabs ---------- */
.day-tabs { display: none; flex-wrap: wrap; gap: 0; margin-top: 44px; border-bottom: 1px solid var(--ink); }
.js .day-tabs { display: flex; }
.day-tab {
  appearance: none; background: transparent; border: 1px solid var(--line); border-bottom: 0; margin-right: -1px;
  padding: 14px 24px; font-family: inherit; font-size: 14.5px; text-align: left; cursor: pointer; color: var(--ink);
}
.day-tab strong { display: block; font-family: var(--display); font-size: 16px; }
.day-tab span { font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--faint); }
.day-tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.day-tab[aria-selected="true"] span { color: var(--dark-muted); }
.day-tab:focus-visible, .speaker-link:focus-visible, .speaker-open:focus-visible, .dialog-close:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.day-panel[hidden] { display: none; }
.day-panel .table-wrap { margin-top: 0; border-top: 0; }
.day-heading { display: flex; align-items: baseline; gap: 18px; margin: 34px 0 0; }
.day-heading .agenda-no { font-size: 26px; }
.js .day-heading { display: none; }
.speaker-link { appearance: none; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--indigo); cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(70,90,180,.35); }
.speaker-link:hover { color: var(--indigo-d); text-decoration-color: currentColor; }
.speaker-link + .speaker-link { display: block; margin-top: 6px; }
.data-table td .speaker-link { display: block; }
.data-table td .speaker-link + .speaker-link { margin-top: 6px; }

/* ---------- Speaker cards as buttons + profile dialog ---------- */
.speaker-open { appearance: none; display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; font: inherit; text-align: left; color: inherit; cursor: pointer; }
.speaker-open:hover .speaker-photo img { transform: scale(1.03); }
.speaker-more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--indigo); }
.speaker-grid.large { grid-template-columns: repeat(3, 1fr); margin-top: 0; }

.speaker-dialog { padding: 0; border: 1px solid var(--ink); background: var(--panel); color: var(--ink); width: min(820px, calc(100% - 32px)); max-height: calc(100% - 32px); box-shadow: 0 30px 70px rgba(0,0,0,.3); overflow: auto; font-family: var(--sans); }
.speaker-dialog::backdrop { background: rgba(19,23,27,.72); }
.dialog-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--panel); border: 1px solid var(--line); cursor: pointer; color: var(--ink); }
.dialog-close:hover { background: var(--bg2); }
.dialog-grid { display: grid; grid-template-columns: 260px 1fr; }
.dialog-photo { background: var(--bg2); align-self: stretch; }
.dialog-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.dialog-body { padding: 34px 36px 36px; }
.dialog-body h2 { font-size: 28px; font-weight: 800; margin: 0; line-height: 1.1; padding-right: 36px; }
.dialog-role { font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--indigo); margin-top: 10px; }
.dialog-field { margin-top: 22px; }
.dialog-field .meta-label { margin-bottom: 4px; }
.dialog-field p { margin: 0; font-size: 15px; color: var(--muted); white-space: pre-line; }
.dialog-field p.is-tbc { color: var(--faint); font-style: italic; }
.speaker-dialog[data-context="programme"] [data-ctx="speakers"],
.speaker-dialog[data-context="speakers"] [data-ctx="programme"] { display: none; }

/* ---------- Venue / map / sponsors ---------- */
.map-frame { margin-top: 36px; border: 1px solid var(--line); background: var(--bg2); }
.map-frame iframe { display: block; width: 100%; height: 440px; border: 0; }
.plan-box { margin-top: 36px; border: 1px solid var(--line); background: var(--panel); }
.plan-box img { width: 100%; height: auto; }
.plan-placeholder { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 320px; padding: 32px; color: var(--faint); font-size: 14px; letter-spacing: .6px; background:
  repeating-linear-gradient(0deg, transparent 0 39px, var(--line) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, var(--line) 39px 40px); }
.plan-placeholder span { background: var(--panel); padding: 8px 16px; border: 1px solid var(--line); text-transform: uppercase; font-size: 11px; letter-spacing: 1.2px; }
.sponsor.has-logo a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

/* ---------- Accommodation ---------- */
.hotel-card { display: flex; flex-direction: column; }
.hotel-card h3 { font-family: var(--display); font-size: 19px; margin: 0; font-weight: 700; }
.hotel-distance { font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--indigo); margin-top: 8px; }
.rate-card { margin-top: 44px; background: var(--ink); color: var(--dark-text); padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.rate-card h2 { color: #fff; margin: 0 0 12px; font-size: 26px; }
.rate-card .meta-label { color: var(--dark-muted); }
.rate-card .meta-value { color: #fff; }
.rate-card p { margin: 0 0 14px; color: #b7bdbb; }
.rate-card a { color: var(--lime); }

/* ---------- Contact ---------- */
.contact-grid-wide .why-cell p { overflow-wrap: anywhere; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
  .cell-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .rate-card { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .cell-grid, .cell-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .speaker-grid.large { grid-template-columns: repeat(2, 1fr); }
  .dialog-grid { grid-template-columns: 200px 1fr; }
}
@media (max-width: 767px) {
  /* Tables become stacked cards, labelled via data-label */
  .stack-mobile thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack-mobile, .stack-mobile tbody, .stack-mobile tr, .stack-mobile td, .stack-mobile th { display: block; width: 100%; }
  .stack-mobile tbody { border-bottom: 1px solid var(--ink); }
  .stack-mobile tbody:last-child { border-bottom: 0; }
  .stack-mobile tr { padding: 4px 0; }
  .stack-mobile td, .stack-mobile tbody th { border-bottom: 0; padding: 8px 18px; }
  .stack-mobile td[data-label]::before, .stack-mobile tbody th[data-label]::before {
    content: attr(data-label); display: block; font-family: var(--sans); font-size: 11px; font-weight: 600;
    letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); margin-bottom: 2px;
  }
  .stack-mobile td.is-empty { display: none; }
  .stack-mobile tr + tr { border-top: 1px dashed var(--line); }
  .day-tabs { margin-top: 32px; }
  .day-tab { flex: 1 1 45%; padding: 12px 14px; }
}
@media (max-width: 619px) {
  .page-section, .page-section.band, .page-section.band + .page-section { padding-top: 56px; padding-bottom: 56px; }
  .page-section + .page-section { padding-top: 0; }
  .cell-grid, .cell-grid.cols-2, .cell-grid.cols-4, .speaker-grid.large { grid-template-columns: 1fr; }
  .dialog-grid { grid-template-columns: 1fr; }
  .dialog-photo img { aspect-ratio: 4 / 3; object-position: top; }
  .dialog-body { padding: 24px 22px 28px; }
  .map-frame iframe { height: 320px; }
  .rate-card { padding: 26px 22px; }
  .day-tab span { display: none; }
}

/* ---------- Programme extras ---------- */
.session-meta { display: block; margin-top: 4px; font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.data-table tbody.is-break tr > * { background: var(--bg); padding-top: 12px; padding-bottom: 12px; }
.data-table tbody.is-break th { font-weight: 600; font-size: 14px; color: var(--muted); }
.stack-mobile tbody.is-break td { display: none; }

/* Initials placeholder for speakers without a photo */
.speaker-initials { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-family: var(--display); font-weight: 800; font-size: 56px; color: var(--indigo); background: var(--bg2); }
.speaker-photo .speaker-initials { aspect-ratio: 1 / 1; }
.dialog-photo .speaker-initials { aspect-ratio: 1 / 1; }
.speaker-initials[hidden] { display: none; }

/* ---------- Homepage key dates ---------- */
.key-dates .cell-grid { margin-top: 44px; }
.key-dates .date-value { font-size: clamp(22px, 2.4vw, 30px); }
@media (min-width: 768px) {
  .programme-table { table-layout: fixed; }
  .programme-table th:nth-child(1) { width: 40%; }
  .programme-table th:nth-child(2) { width: 17%; }
  .programme-table th:nth-child(3) { width: 20%; }
}

/* ---------- Topic cards without a description ---------- */
.topic h3:last-child { margin-bottom: 0; }

/* ---------- Speaker grids with 5 (homepage) or 8 (Speakers page) cards ---------- */
@media (min-width: 1200px) {
  .speaker-grid.five { grid-template-columns: repeat(5, 1fr); }
  .speaker-grid.large { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .speaker-grid.five .speaker:last-child:nth-child(3n+2),
  .speaker-grid.large .speaker:last-child:nth-child(3n+2) { grid-column: span 2; }
}
@media (min-width: 620px) and (max-width: 899px) {
  .speaker-grid.five .speaker:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- Committees ---------- */
.committee-table th:nth-child(1) { width: 30%; }
.committee-table.two-cols th:nth-child(1) { width: 45%; }
.committee-table tbody th { white-space: normal; }

/* ---------- FAQs ---------- */
.faq-group { margin-top: 56px; }
.faq-group:first-of-type { margin-top: 44px; }
.faq-group > h3 { font-family: var(--display); font-size: 22px; margin: 0 0 18px; }
.faq-list { border-top: 1px solid var(--ink); background: var(--panel); border-bottom: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: 0 0 auto; font-family: var(--sans); font-weight: 400; font-size: 24px; line-height: 1; color: var(--indigo); }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover { background: var(--bg); }
.faq-item summary:focus-visible { outline: 2px solid var(--indigo); outline-offset: -2px; }
.faq-item p { margin: 0; padding: 0 24px 22px; max-width: none; width: 100%; color: var(--muted); font-size: 15.5px; }
.faq-item p a { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Header: "Visit" dropdown + hamburger (floating panel on desktop/tablet, full width on phones)
   ========================================================================== */
.nav-group { position: relative; }
.nav-group-btn {
  appearance: none; background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  font: inherit; font-weight: 500; color: var(--ink); display: inline-flex; align-items: center; gap: 7px;
}
.nav-group-btn::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); transition: transform .2s ease;
}
.nav-group-btn:hover { color: var(--indigo); }
.nav-group-btn:focus-visible, .nav-sub a:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
.nav-group.is-active .nav-group-btn { color: var(--indigo); box-shadow: 0 2px 0 var(--indigo); }
.nav-sub {
  display: none; position: absolute; top: calc(100% + 16px); left: -18px; min-width: 240px; z-index: 60;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.14); padding: 8px 0;
}
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; } /* hover bridge */
.nav-sub a { display: block; padding: 11px 22px; color: var(--ink); font-size: 14px; }
.nav-sub a:hover, .nav-sub a.is-active { color: var(--indigo); background: var(--bg); }
.nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub, .nav-group.is-open .nav-sub { display: block; }
.nav-group:hover .nav-group-btn::after, .nav-group.is-open .nav-group-btn::after { transform: rotate(225deg); }

/* Hamburger button: ☰ turns into ✕ while the menu is open */
.nav-toggle-btn .icon-close { display: none; }
.nav-toggle:checked + .header-inner .nav-toggle-btn .icon-open { display: none; }
.nav-toggle:checked + .header-inner .nav-toggle-btn .icon-close { display: inline; }
.nav-toggle:checked + .header-inner .nav-toggle-btn { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.nav-toggle:focus-visible + .header-inner .nav-toggle-btn { outline: 2px solid var(--indigo); outline-offset: 2px; }

/* Mobile menu content */
.nav-mobile { max-height: calc(100vh - 72px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.nav-group-m { border-bottom: 1px solid var(--line); padding: 10px 0 4px; }
.nav-group-label { display: block; padding: 4px 4px 2px; font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); }
.nav-mobile .nav-sub-link { display: block; width: 100%; padding: 10px 0 10px 18px; border-bottom: 0; }
.nav-mobile a.is-active { color: var(--indigo); }

/* Small desktop + tablets: compact floating panel under the button */
@media (min-width: 620px) {
  .nav-mobile {
    position: absolute; top: 100%; right: var(--gutter);
    width: min(320px, calc(100% - 2 * var(--gutter)));
    padding: 6px 20px 16px; border: 1px solid var(--line); border-top: 0;
    box-shadow: 0 22px 44px rgba(0,0,0,.18);
  }
}

/* ==========================================================================
   Marquee: keep rolling on every browser (also with reduced-motion on; it is a slow, gentle ticker)
   ========================================================================== */
.marquee-track { display: inline-flex; gap: 0; width: max-content; will-change: transform; -webkit-animation: marquee 60s linear infinite; animation: marquee 60s linear infinite; }
.marquee-track span { flex: none; padding-right: 36px; }
@-webkit-keyframes marquee { from { -webkit-transform: translateX(0); } to { -webkit-transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { -webkit-animation: marquee 90s linear infinite !important; animation: marquee 90s linear infinite !important; }
}

/* ==========================================================================
   Homepage: welcome photo, organiser & host, abstracts, attend
   ========================================================================== */
.welcome-photo { margin: 28px 0 0; position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); }
.welcome-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
.welcome-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: #fff; background: linear-gradient(0deg, rgba(19,23,27,.75), transparent); }
@media (max-width: 1199px) { .welcome-photo { aspect-ratio: 16 / 9; max-width: 640px; } }

.partners-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 44px; background: var(--line); border: 1px solid var(--line); }
.partner-card { background: var(--panel); padding: 34px 32px 38px; display: flex; flex-direction: column; min-height: 230px; }
.partner-card .meta-label { letter-spacing: 1.4px; }
.partner-logo { flex: 1; display: flex; align-items: center; justify-content: flex-start; margin-top: 22px; min-height: 110px; }
.partner-logo img { max-width: min(100%, 320px); max-height: 120px; width: auto; height: auto; object-fit: contain; }
.partner-wordmark { display: flex; flex-direction: column; gap: 6px; font-family: var(--display); color: var(--ink); }
.partner-wordmark strong { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.5px; line-height: 1; }
.partner-wordmark span { font-family: var(--sans); font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.partner-card p { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); }
@media (max-width: 767px) { .partners-pair { grid-template-columns: 1fr; } }

/* Abstract submission: dark band with DNA texture */
.abstracts-band {
  color: var(--dark-text);
  background-color: var(--ink);
  background-image: linear-gradient(90deg, rgba(19,23,27,.97) 0%, rgba(19,23,27,.88) 55%, rgba(19,23,27,.72) 100%), url('../assets/hero-dna.jpg');
  background-size: cover; background-position: center;
  border-top: 4px solid var(--lime);
}
.abstracts-band .label { color: var(--lime); }
.abstracts-band .section-title { color: #fff; }
.abstracts-band .abstracts-intro { color: #b7bdbb; }
.abstracts-band .date-grid { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.16); }
.abstracts-band .date-cell { background: rgba(19,23,27,.55); border-top: 3px solid transparent; transition: border-color .25s ease, background .25s ease; }
.abstracts-band .date-cell:hover { border-top-color: var(--lime); background: rgba(255,255,255,.06); }
.abstracts-band .date-cell .meta-label { color: var(--dark-muted); }
.abstracts-band .date-value { color: var(--lime); font-size: clamp(24px, 2.6vw, 32px); }
.abstracts-band .numbered { border-top-color: rgba(255,255,255,.16); }
.abstracts-band .numbered > span { color: var(--lime); }
.abstracts-band .numbered strong { color: #fff; }
.abstracts-band .numbered p { color: var(--dark-muted); }
.abstracts-band .btn-indigo { background: var(--lime); color: var(--ink); }
.abstracts-band .btn-indigo:hover { background: #fff; color: var(--ink); }
.abstracts-band .btn-outline { color: #fff; border-color: rgba(255,255,255,.55); background: transparent; }
.abstracts-band .btn-outline:hover { background: #fff; color: var(--ink); }
.abstracts-band .btn.is-pending { opacity: .6; }

/* Why attend + who should attend */
.attend-band { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.attend-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; margin-top: 44px; align-items: start; }
.attend-grid .why-grid { margin: 0; }
.attend-grid .why-cell { padding: 28px 26px 30px; transition: background .25s ease, transform .25s ease; }
.attend-grid .why-cell:hover { background: var(--bg); }
.why-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--lime); }
.why-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.attend-grid .why-cell strong { margin-top: 18px; }
.attend-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.attend-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.attend-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 22px 18px; color: #fff; font-family: var(--display); font-weight: 700; font-size: 18px; background: linear-gradient(0deg, rgba(19,23,27,.82), transparent); }
.attend-who { margin-top: 28px; }
.attend-who .chips span { background: var(--panel); border-color: var(--line); border-left: 3px solid var(--indigo); transition: background .2s ease, color .2s ease, border-color .2s ease; }
.attend-who .chips span:hover { background: var(--ink); color: #fff; border-color: var(--ink); border-left-color: var(--lime); }
@media (max-width: 1199px) { .attend-grid { grid-template-columns: 1fr; gap: 32px; } .attend-photo { aspect-ratio: 16 / 8; } }

/* ==========================================================================
   Speakers / committee cards (spaced variant: no empty grey cells when the count is uneven)
   ========================================================================== */
.speaker-grid.spaced { background: transparent; border: 0; gap: 24px; margin-top: 36px; }
.speaker-grid.spaced .speaker { border: 1px solid var(--line); }
.speaker-grid.spaced .speaker-photo { aspect-ratio: 4 / 3; }
.speaker-grid.spaced.speakers-page .speaker-photo { aspect-ratio: 1 / 1; }
.speaker-grid.spaced .speaker-initials { aspect-ratio: auto; height: 100%; font-size: 48px; letter-spacing: 1px; }
.speaker-grid.spaced .speaker-info { padding: 18px 20px 22px; }
.speaker-grid.spaced .speaker h3 { font-size: 17.5px; line-height: 1.2; }
.committee-block + .committee-block { margin-top: 72px; }
.speaker-grid.spaced .speaker:last-child:nth-child(3n+2) { grid-column: auto; }
@media (min-width: 1200px) { .speaker-grid.spaced { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) and (max-width: 1199px) { .speaker-grid.spaced { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 620px) and (max-width: 899px) { .speaker-grid.spaced { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 619px) { .speaker-grid.spaced { grid-template-columns: 1fr; } }

/* ==========================================================================
   Visit pages: things to do, travel, visa
   ========================================================================== */
.visit-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; margin-top: 30px; }
.visit-intro p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 899px) { .visit-intro { grid-template-columns: 1fr; } }
.place { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: stretch; border: 1px solid var(--line); background: var(--panel); }
.place + .place { margin-top: 28px; }
.place:nth-of-type(even) .place-media { order: 2; }
.place-media { position: relative; min-height: 340px; background: var(--bg2); overflow: hidden; }
.place-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.place:hover .place-media img { transform: scale(1.03); }
.place-body { padding: 40px 40px 42px; display: flex; flex-direction: column; justify-content: center; }
.place-no { font-size: 12px; color: var(--indigo); }
.place-body h3 { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; margin: 12px 0 14px; line-height: 1.1; letter-spacing: -0.3px; }
.place-body p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 899px) {
  .place { grid-template-columns: 1fr; }
  .place:nth-of-type(even) .place-media { order: 0; }
  .place-media { min-height: 0; aspect-ratio: 16 / 10; }
  .place-body { padding: 26px 22px 30px; }
}
.more-grid { margin-top: 36px; }
.country-grid { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.country-grid li { box-shadow: 1px 1px 0 var(--line); margin: 0 1px 1px 0; background: var(--panel); padding: 12px 18px; font-size: 14.5px; display: flex; align-items: center; gap: 12px; }
.country-grid .flag { flex: none; width: 28px; height: 21px; object-fit: cover; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
@media (max-width: 1199px) { .country-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .country-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px) { .country-grid { grid-template-columns: 1fr; } }
.visit-photo { margin: 0; position: relative; overflow: hidden; aspect-ratio: 16 / 7; background: var(--ink); }
.visit-photo img { width: 100%; height: 100%; object-fit: cover; display: block; object-position: center 40%; }
.programme-notice { display: block; }

/* About page lead paragraph runs the full column */
.split-head .section-intro { max-width: none; }

/* Welcome photo collage */
.welcome-collage { margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.welcome-collage figure { margin: 0; position: relative; overflow: hidden; background: var(--bg2); border: 1px solid var(--line); }
.welcome-collage img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.welcome-collage figure:hover img { transform: scale(1.04); }
.welcome-collage .wc-main { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.welcome-collage figure:not(.wc-main) { aspect-ratio: 15 / 16; }
.welcome-collage figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 10px; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: #fff; background: linear-gradient(0deg, rgba(19,23,27,.7), transparent); }
@media (max-width: 1199px) { .welcome-collage { max-width: 640px; } }

/* Mobile: let the welcome photos use their natural height */
@media (max-width: 767px) {
  .welcome-collage { max-width: none; }
  .welcome-collage .wc-main, .welcome-collage figure:not(.wc-main) { aspect-ratio: auto; }
  .welcome-collage img { height: auto; }
}

/* ==========================================================================
   Homepage / page updates (round 3)
   ========================================================================== */
/* Key topics: DNA texture like the abstract band */
.topics {
  background-color: var(--ink);
  background-image: linear-gradient(270deg, rgba(19,23,27,.97) 0%, rgba(19,23,27,.88) 55%, rgba(19,23,27,.74) 100%), url('../assets/hero-dna.jpg');
  background-size: cover; background-position: center;
  border-top: 4px solid var(--lime);
}
.topics .topic { background: rgba(19,23,27,.55); }

/* Why attend photo fills the right column (no inset) */
.attend-photo { margin: 0; width: 100%; aspect-ratio: 16 / 11; }
.attend-grid > div > .attend-photo { display: block; }

/* Speaker cards with initials (home + speakers page) */
.speaker-grid.five .speaker-initials { font-size: 44px; letter-spacing: 1px; aspect-ratio: auto; }
.speaker-open .speaker-photo .speaker-initials { transition: background .25s ease, color .25s ease; }
.speaker-open:hover .speaker-photo .speaker-initials { background: var(--ink); color: var(--lime); }
.dialog-photo .speaker-initials { min-height: 220px; font-size: 72px; }

/* "To be updated soon" */
.tbu { display: flex; justify-content: center; padding-top: 110px; padding-bottom: 130px; }
.tbu-inner { text-align: center; max-width: 560px; }
.tbu-inner h2 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -1px; margin: 14px 0 18px; color: var(--ink); }
.tbu-inner p { color: var(--muted); margin: 0 0 28px; }

/* Committee: details-only entries */
.committee-list { margin-top: 36px; }
.committee-entry .committee-role { margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--indigo); }
.committee-entry p { margin-top: 8px; }

/* Subscribe form feedback */
.subscribe { position: relative; }
.subscribe .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.subscribe input[aria-invalid="true"] { border-color: #b3261e; outline-color: #b3261e; }
.form-msg { flex-basis: 100%; margin: 4px 0 0; font-size: 13.5px; min-height: 1.3em; }
.form-msg.is-ok { color: #1f7a3d; }
.form-msg.is-error { color: #b3261e; }
.subscribe button:disabled { opacity: .65; cursor: wait; }

/* Travel information photos */
.travel-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 auto 72px; }
.travel-photos figure { margin: 0; position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg2); border: 1px solid var(--line); }
.travel-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.travel-photos figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 12px; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: #fff; background: linear-gradient(0deg, rgba(19,23,27,.72), transparent); }
@media (max-width: 767px) { .travel-photos { grid-template-columns: 1fr; } .tbu { padding-top: 70px; padding-bottom: 90px; } }

/* Images with width/height attributes keep their ratio unless a class sets a height (prevents layout shift) */
:where(img[width][height]) { height: auto; }

/* Committee list: no empty grey cells when the last row is short */
.committee-list { gap: 0; background: var(--panel); overflow: hidden; }
.committee-list .why-cell { box-shadow: 1px 1px 0 var(--line); margin: 0 1px 1px 0; }

/* Venue page: white first section, light grey map section */
.venue-light .venue-body { background: #fff; color: var(--ink); }
.venue-light .venue-body .label { color: var(--indigo); }
.venue-light .venue-body .section-title { color: var(--ink); }
.venue-light .venue-facts .vf-title { color: var(--ink); }
.venue-light .venue-facts p { color: var(--muted); }
.venue-light .venue-body .link-arrow { color: var(--indigo); }
.map-section .map-frame { background: #fff; }

.nowrap { white-space: nowrap; }
/* "Join us in Abu Dhabi." stays on one line where there is room */
.register h2 { font-size: clamp(30px, 4vw, 52px); }

/* Speakers page cards are not clickable for now */
.speaker-static { display: block; width: 100%; text-align: left; }

/* ===== Call for Abstracts page ===== */
.abs-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.abs-lead { margin: 0 0 40px; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 60ch; }
.abs-topics { list-style: none; margin: 32px 0 0; padding: 0; columns: 2; column-gap: 40px; }
.abs-topics li { break-inside: avoid; position: relative; padding: 14px 0 14px 24px; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; }
.abs-topics li::before { content: ""; position: absolute; left: 0; top: 21px; width: 9px; height: 9px; background: var(--indigo); }
.abs-side { display: grid; gap: 24px; }
.abs-submit { background: var(--ink); color: var(--dark-text); padding: 32px; border-top: 3px solid var(--lime); }
.abs-submit h3 { margin: 0 0 10px; font-size: 22px; color: #fff; }
.abs-submit p { margin: 0 0 22px; color: var(--dark-muted); font-size: 15px; }
.abs-dates .abs-date { padding: 14px 0; border-top: 1px solid var(--line); }
.abs-dates .abs-date:first-of-type { border-top: 0; padding-top: 0; }
.abs-dates .abs-date .date-value { margin-top: 4px; font-family: var(--display); font-weight: 700; font-size: 20px; }
.abs-step-no { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: var(--indigo); color: #fff; font-family: var(--display); font-weight: 700; font-size: 14px; }
.cell-grid .why-cell .abs-step-no + strong { margin-top: 16px; }
.abs-guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.abs-checks { list-style: none; margin: 0; padding: 0; }
.abs-checks li { position: relative; padding: 8px 0 8px 28px; font-size: 15px; line-height: 1.5; }
.abs-checks li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 6px; height: 11px; border: solid var(--indigo); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.abs-guides .abs-sub { margin: 28px 0 8px; font-size: 18px; }
.abs-note { margin: 0 0 10px; font-size: 14.5px; color: var(--muted); }
.abs-faq { margin-top: 44px; }
.abs-guides .btn-row { margin-top: 18px; }
@media (max-width: 960px) {
  .abs-layout { grid-template-columns: 1fr; gap: 40px; }
  .abs-guides { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .abs-topics { columns: 1; } .abs-submit { padding: 26px 22px; } }

/* Topics link in submission details */
.numbered .topics-link{color:inherit;text-decoration:none;border-bottom:1px solid transparent;transition:border-color .2s}
.numbered .topics-link:hover,.numbered .topics-link:focus-visible{border-bottom-color:currentColor}
.abs-checks .tbc, .abs-note .tbc { color: var(--faint); font-style: italic; }

/* ===== Main navbar: HGM logo (matches the supplied reference) ===== */
.brand { gap: 14px; }
.brand-logo { width: 54px; height: auto; flex: none; }
.brand-text { line-height: 1.2; gap: 2px; }
.brand-name { font-size: 16px; line-height: 1.15; white-space: normal; max-width: 12ch; letter-spacing: -0.2px; }
.brand-sub { font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); white-space: nowrap; }
.header-inner { padding-top: 10px; padding-bottom: 10px; }
.nav-mobile { max-height: calc(100vh - 80px); }
@media (max-width: 619px) {
  .brand { gap: 10px; }
  .brand-logo { width: 38px; }
  .brand-name { font-size: 13.5px; max-width: 12ch; }
  .brand-sub { font-size: 11px; white-space: normal; }
}

/* ===== Abstract page: second navbar ===== */
.has-subnav section[id] { scroll-margin-top: calc(var(--hdr-h, 80px) + var(--sub-h, 68px) + 8px); }
.subnav { position: sticky; top: var(--hdr-h, 80px); z-index: 40; background: #fff; border-top: 3px solid var(--indigo); border-bottom: 1px solid var(--line); box-shadow: 0 4px 16px rgba(0,0,0,.05); }
.subnav-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; padding-top: 10px; padding-bottom: 10px; }
.subnav-logo { display: inline-flex; align-items: center; }
.subnav-logo img { height: 44px; width: auto; max-width: 190px; object-fit: contain; }
.subnav-logo-left { justify-self: start; }
.subnav-logo-right { justify-self: end; }
.subnav-links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.subnav-links a { display: block; padding: 9px 16px; font-size: 12.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); border: 1px solid transparent; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.subnav-links a:hover { background: var(--bg2); color: var(--ink); }
.subnav-links a.is-current { background: var(--ink); color: #fff; }
.subnav-links a:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
@media (max-width: 1099px) {
  .subnav-inner { grid-template-columns: auto auto; grid-template-areas: "l r" "n n"; gap: 8px 16px; justify-content: space-between; }
  .subnav-logo-left { grid-area: l; } .subnav-logo-right { grid-area: r; }
  .subnav-links { grid-area: n; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; justify-content: flex-start; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 2px; }
  .subnav-links::-webkit-scrollbar { display: none; }
  .subnav-logo img { height: 34px; }
}

/* Call for Abstracts: guidelines cards sit directly under the section edge; organiser strip */
.abs-guides.abs-guides-top { margin-top: 0; }
.abs-publication { margin-top: 18px; }
.abs-organisers { border: 1px solid var(--line); min-height: 0; }
.abs-organiser-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; margin-top: 22px; }
.abs-organiser-logos img { max-height: 84px; width: auto; max-width: 260px; object-fit: contain; }
