/* Service guide: cards, work instruction, exploded-view controls.
   The card look follows /showcase/details.css. */
a { -webkit-tap-highlight-color: transparent; }
input[type=range]:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }

/* ---- top bar: the one persistent call to action ---- */
.cta-link {
  display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 15px;
  border: 1px solid #fa794780; border-radius: 5px; background: #fa79470d;
  color: #ffd9c9; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.cta-link span { font-size: 15px; line-height: 1; }
.cta-link:hover { background: var(--accent); border-color: var(--accent); color: #191e22; }
.text-button:disabled { opacity: .5; }

/* ---- numbered markers on the model ---- */
.hotspot { padding: 3px; gap: 0; border-color: #ffffff3d; background: rgba(22, 31, 39, .86); }
.hotspot span { width: 20px; height: 20px; font-size: 8.5px; font-variant-numeric: tabular-nums; color: #d5e0e8; border-color: #9cafbd55; }
.hotspot em { font-style: normal; max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .25s ease, padding .25s ease; }
.hotspot:hover em, .hotspot:focus-visible em, .hotspot.active em { max-width: 170px; padding: 0 10px 0 8px; }
.hotspot.active em { font-weight: 600; }
.hotspot.dim { opacity: .5; }
.hotspot.dim:hover, .hotspot.dim:focus-visible { opacity: 1; }
.job-active .hotspots { display: none; }
.hover-label {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; white-space: nowrap;
  padding: 6px 10px; border-radius: 5px; background: rgba(20, 28, 35, .94); border: 1px solid #b7cfdf30;
  color: #eef3f6; font-size: 11px; font-weight: 500; box-shadow: 0 6px 22px #0005;
}

/* ---- cards ---- */
.info-card {
  --card-muted: #aebdc7;
  left: 42px; top: 122px; width: 388px;
  max-height: calc(100dvh - 258px);
  color: #edf3f6; background: #18222bf7;
  border: 1px solid #b7cfdf38; border-radius: 14px;
  box-shadow: 0 24px 70px #07101866, inset 0 1px 0 #ffffff08;
  backdrop-filter: blur(20px);
  overflow: hidden; isolation: isolate;
}
.card-top { padding: 16px 18px 0; gap: 12px; }
.card-category { display: flex; align-items: center; gap: 10px; }
.card-number {
  display: grid; place-items: center; width: 28px; height: 28px;
  border: 1px solid #fa794754; border-radius: 7px;
  color: #ffa174; background: #fa79470b;
  font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.card-number svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card-top .eyebrow { color: #c1cdd5; font-size: 9px; letter-spacing: 1.35px; }
.info-card .close-button {
  width: 34px; height: 34px; flex-shrink: 0; color: #b6c4ce;
  border: 1px solid #b7cfdf20; border-radius: 50%; background: transparent;
  transition: background .18s, color .18s;
}
.info-card .close-button:hover { background: #ffffff10; color: #fff; }
.info-card .close-button svg { width: 16px; height: 16px; }
.card-body { padding: 0 20px 18px; scrollbar-color: #637583 transparent; overscroll-behavior: contain; }
.card-body:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.card-body h2 { margin: 10px 0 8px; font-size: 28px; line-height: 1.2; font-weight: 550; letter-spacing: -1px; color: #f4f7f9; }
.card-body #infoCopy, .card-body .job-text { display: block; font-size: 13px; line-height: 1.6; color: #bcc9d2; margin: 0; }
.info-card .card-footer { padding: 10px 14px; gap: 12px; background: #121c25; border-top: 1px solid #adc8db24; min-height: 62px; }
.card-arrow, .card-next { border: 1px solid #bed3e52b; background: transparent; border-radius: 7px; min-height: 40px; transition: background .18s, border-color .18s; }
.card-arrow { width: 40px; flex-shrink: 0; display: grid; place-items: center; color: #c3d1db; }
.card-arrow:disabled { opacity: .35; cursor: default; }
.card-arrow svg, .card-next svg { width: 17px; height: 17px; }
.card-next { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-left: auto; padding: 6px 10px; min-width: 139px; text-align: left; color: #f0f4f7; }
.card-next > span { display: grid; gap: 3px; }
.card-next small { color: #9fb0bd; font-size: 7px; letter-spacing: 1.2px; font-weight: 500; }
.card-next strong { font-size: 12px; font-weight: 550; }
.card-next svg { color: #ffa174; flex-shrink: 0; }
.card-arrow:hover:not(:disabled), .card-next:hover { background: #ffffff0b; border-color: #fa79477a; }
.card-next.primary { background: var(--accent); border-color: var(--accent); color: #1b2024; padding: 6px 14px; }
.card-next.primary strong { font-weight: 700; }
.card-next.primary svg { color: #1b2024; }
.card-next.primary:hover { background: #ff9466; border-color: #ff9466; }
.card-pagination { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.card-pagination #infoIndex, .card-pagination #jobIndex { color: #b3c2cd; font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.card-progress { display: flex; gap: 3px; }
.card-progress i { width: 7px; height: 2px; background: #60758466; border-radius: 1px; }
.card-progress i.active { background: #ffa174; }

/* service note inside an assembly card */
.service-note { margin: 16px 0 0; background: #101b24; border: 1px solid #8cabb824; border-radius: 8px; overflow: hidden; }
.service-note header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 13px 8px; border-bottom: 1px solid #99bdd21a; }
.service-note header span { font-size: 8px; font-weight: 600; letter-spacing: 1.3px; color: #acbecb; }
.service-note header em, .example-tag {
  font-style: normal; font-size: 8px; font-weight: 600; letter-spacing: .7px; text-transform: uppercase;
  color: #ffb894; border: 1px solid #fa794755; border-radius: 20px; padding: 3px 7px; white-space: nowrap;
}
.service-note dl { margin: 0; padding: 4px 13px 8px; }
.service-note dl div, .job-facts div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid #99bdd214; }
.service-note dl div:last-child, .job-facts div:last-child { border-bottom: 0; }
.service-note dt, .job-facts dt { font-size: 10px; font-weight: 600; letter-spacing: .5px; color: #8fa5b5; text-transform: uppercase; padding-top: 2px; }
.service-note dd, .job-facts dd { margin: 0; font-size: 12px; line-height: 1.5; color: #dbe5eb; }
.inline-action {
  margin-top: 14px; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 11px 13px; border: 1px solid #fa794766; border-radius: 7px; background: #fa79470f; color: #ffd9c9;
  font-size: 12px; font-weight: 600; text-align: left; transition: background .2s, color .2s;
}
.inline-action span { font-size: 15px; line-height: 1; }
.inline-action:hover { background: var(--accent); color: #191e22; }

/* the work instruction */
.job-progress { display: flex; gap: 4px; padding: 6px 18px 0; flex-shrink: 0; }
.job-progress button { flex: 1; height: 20px; padding: 8px 0; border: 0; background: none; cursor: pointer; border-radius: 3px; }
.job-progress button::before { content: ''; display: block; height: 4px; border-radius: 2px; background: #60758466; transition: background .25s; }
.job-progress button.done::before { background: #ffa174a6; }
.job-progress button.active::before { background: var(--accent); box-shadow: 0 0 10px #fa794766; }
.job-progress button:hover::before { background: #ffc3a6; }
.job-progress button:focus-visible { outline-offset: 0; }
.job-name { margin-top: 6px; font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #8fa5b5; }
.job-card .card-body h2 { margin-top: 5px; }
.job-facts { margin: 14px 0 0; padding: 2px 13px; background: #101b24; border: 1px solid #8cabb824; border-radius: 8px; }
.job-track { display: block; width: 74px; height: 2px; background: #60758466; border-radius: 1px; overflow: hidden; }
.job-track i { display: block; height: 100%; background: #ffa174; transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.job-card.finished .card-number { color: #8fe0c2; border-color: #8dd3bd66; background: #8dd3bd12; }
.job-card.finished .job-progress button::before { background: #8dd3bdaa; }
.job-done-points { list-style: none; margin: 14px 0 0; padding: 4px 13px; background: #101b24; border: 1px solid #8cabb824; border-radius: 8px; }
.job-done-points li { position: relative; padding: 8px 0 8px 22px; font-size: 12px; line-height: 1.45; color: #dbe5eb; border-bottom: 1px solid #99bdd214; }
.job-done-points li:last-child { border-bottom: 0; }
.job-done-points li::before { content: ''; position: absolute; left: 2px; top: 12px; width: 9px; height: 5px; border-left: 2px solid #8dd3bd; border-bottom: 2px solid #8dd3bd; transform: rotate(-45deg); }
.job-pitch { margin: 14px 0 0; font-size: 12px; line-height: 1.55; color: #aebdc7; }
.job-done-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.job-done-actions .primary-button { padding: 12px 16px; gap: 18px; text-decoration: none; font-size: 12px; }
.job-done-actions .primary-button > span { font-size: 17px; }
.ghost-button { padding: 12px 15px; border: 1px solid #8295a566; border-radius: 5px; background: #ffffff05; color: #edf2f5; font-size: 12px; font-weight: 550; }
.ghost-button:hover { background: #ffffff10; }

/* ---- bottom bar ---- */
.simulation-button { min-width: 150px; }
.simulation-button svg { fill: none; }
.simulation-state { min-width: 178px; }
.simulation-state strong { white-space: nowrap; }
.job-active .state-dot { background: #ffb477; box-shadow: 0 0 12px #fa79475c; }
.explode-control { display: flex; align-items: center; gap: 14px; margin-left: auto; flex: 1; max-width: 560px; min-width: 0; }
.explode-control .tour-button { margin-left: 0; flex-shrink: 0; min-width: 118px; }
.tour-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.tour-button[aria-pressed=true] { border-color: #fa7947a6; background: #fa794717; color: #ffd9c9; }
.tour-button:disabled, .simulation-button:disabled, input[type=range]:disabled { cursor: default; }
.job-active .tour-button:disabled, .job-active input[type=range]:disabled { opacity: .32; }
.xray-button { margin-left: 0; }
.explode-slider { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; font-size: 10px; color: #a3afba; white-space: nowrap; }
.explode-slider input {
  --fill: 0%;
  -webkit-appearance: none; appearance: none; flex: 1; min-width: 60px; height: 26px; margin: 0; background: transparent; cursor: pointer; touch-action: none;
}
.explode-slider input::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--fill), #ffffff26 var(--fill)); }
.explode-slider input::-moz-range-track { height: 3px; border-radius: 3px; background: #ffffff26; }
.explode-slider input::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--accent); }
.explode-slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7.5px; border-radius: 50%; background: #f3f6f8; border: 4px solid var(--accent); box-shadow: 0 2px 10px #0006; }
.explode-slider input::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #f3f6f8; border: 4px solid var(--accent); box-shadow: 0 2px 10px #0006; }
.explode-slider input:disabled::-webkit-slider-thumb { border-color: #7d8b96; }
.bottom-meta > span:last-child { color: #c9b7ac; }
.exhibit-number { font-weight: 600; }
.embed-cta { display: none; }

@media (min-width: 1600px) {
  .info-card { left: 60px; top: 150px; width: 404px; }
  .card-body #infoCopy, .card-body .job-text { font-size: 14px; }
  .service-note dd, .job-facts dd { font-size: 13px; }
}
@media (max-width: 1180px) and (min-width: 701px) {
  .simulation-state { display: none; }
  .explode-slider > span { display: none; }
}
@media (max-width: 1050px) and (min-width: 701px) {
  .info-card { left: 26px; top: 110px; width: 352px; }
  .card-body h2 { font-size: 26px; }
  .explode-control .tour-button { min-width: 0; }
}
@media (min-width: 701px) and (max-height: 800px) {
  .info-card { top: 112px; max-height: calc(100dvh - 254px); }
  .card-top { padding-top: 10px; }
  .card-body { padding-bottom: 12px; }
  .card-body h2 { font-size: 25px; margin-top: 6px; margin-bottom: 6px; }
  .card-body #infoCopy, .card-body .job-text { font-size: 12px; line-height: 1.5; }
  .service-note { margin-top: 12px; }
  .service-note dl div, .job-facts div { padding: 6px 0; }
  .info-card .card-footer { min-height: 56px; padding-top: 7px; padding-bottom: 7px; }
}
@media (max-width: 700px) {
  #fullscreenButton { display: none; }
  .header-actions { gap: 9px; }
  .header-actions .text-button { width: 34px; height: 34px; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: #ffffff08; padding: 0; }
  .cta-link { height: 34px; padding: 0 11px; font-size: 10.5px; gap: 6px; }
  .cta-link span { font-size: 13px; }
  .brand { font-size: 19px; gap: 6px; letter-spacing: -1px; }
  .brand-symbol { width: 25px; height: 25px; }
  .brand small { display: none; }
  .intro p br { display: none; }
  .intro p { max-width: 270px; }
  .info-card { top: auto; left: 12px; right: 12px; bottom: 96px; width: auto; max-height: 47dvh; border-radius: 13px; }
  .card-top { padding: 9px 12px 0; }
  .card-category { gap: 8px; }
  .card-number { width: 24px; height: 24px; font-size: 9px; border-radius: 5px; }
  .card-top .eyebrow { font-size: 8px; letter-spacing: 1px; }
  .info-card .close-button { width: 32px; height: 32px; }
  .card-body { padding: 0 14px 12px; }
  .card-body h2 { font-size: 22px; margin: 4px 0 5px; letter-spacing: -.7px; }
  .card-body #infoCopy, .card-body .job-text { display: block; font-size: 12.5px; line-height: 1.5; }
  .service-note { margin-top: 10px; }
  .service-note header { padding: 8px 11px 6px; }
  .service-note dl { padding: 2px 11px 4px; }
  .service-note dl div, .job-facts div { grid-template-columns: 78px 1fr; gap: 8px; padding: 6px 0; }
  .job-facts { margin-top: 10px; padding: 1px 11px; }
  .job-progress { padding: 3px 12px 0; }
  .job-name { margin-top: 2px; font-size: 9px; }
  .info-card .card-footer { min-height: 54px; padding: 6px 11px; gap: 10px; }
  .card-next { min-width: 132px; }
  .card-next.primary { min-height: 42px; }
  .job-track { width: 56px; }
  .hotspot { padding: 2px; }
  .hotspot span { width: 18px; height: 18px; font-size: 7.5px; }
  .bottom-ui { bottom: 12px; left: 12px; right: 12px; }
  .simulation-bar { gap: 8px; min-height: 58px; padding: 7px; }
  .simulation-button { min-width: 0; padding: 0 13px; gap: 7px; height: 44px; white-space: nowrap; }
  .simulation-state { display: none; }
  .explode-control { gap: 8px; }
  .explode-control .tour-button, .xray-button { width: 42px; height: 44px; min-width: 0; padding: 0; flex-shrink: 0; }
  .tour-button > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .explode-slider > span { display: none; }
  .explode-slider input { min-width: 40px; height: 44px; }
  .bottom-meta { padding-top: 8px; font-size: 8.5px; }
  .bottom-meta > span:first-child { display: none; }
  .bottom-meta > span:last-child { display: flex; font-size: 7px; letter-spacing: .5px; color: #a99a91; text-align: center; }
  .bottom-meta .tiny-cross { display: none; }
  .exhibit-caption { bottom: 112px; }
  .exploring .exhibit-caption { display: none; }
  .job-done-actions .primary-button, .ghost-button { padding: 11px 13px; }
}
@media (max-width: 380px) {
  .cta-link { padding: 0 9px; font-size: 10px; }
  .brand { font-size: 17px; }
  .simulation-button { padding: 0 10px; font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .hotspot em, .job-track i { transition: none !important; }
}
