.address-map,
.pointer-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.technical-figure .address-column,
.technical-figure .pointer-stage,
.frame-memory,
.frame-steps {
  min-width: 0;
}

.technical-figure h3 {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0;
}

.technical-figure .address-column > p,
.technical-figure .pointer-stage > p,
.technical-figure .frame-steps > p {
  font-size: 14px;
  line-height: 1.7;
}

.address-cell {
  display: grid;
  align-content: center;
  min-height: 68px;
  padding: 12px;
  border: 1px solid #9eaea6;
  background: #fff;
  color: #1e342b;
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.address-cell + .address-cell { border-top: 0; }
.pointer-cell { background: #e8f4ef; border-color: #749c8b; }
.metadata-cell { background: #edf3fb; border-color: #7e99b6; }
.bss-cell { background: #f6edf5; border-color: #ad86a7; }
.address-cell code { font-size: 13px; overflow-wrap: anywhere; }
.pointer-arrow { color: #1c5c45; font-weight: 700; }

.record-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #738c9f;
}
.record-layout > div {
  display: grid;
  gap: 10px;
  padding: 16px;
  min-width: 0;
  background: #edf3fb;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.record-layout > div + div { border-left: 1px solid #738c9f; }
.record-layout code { font-size: 13px; }
.record-layout span { font-size: 13px; }

.frame-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
}
.frame-memory .address-cell { min-height: 52px; }
.overlay-map {
  display: grid;
  grid-template-columns: minmax(100px, 0.5fr) repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.overlay-label { padding: 12px 0; font-size: 14px; font-weight: 700; }
.overlay-map .address-cell { border: 1px solid #9eaea6; }
.instruction-ledger th:first-child { width: 30%; }
.instruction-ledger td { font-size: 14px; }
.instruction-ledger code { font-size: 13px; }
.source-details { margin: 16px 0; border-top: 1px solid #a9b5ae; padding: 12px 0; }
.source-details summary { cursor: pointer; font-weight: 700; }

@media (max-width: 900px) {
  .address-map, .pointer-stages, .frame-layout { grid-template-columns: 1fr; }
  .address-map, .pointer-stages { gap: 26px; }
  .overlay-map { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .record-layout { grid-template-columns: 1fr; }
  .record-layout > div + div { border-left: 0; border-top: 1px solid #738c9f; }
  .instruction-ledger { min-width: 640px; }
}
