/* REQ-126: the Object explorer. The colour tokens (:root) and shared components are in ../styles.css; this file never defines :root variables. */

.ex-open { min-height: 44px; display: inline-flex; align-items: center; gap: 2px; padding: 0 12px; font-size: 13px; white-space: nowrap; text-decoration: none; }
.ex-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ex-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ex-head h1 { margin: 4px 0 0; overflow-wrap: anywhere; }
.ex-head h1:focus { outline: none; }
.ex-back { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.ex-status { margin: -12px 0 0; color: var(--mute); font-size: 13.5px; }
.ex-map { position: relative; display: grid; grid-template-columns: 210px 300px 380px; column-gap: 72px; align-items: start; width: max-content; padding: 24px; }
.ex-lines { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; z-index: 0; }
.ex-line { fill: none; stroke: var(--mute); stroke-width: 1.5; opacity: .75; }
.ex-line.depends, .ex-line.needed { stroke-dasharray: 6 4; }
.ex-tip { fill: var(--mute); }
.ex-path, .ex-centre, .ex-groups { position: relative; z-index: 1; min-width: 0; }
.ex-centre { align-self: center; }
.ex-groups { display: flex; flex-direction: column; gap: 18px; }
.ex-ghead { margin: 0 0 8px; font: 700 12px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.ex-fold { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px 0 2px; border-radius: 8px; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; }
.ex-fold:hover { color: var(--ink); }
.ex-fold:focus-visible, .ex-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.ex-chev { font-size: 11px; }
.ex-group[data-folded] { margin-bottom: -8px; }
.ex-count { display: inline-block; min-width: 1.6em; padding: 1px 6px; border-radius: 999px; background: var(--sunken); color: var(--ink); text-align: center; letter-spacing: 0; }
.ex-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ex-card { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); }
.ex-centre-card { border-width: 2px; border-color: var(--accent); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); }
.ex-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ex-label { font: 700 10.5px/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.ex-title { all: unset; box-sizing: border-box; color: var(--ink); font-weight: 700; overflow-wrap: anywhere; min-height: 24px; cursor: pointer; }
.ex-title:hover { text-decoration: underline; }
.ex-title:focus-visible, .ex-level:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.ex-facts { list-style: none; margin: 0; padding: 0; font-size: 12.5px; color: var(--mute); display: grid; gap: 2px; }
.ex-level { text-decoration: none; min-height: 44px; justify-content: center; gap: 2px; }
.ex-level:hover { background: var(--sunken); }
.ex-lvl { font: 700 10.5px/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.ex-none { margin: 0; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; color: var(--mute); font-size: 13px; }
.ex-more { min-height: 44px; margin-top: 8px; }
/* REQ-105.2: following links, the trail, pan and zoom, the minimap. */
.ex-card { cursor: default; }
.ex-selected { outline: 3px solid var(--accent); outline-offset: 2px; }
.ex-sel-label { color: var(--ink); background: var(--accent-soft, var(--sunken)); padding: 2px 6px; border-radius: 999px; }
.ex-expand { margin-left: auto; min-width: 44px; min-height: 44px; padding: 0; font: 700 18px/1 var(--font-body); }
.ex-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-acts .btn { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.ex-sub { margin: 8px 0 0 28px; display: flex; flex-direction: column; gap: 6px; }
.ex-subhead { margin: 4px 0 0; font: 700 11px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.ex-also { font-style: italic; }
.ex-line.also { stroke-dasharray: 2 4; }
.ex-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: -14px; font-size: 13.5px; }
.ex-trail[hidden] { display: none; }
.ex-trail-lbl { font: 700 11px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.ex-trail ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.ex-trail li + li::before { content: '›'; margin-right: 4px; color: var(--mute); }
.ex-trail a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--accent); font-weight: 700; }
.ex-trail-now { font-weight: 700; }
.ex-frame { position: relative; display: flex; flex-direction: column; gap: 8px; }
.ex-frame[hidden] { display: none; }
.ex-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ex-tools .btn { min-height: 44px; min-width: 44px; }
.ex-zoom { min-width: 52px; text-align: center; font: 700 13px/1 var(--font-mono); color: var(--ink); }
.ex-vp { position: relative; overflow: hidden; height: max(440px, calc(100vh - 300px)); border: 1px solid var(--line); border-radius: 16px; background: var(--bg); touch-action: none; cursor: grab; }
.ex-vp.ex-dragging { cursor: grabbing; }
.ex-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.ex-stage.ex-anim { transition: transform .2s ease; }
/* Clear of the Help button (REQ-86.2) in the corner, like the office's zoom stack. */
.ex-mini { position: absolute; right: 12px; bottom: calc(12px + var(--fab-clearance, 0px)); padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); cursor: crosshair; touch-action: none; }
.ex-mini-body { position: relative; }
.ex-mini-card { position: absolute; background: var(--mute); opacity: .45; border-radius: 1px; }
.ex-mini-card.centre { background: var(--accent); opacity: .9; }
.ex-mini-vp { position: absolute; margin: 6px; border: 2px solid var(--accent); border-radius: 3px; pointer-events: none; }
.ex-frame.ex-is-full { background: var(--bg); padding: 12px; }
.ex-frame.ex-is-full .ex-mini { bottom: 12px; }   
/* no Help button over a fullscreen map */
.ex-frame.ex-is-full .ex-vp { height: calc(100vh - 80px); }
@media (prefers-reduced-motion: reduce) { .ex-stage.ex-anim { transition: none; } }
@media (max-width: 900px) {
  .ex-map { grid-template-columns: 170px 260px 320px; column-gap: 48px; }
}
@media (max-width: 600px) {
  .ex-map { display: flex; flex-direction: column; gap: 18px; width: auto; padding: 0; }
  .ex-lines, .ex-tools, .ex-mini { display: none; }
  .ex-vp { height: auto; overflow: visible; border: 0; background: none; touch-action: auto; cursor: auto; }
  .ex-stage { position: static; transform: none !important; }
  .ex-path .ex-list { display: flex; flex-wrap: wrap; gap: 6px; }
  .ex-sub { margin-left: 16px; }
}
