/* Events hub (/events/) and event detail pages (/events/<slug>/).
   Generated pages: see scripts/build-events.mjs. Palette and type match the
   company site: navy #1a2633, blue #17609E, orange #F26622, Playfair + Inter. */

body.ev-page {
  padding-top: 80px;
  background: #ffffff;
  color: #1d1d1f;
  -webkit-font-smoothing: antialiased;
}
.ev-page .skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: #1a2633;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  z-index: 10000;
  text-decoration: none;
  transition: top 0.2s ease;
}
.ev-page .skip-link:focus { top: 16px; }

.ev-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- Hero (hub and detail) ---------- */
.ev-hero {
  background: linear-gradient(180deg, #121c27 0%, #1a2633 100%);
  color: #ffffff;
  padding: clamp(36px, 5vw, 60px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.ev-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -50px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(23, 96, 158, 0.28) 0%, transparent 70%);
  pointer-events: none;
}
.ev-hero .ev-wrap { position: relative; z-index: 1; }
.ev-hero h1 {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0 0 14px;
}
.ev-hero p {
  font-size: clamp(16px, 1.8vw, 18.5px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 720px;
}
.ev-hero .ev-subtitle {
  font-size: clamp(17px, 2vw, 21px);
  color: rgba(255, 255, 255, 0.78);
  margin: -4px 0 16px;
}
.ev-badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }

.ev-crumbs { font-size: 13px; margin: 0 0 18px; color: rgba(255, 255, 255, 0.7); }
.ev-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.ev-crumbs li + li::before { content: '/'; margin-right: 6px; opacity: 0.5; }
.ev-crumbs a { color: rgba(255, 255, 255, 0.85); text-decoration: underline; text-underline-offset: 3px; }
.ev-crumbs a:hover { color: #ffffff; }

/* Status pills (extend .ds-pill from the toolkit theme) */
.ev-status-open { background: #F26622; border-color: #F26622; color: #ffffff; }
.ev-status-upcoming { background: rgba(23, 96, 158, 0.12); border-color: rgba(23, 96, 158, 0.35); color: #17609E; }
.ev-status-past { background: #e2e8f0; border-color: #cbd5e1; color: #475569; }
.ev-hero .ev-status-upcoming { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); color: #ffffff; }

/* ---------- Hub: card grid ---------- */
.ev-hub { padding: clamp(40px, 5vw, 64px) 0; background: #f8f9fa; }
.ev-group-title {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 26px;
  color: #1a2633;
  margin: 0 0 20px;
}
.ev-group + .ev-group { margin-top: 48px; }
.ev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 24px;
}
.ev-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ev-card:hover, .ev-card:focus-within {
  border-color: #17609E;
  box-shadow: 0 10px 28px rgba(23, 96, 158, 0.12);
}
.ev-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ev-date-tile {
  flex: none;
  width: 64px;
  text-align: center;
  background: #1a2633;
  color: #ffffff;
  border-radius: 10px;
  padding: 8px 0 10px;
  line-height: 1;
}
.ev-date-tile .m { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; opacity: 0.8; }
.ev-date-tile .d { display: block; font-family: var(--font-display, 'Playfair Display', serif); font-size: 30px; font-weight: 700; margin-top: 4px; }
.ev-card h2, .ev-card h3 {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 23px;
  line-height: 1.25;
  color: #1a2633;
  margin: 0 0 6px;
}
.ev-card h2 a, .ev-card h3 a { color: inherit; text-decoration: none; }
.ev-card h2 a::after, .ev-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: 14px; }
.ev-card h2 a:focus-visible::after, .ev-card h3 a:focus-visible::after { outline: 3px solid #17609E; outline-offset: 2px; }
.ev-card .ev-sub { font-size: 14px; color: #5a6c7d; margin: 0 0 14px; }
.ev-meta { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #2d3e50; }
.ev-meta li { display: flex; gap: 9px; align-items: flex-start; line-height: 1.45; }
.ev-meta i, .ev-meta svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: #17609E; }
.ev-card p.ev-desc { font-size: 15px; line-height: 1.6; color: #3a4b5c; margin: 0 0 20px; }
.ev-card .ev-cta { margin-top: auto; font-weight: 700; font-size: 15px; color: #17609E; display: inline-flex; align-items: center; gap: 6px; }
.ev-card:hover .ev-cta { color: #F26622; }

/* A lone event reads as one featured row instead of a stranded narrow card */
.ev-grid > .ev-card:only-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  column-gap: 40px;
  padding: 32px;
}
.ev-grid > .ev-card:only-child .ev-card-top { grid-column: 1 / -1; }
.ev-grid > .ev-card:only-child .ev-card-main { display: block; grid-column: 1; grid-row: 2; }
.ev-grid > .ev-card:only-child .ev-card-side { grid-column: 2; grid-row: 2; align-self: start; display: flex; flex-direction: column; gap: 16px; }
.ev-grid > .ev-card:only-child .ev-cta { margin-top: 0; }
.ev-card-side { display: contents; }
.ev-card-main { display: contents; }

.ev-other { padding: clamp(40px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); }
.ev-other h2 { font-family: var(--font-display, 'Playfair Display', serif); font-size: 28px; color: #1a2633; margin: 0 0 10px; }
.ev-other > .ev-wrap > p { font-size: 15.5px; color: #5a6c7d; margin: 0 0 24px; max-width: 640px; }
.ev-other-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.ev-other-card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; border: 1px solid rgba(0, 0, 0, 0.09); border-radius: 12px; padding: 22px; }
.ev-other-card h3 { font-size: 18px; color: #1a2633; margin: 4px 0 0; }
.ev-other-card p { font-size: 14.5px; line-height: 1.55; color: #3a4b5c; margin: 0; }
.ev-other-card a { margin-top: auto; font-weight: 700; font-size: 14.5px; color: #17609E; text-decoration: none; }
.ev-other-card a:hover { color: #F26622; }

/* ---------- Detail page ---------- */
.ev-split { padding: clamp(48px, 6vw, 76px) 0; background: #f8f9fa; }
.ev-split-grid {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.ev-left { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.ev-box {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.ev-box h2 { font-family: var(--font-display, 'Playfair Display', serif); font-size: 24px; color: #1a2633; margin: 8px 0 14px; line-height: 1.3; }
.ev-box h3 { font-size: 18px; font-weight: 700; color: #1a2633; margin: 0 0 16px; }
.ev-box p { font-size: 15px; line-height: 1.65; color: #3a4b5c; margin: 0 0 16px; }

.ev-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin: 0; }
.ev-facts div { min-width: 0; }
.ev-facts dt { font-size: 12.5px; font-weight: 700; color: #17609E; margin: 0 0 4px; }
.ev-facts dd { margin: 0; font-size: 15px; line-height: 1.5; color: #1a2633; }
.ev-facts .wide { grid-column: 1 / -1; }

.ev-takeaways { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 12px; }
.ev-takeaways li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: #2d3e50; line-height: 1.55; }
.ev-takeaways svg, .ev-takeaways i { flex: none; width: 18px; height: 18px; margin-top: 3px; color: #F26622; }

.ev-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.ev-person {
  background: linear-gradient(135deg, rgba(23, 96, 158, 0.05), rgba(242, 102, 34, 0.05));
  border: 1px solid rgba(23, 96, 158, 0.18);
  border-radius: 16px;
  padding: 22px 24px;
}
.ev-person .tag { font-size: 12.5px; font-weight: 700; color: #17609E; display: block; margin-bottom: 6px; }
.ev-person h3 { font-size: 19px; font-weight: 700; color: #1a2633; margin: 0 0 4px; }
.ev-person p { font-size: 13.5px; line-height: 1.5; color: #5a6c7d; margin: 0; }

.ev-agenda-note { font-size: 13px; line-height: 1.5; color: #475569; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 12px; margin: 0 0 14px; }
.ev-agenda-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.ev-agenda-row:last-child { border-bottom: none; }
.ev-agenda-when { font-weight: 700; color: #17609E; }
.ev-agenda-title { color: #1a2633; font-weight: 600; display: block; }
.ev-agenda-summary { color: #5a6c7d; font-size: 13.5px; line-height: 1.5; display: block; margin-top: 2px; }
.ev-agenda-row.recess { background: #f8fafc; border-radius: 6px; padding: 10px; }
.ev-agenda-row.recess .ev-agenda-when, .ev-agenda-row.recess .ev-agenda-title { color: #64748b; font-weight: 600; }

.ev-right { position: sticky; top: 100px; }
.ev-notice { background: #ffffff; border: 2px solid #17609E; border-radius: 20px; padding: 30px; }
.ev-notice h2 { font-family: var(--font-display, 'Playfair Display', serif); font-size: 22px; color: #1a2633; margin: 8px 0 8px; }
.ev-notice p { font-size: 14.5px; line-height: 1.55; color: #3a4b5c; margin: 0; }

/* Registration form (moved unchanged from the old /events/ page) */
.reg-form-card {
  background: #ffffff;
  border: 2px solid var(--color-blue, #17609E);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 36px);
  box-shadow: 0 16px 40px rgba(23, 96, 158, 0.12);
}
.reg-form-card h2 { font-family: var(--font-display, 'Playfair Display', serif); font-size: 24px; color: #1a2633; margin: 8px 0 6px; line-height: 1.25; }
.reg-form-card .form-sub { font-size: 13.5px; color: #5a6c7d; margin: 0 0 22px; line-height: 1.45; }
.reg-form-grid { display: flex; flex-direction: column; gap: 16px; }
.reg-input-group { display: flex; flex-direction: column; gap: 6px; }
.reg-input-group label { font-size: 13px; font-weight: 700; color: #1a2633; letter-spacing: 0.01em; }
.reg-input-group label span { color: var(--color-orange, #F26622); }
.reg-input-group input, .reg-input-group select {
  width: 100%;
  padding: 12px 14px;
  font-size: 14.5px;
  color: #1a2633;
  background: #ffffff;
  border: 1px solid #c4d1db;
  border-radius: 8px;
  outline: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
  font-family: inherit;
}
.reg-input-group input:focus, .reg-input-group select:focus {
  border-color: var(--color-blue, #17609E);
  box-shadow: 0 0 0 3px rgba(23, 96, 158, 0.15);
}
.reg-consent-group { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 10px; }
.reg-consent-group input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--color-orange, #F26622); cursor: pointer; }
.reg-consent-group label { font-size: 12.5px; line-height: 1.45; color: #5a6c7d; cursor: pointer; }
.btn-submit-reg {
  width: 100%;
  background: var(--color-orange, #F26622);
  color: #ffffff !important;
  font-size: 15.5px;
  font-weight: 700;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(242, 102, 34, 0.25);
}
.btn-submit-reg:hover { background: #d9561b; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(242, 102, 34, 0.35); }
.btn-submit-reg:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-status-msg { font-size: 13px; margin-top: 10px; padding: 8px 12px; border-radius: 6px; display: none; }
.form-status-msg.error { display: block; background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.form-status-msg.success { display: block; background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.reg-fineprint { font-size: 12px; color: #7f8c8d; text-align: center; margin: 4px 0 0; line-height: 1.45; }

.ev-page a:focus-visible, .ev-page button:focus-visible { outline: 3px solid #17609E; outline-offset: 2px; }

@media (max-width: 900px) {
  .ev-split-grid { grid-template-columns: 1fr; gap: 36px; }
  .ev-right { position: static; }
  .ev-grid > .ev-card:only-child { display: flex; padding: 24px; }
  .ev-grid > .ev-card:only-child .ev-card-side, .ev-grid > .ev-card:only-child .ev-card-main { display: contents; }
  .ev-grid > .ev-card:only-child .ev-cta { margin-top: 4px; }
}
@media (max-width: 560px) {
  .ev-facts { grid-template-columns: 1fr; }
  .ev-agenda-row { grid-template-columns: 1fr; gap: 2px; }
  .ev-box { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ev-card, .btn-submit-reg { transition: none; }
}

/* Part One line and register button on the hub card; footer line in the schedule */
.ev-card p.ev-part-one { font-size: 16px; font-weight: 700; color: #17609E; margin: 0 0 12px; }
.ev-btn-register {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-start;
  background: #F26622;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 10px;
  text-decoration: none;
}
.ev-btn-register:hover, .ev-btn-register:focus-visible { background: #d9560f; color: #ffffff; }
.ev-agenda-footer { margin: 16px 0 0; font-size: 16px; font-weight: 700; color: #1a2633; }
#register { scroll-margin-top: 110px; }

/* ---------- Host, guest and series schedule (full width) ---------- */
.ev-series { padding: clamp(48px, 6vw, 80px) 0; background: #ffffff; }
.ev-series-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.ev-series h2 { font-family: var(--font-display, 'Playfair Display', serif); font-size: clamp(26px, 3.4vw, 34px); color: #1a2633; margin: 8px 0 12px; line-height: 1.25; }
.ev-series-lead { font-size: 16.5px; line-height: 1.65; color: #3a4b5c; max-width: 760px; margin: 0 0 32px; }
.ev-sp-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 28px; }
.ev-sp-card { display: flex; gap: 22px; align-items: center; background: linear-gradient(135deg, rgba(23, 96, 158, 0.05), rgba(242, 102, 34, 0.05)); border: 1px solid rgba(23, 96, 158, 0.18); border-radius: 20px; padding: 24px; min-width: 0; }
.ev-sp-photo { flex: none; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid #ffffff; box-shadow: 0 4px 16px rgba(23, 96, 158, 0.18); }
.ev-sp-info { min-width: 0; }
.ev-sp-info .tag { font-size: 12.5px; font-weight: 700; color: #F26622; display: block; margin-bottom: 4px; letter-spacing: 0.02em; }
.ev-sp-info h3 { font-size: 20px; font-weight: 700; color: #1a2633; margin: 0 0 4px; }
.ev-sp-role { font-size: 14px; line-height: 1.5; color: #5a6c7d; margin: 0; }
.ev-sp-blurb { font-size: 13.5px; line-height: 1.5; color: #3a4b5c; margin: 8px 0 0; }
.ev-sp-blurb a { font-weight: 700; color: #17609E; text-decoration: none; }
.ev-sp-blurb a:hover { color: #F26622; }

.ev-next { display: flex; gap: 24px; align-items: center; justify-content: space-between; background: #17375e; background: linear-gradient(135deg, #14304f, #17609E); color: #ffffff; border-radius: 20px; padding: clamp(24px, 3.5vw, 36px); margin-bottom: 20px; box-shadow: 0 16px 40px rgba(23, 96, 158, 0.18); }
.ev-next-body { min-width: 0; }
.ev-next-part { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #ffb48a; margin: 14px 0 6px; }
.ev-next h3 { font-family: var(--font-display, 'Playfair Display', serif); font-size: clamp(22px, 2.8vw, 30px); line-height: 1.3; color: #ffffff; margin: 0 0 10px; }
.ev-next-when { font-size: 15.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.88); margin: 0; }
.ev-next-btn { flex: none; background: #F26622; color: #ffffff; font-weight: 700; font-size: 15px; text-decoration: none; padding: 14px 26px; border-radius: 10px; transition: background 0.15s ease; text-align: center; }
.ev-next-btn:hover { background: #d9561a; }

.ev-parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ev-part { background: #f8f9fa; border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 16px; padding: 22px; min-width: 0; }
.ev-part-label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #17609E; margin-bottom: 8px; }
.ev-part h3 { font-size: 16.5px; line-height: 1.4; color: #1a2633; margin: 0 0 12px; }
.ev-part p { font-size: 13.5px; color: #7a8a99; margin: 0; }
.ev-series-foot { margin: 24px 0 0; padding: 16px 20px; background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid #F26622; border-radius: 10px; font-size: 15px; color: #3a4b5c; }

@media (max-width: 960px) {
  .ev-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .ev-sp-row { grid-template-columns: 1fr; }
  .ev-next { flex-direction: column; align-items: stretch; }
  .ev-parts { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .ev-sp-card { flex-direction: column; text-align: center; }
}
