/* Lab: the desk as an instrument room (see lab-desk.js). */
/* what the forecast page already says, and the old opening, step aside */
.labdesk main > .intro, .labdesk #today, .labdesk section[aria-labelledby="alerts-h"], .labdesk #desk, .labdesk #method, .labdesk #verify, .labdesk #map { display: none !important; }
/* every instrument folds away until it's picked (still rendered, so its charts keep their width) */
.labdesk .dk-inst { height: 0; overflow: hidden; margin: 0 !important; padding: 0 !important; visibility: hidden; }
.labdesk .dk-inst.open { height: auto; overflow: visible; visibility: visible; margin: 0 !important; }
.room-stage .dk-inst { width: auto; }
.room { padding: 28px 0 8px; }
.room-head h1 { font: 800 clamp(36px, 4.4vw, 54px)/1 var(--cond); margin: 0; }
.room-head p { margin: 8px 0 0; font-size: 17px; color: var(--ink-2); max-width: 46em; text-wrap: pretty; }   /* no word left alone on the last line */
.room-head p a { color: var(--ink); font-weight: 600; text-decoration-color: var(--chip); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.room-head .find { margin-top: 16px; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 22px 0 8px; }
.inst-card { all: unset; position: relative; display: grid; grid-template-columns: 1fr 52px; grid-template-areas: "k wx" "hook wx" "what what"; gap: 4px 10px; cursor: pointer;
  padding: 14px 16px 14px; background: var(--panel); border: 2px solid var(--ink); border-radius: 3px; box-shadow: 3px 3px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.inst-card:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.inst-card.on { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); background: color-mix(in srgb, var(--chip) 22%, var(--panel)); }
.inst-card:focus-visible { outline: 3px solid var(--chip); outline-offset: 3px; }
.ic-wx { grid-area: wx; width: 52px; align-self: start; } .ic-wx svg { width: 100%; height: auto; display: block; }
.ic-k { grid-area: k; font: 700 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ic-hook { grid-area: hook; font: 800 21px/1.12 var(--cond); color: var(--ink); }
.inst-card small { grid-area: what; font-size: 13.5px; color: var(--ink-3); }
.ic-mine { position: absolute; top: -9px; right: 12px; font: 700 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; font-style: normal; background: var(--chip); color: #111; border: 1.5px solid var(--ink); padding: 1px 6px; border-radius: 2px; }
.room-stage { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .inst-card { transition: none; } }
@media (max-width: 600px) { .room-grid { grid-template-columns: 1fr; gap: 12px; } .ic-hook { font-size: 19px; } }
.room-head #ask { width: auto; margin: 18px 0 0; padding: 0; }
.room-head .find { margin-top: 12px; }
.room-mini { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 40; display: flex; gap: 4px; max-width: calc(100% - 24px); overflow-x: auto; scrollbar-width: none;
  padding: 5px; background: var(--panel); border: 2px solid var(--ink); border-radius: 3px; box-shadow: 3px 3px 0 var(--ink); }
.room-mini::-webkit-scrollbar { display: none; }
.room-mini button { all: unset; cursor: pointer; flex: none; padding: 6px 10px; font: 700 13px var(--sans); color: var(--ink-2); border-radius: 2px; white-space: nowrap; }
.room-mini button:hover { background: color-mix(in srgb, var(--chip) 22%, transparent); color: var(--ink); }
.room-mini button.on { background: var(--chip); color: #111; }
.room-mini .rm-top { color: var(--ink-3); border-left: 1.5px solid var(--rule); }
.labdesk #ask[hidden] { display: none !important; }
.room-head .find .findbar .ask-cloud { width: 38px; flex: none; margin-left: 4px; }
.room-head .find { max-width: none; }
.room-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .room-grid { grid-template-columns: 1fr; } }
/* the card already names the notes; inside the room the fold's own header is a second title */
.labdesk #discussion details.fold > summary { display: none; }
/* the synopsis is a few lines now: it sits above the news instead of a tall empty column beside it */
.labdesk #discussion .two { grid-template-columns: 1fr; align-items: start; }
.labdesk .room-head .lens-row { margin: 4px 0 10px; }

/* the horizon beside the title: the skyline runs from "The desk" to the sun at the right edge */
.labdesk .room-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 28px; align-items: end; }
.labdesk .room-head > * { grid-column: 1 / -1; }
.labdesk .room-head > h1 { grid-column: 1; }
.labdesk .room-head > .horizon { grid-column: 2; height: 96px; margin: 0 0 6px; }
@media (max-width: 600px) { .labdesk .room-head > .horizon { height: 72px; } }
/* the room starts close under the forecast band: no section gap on top of its own padding */
.labdesk main > .room { margin-top: 0; padding-top: 14px; }
.labdesk .room-head > .horizon { height: 78px; }
/* phones and Telegram: the lens chip sits clear of the title, and the builder follows the briefing at a normal section gap
   (the full 56px section margin plus the briefing's fanned stack left a hole) */
@media (max-width: 760px) {
  .labdesk .room-head .lens-row { margin: 12px 0 12px; }
  .labdesk main > #subscribe { margin-top: 28px; }
  /* the instruments' own sections stay in the page as empty shells once their charts move into the room; their 56px
     margins collapsed into the gap above the builder */
  .labdesk main > section.dk-inst { margin-top: 0; }
}
