/* A printed service record and station departure board, inside the existing cab. */
.engineering-board { margin-top: 24px; text-align: left; }
.board-heading { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 10px; font: 9px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.engineering-board ol { list-style: none; padding: 0; margin: 0; border-top: 1px solid #38594a4d; }
.engineering-board li { border-bottom: 1px solid #38594a4d; }
.engineering-board a { display: grid; grid-template-columns: 22px 1fr 18px; align-items: center; gap: 9px; padding: 12px 0; color: inherit; text-decoration: none; }
.board-track { align-self: start; padding-top: 2px; font: 9px/1.5 var(--mono); opacity: .75; }
.board-work { display: grid; gap: 3px; }
.board-work small { font: 9px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.board-work strong { font: 600 22px/1.2 Arial, sans-serif; letter-spacing: -.025em; }
.board-work > span { font: 10px/1.5 Arial, sans-serif; }
.board-arrow { justify-self: end; transition: transform .15s; }
.engineering-board a:hover .board-arrow { transform: translate(2px, -2px); }
.engineering-board a:hover .board-work strong { text-decoration: underline; text-underline-offset: 4px; }
.hero-copy .engineering-board { max-width: 400px; }
.cab-stop-card { border-top: 3px solid #c1d29e; }
.cab-profession { color: #f4eacb; font: 600 12px/1.6 Arial, sans-serif; margin: 0 0 10px; }
.cab-stop-card #cab-stop-summary { max-width: none; }
.cab-stop-card .engineering-board { margin-top: 18px; }
.cab-stop-card .board-heading { color: #c8d8bc; font-size: 8px; }
.cab-stop-card .engineering-board ol, .cab-stop-card .engineering-board li { border-color: #dce5d333; }
.cab-stop-card .engineering-board a { padding-block: 11px; }
.cab-stop-card .board-work strong { color: #f4eacb; font-size: 22px; }
.cab-stop-card .board-work small { color: #baceac; font-size: 8px; }
.cab-stop-card .board-work > span { color: #dce5d3; font-size: 10px; }
.cab-stack { font: 9px/1.7 var(--mono); color: #d0ddc3; margin: 14px 0 0; }
.cab-card-actions { display: flex; align-items: center; flex-shrink: 0; gap: 16px; margin-top: 14px; border-top: 1px solid #dce5d333; }
.cab-stop-card #cab-details { flex: 1; width: auto; margin-top: 0; border-top: 0; }
.cab-cv { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 10px/1.5 Arial, sans-serif; padding: 10px 4px; color: #dce5d3; }
.cab-result { padding: 15px 0; margin-top: 15px; border-block: 1px solid #dce5d333; }
.cab-result strong, .cab-result span { display: block; }
.cab-result strong { font: 600 25px/1.25 Arial, sans-serif; color: #f4eacb; }
.cab-result span { font: 10px/1.6 Arial, sans-serif; color: #dce5d3; margin-top: 5px; }
.engineering-record { padding-block: 110px; display: grid; grid-template-columns: 1fr 1.35fr; gap: 9%; border-top: 1px solid var(--line); }
.record-intro h2 { font-size: clamp(35px, 4vw, 58px); line-height: 1.1; letter-spacing: -.05em; margin: 20px 0; }
.record-intro > p:last-child { max-width: 350px; font-size: 16px; line-height: 1.8; }
.record-story + .record-story { margin-top: 65px; padding-top: 50px; border-top: 1px solid #b7c0af; }
.record-category { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font: 10px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.record-category > span:first-child { width: 26px; height: 26px; border: 1px solid #738775; border-radius: 50%; display: grid; place-items: center; }
.record-category > span:last-child { color: #5d6c60; font-size: 9px; }
.record-story h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.12; letter-spacing: -.04em; margin: 22px 0; }
.record-result { border-block: 1px solid #abbba3; padding: 21px 0; margin-bottom: 26px; }
.record-result strong { display: block; font: 600 clamp(30px, 4vw, 43px)/1.15 Arial, sans-serif; letter-spacing: -.04em; color: #234638; }
.record-result > span { display: block; font: 10px/1.7 var(--mono); margin-top: 9px; }
.record-explanation { margin: 0; }
.record-explanation > div + div { margin-top: 19px; }
.record-explanation dt { font: 600 11px/1.5 Arial, sans-serif; margin-bottom: 7px; }
.record-explanation dd { margin: 0; font: 14px/1.8 Arial, sans-serif; color: #46564d; }
.record-flow { display: flex; margin: 25px 0; padding: 0; list-style: none; border-block: 1px solid #bfc8b8; }
.record-flow li { flex: 1; position: relative; padding: 14px 15px 14px 0; font: 10px/1.6 var(--mono); }
.record-flow li + li { padding-left: 19px; }
.record-flow li + li::before { content: '→'; position: absolute; left: -2px; color: #60754e; }
.record-principle { background: #e5e8d9; border-left: 3px solid #59734f; padding: 17px 20px; }
.record-principle .eyebrow { font-size: 8px; margin-bottom: 8px; }
.record-principle > p:last-child { font: 14px/1.8 Arial, sans-serif; }
.record-context { font: 11px/1.8 Arial, sans-serif; color: #56624f; margin: 20px 0; }
.immersive .engineering-record { display: none; }
.record-tabs { display: flex; padding: 0 26px; border-bottom: 1px solid #cbd0c0; background: #e7e9dc; }
.record-tabs button { flex: 1; border: 0; border-bottom: 3px solid transparent; padding: 14px 7px 11px; min-height: 48px; text-align: left; font: 10px/1.5 var(--mono); color: #3a4f3e; }
.record-tabs button[aria-pressed='true'] { border-color: #345f44; background: #dce2cc; color: #173d2c; }
#stop-dialog-content .record-story h3 { font-size: 36px; }
#stop-dialog-content .record-result strong { font-size: 40px; }
#stop-dialog-content .record-story { color: #203d30; }
@media (min-width: 901px) and (min-height: 551px) {
  .cab-stop-card { width: 330px; max-height: calc(100dvh - 132px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #a8ba96 #15362d; }
}
@media (min-width: 601px) and (max-width: 900px) and (min-height: 551px) {
  .cab-stop-card { top: 105px; bottom: auto; max-height: calc(100dvh - 135px); overflow-y: auto; }
}
@media (max-width: 760px) {
  .engineering-record { grid-template-columns: 1fr; gap: 40px; padding-block: 60px; }
  .record-intro > p:last-child { max-width: none; }
}
@media (max-width: 600px) {
  .cab-brand small { font-size: 7px; }
  .cab-stop-card { display: flex; flex-direction: column; top: calc(76px + env(safe-area-inset-top)); bottom: auto; max-height: calc(100dvh - 265px - env(safe-area-inset-bottom)); overflow: hidden; padding: 13px 16px 8px; }
  .cab-briefing-body { min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #a8ba96 #15362d; }
  .cab-stop-card h1 { font-size: 24px; margin: 6px 0; }
  .cab-profession { font-size: 11px; margin-bottom: 6px; }
  .cab-stop-card #cab-stop-summary { display: block; font-size: 11px; line-height: 1.6; }
  .cab-stop-card .engineering-board { margin-top: 10px; }
  .cab-stop-card .board-heading { padding-bottom: 6px; font-size: 7px; }
  .cab-stop-card .engineering-board a { padding-block: 8px; grid-template-columns: 18px 1fr 16px; }
  .cab-stop-card .board-work { grid-template-columns: 1fr auto; align-items: center; gap: 2px 9px; }
  .cab-stop-card .board-work small { font-size: 7px; }
  .cab-stop-card .board-work strong { font-size: 16px; }
  .cab-stop-card .board-work > span { grid-column: 1 / -1; font-size: 8px; }
  .cab-stop-card .cab-stack { display: none; }
  .cab-card-actions { margin-top: 8px; }
  .cab-stop-card #cab-details { width: auto; height: auto; min-height: 44px; border: 0; border-radius: 0; font-size: 10px; justify-content: space-between; margin-top: 0; }
  .cab-stop-card #cab-details > span { font-size: 15px; }
  .cab-result { padding: 9px 0; margin-top: 10px; }
  .cab-result strong { font-size: 21px; }
  .cab-result span { font-size: 9px; }
  .record-tabs { padding-inline: 10px; }
  .record-tabs button { font-size: 8px; padding-inline: 8px; }
  #stop-dialog-content .record-story h3 { font-size: 29px; }
  #stop-dialog-content .record-result strong { font-size: 33px; }
}
@media (max-width: 360px) {
  .cab-interface .cab-brand small { white-space: normal; font-size: 7px; line-height: 1.4; }
}
@media (max-height: 700px) and (min-width: 601px) {
  .cab-stop-card .board-work > span, .cab-stack { display: none; }
  .cab-stop-card .engineering-board a { padding-block: 7px; }
}
@media (max-height: 550px) and (orientation: landscape) {
  .cab-stop-card { top: 92px; bottom: 16px; max-height: calc(100dvh - 108px); overflow-y: auto; }
  .cab-profession { font-size: 11px; }
  .cab-stop-card #cab-proof, .cab-stack { display: none; }
  .cab-stop-card #cab-stop-summary { display: block; font-size: 11px; }
  .cab-result { padding-block: 8px; margin-top: 8px; }
  .cab-result strong { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .board-arrow { transition: none; } }
@media print { .engineering-record { display: block; padding-block: 30px; } .record-story { break-inside: avoid; } }
