/* =============================================================================
   SATQUERY — ARCHITECTURE (interactive schematic)
   ============================================================================= */

.arch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(22px, 3vw, 46px);
  align-items: start;
}

.arch__fig {
  border: 1px solid var(--rule);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(165, 102, 46, 0.05), transparent 70%),
    var(--surface-1);
  padding: 10px;
}
#archsvg { width: 100%; height: auto; display: block; }

/* schematic primitives */
.n-box { fill: rgba(23, 25, 24, 0.022); stroke: var(--rule-2); stroke-width: 1; transition: fill 0.5s var(--e-out), stroke 0.5s var(--e-out); }
.n-box.on { fill: rgba(165, 102, 46, 0.14); stroke: var(--ochre); }
.n-box.dim { stroke: var(--rule-2); }
.n-t { fill: var(--ink-500); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; transition: fill 0.5s var(--e-out); }
.n-t.on { fill: var(--ink-900); }
.n-sub { fill: var(--ink-400); font-family: var(--f-mono); font-size: 8px; letter-spacing: 0.06em; }
.n-sub.on { fill: var(--ochre); }
.wire { stroke: var(--rule-2); stroke-width: 1; fill: none; transition: stroke 0.6s var(--e-out); }
.wire.on { stroke: var(--ochre); }
.wire.lit { stroke: var(--ochre); stroke-width: 1.4; }
.packet { fill: var(--ochre); opacity: 0; transition: opacity 0.4s var(--e-out); }
.packet.on { opacity: 1; }
.pkth { fill: none; stroke: var(--ochre-rule); stroke-width: 1; stroke-dasharray: 2 4; }
.hairline { stroke: var(--rule); stroke-width: 1; }
.band { fill: rgba(23, 25, 24, 0.012); stroke: var(--rule-2); stroke-width: 1; }
.band.on { fill: rgba(165, 102, 46, 0.06); stroke: var(--ochre-rule); }

/* panel column */
.arch__panel {
  position: sticky; top: calc(var(--bar) + 24px);
  display: flex; flex-direction: column; gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
}
.arch__panel .panel { border: 0; }
.arch__panel .panel__hd { border-bottom: 1px solid var(--rule); }

.qpick { display: flex; flex-direction: column; }
.qo {
  text-align: left; background: none; cursor: pointer;
  border: 0; border-bottom: 1px solid var(--rule);
  border-left: 2px solid transparent;
  padding: 9px 10px;
  font-family: var(--f-display); font-variation-settings: 'opsz' 40; font-style: italic;
  font-size: 14.5px; color: var(--ink-500);
  transition: all 0.28s var(--e-out);
}
.qo:hover { color: var(--ink-700); background: rgba(23, 25, 24, 0.022); }
.qo.is-on { color: var(--ink-900); border-left-color: var(--ochre); background: rgba(165, 102, 46, 0.08); }
.arch__actions { display: flex; gap: 10px; margin-top: 15px; }

.arch__log {
  max-height: 220px; overflow: auto;
  padding: 4px 0;
  font-family: var(--f-mono); font-size: 10px; line-height: 1.75;
  color: var(--ink-700);
}
.arch__log div { padding: 6px 14px; border-bottom: 1px solid var(--rule); }
.arch__log .t { color: var(--ink-400); margin-right: 8px; }
.arch__log .k { color: var(--ochre); }

/* specialist grid */
.specgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.spec {
  background: var(--surface-1); padding: 16px 17px 18px; cursor: pointer;
  border: 0; text-align: left; position: relative;
  transition: background 0.35s var(--e-out);
}
.spec:hover { background: var(--surface-2); }
.spec.is-on { background: rgba(165, 102, 46, 0.08); }
.spec.is-on::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--ochre); }
.spec h4 { font-family: var(--f-display); font-variation-settings: 'opsz' 56; font-size: 19px; font-weight: 400; margin: 0 0 3px; }
.spec .md { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.06em; color: var(--ink-400); display: block; margin-bottom: 11px; }
.spec p { font-size: 12.8px; line-height: 1.55; color: var(--ink-500); margin: 0 0 12px; }
.spec dl { margin: 0; }
.spec dt { font-family: var(--f-mono); font-size: 8.6px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-400); margin-top: 9px; }
.spec dd { margin: 2px 0 0; font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-700); line-height: 1.5; }
.spec .st { position: absolute; right: 14px; top: 16px; }

/* policy table */
.policytbl { border: 1px solid var(--rule); }
.prule {
  display: grid; grid-template-columns: 190px minmax(0, 1fr) 190px;
  gap: 18px; padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  transition: background 0.4s var(--e-out);
}
.prule:last-child { border-bottom: 0; }
.prule .r { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-700); }
.prule .c { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-500); }
.prule .a { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-500); text-align: right; }
.prule.fired { background: rgba(76, 122, 95, 0.07); }
.prule.fired .r { color: var(--verd); }
.prule.fired .a { color: var(--ink-900); }
.prule:hover { background: rgba(23, 25, 24, 0.03); }

@media (max-width: 1080px) {
  .arch { grid-template-columns: 1fr; }
  .arch__panel { position: static; }
  .specgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .specgrid { grid-template-columns: 1fr; }
  .prule { grid-template-columns: 1fr; gap: 6px; }
  .prule .a { text-align: left; }
}
