@font-face {
  font-family: "Plein";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/plein-500.woff2") format("woff2");
}
@font-face {
  font-family: "Plein";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/plein-700.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-400.ttf") format("truetype");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-700.ttf") format("truetype");
}

#harrell-workbench {
  --night: #0a1621;
  --paper: #111e2b;
  --panel: #182333;
  --ink: #f3f2f7;
  --muted: #b9c3cf;
  --edge: #384354;
  --violet: #afa3ff;
  --orange: #ffc398;
  --cyan: #85dbe6;
  --surface: rgba(15, 25, 39, 0.94);
  --line: rgba(201, 211, 236, 0.19);
  background: var(--night);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  isolation: isolate;
  overflow: clip;
  color-scheme: dark;
}
#harrell-workbench * {
  box-sizing: border-box;
}
#harrell-workbench [hidden] {
  display: none !important;
}
#harrell-workbench button,
#harrell-workbench textarea,
#harrell-workbench select {
  font: inherit;
}
#harrell-workbench button,
#harrell-workbench a {
  -webkit-tap-highlight-color: transparent;
}
#harrell-workbench button {
  cursor: pointer;
}
#harrell-workbench a {
  color: inherit;
  text-decoration: none;
}
#harrell-workbench a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
#harrell-workbench button:focus-visible,
#harrell-workbench a:focus-visible,
#harrell-workbench textarea:focus-visible,
#harrell-workbench select:focus-visible,
#harrell-workbench summary:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 5px;
}
#harrell-workbench h1,
#harrell-workbench h2,
#harrell-workbench h3,
#harrell-workbench p {
  margin: 0;
}
#harrell-workbench h1,
#harrell-workbench h2,
#harrell-workbench h3 {
  font-family: Plein, sans-serif;
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -0.045em;
}
#harrell-workbench h1 {
  font-size: clamp(43px, 4.8vw, 70px);
}
#harrell-workbench h2 {
  font-size: clamp(30px, 3.4vw, 46px);
}
#harrell-workbench h3 {
  font-size: 23px;
  letter-spacing: -0.025em;
}
#harrell-workbench .wrap {
  width: min(1220px, calc(100% - 96px));
  margin: auto;
}
#harrell-workbench .small {
  font-size: 14px;
}
#harrell-workbench .muted {
  color: var(--muted);
}
#harrell-workbench .kicker {
  display: block;
  font-size: 13px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 18px;
}
#harrell-workbench .tag {
  font-size: 13px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  white-space: nowrap;
}
#harrell-workbench .arrow {
  margin-left: 10px;
}
#harrell-workbench .text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-size: 16px;
}
#harrell-workbench .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 13px 21px;
  border-radius: 8px;
  border: 1px solid #c5bafa;
  background: #c5bafa;
  color: #171426;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 5px 25px #6450c025;
}
#harrell-workbench .pill:hover {
  background: #dbd3ff;
  text-decoration: none;
}
#harrell-workbench .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #182231b8;
  text-decoration: none;
}
#harrell-workbench .ghost:hover {
  background: #283344;
  text-decoration: none;
}
#harrell-workbench .opening {
  position: relative;
}
#harrell-workbench .sky {
  position: absolute;
  inset: 0 auto auto 50%;
  transform: translateX(-50%);
  width: min(100%, 2270px);
  height: clamp(540px, 46vw, 950px);
  object-fit: cover;
  object-position: center top;
  z-index: -2;
  pointer-events: none;
  mask-image:
    linear-gradient(#000 0%, #000 63%, transparent 100%),
    linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-composite: intersect;
}
#harrell-workbench .opening:after {
  content: "";
  position: absolute;
  inset: 200px 0 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent,
    #0a162145 34%,
    var(--night) 97%
  );
}
#harrell-workbench .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 94px;
  border-bottom: 1px solid #d4dcf010;
  position: relative;
  z-index: 3;
}
#harrell-workbench .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Plein, sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 22px;
  white-space: nowrap;
}
#harrell-workbench .brand svg {
  width: 32px;
  height: 30px;
  color: #c4b5ff;
  flex-shrink: 0;
}
#harrell-workbench .nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
}
#harrell-workbench .nav-links a {
  padding: 12px 0;
}
#harrell-workbench .hero {
  padding-top: 236px;
  padding-bottom: 64px;
  display: grid;
  grid-template-columns: 0.91fr 1.09fr;
  align-items: center;
  gap: 65px;
}
#harrell-workbench .hero-copy {
  position: relative;
  text-shadow: 0 2px 24px #07101c;
}
#harrell-workbench .hero-copy h1 {
  max-width: 530px;
}
#harrell-workbench .hero-copy h1 span {
  color: var(--violet);
}
#harrell-workbench .hero-copy > p {
  max-width: 415px;
  color: #d0d5df;
  font-size: 19px;
  margin-top: 25px;
  line-height: 1.55;
}
#harrell-workbench .hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 30px;
}
#harrell-workbench .hero-copy .origin {
  font-size: 13px;
  color: #aeb9c7;
  margin-top: 21px;
}
#harrell-workbench .scroll-cue {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  padding-bottom: 45px;
}
#harrell-workbench .scroll-cue:before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--edge);
}
#harrell-workbench .demo-stage {
  position: relative;
  min-width: 0;
}
#harrell-workbench .demo-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
  padding: 0 4px;
  font-size: 13px;
  color: #d4d9e5;
}
#harrell-workbench .demo-label span:last-child {
  color: var(--muted);
}
#harrell-workbench .glass-frame {
  position: relative;
  padding: 8px;
  border: 1px solid #b4a0f542;
  border-radius: 15px;
  background: linear-gradient(135deg, #9785d923, #152b3a3b 48%, #e88f5520);
  box-shadow:
    0 30px 70px #030a1470,
    0 0 75px #51458512;
}
#harrell-workbench .glass-frame:before {
  content: "";
  position: absolute;
  inset: 13px -12px -13px 12px;
  border: 1px solid #b4a0f52c;
  border-radius: 15px;
  z-index: -1;
  background: #17203822;
}
#harrell-workbench .demo {
  background: #131b28;
  color: #e9edf5;
  border: 1px solid #475063;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 10px 25px #0004;
}
#harrell-workbench .demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  border-bottom: 1px solid #ffffff13;
  background: #1e2635;
  font-size: 13px;
}
#harrell-workbench .demo-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e2d9ff;
}
#harrell-workbench .donut {
  width: 16px;
  height: 16px;
  border: 4px solid #b4a0f5;
  border-radius: 50%;
  display: inline-block;
}
#harrell-workbench .demo-shell {
  display: grid;
  grid-template-columns: 146px minmax(0, 1fr);
  min-height: 320px;
}
#harrell-workbench .demo-side {
  background: #151e2c;
  padding: 20px 9px;
  border-right: 1px solid #ffffff10;
}
#harrell-workbench .side-heading {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: #a8b6ca;
  margin: 0 7px 12px;
  text-transform: uppercase;
}
#harrell-workbench .project-name {
  font-size: 13px;
  color: #e9e9f5;
  margin: 0 7px 10px;
}
#harrell-workbench .file {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  text-align: left;
  background: transparent;
  color: #b9c7da;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 10px 7px;
  font-size: 13px;
  margin: 3px 0;
  line-height: 1.3;
}
#harrell-workbench .file[aria-pressed="true"] {
  background: #233244;
  border-color: #426175;
  color: #b1edf2;
}
#harrell-workbench .file:hover {
  background: #253044;
}
#harrell-workbench .file-symbol {
  color: #8ad6e1;
  font-size: 16px;
}
#harrell-workbench .demo-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
#harrell-workbench .doc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #ffffff10;
  padding: 13px 15px;
  font-size: 12.5px;
  color: #a9c2cf;
}
#harrell-workbench .doc-switch {
  display: flex;
  padding: 2px;
  background: #0a1420;
  border-radius: 5px;
}
#harrell-workbench .doc-switch button {
  padding: 5px 9px;
  border: 0;
  background: transparent;
  color: #aebace;
  border-radius: 3px;
  font-size: 12.5px;
}
#harrell-workbench .doc-switch button[aria-pressed="true"] {
  background: #2b3b4d;
  color: #d7eaf3;
}
#harrell-workbench .doc-content {
  padding: 21px 22px;
  flex: 1;
}
#harrell-workbench .doc-content h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 21px;
  color: #a5e2e9;
  letter-spacing: -0.015em;
  margin-bottom: 15px;
}
#harrell-workbench .doc-content p {
  font-size: 14px;
  line-height: 1.65;
  color: #cad4df;
  margin-bottom: 14px;
}
#harrell-workbench .doc-content h4 {
  font-size: 14px;
  color: #ecf0f7;
  margin: 17px 0 7px;
  font-weight: 700;
}
#harrell-workbench .doc-content ul {
  padding-left: 18px;
  font-size: 14px;
  color: #cad4df;
  line-height: 1.65;
  margin: 0;
}
#harrell-workbench .doc-content textarea {
  width: 100%;
  min-height: 226px;
  resize: vertical;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: #e2edf4;
  background: #101a26;
  border: 1px solid #59778a;
  border-radius: 5px;
  padding: 12px;
}
#harrell-workbench .doc-footer {
  border-top: 1px solid #ffffff12;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: #aabbcd;
}
#harrell-workbench .copy-button {
  background: #a5e2e9;
  color: #102630;
  border: 0;
  border-radius: 5px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
#harrell-workbench .demo-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #b7c1cf;
  margin: 24px 4px 0;
}
#harrell-workbench .demo-bottom button {
  background: none;
  border: 0;
  border-bottom: 1px solid #a99adb;
  color: #c9bbff;
  padding: 4px 0;
  font-size: 13px;
}
#harrell-workbench .demo-hint {
  max-width: 370px;
  margin: 13px 4px 0;
  font-size: 13px;
  color: #b7c1cf;
}
#harrell-workbench .divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--edge), transparent);
}
#harrell-workbench .section {
  padding: 88px 0;
}
#harrell-workbench .workflow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}
#harrell-workbench .workflow p {
  color: var(--muted);
  margin-top: 22px;
  max-width: 400px;
}
#harrell-workbench .steps {
  border-top: 1px solid var(--line);
}
#harrell-workbench .step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 15px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}
#harrell-workbench .step-num {
  color: var(--violet);
  font-size: 13px;
  padding-top: 5px;
}
#harrell-workbench .step h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  letter-spacing: -0.015em;
}
#harrell-workbench .step p {
  margin: 8px 0 0;
  font-size: 16px;
  max-width: none;
}
#harrell-workbench .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
#harrell-workbench .section-head > p {
  max-width: 320px;
  color: var(--muted);
  font-size: 16px;
}
#harrell-workbench .works {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}
#harrell-workbench .project {
  position: relative;
  padding: 30px 32px;
  background: linear-gradient(140deg, #8470bf13, var(--paper) 60%);
  border: 1px solid var(--line);
  border-radius: 12px;
}
#harrell-workbench .project-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 14px;
}
#harrell-workbench .project-head .donut {
  width: 31px;
  height: 31px;
  border-width: 8px;
}
#harrell-workbench .project h3 {
  font-size: 28px;
  margin-bottom: 14px;
}
#harrell-workbench .project p {
  font-size: 16px;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 24px;
}
#harrell-workbench .project details {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  font-size: 15px;
}
#harrell-workbench summary {
  cursor: pointer;
  min-height: 36px;
  color: var(--violet);
}
#harrell-workbench details p {
  font-size: 15px;
  margin: 12px 0 0;
}
#harrell-workbench .project .text-link {
  color: var(--violet);
}
#harrell-workbench .research {
  position: relative;
  background: radial-gradient(ellipse at 98% 55%, #594b9825, transparent 60%);
}
#harrell-workbench .research-row {
  display: grid;
  grid-template-columns: 170px 1fr 42px;
  gap: 24px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 27px 0;
}
#harrell-workbench .research-row:last-child {
  border-bottom: 1px solid var(--line);
}
#harrell-workbench .research-row .category {
  font-size: 13px;
  color: var(--orange);
  padding-top: 5px;
}
#harrell-workbench .research-row p {
  font-size: 16px;
  color: var(--muted);
  max-width: 650px;
  margin-top: 11px;
}
#harrell-workbench .research-row .research-mark {
  font-size: 22px;
  color: var(--violet);
}
#harrell-workbench .research-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 21px;
}
#harrell-workbench .contact {
  padding: 63px 0 78px;
}
#harrell-workbench .contact-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 70px;
  align-items: center;
  background: linear-gradient(110deg, #594b9822, #19222c, #b9663510);
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 13px;
}
#harrell-workbench .contact p {
  margin: 20px 0 24px;
  color: var(--muted);
  max-width: 520px;
}
#harrell-workbench .contact-note {
  border-left: 1px solid var(--line);
  padding-left: 36px;
}
#harrell-workbench .contact-note span {
  color: var(--orange);
  font-size: 13px;
}
#harrell-workbench .contact-note h3 {
  font-size: 24px;
  margin-top: 12px;
}
#harrell-workbench .footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
#harrell-workbench .footer .brand {
  font-size: 18px;
  color: var(--ink);
}
#harrell-workbench .footlinks {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}
#harrell-workbench .prototype-note {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  padding: 0 20px 25px;
}
#harrell-workbench .skip {
  position: absolute;
  left: 20px;
  top: 12px;
  z-index: 10;
  padding: 10px;
  background: var(--paper);
  transform: translateY(-150%);
}
#harrell-workbench .skip:focus {
  transform: none;
}
@media (min-width: 1700px) {
  #harrell-workbench .wrap {
    width: min(1430px, calc(100% - 160px));
  }
  #harrell-workbench .hero {
    grid-template-columns: 1fr 1fr;
    gap: 130px;
    padding-top: 275px;
  }
  #harrell-workbench .sky {
    height: 950px;
    object-fit: contain;
  }
  #harrell-workbench h1 {
    font-size: 78px;
  }
}
@media (max-width: 1050px) {
  #harrell-workbench .wrap {
    width: calc(100% - 64px);
  }
  #harrell-workbench .hero {
    gap: 30px;
    padding-top: 210px;
    grid-template-columns: 0.9fr 1.1fr;
  }
  #harrell-workbench .nav-links {
    gap: 18px;
  }
  #harrell-workbench .hero-copy > p {
    font-size: 17px;
  }
  #harrell-workbench .demo-shell {
    grid-template-columns: 112px 1fr;
  }
  #harrell-workbench .doc-content {
    padding: 17px;
  }
  #harrell-workbench .demo-bar {
    padding: 12px;
  }
  #harrell-workbench .workflow {
    gap: 50px;
  }
  #harrell-workbench .contact-inner {
    gap: 35px;
    padding: 32px;
  }
  #harrell-workbench .hero-actions {
    gap: 14px;
  }
  #harrell-workbench .hero-actions .pill {
    padding: 12px 15px;
  }
  #harrell-workbench .nav .brand {
    font-size: 20px;
  }
}
@media (max-width: 760px) {
  #harrell-workbench .wrap {
    width: calc(100% - 40px);
  }
  #harrell-workbench .nav {
    height: auto;
    min-height: 108px;
    align-content: center;
    flex-wrap: wrap;
    gap: 5px 16px;
    padding: 15px 0;
  }
  #harrell-workbench .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
  }
  #harrell-workbench .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 185px;
    padding-bottom: 42px;
  }
  #harrell-workbench .hero-copy > p {
    max-width: 460px;
    font-size: 18px;
  }
  #harrell-workbench .hero-copy h1 {
    font-size: 52px;
    max-width: 510px;
  }
  #harrell-workbench .sky {
    height: 700px;
    object-position: 50% top;
  }
  #harrell-workbench .demo-stage {
    max-width: 600px;
    width: 100%;
    margin: auto;
  }
  #harrell-workbench .demo-shell {
    grid-template-columns: 140px 1fr;
  }
  #harrell-workbench .workflow {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  #harrell-workbench .section {
    padding: 57px 0;
  }
  #harrell-workbench .section-head {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }
  #harrell-workbench .works {
    grid-template-columns: 1fr;
  }
  #harrell-workbench .research-row {
    grid-template-columns: 1fr 30px;
    gap: 8px;
  }
  #harrell-workbench .research-row .category {
    grid-column: 1/-1;
  }
  #harrell-workbench .contact-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 28px;
  }
  #harrell-workbench .contact-note {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 25px 0 0;
  }
  #harrell-workbench .footer {
    align-items: flex-start;
  }
  #harrell-workbench .glass-frame:before {
    inset: 10px -7px -10px 7px;
  }
}
@media (max-width: 420px) {
  #harrell-workbench .hero-copy h1 {
    font-size: 44px;
  }
  #harrell-workbench .hero {
    padding-top: 155px;
  }
  #harrell-workbench .sky {
    height: 600px;
  }
  #harrell-workbench .demo-shell {
    grid-template-columns: 1fr;
  }
  #harrell-workbench .demo-side {
    border-right: 0;
    border-bottom: 1px solid #ffffff10;
    padding: 9px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
  }
  #harrell-workbench .side-heading,
  #harrell-workbench .project-name {
    display: none;
  }
  #harrell-workbench .file {
    width: auto;
    flex: 1;
    padding: 8px 5px;
    font-size: 12.5px;
    justify-content: center;
  }
  #harrell-workbench .file-symbol {
    display: none;
  }
  #harrell-workbench .demo-bar .small {
    font-size: 12.5px;
  }
  #harrell-workbench .demo-bottom {
    flex-wrap: wrap;
  }
  #harrell-workbench .project {
    padding: 24px;
  }
  #harrell-workbench .doc-content textarea {
    font-size: 16px;
  }
  #harrell-workbench .hero-actions {
    gap: 10px;
  }
  #harrell-workbench .nav-links {
    font-size: 13px;
  }
}
@media (prefers-reduced-transparency: reduce) {
  #harrell-workbench .glass-frame {
    background: #222c3c;
  }
  #harrell-workbench .ghost {
    background: #182231;
  }
}
@media (forced-colors: active) {
  #harrell-workbench .sky {
    display: none;
  }
  #harrell-workbench .copy-button,
  #harrell-workbench .pill,
  #harrell-workbench .file {
    border: 1px solid ButtonText;
  }
}

#harrell-workbench > .nav {
  position: relative;
  z-index: 3;
  margin-bottom: -94px;
}
#harrell-workbench .hero {
  padding-top: 330px;
}
@media (min-width: 1700px) {
  #harrell-workbench .hero {
    padding-top: 369px;
  }
}
@media (max-width: 1050px) {
  #harrell-workbench .hero {
    padding-top: 304px;
  }
}
@media (max-width: 760px) {
  #harrell-workbench > .nav {
    margin-bottom: -108px;
  }
  #harrell-workbench .hero {
    padding-top: 293px;
  }
}
@media (max-width: 420px) {
  #harrell-workbench .hero {
    padding-top: 263px;
  }
}

html,
body {
  margin: 0;
  padding: 0;
  background: #0a1621;
}
html {
  scroll-behavior: auto;
}
#harrell-workbench main {
  display: block;
}

#harrell-workbench .opening {
  isolation: isolate;
}

/* Approved shortcut appearance: each badge stays beside its own label. */
#harrell-workbench .nav-links { flex-wrap: wrap; }
#harrell-workbench .nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
#harrell-workbench .nav-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 1px solid #fff;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  flex-shrink: 0;
}
@media (max-width: 760px) {
  #harrell-workbench .nav-links { justify-content: flex-start; gap: 4px 22px; }
}

/* Production alignment with DESIGN.md 0.1.1. */
#harrell-workbench { --control-outline: #758397; --control-surface: #182231; }
#harrell-workbench .doc-content h3 { font-family: Plein, sans-serif; font-weight: 500; }
#harrell-workbench .doc-content textarea { font-family: "Space Grotesk", sans-serif; }
#harrell-workbench .doc-switch button { min-height: 44px; }
#harrell-workbench .doc-content textarea { border: 1px solid var(--control-outline); border-radius: 5px; }
#harrell-workbench .demo[data-edited="true"] .doc-content h3 { font-family: "Space Grotesk", sans-serif; }

.detail-page { padding-top: 160px; padding-bottom: 72px; min-height: 75vh; }
#harrell-workbench .detail-page h1 { max-width: 18ch; font-size: clamp(38px, 5vw, 68px); }
#harrell-workbench .detail-lead { font-size: 21px; margin: 24px 0 12px; max-width: 62ch; }
.detail-section { max-width: 68ch; margin: 40px 0; }
#harrell-workbench .detail-section h2 { font-size: 28px; margin-bottom: 16px; }
.detail-action, .detail-back { margin-top: 32px; }
#harrell-workbench:not(.js-ready) .doc-switch,
#harrell-workbench:not(.js-ready) .copy-button,
#harrell-workbench:not(.js-ready) [data-explain] { display: none; }

/* The product iframe owns its original typography, tokens and application CSS. */
.product-demo-viewport { width:100%; overflow:hidden; aspect-ratio:700 / 520; border-radius:9px; background:#171621; }
.product-demo-frame { display:block; width:700px; height:520px; border:0; transform-origin:top left; }
#harrell-workbench .demo-bottom a { text-decoration:underline; text-underline-offset:4px; }

/* Nathan: give the live desktop demo a substantially larger working area. */
@media (min-width: 1101px) {
  #harrell-workbench .hero.wrap { width:min(1840px,calc(100% - 96px)); grid-template-columns:minmax(320px,0.74fr) minmax(0,1.7fr); gap:48px; }
}
@media (max-width: 1100px) {
  #harrell-workbench .hero { grid-template-columns:minmax(0,1fr); gap:40px; }
  #harrell-workbench .demo-stage { width:100%; max-width:none; }
}
.product-demo-viewport { aspect-ratio:700 / 640; }
.product-demo-frame { height:640px; }

/* Published research uses the existing reading tokens with proper document spacing. */
#harrell-workbench .published-body p { margin-bottom:1.1em; }
#harrell-workbench .published-body h2, #harrell-workbench .published-body h3 { margin-top:1.5em; margin-bottom:.65em; }
#harrell-workbench .published-body ul, #harrell-workbench .published-body ol { padding-left:1.5em; margin-bottom:1.1em; }
#harrell-workbench .published-body li + li { margin-top:.35em; }
#harrell-workbench .published-body img { max-width:100%; height:auto; }
#harrell-workbench .published-body pre { overflow:auto; padding:16px; background:var(--panel); border-radius:8px; }
#harrell-workbench .detail-section code { overflow-wrap:anywhere; }
#harrell-workbench .published-body blockquote { margin:1.2em 0; padding-left:1em; border-left:2px solid var(--violet); }
