[hidden] { display: none !important; }

.journey { background: var(--paper); }
.journey .labtitle { margin-bottom: clamp(24px, 4vw, 48px); }
.journey-layout { border-block: 1px solid #bdc8be; }
.journey-layout.enhanced {
  display: grid;
  grid-template-columns: minmax(230px, .77fr) minmax(0, 2fr);
  background: white;
}
.route-menu {
  background: #18201b;
  color: #f5f7f3;
  padding: clamp(16px, 2.5vw, 34px);
}
.route-menu h3, .route-jump label {
  display: block;
  color: #aabbb0;
  font: 700 11px/1.45 "DM Sans", Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.route-menu h3 { margin: 0 0 6px; }
.route-menu ol { list-style: none; padding: 0; margin: 0 0 20px; }
.route-menu ol:last-child { margin-bottom: 0; }
.route-menu button {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: #e0e7df;
  padding: 6px 9px;
  text-align: left;
  font: 600 13px/1.35 "DM Sans", Arial, sans-serif;
}
.route-menu button span { color: #9aafa2; font: 12px ui-monospace, monospace; }
.route-menu button:hover { background: #253029; }
.route-menu button[aria-current="step"] { border-color: var(--a); background: #293c31; color: white; }
.route-menu button[aria-current="step"] span { color: #64e6c9; }
.route-menu button:focus-visible, .route-jump select:focus-visible { outline: 2px solid #74e9ce; outline-offset: 1px; }
.route-jump { display: none; }
.stage-book {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(22px, 3.7vw, 58px);
  background: white;
}
.route-bar, .route-controls, .spec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.route-bar { padding-bottom: 16px; border-bottom: 1px solid #d7dfd7; }
.route-bar > span { color: #226755; font: 700 12px/1.4 ui-monospace, monospace; }
.route-bar button, .route-controls button, .route-controls .cta {
  margin: 0;
  border: 1px solid #c2ccc3;
  background: white;
  color: var(--ink);
  padding: 9px 15px;
  font: 700 13px/1.4 "DM Sans", Arial, sans-serif;
}
.route-controls #route-next, .route-controls .cta { background: var(--ink); color: white; border-color: var(--ink); }
.route-bar button[aria-pressed="true"] { border-color: #19856c; color: #146a56; }
.route-controls button:disabled { color: #626c63; border-color: #d5dbd4; background: #f1f3ef; cursor: default; }
.stage { padding-block: clamp(22px, 3vw, 40px); }
.stage + .stage, .route-group + .route-group { border-top: 1px solid #d7dfd7; }
.enhanced .stage, .enhanced .route-group { border-top: 0; }
.enhanced .stage { animation: reveal-stage .33s ease-out; }
.stage > small, .specimen > small { color: #246c59; }
.stage h3 {
  font-size: clamp(37px, 4vw, 68px);
  max-width: 21ch;
  line-height: .99;
  letter-spacing: -.025em;
  margin: 12px 0 16px;
}
.stage > p { color: #3c4840; max-width: 65ch; }
.route-controls { margin-top: auto; border-top: 1px solid #d7dfd7; padding-top: 18px; }
.stage-visual {
  margin: 22px 0 0;
  overflow: hidden;
  border: 1px solid #c6d1c7;
  background: #f1f5ee;
}
.stage-visual img { display: block; width: 100%; height: auto; }
.stage-photo img { aspect-ratio: 1.9; object-fit: cover; }
#pv-installation .stage-photo img { object-position: center 72%; }
.stage-visual figcaption {
  border-top: 1px solid #c6d1c7;
  padding: 9px 15px;
  background: #f7f9f4;
  color: #31453a;
  font-size: 14px;
  line-height: 1.5;
}
.stage-detail { margin-top: 14px; }
.stage-detail summary {
  width: fit-content;
  color: #1b624c;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.stage-detail summary:focus-visible { outline: 2px solid #16826a; outline-offset: 3px; }
.stage-detail .specimen { margin-top: 8px; }
.specimen { border: 1px solid #c4d0c6; background: #f3f6f1; padding: clamp(14px, 2vw, 24px); }
.specimen.paper { background: #faf9f3; border-top: 3px solid #59665c; }
.specimen.dark-spec { background: #1a241e; color: white; }
.spec-head { padding-bottom: 10px; border-bottom: 1px dashed #b1bcb1; }
.spec-head b { font: 700 14px/1.4 ui-monospace, monospace; }
.specimen dl { margin: 10px 0 0; }
.specimen dl div { display: grid; grid-template-columns: minmax(90px, .8fr) 1.4fr; gap: 12px; padding-block: 3px; }
.specimen dt { font-size: 13px; color: #546359; }
.specimen dd { margin: 0; font-weight: 700; font-size: 14px; }
.dark-spec dt, .dark-spec .spec-head small { color: #afc5b7; }
.dark-spec .spec-head { border-color: #647a69; }
.signature-line { display: flex; flex-wrap: wrap; gap: 22px; padding-top: 12px; color: #226a54; font-weight: 700; }
.ack-spec .spec-head b { color: #17634e; }
.ack-spec.paper { border-top-color: #16775d; }
.aftercare { max-width: 76ch; margin-top: 22px; color: #49534b; }
#events #journal-empty { display: block; color: #556358; }
.ledger time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger > div:not(:first-child) { grid-template-columns: minmax(7.5em, .65fr) 1fr 2fr; }
.receipt { width: min(100%, 340px); }
.receipt h3 { font-size: clamp(35px, 3.6vw, 52px); }
.receipt dl div { align-items: baseline; padding-block: 2px; }
.receipt p { margin: 0 0 12px; }
#signal[data-online="false"] { color: #d9d8cb; }
@keyframes reveal-stage { from { opacity: .4; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 840px) {
  .journey-layout.enhanced { display: block; }
  .route-menu { padding: 12px 18px 15px; }
  .route-menu #route-list { display: none; }
  .route-jump { display: grid; gap: 6px; }
  .route-jump select {
    width: 100%; min-width: 0; border: 1px solid #586f60; color: white; background: #24332a;
    padding: 10px; font: 600 15px/1.4 "DM Sans", Arial, sans-serif;
  }
}
@media (max-width: 760px) {
  .ledger > div:not(:first-child) { grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; }
}
@media (max-width: 420px) {
  .stage-book { padding: 16px; }
  .route-controls button, .route-controls .cta { padding: 9px 11px; }
  .stage-photo img { aspect-ratio: 1.5; }
  .stage-visual figcaption { padding: 8px 11px; }
  .specimen dl div { grid-template-columns: 1fr; gap: 0; padding-block: 5px; }
  .printer { padding: 22px 12px; }
  .receipt { transform: none; padding-inline: 16px; }
}
