@font-face {
  font-family: Barlow;
  src: url("/fonts/barlow-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("/fonts/barlow-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("/fonts/barlow-900.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}
:root {
  --paper: #fdfdfc;
  --ink: #14140f;
  --muted: #55534c;
  --line: #e3e1dc;
  --gold: #037eb6;
  --place-connection: #d000a8;
  --company-connection: #16843f;
}
.masthead-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.ambient-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin: 12px 0;
}
.variant-links {
  flex-wrap: wrap;
}
.language-switch {
  display: flex;
  gap: 2px;
}
.language-switch button {
  padding: 5px 7px;
  min-height: 30px;
  font-size: 11px;
  background: transparent;
  border: 1px solid transparent;
}
.language-switch button[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--line);
  text-decoration: underline;
  text-underline-offset: 3px;
}
body {
  font-family: Barlow, Arial, sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
button,
select {
  border-radius: 0;
  background: #fff;
  font-family: inherit;
}
button:hover {
  background: #f4f3f1;
}
h1,
h2,
h3,
.info-card h2,
.pane-title {
  font-family: Barlow, Arial, sans-serif;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.025em;
}
h1 em {
  font-style: normal;
  color: inherit;
}
h1 {
  font-size: clamp(40px, 4.2vw, 64px);
  line-height: 1.03;
}
.brand {
  font-size: 17px;
}
.masthead {
  background: #fff;
  border-color: var(--line);
}
main {
  max-width: 1560px;
  padding: 36px 40px 0;
}
.intro-row {
  padding: 8px 0 10px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.edition {
  font-size: 12px;
  color: var(--ink);
}
.edition span {
  color: var(--muted);
  font-size: 11px;
}
.view-tabs {
  border-bottom: 1px solid var(--ink);
  gap: 8px;
  margin-top: 26px;
  padding-bottom: 15px;
}
.view-tabs button {
  font-size: 15px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 0;
}
.view-tabs button[aria-pressed="true"] {
  background: #14140f;
  border-color: #14140f;
  color: #fff;
}
.view-tabs button span {
  font-size: 11px;
  color: #8c8981;
}
.view-tabs button[aria-pressed="true"] span {
  color: #c8c5bd;
}
.view-toolbar {
  min-height: 65px;
}
.view-toolbar p {
  font-size: 14px;
}
.view-actions select {
  font-size: 13px;
  max-width: 260px;
}
.stage,
.stage.split {
  background: #fff;
  border-radius: 0;
  border-color: var(--line);
}
.stage {
  height: clamp(550px, 65vh, 800px);
}
.stage-hint {
  font-size: 11px;
  color: #8c8981;
}
.pane-title {
  font-size: 24px;
}
.scene-labels button {
  font-family: Barlow, Arial, sans-serif;
  background: #ffffffed;
  border: 1px solid #e3e1dc;
  border-radius: 0;
  box-shadow: none;
  font-size: 13px;
  padding: 7px 10px;
}
.scene-labels button[aria-pressed="true"] {
  background: #14140f;
  border-color: #14140f;
  color: #fff;
}
.scene-labels .small-label {
  font-size: 11px;
  background: #ffffffeb;
  padding: 3px 5px;
}
.page-controls {
  background: #fff;
  border-radius: 0;
}
.page-controls span {
  font-size: 12px;
}
.key-row {
  font-size: 12px;
}
.info-card {
  grid-template-columns: 230px minmax(0, 1fr) minmax(240px, 0.7fr);
  gap: 32px;
}
.info-card h2 {
  font-size: 30px;
  line-height: 1.08;
}
.info-card .role {
  color: #55534c;
  font-size: 12px;
}
.info-card .body {
  font-size: 15px;
  line-height: 1.7;
}
.info-card .look {
  font-size: 13px;
  line-height: 1.65;
}
.info-card .minor,
.info-card details {
  font-size: 12px;
  line-height: 1.6;
}
.info-card .section-name {
  font-size: 10px;
  color: #8c8981;
}
.related button,
.corporate-roles button {
  background: #fff;
  border: 1px solid var(--line);
  padding: 5px 8px;
  font-size: 12px;
  margin: 3px 0;
}
.corporate-roles {
  margin-top: 12px;
}
.affiliation-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
  margin-top: 15px;
}
.affiliation-list button {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  background: transparent;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.affiliation-list strong {
  font-weight: 600;
}
.affiliation-list small {
  color: #8c8981;
  font-size: 11px;
}
.affiliation-list span {
  color: #55534c;
  font-size: 12px;
}
.renderer-status {
  font-size: 11px;
  color: #8c8981;
  margin: 0 0 12px;
}
.variant-links {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 12px;
}
.variant-links a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}
footer {
  font-size: 12px;
}
footer details {
  max-width: 680px;
}
.connection-key span {
  border-color: var(--place-connection);
}
#place-lines path {
  stroke: var(--place-connection);
  stroke-width: 1.4;
}
.illustrated-view {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
}
.illustrated-landscape {
  position: absolute;
  object-fit: contain;
}
.illustrated-gallery {
  height: 100%;
  display: grid;
  align-content: center;
  gap: 16px 28px;
  padding: 35px 50px 100px;
}
.illustrated-portrait {
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 0;
  align-items: center;
  background: #fff;
  font-size: 13px;
  min-width: 0;
}
.illustrated-portrait img {
  width: 100%;
  height: min(22vh, 190px);
  object-fit: contain;
  background: #fff;
}
.illustrated-portrait span {
  max-width: 100%;
  padding: 5px 8px;
  line-height: 1.2;
}
.illustrated-portrait[aria-pressed="true"] span {
  background: #14140f;
  color: #fff;
}
.illustrated .stage,
.illustrated .stage.split {
  height: clamp(550px, 65vh, 800px);
}
.illustrated .stage.split {
  min-height: 550px;
}
.illustrated .view-actions #reset {
  display: none;
}
html[data-variant="exhibition"] {
  --paper: #fff;
}
html[data-variant="exhibition"] main {
  max-width: 1840px;
  padding: 35px 48px 0;
}
html[data-variant="exhibition"] .intro-row {
  display: block;
  text-align: center;
  padding: 10px 0 26px;
}
html[data-variant="exhibition"] h1 {
  font-size: clamp(52px, 5.3vw, 82px);
  max-width: 1000px;
  margin: auto;
  line-height: 0.98;
}
html[data-variant="exhibition"] .eyebrow {
  margin-bottom: 14px;
  font-size: 12px;
}
html[data-variant="exhibition"] .edition {
  display: block;
  text-align: center;
  margin: 13px 0 0;
}
html[data-variant="exhibition"] .view-tabs {
  justify-content: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  margin: 0;
  gap: 15px;
}
html[data-variant="exhibition"] .view-tabs button {
  background: #fff;
  color: var(--ink);
  border: 0;
  border-bottom: 3px solid transparent;
  font-weight: 400;
  padding: 8px 12px;
  font-size: 16px;
}
html[data-variant="exhibition"] .view-tabs button[aria-pressed="true"] {
  border-bottom-color: #14140f;
  font-weight: 600;
}
html[data-variant="exhibition"] .view-tabs button[aria-pressed="true"] span {
  color: #8c8981;
}
html[data-variant="exhibition"] .stage {
  border: 0;
  height: clamp(610px, 72vh, 880px);
}
html[data-variant="exhibition"] .stage.split {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
html[data-variant="exhibition"] .renderer-status {
  text-align: right;
}
html[data-variant="exhibition"] .info-card {
  grid-template-columns: 270px minmax(0, 1.2fr) minmax(240px, 0.7fr);
}
html[data-variant="exhibition"] .info-card h2 {
  font-size: 36px;
}
html[data-variant="exhibition"] .scene-labels button {
  border-color: transparent;
}
@media (max-width: 1000px) {
  main,
  html[data-variant="exhibition"] main {
    padding: 26px 24px 0;
  }
  .info-card,
  html[data-variant="exhibition"] .info-card {
    grid-template-columns: 190px 1fr;
  }
  .info-card .appearance {
    grid-column: 2;
  }
  .view-tabs,
  html[data-variant="exhibition"] .view-tabs {
    gap: 4px;
  }
  .view-tabs button,
  html[data-variant="exhibition"] .view-tabs button {
    font-size: 13px;
    padding: 10px 9px;
  }
  .view-toolbar p {
    font-size: 12px;
  }
  .affiliation-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .masthead-actions {
    gap: 8px;
  }
  main,
  html[data-variant="exhibition"] main {
    padding: 24px 16px 0;
  }
  .masthead {
    padding: 0 16px;
  }
  .masthead a {
    font-size: 12px;
  }
  .brand span {
    font-size: 11px;
  }
  h1 {
    font-size: 42px;
  }
  html[data-variant="exhibition"] h1 {
    font-size: 52px;
  }
  html[data-variant="exhibition"] .intro-row {
    padding: 8px 0 22px;
  }
  .edition {
    display: none;
  }
  .view-tabs,
  html[data-variant="exhibition"] .view-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .view-tabs button,
  html[data-variant="exhibition"] .view-tabs button {
    padding: 10px 3px;
    font-size: 12px;
    min-width: 0;
  }
  .view-tabs button span {
    display: block;
    margin: 0 0 5px;
    font-size: 10px;
  }
  .view-tabs button:last-child {
    grid-column: 2 / 4;
  }
  .view-toolbar p {
    font-size: 11px;
  }
  .view-actions select {
    max-width: 135px;
    font-size: 11px;
  }
  .view-actions button {
    width: 29px;
  }
  .stage,
  html[data-variant="exhibition"] .stage,
  .illustrated .stage {
    height: 480px;
  }
  .stage.split,
  html[data-variant="exhibition"] .stage.split,
  .illustrated .stage.split {
    height: 900px;
  }
  .stage-hint {
    font-size: 9px;
  }
  .info-card,
  html[data-variant="exhibition"] .info-card {
    display: block;
  }
  .info-card .body {
    font-size: 14px;
  }
  .info-card .look {
    font-size: 12px;
  }
  .info-card h2 {
    font-size: 29px;
  }
  .info-card .appearance {
    margin-top: 17px;
  }
  .scene-labels button {
    font-size: 11px;
    padding: 5px 6px;
    max-width: 110px;
  }
  .scene-labels .small-label {
    font-size: 9px;
    max-width: 90px;
  }
  .key-row {
    font-size: 11px;
  }
  .renderer-status {
    font-size: 10px;
    margin: 0 0 9px;
  }
  .illustrated-gallery {
    padding: 30px 10px 100px;
    gap: 10px;
  }
  .illustrated-portrait {
    font-size: 11px;
  }
  .illustrated-portrait img {
    height: 145px;
  }
  .illustrated-portrait span {
    padding: 4px;
    overflow-wrap: anywhere;
  }
  .variant-links {
    font-size: 11px;
    gap: 14px;
  }
  .affiliation-list {
    grid-template-columns: 1fr;
  }
  .info-card details,
  .info-card .minor {
    font-size: 11px;
  }
}
.scene-labels .actor-label,
.scene-labels .actor-label:not(.small-label),
.scene-labels .actor-label.small-label,
.scene-labels .place-label {
  font-family: Barlow, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.15;
  padding: 2px 3px;
  border: 0;
  background: transparent;
  color: #14140f;
  box-shadow: none;
  white-space: nowrap;
  max-width: none;
  transform: translate(-50%, -100%);
  text-shadow:
    0 0 4px #fff,
    0 1px 2px #fff;
}
.scene-labels .actor-label[aria-pressed="true"],
.scene-labels .place-label[aria-pressed="true"] {
  background: transparent;
  color: #037eb6;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 400;
}
.illustrated-portrait span {
  background: transparent;
  padding: 3px;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 400;
}
.illustrated-portrait span {
  order: -1;
}
.illustrated-portrait[aria-pressed="true"] span {
  background: transparent;
  color: #037eb6;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.comparison-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 15px;
  font-size: 12px;
}
.comparison-controls > div {
  display: flex;
  gap: 4px;
}
.comparison-controls button {
  padding: 7px 10px;
  min-height: 34px;
}
.comparison-controls button[aria-pressed="true"] {
  background: #14140f;
  color: #fff;
  border-color: #14140f;
}
.stage.split.triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#company-pane {
  border-left: 1px solid var(--line);
}
#place-lines .affiliation-line {
  stroke: var(--company-connection);
  stroke-dasharray: 2 4;
}
.connection-key .corporate {
  border-color: var(--company-connection);
  border-top-style: dotted;
}
.view-actions #motion {
  width: auto;
  min-width: 103px;
  padding: 0 8px;
  font-size: 12px;
  white-space: nowrap;
}
html[data-motion="ambient"] .view-actions {
  flex-wrap: wrap;
}
html[data-motion="ambient"] .view-actions #motion {
  min-width: 132px;
}
.view-actions .language-switch button {
  width: auto;
  height: 30px;
  padding: 5px 7px;
  font-size: 11px;
}
.scene-labels .actor-label {
  transition: none;
}
@media (max-width: 1000px) {
  .stage.triple .pane-title {
    font-size: 18px;
    left: 14px;
  }
}
@media (max-width: 700px) {
  .scene-labels .actor-label,
  .scene-labels .actor-label:not(.small-label),
  .scene-labels .actor-label.small-label,
  .scene-labels .place-label {
    font-size: 10px;
  }
  .illustrated-portrait span {
    font-size: 10px;
  }
  .comparison-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    font-size: 11px;
  }
  .comparison-controls button {
    padding: 6px 8px;
  }
  .stage.split.triple,
  html[data-variant="exhibition"] .stage.split.triple,
  .illustrated .stage.split.triple {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    height: 1440px;
  }
  #company-pane {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .connection-key {
    white-space: normal;
    flex-wrap: wrap;
  }
  .view-toolbar {
    flex-wrap: wrap;
  }
  .view-toolbar p {
    max-width: 100%;
  }
  .view-actions #motion {
    font-size: 11px;
    min-width: 91px;
  }
}

/* Direct figure relationships: neon edges, readable green labels. */
.scene-labels .actor-label[data-direct-relation="true"],
.scene-labels .actor-label[data-relation-focus="true"] {
  color: #176b20;
  text-decoration: underline;
  text-decoration-color: #39ff14;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.scene-labels .actor-label[data-relation-focus="true"] {
  font-weight: 600;
}
