/* White-on-blue engineering drawing sheet, title block, annotations and workshop exterior. */
body {
  background-color: var(--bg);
  background-image: url('./blueprint-grid.svg');
}

.stage {
  background-color: var(--bg);
  background-image: url('./blueprint-grid.svg');
}

.stage::before {
  content: '';
  position: absolute;
  inset: 13px;
  border: 1px solid #cedfed44;
  pointer-events: none;
  z-index: -1;
}

/* Original workshop artwork, integrated into the nav bar's continuous bottom rule. */
.site-header {
  background: var(--bg) url('./blueprint-grid.svg');
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px #081c3059;
}

.wordmark::before,
.wordmark::after {
  content: '';
  position: absolute;
  bottom: 3.48%;
  height: 1px;
  pointer-events: none;
  transition: opacity .25s ease;
}

.wordmark::before {
  right: calc(100% - 5px);
  width: calc(var(--pad) + 8px);
  background: linear-gradient(to left, #dce9f5cc 0%, #91b2cb66 45%, #91b2cb55 100%);
}

.wordmark::after {
  left: calc(100% - 5px);
  width: 100vw;
  background: linear-gradient(to right, #dce9f5cc 0%, #91b2cb77 120px, #91b2cb55 100%);
}

.site-header.is-scrolled .wordmark::before {
  background: linear-gradient(to left, #eef5fcee 0%, #91b2cb99 45%, #91b2cb88 100%);
}

.site-header.is-scrolled .wordmark::after {
  background: linear-gradient(to right, #eef5fcee 0%, #91b2cb99 120px, #91b2cb88 100%);
}

.brand-picture {
  display: block;
}

.brand-mark {
  display: block;
  width: 224px;
  height: auto;
}

.header-details {
  text-align: right;
  padding-bottom: 12px;
}

.header-location {
  font-family: var(--type-drawing);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  margin: 0 0 7px;
  color: var(--muted);
}

.contact-link {
  border-color: #c0d3e3;
}

.stage-caption {
  position: absolute;
  z-index: 1;
  color: #c6dbea;
  padding: 10px 0;
  border-top: 1px solid #d9eafa50;
  border-bottom: 1px solid #d9eafa50;
}

.hero h1 span {
  color: #bed5e9;
}

.hero p.hero-intro {
  color: #d4e3ef;
}

.chapter h2 {
  color: #f3f7fb;
}

.chapter p:not(.eyebrow) {
  color: #d5e3ef;
}

.eyebrow {
  color: #f3f7fb;
}

.function-context {
  border-color: #8baac175;
}

.function-context dt {
  color: #eef5fc;
}

.function-context dd {
  color: #c3d8e9;
}

.text-link {
  border-color: #c6deed;
}

.text-link span {
  color: #fff;
}

.scroll-cue > span {
  border-color: #daeaff99;
  color: #fff;
}

.scene-tools {
  color: #c6dbea;
}

.scene-tools button {
  color: #fff;
  border-color: #d3e7f8;
}

.part-label {
  display: none;
}

.annotation-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  color: #fff;
  z-index: 1;
}

.annotation-lines > path {
  stroke: #f5faff;
  stroke-width: 1;
  fill: none;
  opacity: .82;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.annotation-lines #dimension-line {
  stroke-width: .7;
  opacity: .5;
}

.annotation-lines text {
  fill: #c7ddec;
  text-anchor: middle;
}

.hand-note {
  position: absolute;
  color: #fff;
  max-width: 230px;
  pointer-events: none;
  z-index: 2;
  white-space: pre-line;
  transform: rotate(-4deg);
  opacity: 0;
  transition: opacity .25s ease;
}

.note-two {
  transform: rotate(3deg);
}

.drawing-note {
  color: #c9ddeb;
}

.drawing-note > span {
  color: #abc7dd;
}

.drawing-note > a {
  display: inline-block;
  color: #d1e5f4;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color .2s ease;
}

.drawing-note > a:hover {
  color: #fff;
}

.title-block {
  border: 1px solid #b9d7ec99;
  text-align: left;
  margin-bottom: 6px;
  min-width: 245px;
}

.title-block span {
  display: block;
  padding: 3px 10px;
  border-bottom: 1px solid #b9d7ec70;
}

.title-block span:last-child {
  border: 0;
}

.title-block b {
  float: right;
}

.chapter-nav {
  border-color: #b7d5ea66;
}

.chapter-nav a {
  color: #a4c3db;
}

.chapter-nav a span {
  color: #aac8dd;
}

.chapter-nav a:hover,
.chapter-nav a:hover span {
  color: #e4f0f9;
}

.chapter-nav a[aria-current],
.chapter-nav a[aria-current] span {
  color: #fff;
}

.progress-line span {
  background: #fff;
}

.drawing-reference {
  position: relative;
  z-index: 3;
  background: #123c65;
  padding: 25px var(--pad);
  border-top: 1px solid #a4c6df;
  color: #dbe9f4;
}

.drawing-reference summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  transition: color .2s ease;
}

.drawing-reference summary:hover {
  color: #fff;
}

.drawing-reference summary::-webkit-details-marker {
  display: none;
}

.drawing-reference summary span {
  transition: transform .22s ease;
}

.drawing-reference details[open] summary span {
  transform: rotate(45deg);
}

.reference-content {
  max-width: 900px;
  margin: 25px 0 10px;
}

.reference-content p {
  margin: 0 0 18px;
}

.reference-links {
  padding-left: 20px;
}

.reference-links li {
  margin: 9px 0;
}

.reference-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color .2s ease;
}

.reference-links a:hover {
  color: #fff;
}

/* Exterior study: the ink recedes before it reaches the service descriptions. */
.workshop {
  isolation: isolate;
  overflow: hidden;
  background: #163f66;
  color: #f3f7fb;
  border-top: 1px solid #a4c6df;
  border-bottom: 1px solid #a4c6df;
}

.workshop .eyebrow {
  color: #d3e4f1;
}

.workshop-intro {
  color: #dae7f1;
}

.service-list details,
.service-list details:last-child {
  border-color: #91b2cb77;
}

.service-list summary .mono {
  color: #bdd4e4;
}

.service-list details p {
  color: #cadce9;
}

.marques {
  border-color: #91b2cb77;
}

.marques a {
  color: #e4f0f9;
}

.marques span {
  color: #a4c0d5;
}

.workshop-faq {
  background: #143a5e;
  color: #f3f7fb;
  border-bottom: 1px solid #a4c6df;
}

.workshop-faq .eyebrow {
  color: #d3e4f1;
}

/* Fixed drawing height keeps the camera framing independent of open service rows. */
.workshop-drawing {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  overflow-anchor: none;
  left: -7%;
  top: 100px;
  width: 85%;
  height: 640px;
  opacity: .4;
  mask-image: linear-gradient(to right, #000 0%, #000 24%, #0009 53%, transparent 85%);
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 24%, #0009 53%, transparent 85%);
}

.workshop-drawing canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.workshop-callout {
  position: absolute;
  left: 0;
  top: 100px;
  width: 100%;
  height: 640px;
  pointer-events: none;
  color: #f3f7fb;
}

.workshop-callout[hidden] {
  display: none;
}

.workshop-hand-note {
  position: absolute;
  left: var(--pad);
  font-family: var(--type-note);
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  transform: rotate(-4deg);
  transform-origin: left center;
}

.workshop-note-arrow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workshop-arrow-stroke {
  opacity: .85;
}

.contact {
  background: var(--bg) url('./blueprint-grid.svg');
  color: #f3f7fb;
}

.contact .eyebrow {
  color: #d3e4f1;
}

.phone-link,
.contact .text-link {
  border-color: #d2e3f0;
}

.contact .text-link span {
  color: #fff;
}

.contact a:focus-visible,
.workshop summary:focus-visible {
  outline-color: #fff;
}

footer {
  border-top: 1px solid #91b2cb66;
  color: #c9deed;
  background: #113556;
}

.scene-unavailable .annotation-lines,
.scene-unavailable .hand-note {
  display: none;
}

.scene-unavailable .scene-loading {
  background: var(--bg);
  color: #fff;
}

@media (min-width: 1500px) {
  .scene-tools {
    gap: 22px;
  }
}

@media (max-width: 1100px) {
  .title-block {
    min-width: 205px;
  }

  .hand-note {
    max-width: 185px;
  }
}

@media (max-width: 760px) {
  .brand-mark {
    width: 176px;
  }

  .wordmark {
    margin-bottom: -2px;
  }

  .header-details {
    padding-bottom: 10px;
  }

  .header-location {
    display: none;
  }

  .site-header nav {
    gap: 18px;
  }

  .stage::before {
    inset: 9px;
  }

  .stage-caption {
    padding: 7px 0;
  }

  .hand-note {
    max-width: 165px;
  }

  .note-two,
  .annotation-lines #leader-two,
  .annotation-lines #dimension-line,
  .annotation-lines #dimension-label {
    display: none;
  }

  .drawing-reference {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .workshop-drawing {
    left: -18%;
    top: 130px;
    width: 140%;
    height: 420px;
    opacity: .26;
    mask-image: linear-gradient(to right, #000 5%, #0008 45%, transparent 80%);
    -webkit-mask-image: linear-gradient(to right, #000 5%, #0008 45%, transparent 80%);
  }

  .workshop-callout {
    top: 130px;
    height: 420px;
  }

  .workshop-hand-note {
    font-size: 1.5rem;
  }
}

@media print {
  body,
  .site-header,
  .stage,
  .workshop,
  .workshop-faq,
  .contact,
  .drawing-reference,
  footer {
    background: #ffffff !important;
    background-image: none !important;
    color: #123c65 !important;
    border-color: #b7cde0 !important;
  }

  .header-location {
    color: #2c4e6e !important;
  }

  .wordmark::before,
  .wordmark::after {
    background: #8baac1 !important;
  }

  .eyebrow,
  .hero h1,
  .hero h1 span,
  .chapter h2,
  .function-context dt,
  .service-list summary .mono,
  .marques,
  .phone-link,
  .sms-link,
  .text-link,
  .text-link span,
  footer a {
    color: #123c65 !important;
    border-color: #8baac1 !important;
  }

  .hero p.hero-intro,
  .chapter p:not(.eyebrow),
  .function-context dd,
  .workshop-intro,
  .service-list details p,
  .reference-content,
  .marques span,
  .enquiry-intro > p:not(.eyebrow):not(.enquiry-note),
  .preview-notice,
  .preview-next,
  .field-help,
  .enquiry-summary dt,
  .workshop-hours dt {
    color: #2c4e6e !important;
  }

  .workshop-hours dd {
    color: #123c65 !important;
  }

  .workshop-hours {
    border-color: #b7cde0 !important;
  }

  .annotation-lines,
  .hand-note,
  .workshop-drawing,
  .workshop-callout {
    display: none !important;
  }

  .workshop-overview {
    min-height: 0 !important;
  }
}
