/* Meridian Observatory — the photographic instrument and its companion register. */
html[data-ver-cursor=meridian] body:not(.red-light) {
  --bg:#050505;--panel:#171717;--ink:#f1f1f1;--muted:#bdbdbd;
  --line:#454545;--fire:#d5d5d5;--amber:#bfbfbf;
  --mc-face:#212121;--mc-hover:#303030;--mc-text:#ededed;--mc-paper:#d5d5d5;
  --mc-ink:#131313;--mc-border:#5a5a5a;--mc-focus:#ededed;
  background:#050505;color:var(--ink);
}
html[data-ver-cursor=meridian] body:not(.red-light) > .head {color:#e8e8e8}
html[data-ver-cursor=meridian] body #top.hero:has(.md-hero-viewer) {
  padding-top:clamp(12px,2vw,28px);gap:clamp(12px,1.4vw,21px);
  background:linear-gradient(#000,#060606 52%,#000);
}
html[data-ver-cursor=meridian] body #top.hero:has(.md-hero-viewer)::before {background:none}
html[data-ver-cursor=meridian] body #top.hero:has(.md-hero-viewer) .hero-inner {
  isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr);
  align-content:center;gap:7px;padding:clamp(18px,2.3vw,36px) clamp(15px,2.3vw,38px);
  min-height:clamp(160px,16.2vw,240px);box-sizing:border-box;
  border:1px solid #414141;border-radius:14px 4px 14px 4px;
  background:#090909;box-shadow:inset 0 1px #ffffff10;
}
html[data-ver-cursor=meridian] body #top.hero .hero-inner::before {
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(90deg,#090909 24%,#090909db 44%,transparent 73%),url("mount-still-life.webp") right 48%/68% auto no-repeat;
  filter:grayscale(1);
}
html[data-ver-cursor=meridian] body #top.hero:has(.md-hero-viewer) .hero-inner :is(h1,.eyebrow,.lede) {
  grid-column:1;grid-row:auto;max-width:59%;margin:0;
}
html[data-ver-cursor=meridian] body #top.hero:has(.md-hero-viewer) .hero-inner h1 {
  color:#f2f2f2;font-size:clamp(43px,5vw,76px);line-height:1;letter-spacing:-.065em;
}
html[data-ver-cursor=meridian] body #top.hero:has(.md-hero-viewer) .hero-inner h1 em {color:#d0d0d0}
html[data-ver-cursor=meridian] body #top.hero:has(.md-hero-viewer) .hero-inner .eyebrow {color:#bcbcbc}
html[data-ver-cursor=meridian] body #top.hero:has(.md-hero-viewer) .hero-inner .lede {max-width:min(52%,55ch);margin-top:5px;color:#c7c7c7}
html[data-ver-cursor=meridian] body:not(.red-light) #top .hero-foot {color:#bdbdbd;border-color:#444}
#theater #stage .mde-room .mde-switch {
  position:relative;isolation:isolate;overflow:hidden;min-height:102px;box-sizing:border-box;
  align-items:center;padding:clamp(15px,2vw,32px);
  background:#0c0c0c;
  border-radius:12px 4px 0 0;
  border-bottom-color:#404040;
}
#theater #stage .mde-room .mde-switch::before {
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(90deg,#0c0c0c 22%,#0c0c0ccc 62%,#0c0c0c66),
    url("mount-still-life.webp") right 45%/64% auto no-repeat;filter:grayscale(1);
}
#theater #stage .mde-room .mde-switch h2 {color:#ededed;font-size:clamp(31px,3.2vw,52px)}
#theater #stage .mde-room .mde-switch h2 em {color:#ccc}
:is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies.mo-optics {
  --rule:#454545;--silver:#d7d7d7;border-radius:5px 5px 14px 14px;
  padding:clamp(10px,1.35vw,19px);border-color:#393939;
  background:linear-gradient(142deg,#171717,#080808 26%,#050505 72%,#101010);
  box-shadow:inset 0 1px #fff2,inset 0 -1px #000,0 6px 24px #0007;
  & .mo-bench{grid-template-columns:minmax(0,1.24fr) minmax(0,.93fr);gap:clamp(12px,1.7vw,26px)}
  & .mo-plate {border:1px solid #414141;border-radius:6px;box-shadow:0 2px 0 #000}
  & .md-image {border-radius:5px 5px 0 0}
  & .md-proof-line {background:#101010;min-height:43px}
  & .md-rights {padding-top:11px}
  & .fde-observe-copy p {max-width:56ch}
}
:is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .mde-atlas:is(.mde-mini,.mde-full):not([data-night=true]) {
  --atlas-frame:#424242;--atlas-body:#141414;--atlas-key:#282828;
  --mde-bg:#090909;--mde-deep:#050505;--mde-line:#424242;
  --mde-text:#ebebeb;--mde-accent:#ddd;--mde-muted:#b9b9b9;
  background:linear-gradient(135deg,#131313,#070707 46%,#0b0b0b);
}
:is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .mde-atlas {
  & .mde-fields {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}
  & .mde-fields.mer-targets button[data-sky] {display:grid;grid-template-columns:46px auto;align-items:center;gap:7px;max-width:100%;padding:4px 8px 4px 4px;min-height:44px;border:1px solid var(--atlas-frame);border-radius:4px;background:#141414;color:var(--mde-text);font:600 12px/1.15 Arial,sans-serif}
  & .mde-fields.mer-targets button[data-sky]::before {content:"";display:block;position:static;inset:auto;transform:none;width:46px;height:32px;opacity:1;border:0;box-shadow:none;mask:none;background:var(--sky-sample) center/contain no-repeat}
  & .mde-fields.mer-targets button[data-sky][aria-pressed=true] {color:var(--mde-text);border-color:var(--mde-accent);background:var(--atlas-key)}
}
.mde-fields [data-sky="orion"] {--sky-sample:url("field-orion.svg")}
.mde-fields [data-sky="cygnus"] {--sky-sample:url("field-cygnus.svg")}
.mde-fields [data-sky="ursa"] {--sky-sample:url("field-ursa.svg")}
html[data-ver-cursor=meridian] #campus .campus-copy {background:linear-gradient(133deg,#202020,#0c0c0c);border:1px solid #424242;border-radius:5px 14px 5px 5px;padding:clamp(18px,2.6vw,38px)}
html[data-ver-cursor=meridian] #campus .campus-copy :is(h2,p) {max-width:34ch}
html[data-ver-cursor=meridian] #campus figure {background:#111;border-color:#474747}
html[data-ver-cursor=meridian] #campus .campus-copy .button {
  background:#222;border-color:#606060;color:#ededed;
}
html[data-ver-cursor=meridian] #plan .plan-grid {gap:clamp(14px,2.2vw,32px);align-items:start}
html[data-ver-cursor=meridian] #plan :is(#night-form,.itinerary) {
  position:relative;inset:auto;min-height:0;box-sizing:border-box;padding:clamp(16px,2.2vw,33px);
  background:linear-gradient(135deg,#1d1d1d,#0c0c0c);border:1px solid #454545;border-radius:7px 15px 7px 7px;
}
html[data-ver-cursor=meridian] #plan #night-form fieldset label {border-color:#464646}
html[data-ver-cursor=meridian] #plan .itinerary {background:radial-gradient(ellipse at 90% 0,#292929,transparent 58%),#131313}
html[data-ver-cursor=meridian] #plan :is(input,select,button):focus-visible {outline:2px solid #e8e8e8;outline-offset:3px}
@media(max-width:760px) {
  html[data-ver-cursor=meridian] body #top.hero:has(.md-hero-viewer) .hero-inner {
    display:grid;min-height:0;padding:18px 13px;gap:7px;
  }
  html[data-ver-cursor=meridian] body #top.hero .hero-inner::before {background-size:auto,85% auto;background-position:center,right 36%;opacity:.69}
  html[data-ver-cursor=meridian] body #top.hero:has(.md-hero-viewer) .hero-inner h1 {max-width:87%;font-size:clamp(33px,8.2vw,51px)}
  html[data-ver-cursor=meridian] body #top.hero:has(.md-hero-viewer) .hero-inner .lede {max-width:69%;font-size:13px;line-height:1.4}
  :is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .md-galaxies.mo-optics .mo-bench {grid-template-columns:minmax(0,1fr)}
  #theater #stage .mde-room .mde-switch {min-height:0;padding:13px 14px}
  #theater #stage .mde-room .mde-switch::before {background-size:auto,75% auto}
  :is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .mde-atlas .mde-fields {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:4px}
  :is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .mde-atlas .mde-fields.mer-targets button[data-sky] {display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;gap:2px;padding:4px;font-size:11px}
}

/* Working instrument engravings. All labels and focus targets remain native. */
#theater #stage .mde-room [data-instrument=atlas] {--instrument:url("globe.webp")}
#theater #stage .mde-room [data-instrument=galaxy] {--instrument:url("spiral-galaxy.svg")}
.mde-atlas button[data-reset] {--instrument:url("compass.webp")}
.mde-settings summary,.mde-atlas .fde-photometry summary {--instrument:url("field-book.webp")}
#exhibits [data-exhibit=twilight] {--instrument:url("sunset.webp")}
#exhibits [data-exhibit=moon] {--instrument:url("moon.webp")}
#exhibits [data-exhibit=optics] {--instrument:url("telescope.webp")}
#plan #night-form label:has(input[value=first]) {--instrument:url("binoculars.webp")}
#plan #night-form label:has(input[value=deep]) {--instrument:url("eyepiece.webp")}
#plan #night-form label:has(input[value=photo]) {--instrument:url("bellows.webp")}
:is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) :is(.mde-switch [data-instrument],.mde-atlas .mde-controls button[data-reset]) {
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  &::before {content:"";display:block;position:static;inset:auto;flex:none;transform:none;clip-path:none;box-sizing:border-box;
    width:31px;height:24px;border:0;border-radius:0;opacity:1;
    background:var(--instrument) center/contain no-repeat;box-shadow:none;mix-blend-mode:screen}
  & svg {display:none}
}
#theater #stage .mde-room .mde-switch > div {padding:3px;background:#0a0a0a;border:1px solid #3b3b3b;border-radius:6px}
#theater #stage .mde-room .mde-switch [data-instrument] {
  min-height:44px;border-radius:4px;border:1px solid transparent;color:#bdbdbd;background:none;box-shadow:none;
}
#theater #stage .mde-room .mde-switch [data-instrument][aria-pressed=true] {
  border-color:#727272;background:#272727;color:#f5f5f5;box-shadow:inset 0 1px #ffffff10;
}
#theater #stage .mde-room .mde-switch [data-instrument]:hover {color:#fff;background:#222}
#theater #stage .mde-room .mde-switch [data-instrument]:focus-visible {outline:2px solid #fff;outline-offset:-3px}
#theater #stage .mde-room .mde-switch [data-instrument]::before {filter:grayscale(1)}
:is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .mde-settings > summary::before,
:is(#theater #stage .mde-room,html[data-ver-cursor=meridian]) .fde-photometry > summary::before {
  content:"";display:inline-block;vertical-align:middle;width:31px;height:25px;
  background:var(--instrument) center/contain no-repeat;mix-blend-mode:screen;margin-right:8px;
}
html[data-ver-cursor=meridian] #exhibits .exhibit-shell {padding:clamp(8px,1.1vw,14px);background:linear-gradient(135deg,#252525,#101010);border-color:#484848}
html[data-ver-cursor=meridian] #exhibits .exhibit-choices {display:flex;flex-wrap:wrap;gap:7px;padding:0 0 11px}
html[data-ver-cursor=meridian] #exhibits .exhibit-choices button {
  display:inline-flex;align-items:center;gap:10px;min-height:48px;min-width:0;padding:5px 14px 5px 6px;color:#d9d9d9;
  border-radius:4px;border:1px solid #454545;background:#151515;font:600 13px/1.15 Arial,sans-serif;
}
html[data-ver-cursor=meridian] #exhibits .exhibit-choices button::before,
html[data-ver-cursor=meridian] #plan #night-form label:has(input[type=radio])::before {
  content:"";position:static;inset:auto;transform:none;display:block;flex:none;opacity:1;width:49px;height:36px;
  border:0;background:var(--instrument) center/contain no-repeat;mix-blend-mode:screen;
}
html[data-ver-cursor=meridian] #exhibits .exhibit-choices button[aria-pressed=true] {background:#303030;color:#f7f7f7;border-color:#929292}
html[data-ver-cursor=meridian] #exhibits .exhibit-choices small {color:#bbb}
html[data-ver-cursor=meridian] #exhibits .exhibit-feature {background:#141414;border-color:#383838}
html[data-ver-cursor=meridian] #exhibits .exhibit-photo::after {background:linear-gradient(90deg,transparent 55%,#141414)}
html[data-ver-cursor=meridian] #exhibits .exhibit-note {color:#c7c7c7}
html[data-ver-cursor=meridian] #plan #night-form :is(label:has(input[type=radio]),label:has(input[type=radio]:checked)) {
  display:flex;align-items:center;gap:13px;padding:9px 13px;min-height:60px;color:#dedede;background:#141414;border:1px solid #464646;border-radius:5px;cursor:pointer;
}
html[data-ver-cursor=meridian] #plan #night-form label:has(input[type=radio]:checked) {background:linear-gradient(90deg,#303030,#222);border-color:#929292}
html[data-ver-cursor=meridian] #plan #night-form label:has(input[type=radio])::before {width:56px;height:39px;order:1}
html[data-ver-cursor=meridian] #plan #night-form label:has(input[type=radio])>span {order:2;flex:1}
html[data-ver-cursor=meridian] #plan #night-form label:has(input[type=radio])>input {accent-color:#ddd;order:3}
html[data-ver-cursor=meridian] #plan #night-form select {color:#eee;background:#202020;border:1px solid #555;border-radius:4px}
html[data-ver-cursor=meridian] #plan .itinerary #save-plan {color:#111;background:linear-gradient(#eee,#c5c5c5);border:1px solid #ddd;border-radius:4px}
html[data-ver-cursor=meridian] #plan .itinerary .plan-status {color:#d6d6d6}
html[data-ver-cursor=meridian] .questions details {background:linear-gradient(120deg,#1b1b1b,#111);padding:0 15px;border:1px solid #393939;border-radius:5px;margin:0 0 5px}
@media(max-width:760px) {
  html[data-ver-cursor=meridian] #exhibits .exhibit-photo::after {background:linear-gradient(0deg,#141414,transparent 40%)}
}
@media(max-width:430px){
  html[data-ver-cursor=meridian] #exhibits .exhibit-choices {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
  html[data-ver-cursor=meridian] #exhibits .exhibit-choices button {display:grid;justify-items:center;justify-content:center;gap:3px;padding:5px 2px;font-size:11px}
}
