/* The diagrams retain their own instrument palette against a dark board. */
.featured {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line); gap: clamp(15px,2.5vw,35px); margin: 0 0 clamp(29px,4vw,55px)}
.featured a {min-width: 0; padding: 15px 0 0; text-decoration: none; display: grid; grid-template-columns: minmax(65px,.7fr) minmax(0,1.2fr); gap: 3px 12px; align-items: center; align-content: start}
.featured img {grid-row: 1 / span 3; display: block; width: 100%; aspect-ratio: 1.55; object-fit: cover; background: #28453a}
.featured small {font-size: .77rem; font-weight: 620; color: var(--rust)}
.featured b {font: 500 clamp(20px,1.65vw,25px)/1.12 var(--serif); letter-spacing: -.03em}
.featured span {font-size: .8rem; line-height: 1.35; color: var(--quiet)}
.featured a:hover b {text-decoration: underline; text-underline-offset: .18em}
.bench {display: grid; grid-template-columns: minmax(0,1.32fr) minmax(0,.86fr); align-items: start; gap: clamp(25px,4.2vw,65px); border-top: 2px solid var(--green); padding-top: 20px}
.plate {min-width: 0; background: radial-gradient(ellipse at 45% 35%,#305750 0%,#1e403a 66%,#1c3931 100%); border: 1px solid #203d33; color: #edf0de; position: relative; isolation: isolate}
.plate::before {content: ''; z-index: -1; position: absolute; inset: 0; background: linear-gradient(#d9e4d40a 1px,transparent 1px),linear-gradient(90deg,#d9e4d40a 1px,transparent 1px); background-size: 28px 28px}
.platehead,.view-options,.reading,.ctrlbuttons,.pick {display: flex; align-items: center; gap: 7px}
.platehead,.reading {justify-content: space-between}
.platehead {padding: 10px 15px 0; gap: 6px}
.platehead>span {font: italic 18px/1.2 var(--serif)}
.platehead button {border: 1px solid #9bb09b; color: #fff8e5; background: #244337; border-radius: 3px; padding: 7px 10px; font-size: .8rem; min-height: 40px}
.platehead button:hover {background: #3b5946}
.platehead #headset {background: #e0e8c8; border-color: #e0e8c8; color: #233d2e; font-weight: 650}
.platehead button:focus-visible {outline-color: #ffbb60}
.plate svg {width: 100%; height: auto; max-height: 410px; display: block; touch-action: pan-y}
.plate svg text {pointer-events: none}
.reading {margin: 0 16px; padding: 14px 0 6px; border-top: 1px solid #8ea98f; font-size: .92rem; line-height: 1.35; flex-wrap: wrap}
.reading strong {color: #f0d19a; font: 600 clamp(20px,2.5vw,34px)/1.1 var(--sans); letter-spacing: -.03em}
.plate>p {font-size: .83rem; line-height: 1.4; padding: 0 16px 13px; color: #d4dfcc}
.plate #xr-status {color: #fff1bd}
.controls {min-width: 0; padding-top: 4px}
.controls h2 {font-size: clamp(23px,2.25vw,32px); line-height: 1.19; letter-spacing: -.034em; margin-bottom: 20px}
.control {padding: 10px 0; border-bottom: 1px solid var(--line)}
.control .clabel {font-size: .92rem; font-weight: 650; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px}
.control output {font-weight: 600; color: var(--rust); font-variant-numeric: tabular-nums}
.control input {width: 100%; margin: 0; accent-color: #2e583e; min-height: 38px; cursor: pointer}
.pick,.ctrlbuttons,.view-options {flex-wrap: wrap}
.pick button,.plain,.primary {border: 1px solid #a8b49e; border-radius: 3px; background: var(--sheet); color: var(--ink); padding: 8px 12px; font-size: .9rem; line-height: 1.35; min-height: 44px}
.pick [aria-pressed=true],.primary {background: var(--green); color: white; border-color: var(--green)}
.pick button:not([aria-pressed=true]):hover,.plain:hover {background: #e9eddd}
.primary:hover {background: #325c40}
.ctrlbuttons {margin-top: 17px}
.worksheet {margin-block: clamp(24px,3.5vw,50px); display: grid; grid-template-columns: minmax(0,1.32fr) minmax(0,.86fr); gap: clamp(25px,4.2vw,65px)}
.worksheet>section {border-top: 1px solid #94a28c; padding-top: 14px; min-width: 0}
.worksheet h2 {font-size: clamp(25px,2.1vw,32px); margin-bottom: 7px}
.worksheet p {font-size: .93rem; color: var(--quiet)}
.tablewrap {overflow-x: auto}
table {width: 100%; border-collapse: collapse; font-size: .85rem; margin-top: 12px}
td,th {text-align: left; padding: 8px 5px; border-bottom: 1px solid var(--line); vertical-align: top}
th {color: var(--green); background: #edf0de}
#feedback:not(:empty) {font-weight: 600; color: var(--green); margin-top: 10px}
.question-options [aria-pressed=true] {border-left: 3px solid #688052; background: #e7ebdb}
.manual-details,#source-note {border-top: 1px solid var(--line); padding-top: 7px}
#source-note {color: var(--quiet); font-size: .87rem}
#station:not([hidden])~#source-note {display: none}
.wide .bench {grid-template-columns: 1fr}
.wide .plate svg {max-height: 66vh}
.wide #controls {display: flex; flex-wrap: wrap; gap: 12px 25px}
.wide .control {min-width: min(180px,100%); flex: 1}
@media(max-width:850px) {
  .featured a {display: block}
  .featured img {aspect-ratio: 2.4; margin-bottom: 7px}
  .featured small,.featured b,.featured span {display: block}
  .featured span {margin-top: 4px}
}
@media(max-width:760px) {
  .bench,.worksheet {grid-template-columns: 1fr; gap: 18px}
  .bench {padding-top: 13px}
  .platehead {padding: 10px 11px 0}
  .platehead button {min-height: 44px}
  .plate svg {max-height: 330px}
  .controls h2 {margin-bottom: 8px}
  .control input {min-height: 44px}
  .featured {gap: 11px}
  .featured a {padding-top: 10px}
  .featured b {font-size: 18px}
  .featured span {display: none}
  .featured img {aspect-ratio: 1.55}
}
@media(max-width:400px) {
  .featured img {aspect-ratio: 1.4}
  .featured b {font-size: 17px}
  .platehead {flex-wrap: wrap}
}
