/*
 * Optional styling for embedded fragments.
 *
 * A fragment is meant to become the host site's own content, wearing the
 * host site's own design - so this is offered, not applied. Anybody who
 * wants it looking the way it does on the platform links this file;
 * anybody who does not gets semantic markup their stylesheet already
 * handles, which is the better outcome.
 *
 * Everything is scoped to .evz- prefixes and sets no page-level rules, so
 * dropping it into a site cannot change anything that is not ours.
 * Sizes are in em so the widget follows whatever type scale it lands in.
 */

.evz-agenda, .evz-tickets, .evz-card, .evz-speakers {
  --evz-accent: #c92737;
  --evz-line: rgba(0, 0, 0, .12);
  --evz-muted: #6b6880;
}

@media (prefers-color-scheme: dark) {
  .evz-agenda, .evz-tickets, .evz-card, .evz-speakers {
    --evz-line: rgba(255, 255, 255, .16);
    --evz-muted: #9b98ab;
  }
}

/* Days ------------------------------------------------------------- */
.evz-day {
  font-size: .95em;
  font-weight: 700;
  margin: 1.4em 0 .5em;
  padding-bottom: .35em;
  border-bottom: 2px solid var(--evz-line);
  display: flex;
  gap: .6em;
  align-items: baseline;
  flex-wrap: wrap;
}
.evz-day:first-child { margin-top: 0; }
.evz-day span { font-weight: 400; font-size: .85em; color: var(--evz-muted); }

/* Rows -------------------------------------------------------------- */
.evz-list { list-style: none; margin: 0; padding: 0; }

.evz-item {
  display: flex;
  gap: .9em;
  align-items: flex-start;
  padding: .7em 0;
  border-bottom: 1px solid var(--evz-line);
}
.evz-item:last-child { border-bottom: 0; }

/* The colour a session's grouping was assigned. Drawn as a rule down the
   left so it reads without relying on hue alone - the name is always
   printed beside it. */
.evz-item[class*="tk-"] { padding-left: .7em; border-left: 3px solid var(--tk, var(--evz-accent)); }

.evz-when {
  flex: 0 0 6.2em;
  font-size: .85em;
  color: var(--evz-muted);
  font-variant-numeric: tabular-nums;
}
.evz-what { min-width: 0; flex: 1 1 auto; }
.evz-what strong { display: block; font-weight: 600; }
.evz-what small { display: block; font-size: .82em; color: var(--evz-muted); margin-top: .1em; }
.evz-desc { margin: .35em 0 0; font-size: .9em; color: var(--evz-muted); }

/* Folding rows ------------------------------------------------------- */
/* A session with more to say opens on tap. Native <details>, so it
   needs no scripting to work and announces itself to a screen reader;
   the summary keeps exactly the closed row's layout so folding rows and
   plain rows read as one list. */
.evz-item-folds { display: block; }

.evz-fold summary.evz-row,
.evz-item > .evz-row { display: flex; gap: .9em; align-items: flex-start; }

.evz-fold summary.evz-row {
  cursor: pointer;
  list-style: none;
}
.evz-fold summary.evz-row::-webkit-details-marker { display: none; }

/* The caret says "there is more", in shape rather than colour. */
.evz-caret {
  flex: 0 0 auto;
  align-self: center;
  width: .55em;
  height: .55em;
  border-right: 2px solid var(--evz-muted);
  border-bottom: 2px solid var(--evz-muted);
  transform: rotate(45deg);
  transition: transform .15s ease;
}
.evz-fold[open] .evz-caret { transform: rotate(225deg); }

.evz-fold summary.evz-row:hover strong { text-decoration: underline; }
.evz-fold summary.evz-row:focus-visible { outline: 2px solid var(--evz-accent); outline-offset: 2px; }

.evz-detail { padding: .15em 0 .3em 7.1em; }
.evz-who { margin: .2em 0 0; font-size: .88em; font-weight: 600; }

@media (max-width: 480px) {
  .evz-detail { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .evz-caret { transition: none; }
}

/* Tickets ----------------------------------------------------------- */
.evz-tickets .evz-item { justify-content: space-between; align-items: center; gap: .8em; }
.evz-price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* A reduction: the original struck beside the charged price, and the
   saving said in words. Never colour alone. */
.evz-was {
  font-size: .82em;
  font-weight: 500;
  color: var(--evz-muted);
  margin-right: .3em;
}
.evz-save { color: #0d7a49; font-weight: 600; }
.evz-low { color: #a36a00; font-weight: 600; }
.evz-off { opacity: .6; }

.evz-btn-sm { padding: .4em .85em; font-size: .85em; white-space: nowrap; }

/* Read by screen readers, invisible otherwise. */
.evz-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Cards and buttons -------------------------------------------------- */
.evz-card {
  border: 1px solid var(--evz-line);
  border-radius: .7em;
  padding: 1.1em 1.2em;
}
.evz-centre { text-align: center; }
.evz-title { font-size: 1.1em; margin: 0 0 .2em; }
.evz-sub { color: var(--evz-muted); font-size: .9em; margin: 0 0 .9em; }

.evz-btn {
  display: inline-block;
  background: var(--evz-accent);
  color: #fff;
  text-decoration: none;
  padding: .55em 1.1em;
  border-radius: .5em;
  font-weight: 600;
  font-size: .95em;
}
.evz-btn:hover { filter: brightness(.94); }

.evz-empty { color: var(--evz-muted); font-size: .92em; }

/* Which ticket admits you ------------------------------------------- */
/* Shown in the fold and said on hover via the title attribute - only
   for sessions where the choice of ticket decides something. */
.evz-tix {
  margin: .5em 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35em;
  align-items: baseline;
  font-size: .82em;
}

.evz-tix-label { color: var(--evz-muted); margin-right: .15em; }

.evz-tix-chip {
  display: inline-block;
  padding: .1em .6em;
  border: 1px solid var(--evz-line);
  border-radius: 99px;
  font-weight: 600;
  white-space: nowrap;
}

/* Speakers ----------------------------------------------------------- */
/* Three templates, one rule they all keep: the mask is the one the
   speaker chose on the collection form. The photo was framed against
   exactly that shape, so no template overrides it - a circle crop shown
   square puts somebody chin-first against the frame. */

.evz-spk-list { list-style: none; margin: 0; padding: 0; }

.evz-spk-photo {
  display: block;
  overflow: hidden;
  background: color-mix(in srgb, var(--evz-accent) 10%, transparent);
  position: relative;
}

.evz-spk-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* The five framings the collection form offers. Aspect first, then the
   corner treatment - a mask is both. */
.evz-shape-square    { aspect-ratio: 1; border-radius: .55em; }
.evz-shape-rounded   { aspect-ratio: 1; border-radius: 22%; }
.evz-shape-circle    { aspect-ratio: 1; border-radius: 50%; }
.evz-shape-portrait  { aspect-ratio: 3 / 4; border-radius: .55em; }
.evz-shape-landscape { aspect-ratio: 4 / 3; border-radius: .55em; }

/* No photograph yet: initials on a plate wearing the same mask, so a
   half-collected line-up still reads as one row. */
.evz-spk-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.6em;
  color: var(--evz-accent);
  letter-spacing: .04em;
}

.evz-spk-name { display: block; font-weight: 600; line-height: 1.3; }
.evz-spk-meta { display: block; font-size: .82em; color: var(--evz-muted); margin-top: .1em; }
.evz-spk-bio  { display: block; font-size: .88em; color: var(--evz-muted); margin-top: .35em; line-height: 1.5; }

/* Grid: faces first, three across, folding to two. */
.evz-speakers.is-grid .evz-spk-list {
  display: grid;
  gap: 1.1em;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.evz-speakers.is-grid .evz-spk { text-align: center; }
.evz-speakers.is-grid .evz-spk-photo { margin: 0 auto .5em; max-width: 9.5em; }
.evz-speakers.is-grid .evz-spk-photo:not([class*="portrait"]):not([class*="landscape"]) { width: 100%; }

@media (max-width: 560px) {
  .evz-speakers.is-grid .evz-spk-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* List: a row per person, with room for the biography. */
.evz-speakers.is-list .evz-spk {
  display: flex;
  gap: .9em;
  align-items: flex-start;
  padding: .7em 0;
  border-bottom: 1px solid var(--evz-line);
}

.evz-speakers.is-list .evz-spk:last-child { border-bottom: 0; }
.evz-speakers.is-list .evz-spk-photo { flex: 0 0 4.4em; width: 4.4em; }
.evz-speakers.is-list .evz-spk-who { min-width: 0; }

/* Strip: one row that scrolls, for a homepage band. */
.evz-speakers.is-strip .evz-spk-list {
  display: flex;
  gap: 1em;
  overflow-x: auto;
  padding-bottom: .5em;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.evz-speakers.is-strip .evz-spk {
  flex: 0 0 8.5em;
  text-align: center;
  scroll-snap-align: start;
}

.evz-speakers.is-strip .evz-spk-photo { margin: 0 0 .45em; }
.evz-speakers.is-strip .evz-spk-bio { display: none; }

/* Featured people lead the order; the ring says so without a word
   stealing space from the name. */
.evz-spk.is-featured .evz-spk-photo {
  box-shadow: 0 0 0 2px var(--evz-accent);
}

/* Guests of honour sit above even those, ribboned in the organiser's
   own words and ringed apart. */
.evz-spk.is-guest { position: relative; }
.evz-spk.is-guest .evz-spk-photo { box-shadow: 0 0 0 3px var(--evz-accent); }

.evz-spk-guest {
  display: inline-block;
  margin-bottom: .35em;
  font-size: .66em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--evz-accent);
  border: 1px solid var(--evz-accent);
  border-radius: 99px;
  padding: .1em .8em;
}

/* Partners --------------------------------------------------------- */
/* The event page's sponsor layouts (includes/sponsors.php), mirrored from
   the Sponsors block of app.css and scoped here: change one, change both.
   Their colours come from the widget's own variables. */
.evz-partners {
  --evz-accent: #c92737; --evz-line: rgba(0, 0, 0, .12); --evz-muted: #6b6880;
  --fg: inherit; --border: var(--evz-line); --primary: var(--evz-accent);
  --muted-fg: var(--evz-muted); --card: transparent; --bg-alt: rgba(0, 0, 0, .03);
}
@media (prefers-color-scheme: dark) {
  .evz-partners { --evz-line: rgba(255, 255, 255, .16); --evz-muted: #9b98ab; --bg-alt: rgba(255, 255, 255, .04); }
}
.evz-partners .evz-title { margin: 0 0 .8em; }
.evz-partners .sp-tile { display: grid; place-items: center; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); min-height: 72px; text-decoration: none; }
.evz-partners .sp-tile img { max-width: 100%; max-height: 46px; width: auto; height: auto; object-fit: contain; }
.evz-partners .sp-tile .sp-name { font-size: 0.86rem; font-weight: 600; color: var(--fg); text-align: center; }
.evz-partners a.sp-tile { transition: border-color .15s ease, transform .15s ease; }
.evz-partners a.sp-tile:hover { border-color: var(--primary); transform: translateY(-1px); }
.evz-partners a.sp-tile:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.evz-partners .sp-tile-sm { min-height: 56px; padding: 8px 12px; }
.evz-partners .sp-tile-sm img { max-height: 32px; }
.evz-partners .sp-tile-lg { min-height: clamp(96px, 22vw, 140px); padding: 18px 26px; }
.evz-partners .sp-tile-lg img { max-height: clamp(56px, 14vw, 88px); }
.evz-partners .sp-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(clamp(120px, 30vw, 170px), 1fr)); }
.evz-partners .sp-grid-sm { grid-template-columns: repeat(auto-fit, minmax(clamp(100px, 24vw, 130px), 1fr)); }
.evz-partners .sp-tier { margin-bottom: 22px; }
.evz-partners .sp-tier:last-child { margin-bottom: 0; }
.evz-partners .sp-tier-head { font-size: 0.74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-fg); font-weight: 700; margin: 0 0 10px; }
.evz-partners .sp-tier { --sp-scale: 1; }
.evz-partners .sp-tier .sp-tile { min-height: calc(66px * var(--sp-scale) + 30px); }
.evz-partners .sp-tier .sp-tile img { max-height: calc(46px * var(--sp-scale) + 18px); }
.evz-partners .sp-tier .sp-grid { grid-template-columns: repeat(auto-fit, minmax(clamp(110px, calc(20vw * var(--sp-scale) + 8vw), calc(120px * var(--sp-scale) + 60px)), 1fr)); }
.evz-partners .sp-featured { margin-bottom: 18px; }
.evz-partners .sp-featured-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.evz-partners .sp-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.evz-partners .sp-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--card); display: flex; flex-direction: column; }
.evz-partners .sp-card .sp-tile { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: var(--bg-alt); min-height: 96px; }
.evz-partners .sp-card-body { padding: 12px 14px; }
.evz-partners .sp-card-body b { display: block; font-size: 0.93rem; }
.evz-partners .sp-card-tier { font-size: 0.68rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-fg); }
.evz-partners .sp-card-body p { margin: 6px 0 0; font-size: 0.86rem; color: var(--muted-fg); }
.evz-partners .sp-strip { min-width: 0; display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.evz-partners .sp-strip .sp-tile { flex: 0 0 auto; min-width: 132px; scroll-snap-align: start; }
.evz-partners .sp-marquee { min-width: 0; overflow: hidden; }
.evz-partners .sp-marquee-track { display: flex; gap: 12px; width: max-content; animation: sp-scroll 38s linear infinite; }
.evz-partners .sp-marquee-copy { display: flex; gap: 12px; }
.evz-partners .sp-marquee:hover .sp-marquee-track, .evz-partners .sp-marquee:focus-within .sp-marquee-track { animation-play-state: paused; }
.evz-partners .sp-marquee .sp-tile { flex: 0 0 auto; min-width: 132px; }
@keyframes sp-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.evz-partners .sp-compact { margin-bottom: 14px; }
.evz-partners .sp-compact-tier { font-size: 0.68rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-fg); font-weight: 700; }
.evz-partners .sp-compact ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.evz-partners .sp-compact li { font-size: 0.93rem; }
@media (prefers-reduced-motion: reduce) {
  .evz-partners .sp-marquee-track { animation: none; }
  .evz-partners .sp-marquee { overflow-x: auto; }
  .evz-partners a.sp-tile:hover { transform: none; }
}
