/* ============================================================
   Local Management block (chapter 08 · II) — same approach as
   css/xclarity-block.css: lives outside the scaled 3D scene
   (position: fixed) and is positioned by js/localmgmt-fit.js.

   The block is laid out at a fixed design size (1360 x ~330px, the
   approved Local Management screen) and js/localmgmt-fit.js scales it
   uniformly to the window, so proportions never drift:
     [ XClarity Mobile text ][ phone ][ Handset text ][ handset ]
   ============================================================ */
#ai-local-grid {
  position: fixed; z-index: 60; display: none; overflow: visible;
  width: 1430px; left: 0; top: 0;
  transform-origin: 50% 0;
}

#ai-local-grid .lm-block {
  display: grid;
  grid-template-columns: 330px 86px 180px 96px 460px 30px 248px;
  align-items: start;
  font-family: var(--font); color: #666; text-align: left;
}
#ai-local-grid .lm-mobile      { grid-column: 1; }
#ai-local-grid .lm-phone       { grid-column: 3; padding-top: 0; }
#ai-local-grid .lm-handset     { grid-column: 5; padding-top: 64px; }
#ai-local-grid .lm-handset-img { grid-column: 7; }

#ai-local-grid .lm-logo {
  display: block; width: 90px; height: auto; margin: 0 0 6px;
}
#ai-local-grid h3 {
  margin: 0 0 3px;
  font-family: var(--font); font-weight: 700; color: #111;
  font-size: 30px; line-height: 1.4; letter-spacing: 0; white-space: nowrap;
}
#ai-local-grid p {
  margin: 6px 0 0; font-family: var(--font); font-weight: 400; color: #363a40;
  font-size: 16px; line-height: 1.55; letter-spacing: 0;
}
#ai-local-grid ul.lm-list {
  list-style: disc; margin: 14px 0 0; padding: 0 0 0 16px;
}
#ai-local-grid ul.lm-list li {
  margin: 0 0 4px; font-family: var(--font); font-weight: 400; color: #363a40;
  font-size: 14px; line-height: 1.5; letter-spacing: 0;
}

/* phone slideshow: every slide in the same grid cell, cross-fading */
#ai-local-grid .lm-phone { display: grid; width: 180px; }
#ai-local-grid .lm-slide {
  grid-area: 1 / 1; display: block; width: 200px; height: auto;
  border-radius: 9px; opacity: 0; transition: opacity 1s;
}
#ai-local-grid .lm-slide.lm-on { opacity: 1; }
/* Phone screen-fill drop shadow (Claude Design spec, Nick 2026-10-22):
   0 24 48 rgba(0,0,0,.18) + 0 2 6 rgba(0,0,0,.08). The slides stack in one
   grid cell and cross-fade, so the shadow sits on the cell, not the images. */
#ai-local-grid .lm-phone { border-radius: 9px; box-shadow: 0 24px 48px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.08); }

/* Vertical divider between the XClarity Mobile block and the External
   Diagnostics Handset block (Nick 2026-10-22): the same 1px #E6E2E4 rule the
   Management screen uses, centred in the gap column between phone and text. */
/* The 200px slide overhangs its 180px column by 20px, so the visible gap runs from 20px into
   this 96px column to its end: midpoint = 20 + 76/2 = 58px from the column's left edge. */
#ai-local-grid .lm-divider { grid-column: 4; grid-row: 1; justify-self: start; margin-left: 58px; align-self: stretch; width: 1px; background: #E6E2E4; }

#ai-local-grid .lm-handset-img img { display: block; width: 260px; height: auto; }

/* chapter band hidden + short window: fixed top (!important overrides the inline top from localmgmt-fit.js) */
@media (max-height: 899px) {
  body:has(.a2.band-collapsed) #ai-local-grid { top: 190px !important; }
}
