/* SYSTEM CHAIN CARD DETAIL v1
   Adds one accessible equipment-detail layer without changing the locked 4-to-8 scroll composition. */
.system-chain__card{position:relative;cursor:pointer;transition:border-color .24s ease,box-shadow .24s ease}
.system-chain__card:hover,.system-chain__card:focus-within{border-color:rgba(83,124,255,.82);box-shadow:inset 0 0 0 1px rgba(23,83,255,.18),0 1.45rem 4.4rem rgba(0,0,0,.3)}
.system-chain__media img{transition:transform .42s cubic-bezier(.22,.72,.18,1),filter .32s ease}
.system-chain__card:hover .system-chain__media img,.system-chain__card:focus-within .system-chain__media img{transform:scale(1.035);filter:saturate(1) contrast(1.07)}
.system-chain__open{position:absolute;inset:0;z-index:4;border:0;padding:0;background:transparent;color:inherit;cursor:pointer}
.system-chain__open:focus-visible{outline:2px solid #5f88ff;outline-offset:-3px}
.system-chain__open-label{position:absolute;right:clamp(.55rem,.7vw,.82rem);bottom:clamp(.5rem,.68vw,.76rem);font-family:var(--mono);font-size:clamp(.42rem,.43vw,.52rem);font-weight:650;letter-spacing:.12em;color:#88a7ff;opacity:0;transform:translateY(.2rem);transition:opacity .24s ease,transform .24s ease}
.system-chain__card:hover .system-chain__open-label,.system-chain__open:focus-visible .system-chain__open-label{opacity:1;transform:none}
.system-chain__detail{padding-right:5.4rem}

.system-chain-detail{width:min(73rem,92vw);max-width:none;max-height:min(48rem,90dvh);margin:auto;border:1px solid rgba(111,144,255,.58);padding:0;overflow:hidden;background:#090b24;color:#fffed5;box-shadow:0 2.5rem 8rem rgba(0,0,0,.68)}
.system-chain-detail[open]{display:block}
.system-chain-detail::backdrop{background:rgba(2,3,18,.82);backdrop-filter:blur(10px)}
.system-chain-detail__shell{position:relative;display:grid;grid-template-columns:minmax(22rem,.92fr) minmax(0,1.08fr);min-height:min(41rem,82dvh)}
.system-chain-detail__close{position:absolute;z-index:3;top:1rem;right:1rem;border:1px solid rgba(255,254,213,.3);padding:.62rem .78rem;background:#090b24;font-family:var(--mono);font-size:.56rem;font-weight:650;letter-spacing:.15em;color:#fffed5;cursor:pointer;transition:border-color .2s ease,color .2s ease}
.system-chain-detail__close:hover,.system-chain-detail__close:focus-visible{border-color:#5f88ff;color:#8eabff;outline:0}
.system-chain-detail__media{position:relative;min-height:0;margin:0;border-right:1px solid rgba(255,254,213,.15);background:#050718;overflow:hidden}
.system-chain-detail__media img{display:block;width:100%;height:100%;object-fit:cover;filter:saturate(.94) contrast(1.06)}
.system-chain-detail__media figcaption{position:absolute;left:1.35rem;right:1.35rem;bottom:1.2rem;display:flex;justify-content:space-between;gap:1rem;border-top:1px solid rgba(255,254,213,.24);padding-top:.72rem;font-family:var(--mono);font-size:.53rem;letter-spacing:.13em;color:rgba(255,254,213,.66)}
.system-chain-detail__media figcaption span:first-child{color:#7ea1ff}
.system-chain-detail__copy{display:flex;min-width:0;flex-direction:column;padding:clamp(3.6rem,6vw,5.3rem) clamp(1.4rem,3.4vw,3.6rem) clamp(1.5rem,3vw,2.8rem)}
.system-chain-detail__kicker{margin:0 0 1rem;font-family:var(--mono);font-size:.6rem;font-weight:650;letter-spacing:.22em;color:#5f88ff}
.system-chain-detail__copy h2{max-width:12ch;margin:0;font-family:var(--display);font-size:clamp(2.25rem,4.4vw,4.8rem);font-weight:800;line-height:.9;letter-spacing:-.035em;color:#fffed5;text-wrap:balance}
.system-chain-detail__summary{max-width:45rem;margin:1.45rem 0 0;font-size:clamp(.88rem,1vw,1.08rem);line-height:1.6;color:rgba(255,254,213,.76)}
.system-chain-detail__facts{display:grid;margin:clamp(1.5rem,3vh,2.35rem) 0 0;border-top:1px solid rgba(255,254,213,.18)}
.system-chain-detail__fact{display:grid;grid-template-columns:7.2rem 1fr;gap:1rem;margin:0;padding:.86rem 0;border-bottom:1px solid rgba(255,254,213,.13)}
.system-chain-detail__fact dt{font-family:var(--mono);font-size:.54rem;font-weight:650;line-height:1.5;letter-spacing:.14em;color:#7ea1ff}
.system-chain-detail__fact dd{margin:0;font-size:.78rem;line-height:1.55;color:rgba(255,254,213,.7)}
.system-chain-detail__nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1rem;margin-top:auto;padding-top:1.3rem}
.system-chain-detail__nav button{border:0;border-top:1px solid rgba(255,254,213,.28);padding:.78rem 0;background:transparent;font-family:var(--mono);font-size:.56rem;font-weight:650;letter-spacing:.14em;color:#fffed5;cursor:pointer;text-align:left;transition:border-color .2s ease,color .2s ease}
.system-chain-detail__nav button:last-child{text-align:right}
.system-chain-detail__nav button:hover,.system-chain-detail__nav button:focus-visible{border-color:#5f88ff;color:#7ea1ff;outline:0}
.system-chain-detail__counter{font-family:var(--mono);font-size:.56rem;letter-spacing:.16em;color:rgba(255,254,213,.48)}

@media(max-width:900px){
  .system-chain__open-label{opacity:1;transform:none}
  .system-chain-detail{width:calc(100vw - 1rem);max-height:calc(100dvh - 1rem);overflow:auto}
  .system-chain-detail__shell{grid-template-columns:1fr;min-height:0}
  .system-chain-detail__media{min-height:17rem;aspect-ratio:16/10;border-right:0;border-bottom:1px solid rgba(255,254,213,.15)}
  .system-chain-detail__copy{padding:2.4rem 1.25rem 1.2rem}
  .system-chain-detail__copy h2{font-size:clamp(2rem,9vw,3.4rem)}
  .system-chain-detail__fact{grid-template-columns:6.2rem 1fr}
  .system-chain-detail__nav{margin-top:1rem}
}
@media(max-width:560px){
  .system-chain__detail{padding-right:5.2rem}
  .system-chain-detail__media{min-height:13.5rem}
  .system-chain-detail__media figcaption{left:.9rem;right:.9rem;bottom:.8rem;font-size:.46rem}
  .system-chain-detail__copy{padding:2rem 1rem 1rem}
  .system-chain-detail__summary{font-size:.82rem}
  .system-chain-detail__fact{grid-template-columns:1fr;gap:.3rem;padding:.72rem 0}
  .system-chain-detail__fact dd{font-size:.72rem}
  .system-chain-detail__nav{gap:.65rem}.system-chain-detail__nav button{font-size:.48rem}.system-chain-detail__counter{font-size:.5rem}
}
@media(prefers-reduced-motion:reduce){
  .system-chain__card,.system-chain__media img,.system-chain__open-label{transition:none}
}

/* Section 03 responsive refinement. Existing eight cards, one detail dialog,
   and the original desktop 4-to-8 / LoRa timeline remain the source of truth. */
.obor-field-ledger #systems > .system-chain__stage {
  grid-template-columns:minmax(0,.9fr) minmax(0,2.3fr);
  gap:clamp(24px,3vw,56px);
  padding-inline:clamp(20px,3vw,56px);
}
.obor-field-ledger #systems .system-chain__copy > .kicker {
  color:#8eabff;
  font-size:11px;
  line-height:1.5;
  letter-spacing:.16em;
}
.obor-field-ledger #systems .system-chain__title {
  font-size:clamp(36px,3.35vw,68px);
  line-height:1.02;
  letter-spacing:-.035em;
  color:#eee8dc;
}
.obor-field-ledger #systems .system-chain__index {
  grid-template-columns:minmax(0,auto) minmax(32px,1fr);
  gap:16px;
  font-size:11px;
  line-height:1.5;
  letter-spacing:.06em;
}
.obor-field-ledger #systems .system-chain__status { min-width:0; }
.obor-field-ledger #systems .system-chain__index > span:last-child { display:none; }
.obor-field-ledger #systems .system-chain__status-final { color:#9cb6ff; }
.obor-field-ledger #systems .system-chain__card {
  padding:12px;
  box-shadow:none;
  border-color:#30334c;
  background:#0c0e25;
}
.obor-field-ledger #systems .system-chain__card-no { color:#9cb6ff; font-size:12px; }
.obor-field-ledger #systems .system-chain__card h3 {
  min-height:3.75em;
  margin:8px 0 10px;
  color:#eee8dc;
  font-family:var(--sans,sans-serif);
  font-size:clamp(12px,.88vw,15px);
  line-height:1.25;
  font-weight:650;
  letter-spacing:.015em;
  overflow-wrap:break-word;
}
.obor-field-ledger #systems .system-chain__media { border:0; background:#060819; }
.obor-field-ledger #systems .system-chain__media img { object-fit:contain; }
.obor-field-ledger #systems .system-chain__detail {
  min-height:3.7em;
  margin-top:10px;
  padding:0 0 20px;
  font-size:10px;
  line-height:1.4;
  letter-spacing:.04em;
  color:#b4bed4;
}
.obor-field-ledger #systems .system-chain__open-label {
  right:12px;
  bottom:10px;
  color:#9cb6ff;
  font-size:10px;
  letter-spacing:.06em;
  opacity:1;
  transform:none;
}
.obor-field-ledger #systems .system-chain__card:focus-within,
.obor-field-ledger #systems .system-chain__card:hover { border-color:#9cb6ff; }

/* Natural reading layout uses the same <=900px threshold as the installed
   scroll runtime. Do not strand the following LoRa chapter on a missing pin. */
@media (max-width:900px) {
  .obor-field-ledger #systems > .system-chain__stage {
    display:block;
    min-height:0;
    padding:72px 20px 48px;
  }
  .obor-field-ledger #systems .system-chain__copy > .kicker { margin-bottom:18px; font-size:10px; }
  .obor-field-ledger #systems .system-chain__title { font-size:clamp(32px,8.4vw,58px); }
  .obor-field-ledger #systems .system-chain__title-final { max-width:16ch; }
  .obor-field-ledger #systems .system-chain__index { margin:24px 0 28px; font-size:10px; }
  .obor-field-ledger #systems .system-chain__grid {
    height:auto;
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:none;
    gap:12px;
  }
  .obor-field-ledger #systems .system-chain__card {
    min-height:0;
    grid-template-rows:auto auto minmax(0,1fr) auto;
    padding:12px;
  }
  .obor-field-ledger #systems .system-chain__card h3 { font-size:12px; min-height:3.75em; }
  .obor-field-ledger #systems .system-chain__media { aspect-ratio:4/3; }
  .obor-field-ledger #systems .system-chain__detail { min-height:4.8em; }
}
@media (max-width:359px) {
  .obor-field-ledger #systems > .system-chain__stage { padding-inline:16px; }
  .obor-field-ledger #systems .system-chain__grid { gap:8px; }
  .obor-field-ledger #systems .system-chain__card { padding:10px; }
  .obor-field-ledger #systems .system-chain__card h3 { min-height:5em; }
}
@media (min-width:600px) and (max-width:900px) {
  .obor-field-ledger #systems > .system-chain__stage { padding:76px 32px 56px; }
  .obor-field-ledger #systems .system-chain__copy {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,.8fr);
    column-gap:32px;
    align-items:end;
    margin-bottom:32px;
  }
  .obor-field-ledger #systems .system-chain__copy > .kicker { grid-column:1/-1; }
  .obor-field-ledger #systems .system-chain__title { font-size:clamp(34px,5.6vw,52px); }
  .obor-field-ledger #systems .system-chain__index { margin:0 0 5px; }
  .obor-field-ledger #systems .system-chain__grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .obor-field-ledger #systems .system-chain__card h3 { min-height:5em; }
}
@media (min-width:740px) and (max-width:900px) {
  .obor-field-ledger #systems .system-chain__grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}

/* Taller tablet and near-square frames keep the existing cinematic sequence,
   but place the heading above a larger equipment matrix instead of squeezing
   a desktop sidebar into the same width. */
@media (min-width:901px) and (max-aspect-ratio:4/3) {
  .obor-field-ledger #systems > .system-chain__stage {
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto minmax(0,1fr);
    height:100svh;
    align-content:center;
    gap:40px;
    padding-block:clamp(76px,7vh,130px);
  }
  .obor-field-ledger #systems .system-chain__copy { max-width:none; }
  .obor-field-ledger #systems .system-chain__title { max-width:24ch; font-size:clamp(40px,4.6vw,84px); min-height:2.1em; }
  .obor-field-ledger #systems .system-chain__index { max-width:600px; margin-top:24px; }
  .obor-field-ledger #systems .system-chain__visual { height:100%;max-height:880px;min-height:0;align-self:center; }
  .obor-field-ledger #systems .system-chain__grid { height:100%; }
  .obor-field-ledger #systems .system-chain__card h3 { font-size:clamp(14px,1.2vw,18px); min-height:2.5em; }
  .obor-field-ledger #systems .system-chain__detail { font-size:12px; }
}
@media (min-width:901px) and (max-height:650px) {
  .obor-field-ledger #systems > .system-chain__stage {
    grid-template-columns:minmax(0,.8fr) minmax(0,2.6fr);
    gap:24px;
    padding:64px 24px 24px;
  }
  .obor-field-ledger #systems .system-chain__title { font-size:clamp(28px,3vw,40px); }
  .obor-field-ledger #systems .system-chain__grid { height:calc(100svh - 88px); }
  .obor-field-ledger #systems .system-chain__card { padding:9px; }
  .obor-field-ledger #systems .system-chain__card h3 { font-size:11px; margin:5px 0; }
  .obor-field-ledger #systems .system-chain__detail { margin-top:5px; font-size:10px; min-height:0; padding-bottom:16px; }
  .obor-field-ledger #systems .system-chain__open-label { bottom:8px; right:9px; }
}

/* One existing native dialog, mounted outside the ScrollTrigger pin. Only the
   article scrolls, leaving the close control reachable in short viewports. */
.system-chain-detail {
  width:min(1180px,calc(100vw - 32px));
  max-height:calc(100dvh - 32px);
  overflow:hidden;
  color:#eee8dc;
}
.system-chain-detail__shell {
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  min-height:0;
  height:min(760px,calc(100dvh - 34px));
}
.system-chain-detail__close {
  top:12px;right:12px;min-height:44px;min-width:72px;padding:10px 14px;
  font-size:12px;letter-spacing:.08em;color:#eee8dc;
}
.system-chain-detail__media { min-height:0; aspect-ratio:auto; }
.system-chain-detail__media img { object-fit:contain; }
.system-chain-detail__media figcaption {
  left:20px;right:20px;bottom:20px;font-size:10px;line-height:1.5;
  color:#bbc7df;letter-spacing:.04em;flex-wrap:wrap;
}
.system-chain-detail__copy {
  min-height:0;overflow:auto;overscroll-behavior:contain;
  padding:76px 32px 28px;scrollbar-width:thin;
}
.system-chain-detail__kicker { font-size:11px;line-height:1.5;color:#9cb6ff;margin-bottom:16px; }
.system-chain-detail__copy h2 { color:#eee8dc;font-size:clamp(30px,3.1vw,48px);line-height:1.02;max-width:18ch;overflow-wrap:break-word; }
.system-chain-detail__summary { margin-top:20px;font-size:16px;line-height:1.55;color:#c3cada; }
.system-chain-detail__facts { margin-top:24px; }
.system-chain-detail__fact { grid-template-columns:1fr;gap:6px;padding:16px 0; }
.system-chain-detail__fact dt { font-size:11px;color:#9cb6ff; }
.system-chain-detail__fact dd { font-size:15px;line-height:1.5;color:#c3cada; }
.system-chain-detail__nav { gap:12px;margin-top:16px;padding-top:8px; }
.system-chain-detail__nav button { min-height:44px;font-size:11px;letter-spacing:.04em; }
.system-chain-detail__counter { font-size:11px;letter-spacing:.04em;white-space:nowrap; }
@media (max-width:900px) and (min-height:651px), (max-width:599px) {
  .system-chain-detail { width:calc(100vw - 24px);max-height:calc(100dvh - 24px); }
  .system-chain-detail__shell {
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:min(27svh,280px) minmax(0,1fr);
    height:calc(100dvh - 26px);
  }
  .system-chain-detail__media { border-right:0;border-bottom:1px solid #30334c; }
  .system-chain-detail__media figcaption { display:none; }
  .system-chain-detail__copy { padding:24px 22px; }
  .system-chain-detail__copy h2 { font-size:clamp(28px,7.6vw,42px); }
}
@media (min-width:600px) and (max-height:650px) {
  .system-chain-detail__shell { grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr); }
  .system-chain-detail__copy { padding:68px 24px 24px; }
  .system-chain-detail__media figcaption { display:none; }
}
