@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&display=swap");

:root {
  --ink: #13110f;
  --ink-soft: #292521;
  --paper: #f1ede5;
  --paper-warm: #e6dfd3;
  --red: #b52a2d;
  --red-bright: #d23a3c;
  --gold: #c4a264;
  --line-dark: rgba(255, 255, 255, 0.16);
  --line-light: rgba(19, 17, 15, 0.16);
  --sans: "DM Sans", Arial, sans-serif;
  --serif: "Libre Caslon Display", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 999;
  left: 1rem;
  top: -5rem;
  padding: 0.75rem 1rem;
  background: white;
  color: black;
}

.skip-link:focus {
  top: 1rem;
}

.monogram {
  display: grid;
  place-items: center;
  width: 2.4rem;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.intro {
  position: fixed;
  z-index: 100;
  inset: 0;
  overflow: hidden;
  background: #171310;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.intro.is-leaving {
  opacity: 0;
  transform: scale(1.015);
}

.intro-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 12, 10, 0.1), rgba(14, 12, 10, 0.6)),
    url("panos/084.tiles/preview.jpg") center / cover no-repeat;
  filter: saturate(0.75) contrast(1.04);
  transform: scale(1.025);
}

.intro-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 8, 0.9) 0%, rgba(12, 10, 8, 0.7) 37%, rgba(12, 10, 8, 0.18) 72%),
    linear-gradient(0deg, rgba(12, 10, 8, 0.76), transparent 48%);
}

.intro-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.2rem, 3vw, 3.2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro-header a,
.course-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.intro-header strong,
.intro-header small,
.course-brand strong,
.course-brand small {
  display: block;
}

.intro-header strong {
  font-size: 0.72rem;
}

.intro-header small {
  margin-top: 0.17rem;
  opacity: 0.67;
  font-size: 0.58rem;
}

.intro-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(48rem, 88vw);
  min-height: calc(100vh - 9rem);
  padding: 3rem clamp(1.2rem, 5vw, 5.5rem) 5rem;
}

.kicker {
  margin: 0 0 1.15rem;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.intro-copy h1 {
  max-width: 45rem;
  margin: 0;
  font: 400 clamp(3.6rem, 7.3vw, 8.2rem) / 0.86 var(--serif);
  letter-spacing: -0.055em;
}

.intro-copy h1 em {
  color: #f2c9b7;
  font-style: italic;
}

.intro-copy > p:not(.kicker) {
  max-width: 41rem;
  margin: 1.7rem 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(0.98rem, 1.45vw, 1.24rem);
  line-height: 1.55;
}

.intro-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.primary-action,
.quiet-action {
  border: 0;
  cursor: pointer;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  min-height: 3.4rem;
  padding: 0.85rem 1.25rem;
  background: var(--red);
  color: white;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease;
}

.primary-action:hover {
  background: var(--red-bright);
  transform: translateY(-1px);
}

.quiet-action {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  font-size: 0.76rem;
}

.primary-action--dark {
  background: var(--ink);
}

.quiet-action--dark {
  border-color: rgba(19, 17, 15, 0.4);
  color: var(--ink);
}

.inline-action {
  margin-top: 1rem;
}

.intro-facts {
  display: flex;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin: 2.3rem 0 0;
}

.intro-facts div {
  display: grid;
  gap: 0.1rem;
}

.intro-facts dt {
  font: 400 1.5rem var(--serif);
}

.intro-facts dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.disclosure {
  position: absolute;
  z-index: 1;
  right: clamp(1.2rem, 3vw, 3.2rem);
  bottom: 1.4rem;
  max-width: 28rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.course {
  display: none;
  min-height: 100vh;
  background: var(--ink);
}

.course.is-active {
  display: block;
  animation: reveal-course 0.5s ease both;
}

@keyframes reveal-course {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.course-header {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) minmax(15rem, 0.7fr) auto;
  align-items: center;
  min-height: 4.7rem;
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid var(--line-dark);
  background: #151310;
}

.course-brand strong {
  font: 400 1rem var(--serif);
}

.course-brand small {
  margin-top: 0.14rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.55rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.course-progress {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.6rem;
  text-transform: uppercase;
}

.progress-track {
  position: relative;
  display: block;
  width: min(10rem, 12vw);
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.progress-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--red-bright);
  transition: width 0.3s ease;
}

.course-header nav {
  display: flex;
  gap: 0.15rem;
}

.course-header nav button {
  padding: 0.6rem 0.62rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.course-header nav button:hover {
  color: white;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 27rem);
  height: calc(100vh - 4.7rem - 6rem - 9.1rem);
  min-height: 28rem;
}

.viewer-wrap {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #080808;
}

.pano {
  width: 100%;
  height: 100%;
}

.viewer-overlay {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
}

.viewer-overlay--top {
  top: 1rem;
  right: 1rem;
  left: 1rem;
  justify-content: space-between;
}

.viewer-overlay--bottom {
  left: 1rem;
  bottom: 0.9rem;
  gap: 0.4rem;
}

.viewer-overlay button {
  pointer-events: auto;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(10, 10, 10, 0.48);
  cursor: pointer;
  color: white;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.look-closer {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.65rem 0.35rem 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(20, 17, 15, 0.65);
  color: white;
  cursor: pointer;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.look-closer span {
  display: grid;
  place-items: center;
  width: 1.65rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
  font-size: 1rem;
}

.look-closer:hover {
  background: rgba(20, 17, 15, 0.9);
  transform: translate(-50%, -50%) scale(1.03);
}

.story-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-left: 1px solid var(--line-light);
  background: var(--paper);
  color: var(--ink);
}

.story-heading {
  padding: 1.3rem 1.45rem 0.95rem;
  border-bottom: 1px solid var(--line-light);
}

.story-heading > p:first-child {
  margin: 0 0 0.65rem;
  color: var(--red);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.story-heading h2 {
  margin: 0;
  font: 400 clamp(1.65rem, 2.25vw, 2.45rem) / 0.98 var(--serif);
  letter-spacing: -0.025em;
}

.stop-meta {
  margin: 0.65rem 0 0;
  color: rgba(19, 17, 15, 0.58);
  font-size: 0.62rem;
  line-height: 1.4;
}

.story-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 1.45rem;
  border-bottom: 1px solid var(--line-light);
}

.story-tabs button {
  position: relative;
  padding: 0.8rem 0.2rem 0.72rem;
  border: 0;
  background: transparent;
  color: rgba(19, 17, 15, 0.5);
  cursor: pointer;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-tabs button[aria-selected="true"] {
  color: var(--ink);
}

.story-tabs button[aria-selected="true"]::after {
  position: absolute;
  right: 0.35rem;
  bottom: -1px;
  left: 0.35rem;
  height: 2px;
  background: var(--red);
  content: "";
}

.story-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.1rem 1.45rem;
  font-family: Georgia, serif;
  font-size: 0.89rem;
  line-height: 1.55;
}

.story-content p {
  margin: 0 0 0.85rem;
}

.story-content .thesis {
  margin-bottom: 1rem;
  padding-left: 0.8rem;
  border-left: 2px solid var(--red);
  font-family: var(--serif);
  font-size: 1.07rem;
  line-height: 1.35;
}

.layer-label {
  color: var(--red);
  font: 700 0.59rem var(--sans);
  letter-spacing: 0.12em;
}

.look-list {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 1.4rem;
  padding: 0;
  list-style: none;
}

.look-list li {
  position: relative;
  padding-left: 1.4rem;
}

.look-list li::before {
  position: absolute;
  left: 0;
  color: var(--red);
  content: "◎";
}

.story-content blockquote {
  margin: 1rem 0 1.2rem;
  font: 400 1.45rem/1.25 var(--serif);
}

.studio-prompt {
  font: 400 1.35rem/1.28 var(--serif);
}

.thinking-prompt {
  color: rgba(19, 17, 15, 0.62);
  font-size: 0.79rem;
}

.notebook-inline {
  padding: 0.65rem 0;
  border: 0;
  border-bottom: 1px solid rgba(19, 17, 15, 0.35);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 700 0.63rem var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.story-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 0.65rem 1.45rem;
  border-top: 1px solid var(--line-light);
}

.story-actions button {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.complete-button {
  text-align: left;
}

.complete-button span {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  aspect-ratio: 1;
  margin-right: 0.35rem;
  border: 1px solid rgba(19, 17, 15, 0.34);
  border-radius: 50%;
  color: transparent;
}

.complete-button.is-complete span {
  border-color: var(--red);
  background: var(--red);
  color: white;
}

.source-button {
  color: rgba(19, 17, 15, 0.56) !important;
}

.story-navigation {
  display: grid;
  grid-template-columns: 2.5rem 1fr 2.5rem;
  align-items: center;
  min-height: 2.7rem;
  border-top: 1px solid var(--line-light);
}

.story-navigation button {
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.1rem;
}

.story-navigation span {
  color: rgba(19, 17, 15, 0.55);
  font-size: 0.57rem;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.audio-dock {
  display: grid;
  grid-template-columns: auto minmax(13rem, 0.7fr) minmax(13rem, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  height: 6rem;
  padding: 0.8rem 1.2rem;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: #1d1a17;
}

.audio-play {
  display: grid;
  place-items: center;
  width: 3.1rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 0.8rem;
}

.audio-copy {
  min-width: 0;
}

.audio-copy p,
.audio-copy strong,
.audio-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-copy p {
  margin: 0 0 0.22rem;
  color: var(--gold);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.audio-copy strong {
  font: 400 0.95rem var(--serif);
}

.audio-copy span {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.58rem;
}

.audio-time {
  display: grid;
  grid-template-columns: 2.4rem 1fr 2.4rem;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.56rem;
  text-align: center;
}

.audio-time input {
  width: 100%;
  accent-color: var(--red-bright);
}

.audio-rate {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.55rem;
  text-transform: uppercase;
}

.audio-rate select {
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: white;
  font-size: 0.62rem;
}

.journey-toggle {
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.journey-toggle[aria-pressed="true"] {
  border-color: var(--red-bright);
  color: white;
}

.route-rail {
  height: 9.1rem;
  overflow: hidden;
  background: #12100e;
}

.route-track {
  display: flex;
  gap: 0.55rem;
  height: 100%;
  overflow-x: auto;
  padding: 0.65rem 1.2rem 0.85rem;
  scroll-behavior: smooth;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.route-card {
  display: grid;
  grid-template-columns: 6rem 8.5rem;
  flex: 0 0 auto;
  height: 6.8rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: #1c1916;
  color: white;
  cursor: pointer;
  text-align: left;
  opacity: 0.62;
  transition: border 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.route-card:hover,
.route-card.is-active {
  border-color: rgba(255, 255, 255, 0.55);
  opacity: 1;
  transform: translateY(-1px);
}

.route-card.is-active {
  border-bottom-color: var(--red-bright);
  border-bottom-width: 3px;
}

.route-image {
  position: relative;
  overflow: hidden;
}

.route-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.route-image i {
  position: absolute;
  right: 0.35rem;
  top: 0.35rem;
  display: none;
  place-items: center;
  width: 1.2rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
  font-size: 0.65rem;
  font-style: normal;
}

.route-card.is-complete .route-image i {
  display: grid;
}

.route-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.6rem 0.65rem;
}

.route-copy small {
  margin-bottom: 0.42rem;
  color: var(--gold);
  font-size: 0.5rem;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.route-copy strong {
  font: 400 0.82rem/1.13 var(--serif);
}

dialog {
  width: min(48rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  overflow: auto;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.5);
}

dialog::backdrop {
  background: rgba(8, 7, 6, 0.77);
  backdrop-filter: blur(3px);
}

.dialog-shell {
  position: relative;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.dialog-close {
  position: absolute;
  right: 1rem;
  top: 0.8rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 400 2rem var(--serif);
}

.dialog-shell h2 {
  max-width: 38rem;
  margin: 0 0 1.2rem;
  font: 400 clamp(2rem, 4.2vw, 3.7rem) / 0.98 var(--serif);
  letter-spacing: -0.035em;
}

.dialog-shell h3 {
  margin: 1.8rem 0 0.5rem;
  font: 400 1.3rem var(--serif);
}

.dialog-shell > p:not(.kicker),
.plain-list {
  color: rgba(19, 17, 15, 0.68);
  font: 400 0.94rem/1.65 Georgia, serif;
}

.route-list {
  display: grid;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-light);
}

.route-list li {
  border-bottom: 1px solid var(--line-light);
}

.route-list button {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.8rem 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.route-list span {
  color: var(--red);
  font-size: 0.6rem;
}

.route-list strong {
  font: 400 1rem var(--serif);
}

.route-list small {
  color: rgba(19, 17, 15, 0.5);
  font-size: 0.55rem;
}

.dialog-shell--notes textarea {
  width: 100%;
  resize: vertical;
  padding: 1rem;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink);
  font: 400 1rem/1.5 Georgia, serif;
}

.dialog-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 2rem;
}

.resource-grid article {
  padding: 1.1rem;
  border: 1px solid var(--line-light);
}

.resource-grid span {
  color: var(--red);
  font-size: 0.6rem;
}

.resource-grid h3 {
  margin: 0.7rem 0 0.5rem;
}

.resource-grid p {
  margin: 0;
  color: rgba(19, 17, 15, 0.65);
  font: 400 0.78rem/1.5 Georgia, serif;
}

.plain-list {
  padding-left: 1.2rem;
}

.plain-list li {
  margin-bottom: 0.5rem;
}

.notice {
  margin: 1.5rem 0;
  padding: 1.1rem;
  border-left: 3px solid var(--red);
  background: rgba(181, 42, 45, 0.06);
}

.notice strong {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notice p {
  margin: 0.45rem 0 0;
  color: rgba(19, 17, 15, 0.66);
  font: 400 0.82rem/1.55 Georgia, serif;
}

.source-list {
  display: grid;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-light);
}

.source-list li {
  border-bottom: 1px solid var(--line-light);
}

.source-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.source-list a:hover {
  color: var(--red);
}

.print-record {
  display: none;
}

@media (max-width: 960px) {
  .course-header {
    grid-template-columns: 1fr auto;
  }

  .course-progress {
    display: none;
  }

  .workspace {
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 23rem);
  }

  .audio-dock {
    grid-template-columns: auto minmax(10rem, 0.8fr) 1fr auto;
  }

  .audio-rate {
    display: none;
  }
}

@media (max-width: 740px) {
  body.course-entered {
    overflow: auto;
  }

  .intro-header > span,
  .disclosure {
    display: none;
  }

  .intro-copy {
    min-height: calc(100vh - 5rem);
    padding-top: 1.5rem;
  }

  .intro-copy h1 {
    font-size: clamp(3.3rem, 16vw, 5.6rem);
  }

  .intro-actions,
  .intro-facts {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro-facts {
    gap: 0.8rem;
  }

  .intro-facts div {
    grid-template-columns: 3.5rem 1fr;
    align-items: baseline;
  }

  .course-header {
    position: sticky;
    z-index: 20;
    top: 0;
    grid-template-columns: 1fr auto;
    min-height: 4rem;
    padding: 0.55rem 0.8rem;
  }

  .course-header nav button {
    display: none;
  }

  .course-header nav button[data-dialog="route-dialog"],
  .course-header nav button[data-dialog="notes-dialog"] {
    display: inline-block;
  }

  .course-brand small {
    display: none;
  }

  .workspace {
    display: block;
    height: auto;
    min-height: 0;
  }

  .viewer-wrap {
    height: 54vh;
    min-height: 22rem;
  }

  .story-panel {
    min-height: 35rem;
    border-left: 0;
  }

  .story-content {
    min-height: 15rem;
  }

  .audio-dock {
    position: sticky;
    z-index: 18;
    bottom: 0;
    grid-template-columns: auto 1fr auto;
    gap: 0.7rem;
    height: auto;
    min-height: 5.2rem;
    padding: 0.65rem 0.75rem;
  }

  .audio-time,
  .audio-rate {
    display: none;
  }

  .journey-toggle {
    max-width: 6rem;
    padding: 0.55rem;
  }

  .route-rail {
    height: 8.4rem;
  }

  .route-track {
    padding-inline: 0.7rem;
  }

  .route-card {
    grid-template-columns: 5.2rem 7.4rem;
    height: 6.2rem;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .route-list button {
    grid-template-columns: 1.7rem 1fr;
  }

  .route-list small {
    display: none;
  }

  .dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  @page {
    size: letter;
    margin: 0.55in;
  }

  body {
    background: white;
    color: black;
  }

  body > * {
    display: none !important;
  }

  body[data-print="record"] .print-record {
    display: block !important;
  }

  body[data-print="educator"] #resources-dialog {
    position: static;
    display: block !important;
    width: auto;
    max-height: none;
    overflow: visible;
    box-shadow: none;
  }

  body[data-print="educator"] #resources-dialog .dialog-close,
  body[data-print="educator"] #educator-print {
    display: none;
  }

  .print-record {
    font-family: Arial, sans-serif;
  }

  .print-record header {
    padding-bottom: 0.2in;
    border-bottom: 2px solid #111;
  }

  .print-record header p {
    margin: 0 0 0.05in;
    font-size: 8pt;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .print-record h1 {
    margin: 0.04in 0;
    font: 28pt Georgia, serif;
  }

  .print-record h2 {
    margin: 0.22in 0 0.1in;
    font: 17pt Georgia, serif;
  }

  .print-record h3 {
    margin-bottom: 0.05in;
    font: 12pt Georgia, serif;
  }

  .print-stop-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.05in 0.2in;
    padding: 0;
    list-style: none;
  }

  .print-stop-list li {
    display: grid;
    grid-template-columns: 0.18in 1fr;
    gap: 0.05in;
    color: #777;
    font-size: 8pt;
    break-inside: avoid;
  }

  .print-stop-list li.done {
    color: black;
  }

  .print-stop-list strong,
  .print-stop-list small {
    display: block;
  }

  .print-stop-list small {
    margin-top: 0.02in;
    color: #666;
    font-size: 7pt;
  }

  .print-record article {
    break-inside: avoid;
  }

  .print-record article p {
    margin-top: 0.04in;
    font: 9.5pt/1.35 Georgia, serif;
  }

  .print-writing-lines {
    height: 0.45in;
    background: repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 0.21in,
      #bbb 0.22in
    );
  }

  .print-record footer {
    margin-top: 0.25in;
    padding-top: 0.08in;
    border-top: 1px solid #aaa;
    font-size: 7pt;
  }
}
