/* EXPERT PERSPECTIVES: Beyond the Data — Webinar Series
   Styling based on the Merck Liquid Design System palette (client materials). */

@font-face {
  font-family: 'Merck';
  src: url('../fonts/M_Web-Regular.woff2') format('woff2'),
       url('../fonts/M_Web-Regular.woff') format('woff');
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Light.ttf') format('truetype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Italic.ttf') format('truetype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* Merck Liquid palette — official digital values from 'Liquid Colors.sketchpalette'
     (client materials, NAS). Verified hex-by-hex on 2026-10-16. */
  --purple-900: #281949; --purple-800: #382366; --purple-700: #482d83;
  --purple-600: #503291; --purple-400: #735ba7; --purple-300: #9684bd; --purple-200: #b9add3;
  --magenta-900: #761e4b; --magenta-700: #a52a69; --magenta-500: #d43687;
  --magenta-400: #eb3c96; --magenta-300: #ef63ab; --magenta-200: #f7b1d5;
  --teal-700: #175f67; --teal-600: #208590; --teal-500: #29abb9; --teal-400: #2dbecd;
  --teal-200: #57cbd7; --teal-300: #81d8e1; --teal-100: #abe5eb;
  --ink: #1b1b25; --grey-700: #494953; --grey-600: #6a6a73; --grey-500: #7d7d89;
  --grey-400: #93939d; --line: #e9e9ed; --bg: #f3f3f7; --card: #ffffff;
  --radius: 16px; --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px; line-height: 1.55;
}
h1, h2, h3, .hero-title { font-family: 'Merck', 'Lato', Arial, sans-serif; font-weight: 400; }
a { color: var(--purple-600); }
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ---------- hero (light, key-visual based: official wordmark + title lockup) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}
.hero::before {
  content: ''; position: absolute; width: 620px; height: 620px; right: -180px; top: -320px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(45, 190, 205, .16) 0%, rgba(87, 203, 215, .07) 55%, transparent 75%);
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--magenta-400) 0%, var(--purple-600) 52%, var(--teal-400) 100%);
}
.hero-inner {
  position: relative; z-index: 1; padding: 30px 20px 44px;
  display: grid; grid-template-columns: auto 1fr auto;
  column-gap: 26px; row-gap: 16px; align-items: center;
}
.hero-logo-link { display: block; grid-column: 1; grid-row: 1; justify-self: start; }
.hero-logo { display: block; width: clamp(130px, 17vw, 198px); height: auto; }
.hero-main { display: contents; }
.brandline {
  display: inline-block; letter-spacing: .35em; font-size: 12px; font-weight: 700;
  color: var(--purple-600); border: 1px solid rgba(80, 50, 145, .35);
  background: rgba(80, 50, 145, .05);
  padding: 6px 14px; border-radius: 999px;
  grid-column: 3; grid-row: 1; justify-self: end;
}
.hero-title { margin: 0; line-height: 0; text-align: center; grid-column: 1 / -1; grid-row: 2; }
.hero-lockup { display: block; width: min(560px, 92%); height: auto; margin: 0 auto; }

main.container { padding-top: 28px; padding-bottom: 48px; }

/* ---------- cards ---------- */
.card {
  background: var(--card); border-radius: var(--radius); padding: 28px;
  box-shadow: 0 4px 18px rgba(40, 24, 73, .07); margin-bottom: 24px;
}
.card-kicker {
  display: inline-block; background: var(--purple-900); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.card-kicker-live { background: var(--magenta-500); }
.card-kicker-ok { background: var(--teal-700); }
.card-title { margin: 0 0 6px; font-size: 26px; color: var(--purple-900); }
.card-subtitle { color: var(--grey-600); font-size: 17px; margin-bottom: 10px; }
.card-meta { color: var(--grey-600); font-size: 14px; margin-bottom: 18px; }
.meta-date { font-weight: 700; color: var(--magenta-700); }
.meta-sep { margin: 0 6px; color: var(--grey-400); }
.form-card { max-width: 720px; margin-left: auto; margin-right: auto; }
.login-card { max-width: 480px; }
.login-intro { color: var(--grey-600); margin-bottom: 20px; }
.section-title { color: var(--purple-900); font-size: 24px; margin: 36px 0 16px; }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
.field label, .field legend {
  display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--grey-600); margin-bottom: 6px; text-transform: uppercase;
}
fieldset.field { border: 0; padding: 0; margin: 0 0 16px; }
.field input[type=text], .field input[type=email], .field input[type=password],
.field input[type=date], .field input[type=number], .field input[type=search],
.field select, .field textarea {
  width: 100%; padding: 11px 14px; font-size: 16px; font-family: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--grey-400); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--purple-600);
  box-shadow: 0 0 0 3px rgba(80, 50, 145, .18);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .span2 { grid-column: span 2; }
.req { color: var(--magenta-500); }
.choice {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 8px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
  font-size: 15px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink);
}
/* win over `.field label` specificity: choice labels (session radios, HCP, consent) stay sentence-case */
.field label.choice, .check-field label.choice, fieldset.field label.choice {
  text-transform: none; font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--ink);
  margin-bottom: 8px; display: flex;
}
.choice a { text-transform: none; }
.choice:hover { border-color: var(--purple-300); }
.choice input { margin-top: 3px; accent-color: var(--magenta-500); }
.check-field .choice { background: #fbfbfe; }
.form-note { font-size: 13px; color: var(--grey-600); margin-top: 14px; }
.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; }

.btn {
  display: inline-block; border: 0; cursor: pointer; font-family: inherit;
  font-size: 15px; font-weight: 700; padding: 12px 26px; border-radius: 999px;
  text-decoration: none; text-align: center; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--magenta-500); color: #fff; }
.btn-primary:hover { background: var(--magenta-700); }
.btn-secondary { background: #fff; color: var(--purple-700); border: 1.5px solid var(--purple-700); }
.btn-secondary:hover { background: var(--purple-900); color: #fff; }
.btn-ghost { background: transparent; color: var(--grey-600); border: 1.5px solid var(--grey-400); }
.btn-ghost:hover { color: var(--purple-900); border-color: var(--purple-900); }
.btn-danger { background: #cf1b48; color: #fff; }
.btn-tiny { font-size: 12px; padding: 6px 12px; }

/* ---------- flash ---------- */
.flash { border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 auto 18px; font-size: 15px; max-width: 920px; }
.flash-ok { background: var(--teal-100); color: var(--teal-700); border: 1px solid var(--teal-300); }
.flash-error { background: #fde7ec; color: #730f28; border: 1px solid #f07896; }
.flash-info { background: #e7e0f4; color: var(--purple-800); border: 1px solid var(--purple-200); }
.announcement { background: var(--purple-900); color: #fff; border-radius: var(--radius-sm); padding: 10px 16px; margin-bottom: 20px; font-size: 14px; }

/* ---------- programme ---------- */
/* 2×2 grid, larger cards (order Quino 2026-11-17) */
.programme-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.programme-hint { font-size: 15px; color: var(--grey-600); margin: -4px 0 18px; }
.prog-card {
  background: #fff; border-radius: var(--radius); padding: 28px; border-top: 6px solid var(--purple-400);
  box-shadow: 0 3px 12px rgba(40, 24, 73, .06); display: flex; flex-direction: column; gap: 8px;
}
.prog-card:nth-child(2) { border-top-color: var(--magenta-500); }
.prog-card:nth-child(3) { border-top-color: var(--teal-500); }
.prog-card:nth-child(4) { border-top-color: var(--purple-800); }
a.prog-card { color: inherit; text-decoration: none; cursor: pointer; transition: box-shadow .15s ease, transform .15s ease; }
a.prog-card:hover { box-shadow: 0 6px 18px rgba(40, 24, 73, .14); transform: translateY(-2px); }
.admin-login-home { margin: 14px 0 0; font-size: 13px; text-align: center; }
.admin-login-home a { color: var(--grey-500); text-decoration: none; }
.admin-login-home a:hover { color: var(--purple-900); text-decoration: underline; }
.prog-card-active { outline: 3px solid var(--magenta-400); }
.prog-num { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-500); }
.prog-title { font-family: 'Merck', 'Lato', Arial, sans-serif; font-size: 24px; color: var(--purple-900); line-height: 1.25; }
.prog-sub { font-size: 15px; color: var(--grey-600); }
.prog-date { font-size: 16px; font-weight: 700; color: var(--ink); margin-top: auto; }
.prog-status { font-size: 13px; color: var(--magenta-700); font-weight: 700; }
.prog-status-soon { color: var(--grey-500); }

/* ---------- registration popup (modal) ---------- */
.modal { display: none; position: fixed; inset: 0; z-index: 60; }
.modal:target { display: block; }
.modal-overlay { position: absolute; inset: 0; background: rgba(20, 14, 40, .55); cursor: default; }
.modal-card {
  position: relative; max-width: 720px; margin: 4vh auto; max-height: 90vh; overflow: auto;
  box-shadow: 0 18px 60px rgba(20, 14, 40, .35);
}
.modal-close {
  position: absolute; top: 14px; right: 18px; font-size: 30px; line-height: 1;
  color: var(--grey-500); text-decoration: none;
}
.modal-close:hover { color: var(--ink); }

/* ---------- player ---------- */
.player-card { max-width: 960px; margin-left: auto; margin-right: auto; }
.session-block { margin: 18px 0 26px; }
.session-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 4px 2px 10px;
}
.session-label { font-family: 'Merck', 'Lato', Arial, sans-serif; font-size: 18px; color: var(--purple-900); }
.session-time { font-size: 14px; font-weight: 700; color: var(--magenta-700); white-space: nowrap; }
.video-wrap {
  position: relative; width: 100%; padding: 56.25% 0 0 0; background: var(--purple-900);
  border-radius: var(--radius-sm); overflow: hidden; margin: 8px 0 4px;
}
.video-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--purple-200); font-size: 14px; letter-spacing: .08em;
}
.player-placeholder {
  background: var(--purple-900); color: var(--purple-200); border-radius: var(--radius-sm);
  padding: 60px 24px; text-align: center; margin: 8px 0;
}

/* ---------- footer ---------- */
.site-footer { background: var(--purple-900); color: var(--purple-200); padding: 30px 0 26px; font-size: 13px; }
.site-footer a { color: var(--magenta-200); }
.site-footer p { margin: 4px 0; }
.footer-legal { margin-top: 16px; max-width: 880px; font-size: 12px; line-height: 1.55; }
.footer-legal p { margin: 0 0 12px; }
.footer-legal a { color: var(--magenta-200); word-break: break-word; }

/* ---------- admin ---------- */
body.admin { background: var(--bg); }
.admin-bar { background: var(--purple-900); color: #fff; box-shadow: 0 2px 8px rgba(40,24,73,.25); position: sticky; top: 0; z-index: 20; }
.admin-bar-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; min-height: 56px; flex-wrap: wrap; }
.admin-brand { font-family: 'Merck', 'Lato', sans-serif; letter-spacing: .06em; font-size: 15px; }
.admin-brand em { color: var(--magenta-200); font-style: normal; }
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-nav a { color: var(--purple-200); text-decoration: none; font-size: 14px; padding: 8px 12px; border-radius: 8px; }
.admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav a.active { background: var(--magenta-500); color: #fff; font-weight: 700; }
.admin-nav .nav-right { color: var(--grey-400); }
.admin-main { padding-top: 28px; padding-bottom: 60px; }
.admin-footer { color: var(--grey-500); font-size: 12px; padding: 18px 0 26px; }
.admin-login-wrap { max-width: 420px; margin: 60px auto; }
.admin-login-card { padding: 32px; }
.page-title { color: var(--purple-900); font-size: 26px; margin: 0 0 18px; }

.filters { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; padding: 18px 22px; }
.filters .field { margin-bottom: 0; min-width: 160px; }
.field-grow { flex: 1; }
.field-actions { display: flex; gap: 8px; }
.summary { color: var(--grey-600); font-size: 14px; margin: 10px 2px 14px; }

.table-wrap { padding: 0; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--grey-600);
  padding: 12px 14px; border-bottom: 2px solid var(--line); background: #fbfbfe; white-space: nowrap;
}
.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr.status-approved { background: #f2fbfb; }
.data-table tr.status-rejected { background: #fdf5f8; }
.nowrap { white-space: nowrap; }
.ellipsis { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dim { color: var(--grey-500); font-size: 12px; }
.warn { color: #cf1b48; font-weight: 700; }
.right { text-align: right; }
.tag-ok { color: var(--teal-700); background: var(--teal-100); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; }
.tag-no { color: #730f28; background: var(--magenta-200); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; }
.decision-cell { min-width: 220px; }
.radio-inline { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; font-size: 13px; white-space: nowrap; }
.radio-inline input { accent-color: var(--magenta-500); }
.row-details summary { font-size: 12px; color: var(--purple-600); cursor: pointer; }
.details-body { font-size: 13px; background: #fbfbfe; border-radius: 8px; padding: 8px 12px; margin-top: 6px; max-width: 420px; }
.details-body ul { margin: 4px 0; padding-left: 18px; }
.email-body { white-space: pre-wrap; font-size: 12px; background: #fbfbfe; padding: 10px; border-radius: 8px; max-width: 520px; }

.sticky-actions {
  position: sticky; bottom: 0; background: #fff; border-top: 2px solid var(--line);
  padding: 14px 20px; display: flex; gap: 14px; align-items: center; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 -4px 14px rgba(40,24,73,.08); z-index: 10;
}
.inline-form { display: inline; }
.inline-fields { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.inline-fields .field { margin-bottom: 0; }
.hidden-form { display: none; }
.secret-card { border: 2px solid var(--magenta-400); }
.secret-card code.secret { font-size: 18px; background: var(--bg); padding: 4px 10px; border-radius: 6px; }
code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .92em; }
.pagination { margin: 16px 2px; display: flex; gap: 6px; flex-wrap: wrap; }

.webinar-edit { border: 1.5px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: #fff; }
.webinar-edit summary { cursor: pointer; padding: 14px 18px; font-size: 15px; }
.webinar-edit[open] summary { border-bottom: 1.5px solid var(--line); }
.webinar-form { padding: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .programme-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .prog-title { font-size: 20px; }
  .modal-card { margin: 3vh 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: span 1; }
}
@media (max-width: 560px) {
  .programme-grid { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters .field { min-width: 0; }
}

/* ---------- Merck logo (official wordmark, extracted from the client key visual) ---------- */
.admin-logo-wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.admin-logo { display: block; width: 114px; height: auto; }
.footer-logo { display: block; width: 150px; height: auto; margin-bottom: 4px; }
@media (max-width: 600px) {
  .hero-logo { width: 120px; }
  .admin-logo { width: 96px; }
  .footer-logo { width: 126px; }
  .hero-inner { padding: 22px 20px 36px; grid-template-columns: 1fr; row-gap: 18px; }
  .hero-logo-link { grid-column: 1; grid-row: 1; justify-self: center; }
  .brandline { grid-column: 1; grid-row: 2; justify-self: center; }
  .hero-title { grid-column: 1; grid-row: 3; }
}
