/* wa-lint: skip */
/* ============================================================
   stand.css — styling for the reusable Stand-skabelon.
   Used by every "stand"-page (Stand: Standkort, Stand: Program, …).
   The page wrapper is .stand[data-role] — role swaps drive copy + features.
   ============================================================ */

/* ---- Stand wrapper ---- */
.stand {
  display: block;
  position: relative;
}

/* ---- Breadcrumb ---- */

/* ============================================================
   ROLE-SWITCHER — wa-radio-group chip group med custom ◉/○ indicator
   Konverteret 2026-05-25 fra native <input type="radio"> til wa-radio-group.
   Styling sker via ::part(control) + ::part(label) + ::part(checked-icon)
   shadow-API på wa-radio. Container-pill styles host-element.
   ============================================================ */
.role-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 14px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  box-shadow: 0 4px 14px -6px rgba(49, 79, 89, 0.15);
}
[data-theme="dark"] .role-switcher {
  background: rgba(22, 36, 40, 0.92);
}

/* wa-radio-group's label slot (legend equivalent) */
.role-switcher::part(form-control-label) {
  padding: 0;
  margin: 0 4px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Radios layout inde i gruppen — horizontal med flex-wrap */
.role-switcher::part(form-control-input) {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

/* Hver wa-radio som chip-button. Styling sker direkte på host-element
   (wa-radio har ikke ::part(base), kun control/checked-icon/label). */
.role-switcher__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--brand-30);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  user-select: none;
  transition: background .15s, border-color .15s, color .15s, transform .12s, box-shadow .15s;
}

/* The ◉/○ indicator — wa-radio's own ::part(control) styles til outlined circle */
.role-switcher__chip::part(control) {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--brand-30);
  background: transparent;
  box-shadow: none;
  transition: border-color .15s, background .15s;
}

.role-switcher__chip::part(checked-icon) {
  color: var(--accent);
  background: var(--accent);
  border-radius: 50%;
  transform: scale(0);
  transition: transform .18s cubic-bezier(.34, 1.56, .64, 1);
}

.role-switcher__chip::part(label) {
  margin: 0;
}

/* Hover (kun på inaktive chips) */
.role-switcher__chip:not([aria-checked="true"]):hover {
  background: rgba(49, 79, 89, 0.06);
  color: var(--primary);
}

/* Active — wa-radio[checked] indikerer valgt state */
.role-switcher__chip[aria-checked="true"] {
  background: rgb(255, 255, 255);
  border-color: var(--accent);
  color: var(--primary);
  box-shadow: 0 2px 8px -2px rgba(184, 90, 58, 0.35);
  transform: translateY(-1px);
}
[data-theme="dark"] .role-switcher__chip[aria-checked="true"] {
  background: var(--surface);
}
.role-switcher__chip[aria-checked="true"]::part(control) {
  border-color: var(--accent);
}
.role-switcher__chip[aria-checked="true"]::part(checked-icon) {
  transform: scale(1);
}

/* Keyboard focus */
.role-switcher__chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================================
   STAND HERO — full-width stage, ~70vh, animation centered
   ============================================================ */
.stand-hero {
  position: relative;
  margin-top: 18px;
  padding: 28px 28px 56px;
  min-height: clamp(440px, 68vh, 720px);
  background:
    radial-gradient(ellipse 900px 600px at 18% 28%, rgba(127, 190, 198, 0.22), transparent 60%),
    radial-gradient(ellipse 700px 500px at 88% 78%, rgba(184, 90, 58, 0.14), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--bg) 100%);
  overflow: hidden;
  isolation: isolate;
}
.stand-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(49, 79, 89, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 79, 89, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 55%, rgb(0, 0, 0) 50%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 55%, rgb(0, 0, 0) 50%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}

.stand-hero__topbar {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.stand-hero__stage {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  min-height: clamp(340px, 52vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ============================================================
   ROLE-AWARE COPY — show only the active role's text
   ============================================================ */
.role-arrangoer,
.role-udstiller,
.role-besoegende {
  display: none;
}
.stand[data-role="arrangoer"] .role-arrangoer,
.stand[data-role="udstiller"] .role-udstiller,
.stand[data-role="besoegende"] .role-besoegende {
  display: block;
}
/* For inline use in headlines (span etc.) */
.stand-intro__headline .role-arrangoer,
.stand-intro__headline .role-udstiller,
.stand-intro__headline .role-besoegende { display: none; }
.stand[data-role="arrangoer"] .stand-intro__headline .role-arrangoer,
.stand[data-role="udstiller"] .stand-intro__headline .role-udstiller,
.stand[data-role="besoegende"] .stand-intro__headline .role-besoegende { display: inline; }

/* Soft fade when copy swaps */
.stand-intro__headline,
.stand-intro__lede {
  transition: opacity .25s ease;
}
.stand[data-role-changing="true"] .stand-intro__headline,
.stand[data-role-changing="true"] .stand-intro__lede {
  opacity: 0;
}

/* ============================================================
   INTRO BLOCK — title + role-aware headline + lede
   ============================================================ */
.stand-intro {
  padding: 64px 0 24px;
}
.stand-intro__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
}
.stand-intro__title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 14px;
  text-wrap: balance;
}
.stand-intro__headline {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  line-height: 1.25;
  text-wrap: balance;
}
.stand-intro__lede p {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--brand-30);
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 auto;
}

/* ============================================================
   FEATURES — role-priority via JS-set style.order
   ============================================================ */
.stand-features {
  padding: 56px 0 72px;
  background: var(--bg);
}
.stand-features__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}
.stand-features__head {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 300;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  text-align: center;
}
.stand-features__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: stretch;
  justify-content: center;
}
.stand-feature {
  flex: 1 1 280px;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: order .35s, transform .15s, box-shadow .2s, border-color .2s;
}
.stand-feature:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 10px 28px -10px rgba(49, 79, 89, 0.18);
}
.stand-feature__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.stand-feature__desc {
  margin: 0;
  font-size: 14px;
  color: var(--brand-30);
  line-height: 1.55;
}

/* ============================================================
   BODY (markdown content) + CTA
   ============================================================ */
.stand-body {
  padding: 24px 0 16px;
  background: var(--bg);
}
.stand-body__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 28px;
  font-size: 16px;
  color: var(--brand-30);
  line-height: 1.65;
}
.stand-body__inner h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 32px 0 12px;
}
.stand-body__inner p { margin: 0 0 14px; }
.stand-body__inner strong { color: var(--primary); }

.stand-cta {
  background: var(--cream);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stand-cta::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 22% 50%, rgba(127, 190, 198, 0.22), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(184, 90, 58, 0.18), transparent 55%);
}
.stand-cta__inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 28px;
}
.stand-cta h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 300;
  color: var(--primary);
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.stand-cta p {
  font-size: 17px;
  color: var(--brand-30);
  margin: 0 0 24px;
}

/* ============================================================
   HERO PARTIAL: STANDKORT (mini-floorplan)
   ============================================================ */
.stand-hero-floor {
  width: min(100%, 760px);
  aspect-ratio: 600/380;
  background: rgb(255, 255, 255);
  border-radius: 24px;
  box-shadow:
    0 1px 0 rgba(49, 79, 89, 0.04),
    0 30px 60px -20px rgba(49, 79, 89, 0.25);
  padding: 14px;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .stand-hero-floor { background: var(--surface); }

.stand-hero-floor__svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Booths — soft pulse on highlight roles */
.stand-hero-floor .booth {
  transition: opacity .35s, fill .35s;
}

/* Default: all overlays hidden */
.stand-hero-floor__overlay {
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
/* Show overlay matching the active role on the .stand wrapper */
.stand[data-role="arrangoer"] .stand-hero-floor__overlay--arrangoer,
.stand[data-role="udstiller"] .stand-hero-floor__overlay--udstiller,
.stand[data-role="besoegende"] .stand-hero-floor__overlay--besoegende {
  opacity: 1;
}

/* Role-specific dim/highlight on booths */
.stand[data-role="udstiller"] .stand-hero-floor .booth--your {
  fill: var(--accent);
  opacity: 1;
}
.stand[data-role="udstiller"] .stand-hero-floor .booth:not(.booth--your) {
  opacity: 0.55;
}
.stand[data-role="besoegende"] .stand-hero-floor .booth--target {
  fill: var(--accent);
  opacity: 1;
}

/* ============================================================
   HERO PARTIAL: PROGRAM (mini-timeline)
   ============================================================ */
.stand-hero-program {
  width: min(100%, 760px);
  background: rgb(255, 255, 255);
  border-radius: 24px;
  box-shadow:
    0 1px 0 rgba(49, 79, 89, 0.04),
    0 30px 60px -20px rgba(49, 79, 89, 0.25);
  padding: 22px 24px 24px;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .stand-hero-program { background: var(--surface); }

.stand-hero-program__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.stand-hero-program__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  letter-spacing: -0.015em;
}
.stand-hero-program__day {
  display: inline-flex;
  gap: 4px;
  background: var(--cream);
  border-radius: 999px;
  padding: 3px;
  font-size: 11px;
  font-weight: 600;
}
.stand-hero-program__day span {
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--brand-30);
}
.stand-hero-program__day span.is-active {
  background: rgb(255, 255, 255);
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.stand-hero-program__grid {
  display: grid;
  grid-template-columns: 56px 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.stand-hero-program__times {
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line);
  padding-top: 8px;
}
.stand-hero-program__times span {
  height: 56px;
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  padding: 4px 8px 0;
  border-top: 1px dashed transparent;
}
.stand-hero-program__times span + span { border-top-color: var(--line); }
.stand-hero-program__col {
  border-right: 1px solid var(--line);
  padding: 8px 6px 0;
  position: relative;
  min-height: 224px;
}
.stand-hero-program__col:last-child { border-right: 0; }
.stand-hero-program__col-head {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-30);
  padding: 0 4px 6px;
}
.stand-hero-program__event {
  position: absolute;
  left: 6px; right: 6px;
  border-radius: 8px;
  padding: 6px 8px;
  background: rgba(127, 190, 198, 0.18);
  border-left: 3px solid var(--primary);
  font-size: 11px;
  color: var(--primary);
  line-height: 1.25;
  transition: background .3s, border-color .3s, transform .15s, box-shadow .25s;
}
.stand-hero-program__event b {
  display: block;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: -0.005em;
}
.stand-hero-program__event small { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; font-weight: 600; }
.stand-hero-program__event.is-mine {
  background: rgba(184, 90, 58, 0.16);
  border-left-color: var(--accent);
  color: var(--accent);
}
.stand-hero-program__event.is-mine b { color: var(--accent); }

/* Role-specific overlay panels (badges) */
.stand-hero-program__overlay {
  position: absolute;
  top: 14px; right: 14px;
  background: rgb(29, 35, 39);
  color: rgb(255, 255, 255);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .35s, transform .35s;
}
.stand-hero-program__overlay strong {
  display: block;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.stand[data-role="arrangoer"] .stand-hero-program__overlay--arrangoer,
.stand[data-role="udstiller"] .stand-hero-program__overlay--udstiller,
.stand[data-role="besoegende"] .stand-hero-program__overlay--besoegende {
  opacity: 1;
  transform: translateY(0);
}
.stand-hero-program__overlay--arrangoer,
.stand-hero-program__overlay--udstiller,
.stand-hero-program__overlay--besoegende { display: none; }
.stand[data-role="arrangoer"] .stand-hero-program__overlay--arrangoer,
.stand[data-role="udstiller"] .stand-hero-program__overlay--udstiller,
.stand[data-role="besoegende"] .stand-hero-program__overlay--besoegende { display: block; }

/* Role-specific event highlights */
.stand[data-role="udstiller"] .stand-hero-program__event:not(.is-mine) { opacity: 0.55; }
.stand[data-role="besoegende"] .stand-hero-program__event.is-favorited {
  background: rgba(184, 90, 58, 0.16);
  border-left-color: var(--accent);
  color: var(--accent);
}
.stand[data-role="besoegende"] .stand-hero-program__event.is-favorited b { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .role-switcher {
    padding: 5px 6px 5px 10px;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .role-switcher::part(form-control-label) {
    width: 100%;
    text-align: center;
    margin: 0 0 4px;
    font-size: 11px;
  }
  .role-switcher__chip {
    padding: 6px 10px 6px 9px;
    font-size: 12px;
    gap: 6px;
  }
  .role-switcher__chip::part(control) { width: 12px; height: 12px; }
  .stand-hero { padding: 18px 16px 40px; min-height: 540px; }
  .stand-intro { padding: 40px 0 16px; }
  .stand-features { padding: 40px 0 56px; }
  .stand-feature { flex: 1 1 100%; }
}
