/* Technology page: only what sits inside this page's own drawn visuals (the sensor sheet in the hero, the format and
   principle drawings, the core diagram's panel) and the photograph's crop. Tokens only. */

/* ---- hero: the sensor's VizO sheet, cut by the frame's right and bottom edges ---- */
.twin { background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r-md); font-size: 13px; box-shadow: 0 1px 2px rgb(11 26 36 / .06), 0 24px 48px -28px rgb(11 26 36 / .28); }
.twin__bar { display: flex; align-items: center; gap: var(--s-3); height: 44px; padding-inline: var(--s-4); border-bottom: 1px solid var(--line); color: var(--muted); }
.twin__dots { display: flex; gap: 6px; flex: none; }
.twin__dots i { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in oklab, var(--ink) 13%, var(--bg)); }
.twin__crumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.twin__crumb i { font-style: normal; padding-inline: 2px; }
.twin__crumb b { color: var(--ink); font-weight: 500; }
.twin__body { display: grid; gap: var(--s-4); padding: var(--s-5) var(--ly-cut-room) var(--s-5) var(--s-5); }
.twin__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); }
.twin__id { margin: 0; font: 500 20px/1.3 var(--font-text); }
.twin__sub { margin: 2px 0 0; color: var(--muted); }
.twin__status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: 999px; font: 500 12px/1 var(--font-text); white-space: nowrap; }
.twin__status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.twin__rows { list-style: none; margin: 0; padding: 0; }
.twin__rows li { display: flex; justify-content: space-between; gap: var(--s-4); padding: 9px 0; border-top: 1px solid var(--line); color: var(--muted); }
.twin__rows b { color: var(--ink); font-weight: 500; text-align: right; }
.twin__axis { margin: 0 0 var(--s-2); color: var(--muted); }
.twin__plot { position: relative; height: 300px; }
.twin__plot svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.twin__dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--alert); }

.twin-card { left: var(--s-5); bottom: var(--s-5); width: min(300px, calc(100% - 2 * var(--s-5))); display: grid; gap: var(--s-2); padding: var(--s-4); border-radius: var(--r-md); background: var(--bg); color: var(--ink); border: 1px solid var(--line); font-size: 13px; box-shadow: 0 12px 28px -16px rgb(11 26 36 / .35); }
.twin-card__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.twin-card h5 { margin: 0; font: 500 14px/1.3 var(--font-text); }
.twin-card__chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; background: color-mix(in oklab, var(--accent) 12%, var(--bg)); color: var(--ink); font-weight: 500; }
.twin-card__line { display: flex; align-items: center; gap: var(--s-2); margin: 0; }
.twin-card__ok { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; color: var(--accent); }
.twin-card__ok svg { width: 16px; height: 16px; }

/* ---- core: the diagram's panel ---- */
.tcore__panel { --p-h: 400px; padding: 0; overflow: hidden; }
.tcore__panel .dg { width: 100%; height: 100%; }

/* ---- principles and formats: the drawings in their panels ---- */
.panel--principle { --p-h: 320px; display: grid; place-items: center; }
.tprin { display: block; width: 100%; height: 100%; max-height: 320px; padding: var(--s-4); }
/* the panels of a row sit at the foot of their cards, so they line up whatever the lines above them run to */
#formats .card--open > .panel, #principles .card--open > .panel { margin-top: auto; flex: none; }
#formats .card--open > p, #principles .card--open > p { margin-bottom: var(--s-5); }
.panel--format { --p-h: 260px; display: grid; place-items: center; }
.tfmt { display: block; width: 100%; height: 100%; max-height: 260px; padding: var(--s-4); }

/* ---- links under the card rows ---- */
.principles__link, .formats__link { margin-top: var(--s-6); }

/* ---- industrial: the photograph's crop and the rows ---- */
.tind__photo { aspect-ratio: 4 / 3; align-self: start; max-height: calc(100svh - var(--padt) - var(--padb)); }
.tind__photo .frame__img { object-position: 62% 16%; }
.tind__rows p { margin: 0; }

@media (max-width: 1279px) {
  .tind__photo { aspect-ratio: 16 / 10; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  #formats, #principles { --h: 2; }
  .tind__photo { aspect-ratio: 16 / 7; }
  .tcore__panel { --p-h: 240px; }
  .panel--format { --p-h: 300px; }
  .tfmt { max-height: 300px; }
  #disc .sx__stage { min-height: 280px; }
}
@media (max-width: 639px) {
  /* the window fits its slot on a phone (the kit cuts it 28px past the right edge) and is cut by the foot only */
  .hero__art > .ly-piece--main.twin { width: calc(100% - 2 * var(--s-4)); }
  .tind__photo { aspect-ratio: 16 / 7; }
  #disc .sx__list button { padding-block: 10px; }
  #disc .sx__stage { min-height: 210px; }
  .principles__link, .formats__link { margin-top: var(--s-5); }
  #core .figures__row { grid-template-columns: minmax(84px, auto) minmax(0, 1fr); gap: var(--s-4); padding-block: var(--s-3); }
  #core .stack-5 { gap: var(--s-4); }
  .panel--principle { --p-h: 232px; }
  .tprin { max-height: 232px; padding: var(--s-3); }
  .panel--format { --p-h: 160px; }
  .tfmt { max-height: 160px; padding: var(--s-3); }
  .tcore__panel { --p-h: 220px; }
  .twin__body { padding: var(--s-4) var(--ly-cut-room) var(--s-4) var(--s-4); gap: var(--s-3); }
}
