/* Neurotransmitter Atlas, S15.
   Light editorial science plate with an interactive Three.js specimen. */

:root {
  --ntx-paper: #f7f0df;
  --ntx-paper-2: #fff9ec;
  --ntx-ink: #24201b;
  --ntx-soft: #655d52;
  --ntx-dim: #948779;
  --ntx-rule: rgba(36, 32, 27, 0.16);
  --ntx-red: #c75545;
  --ntx-violet: #7d5c9f;
  --ntx-blue: #6f86b7;
  --ntx-teal: #2f9d84;
  --ntx-gold: #d5942f;
  --ntx-shadow: 0 18px 44px rgba(77, 58, 38, 0.12);
}

html,
body {
  background: var(--ntx-paper) !important;
}

body.ntx-page {
  color: var(--ntx-ink);
}

.ntx-page .lab-rail,
.ntx-page .theme-switcher,
.ntx-page #cursor-dot {
  display: none !important;
}

.ntx-file-warning {
  display: none;
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 18px;
  border-bottom: 1px solid var(--ntx-rule);
  background: #fff4cf;
  color: var(--ntx-ink);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ntx-file-warning a {
  color: var(--ntx-red);
}

.ntx-file-mode .ntx-file-warning {
  display: block;
}

.ntx-page #progress {
  background: var(--ntx-red);
}

.ntx-page .masthead {
  background: rgba(247, 240, 223, 0.86);
  border-bottom: 1px solid var(--ntx-rule);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ntx-page .masthead a,
.ntx-page .masthead-name a {
  color: var(--ntx-ink);
}

.ntx-page .masthead .masthead-dateline,
.ntx-page .cat-count {
  color: var(--ntx-dim);
}

.ntx-page .nav-dropdown-menu {
  background: rgba(255, 249, 236, 0.96);
  border: 1px solid var(--ntx-rule);
  box-shadow: var(--ntx-shadow);
}

.ntx-main {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(36, 32, 27, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(36, 32, 27, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 20% 0%, rgba(199, 85, 69, 0.12), transparent 32%),
    radial-gradient(circle at 86% 16%, rgba(47, 157, 132, 0.11), transparent 30%),
    var(--ntx-paper);
  background-size: 64px 64px, 64px 64px, auto, auto, auto;
}

.ntx-hero {
  min-height: 100dvh;
  padding: 92px 28px 48px;
  display: grid;
  grid-template-columns: minmax(304px, 0.76fr) minmax(610px, 1.72fr) minmax(292px, 0.72fr);
  gap: 16px;
  align-items: start;
}

.ntx-panel,
.ntx-canvas-shell {
  border: 1px solid var(--ntx-rule);
  background: color-mix(in oklab, var(--ntx-paper-2) 92%, white 8%);
  box-shadow: var(--ntx-shadow);
  border-radius: 8px;
}

.ntx-title-panel {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ntx-hero .section-label,
.ntx-section .section-label {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 16px;
  color: var(--ntx-red);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 10px;
}

.ntx-hero h1 {
  margin: 0;
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 300;
  font-size: clamp(30px, 2.35vw, 36px);
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.ntx-hero h1 em {
  display: block;
  margin-top: 8px;
  font-size: clamp(54px, 5vw, 82px);
  line-height: 0.88;
  color: var(--ntx-red);
  font-style: italic;
}

.ntx-title-panel .lab-biz-line {
  margin: 0;
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.38;
  color: var(--ntx-soft);
}

.ntx-kicker {
  margin: 0;
  color: var(--ntx-soft);
  font-size: 14px;
  line-height: 1.62;
}

.ntx-reader-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--ntx-rule);
}

.ntx-reader-flow button {
  appearance: none;
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 12px;
  border: 0;
  background: rgba(255, 249, 236, 0.78);
  color: var(--ntx-ink);
  text-align: left;
  cursor: pointer;
  transition: background 220ms cubic-bezier(0.16, 1, 0.3, 1), transform 220ms cubic-bezier(0.16, 1, 0.3, 1), color 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ntx-reader-flow button:hover,
.ntx-reader-flow button.is-active {
  background: rgba(199, 85, 69, 0.08);
  color: color-mix(in oklab, var(--ntx-red) 72%, var(--ntx-ink));
}

.ntx-reader-flow button:active {
  transform: scale(0.98) translateY(1px);
}

.ntx-reader-flow span {
  color: var(--ntx-red);
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ntx-reader-flow strong {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 21px;
  font-weight: 300;
  line-height: 1;
}

.ntx-reader-flow em {
  color: var(--ntx-soft);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.ntx-dateline {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--ntx-rule);
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ntx-dateline .label {
  color: var(--ntx-dim);
}

.ntx-dateline .value {
  margin-top: 4px;
  color: var(--ntx-ink);
  text-transform: none;
  letter-spacing: 0.03em;
}

.ntx-canvas-shell {
  position: relative;
  height: clamp(620px, 76vh, 760px);
  min-height: 620px;
  max-height: 760px;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 44%, rgba(255, 255, 255, 0.82), transparent 42%),
    radial-gradient(circle at 16% 20%, rgba(199, 85, 69, 0.12), transparent 26%),
    radial-gradient(circle at 82% 66%, rgba(47, 157, 132, 0.1), transparent 28%),
    linear-gradient(145deg, #fff9ec 0%, #f1e2c7 100%);
}

.ntx-canvas-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(36, 32, 27, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(36, 32, 27, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: 0.58;
  z-index: 1;
}

.ntx-canvas-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 42%, rgba(97, 68, 35, 0.16) 100%);
  z-index: 2;
}

#ntx-canvas {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
}

.ntx-canvas-badge,
.ntx-canvas-source {
  position: absolute;
  z-index: 4;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ntx-soft);
  border: 1px solid var(--ntx-rule);
  background: rgba(255, 249, 236, 0.76);
  border-radius: 999px;
  padding: 7px 10px;
  pointer-events: none;
}

.ntx-canvas-badge {
  top: 14px;
  left: 14px;
}

.ntx-canvas-source {
  right: 14px;
  bottom: 14px;
}

.ntx-mode-card {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 8;
  width: min(300px, calc(100% - 28px));
  padding: 12px;
  border: 1px solid var(--ntx-rule);
  border-radius: 8px;
  background: rgba(255, 249, 236, 0.78);
  box-shadow: 0 12px 26px rgba(77, 58, 38, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(12px);
}

.ntx-mode-card-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--ntx-dim);
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ntx-mode-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.ntx-mode-button,
.ntx-tool-button,
.ntx-transmitter-button {
  appearance: none;
  border: 1px solid var(--ntx-rule);
  background: rgba(255, 255, 255, 0.44);
  color: var(--ntx-ink);
  cursor: pointer;
  font: inherit;
}

.ntx-mode-button {
  min-height: 44px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  gap: 2px;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 260ms cubic-bezier(0.16, 1, 0.3, 1), border-color 260ms cubic-bezier(0.16, 1, 0.3, 1), color 260ms cubic-bezier(0.16, 1, 0.3, 1), transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ntx-mode-button:active,
.ntx-tool-button:active,
.ntx-transmitter-button:active {
  transform: scale(0.98) translateY(1px);
}

.ntx-mode-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.6;
}

.ntx-mode-button.is-active {
  border-color: color-mix(in oklab, var(--ntx-blue) 70%, var(--ntx-ink));
  background: color-mix(in oklab, var(--ntx-blue) 18%, white);
  color: color-mix(in oklab, var(--ntx-blue) 60%, var(--ntx-ink));
}

.ntx-hotspots {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
}

.ntx-hotspot {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--ntx-ink);
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.ntx-hotspot.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ntx-hotspot span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid var(--ntx-red);
  background: rgba(255, 249, 236, 0.92);
  box-shadow: 0 0 0 5px rgba(199, 85, 69, 0.12);
}

.ntx-hotspot strong {
  background: rgba(255, 249, 236, 0.86);
  border: 1px solid var(--ntx-rule);
  border-radius: 999px;
  padding: 5px 7px;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.ntx-hotspot:hover strong,
.ntx-hotspot:focus-visible strong {
  border-color: rgba(199, 85, 69, 0.52);
  background: rgba(255, 249, 236, 0.96);
  transform: translateY(-1px);
}

.ntx-tools {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 8;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ntx-tool-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border-radius: 999px;
  padding: 0 12px;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ntx-tool-button:hover,
.ntx-transmitter-button:hover {
  border-color: var(--ntx-red);
}

.ntx-webgl-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 36px;
  background: var(--ntx-paper-2);
  color: var(--ntx-soft);
  text-align: center;
  z-index: 9;
}

.ntx-webgl-fallback.is-visible {
  display: flex;
}

.ntx-detail-panel {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ntx-panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ntx-rule);
}

.ntx-panel-title span,
.ntx-mini-label {
  color: var(--ntx-dim);
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ntx-active-swatch {
  width: 34px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(36, 32, 27, 0.18);
  background: var(--ntx-red);
}

.ntx-transmitter-list {
  display: grid;
  gap: 7px;
}

.ntx-transmitter-button {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  width: 100%;
  min-height: 58px;
  border-radius: 7px;
  padding: 10px;
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.ntx-transmitter-button.is-active {
  background: rgba(199, 85, 69, 0.08);
  border-color: rgba(199, 85, 69, 0.45);
}

.ntx-transmitter-button strong {
  display: block;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
}

.ntx-transmitter-button em {
  display: block;
  margin-top: 5px;
  color: var(--ntx-soft);
  font-size: 12px;
  line-height: 1.28;
  font-style: normal;
}

.ntx-button-swatch {
  width: 13px;
  height: 13px;
  margin-top: 2px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(36, 32, 27, 0.06);
}

.ntx-detail-card {
  border: 1px solid var(--ntx-rule);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.36);
}

.ntx-detail-card h2,
.ntx-detail-card h3 {
  margin: 0;
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 300;
}

.ntx-detail-card h2 {
  font-size: 34px;
  line-height: 1;
}

.ntx-detail-card h3 {
  font-size: 22px;
  line-height: 1.1;
}

.ntx-detail-card p {
  margin: 10px 0 0;
  color: var(--ntx-soft);
  font-size: 13px;
  line-height: 1.54;
}

.ntx-detail-type {
  margin-top: 8px;
  color: var(--ntx-red);
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ntx-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.ntx-region-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(47, 157, 132, 0.1);
  color: color-mix(in oklab, var(--ntx-teal) 72%, var(--ntx-ink));
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ntx-source-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.ntx-study-card {
  background:
    linear-gradient(180deg, rgba(255, 249, 236, 0.58), rgba(255, 255, 255, 0.3)),
    rgba(199, 85, 69, 0.035);
}

.ntx-study-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.ntx-study-list div {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(112, 94, 72, 0.14);
}

.ntx-study-list dt {
  color: var(--ntx-red);
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ntx-study-list dd {
  margin: 0;
  color: var(--ntx-soft);
  font-size: 12px;
  line-height: 1.48;
}

.ntx-source-links a,
.ntx-method a,
.ntx-related a,
.ntx-lab-nav a,
.ntx-inline-nav a {
  color: var(--ntx-red);
  text-decoration: none;
  border-bottom: 1px solid rgba(199, 85, 69, 0.28);
}

.ntx-hotspot-readout {
  border-color: rgba(125, 92, 159, 0.28);
}

.ntx-hotspot-readout .ntx-mini-label {
  color: var(--ntx-violet);
}

.ntx-inspector {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 24;
  width: min(880px, calc(100% - 32px));
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms cubic-bezier(0.16, 1, 0.3, 1), transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ntx-inspector[hidden] {
  display: none;
}

.ntx-inspector.is-open {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.ntx-inspector-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 18px 58px 18px 20px;
  border: 1px solid var(--ntx-rule);
  border-radius: 8px;
  background: rgba(255, 249, 236, 0.92);
  box-shadow: 0 18px 46px rgba(77, 58, 38, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ntx-inspector-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ntx-rule);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  color: var(--ntx-ink);
  cursor: pointer;
}

.ntx-inspector-close svg {
  width: 16px;
  height: 16px;
}

.ntx-inspector-copy h2 {
  margin: 7px 0 0;
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 300;
  line-height: 1;
}

.ntx-inspector-copy p {
  max-width: 66ch;
  margin: 10px 0 0;
  color: var(--ntx-soft);
  font-size: 14px;
  line-height: 1.55;
}

.ntx-inspector-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ntx-inspector-action,
.ntx-card-action {
  appearance: none;
  min-height: 36px;
  border: 1px solid var(--ntx-rule);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ntx-ink);
  cursor: pointer;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.ntx-inspector-action {
  padding: 0 13px;
}

.ntx-card-action {
  align-self: start;
  margin-top: 14px;
  padding: 0 12px;
}

.ntx-inspector-action:hover,
.ntx-card-action:hover {
  border-color: rgba(199, 85, 69, 0.54);
  background: rgba(199, 85, 69, 0.08);
}

.ntx-inspector-action:active,
.ntx-card-action:active,
.ntx-inspector-close:active {
  transform: scale(0.98) translateY(1px);
}

.ntx-inspector-action.is-secondary {
  color: var(--ntx-soft);
}

.ntx-section,
.ntx-concept,
.ntx-related,
.ntx-lab-nav {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.ntx-concept {
  padding: 72px 0 24px;
  border-top: 1px solid var(--ntx-rule);
}

.ntx-concept p {
  max-width: 900px;
  margin: 0;
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.32;
  color: var(--ntx-ink);
}

.ntx-inline-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 28px;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ntx-section {
  padding: 90px 0;
}

.ntx-section + .ntx-section,
.ntx-related {
  border-top: 1px solid var(--ntx-rule);
}

.ntx-section-title {
  max-width: 840px;
  margin: 0 0 18px;
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 300;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 0.98;
}

.ntx-section-title em {
  color: var(--ntx-red);
  font-style: italic;
}

.ntx-section-lede {
  max-width: 760px;
  margin: 0 0 36px;
  color: var(--ntx-soft);
  font-size: 17px;
  line-height: 1.62;
}

.ntx-objectives {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 34px 0 0;
  padding: 1px;
  background: var(--ntx-rule);
}

.ntx-objectives li {
  display: grid;
  gap: 10px;
  min-height: 184px;
  padding: 20px;
  background: rgba(255, 249, 236, 0.78);
  animation: ntx-rise 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i) * 70ms);
}

.ntx-objectives span,
.ntx-step-button span,
.ntx-check-card summary span {
  color: var(--ntx-red);
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ntx-objectives strong {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 300;
  font-size: 28px;
  line-height: 1.05;
}

.ntx-objectives em {
  align-self: end;
  color: var(--ntx-soft);
  font-size: 14px;
  font-style: normal;
  line-height: 1.5;
}

.ntx-rule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ntx-core-rule {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 250px;
  padding: 20px;
  border: 1px solid var(--ntx-rule);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 249, 236, 0.78), rgba(255, 255, 255, 0.36)),
    repeating-linear-gradient(90deg, rgba(112, 94, 72, 0.045) 0 1px, transparent 1px 34px);
  animation: ntx-rise 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i) * 60ms);
}

.ntx-core-rule h3 {
  margin: 0;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 28px;
  font-weight: 300;
  line-height: 1.04;
}

.ntx-core-rule p {
  margin: 16px 0 0;
  color: var(--ntx-soft);
  font-size: 14px;
  line-height: 1.58;
}

.ntx-core-rule em {
  align-self: end;
  margin-top: 18px;
  color: var(--ntx-dim);
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 10px;
  font-style: normal;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ntx-sequence-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
  gap: 18px;
  align-items: stretch;
}

.ntx-step-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ntx-step-button {
  appearance: none;
  min-height: 112px;
  padding: 15px;
  border: 1px solid var(--ntx-rule);
  border-radius: 8px;
  background: rgba(255, 249, 236, 0.62);
  color: var(--ntx-ink);
  text-align: left;
  cursor: pointer;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), border-color 260ms cubic-bezier(0.16, 1, 0.3, 1), background 260ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: ntx-rise 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i) * 50ms);
}

.ntx-step-button:hover,
.ntx-step-button.is-active {
  border-color: rgba(199, 85, 69, 0.46);
  background: rgba(199, 85, 69, 0.075);
}

.ntx-step-button:active {
  transform: scale(0.98) translateY(1px);
}

.ntx-step-button strong,
.ntx-step-button em {
  display: block;
}

.ntx-step-button strong {
  margin-top: 13px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
}

.ntx-step-button em {
  margin-top: 6px;
  color: var(--ntx-soft);
  font-size: 12px;
  font-style: normal;
}

.ntx-step-readout {
  position: relative;
  min-height: 100%;
  border: 1px solid var(--ntx-rule);
  border-radius: 8px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255, 249, 236, 0.9), rgba(255, 255, 255, 0.42)),
    radial-gradient(circle at 90% 20%, rgba(199, 85, 69, 0.12), transparent 30%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.ntx-step-readout h3,
.ntx-subhead {
  margin: 10px 0 0;
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 300;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.ntx-step-readout p {
  max-width: 62ch;
  margin: 18px 0 0;
  color: var(--ntx-soft);
  font-size: 16px;
  line-height: 1.68;
}

.ntx-step-visual {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--ntx-rule);
  color: var(--ntx-soft);
  font-size: 14px;
  line-height: 1.55;
}

.ntx-step-visual strong {
  color: var(--ntx-red);
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ntx-structure-grid,
.ntx-how-grid,
.ntx-related-grid,
.ntx-method {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ntx-structure-card,
.ntx-how-card,
.ntx-related-card,
.ntx-method > div {
  border: 1px solid var(--ntx-rule);
  background: rgba(255, 249, 236, 0.62);
  border-radius: 8px;
  padding: 22px;
}

.ntx-use-note {
  max-width: 760px;
  margin: -14px 0 34px;
  padding: 16px 18px;
  border: 1px solid rgba(199, 85, 69, 0.28);
  border-radius: 8px;
  background: rgba(199, 85, 69, 0.065);
  color: var(--ntx-soft);
  font-size: 14px;
  line-height: 1.58;
}

.ntx-use-note strong {
  color: var(--ntx-ink);
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ntx-structure-card {
  display: flex;
  flex-direction: column;
  transition: border-color 220ms cubic-bezier(0.16, 1, 0.3, 1), background 220ms cubic-bezier(0.16, 1, 0.3, 1), transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ntx-structure-card.is-highlighted {
  border-color: rgba(199, 85, 69, 0.62);
  background: rgba(199, 85, 69, 0.08);
  transform: translateY(-2px);
}

.ntx-card-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--ntx-red);
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ntx-structure-card h3,
.ntx-how-card h3,
.ntx-related-card h3,
.ntx-method h3 {
  margin: 0;
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 300;
  font-size: 26px;
  line-height: 1.05;
}

.ntx-structure-card p,
.ntx-how-card p,
.ntx-related-card p,
.ntx-method p,
.ntx-method li {
  color: var(--ntx-soft);
  font-size: 14px;
  line-height: 1.6;
}

.ntx-matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--ntx-rule);
  border-radius: 8px;
  background: rgba(255, 249, 236, 0.7);
}

.ntx-matrix {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
}

.ntx-matrix th,
.ntx-matrix td {
  padding: 14px;
  border-bottom: 1px solid var(--ntx-rule);
  vertical-align: top;
  text-align: left;
}

.ntx-matrix thead th {
  color: var(--ntx-dim);
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ntx-matrix tbody th {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 19px;
  font-weight: 400;
  white-space: nowrap;
}

.ntx-matrix tbody th span {
  --dot: var(--ntx-red);
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--dot);
}

.ntx-matrix tbody td {
  color: var(--ntx-soft);
  font-size: 13px;
  line-height: 1.55;
}

.ntx-note-band {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 3px solid var(--ntx-red);
  background: rgba(199, 85, 69, 0.08);
  color: var(--ntx-soft);
  font-size: 14px;
  line-height: 1.58;
}

.ntx-review-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.05fr) minmax(260px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.ntx-subhead {
  margin-bottom: 18px;
  font-size: 30px;
}

.ntx-glossary-list,
.ntx-misconceptions,
.ntx-checks {
  display: grid;
  gap: 8px;
}

.ntx-glossary-item,
.ntx-myth-card,
.ntx-check-card {
  border: 1px solid var(--ntx-rule);
  border-radius: 8px;
  background: rgba(255, 249, 236, 0.62);
}

.ntx-glossary-item {
  padding: 14px 16px;
}

.ntx-glossary-item dt {
  color: var(--ntx-ink);
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ntx-glossary-item dd {
  margin: 6px 0 0;
  color: var(--ntx-soft);
  font-size: 13px;
  line-height: 1.5;
}

.ntx-myth-card {
  padding: 18px;
}

.ntx-myth-card h3 {
  margin: 0;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.05;
}

.ntx-myth-card p,
.ntx-check-card p {
  margin: 10px 0 0;
  color: var(--ntx-soft);
  font-size: 13px;
  line-height: 1.56;
}

.ntx-check-card {
  padding: 0;
}

.ntx-check-card summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 16px;
  color: var(--ntx-ink);
  cursor: pointer;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 21px;
  line-height: 1.15;
}

.ntx-check-card p {
  padding: 0 16px 16px 64px;
}

@keyframes ntx-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ntx-method ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.ntx-related {
  padding: 74px 0;
}

.ntx-lab-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 28px 0 56px;
  border-top: 1px solid var(--ntx-rule);
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ntx-page .colophon {
  background: var(--ntx-paper);
  border-top: 1px solid var(--ntx-rule);
  color: var(--ntx-soft);
}

@media (max-width: 1180px) {
  .ntx-hero {
    grid-template-columns: 1fr;
    padding-inline: 24px;
  }

  .ntx-canvas-shell {
    height: 620px;
    min-height: 620px;
    max-height: none;
  }

  .ntx-title-panel {
    min-height: auto;
  }

  .ntx-detail-panel {
    display: grid;
    grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr);
  }

  .ntx-reader-flow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .ntx-transmitter-list {
    align-content: start;
  }
}

@media (max-width: 860px) {
  .ntx-hero {
    padding-top: 92px;
  }

  .ntx-canvas-shell {
    height: 540px;
    min-height: 540px;
  }

  .ntx-mode-card {
    top: 10px;
    right: 10px;
    width: min(268px, calc(100% - 20px));
  }

  .ntx-tools,
  .ntx-canvas-source,
  .ntx-canvas-badge {
    position: absolute;
  }

  .ntx-detail-panel,
  .ntx-objectives,
  .ntx-sequence-layout,
  .ntx-rule-grid,
  .ntx-structure-grid,
  .ntx-how-grid,
  .ntx-related-grid,
  .ntx-method,
  .ntx-review-layout {
    grid-template-columns: 1fr;
  }

  .ntx-section,
  .ntx-concept,
  .ntx-related,
  .ntx-lab-nav {
    width: min(100% - 32px, 1180px);
  }

  .ntx-lab-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .ntx-inspector-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .ntx-inspector-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .ntx-hero {
    padding-inline: 14px;
  }

  .ntx-title-panel,
  .ntx-detail-panel {
    padding: 16px;
  }

  .ntx-canvas-shell {
    height: 470px;
    min-height: 470px;
  }

  .ntx-reader-flow {
    grid-template-columns: 1fr;
  }

  .ntx-reader-flow button {
    min-height: auto;
  }

  .ntx-canvas-source,
  .ntx-canvas-badge {
    display: none;
  }

  .ntx-mode-card {
    top: 10px;
    right: 10px;
    left: 10px;
    width: auto;
    padding: 8px;
  }

  .ntx-mode-card-label {
    margin-bottom: 7px;
    font-size: 8px;
  }

  .ntx-mode-buttons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .ntx-mode-button {
    min-height: 42px;
    font-size: 8px;
    letter-spacing: 0.06em;
  }

  .ntx-mode-button svg {
    width: 15px;
    height: 15px;
  }

  .ntx-tools {
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ntx-tool-button {
    justify-content: center;
    padding-inline: 8px;
  }

  .ntx-step-buttons {
    grid-template-columns: 1fr;
  }

  .ntx-step-readout {
    padding: 20px;
  }

  .ntx-hotspot strong {
    display: none;
  }

  .ntx-inspector {
    bottom: 10px;
    width: calc(100% - 20px);
  }

  .ntx-inspector-card {
    padding: 16px 52px 16px 16px;
  }

  .ntx-inspector-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
