body {
  color-scheme: light;
}
body[data-place="amazing-prime"] {
  background: #eadcc1;
  color: #302b25;
}
.prime-workspace {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 350px;
  gap: 1.25rem;
  align-items: start;
  padding: 0 clamp(1rem, 2vw, 2rem) 2rem;
}
.prime-intro,
.prime-instructions {
  background: #fffdf1;
  padding: 1rem;
  border: 1px solid #b4a084;
  border-radius: 12px;
  min-width: 0;
}
.prime-intro h1 {
  font-size: 2.4rem;
}
.prime-intro h2,
.prime-instructions h2 {
  font-size: 1.2rem;
  color: #544631;
}
.prime-intro p,
.prime-instructions p {
  font-size: 1rem;
  line-height: 1.5;
}
.prime-intro .eyebrow {
  font-size: .76rem;
  letter-spacing: .1em;
  white-space: nowrap;
}
body[data-place="amazing-prime"] .prime-intro .numberland-destinations {
  gap: .35rem;
  margin: .85rem 0;
}
body[data-place="amazing-prime"] .prime-intro .numberland-destinations a {
  min-height: 38px;
  padding: .45rem .65rem;
}
.prime-logo {
  width: 100%;
  height: auto;
}
.mode-buttons,
.route-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0;
}
.mode-buttons button {
  font-size: 1rem;
}
.prime-instructions > .mode-buttons {
  padding-bottom: .8rem;
  border-bottom: 1px solid currentColor;
}
.mode-buttons button[aria-pressed="true"] {
  background: #bb8c34;
  color: #172f37;
  border-color: #70582c;
}
.prime-centre {
  min-width: 0;
  position: relative;
  background: #f5e8cb;
  border-radius: 14px;
  overflow: hidden;
  min-height: 650px;
}
.painted-depot {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.painted-depot > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.depot-name {
  position: absolute;
  left: 40%;
  top: 3%;
  width: 24%;
  background: #fff5daee;
  border: 2px solid #7e633a;
  border-radius: 7px;
  padding: 0.2rem;
}
.depot-name img {
  display: block;
  width: 100%;
}
#depot-interactive {
  position: relative;
  padding: 240px 1rem 1.2rem;
}
.prime-yard {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(130px, 2fr);
  grid-template-areas: "van dock" "van odd";
  gap: 1rem;
  align-items: start;
}
.prime-van {
  grid-area: van;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  background: #ece2c5;
  border: 4px solid #637775;
  border-radius: 30px 9px 9px 30px;
  box-shadow: 0 6px 0 #293e3b;
  position: relative;
  min-height: 205px;
}
.prime-van:before,
.prime-van:after {
  content: "";
  position: absolute;
  left: 14px;
  width: 34px;
  height: 12px;
  background: #283330;
  border-radius: 4px;
  top: -12px;
}
.prime-van:after {
  top: auto;
  bottom: -12px;
}
.prime-cab {
  border-right: 4px solid #637775;
  background: #ded9c4;
  border-radius: 25px 0 0 25px;
  padding: 0.6rem 0.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.windscreen {
  width: 22px;
  height: 60px;
  border-radius: 18px 4px 4px 18px;
  border: 3px solid #637775;
  background: #8ca7a8;
}
.prime-cab img {
  width: 52px;
  margin: 0.7rem 0;
}
.prime-cab > span {
  font: bold 15px Georgia;
  color: #233f49;
}
.prime-bed {
  min-width: 0;
  background: #c3bba3;
}
.bed-label {
  font: 700 9px/1.3 system-ui;
  text-align: center;
  margin: 0.5rem;
}
.bed-scroll {
  overflow-x: auto;
  padding: 0.6rem;
  min-height: 120px;
}
.manual-bed,
.van-bed {
  display: grid;
  gap: 5px;
  width: max-content;
  min-height: 80px;
}
.parcel,
.empty-slot {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid #937140;
  border-radius: 3px;
  background: #cba56c;
  color: #352a19;
  font: 700 12px Georgia;
  position: relative;
  box-shadow: 2px 3px 0 #67573355;
}
.parcel:before {
  content: "";
  position: absolute;
  left: 40%;
  width: 20%;
  height: 100%;
  background: #f4db9a99;
}
.parcel span {
  position: relative;
  background: #f6e9c5;
  padding: 1px 3px;
}
.manual-parcel {
  cursor: grab;
  touch-action: none;
}
.manual-parcel[aria-pressed="true"] {
  outline: 3px solid #9d432d;
  outline-offset: 2px;
}
.empty-slot {
  background: #f1e7cc77;
  border: 2px dashed #8b846f;
  color: #635d4e;
  box-shadow: none;
}
.parcel-dock {
  grid-area: dock;
  background: #fff4dbd9;
  border: 3px solid #947b51;
  border-radius: 6px;
  padding: 0.6rem;
  min-width: 0;
}
.parcel-dock h3,
.canvas-crate h3 {
  font-size: 1rem;
  margin: 0.2rem 0;
}
.parcel-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 55px;
  margin: 0.5rem 0;
}
.canvas-crate {
  grid-area: odd;
  position: relative;
  background: repeating-linear-gradient(90deg, #dbcba9 0 3px, #dfd0b1 3px 6px);
  border: 6px solid #71837b;
  border-radius: 5px;
  padding: 0.6rem;
  box-shadow:
    inset 0 0 0 2px #7e735b,
    3px 5px 0 #6f685733;
}
.canvas-crate:before,
.canvas-crate:after {
  content: "";
  position: absolute;
  top: -10px;
  width: 28px;
  height: 9px;
  border: 3px solid #71837b;
  border-radius: 4px;
  left: 16px;
}
.canvas-crate:after {
  left: auto;
  right: 16px;
}
.canvas-crate h3 {
  background: #fff8df;
  padding: 0.2rem 0.4rem;
  display: inline-block;
  border: 1px solid #947b51;
}
.canvas-crate .small {
  font-size: 0.8rem;
  margin: 0.2rem 0;
  color: #544631;
}
.prime-yard button:not(.parcel):not(.empty-slot) {
  font-size: 0.8rem;
  padding: 0.4rem;
  min-height: 40px;
  width: 100%;
}
.auto-yard {
  grid-template-areas: "van ." "van odd";
  grid-template-columns: minmax(0, 3fr) minmax(120px, 2fr);
}
.deliveries {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.8rem 0;
}
.deliveries button {
  flex: 1 1 45%;
  font-size: 0.85rem;
  padding: 0.5rem;
}
.deliveries button[aria-pressed="true"] {
  background: #bb8c34;
  color: #172f37;
}
.prime-instructions .controls {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}
.prime-instructions input,
.prime-instructions select {
  width: 100%;
  color-scheme: light;
  color: #302b25;
  background: white;
}
.prime-instructions option {
  background: white;
  color: #302b25;
}
.prime-instructions button {
  font-size: 1rem;
}
.prime-instructions .readout {
  font-size: 0.95rem;
  padding: 0.8rem;
}
.prime-instructions details {
  font-size: 0.95rem;
}
.dispatch {
  border-top: 1px solid #b4a084;
  margin-top: 1rem;
}
.dispatch .controls {
  flex-direction: column;
}
#manifest {
  font-size: 0.95rem;
  background: #f0e9d5;
  padding: 0.7rem;
}
.prime-intro details p {
  font-size: 0.9rem;
}
footer {
  color: #544631;
}
@media (max-width: 1100px) {
  .prime-workspace {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .prime-intro {
    grid-row: 1 / span 2;
  }
  .prime-instructions {
    grid-column: 2;
  }
  .prime-centre {
    min-height: 650px;
  }
}
@media (max-width: 720px) {
  .prime-workspace {
    display: flex;
    flex-direction: column;
    padding: 0 1rem 2rem;
    gap: 1rem;
  }
  .prime-intro,
  .prime-centre,
  .prime-instructions {
    width: 100%;
  }
  .prime-yard {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "dock" "van" "odd";
  }
  .auto-yard {
    grid-template-areas: "van" "odd";
  }
  .prime-centre {
    min-height: 0;
  }
  #depot-interactive {
    padding-top: 200px;
  }
  .depot-name {
    width: 35%;
    left: 35%;
    top: 2%;
  }
  .prime-logo {
    max-width: 180px;
    display: block;
    margin: auto;
  }
  .prime-van {
    min-height: 180px;
  }
  .parcel-dock .parcel-tray {
    min-height: 60px;
  }
}

/* Match the other Numberland locations: no extra gap below navigation. */
body[data-place="amazing-prime"] { padding-top: var(--site-nav-height, 110px) !important; }
