/* Unified Explorer: single primary visual workspace, optional legacy reading map. */
.explorer-unified{max-width:1480px;margin:0 auto;padding:clamp(1rem,3vw,3rem)}
.explorer-unified>.explorer-hero{margin:0 0 1.5rem}
.explorer-unified .explorer-kicker{font:600 .72rem system-ui;letter-spacing:.18em;text-transform:uppercase;color:#a65836}
.explorer-unified .explorer-hero h1{font-size:clamp(2.2rem,5vw,4.5rem);line-height:1.08;margin:.45rem 0}
.explorer-unified .explorer-hero p{max-width:66ch;color:#485a64}
.explorer-unified .sor-v47{max-width:none;margin:0;padding:0;color:#192535}
.explorer-unified .sor-explorer-title,.explorer-unified .sor-explorer-intro{display:none}
.explorer-unified .sor-v5-tools{display:flex;flex-direction:column;gap:1rem;margin:0 0 1rem}
.explorer-unified .sor-v5-modes{display:flex;gap:.5rem;flex-wrap:wrap;padding:.55rem;background:#e8e8e3;border:1px solid #d2d4cf;border-radius:1rem}
.explorer-unified .sor-v5-modes button{border:0;background:transparent;color:#24343d;padding:.75rem 1rem;border-radius:.7rem;font:600 .9rem system-ui;cursor:pointer}
.explorer-unified .sor-v5-modes button[aria-pressed=true]{background:#17374a;color:#fff;box-shadow:0 2px 9px #142f4030}
.explorer-unified .sor-v5-body{background:#f9f9f6;border:1px solid #d5dcd9;border-radius:1rem;padding:1rem;display:flex;gap:.7rem;flex-wrap:wrap;align-items:start}
.explorer-unified .sor-v5-body>div{flex-basis:100%}
.explorer-unified .sor-v5-body input,.explorer-unified .sor-v5-body select,.explorer-unified .sor-v5-body textarea,.explorer-unified .sor-v5-body button{max-width:100%;padding:.65rem;border-radius:.6rem;border:1px solid #80939b;background:#fff;color:#162e3d}
.explorer-unified .sor-v5-body button{background:#17374a;color:#fff;cursor:pointer}
.explorer-unified .sor-v5-body>div>div{padding:.7rem;margin:.4rem 0;border-left:3px solid #4a8796;background:#fff}
.explorer-unified .sor-v5-body a{color:#075c84;text-decoration:underline}
.explorer-unified .sor-layout{grid-template-columns:minmax(0,3fr) minmax(250px,1fr)}
.explorer-unified .sor-canvas{min-height:620px;background:radial-gradient(ellipse at 50% 45%,#203c52,#0d1929 78%);border:1px solid #406078}
.explorer-unified .sor-layout aside{background:#fff}
.explorer-unified .sor-toolbar{margin:.75rem 0}
.explorer-unified .sor-legend-note{max-width:100ch}
.explorer-unified .explorer-archive{margin:2rem 0;border:1px solid #d5d2c9;border-radius:.8rem;padding:1rem}
.explorer-unified .explorer-archive>summary{cursor:pointer;font:600 1rem system-ui}
.explorer-unified .explorer-archive .constellation{margin-top:1rem}
@media(max-width:820px){.explorer-unified .sor-layout{grid-template-columns:1fr}.explorer-unified .sor-canvas{min-height:440px}.explorer-unified .sor-v5-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.explorer-unified .sor-v5-modes button{padding:.7rem .35rem}.explorer-unified .sor-v5-body{display:block}.explorer-unified .sor-v5-body>*{margin:.4rem 0}}

/* Keep the public Explorer controls legible against the light canvas. */
.sor-v47{color:#192535}
.sor-v47 h1,.sor-v47 h2,.sor-v47 h3,.sor-v47 h4,.sor-v47 p,.sor-v47 label,.sor-v47 .sor-explorer-intro,.sor-v47 [data-sor-status]{color:#243b35}
.sor-v47 .sor-explorer-title{color:#173d31}
.sor-v47 .sor-v5-body{color:#243b35}
.sor-v47 .sor-toolbar label,.sor-v47 .sor-legend,.sor-v47 .sor-legend-note{color:#40554c}
.sor-v47 .sor-legend-note{opacity:1}
.sor-v47 .sor-toolbar input,.sor-v47 .sor-toolbar select,.sor-v47 .sor-toolbar button{background:#fff;color:#203b33;border-color:#9eb0a3}
.sor-v47 .sor-toolbar input::placeholder{color:#65766d}
.sor-v47 .sor-v5-body a{color:#075c84}
.sor-v47 .sor-v5-body input,.sor-v47 .sor-v5-body select,.sor-v47 .sor-v5-body textarea{background:#fff;color:#203b33;border-color:#9eb0a3}
.sor-v47 .sor-v5-body input::placeholder,.sor-v47 .sor-v5-body textarea::placeholder{color:#65766d}
.sor-v47 .sor-v5-body button{background:#23634f;color:#fff;border-color:#174b3b}
.sor-v47 .sor-v5-modes{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 .75rem}
.sor-v47 .sor-v5-modes button{color:#24463a;background:#eef2ec;border:1px solid #9eb0a3;border-radius:.5rem;padding:.55rem .8rem;cursor:pointer}
.sor-v47 .sor-v5-modes button[aria-pressed=true]{background:#23634f;border-color:#174b3b;color:#fff}
.sor-v47 [data-sor-detail]{background:#fff;color:#243b35}
.sor-v47 [data-sor-detail] a{color:#075c84}
.sor-v47:not(.explorer-unified .sor-v47) :is(button,input,textarea,select,a,summary):focus-visible{outline:3px solid #f7d797;outline-offset:3px}
.sor-v47 .sor-legend label{color:#24463a;background:#eef2ec;border-color:#9eb0a3}
.sor-v47 .sor-legend label:has(input:not(:checked)){opacity:.8}
.sor-v47 .sor-canvas{background:#eef3ee;border-color:#9eb0a3}
.sor-v47 .sor-canvas svg text,.sor-v47 .sor-canvas .sor-label{fill:#203b33;color:#203b33}
.sor-v47 .sor-canvas line{stroke:#8da398}
.sor-v47 .sor-layout{position:relative}

.sor-v47 .sor-mode-form{
  display:flex;
  flex-wrap:wrap;
  gap:.7rem;
  align-items:end;
  margin:.8rem 0;
}
.sor-v47 .sor-mode-form label{
  display:grid;
  gap:.3rem;
  flex:1 1 12rem;
  min-width:0;
  font:500 .85rem system-ui;
}
.sor-v47 .sor-mode-form :is(input,select,button){
  width:100%;
  max-width:100%;
  min-height:2.55rem;
  padding:.45rem .6rem;
  border:1px solid #9eb0a3;
  border-radius:.45rem;
  font:.85rem system-ui;
}
.sor-v47 .sor-mode-form button{
  width:auto;
  border-color:#174b3b;
  cursor:pointer;
}
.sor-v47 .sor-mode-result:not(:empty){
  margin:.8rem 0;
  max-height:14rem;
  overflow:auto;
  padding:.5rem .85rem;
  border-left:3px solid #23634f;
  background:#f4f6f1;
}
.sor-v47 .sor-mode-result p{margin:.25rem 0}
.sor-v47 .sor-mode-result ul{margin:.3rem 0;padding-inline-start:1.25rem}
