/* plan page styles (loaded after main.css) */

/* Annual plan — three doors on the same threshold */
.pl-page:has(.pl-doors), .pg-sp .pl-switch, .pg-sp .pg-head, .sp-dir {
  font-family: var(--display);
}

.pl-head {
  display: grid;
  align-items: end;
  gap: 16px;
  padding: 30px 0 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
}

.pl-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font: 600 16px/1 var(--serif);
  letter-spacing: .12em;
}

.pl-title h1 {
  font-size: clamp(45px, 7vw, 92px);
  line-height: 1.1;
}

.pl-title h1 em { color: var(--gold); }

.pl-head .pl-lead {
  max-width: 34ch;
  margin: 0;
  color: #e4ccc7;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.65;
}

.pl-nextbar {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "brand label" "brand event" "clock clock";
  gap: 5px 12px;
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 16px;
}

.pl-nb-k {
  grid-area: label;
  padding: 0;
  border: 0;
  font-weight: 700;
}

.pl-nextbar.skin .pl-nb-k { color: color-mix(in srgb, var(--acc, var(--gold)) 70%, #fff); }
.pl-nextbar .skin-layer { opacity: .36; }
.pl-nb-brand { grid-area: brand; width: 58px; height: 40px; object-fit: contain; }
.pl-nb-t { grid-area: event; }
.pl-nb-t strong { font-size: 18px; line-height: 1.35; }
.pl-nb-t small { color: #e4ccc7; font-size: 13px; }
.pl-nextbar:not(:has(.pl-nb-brand)) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "label" "event" "clock"; }
.pl-nb-clock { grid-area: clock; gap: 6px; margin-top: 4px; }
.pl-nb-clock div { min-width: 0; flex: 1; border-radius: 8px; }
.pl-nb-clock b { font-size: 24px; }

.pl-doors {
  gap: 18px;
  margin-top: 20px;
}

.pl-door.lg {
  min-width: 0;
  padding: 14px 15px 16px;
  gap: 12px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--c) 21%, #322127);
  background: linear-gradient(155deg, color-mix(in srgb, var(--c) 10%, #190e12), #10090c 58%, #190d11);
  box-shadow: inset 0 1px 0 #ffffff14, 0 26px 45px -28px #000c;
}

.pl-door.lg::before {
  background: radial-gradient(260px 180px at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 13%, transparent), transparent);
}

.pl-door.lg::after {
  inset: auto 22px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 66%, transparent), transparent);
}

.pl-door.lg:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--c) 48%, #322127);
}

.pl-door-art {
  position: relative;
  inset: auto;
  isolation: isolate;
  width: 100%;
  height: clamp(108px, 11vw, 138px);
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--c) 24%, transparent), transparent 69%),
    repeating-linear-gradient(90deg, #ffffff08 0 1px, transparent 1px 36px),
    linear-gradient(180deg, color-mix(in srgb, var(--c) 7%, #190e12), #10090c);
  box-shadow: inset 0 0 0 1px #ffffff12, inset 0 -1px 0 color-mix(in srgb, var(--c) 40%, transparent);
}

.pl-door-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10% calc(50% - clamp(64px, 7.5vw, 102px)) -15%;
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  border-radius: 50% 50% 0 0 / 44% 44% 0 0;
  background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--c) 17%, #180e13), #10090c 70%);
  box-shadow: 0 0 0 5px #09050770, 0 0 0 6px color-mix(in srgb, var(--c) 16%, transparent);
}

.pl-door-art::after {
  content: "";
  position: absolute;
  inset: auto 12% 13px;
  height: 1px;
  z-index: -2;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 45%, transparent), transparent);
}

.pl-door-art svg {
  width: clamp(86px, 8vw, 112px);
  height: auto;
  margin-top: 4px;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 33%, transparent));
}

.pl-door-heading { flex: 1 0 auto; padding-inline: 3px; }
.pl-door-when {
  gap: 7px;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: 13px;
}

.pl-door-when i { width: 6px; height: 6px; box-shadow: 0 0 10px var(--c); }
.pl-door h2 { margin: 4px 0 0; line-height: 1.16; font-size: clamp(28px, 2.45vw, 36px); text-wrap: pretty; }
.pl-door-en { display: block; margin-top: 2px; line-height: 1.3; font-size: 18px; text-align: right; }
.pl-door-marks { margin: 0; }

.pl-door-tile {
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  height: clamp(60px, 4.9vw, 68px);
  padding: 7px 10px;
  border-radius: 8px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--mark) 7%, #21151a), #1a1116);
  box-shadow: inset 0 0 0 1px #ffffff14;
}

.pl-door-tile .pl-door-logo { width: 100%; height: 100%; max-height: 62px; object-fit: contain; }
.pl-door-logo[hidden], .pl-door-wordmark[hidden] { display: none; }
.pl-door-wordmark { font: 900 25px/1 'Thmanyah Display', var(--display); color: color-mix(in srgb, var(--mark) 65%, #fff); }

.pl-door-go {
  margin: 0;
  padding: 10px 3px 0;
  color: #dec4c1;
  border-top-color: #ffffff20;
  font-size: 14px;
}

.pl-door-go em { display: inline-flex; align-items: baseline; gap: 5px; }
.pl-door-go b { margin: 0; font-size: 24px; line-height: 1; }
.pl-door-go > span, .lg:hover .pl-door-go > span { gap: 7px; }
.pl-door-go > span {
  min-height: 44px;
  padding: 7px 12px;
  border-radius: 8px;
  color: color-mix(in srgb, var(--c) 40%, #fff);
  background: color-mix(in srgb, var(--c) 13%, #211018);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent);
}

.pl-door-go svg { transition: translate .2s var(--ease); }
.pl-door:hover .pl-door-go svg { translate: -3px; }

/* Surgical floor — an illuminated directory and matching room signs */
.pg-sp .pl-page .pl-switch a, .sp-nav a { min-height: 44px; }

.pg-sp .pl-page .pg-head {
  --c: var(--pg);
  grid-template-columns: auto minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  padding-block: 26px 22px;
}

.pg-sp .pg-head .pg-emb {
  display: grid;
  place-items: center;
  width: clamp(58px, 11vw, 134px);
  aspect-ratio: 1;
  border-radius: 22%;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--c) 22%, #20131b), #140b10 85%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent), 0 16px 37px -16px #000;
}

.pg-sp .pg-head .pg-emb svg { width: 71%; filter: none; }
.pg-sp .pg-head .pg-when { margin-bottom: 4px; font-size: 13px; }
.pg-sp .pg-head .pg-when i { width: 6px; height: 6px; background: var(--c); }
.pg-sp .pg-head h1 { font-size: clamp(29px, 5.3vw, 74px); line-height: 1.12; text-wrap: pretty; }
.pg-sp .pg-head .pg-en { margin-top: 3px; font-size: clamp(17px, 2vw, 26px); line-height: 1.25; }
.pg-sp .pg-head .pg-lead { margin-top: 8px; font-size: clamp(15px, 1.35vw, 19px); line-height: 1.65; color: #e1cbc7; }
.pl-page:has(.sp-dir) .pg-head .pg-lead { display: none; }
.sp-head-copy .sp-treats { margin-top: 12px; }

.sp-dir {
  padding: 0;
  border: 1px solid #6a4c4f;
  border-radius: 17px;
  background: #140e13;
  box-shadow: inset 0 1px 0 #ffffff18, 0 32px 65px -38px #000;
  backdrop-filter: none;
}

.sp-dir-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
  padding: 16px;
  border-radius: 16px 16px 0 0;
  border-bottom-color: #ffffff24;
  background: radial-gradient(ellipse at 100% 0%, #352027, transparent 83%), #21151b;
}

.sp-dir-floor {
  display: block;
  width: fit-content;
  padding: 0;
  color: var(--gold);
  box-shadow: none;
  font: 500 11px/1.2 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.sp-dir-head h2 {
  margin: 5px 0 3px;
  font: 900 clamp(25px, 2.8vw, 38px)/1.18 'Thmanyah Display', var(--display);
}

.sp-dir-head p { margin: 0; color: #e4ccc7; font-size: 14px; line-height: 1.6; font-weight: 400; }
.sp-dir-count { flex: none; display: inline-flex; align-items: baseline; gap: 5px; color: var(--gold); font-size: 12px; }
.sp-dir-count b { font: 700 21px/1 var(--serif); }

.sp-dir-list > li + li { border-top-color: #ffffff20; }
.sp-dir-list > li:last-child .sp-row { border-radius: 0 0 16px 16px; }

.sp-row {
  --row-ink: color-mix(in srgb, var(--c) 57%, #fff);
  grid-template-columns: 24px 46px minmax(0, 1fr) 44px;
  grid-template-areas: "no ico name go" "focus focus focus focus" "marks marks marks marks";
  gap: 10px;
  padding: 14px 12px 13px;
  border-radius: 0;
  transition: none;
}

.sp-row::before {
  inset-block: 0;
  width: 2px;
  border-radius: 0;
  background: linear-gradient(transparent, var(--c) 25%, var(--c) 75%, transparent);
  box-shadow: none;
}

.sp-row::after {
  background: radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--c) 15%, transparent), transparent 68%);
  opacity: .65;
}

.sp-row:hover, .sp-row:focus-visible { transform: none; }
.sp-row:hover::before { inset-block: 0; }
.sp-row-no { grid-area: no; color: var(--row-ink); font-size: 12px; opacity: 1; }

.sp-row-ico {
  grid-area: ico;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 10px;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--c) 23%, #21141c), #140e13 90%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 42%, transparent), inset 0 2px 0 color-mix(in srgb, var(--c) 14%, transparent);
}

.sp-row-ico svg { width: 69%; height: auto; }
.sp-row:hover .sp-row-ico, .sp-row:hover .sp-row-logo { transform: none; }
.sp-row-name { grid-area: name; }
.sp-row-name b { font-size: clamp(19px, 2.04vw, 29px); line-height: 1.16; }
.sp-row-name small { color: var(--row-ink); line-height: 1.2; font-size: 15px; }
.sp-row-focus { grid-area: focus; display: grid; gap: 7px; color: #e9d8d5; font-size: 14px; line-height: 1.55; }

.sp-treats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sp-treats > * {
  padding: 2px 7px;
  border: 1px solid color-mix(in srgb, var(--c) 28%, #33232a);
  border-radius: 5px;
  color: color-mix(in srgb, var(--c) 38%, #fff);
  background: color-mix(in srgb, var(--c) 9%, #1b1119);
  font-size: 12px;
  line-height: 1.45;
}

.sp-row-marks {
  grid-area: marks;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
  gap: 6px;
  padding: 0;
}

.sp-row-marks > span {
  width: auto;
  max-width: none;
  padding: 4px 7px 3px;
  border-radius: 6px;
  background: #ffffff07;
  box-shadow: inset 0 0 0 1px #ffffff13;
}

.sp-row-logo { width: 100%; height: 35px; filter: none; }
.sp-row-marks small { color: #d8c3c1; font-size: 11px; text-align: center; line-height: 1.2; }
.sp-row-go { grid-area: go; width: 44px; height: 44px; box-shadow: none; color: var(--row-ink); }
.sp-row:hover .sp-row-go { transform: none; background: color-mix(in srgb, var(--c) 17%, #1b1217); color: var(--row-ink); }

.pl-door.lg:focus-visible, .sp-row:focus-visible, .sp-nav a:focus-visible, .pg-sp .pl-switch a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.sp-row:focus-visible, .pg-sp .pl-switch a:focus-visible { outline-offset: -3px; }

.sp-nav {
  position: relative;
  z-index: 1;
  width: 100%;
  gap: 7px;
  margin-top: 4px;
}

.sp-nav a { padding: 8px 12px; font-size: 14px; }
.sp-nav a svg { flex: none; }

@media (min-width: 760px) {
  .pl-head { grid-template-columns: minmax(0, 1fr) minmax(0, 31%); gap: 32px; padding-top: 37px; }
  .pl-head .pl-lead { padding-inline-start: 18px; border-inline-start: 1px solid color-mix(in srgb, var(--gold) 52%, transparent); }
  .pl-nextbar { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "label brand event clock"; }
  .pl-nextbar:not(:has(.pl-nb-brand)) { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "label event clock"; }
  .pl-nb-k { padding-inline-end: 14px; border-inline-end: 1px solid #ffffff24; }
  .pl-nb-clock { margin-top: 0; }
  .pl-nb-clock div { min-width: 49px; }
  .pg-sp .pl-page .pg-head { gap: 25px; padding-block: 30px 26px; }
  .sp-dir-head { padding: 19px 25px; }
  .sp-dir-head p { font-size: 16px; }
  .sp-dir-count { font-size: 14px; }
  .sp-row {
    grid-template-columns: 32px 58px minmax(0, 1fr) clamp(190px, 26vw, 270px) 44px;
    grid-template-areas: "no ico name marks go" "no ico focus marks go";
    row-gap: 5px;
    padding: 15px 15px 15px 12px;
  }
  .sp-row-logo { height: 43px; }
}

@media (min-width: 981px) {
  .pl-doors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pl-door.lg { padding: 15px 16px 17px; }
}

@media (min-width: 1120px) {
  .sp-row {
    grid-template-columns: 40px 67px minmax(175px, .88fr) minmax(275px, 1.26fr) minmax(200px, .97fr) 44px;
    grid-template-areas: "no ico name focus marks go";
    gap: 14px;
    padding: 14px 19px 14px 16px;
  }
  .sp-row-focus { padding-inline-start: 12px; border-inline-start: 1px solid #ffffff1c; }
}

@media (max-width: 759px) {
  .pg-sp .pl-switch { width: 100%; padding: 4px; border-radius: 14px; }
  .pg-sp .pl-sw-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 10px; }
  .pg-sp .pl-switch a {
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 5px 2px;
    border-radius: 9px !important;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
  }
  .pg-sp .pl-switch a svg { width: 19px; height: 19px; }
  .pg-sp .pl-switch .pl-back { padding-inline: 2px !important; }
  .pg-sp .pl-back span { display: block; }
  .pg-sp .pg-head .pg-emb { align-self: start; }
}

@media (max-width: 500px) {
  .pl-door.lg {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    grid-template-areas: "heading art" "marks marks" "action action";
    align-items: center;
  }

  .pl-door-heading { grid-area: heading; padding: 0; }
  .pl-door h2 { font-size: 25px; }
  .pl-door-en { font-size: 16px; }
  .pl-door-art { grid-area: art; height: 100px; border-radius: 10px; }
  .pl-door-art::before { inset-inline: 9px; }
  .pl-door-art svg { width: 76px; }
  .pl-door-marks { grid-area: marks; }
  .pl-door-go { grid-area: action; padding-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.pl-doors) .pl-aurora::before, .pg-sp .pl-aurora::before { animation: none; }
  .pl-door.lg, .pl-door-art, .pl-door-go svg, .sp-row::before, .sp-row::after, .sp-row-ico, .sp-row-go, .sp-nav a { transition: none; }
  .pl-door.lg:hover, .sp-nav a:hover { transform: none; }
  .pl-door:hover .pl-door-go svg { translate: none; }
}

/* Community programme — exhibition hall */
.pg-cm .pl-aurora {
  background:
    radial-gradient(ellipse at 88% 0%, #36101a, transparent 57%),
    radial-gradient(ellipse at 14% 60%, color-mix(in srgb, var(--pg) 12%, #1c1014), transparent 63%),
    var(--bg);
}

.pg-cm .pl-aurora i, .pg-cm .pl-aurora::before, .pg-cm .pl-aurora::after { display: none; }
.pg-cm .pl-page { padding-bottom: 0; }

.pg-cm .pl-switch a, .cm-gallery a, .cm-gallery button { min-height: 44px; }
.pg-cm .pl-switch a:focus-visible, .cm-gallery :focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }

.cm-gallery {
  --hall-line: #493039;
  --hall-muted: #d0b9b5;
  font-family: 'Thmanyah', var(--body);
}

.cm-mast {
  display: grid;
  gap: 9px;
  align-items: end;
  padding-block: clamp(21px, 3vw, 39px) clamp(16px, 1.8vw, 24px);
}

.cm-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.cm-kicker::before { content: ''; width: 22px; height: 1px; background: currentColor; }

.cm-mast h1 {
  margin: 0;
  font: 900 clamp(35px, 5.3vw, 76px)/1.09 'Thmanyah Display', var(--display);
  text-wrap: balance;
}

.cm-mast h1 span { display: inline-block; color: var(--gold); }

.cm-mast-en {
  margin: 0;
  color: #ebd3c8;
  font: italic 600 clamp(18px, 1.8vw, 25px)/1.1 var(--serif);
  text-align: right;
}

.cm-wings {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--hall-line);
  border-radius: 12px 12px 0 0;
  background: #170c10;
}

.cm-wings button {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  min-width: 0;
  gap: 3px;
  padding: 7px 4px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--hall-muted);
  text-align: center;
}

.cm-wings button + button { border-inline-start: 1px solid var(--hall-line); }
.cm-wings button:first-child { border-start-start-radius: 11px; }
.cm-wings button:last-child { border-start-end-radius: 11px; }
.cm-wings button:hover, .cm-wings button[aria-selected="true"] { color: var(--text); }
.cm-wings button[aria-selected="true"] {
  background: linear-gradient(0deg, color-mix(in srgb, var(--c) 17%, #26161b), #221217);
  box-shadow: inset 0 -2px 0 var(--c);
}

.cm-wing-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
}

.cm-wing-icon svg { width: 26px; height: 26px; }
.cm-wings strong { display: block; font-size: clamp(13px, 1.75vw, 23px); line-height: 1.2; }
.cm-wings small { display: none; }

.cm-wing {
  display: grid;
  min-width: 0;
  border: 1px solid var(--hall-line);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: #150b0e;
  box-shadow: 0 30px 65px -36px #000;
}

.cm-directory {
  min-width: 0;
  padding: 12px 13px 13px;
  background: linear-gradient(155deg, color-mix(in srgb, var(--wing) 8%, #241319), #190e13 69%);
  border-block-end: 1px solid var(--hall-line);
}

.cm-directory h2 { margin: 0 0 4px; color: var(--gold); font: 700 14px/1.4 'Thmanyah', var(--body); }
.cm-index { display: grid; }

.cm-index button {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 9px;
  padding: 6px 9px;
  border: 0;
  border-block-end: 1px solid #4a3137;
  border-radius: 0;
  color: var(--hall-muted);
  background: transparent;
  text-align: start;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.cm-index button:last-child { border-block-end-color: transparent; }
.cm-index button:focus-visible { border-radius: 4px; }
.cm-index button[aria-selected="true"] {
  color: var(--text);
  background: linear-gradient(to left, color-mix(in srgb, var(--c) 16%, #24151a), transparent);
  box-shadow: inset -2px 0 0 var(--c);
}

.cm-index button:hover { color: var(--text); }
.cm-index bdi { text-align: right; }
.cm-index i { width: 6px; height: 6px; border: 1px solid var(--c); transform: rotate(45deg); }
.cm-index svg { visibility: hidden; width: 15px; height: 15px; color: var(--c); }
.cm-index button[aria-selected="true"] i { background: var(--c); box-shadow: 0 0 10px var(--c); }
.cm-index button[aria-selected="true"] svg { visibility: visible; }

.cm-exhibit { display: grid; min-width: 0; }
.cm-exhibit:focus-visible { position: relative; z-index: 1; border-radius: 0 0 12px 12px; }

.cm-stage {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  min-height: 198px;
  overflow: hidden;
  padding: 24px 26px 32px;
  border-block-end: 1px solid var(--hall-line);
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--c) 30%, #57313e), transparent 67%),
    linear-gradient(180deg, #201014, #2a161b 80%, #160b0d 80%);
}

/* The light cone and the converging seams define the display wall and floor. */
.cm-stage::before, .cm-stage::after { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.cm-stage::before {
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 28%, #f3d6ac) -38%, transparent 82%);
  clip-path: polygon(46% 0, 54% 0, 94% 86%, 6% 86%);
  opacity: .65;
}

.cm-stage::after {
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--c) 40%, #f3d5a9) 1%, transparent 48%) center top / 95% 9% no-repeat,
    radial-gradient(ellipse at 50% 84%, color-mix(in srgb, var(--c) 22%, transparent), transparent 47%),
    repeating-conic-gradient(from 90deg at 50% -16%, #f3d6ad22 0deg .35deg, transparent .35deg 17deg) center bottom / 100% 20% no-repeat;
}

.cm-stage-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 426px);
  min-height: 132px;
  padding: clamp(12px, 2.2vw, 28px);
  border: 1px solid color-mix(in srgb, var(--c) 56%, #7f5c49);
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--c) 19%, #22151a), #120a0e 82%);
  box-shadow: 0 0 0 5px #0c050864, 0 17px 28px -14px #000, inset 0 0 0 4px #ffffff09;
}

.cm-stage-frame::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid color-mix(in srgb, var(--c) 62%, #ffe8c5);
  clip-path: polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, 0 15px, 15px 15px, 15px 0, calc(100% - 15px) 0, calc(100% - 15px) 15px, 100% 15px, 100% calc(100% - 15px), calc(100% - 15px) calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 15px calc(100% - 15px), 0 calc(100% - 15px), 0 15px);
  pointer-events: none;
}

.cm-stage-logo { width: 100%; max-height: 123px; object-fit: contain; filter: drop-shadow(0 8px 16px #000a); }

.cm-caption { min-width: 0; padding: 19px 15px 23px; overflow-wrap: anywhere; }
.cm-caption .pl-chips { gap: 5px; }
.cm-caption .pl-chip, .cm-caption .tag { padding: 4px 9px; font-size: 12px; }
.cm-caption .cm-pending { background: #2d1b22; box-shadow: inset 0 0 0 1px #533940; color: var(--hall-muted); }
.cm-caption .it-title { margin-top: 9px; font-size: clamp(35px, 4vw, 59px); }
.cm-subtitle { margin: 2px 0 0; color: var(--text); font-size: clamp(17px, 1.4vw, 21px); font-weight: 700; line-height: 1.4; }
.cm-caption .pl-en { margin-top: 3px; font-size: clamp(16px, 1.5vw, 22px); direction: ltr; text-align: right; line-height: 1.18; }
.cm-caption .pl-sum { margin-top: 12px; font-size: 16px; line-height: 1.65; }
.cm-caption .pl-dl { gap: 10px; margin-top: 13px; }
.cm-caption .pl-dl > div { gap: 3px; padding-top: 8px; }
.cm-caption .pl-dl dd, .cm-caption .pl-note, .cm-caption .pl-act .muted, .cm-caption .pl-inv small { color: var(--hall-muted); }
.cm-caption .pl-dl dd { font-size: 15px; line-height: 1.6; }
.cm-caption .pl-note { margin-top: 8px; padding-inline-start: 9px; border-inline-start: 1px solid var(--gold); font-size: 13px; }
.cm-caption .pl-act { margin-top: 13px; gap: 3px 12px; font-size: 14px; }
.cm-caption .pl-act:empty { display: none; }
.cm-caption .pl-act a:not(.btn) { display: inline-flex; align-items: center; }
.cm-caption .pl-when-full svg { flex: none; }
.cm-caption .pl-inv { margin-top: 13px; border-radius: 6px; padding: 8px 10px; }
.cm-caption .ap-btns { margin-top: 9px; }

@media (max-width: 759px) {
  .pg-cm .pl-switch { width: 100%; margin-top: 11px; padding: 4px; border-radius: 12px; }
  .pg-cm .pl-sw-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 8px; }
  .pg-cm .pl-switch a {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 4px 2px !important;
    border-radius: 8px !important;
    font-size: 11px;
    text-align: center;
    line-height: 1.2;
  }
  .pg-cm .pl-switch a svg { width: 17px; height: 17px; }
  .pg-cm .pl-back span { display: block; }
  .cm-directory { padding: 10px 8px 8px; }
  .cm-directory h2 { margin-inline: 5px; }
  .cm-index { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
  .cm-index button {
    grid-template: 6px auto / 1fr;
    justify-items: center;
    gap: 4px;
    min-width: 0;
    padding: 4px 2px 6px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: clamp(11px, 3.45vw, 15px);
  }
  .cm-index button[aria-selected="true"] {
    border-color: color-mix(in srgb, var(--c) 52%, #402932);
    background: color-mix(in srgb, var(--c) 13%, #24151a);
    box-shadow: inset 0 -2px 0 var(--c);
  }
  .cm-index bdi { text-align: center; }
  .cm-index svg { display: none; }
}

@media (min-width: 760px) {
  .cm-mast { grid-template-columns: minmax(0, 1fr) auto; }
  .cm-mast-en { padding: 0 15px 3px 0; border-right: 1px solid var(--gold-2); }
  .cm-wings button { grid-template-columns: auto minmax(0, 1fr); gap: 13px; justify-items: start; padding: 11px 18px; text-align: start; }
  .cm-wing-icon { width: 43px; height: 43px; border: 1px solid color-mix(in srgb, var(--c) 52%, #543f48); border-radius: 5px; }
  .cm-wings small { display: block; margin-top: 3px; color: color-mix(in srgb, var(--c) 28%, #f4e0dc); font: 600 16px/1 var(--serif); }
  .cm-wing { grid-template-columns: minmax(160px, .63fr) minmax(0, 2.7fr); }
  .cm-directory { padding: 21px 13px; border-block-end: 0; border-inline-end: 1px solid var(--hall-line); border-end-start-radius: 13px; }
  .cm-directory h2 { margin: 0 9px 10px; }
  .cm-index button { min-height: 51px; font-size: 16px; }
  .cm-stage { min-height: 235px; }
  .cm-stage-frame { min-height: 164px; }
  .cm-caption { padding: 23px 24px 25px; }
}

@media (min-width: 1080px) {
  .cm-exhibit { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); grid-template-areas: 'caption stage'; min-height: 390px; }
  .cm-caption { grid-area: caption; align-self: center; padding: clamp(20px, 2vw, 31px); }
  .cm-stage { grid-area: stage; min-height: 0; border-block-end: 0; border-inline-start: 1px solid var(--hall-line); border-end-end-radius: 13px; }
  .cm-stage-frame { min-height: 196px; }
  .cm-stage-logo { max-height: 174px; }
}

.lite.pg-cm .cm-gallery *, .lite.pg-cm .pl-switch a { transition: none; }
.lite.pg-cm .cm-caption .pl-inv:hover, .lite.pg-cm .cm-caption .pl-inv:hover > svg:last-child, .lite.pg-cm .cm-caption .btn:hover { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .pg-cm .cm-gallery *, .pg-cm .pl-switch a { transition: none; }
  .cm-caption .pl-inv:hover, .cm-caption .pl-inv:hover > svg:last-child, .cm-caption .btn:hover { transform: none; }
}

/* topic lists inside initiative details (English topic names, LTR) */
.pl-dl dd .pl-topics { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 4px; text-align: left; }
.pl-dl dd .pl-topics li { position: relative; padding-left: 16px; font-size: 15.5px; line-height: 1.6; color: color-mix(in srgb, var(--c) 18%, var(--ink, #f4ede2)); }
.pl-dl dd .pl-topics li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
