/* Approved dark editorial application theme. Chrome only: no media, screenplay or composition transforms. */
@font-face { font-family: "Kontagion Inter"; src: url("./fonts/InterVariable.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
html[data-nebula-subscriber="kontagion"]:not([data-ui-theme="serene"]):not([data-ui-theme="white"]),
html[data-nebula-subscriber="kontagion"]:not([data-ui-theme="serene"]):not([data-ui-theme="white"]) [data-theme="nebula"] {
  --nebula-font-sans: "Kontagion Inter", Arial, sans-serif;
  --nebula-background: #080808;
  --nebula-surface: #080808;
  --nebula-sidebar: #080808;
  --nebula-raised: #171717;
  --nebula-foreground: #f5f3ec;
  --nebula-muted: #a6a5a0;
  --nebula-border: rgb(245 243 236 / 12%);
  --nebula-radius: 3px;
  --nebula-weight-heading: 650;
  --nebula-weight-control: 500;
  --nebula-wordmark-weight: 750;
  --nebula-wordmark-tracking: -.055em;
  --nebula-wordmark-size: 23px;
}
/* Navigation and page chrome only; document typography remains owned by its editor. */
html[data-nebula-subscriber="kontagion"] :is(main, [data-living-nebula-shell], [data-canonical-collection]) h1 {
  font-family: var(--nebula-font-sans);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.08;
}
html[data-nebula-subscriber="kontagion"] :is(.nebula-brand strong, .nebula-wordmark, .rw-editor-brand strong) {
  font-family: var(--nebula-font-sans); font-size: 23px; font-weight: 750; letter-spacing: -.055em; line-height: 1;
}
html[data-nebula-subscriber="kontagion"] :is(.nebula-brand > span, .rw-editor-brand > span) {
  letter-spacing: .015em; font-size: 11px;
}
html[data-nebula-subscriber="kontagion"] .nebula-button { font-weight: 550; border-radius: 3px; }
/* Existing five-stage demonstration components use their own chrome variables. */
html[data-nebula-subscriber="kontagion"] .rw[data-palette="editor"] {
  --rw-ground: #080808; --rw-panel: #080808; --rw-line: rgb(245 243 236 / 12%);
  --rw-ink: #e8e6df; --rw-heading: #f5f3ec; --rw-muted: #a6a5a0;
  --rw-surface-raised: #171717; --rw-shadow: none;
  font-family: var(--nebula-font-sans);
}
html[data-nebula-subscriber="kontagion"] .rw :is(h1,h2,h3) {
  font-family: var(--nebula-font-sans); font-weight: 650; letter-spacing: -.035em;
}
html[data-nebula-subscriber="kontagion"] .rw :is(.rw-release-film-title h1, .rp-day-title h2) {
  font-weight: 750; letter-spacing: -.045em;
}
html[data-nebula-subscriber="kontagion"] .rw :is(.rw-stages button, .rw-primary) {
  font-family: var(--nebula-font-sans); font-weight: 550; letter-spacing: -.015em;
}
html[data-nebula-subscriber="kontagion"] .rw .rw-stages button { text-transform: capitalize; }
html[data-nebula-subscriber="kontagion"] .rw :is(.rw-primary, .rw-navigation-trigger, .rw-add-button) { border-radius: 3px; }
html[data-nebula-subscriber="kontagion"] .rw :is(.rw-header,.rw-write-toolbar,.rw-write-status) { box-shadow: none; }
@media(max-width:900px) {
 html[data-nebula-subscriber="kontagion"] :is(.nebula-brand strong,.nebula-wordmark,.rw-editor-brand strong) { font-size: 19px; }
}

/* Larger titles belong to overview headers, not timeline and inspector controls. */
html[data-nebula-subscriber="kontagion"] .rw .rw-release-film-title h1 { font-size: 32px; line-height: 1.05; }
html[data-nebula-subscriber="kontagion"] .rw :is(.rw-release-version,.rw-release-deliverables,.rw-release-destinations) {
  background: transparent; box-shadow: none; border-radius: 0; border-color: var(--rw-line);
}
html[data-nebula-subscriber="kontagion"] .rw :is(.rw-release-nav,.rw-release-inspector,.rw-edit-library,.rw-edit-inspector) { border-radius: 0; }

/* The reference workspace has its own color vocabulary. Bind its chrome to
 * the selected application palette while leaving screenplay paper/media alone. */
html[data-nebula-subscriber="kontagion"][data-ui-theme="serene"] .rw[data-palette="editor"],
html[data-nebula-subscriber="kontagion"][data-ui-theme="white"] .rw[data-palette="editor"] {
  --rw-ground: var(--nebula-background);
  --rw-panel: var(--nebula-surface);
  --rw-line: var(--nebula-border);
  --rw-ink: var(--nebula-foreground);
  --rw-heading: var(--nebula-foreground);
  --rw-muted: var(--nebula-muted);
  --rw-surface-raised: var(--nebula-raised);
  --rw-amber: var(--nebula-gold);
}
