/* =========================================================
   THE CONFERENCE HUB — CMS CONTENT & PDF VIEWER ADDITIONS
   Styles for content that comes from the CRM's rich-text
   editor (event description, why/who attend, speaker bios)
   and for the PDF.js programme viewer.
   ========================================================= */

/* ---------- Header "Events" dropdown + inner-page footer (shared by every v2 page;
   copied from event-detail.css, which only the event and register pages load) ---------- */
.has-dropdown { position: relative; }
.has-dropdown > a i { font-size: 10px; margin-left: 4px; }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: -18px; min-width: 280px; background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12); border-top: 3px solid var(--red);
  display: block !important; padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; z-index: 50;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown li { width: 100%; }
.main-nav .dropdown a { display: block; padding: 9px 18px; font-size: 12px; text-transform: none; font-weight: 500; letter-spacing: 0; }
.main-nav .dropdown a::after { display: none; }
.main-nav .dropdown a:hover { color: var(--red); background: #F7F7F8; }
.main-nav .dropdown a.current { color: var(--red); font-weight: 600; }
.footer-tagline { font-size: 11.5px; color: #BDBDC2; margin-top: 12px; max-width: 220px; line-height: 1.6; }
.footer-bottom { margin-top: 26px; }
@media (max-width: 900px) {
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; padding: 0 0 8px 12px; min-width: 0; display: none !important; }
  .has-dropdown.open .dropdown { display: block !important; }
  .main-nav .dropdown li { border-bottom: 0; }
  .main-nav .dropdown a { padding: 8px 0; }
}

/* ---------- Rich text from the CRM editor ---------- */
.cms-content { font-size: 13px; line-height: 1.7; color: var(--text); }
.cms-content p { font-size: 13px; line-height: 1.7; margin: 0 0 14px; }
.cms-content p:last-child { margin-bottom: 0; }
.cms-content strong, .cms-content b { font-weight: 600; color: var(--dark); }
.cms-content a { color: var(--red); text-decoration: underline; }
.cms-content ul, .cms-content ol { margin: 0 0 14px; padding-left: 0; }
.cms-content ul li, .cms-content ol li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.cms-content ul li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 1px; color: var(--red); font-size: 12px; }
.cms-content ol { counter-reset: cms; }
.cms-content ol li { counter-increment: cms; }
.cms-content ol li::before { content: counter(cms) "."; position: absolute; left: 0; color: var(--red); font-weight: 600; }
.cms-content h1, .cms-content h2:not(.ed-title), .cms-content h3, .cms-content h4 { font-size: 15px; font-weight: 600; color: var(--dark); margin: 0 0 10px; }
.cms-content img { max-width: 100%; height: auto; }
.cms-content table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.cms-content td, .cms-content th { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: left; }

/* "You will leave with" / "Who should attend" lists */
.cms-list p strong { color: var(--dark); }
.cms-columns { column-count: 2; column-gap: 48px; }
.cms-columns > * { break-inside: avoid; }

/* Speaker bios can be long: keep the card compact */
.f-bio.cms-content { font-size: 11px; line-height: 1.55; max-height: 240px; overflow-y: auto; }
.f-bio.cms-content p { font-size: 11px; line-height: 1.55; margin-bottom: 8px; }

/* ---------- PDF.js programme viewer ---------- */
/* Zoomed pages scroll inside the viewer instead of widening the page layout */
.ed-layout > *, .dv-body { min-width: 0; }
.doc-viewer .dv-pages { position: relative; min-width: 0; }
.dv-sheet.dv-pdf-page { padding: 0; max-width: none; width: fit-content; background: #fff; line-height: 0; }
.dv-sheet.dv-pdf-page canvas { display: block; }
.dv-zoom-wrap { transform: none !important; }
.dv-thumb-page.dv-thumb-canvas { height: auto; min-height: 80px; padding: 0; display: block; line-height: 0; }
.dv-thumb-page.dv-thumb-canvas canvas { display: block; }
.dv-status { color: #E6E6E9; font-size: 13px; text-align: center; padding: 60px 20px; line-height: 1.6; }
.doc-viewer canvas { -webkit-user-drag: none; user-select: none; }
.dv-body { height: 560px; }

/* ---------- Registration: authoriser section ---------- */
.reg-form .form-note { font-size: 12px; color: var(--muted); margin: -6px 0 8px; }
.reg-form .check-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 12px; cursor: pointer; }
.reg-form .js-authoriser.is-readonly input { background: #F6F6F7; color: var(--muted); }

/* ---------- Registration: submit / payment redirect loader ---------- */
.reg-loader { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(20, 20, 22, .72); }
.reg-loader.show { display: flex; }
.reg-loader-box { background: #fff; max-width: 420px; width: 100%; padding: 30px 26px; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); border-top: 4px solid var(--red); }
.reg-loader-box strong { display: block; font-size: 18px; color: var(--dark); margin: 16px 0 8px; }
.reg-loader-box p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }
.reg-loader-spin { display: inline-block; width: 46px; height: 46px; border: 4px solid #F1D3D8; border-top-color: var(--red); border-radius: 50%; animation: reg-spin .8s linear infinite; }
@keyframes reg-spin { to { transform: rotate(360deg); } }
body.reg-loading { overflow: hidden; }

/* ---------- Registration: server-side error message ---------- */
.reg-form .form-alert ul { margin: 6px 0 0 18px; list-style: disc; }

@media (max-width: 900px) {
  .cms-columns { column-count: 1; }
  .dv-body { height: 460px; }
}

@media print {
  .doc-viewer, .dv-note { display: none !important; }
}
