html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--rw-bg);
  font-size: 13px;
  line-height: 1.5;
}
a:not(.rw-button) {
  color: inherit;
  text-underline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 26px;
  letter-spacing: -0.04em;
  font-weight: 550;
}
h3 {
  font-size: 18px;
  letter-spacing: -0.025em;
  font-weight: 600;
}
p {
  margin-top: 10px;
}
button,
select {
  font-family: inherit;
}
.workshop {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  padding: 32px 28px;
  border-right: 1px solid var(--rw-line);
  position: sticky;
  top: 0;
  height: 100dvh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: var(--rw-surface);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 44px;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.1em;
  margin-bottom: 30px;
}
.brand .rw-icon {
  --rw-icon-size: 32px;
  color: var(--rw-gold);
}
.sidebar h1 {
  font-size: 33px;
  line-height: 1.13;
  letter-spacing: -0.055em;
  margin-top: 16px;
}
.sidebar p {
  font-size: 12px;
  color: var(--rw-muted);
  line-height: 1.8;
}
.sidebar nav {
  display: grid;
  gap: 20px;
  margin-top: 40px;
  font-size: 12px;
}
.sidebar nav a {
  text-decoration: none;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-bottom > a {
  display: inline-block;
  font-size: 11px;
  margin-top: 20px;
}
main {
  padding: 30px 34px;
  min-width: 0;
  max-width: 1700px;
}
.lab-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 28px;
  gap: 24px;
}
.lab-top h2 {
  margin-top: 5px;
}
.lab-top label {
  display: grid;
  gap: 7px;
}
.lab-top select {
  width: 242px;
  font-size: 12px;
  letter-spacing: 0;
}
.stage {
  padding: 26px;
  border: 1px solid var(--rw-line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--rw-surface) 30%, var(--rw-bg));
  background-image: radial-gradient(var(--rw-line) 0.6px, transparent 0.6px);
  background-size: 12px 12px;
}
.stage-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.stage-heading h2 {
  margin-top: 5px;
  font-size: 23px;
}
.resources {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  box-shadow: none;
  margin-bottom: 20px;
}
.rw-resource:last-child {
  border: 0;
}
.rw-resource {
  padding: 15px 13px;
}
.rw-resource strong {
  font-size: 21px;
}
.rw-resource small {
  font-size: 10px;
}
.stage-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.stage-grid > .rw-panel {
  padding: 19px;
  gap: 17px;
}
.stage-grid p {
  font-size: 12px;
}
.person {
  display: flex;
  gap: 12px;
  align-items: center;
}
.person h3 {
  font-size: 19px;
}
.person p {
  margin-top: 2px;
}
.portrait {
  width: 54px;
  height: 62px;
  border-radius: 20px 20px 12px 12px;
  background: var(--rw-soft);
  color: var(--rw-accent);
  display: grid;
  place-items: center;
  font-size: 45px;
  flex-shrink: 0;
}
.rw-slot {
  min-height: 84px;
}
.item-info {
  padding-top: 10px;
  border-top: 1px solid var(--rw-line);
}
.item-info p {
  margin-top: 4px;
}
.stage-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}
.stage-bottom p {
  font-size: 10px;
  margin: 0;
}
.rw-dock .rw-button {
  min-width: 67px;
  padding: 10px;
}
.section {
  margin-top: 38px;
  scroll-margin-top: 24px;
}
.section-heading {
  margin-bottom: 18px;
}
.section-heading h2 {
  font-size: 24px;
  margin-top: 5px;
}
.section .rw-panel > p {
  margin-bottom: 20px;
  font-size: 12px;
}
.section .rw-disclosure {
  margin-top: 20px;
  padding-bottom: 0;
  font-size: 12px;
}
pre {
  overflow: auto;
  font-size: 12px;
  white-space: pre-wrap;
}
.architecture {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--rw-line);
  padding: 22px 0;
  gap: 28px;
}
.architecture p {
  color: var(--rw-muted);
  font-size: 12px;
  margin-bottom: 12px;
}
.architecture code {
  font-size: 10px;
}
.lab-footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--rw-muted);
  margin-top: 45px;
  padding-block: 24px;
  border-top: 1px solid var(--rw-line);
}
.rw-dialog h2 {
  margin-block: 14px;
}
.rw-dialog form {
  margin-top: 28px;
}
@media (width < 1000px) {
  .workshop {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--rw-line);
  }
  .sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    margin-top: 20px;
  }
  .sidebar nav a {
    display: flex;
    align-items: center;
    min-block-size: 44px;
  }
  .sidebar-bottom {
    margin-top: 16px;
  }
  .brand {
    margin-bottom: 16px;
  }
  main {
    padding: 24px 16px;
  }
  .lab-top,
  .stage-heading,
  .stage-bottom,
  .lab-footer {
    flex-wrap: wrap;
  }
  .lab-top label,
  .lab-top select {
    max-inline-size: 100%;
  }
  .resources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stage-grid,
  .architecture {
    grid-template-columns: minmax(0, 1fr);
  }
  .stage {
    padding: 16px;
  }
  .rw-row,
  .rw-panel__header {
    flex-wrap: wrap;
  }
  .rw-ledger {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    column-gap: 8px;
  }
  .rw-ledger__row > * {
    min-inline-size: 0;
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Desktop panel density is controlled by the panel, not a phone breakpoint. */
main {
  container: workshop / inline-size;
}
@container workshop (inline-size < 980px) {
  .section > .rw-grid {
    grid-template-columns: 1fr;
  }
}
