.en-stage, .en-cast, .en-props, .en-examples { display: grid; gap: 24px; }
.en-stage { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: center; }
.en-cast, .en-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.en-props { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.en-stage-image { position: relative; }
.en-stage-image img, .en-props img, .en-cast img { display: block; width: 100%; height: auto; }
.en-cast img { aspect-ratio: 16 / 9; object-fit: contain; }
.en-pin { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; font: bold .9rem/1 system-ui; color: white; background: #1b3240; border: 2px solid white; box-shadow: 0 1px 5px #0009; }
.en-guide { left: 7%; top: 38%; } .en-prop { left: 51%; top: 43%; } .en-guest { left: 87%; top: 94%; }
.en-key { display: flex; flex-wrap: wrap; gap: .4em 1.5em; padding: 0; list-style-position: inside; }
.en-key li::marker { font-weight: 700; }
.en-backstage h3, .en-source h3, .en-cast h3 { font: normal clamp(1.45rem, 2.5vw, 2rem)/1.1 Georgia, serif; color: var(--xi-ink, #171717); margin: .7rem 0; }
.en-props strong { display: block; color: var(--xi-ink, #171717); font: normal 1.45rem/1.2 Georgia, serif; margin-bottom: .4rem; }
.en-props figcaption, .en-cast figcaption { font-size: 1rem; line-height: 1.5; }
.en-try, .en-source { margin: 1.5rem 0; padding: 1rem 1.35rem; background: #f4f4ef; color: #202320; border: 1px solid #d0d0c8; }
.en-try { min-width: 0; }
.en-try legend { font: normal 1.45rem Georgia, serif; padding-inline: .3em; }
.en-options { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.en-options label { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; padding: .4rem 0; }
.en-options input { accent-color: #253c33; }
.en-try output { display: block; margin-top: .75rem; font-weight: 600; }
.en-answers { margin: 1.2rem 0; }
.en-answers > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.3rem; border-bottom: 1px solid var(--xi-line, #ccc); padding: 1rem 0; }
.en-answers dt { font: normal 1.35rem/1.25 Georgia, serif; }
.en-answers dd { margin: 0; line-height: 1.55; }
.en-source blockquote { margin: 1rem 0; font: normal 1.55rem/1.3 Georgia, serif; }
.en-details { border-block: 1px solid var(--xi-line, #ccc); padding-block: 1rem; }
.en-details summary { cursor: pointer; font-weight: 650; }
.en-examples { list-style: none; padding: 0; }
.en-examples li { border-top: 1px solid var(--xi-line, #ccc); padding-top: .8rem; }
.en-examples a, .en-examples span { display: block; }
.en-examples a, .en-examples .en-example-label { font: normal 1.4rem/1.35 Georgia, serif; margin-bottom: .35rem; }
@media (max-width: 760px) {
  .en-stage, .en-cast, .en-props, .en-answers > div, .en-examples { grid-template-columns: 1fr; gap: .75rem; }
  .en-stage figure, .en-props figure, .en-cast figure { margin-block: .8rem; }
}

/* Let the sections own the full viewport width while their content shares one measure. */
.enactor-page {
  --content-width: min(90%, 1024px);
  --section-gutter: max(5%, calc((100% - 1024px) / 2));
}
.enactor-page .wrap { width: var(--content-width); }
.enactor-page .en-band-stack > .case-body { max-width: none; padding: 0; }
.enactor-page .case-body > section {
  padding-inline: var(--section-gutter);
  background: var(--section-bg, #fff);
  color: var(--section-ink, #202020);
  border-top: 0;
}
.en-band-gray { --section-bg: #f1f1ef; }
.en-band-dark, .en-band-charcoal {
  --section-bg: #141414;
  --section-ink: #fafafa;
  --xi-ink: #fafafa;
  --xi-muted: #dedede;
  --xi-link: #c1ddff;
}
.en-band-charcoal { --section-bg: #292929; }
.enactor-page .case-opening, .enactor-page .invitation {
  background: var(--section-bg);
  color: var(--section-ink);
}
.enactor-page :is(.en-band-dark,.en-band-charcoal) :is(figcaption,h3) { color: #f4f4f4; }
.enactor-page #cast a { color: #c1ddff; }
.enactor-page :is(.en-band-dark,.en-band-charcoal) :focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.enactor-page .method {
  background: #000;
  color: #fafafa;
  border-top: 1px solid #454545;
}
.enactor-page .method :is(dt,.editorial-label) { color: #dedede; }
.enactor-page .method .editorial-rows > div { border-color: #454545; }
.enactor-page .method a { color: #c1ddff; }
.enactor-page .method :focus-visible { outline-color: #fff; box-shadow: none; }
.enactor-page .invitation .pill { color: #141414; background: #fff; }
.enactor-page .invitation .pill:hover { background: #e4e4e4; }
.enactor-page .invitation :is(.pilot-about,.pilot-address a) { color: #eee; }

/* The closing invitation groups the address and its action. */
.enactor-page .en-pilot { padding-block: clamp(48px, 7vw, 100px); }
.en-pilot-layout {
  max-width: 44rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.enactor-page .en-pilot h2 { max-width: 24ch; margin: 0; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.1; }
.en-pilot-content > p { max-width: 50ch; margin: 0; color: #e0e0e0; }
.en-pilot-contact {
  margin-top: 24px;
  padding: 16px;
  background: #212121;
  border: 1px solid #454545;
  border-radius: 16px;
}
.en-pilot-contact-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.en-pilot-email { min-width: 0; color: #fafafa; font-size: 1rem; }
.en-pilot-label { display: block; margin-bottom: 3px; color: #c7c7c7; font-size: .875rem; }
.enactor-page .en-pilot-contact .pill { min-height: 44px; padding: 10px 17px; font-size: .9375rem; white-space: nowrap; }
.en-pilot-contact [role="status"] { margin: 10px 0 0; color: #e0e0e0; font-size: .9375rem; }
.en-pilot-contact [role="status"]:empty { margin: 0; }
.en-pilot-details {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 6px;
  color: #d1d1d1;
  font-size: .9375rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.en-pilot-details:hover { color: #fff; }
@media (max-width: 450px) {
  .en-pilot-contact-row { align-items: stretch; flex-direction: column; }
  .en-pilot-contact .pill { justify-content: center; text-align: center; }
}

.enactor-page #method .en-method-question { margin: 0 0 8px; font-weight: 650; color: #fff; }

/* Expert examples are complete cards, not just a row of linked headings. */
.enactor-page #expert-examples .en-examples {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: none;
  gap: clamp(12px, 1.65vw, 22px);
  align-items: stretch;
  margin: 24px 0 0;
}
.enactor-page #expert-examples .en-examples > li { display: flex; min-width: 0; border: 0; padding: 0; margin: 0; }
.enactor-page #expert-examples .en-example-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  gap: 10px;
  margin: 0;
  padding: clamp(12px, 1.4vw, 18px);
  border: 1px solid #d6d6da;
  border-radius: 15px;
  background: #fff;
  color: var(--study-ink);
  font: inherit;
  text-decoration: none;
}
.enactor-page #expert-examples .en-example-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: contain;
  background: #f4f6f8;
  border-radius: 9px;
}
.enactor-page #expert-examples .en-example-card strong { display: block; font: 700 1.125rem/1.24 var(--study-font); letter-spacing: -.02em; }
.enactor-page #expert-examples a.en-example-card strong { color: #064c9a; text-decoration: underline; text-underline-offset: .17em; }
.enactor-page #expert-examples .en-example-card p { margin: 0; font-size: 1rem; line-height: 1.45; overflow-wrap: anywhere; }
.enactor-page #expert-examples a.en-example-card:hover { border-color: #064c9a; }
.enactor-page #expert-examples a.en-example-card:focus-visible { outline: 3px solid #064c9a; outline-offset: 3px; }
@media (max-width: 940px) {
  .enactor-page #expert-examples .en-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .enactor-page #expert-examples .en-examples { grid-template-columns: minmax(0, 1fr); }
}

.enactor-page #expert-examples .en-examples { grid-auto-rows: 1fr; }
.enactor-page #expert-examples .en-example-card img { color-scheme: light dark; }
@media (prefers-color-scheme: dark) {
  .enactor-page #expert-examples { --section-bg: #191d25; --section-ink: #edf2fa; }
  .enactor-page #expert-examples .en-example-card { background: #242a35; border-color: #4e5a6d; color: #edf2fa; }
  .enactor-page #expert-examples .en-example-card img { background: #1a202b; }
  .enactor-page #expert-examples a.en-example-card strong { color: #acd2ff; }
  .enactor-page #expert-examples a.en-example-card:hover { border-color: #acd2ff; }
  .enactor-page #expert-examples a.en-example-card:focus-visible { outline-color: #acd2ff; }
}

.enactor-page .en-stage-key { max-width: 900px; margin-block: 24px 0; }
.en-stage-key-image { position: relative; overflow: hidden; border-radius: 14px; }
.en-stage-key-image > img { display: block; width: 100%; height: auto; }
.en-stage-outlines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.en-stage-outlines > :is(rect,path) {
  fill: none;
  stroke: #ffe289;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 1px #23190a) drop-shadow(0 0 1px #23190a);
}
.en-stage-marker {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(16px, 2.2vw, 26px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #ffe289;
  color: #222;
  font: 750 clamp(11px, 1.4vw, 15px)/1 var(--study-font);
  box-shadow: 0 0 0 1px #2b210b;
  pointer-events: none;
}
.en-marker-narrator { top: 13.333%; left: 15.3125%; }
.en-marker-chat { top: 52.222%; left: 15%; }
.en-marker-images { top: 13.333%; left: 35.78125%; }
.en-marker-menu { top: 12.222%; left: 85.9375%; }
.en-stage-key figcaption ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 22px; margin: 12px 0 0; padding-inline-start: 1.375em; }
.en-stage-key figcaption li { padding-inline-start: 3px; }
.en-stage-key figcaption li strong { display: block; }
.en-stage-key figcaption li::marker { font-weight: 750; }
.en-hybrid-example { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); align-items: start; gap: clamp(14px, 3vw, 34px); margin-block: 26px; }
.enactor-page .en-hybrid-example figure { margin: 0; }
.enactor-page .en-hybrid-example img { display: block; width: 100%; height: auto; border-radius: 12px; }
.enactor-page .en-hybrid-example figcaption { color: var(--study-ink); font-weight: 700; }
.enactor-page .en-hybrid-example h3 { margin-top: 0; }
@media (max-width: 760px) {
  .en-stage-key figcaption ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .en-hybrid-example { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .enactor-page .en-hybrid-example figure { max-width: 215px; }
}

.enactor-page #expert-examples #example-drawing { color: #064c9a; text-decoration: underline; text-underline-offset: .17em; }
@media (prefers-color-scheme: dark) {
  .enactor-page #expert-examples #example-drawing { color: #acd2ff; }
}
@media (max-width: 560px) {
  .en-stage-key figcaption ol { grid-template-columns: minmax(0, 1fr); }
}
