/*
 * DCC-i Events: public pages.
 * Uses the DCC-i Online theme's colour tokens when they exist, with the same values as
 * fallbacks, so pages match the theme and still look right with another theme.
 * Sizes are in rem so the accessibility panel's text-size options scale them.
 */

.dcev {
  --dcev-purple: var(--do-purple, #5b2bb5);
  --dcev-purple-dark: var(--do-purple-dark, #3d1b82);
  --dcev-ink: var(--do-purple-ink, #24113f);
  --dcev-purple-soft: var(--do-purple-soft, #efe7fd);
  --dcev-lavender: var(--do-lavender, #f5f0fd);
  --dcev-lavender-2: var(--do-lavender-2, #ebe1fa);
  --dcev-pink: var(--do-pink, #c41d63);
  --dcev-pink-soft: var(--do-pink-soft, #fde6f0);
  --dcev-text: var(--do-ink, #1f1830);
  --dcev-muted: var(--do-muted, #564d6b);
  --dcev-line: var(--do-line, #e4daf6);
  --dcev-focus: var(--do-focus, #e0287a);
  --dcev-radius: var(--do-radius, 28px);
  --dcev-radius-sm: var(--do-radius-sm, 18px);
  --dcev-clay: var(--do-clay, inset 0 2px 0 rgba(255,255,255,.9), inset 0 -5px 0 rgba(91,43,181,.07), 0 18px 36px -22px rgba(36,17,63,.45));
  --dcev-clay-hover: var(--do-clay-hover, inset 0 2px 0 rgba(255,255,255,.9), inset 0 -5px 0 rgba(91,43,181,.09), 0 24px 44px -22px rgba(36,17,63,.55));
  color: var(--dcev-text);
}
.dcev *, .dcev *::before, .dcev *::after { box-sizing: border-box; }
.dcev :focus-visible { outline: 3px solid var(--dcev-focus); outline-offset: 3px; border-radius: 6px; }
.dcev-wrap { width: min(100% - 32px, 1200px); margin-inline: auto; }
@media (min-width: 640px) { .dcev-wrap { width: min(100% - 56px, 1200px); } }
.dcev-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dcev-muted { color: var(--dcev-muted); }
.dcev h1, .dcev h2, .dcev h3 { color: var(--dcev-ink); line-height: 1.15; letter-spacing: -.015em; }

/* ---------- Buttons and links ---------- */
.dcev-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: .7em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none !important; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.dcev-btn--primary { background: var(--dcev-purple); color: #fff !important; box-shadow: 0 3px 0 var(--dcev-ink); }
.dcev-btn--primary:hover { background: var(--dcev-purple-dark); }
.dcev-btn--outline { background: #fff; color: var(--dcev-purple) !important; border-color: var(--dcev-purple); }
.dcev-btn--outline:hover { background: var(--dcev-lavender); }
.dcev-link { color: var(--dcev-purple); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .dcev-btn, .dcev-card { transition: none !important; } }
.accessibility-reduce-motion .dcev-btn, .accessibility-reduce-motion .dcev-card { transition: none !important; transform: none !important; }

/* ---------- Hero ---------- */
.dcev-hero {
  padding: clamp(28px, 5vw, 64px) 0 clamp(28px, 4vw, 48px);
  background:
    radial-gradient(520px 300px at 92% 10%, rgba(224,40,122,.08), transparent 70%),
    radial-gradient(460px 280px at 4% 100%, rgba(52,194,74,.10), transparent 70%),
    linear-gradient(180deg, var(--dcev-lavender) 0%, #fff 100%);
  border-bottom: 1px solid var(--dcev-line);
}
.dcev-hero__title { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; margin: .2em 0 .35em; max-width: 22ch; }
.dcev-hero--archive .dcev-hero__title { max-width: none; }
.dcev-hero__intro { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--dcev-muted); max-width: 40em; margin: 0; }
.dcev-hero__when { font-size: 1.15rem; font-weight: 700; color: var(--dcev-purple); margin: 0; }
.dcev-back { margin: 0 0 .9rem; font-size: .95rem; }

/* ---------- Badges ---------- */
.dcev-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 .6rem; padding: 0; }
.dcev-badge { display: inline-block; padding: .28em .85em; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .02em; line-height: 1.3; }
.dcev-badge--type { background: var(--dcev-purple-soft); color: var(--dcev-purple-dark); }
.dcev-badge--expo { background: var(--dcev-pink-soft); color: #9e1650; }
.dcev-badge--status { background: #fff3d6; color: #5c3b00; }
.dcev-badge--cancelled { background: #fde8e8; color: #8a1c1c; }

/* ---------- Listing ---------- */
.dcev-archive__body { padding: 28px 0 clamp(48px, 7vw, 96px); }
.dcev-tabs ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; padding: 0; }
.dcev-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: .5em 1.2em; border-radius: 999px; border: 2px solid var(--dcev-line); color: var(--dcev-purple); font-weight: 700; text-decoration: none; background: #fff; }
.dcev-tabs a:hover { background: var(--dcev-lavender); }
.dcev-tabs a[aria-current="page"] { background: var(--dcev-purple); border-color: var(--dcev-purple); color: #fff; }
/* A tick marks the current tab without relying on colour, so it survives the accessibility panel's contrast modes. */
.dcev-tabs a[aria-current="page"]::before { content: "\2713"; margin-right: .4em; font-weight: 800; }
.dcev-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; padding: 18px 20px; margin: 0 0 18px; background: var(--dcev-lavender); border: 1px solid var(--dcev-line); border-radius: var(--dcev-radius-sm); }
.dcev-filters__field { display: grid; gap: 6px; min-width: 0; flex: 1 1 220px; }
.dcev-filters__field label { font-weight: 700; font-size: .95rem; }
/* width: 100% stops long option text widening the box at the accessibility panel's larger text sizes. */
.dcev-filters select { width: 100%; max-width: 100%; min-height: 48px; padding: .5em .8em; border: 2px solid var(--dcev-line); border-radius: 12px; background: #fff; color: var(--dcev-text); font: inherit; }
.dcev-filters__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.dcev-count { color: var(--dcev-muted); margin: 0 0 16px; }
.dcev-empty { padding: 28px; border: 2px dashed #d6c8ef; border-radius: var(--dcev-radius); background: #fff; color: var(--dcev-muted); }
.dcev-empty p { margin: 0; }

.dcev-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.dcev-card { position: relative; display: flex; }
.dcev-card__inner { position: relative; display: flex; flex-direction: column; width: 100%; background: #fff; border: 1px solid var(--dcev-line); border-radius: var(--dcev-radius); box-shadow: var(--dcev-clay); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.dcev-card:hover .dcev-card__inner { transform: translateY(-3px); box-shadow: var(--dcev-clay-hover); }
.dcev-card__inner:has(a:focus-visible) { outline: 3px solid var(--dcev-focus); outline-offset: 3px; }
.dcev-card__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.dcev-card__body { display: flex; gap: 16px; padding: 22px 22px 24px; flex: 1; }
.dcev-card__date { flex: 0 0 64px; height: 72px; margin: 0; display: grid; place-content: center; text-align: center; border-radius: 18px; background: var(--dcev-purple-soft); color: var(--dcev-purple-dark); box-shadow: inset 0 2px 0 rgba(255,255,255,.8), inset 0 -4px 0 rgba(0,0,0,.05); }
.dcev-card__day { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1; }
.dcev-card__month { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.dcev-card--expo .dcev-card__date { background: var(--dcev-pink-soft); color: #9e1650; }
.dcev-card__text { min-width: 0; display: flex; flex-direction: column; }
.dcev-card__title { font-size: 1.25rem; font-weight: 800; margin: 0 0 .35em; }
.dcev-card__title a { color: inherit; text-decoration: none; }
.dcev-card__title a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.dcev-card__title a:focus-visible { outline: none; }
.dcev-card:hover .dcev-card__title { color: var(--dcev-purple); }
.dcev-card__when { margin: 0; font-weight: 700; font-size: .98rem; }
.dcev-card__where { margin: .15em 0 0; color: var(--dcev-muted); font-size: .95rem; }
.dcev-card__summary { margin: .7em 0 0; color: var(--dcev-muted); font-size: .97rem; }
.dcev-card--cancelled .dcev-card__title, .dcev-card--cancelled .dcev-card__when { text-decoration: line-through; text-decoration-thickness: 2px; }
.dcev-pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; }
.dcev-pagination a, .dcev-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .9em; border-radius: 999px; border: 2px solid var(--dcev-line); font-weight: 700; text-decoration: none; }
.dcev-pagination .current { background: var(--dcev-purple); border-color: var(--dcev-purple); color: #fff; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.dcev-embed__more { margin: 16px 0 0; }

/* ---------- Single event ---------- */
.dcev-single__grid { display: grid; gap: 28px; padding: 32px 0 clamp(48px, 7vw, 96px); }
.dcev-single__aside { --dcev-sticky-top: 100px; }
.admin-bar .dcev-single__aside { --dcev-sticky-top: 132px; }
/* The details panel comes first in the page (and for screen readers); on wide screens it sits on the right. */
@media (min-width: 960px) {
  .dcev-single__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
  .dcev-single__aside { grid-column: 2; grid-row: 1; }
  .dcev-single__main { grid-column: 1; grid-row: 1; }
  /* Sticky only when event-page.js has checked that the whole panel fits clear of the corner buttons. */
  .dcev-single__aside.is-sticky { position: sticky; top: var(--dcev-sticky-top); }
}
.dcev-single__image { margin: 0 0 28px; }
.dcev-single__image img { display: block; width: 100%; height: auto; border-radius: var(--dcev-radius); }
.dcev-section { margin: 0 0 40px; }
.dcev-section > h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); font-weight: 800; margin: 0 0 .6em; }
.dcev-content > :not(h2) { max-width: 72ch; }

.dcev-panel { padding: 24px; background: #fff; border: 1px solid var(--dcev-line); border-radius: var(--dcev-radius); box-shadow: var(--dcev-clay); }
.dcev-panel__title { font-size: 1.2rem; font-weight: 800; margin: 0 0 .8em; }
.dcev-facts { margin: 0; display: grid; gap: 14px; }
.dcev-facts__row { display: grid; gap: 2px; }
.dcev-facts dt { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--dcev-muted); }
.dcev-facts dd { margin: 0; font-weight: 600; }
.dcev-booking { margin: 0 0 18px; padding: 0 0 18px; border-bottom: 1px solid var(--dcev-line); }
.dcev-booking__title { font-size: 1.2rem; font-weight: 800; margin: 0 0 .4em; }
.dcev-inline .dcev-booking { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--dcev-line); border-bottom: 0; }
.dcev-booking p { margin: 0 0 .8em; }
.dcev-booking p:last-child { margin-bottom: 0; }

.dcev-notice { margin: 18px 0 0; padding: 14px 18px; border-radius: 14px; border: 2px solid #f0c860; background: #fff8e6; color: #3d2a00; max-width: 60em; }
.dcev-notice p { margin: 0; }
.dcev-notice--cancelled { border-color: #e4a0a0; background: #fdeeee; color: #5a1010; }

/* Programme */
.dcev-programme__day { font-size: 1.15rem; font-weight: 800; margin: 1.4em 0 .6em; color: var(--dcev-purple); }
.dcev-sessions { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--dcev-line); }
.dcev-session { display: grid; gap: 4px 20px; padding: 16px 0; border-bottom: 1px solid var(--dcev-line); }
@media (min-width: 640px) { .dcev-session { grid-template-columns: 9.5rem minmax(0, 1fr); } }
.dcev-session__time { margin: 0; font-weight: 700; color: var(--dcev-purple-dark); font-variant-numeric: tabular-nums; }
.dcev-session__body > p { margin: 0; }
.dcev-session__tags { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #9e1650; }
.dcev-session__title { font-size: 1.08rem; font-weight: 800; color: var(--dcev-ink); }
.dcev-session__speakers { color: var(--dcev-text); font-weight: 600; margin-top: .2em !important; }
.dcev-session__desc { color: var(--dcev-muted); margin-top: .35em !important; }
.dcev-session--break { background: var(--dcev-lavender); padding-inline: 14px; }
.dcev-session--break .dcev-session__title { font-weight: 600; color: var(--dcev-muted); }
.dcev-session--keynote .dcev-session__title { color: var(--dcev-purple); }

/* Speakers */
.dcev-speaker-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.dcev-speaker { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border: 1px solid var(--dcev-line); border-radius: var(--dcev-radius-sm); background: #fff; }
.dcev-speaker__photo { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--dcev-purple-soft); }
.dcev-speaker__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dcev-speaker__photo--initials { display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; color: var(--dcev-purple-dark); }
.dcev-speaker__text { min-width: 0; }
.dcev-speaker__name { font-size: 1.08rem; font-weight: 800; margin: 0; }
.dcev-speaker__role { margin: .15em 0 0; color: var(--dcev-muted); font-size: .95rem; }
.dcev-speaker__bio { margin-top: .6em; }
.dcev-speaker__bio summary { cursor: pointer; font-weight: 700; color: var(--dcev-purple); min-height: 32px; }
.dcev-speaker__bio p { margin: .5em 0 0; font-size: .97rem; }

/* Virtual Expo */
.dcev-expo { padding: clamp(22px, 3vw, 32px); border-radius: var(--dcev-radius); background:
  radial-gradient(360px 200px at 100% 0%, rgba(224,40,122,.10), transparent 70%),
  var(--dcev-lavender); border: 1px solid var(--dcev-line); }
.dcev-expo__eyebrow { display: inline-block; margin: 0 0 .7rem; padding: .3em .9em; border-radius: 999px; background: var(--dcev-pink-soft); color: #9e1650; font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.dcev-expo h3 { font-size: 1.05rem; font-weight: 800; margin: 1.1em 0 .5em; }
.dcev-rooms { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.dcev-rooms li { padding: .4em 1em; border-radius: 999px; background: #fff; border: 1px solid var(--dcev-line); font-weight: 600; }

.dcev-venue address { font-style: normal; }

/* Block-theme fallback */
.dcev-inline .dcev-facts { margin: 1em 0; }
.dcev-inline .dcev-booking { margin-bottom: 2em; }

@media print {
  .dcev-filters, .dcev-tabs, .dcev-pagination, .dcev-booking .dcev-btn, .dcev-back { display: none !important; }
  .dcev-single__aside { position: static; }
  .dcev-card__inner, .dcev-panel { box-shadow: none; }
}

/* ==========================================================================
   0.1.3: event landing-page header, Expo variant and learning-space cards
   ========================================================================== */
.dcev-hero__grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) {
  .dcev-single--has-media .dcev-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; }
}
.dcev-hero__eyebrow { display: inline-block; margin: 0; padding: .3em .9em; border-radius: 999px; background: var(--dcev-pink-soft); color: #9e1650; font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.dcev-hero__summary { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--dcev-muted); max-width: 38em; margin: 0 0 1.1rem; }
.dcev-single--has-media .dcev-hero__title { max-width: none; }

.dcev-keyfacts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0 0 1.2rem; }
.dcev-keyfacts__item { display: grid; gap: 2px; }
.dcev-keyfacts dt { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--dcev-muted); }
.dcev-keyfacts dd { margin: 0; font-weight: 700; }
.dcev-keyfacts__note { font-weight: 500; color: var(--dcev-muted); }
.dcev-hero .dcev-notice { margin: 0 0 1.2rem; }
.dcev-hero__actions { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 0; }
.dcev-btn--ghost { background: transparent; color: var(--dcev-purple) !important; border-color: var(--dcev-line); }
.dcev-btn--ghost:hover { background: var(--dcev-lavender); }

/* The artwork is shown whole: it is scaled down to fit, never cropped. */
.dcev-hero__media { margin: 0; text-align: center; }
.dcev-hero__img { display: block; width: auto; height: auto; max-width: 100%; max-height: 440px; margin: 0 auto; border-radius: 20px; box-shadow: 0 22px 40px -24px rgba(36,17,63,.55); }
.dcev-hero__media figcaption { margin-top: 10px; font-size: .92rem; }
.dcev-hero__full { color: var(--dcev-purple); font-weight: 700; }

/* Expo events: deep DCC-i purple with restrained pink and green accents. */
.dcev-single--expo .dcev-hero {
  background:
    radial-gradient(520px 300px at 96% 0%, rgba(224,40,122,.22), transparent 70%),
    radial-gradient(460px 280px at 0% 100%, rgba(52,194,74,.16), transparent 70%),
    var(--dcev-ink);
  border-bottom: 0;
  color: #fff;
}
.dcev-single--expo .dcev-hero__title { color: #fff; }
.dcev-single--expo .dcev-hero__summary { color: #e9e2f6; }
.dcev-single--expo .dcev-keyfacts dt, .dcev-single--expo .dcev-keyfacts__note { color: #cdbfe8; }
.dcev-single--expo .dcev-keyfacts dd { color: #fff; }
.dcev-single--expo .dcev-hero .dcev-link, .dcev-single--expo .dcev-hero__full { color: #fff; }
.dcev-single--expo .dcev-hero .dcev-badge--type { background: rgba(255,255,255,.14); color: #fff; }
.dcev-single--expo .dcev-hero .dcev-btn--primary { background: #fff; color: var(--dcev-ink) !important; box-shadow: 0 3px 0 rgba(0,0,0,.35); }
.dcev-single--expo .dcev-hero .dcev-btn--primary:hover { background: var(--dcev-purple-soft); }
.dcev-single--expo .dcev-hero .dcev-btn--ghost { color: #fff !important; border-color: rgba(255,255,255,.45); }
.dcev-single--expo .dcev-hero .dcev-btn--ghost:hover { background: rgba(255,255,255,.1); }
.dcev-single--expo .dcev-hero__img { box-shadow: 0 22px 44px -20px rgba(0,0,0,.6); }

/* Learning spaces. Each card has a media slot: a number for now, room artwork or an icon later. */
.dcev-expo__intro { color: var(--dcev-muted); margin: 0 0 1rem; }
.dcev-spaces { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); }
.dcev-space { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--dcev-line); border-radius: var(--dcev-radius-sm); overflow: hidden; }
.dcev-space__media { display: grid; place-items: center; aspect-ratio: 16 / 7; background: var(--dcev-purple-soft); color: var(--dcev-purple-dark); overflow: hidden; }
.dcev-space__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dcev-space--2 .dcev-space__media { background: var(--dcev-pink-soft); color: #9e1650; }
.dcev-space--3 .dcev-space__media { background: var(--do-green-soft, #e2f6e6); color: var(--do-green, #17692d); }
.dcev-space__num { font-size: 1.9rem; font-weight: 800; letter-spacing: .02em; }
.dcev-space__body { padding: 14px 16px 16px; }
.dcev-space__name { font-size: 1.05rem; font-weight: 800; margin: 0; }
.dcev-space__desc { margin: .35em 0 0; color: var(--dcev-muted); font-size: .95rem; }
.dcev-expo__message { margin-top: 18px; padding: 14px 18px; background: #fff; border: 2px dashed #d6c8ef; border-radius: var(--dcev-radius-sm); }
.dcev-expo__message p { margin: 0; }
/* Narrow screens: compact cards, with the media slot as a small square on the left. */
@media (max-width: 599.98px) {
  .dcev-space { flex-direction: row; align-items: stretch; }
  .dcev-space__media { flex: 0 0 72px; width: 72px; aspect-ratio: auto; }
  .dcev-space__num { font-size: 1.35rem; }
  .dcev-space__body { padding: 12px 14px; }
}

/* ==========================================================================
   0.1.6: Meet our speakers and the speaker directory
   Cards stay compact: photograph, name, role and organisation, links and "Read more".
   The introduction and biography open inside the card, which then spans the full row,
   so the text always has a comfortable reading width.
   ========================================================================== */
.dcev [hidden] { display: none !important; }
.dcev-meet, .dcev-dir { container-type: inline-size; }
.dcev-meet { margin: 0 0 44px; }
.dcev-meet__head { margin: 0 0 18px; }
.dcev .dcev-meet__head h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 800; margin: 0 0 .3em; }
.dcev-meet__intro { margin: 0; font-size: 1.1rem; color: var(--dcev-muted); }
.dcev-meet__eyebrow { display: inline-block; margin: 0 0 .7rem; padding: .3em .9em; border-radius: 999px; background: var(--dcev-pink-soft); color: #9e1650; font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
/* Expo events: a softly coloured frame around the cards. Photographs stay untouched. */
.dcev-single--expo .dcev-meet { padding: clamp(18px, 3vw, 32px); border-radius: var(--dcev-radius); border: 1px solid var(--dcev-line);
  background: radial-gradient(380px 220px at 100% 0%, rgba(224,40,122,.10), transparent 70%), radial-gradient(360px 220px at 0% 100%, rgba(52,194,74,.10), transparent 70%), var(--dcev-lavender); }
.dcev-meet ul, .dcev-dir ul { list-style: none; margin: 0; padding: 0; }
/* Doubled class beats the theme's general heading margins. */
.dcev .dcev-meet__group, .dcev .dcev-dirgroup__title { font-size: 1.1rem; font-weight: 800; margin: 26px 0 12px; color: var(--dcev-ink); line-height: 1.25; }
.dcev .dcev-dirgroup:first-of-type .dcev-dirgroup__title { margin-top: 8px; }
.dcev-meet__more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 20px 0 0; }
.dcev-meet__more span { color: var(--dcev-muted); font-size: .95rem; }

/* ---------- Shared card pieces ---------- */
.dcev-sp { position: relative; display: flex; background: #fff; border: 1px solid var(--dcev-line); border-radius: var(--dcev-radius-sm); overflow: hidden; min-width: 0; }
.dcev-sp__photo { margin: 0; flex: none; background: var(--dcev-purple-soft); overflow: hidden; }
.dcev-sp__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.dcev-sp__photo--initials { display: grid; place-items: center; color: var(--dcev-purple-dark); font-weight: 800; font-size: 1.4rem; }
.dcev-sp__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.dcev .dcev-sp__name { margin: 0; font-weight: 800; color: var(--dcev-ink); line-height: 1.2; overflow-wrap: anywhere; }
.dcev .dcev-sp__role { margin: .3em 0 0; font-size: .93rem; font-weight: 500; line-height: 1.4; color: var(--dcev-muted); }
.dcev .dcev-sp__tier { align-self: flex-start; max-width: 100%; overflow-wrap: anywhere; margin: .5em 0 0; padding: .15em .6em; border-radius: 999px; background: var(--dcev-pink-soft); color: #9e1650; font-size: .8rem; font-weight: 700; line-height: 1.5; }
.dcev .dcev-sp__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin: .35em 0 0; padding: 0; font-size: .92rem; }
.dcev-sp__links a { display: inline-flex; align-items: center; gap: .3em; min-height: 32px; color: var(--dcev-purple); font-weight: 700; }
.dcev-sp__ext { font-size: .85em; }
/* Read more / Show less */
.dcev-sp__more { margin-top: auto; padding-top: .35em; }
.dcev-sp__more > summary { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; cursor: pointer; list-style: none; font-weight: 700; font-size: .9rem; color: var(--dcev-purple); }
.dcev-sp__more > summary::-webkit-details-marker { display: none; }
.dcev-sp__more > summary::before { content: ""; flex: none; width: .5em; height: .5em; margin: 0 .1em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s ease; }
.dcev-sp__more[open] > summary::before { transform: rotate(45deg); }
.dcev-sp__more > summary:hover .dcev-sp__show, .dcev-sp__more > summary:hover .dcev-sp__hide { text-decoration: underline; }
.dcev-sp__more:not([open]) .dcev-sp__hide, .dcev-sp__more[open] .dcev-sp__show { display: none; }
.dcev-sp__panel { max-width: 68ch; padding: .2em 0 .4em; font-size: 1rem; line-height: 1.6; }
.dcev .dcev-sp__panel p { margin: 0 0 .75em; font-size: 1rem; line-height: 1.6; }
.dcev .dcev-sp__where { margin: 0 0 .75em; font-size: .93rem; color: var(--dcev-purple-dark); font-weight: 600; }
.dcev-sp__where span { font-weight: 800; }
.dcev .dcev-sp__intro { color: var(--dcev-ink); }
.dcev-sp__less { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 700; font-size: .93rem; color: var(--dcev-purple); text-decoration: underline; }

/* ---------- Headline speakers: photograph-led, side by side ----------
   Wide sections: three in a row stand upright; two or four sit two to a row with the photograph
   beside the text, so names, roles and "Read more" have room. Phones: two to a row, upright. */
.dcev-headliners { --cols: 2; display: grid; gap: 16px; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); align-items: stretch; }
.dcev-headliners[data-count="1"] { --cols: 1; }
.dcev-sp--headline { flex-direction: column; border-width: 0; box-shadow: var(--dcev-clay); border-top: 6px solid var(--dcev-purple); }
.dcev-sp--headline:nth-child(4n+2) { border-top-color: var(--do-pink-bright, #e0287a); }
.dcev-sp--headline:nth-child(4n+3) { border-top-color: #1f8a4c; }
.dcev-sp--headline:nth-child(4n+4) { border-top-color: #b86b00; }
.dcev-sp--headline .dcev-sp__photo { width: 100%; aspect-ratio: 4 / 5; }
.dcev-sp--headline .dcev-sp__photo--initials { font-size: 2.6rem; }
.dcev-sp--headline .dcev-sp__body { padding: 14px 16px 6px; }
.dcev .dcev-sp--headline .dcev-sp__name { font-size: 1.2rem; }
@container (min-width: 740px) {
  .dcev-headliners[data-count="3"] { --cols: 3; }
  /* Two, four or more: photograph beside the text. */
  .dcev-headliners:not([data-count="1"]):not([data-count="3"]) > .dcev-sp--headline { flex-direction: row; }
  .dcev-headliners:not([data-count="1"]):not([data-count="3"]) > .dcev-sp--headline .dcev-sp__photo { width: 38%; max-width: 190px; aspect-ratio: auto; min-height: 220px; align-self: stretch; }
  .dcev-headliners:not([data-count="1"]):not([data-count="3"]) > .dcev-sp--headline .dcev-sp__body { padding: 16px 14px 6px 16px; }
}
@container (max-width: 739.98px) {
  .dcev-headliners[data-count="3"] > .dcev-sp:first-child { grid-column: 1 / -1; }
  .dcev-headliners[data-count="3"] > .dcev-sp:first-child:not(.is-open) .dcev-sp__photo { aspect-ratio: 4 / 3; }
}
/* One headline speaker: a wide card, photograph beside the text. */
.dcev-headliners[data-count="1"] .dcev-sp--headline { flex-direction: row; }
.dcev-headliners[data-count="1"] .dcev-sp--headline .dcev-sp__photo { width: min(38%, 300px); aspect-ratio: 4 / 5; }
.dcev-headliners[data-count="1"] .dcev-sp--headline .dcev-sp__body { padding: 22px 24px 8px; }
.dcev .dcev-headliners[data-count="1"] .dcev-sp__name { font-size: 1.6rem; }
/* Opened: the card takes the whole row, photograph beside a comfortable reading column. */
.dcev-sp--headline.is-open, .dcev-sp--headline:has(> .dcev-sp__body > .dcev-sp__more[open]) { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; }
.dcev .dcev-headliners > .dcev-sp--headline.is-open .dcev-sp__photo, .dcev .dcev-headliners > .dcev-sp--headline:has(> .dcev-sp__body > .dcev-sp__more[open]) .dcev-sp__photo { width: min(34%, 260px); max-width: none; min-height: 0; aspect-ratio: 4 / 5; align-self: flex-start; }
.dcev-sp--headline.is-open .dcev-sp__body, .dcev-sp--headline:has(> .dcev-sp__body > .dcev-sp__more[open]) .dcev-sp__body { padding: 20px 24px 8px; }
.dcev .dcev-sp--headline.is-open .dcev-sp__name { font-size: 1.45rem; }

/* ---------- Compact cards: the preview on the event page, and the directory ---------- */
.dcev-sp-grid { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@container (min-width: 540px) { .dcev-sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Phones: the event page previews four; "Explore all" leads to everyone. */
@container (max-width: 539.98px) { .dcev-sp-grid--teaser > .dcev-sp:nth-child(n+5) { display: none; } }
.dcev-sp--compact { gap: 14px; padding: 12px 14px 6px; align-items: flex-start; }
.dcev-sp--compact .dcev-sp__photo { width: 72px; height: 72px; border-radius: 14px; }
.dcev .dcev-sp--compact .dcev-sp__name { font-size: 1.05rem; }
.dcev-sp--compact .dcev-sp__more { padding-top: .15em; }
.dcev-sp--compact.is-open, .dcev-sp--compact:has(> .dcev-sp__body > .dcev-sp__more[open]) { grid-column: 1 / -1; box-shadow: var(--dcev-clay); border-color: transparent; padding: 16px 18px 8px; gap: 18px; }
.dcev-sp--compact.is-open .dcev-sp__photo, .dcev-sp--compact:has(> .dcev-sp__body > .dcev-sp__more[open]) .dcev-sp__photo { width: 132px; height: 165px; border-radius: 16px; }

@container (max-width: 539.98px) {
  .dcev-sp--headline .dcev-sp__body { padding: 12px 12px 8px; }
  .dcev .dcev-sp--headline .dcev-sp__name { font-size: 1.02rem; }
  .dcev .dcev-sp--headline .dcev-sp__role { font-size: .86rem; }
  .dcev .dcev-sp--headline .dcev-sp__tier { font-size: .72rem; padding: .1em .5em; }
  .dcev-headliners[data-count="1"] .dcev-sp--headline { flex-direction: column; }
  .dcev-headliners[data-count="1"] .dcev-sp--headline .dcev-sp__photo { width: 100%; aspect-ratio: 1 / 1; }
  .dcev .dcev-headliners > .dcev-sp--headline.is-open, .dcev .dcev-headliners > .dcev-sp--headline:has(> .dcev-sp__body > .dcev-sp__more[open]) { flex-direction: column; }
  .dcev .dcev-headliners > .dcev-sp--headline.is-open .dcev-sp__photo, .dcev .dcev-headliners > .dcev-sp--headline:has(> .dcev-sp__body > .dcev-sp__more[open]) .dcev-sp__photo { width: 100%; aspect-ratio: 4 / 3; }
  .dcev-sp--compact.is-open, .dcev-sp--compact:has(> .dcev-sp__body > .dcev-sp__more[open]) { flex-direction: column; gap: 12px; }
}

/* ---------- Directory page ---------- */
.dcev-dirhead { padding: 26px 0 30px; background: var(--dcev-lavender); border-bottom: 1px solid var(--dcev-line); }
.dcev-single--expo .dcev-dirhead { background: linear-gradient(135deg, #2a0f5c, #4a1f9a); border-bottom: 0; color: #fff; }
/* main carries both .dcev and .dcev-single--expo, so the selectors are joined, and doubled to beat the general heading colour. */
.dcev.dcev-single--expo .dcev-dirhead a, .dcev.dcev-single--expo .dcev-dirhead .dcev-dirhead__title, .dcev.dcev-single--expo .dcev-dirhead__event { color: #fff; }
.dcev-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 10px; padding: 0; list-style: none; font-size: .92rem; }
.dcev-crumbs li + li::before { content: "\203A"; margin: 0 .4em 0 .1em; }
.dcev-crumbs a { color: inherit; }
.dcev .dcev-dirhead__title { margin: 0 0 .2em; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
.dcev-dirhead__event { margin: 0; font-size: 1.05rem; }
.dcev-dirhead__back { margin: 12px 0 0; }
.dcev-directory .dcev-single__grid { padding-top: 28px; }
.dcev-dirfilters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 22px; margin: 0 0 16px; padding: 16px 18px; border: 1px solid var(--dcev-line); border-radius: var(--dcev-radius-sm); background: var(--dcev-lavender); }
.dcev-dirfilters fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.dcev-dirfilters legend, .dcev-dirfilters__space label { display: block; margin: 0 0 6px; padding: 0; font-weight: 800; font-size: .92rem; color: var(--dcev-ink); }
.dcev-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.dcev-pills label { position: relative; display: inline-flex; }
.dcev-pills input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.dcev-pills input + span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 2px solid var(--dcev-line); border-radius: 999px; background: #fff; font-weight: 700; font-size: .93rem; color: var(--dcev-ink); }
.dcev-pills__n { font-weight: 500; margin-left: .25em; }
.dcev-pills input:checked + span { background: var(--dcev-purple); border-color: var(--dcev-purple); color: #fff; }
/* A tick, so the choice never depends on colour alone (the accessibility panel's contrast modes). */
.dcev-pills input:checked + span::before { content: "\2713"; margin-right: .4em; }
.dcev-pills input:focus-visible + span { outline: 3px solid var(--dcev-focus); outline-offset: 2px; }
.dcev-dirfilters__space { flex: 1 1 220px; min-width: 0; max-width: 100%; }
.dcev-dirfilters select { min-height: 44px; width: 100%; max-width: 100%; padding: 0 12px; border: 2px solid var(--dcev-line); border-radius: 12px; background: #fff; font: inherit; color: var(--dcev-ink); }
.dcev-dirfilters__go { margin: 0; }
.dcev .dcev-dircount { margin: 0 0 6px; font-weight: 700; color: var(--dcev-ink); }
.dcev-dirreset { margin: 0 0 12px; }

/* Accessibility panel modes and print */
.accessibility-high-contrast .dcev-sp, .accessibility-contrast-yellow .dcev-sp,
.accessibility-high-contrast .dcev-pills input + span, .accessibility-contrast-yellow .dcev-pills input + span { border: 2px solid currentColor !important; }
.accessibility-high-contrast .dcev-pills input:checked + span, .accessibility-contrast-yellow .dcev-pills input:checked + span { border-width: 4px !important; }
@media (prefers-reduced-motion: reduce) { .dcev-sp__more > summary::before { transition: none; } }
.accessibility-reduce-motion .dcev-sp__more > summary::before { transition: none; }
@media print {
  .dcev-sp__more:not([open]) > summary, .dcev-sp__less, .dcev-dirfilters { display: none; }
  .dcev-sp-grid--teaser > .dcev-sp { display: flex !important; }
}
