/* MODULE: Edge AI structure diagram (work/edge-ai.html, top of the case body).
   Plain HTML boxes + CSS hairline connectors, so text and boxes stay editable (no SVG, no images).
   Desktop: parent on top, a stem and a bar down to three children in a row.
   ≤720px: parent, then the children stacked, each joined by a left spine (a simple tree).
   Neutral greys only (no accent, no decoration); type at case-body scale. */
.es-section h2{margin-bottom:14px}
.es{--es-line:rgba(33,32,28,.22);--es-gap:20px;--es-drop:22px;margin:0 0 6px}
.es-parent,.es-child{border:1px solid rgba(33,32,28,.14);border-radius:9px;background:#fff;padding:14px 16px}
.es-parent{position:relative;max-width:520px;margin:0 auto var(--es-drop);text-align:center}
.es-parent::after{content:"";position:absolute;left:50%;bottom:calc(-1 * var(--es-drop) - 1px);height:var(--es-drop);border-left:1px solid var(--es-line)}
.es-label{display:block;font-size:var(--fs-4);font-weight:500;letter-spacing:-.015em;line-height:1.3;color:var(--ink)}
.es-role{display:block;margin-top:2px;font-size:var(--fs-2);line-height:1.35;color:var(--muted-2)}
.es-text{display:block;margin-top:8px;font-size:var(--fs-3);line-height:1.5;color:var(--muted)}
.case-body .es-children{list-style:none;margin:0;padding:var(--es-drop) 0 0;max-width:none;position:relative;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--es-gap)}
.case-body .es-children > li{margin:0}
/* the horizontal bar spans child centre to child centre */
.es-children::before{content:"";position:absolute;top:0;left:calc((100% - 2 * var(--es-gap)) / 6);right:calc((100% - 2 * var(--es-gap)) / 6);border-top:1px solid var(--es-line)}
.es-child{position:relative}
.es-child::before{content:"";position:absolute;left:50%;top:calc(-1 * var(--es-drop) - 1px);height:var(--es-drop);border-left:1px solid var(--es-line)}
.es figcaption{margin-top:12px;font-size:var(--fs-2);line-height:1.45;color:var(--muted-2)}

@media (max-width:720px){
  .es{--es-drop:16px}
  .es-parent{max-width:none;text-align:left;margin-left:0}
  .es-parent::after{left:19px}
  .case-body .es-children{grid-template-columns:1fr;gap:12px;padding:var(--es-drop) 0 0 36px}
  /* tree: one continuous spine at x=20 (under the parent stem). Each box draws the spine beside
     itself (from the gap above down to its bottom; the last one stops at its elbow) plus an elbow. */
  .es-children::before{content:none}
  .es-child::before{left:-17px;top:24px;height:0;width:16px;border-left:0;border-top:1px solid var(--es-line)}
  .es-child::after{content:"";position:absolute;left:-17px;top:-13px;bottom:-1px;border-left:1px solid var(--es-line)}
  .es-children > .es-child:first-child::after{top:calc(-1 * var(--es-drop) - 1px)}
  .es-children > .es-child:last-child::after{bottom:auto;height:37px}
  .es-children > .es-child:first-child:last-child::after{height:calc(var(--es-drop) + 25px)}
}

/* status + jump link inside each line (2026-11-14: Structure and Use cases merged) */
.es-child{display:flex;flex-direction:column}
.es-status{display:inline-block;align-self:flex-start;margin-top:auto;padding-top:12px;font-size:var(--fs-1);letter-spacing:.06em;text-transform:uppercase;color:var(--muted-2)}
.es-go{padding-top:10px;font-size:var(--fs-2);font-weight:500;color:var(--accent);text-decoration:none}
.es-go:hover{text-decoration:underline;text-underline-offset:3px}
.story-lede{color:var(--ink)}

/* Regulated Industry AI Platform: a blue frame around the three lines (the horizontal experience).
   The frame's top edge acts as the bar the three lines hang from; the band at the bottom is a link. */
.es-frame{position:relative;border:1px solid var(--accent);border-radius:12px;padding:0 14px 0;background:rgba(0,120,212,.03)}
.es-frame .es-children::before{content:none}
.es-band{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:baseline;gap:4px 14px;margin:16px -14px 0;padding:12px 16px;border-top:1px solid rgba(0,120,212,.35);border-radius:0 0 11px 11px;text-decoration:none;color:inherit;transition:background-color var(--dur-1) var(--ease-out)}
.es-band:hover{background:rgba(0,120,212,.07)}
.es-band-label{font-size:var(--fs-4);font-weight:500;letter-spacing:-.015em;color:var(--accent)}
.es-band-text{font-size:var(--fs-2);color:var(--muted)}
.es-band-go{font-size:var(--fs-2);font-weight:500;color:var(--accent)}
.es-band:hover .es-band-go{text-decoration:underline;text-underline-offset:3px}
@media (max-width:720px){
  .es-frame{padding:0 12px}
  .es-frame .es-children{padding-left:0}
  .es-frame .es-child::before,.es-frame .es-child::after{content:none}
  .es-frame .es-children{padding-top:12px}
  .es-band{grid-template-columns:1fr;margin:12px -12px 0}
}
