/*
 * Events/registration UI: schedule, attendee sidebar, registration/login
 * forms, event cards. Reuses Shoelace's own design tokens (--sl-*) plus
 * this theme's Global Styles palette (--wp--preset--color--*, generated
 * from theme.json) instead of a second parallel --nordic-* variable
 * system like the pre-rebuild plugin had.
 *
 * Site-wide default for Shoelace's own primary-color tokens: the visual
 * brief calls for navy (Global Styles "contrast") as the button/link
 * color and gold ("accent-1") as a secondary accent only -- Shoelace
 * defaults --sl-color-primary-* to blue, so this is the one sitewide
 * override needed to bring sl-button[variant=primary] etc. in line.
 * Per-event `theme.primary_color` (set in Event Details admin) still
 * overrides this on that event's own pages via .event-theme-{id} below.
 */
:root {
  --sl-color-primary-500: var(--wp--preset--color--contrast, #202428);
  --sl-color-primary-600: var(--wp--preset--color--contrast, #202428);
  --sl-color-primary-700: var(--wp--preset--color--contrast, #14171A);
}

.nordic-loading {
  display: flex;
  justify-content: center;
  padding: var(--sl-spacing-2x-large) 0;
}

/* Event cards (archive grid) */

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sl-spacing-large);
}

.event-card {
  display: block;
}

.event-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.event-meta {
  color: var(--wp--preset--color--accent-4, var(--sl-color-neutral-600));
  font-size: var(--sl-font-size-small);
}

.event-card-past {
  opacity: 0.85;
}

/* Homepage carousel spotlight ([nordic_event_spotlight] shortcode) */

.event-carousel {
  --aspect-ratio: auto;
  --slide-gap: var(--sl-spacing-large);
  max-width: 480px;
  margin: 0 auto;
}

.carousel-event-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.carousel-event-card img {
  width: 100%;
  height: clamp(180px, 28vw, 340px);
  object-fit: cover;
  border-radius: var(--sl-border-radius-medium);
}

.carousel-event-line {
  margin-block-start: var(--sl-spacing-small);
  font-size: var(--sl-font-size-medium);
  font-weight: var(--sl-font-weight-semibold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-event-card:hover .carousel-event-line {
  color: var(--sl-color-primary-600);
}

/* Event detail */

.event-detail {
  line-height: var(--sl-line-height-normal);
  max-width: 960px;
  margin: 0 auto;
  padding: var(--sl-spacing-large);
}

.event-detail h1 {
  font-family: "Larken", serif;
  font-size: var(--sl-font-size-2x-large);
  margin-block: var(--sl-spacing-medium);
}

.event-hero {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--sl-border-radius-medium);
  margin-block-end: var(--sl-spacing-large);
}

.event-actions {
  display: flex;
  gap: var(--sl-spacing-medium);
  align-items: center;
  margin-block: var(--sl-spacing-large);
}

.entry-content {
  font-size: var(--sl-font-size-medium);
}

.entry-content > * + * {
  margin-block-start: var(--sl-spacing-medium);
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--sl-border-radius-medium);
}

/* Calendar / schedule */

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sl-spacing-large);
  align-items: start;
}

.calendar-day {
  background: var(--wp--preset--color--accent-5, var(--sl-color-neutral-0));
  border: 1px solid var(--wp--preset--color--accent-6, var(--sl-color-neutral-200));
  border-radius: var(--sl-border-radius-medium);
  padding: var(--sl-spacing-medium);
}

.calendar-day h2 {
  font-family: "Larken", serif;
  font-size: var(--sl-font-size-large);
  margin: 0;
}

.calendar-day-date {
  color: var(--wp--preset--color--accent-4, var(--sl-color-neutral-600));
  font-size: var(--sl-font-size-small);
  margin-block-end: var(--sl-spacing-medium);
}

.calendar-activities {
  display: flex;
  flex-direction: column;
  gap: var(--sl-spacing-small);
}

.calendar-activity {
  background: var(--wp--preset--color--base, var(--sl-color-neutral-50));
  border-radius: var(--sl-border-radius-small);
  padding: var(--sl-spacing-small) var(--sl-spacing-medium);
}

.calendar-activity-time {
  font-weight: var(--sl-font-weight-semibold);
  color: var(--wp--preset--color--accent-1, var(--sl-color-primary-600));
  font-size: var(--sl-font-size-small);
}

.calendar-activity-title {
  font-weight: var(--sl-font-weight-semibold);
}

.calendar-activity-location,
.calendar-activity-capacity {
  color: var(--wp--preset--color--accent-4, var(--sl-color-neutral-600));
  font-size: var(--sl-font-size-small);
}

.calendar-activity-desc {
  margin-block-start: var(--sl-spacing-2x-small);
  font-size: var(--sl-font-size-small);
}

.calendar-empty {
  color: var(--wp--preset--color--accent-4, var(--sl-color-neutral-500));
  font-size: var(--sl-font-size-small);
}

.activity-signup-btn {
  margin-block-start: var(--sl-spacing-small);
}

/* Event layout: schedule, full width */

.event-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--sl-spacing-large);
}

.event-layout > .event-detail {
  padding: 0;
  max-width: none;
  margin: 0;
}

/* Attendee matchmaking: attendee grid (left) + "want to meet" shortlist
   (right), both inside one shared bordered box -- .attendee-match-columns
   is the box; the two columns are just its padded halves, divided by a
   single border, not two separate floating panels. */

.attendee-match {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sl-spacing-large) var(--sl-spacing-large);
}

.attendee-match h2 {
  font-family: "Larken", serif;
  margin: 0 0 var(--sl-spacing-2x-small) 0;
  font-size: var(--sl-font-size-large);
}

.attendee-match-hint {
  color: var(--wp--preset--color--accent-4, var(--sl-color-neutral-600));
  font-size: var(--sl-font-size-small);
  margin-block-end: var(--sl-spacing-medium);
}

.attendee-match-columns {
  display: flex;
  align-items: stretch;
  background: var(--wp--preset--color--base, var(--sl-color-neutral-0));
  border: 1px solid var(--wp--preset--color--accent-6, var(--sl-color-neutral-200));
  border-radius: var(--sl-border-radius-medium);
  overflow: hidden;
}

@media (max-width: 800px) {
  .attendee-match-columns {
    flex-direction: column;
  }
}

/* Left column: attendee grid */

.attendee-grid {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sl-spacing-medium);
  align-content: start;
  padding: var(--sl-spacing-medium);
}

.attendee-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sl-spacing-small);
  background: var(--wp--preset--color--base, var(--sl-color-neutral-0));
  border: 1px solid var(--wp--preset--color--accent-6, var(--sl-color-neutral-200));
  border-radius: var(--sl-border-radius-medium);
  padding: var(--sl-spacing-medium);
}

.attendee-card[draggable="true"] {
  cursor: grab;
}

.attendee-card-pending {
  opacity: 0.7;
}

.attendee-card-top {
  display: flex;
  align-items: flex-start;
  gap: var(--sl-spacing-small);
}

.attendee-avatar-lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.attendee-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.attendee-card-heading {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.attendee-card-name {
  font-weight: var(--sl-font-weight-semibold);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attendee-card-meta,
.attendee-card-company {
  font-size: var(--sl-font-size-x-small);
  opacity: 0.7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attendee-card-desc {
  margin: 0;
  font-size: var(--sl-font-size-small);
  opacity: 0.85;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.attendee-card-spinner {
  align-self: center;
  font-size: 1.1rem;
}

.attendee-add-btn {
  border: 1px solid var(--wp--preset--color--accent-6, var(--sl-color-neutral-300));
  background: var(--wp--preset--color--base, var(--sl-color-neutral-0));
  border-radius: var(--sl-border-radius-small);
  cursor: pointer;
  font-size: var(--sl-font-size-small);
  padding: var(--sl-spacing-2x-small) var(--sl-spacing-small);
  margin-block-start: auto;
}

/* Right column: shortlist -- same .attendee-card look as the grid, plus a
   rank badge and swap-order/remove actions instead of the "+ Add" button. */

.attendee-shortlist {
  flex: 0 0 320px;
  position: sticky;
  top: var(--sl-spacing-large);
  align-self: flex-start;
  border-left: 1px solid var(--wp--preset--color--accent-6, var(--sl-color-neutral-200));
  background: var(--wp--preset--color--accent-5, var(--sl-color-neutral-50));
}

.attendee-shortlist-header {
  padding: var(--sl-spacing-medium) var(--sl-spacing-medium) var(--sl-spacing-small);
}

.attendee-shortlist-header h3 {
  margin: 0;
  font-size: var(--sl-font-size-medium);
}

.attendee-shortlist-empty {
  margin: 0 var(--sl-spacing-medium) var(--sl-spacing-medium);
  border: 1.5px dashed var(--wp--preset--color--accent-6, var(--sl-color-neutral-300));
  border-radius: var(--sl-border-radius-medium);
  padding: var(--sl-spacing-large);
  text-align: center;
}

.attendee-shortlist-empty-title {
  margin: 0 0 var(--sl-spacing-2x-small);
}

.attendee-shortlist-empty-hint {
  margin: 0;
  font-size: var(--sl-font-size-small);
  opacity: 0.7;
}

.attendee-shortlist-list {
  display: flex;
  flex-direction: column;
  gap: var(--sl-spacing-small);
  padding: 0 var(--sl-spacing-medium) var(--sl-spacing-medium);
}

.shortlist-card[draggable="true"] {
  cursor: grab;
}

.shortlist-rank {
  position: absolute;
  top: var(--sl-spacing-medium);
  right: var(--sl-spacing-medium);
  font-weight: var(--sl-font-weight-semibold);
  font-size: var(--sl-font-size-small);
  color: var(--wp--preset--color--accent-1, var(--sl-color-primary-600));
}

.shortlist-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sl-spacing-small);
  margin-block-start: auto;
}

.shortlist-row-arrows {
  display: flex;
  gap: var(--sl-spacing-3x-small);
}

.shortlist-arrow-btn {
  border: 1px solid var(--wp--preset--color--accent-6, var(--sl-color-neutral-300));
  background: var(--wp--preset--color--base, var(--sl-color-neutral-0));
  border-radius: var(--sl-border-radius-small);
  cursor: pointer;
  line-height: 1;
  padding: var(--sl-spacing-3x-small) var(--sl-spacing-2x-small);
}

.shortlist-arrow-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.shortlist-remove-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: var(--sl-font-size-small);
  opacity: 0.65;
  padding: 0;
}

.shortlist-remove-btn:hover {
  opacity: 1;
}

/* Auth forms (register/login, event-scoped) */

.auth-form {
  max-width: 400px;
  margin: 0 auto;
  padding: var(--sl-spacing-large);
}

.auth-context {
  color: var(--wp--preset--color--accent-4, var(--sl-color-neutral-600));
  font-size: var(--sl-font-size-small);
  margin-block-start: var(--sl-spacing-2x-small);
}

.wizard-field-note {
  color: var(--wp--preset--color--accent-4, var(--sl-color-neutral-600));
  font-size: var(--sl-font-size-small);
  margin-block: var(--sl-spacing-2x-small) var(--sl-spacing-small);
}

.wizard-supplier-intro {
  font-size: var(--sl-font-size-medium);
  line-height: var(--sl-line-height-normal);
  margin-block-end: var(--sl-spacing-large);
}

.wizard-supplier-intro-note {
  color: var(--wp--preset--color--accent-4, var(--sl-color-neutral-600));
  font-size: var(--sl-font-size-small);
}

.auth-form form {
  display: flex;
  flex-direction: column;
  gap: var(--sl-spacing-medium);
  margin-block: var(--sl-spacing-large);
}

.reg-field-image {
  display: flex;
  flex-direction: column;
  gap: var(--sl-spacing-2x-small);
  font-size: var(--sl-font-size-medium);
}

.reg-field-image label {
  font-size: var(--sl-font-size-small);
  color: var(--wp--preset--color--accent-4, var(--sl-color-neutral-700));
}

/* Per-event theme override -- populated/updated at runtime by
   applyEventTheme() in nordic-events.js from the event's `theme` postmeta.
   Scoping to .event-theme-{id} re-themes every nested sl-* component on
   that event's own pages without touching the sitewide default above. */

/* ================================================================
 * Marketing landing-page design system (.ne-*)
 *
 * A bespoke event can author its whole public info page as plain HTML in
 * its classic-editor content using these classes (see the Rovaniemi
 * event), instead of the generic hero/title/entry-content block every
 * other nordic_event still gets. Every color/font here reads a
 * --nordic-* custom property (set per-event by applyEventTheme() from
 * that event's Theme meta box) with a static fallback matching this
 * site's own gold/navy brand -- so the design still looks intentional
 * for an event that hasn't set every theme field, rather than falling
 * back to browser defaults.
 * ================================================================ */

.entry-content-marketing {
  /* Sections below break out to full viewport width (a common
     `100vw` + negative-margin technique) to get edge-to-edge color
     bands regardless of this element's own ancestors' max-width --
     this guards against the breakout ever causing a horizontal
     scrollbar (100vw can exceed the visible width by the scrollbar's
     own thickness in some browsers). */
  overflow-x: hidden;
}

.ne-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--nordic-accent, #c9a96e);
  font-weight: 500;
  margin-block-end: 22px;
}

.ne-heading {
  font-family: var(--nordic-heading-font, "Larken", serif);
  font-weight: 500;
  color: var(--nordic-text, inherit);
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0;
}

/* .ne-section-alt is a standalone alternate-background variant (not a
   modifier meant to be combined with .ne-section) -- each section in an
   event's content uses exactly one of the two. */
.ne-section,
.ne-section-alt {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  color: var(--nordic-text, inherit);
  padding: clamp(64px, 9vw, 120px) 44px;
}

.ne-section {
  background: var(--nordic-bg, transparent);
}

.ne-section-alt {
  background: var(--nordic-bg-alt, var(--nordic-bg, transparent));
}

/* Photo-backed variant -- full-bleed background image with a dark scrim,
   for CTA-style sections (e.g. the closing "Register your interest"
   section). Combines with .ne-section, doesn't replace it. */
.ne-section.ne-section-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.ne-section-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 35%, rgba(0, 0, 0, 0.72) 100%);
}

.ne-section-photo > .ne-container {
  position: relative;
  z-index: 1;
}

.ne-container {
  max-width: 1120px;
  margin: 0 auto;
}

.ne-container-narrow {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* Hero */

.ne-hero {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--nordic-bg, #0d1f2d);
  background-size: cover;
  background-position: center;
  color: var(--nordic-text, #fff);
  padding: 140px 44px 90px;
  text-align: center;
  box-sizing: border-box;
}

/* Defensive: the event's post_content hand-authors a ".ne-hero-inner"
   wrapper around the title/subtitle/desc/meta/actions for its 900px
   max-width cap. That wrapper has been dropped by content edits in
   wp-admin more than once, leaving the hero's children as direct flex
   items of .ne-hero -- flex-direction:column (above) keeps them stacked
   and centered either way, but this repeats the wrapper's width cap
   directly on the children so a missing wrapper doesn't also produce
   overly-wide text measure on large viewports. */
.ne-hero > .ne-hero-title,
.ne-hero > .ne-hero-subtitle,
.ne-hero > .ne-hero-desc,
.ne-hero > .ne-hero-meta,
.ne-hero > .ne-hero-actions {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.ne-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 35%, rgba(0, 0, 0, 0.55) 78%, rgba(0, 0, 0, 0.85) 100%);
}

.ne-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.ne-hero-title {
  font-family: var(--nordic-heading-font, "Larken", serif);
  font-size: clamp(38px, 7vw, 96px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 0;
}

.ne-hero-subtitle {
  display: block;
  font-family: var(--nordic-heading-font, "Larken", serif);
  color: var(--nordic-accent, #c9a96e);
  font-size: clamp(16px, 2.6vw, 32px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 14px;
}

.ne-hero-desc {
  max-width: 600px;
  margin: 28px auto 0;
  font-size: 16.5px;
  line-height: 1.75;
  opacity: 0.82;
  font-weight: 300;
}

.ne-hero-meta {
  margin-top: 32px;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
}

.ne-hero-meta .ne-dot {
  color: var(--nordic-accent-2, #b08a50);
  margin: 0 12px;
}

.ne-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 38px;
}

/* Buttons -- deliberately plain anchors, not sl-button, so they can live
   inside hand-authored post_content; data-nordic-action="show-register"/
   "show-login" wires them to the same delegated click listener the
   generic actions bar uses, no extra JS needed per event. */

.ne-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 15px 28px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}

.ne-btn-primary {
  background: var(--nordic-accent, #c9a96e);
  color: var(--nordic-bg, #0d1f2d);
}

.ne-btn-outline {
  background: transparent;
  color: var(--nordic-text, currentColor);
  border-color: rgba(var(--nordic-accent-rgb, 201, 169, 110), 0.5);
}

/* About / generic two-column */

.ne-two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.ne-two-col p + p {
  margin-top: 18px;
}

/* Stats grid */

.ne-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 56px;
  background: rgba(var(--nordic-accent-2-rgb, 176, 138, 80), 0.25);
  border: 1px solid rgba(var(--nordic-accent-2-rgb, 176, 138, 80), 0.25);
}

.ne-stat {
  background: var(--nordic-bg, transparent);
  padding: 40px 24px;
  text-align: center;
}

.ne-stat-number {
  display: block;
  font-family: var(--nordic-heading-font, "Larken", serif);
  font-size: 54px;
  color: var(--nordic-accent, #c9a96e);
  line-height: 1;
}

.ne-stat-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 14px;
}

/* Venue/location spotlight -- full-bleed image with a gradient scrim and a copy panel */

.ne-spotlight {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  box-sizing: border-box;
}

.ne-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.ne-spotlight-inner {
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding: 0 6vw;
}

/* Tags */

.ne-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.ne-tag {
  border: 1px solid rgba(var(--nordic-accent-rgb, 201, 169, 110), 0.5);
  color: inherit;
  padding: 8px 15px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Gateway/venue two-column -- solid text panel + full-height photo, sharp
   edge between them (not the softer full-bleed-image-with-scrim pattern
   .ne-spotlight uses elsewhere). */

.ne-gateway {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 80vh;
  background: var(--nordic-bg, #0d1f2d);
  color: var(--nordic-text, #fff);
}

.ne-gateway-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 6vw;
  box-sizing: border-box;
}

.ne-gateway-desc {
  line-height: 1.8;
  margin: 24px 0;
  max-width: 480px;
  opacity: 0.85;
}

.ne-gateway-photo {
  position: relative;
  overflow: hidden;
}

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

@media (max-width: 780px) {
  .ne-gateway {
    grid-template-columns: 1fr;
  }

  .ne-gateway-photo {
    min-height: 360px;
  }
}

/* Venue triptych -- 3 full-bleed vertical photos side by side with a
   centered text overlay, same dark-scrim-over-photo treatment as .ne-hero/
   .ne-section-photo, just applied across 3 images instead of 1. */

.ne-triptych {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--nordic-text, #fff);
  box-sizing: border-box;
}

.ne-triptych-images {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.ne-triptych-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Must outrank .ne-triptych-images (both position:absolute, inset:0) --
   without an explicit z-index here this pseudo-element paints first (it's
   generated as the first child) but .ne-triptych-images comes later in
   markup, so it would otherwise stack on top and fully hide the scrim. */
.ne-triptych::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.7) 100%);
}

.ne-triptych-overlay {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 0 6vw;
  text-align: center;
  box-sizing: border-box;
}

.ne-triptych-desc {
  margin: 20px 0 0;
  font-size: 16.5px;
  line-height: 1.75;
  opacity: 0.88;
  font-weight: 300;
}

@media (max-width: 780px) {
  .ne-triptych {
    min-height: auto;
    flex-direction: column;
  }

  .ne-triptych-images {
    position: static;
    display: flex;
    flex-direction: column;
    order: -1;
  }

  .ne-triptych-images img {
    height: 260px;
  }

  .ne-triptych-overlay {
    padding: 48px 6vw;
  }
}

/* Gallery */

.ne-gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  margin-top: 48px;
  height: 480px;
}

.ne-gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ne-gallery-grid img:first-child {
  grid-row: span 2;
}

/* Testimonials */

.ne-testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 44px;
}

.ne-quote {
  margin: 0;
  background: var(--nordic-bg-alt, rgba(0, 0, 0, 0.15));
  border: 1px solid rgba(var(--nordic-accent-2-rgb, 176, 138, 80), 0.2);
  padding: 32px 30px;
}

.ne-quote-wide {
  grid-column: span 2;
}

.ne-quote p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.6;
}

.ne-quote cite {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nordic-accent, #c9a96e);
}

/* Register CTA cards (informational -- the real, functional registration
   form still opens via the "Register for this event" action below; these
   just present the buyer/supplier paths visually before that). */

.ne-register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 44px;
}

.ne-register-card {
  border: 1px solid rgba(var(--nordic-accent-2-rgb, 176, 138, 80), 0.3);
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.ne-register-card-highlight {
  border-color: rgba(var(--nordic-accent-rgb, 201, 169, 110), 0.5);
}

.ne-register-card h3 {
  font-family: var(--nordic-heading-font, "Larken", serif);
  font-weight: 500;
  font-size: 26px;
  margin: 6px 0 12px;
}

.ne-register-card p {
  flex: 1;
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.8;
  margin: 0 0 26px;
}

.ne-register-kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
}

@media (max-width: 800px) {
  .ne-two-col,
  .ne-stats-grid,
  .ne-testimonials-grid,
  .ne-register-grid,
  .ne-gallery-grid {
    grid-template-columns: 1fr;
  }
  .ne-quote-wide {
    grid-column: span 1;
  }
  .ne-gallery-grid {
    height: auto;
  }
  .ne-gallery-grid img:first-child {
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
}

/* ================================================================
 * Attendee matchmaking reskin
 *
 * Both columns are the same light card surface (the shortlist is no
 * longer a separately-dark-themed rail -- that fought with an event's own
 * light `--nordic-text`/`--nordic-bg` pairing and made the section heading
 * and hint text unreadable on events without a dark theme override, since
 * this section never actually sits on a `--nordic-bg` surface). Only the
 * event's accent color carries through, on the rank badge/add button/
 * arrows -- small accents against the light card background always have
 * enough contrast, unlike swapping the *page* text color wholesale.
 * ================================================================ */

.attendee-shortlist-header h3 {
  font-family: var(--nordic-heading-font, "Larken", serif);
}

.attendee-add-btn {
  color: var(--nordic-accent, inherit);
  border-color: rgba(var(--nordic-accent-rgb, 201, 169, 110), 0.4);
}

.attendee-avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nordic-accent, var(--sl-color-primary-300));
  color: var(--nordic-bg, #fff);
  font-size: var(--sl-font-size-x-small);
  font-weight: var(--sl-font-weight-semibold);
}

.shortlist-rank {
  font-family: var(--nordic-heading-font, "Larken", serif);
  color: var(--nordic-accent, var(--sl-color-primary-600));
}

.shortlist-arrow-btn {
  color: var(--nordic-accent, inherit);
  border-color: rgba(var(--nordic-accent-rgb, 201, 169, 110), 0.4);
}

.shortlist-remove-btn:hover {
  color: var(--nordic-accent, inherit);
}

/* ================================================================
 * Registration wizard (#nordic-register-app)
 * ================================================================ */

.nordic-wizard-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--sl-spacing-large);
}

.nordic-wizard-inner h1 {
  font-family: "Larken", serif;
  margin-block-end: 0;
}

.nordic-wizard-inner h2 {
  font-family: "Larken", serif;
  font-size: var(--sl-font-size-medium);
  margin-block: var(--sl-spacing-large) var(--sl-spacing-small);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nordic-wizard-inner h2 a {
  font-size: var(--sl-font-size-small);
  font-weight: var(--sl-font-weight-normal);
}

.wizard-steps {
  display: flex;
  gap: var(--sl-spacing-medium);
  list-style: none;
  margin: var(--sl-spacing-large) 0;
  padding: 0;
  flex-wrap: wrap;
}

.wizard-steps li {
  display: flex;
  align-items: center;
  gap: var(--sl-spacing-2x-small);
  font-size: var(--sl-font-size-small);
  opacity: 0.5;
}

.wizard-steps li.wizard-step-current,
.wizard-steps li.wizard-step-done {
  opacity: 1;
}

.wizard-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: var(--wp--preset--color--accent-6, var(--sl-color-neutral-200));
  font-size: var(--sl-font-size-x-small);
}

.wizard-step-current .wizard-step-num {
  background: var(--nordic-accent, var(--sl-color-primary-600));
  color: var(--nordic-bg, #fff);
}

.wizard-step-done .wizard-step-num {
  background: var(--sl-color-success-600);
  color: #fff;
}

.wizard-body {
  display: flex;
  flex-direction: column;
  gap: var(--sl-spacing-medium);
}

.wizard-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sl-spacing-medium);
}

@media (max-width: 560px) {
  .wizard-field-row {
    grid-template-columns: 1fr;
  }
}

.wizard-fieldset {
  border: 1px solid var(--wp--preset--color--accent-6, var(--sl-color-neutral-200));
  border-radius: var(--sl-border-radius-medium);
  padding: var(--sl-spacing-medium);
}

.wizard-radio-horizontal::part(form-control-input) {
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--sl-spacing-medium) var(--sl-spacing-large);
}

.wizard-fieldset legend {
  font-size: var(--sl-font-size-small);
  padding: 0 var(--sl-spacing-2x-small);
}

.wizard-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sl-spacing-small);
}

@media (max-width: 560px) {
  .wizard-checkbox-grid {
    grid-template-columns: 1fr;
  }
}

.wizard-file-field {
  display: flex;
  flex-direction: column;
  gap: var(--sl-spacing-2x-small);
}

.wizard-file-field label {
  font-size: var(--sl-font-size-small);
  color: var(--wp--preset--color--accent-4, var(--sl-color-neutral-700));
}

.wizard-file-preview {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--sl-border-radius-medium);
  margin-block-start: var(--sl-spacing-2x-small);
}

.wizard-file-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sl-spacing-2x-small);
  margin-block-start: var(--sl-spacing-2x-small);
}

.wizard-file-preview-grid .wizard-file-preview {
  margin-block-start: 0;
}

.wizard-file-current {
  font-size: var(--sl-font-size-small);
  opacity: 0.7;
  margin: 0;
}

.wizard-actions {
  display: flex;
  gap: var(--sl-spacing-medium);
  margin-block-start: var(--sl-spacing-large);
}

.wizard-summary-row {
  display: flex;
  justify-content: space-between;
  gap: var(--sl-spacing-medium);
  padding: var(--sl-spacing-2x-small) 0;
  border-bottom: 1px solid var(--wp--preset--color--accent-6, var(--sl-color-neutral-100));
  font-size: var(--sl-font-size-small);
}

.wizard-summary-label {
  opacity: 0.65;
}

.wizard-done {
  text-align: center;
}

.wizard-done-hero {
  width: 100%;
  height: auto;
  border-radius: var(--sl-border-radius-medium);
  margin-block-end: var(--sl-spacing-large);
}

.wizard-done-steps {
  list-style: none;
  text-align: left;
  margin: var(--sl-spacing-large) 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sl-spacing-large);
}

.wizard-done-steps h3 {
  font-family: "Larken", serif;
  font-size: var(--sl-font-size-large);
  display: flex;
  align-items: center;
  gap: var(--sl-spacing-small);
  margin: 0 0 var(--sl-spacing-x-small);
}

.wizard-done-steps p {
  margin: 0 0 var(--sl-spacing-2x-small);
}

.wizard-done-badge {
  font-size: var(--sl-font-size-x-small);
  font-weight: var(--sl-font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sl-color-success-700);
  background: var(--sl-color-success-100);
  padding: 0.15em 0.6em;
  border-radius: var(--sl-border-radius-pill);
}

.wizard-done-signoff {
  margin-block-start: var(--sl-spacing-large);
  font-style: italic;
}

#wizard-error:empty {
  display: none;
}

/* ================================================================
 * Portal (#nordic-portal-app)
 * ================================================================ */

.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--sl-spacing-medium);
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--sl-spacing-large) var(--sl-spacing-large) 0;
}

.portal-header h1 {
  font-family: "Larken", serif;
}

.portal-whoami {
  display: flex;
  align-items: center;
  gap: var(--sl-spacing-medium);
  font-size: var(--sl-font-size-small);
  opacity: 0.85;
}
