/* ============================================================
   Services block (chapter 09) — lifecycle diagram + callouts.
   Layout lives here, separate from css/sb.css / ai-overlay.css, like
   css/localmgmt-block.css and css/xclarity-block.css.

   #ai-services-grid is a 1286 x 723 design space: the diagram image,
   the 7 lifecycle nodes (#sv-node-1..7) and the callout cards
   (#sv-card-1..7) are positioned inside it. The whole space is scaled
   by the window scale (--stage-sw, set by gl_script.js).
   The node/card animation is driven by gl_script.js (servicesStep).
   ============================================================ */
#ai-services-grid {
  position: absolute;
  padding: 10px;
  text-align: left;
  pointer-events: none;
  width: 1286px;
  height: 723px;
  left: 42%;
  top: 38%;
  margin-left: -653px;
  margin-top: -361px;
  transform: translateY(-21px) scale(calc(0.865 * var(--stage-sw, 1.2118) / var(--stage-s, 0.822) * var(--sv-fit, 1))) !important;
  transform-origin: 50% 50% !important;
  /* --sv-fit: extra scale while the Lenovo AI panel is open (js/services-fit.js) */
}
@media (max-height: 800px) {
  #ai-services-grid {
    margin-top: -355px;
    transform: translateY(-21px) scale(calc(0.8 * var(--stage-sw, 1.2118) / var(--stage-s, 0.822) * var(--sv-fit, 1))) !important;
  }
}

/* lifecycle diagram */
#ai-services-grid .sv-diagram {
  position: absolute;
  top: 175px;
  left: 276px;
  width: 600px;
}

/* lifecycle nodes */
#ai-services-grid .sv-node {
  position: absolute;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 1;
  pointer-events: all;
}
#sv-node-1 { top: 343px; left: 275px; }
#sv-node-2 { top: 230px; left: 439px; }
#sv-node-3 { top: 267px; left: 734px; }
#sv-node-4 { top: 491px; left: 796px; }
#sv-node-5 { top: 590px; left: 661px; }
#sv-node-6 { top: 539px; left: 403px; }

#ai-services-grid .sv-node img {
  width: 105.3%; /* SVG viewBox has a 0.5 margin: scale up so the circle keeps its 44px size */
  display: block;
  -webkit-transform: translate(-50%, -50%) scale(1);
  transform: translate(-50%, -50%) scale(1);
  top: 50%;
  position: absolute;
  left: 50%;
  border-radius: 50%;
  -webkit-transition: -webkit-transform 0.45s ease, box-shadow 0.45s ease, opacity 0.45s ease;
  transition: transform 0.45s ease, box-shadow 0.45s ease, opacity 0.45s ease;
}
/* 2026-10-29 (Nick): Lenovo Brand World colours. Circles are Deep Purple #4D144A with white
   numbers at rest (images_gl/services/N.svg); the active stage swaps to Lenovo red #E2231A
   (N-on.svg, gl_script.js servicesSetActive) and grows 20%. Hover grows 15% with a pale ring,
   so it reads as clickable; the TruScale text is clickable too. */
/* hover: grow 15% and show a thin Pale Purple 1 (#D9C1D8, Lenovo Brand World) ring sitting right on
   the edge of the circle (Nick 2026-10-29: better contrast than Pale Purple 2 #F1E1ED, which
   all but vanished on the pale stage; replaced a red ring with a gap) */
#ai-services-grid .sv-node:hover img {
  -webkit-transform: translate(-50%, -50%) scale(1.15);
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 0 0 2px #D9C1D8; /* 2px (was 3px): thinner reads cleaner (Nick) */
}
/* selected: red fill (N-on.svg), 20% larger; no ring (Nick 2026-10-29: the glow was overkill) */
#ai-services-grid .sv-node.sv-on img {
  -webkit-transform: translate(-50%, -50%) scale(1.2);
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: none;
}
/* while TruScale has its turn, the six stages step back */
#ai-services-grid.sv-truscale-on .sv-node:not(#sv-node-7) img { opacity: 0.4; }

/* TruScale node (Nick 2026-10-29, third pass): plain Deep Purple text, centred in the empty
   floor in the middle of the illustration (that hole spans x 181-459, y 160-347 of the 600px
   small.png, centre ~(316, 255), i.e. (592, 430) in this design space). Hover: grows a little and
   turns bold. Selected (its turn, or clicked): bold, grown, and underlined with a clean red line
   that draws in from the centre. No box, no dot. Weights need !important: ai-overlay.css's
   global font sync matches this block's "pointcontent" class and forces weight 400. */
#ai-services-grid #sv-node-7 {
  top: 379px;
  left: 499px;
  width: 187px;
  height: 92px;
}
#ai-services-grid #sv-node-7 span {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%) scale(1);
  transform: translate(-50%, -50%) scale(1);
  color: #4D144A;
  font-size: 18px;
  font-weight: 400 !important;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  -webkit-transition: transform 0.35s ease;
  transition: transform 0.35s ease;
}
#ai-services-grid #sv-node-7 span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 64%;
  height: 2px;
  background: #E2231A;
  -webkit-transform: translateX(-50%) scaleX(0);
  transform: translateX(-50%) scaleX(0);
  -webkit-transition: transform 0.35s ease;
  transition: transform 0.35s ease;
}
#ai-services-grid #sv-node-7:hover span,
#ai-services-grid #sv-node-7.sv-on span {
  font-weight: 700 !important;
  -webkit-transform: translate(-50%, -50%) scale(1.12);
  transform: translate(-50%, -50%) scale(1.12);
}
#ai-services-grid #sv-node-7.sv-on span::after {
  -webkit-transform: translateX(-50%) scaleX(1);
  transform: translateX(-50%) scaleX(1);
}

/* "Technology Areas" list (shown before the first callout) */
#ai-services-grid #sv-areas {
  position: absolute;
  width: 210px;
  display: none;
  top: 310px;
  left: 985px;
  z-index: 1;
}
#sv-areas h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: bold;
  width: 400px;
}
#sv-areas ul { padding-left: 0; margin: 0; list-style: none; }
#sv-areas ul li::before {
  color: black;
  content: "\2022";
  margin-right: 7px;
}
#sv-areas ul li {
  margin-bottom: 7px;
  font-size: 14px !important;
  line-height: 1;
}

/* callout cards 1-7 */
#ai-services-grid .sv-card {
  position: absolute;
  width: 260px;
  display: none;
  z-index: 1;
  top: 310px;
  left: 985px;
}
#ai-services-grid #sv-card-7 { width: 345px; }
#ai-services-grid .sv-card h3 {
  margin: 0 0 10px;
  font-size: 26px !important;
}
#ai-services-grid .sv-card p {
  font-size: 16px !important;
  width: 400px;
}
#ai-services-grid .sv-card ul { padding-left: 0; margin: 0; list-style: none; }
#ai-services-grid .sv-card ul li,
#ai-services-grid .sv-card ul li span {
  font-size: 14px !important;
}
#ai-services-grid .sv-card ul li {
  margin-bottom: 7px;
  line-height: 1;
  color: #3b4652;
}
#ai-services-grid .sv-card ul li::before {
  content: "\2022";
  color: #3b4652;
  margin-right: 7px;
  vertical-align: top;
}
#ai-services-grid .sv-card ul li span {
  display: inline-block;
  width: calc(100% - 20px);
  vertical-align: baseline;
}
/* Card links (2026-10-29): each stage card ends with "Explore Lenovo Infrastructure Solutions"
   and the TruScale card with "Learn more about TruScale" (its old "See How" target is dead),
   in the card's own flow under its text instead of pinned to the corner of the graphic. */
#ai-services-grid .sv-card a {
  display: inline-block;
  margin-top: 12px;
  font-size: 15px;
  font-weight: bold;
  color: #E2231A;
  text-decoration: none;
  white-space: nowrap; /* one line, even in the narrower stage cards */
  pointer-events: all;
}
#ai-services-grid .sv-card a:hover { text-decoration: underline; }


/* ============================================================
   Services cards, landscape (Nick 2026-11-16): the portrait VR Rack treatment
   brought across. Eyebrow in red (Stage N of 6 / Technology Areas; Across every
   stage in Deep Purple on TruScale) > stage name > what it does > a labelled
   two-column "Services included" list with hairline rules instead of bullets >
   the web link (kept: this is the web tour, not the kiosk, so no QR codes).
   ============================================================ */
#ai-services-grid .sv-card,
#ai-services-grid #sv-card-7 { width: 400px; color: #1E0013; }
#ai-services-grid .sv-card[style*="block"] { display: flex !important; flex-direction: column; align-items: flex-start; }
#ai-services-grid .sv-card h3 {
  order: 1; margin: 0 0 10px; font-size: 30px !important; line-height: 1.08; font-weight: 700; color: #1E0013;
}
#ai-services-grid .sv-card h3::before {
  display: block; margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: #E2231A;
}
#sv-card-1 h3::before { content: "Stage 1 of 6"; }
#sv-card-2 h3::before { content: "Stage 2 of 6"; }
#sv-card-3 h3::before { content: "Stage 3 of 6"; }
#sv-card-4 h3::before { content: "Stage 4 of 6"; }
#sv-card-5 h3::before { content: "Stage 5 of 6"; }
#sv-card-6 h3::before { content: "Stage 6 of 6"; }
#sv-card-7 h3::before { content: "Across every stage"; color: #4D144A; }
#ai-services-grid #sv-card-7 h3 { font-size: 24px !important; line-height: 1.18; }
#ai-services-grid .sv-card p {
  order: 2; width: auto; margin: 0; font-size: 16px !important; line-height: 1.5; color: #4E444E;
}
#ai-services-grid .sv-card ul {
  order: 3; align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; margin: 0 !important;
}
#ai-services-grid .sv-card ul:first-of-type { margin-top: 20px !important; }
#ai-services-grid .sv-card ul:first-of-type::before {
  content: "Services included"; grid-column: 1 / -1; margin: 0 0 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #6C6962;
}
#ai-services-grid .sv-card ul li {
  margin: 0; padding: 9px 0; border-top: 1px solid #E6E2E4; line-height: 1.3; color: #1E0013;
}
#ai-services-grid .sv-card ul li,
#ai-services-grid .sv-card ul li span { font-size: 14px !important; }
#ai-services-grid .sv-card ul li::before { content: none; }
#ai-services-grid .sv-card ul li span { display: inline; width: auto; }
#ai-services-grid .sv-card a { order: 4; margin-top: 18px; }
/* "Technology Areas" (before the first card): same label and list style */
#ai-services-grid #sv-areas { width: 400px; }
#sv-areas h3 {
  width: auto; margin: 0 0 10px; font-size: 12px !important; font-weight: 700 !important;
  letter-spacing: 0.22em !important; text-transform: uppercase; color: #E2231A !important;
}
#sv-areas ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
#sv-areas ul li {
  margin: 0; padding: 9px 0; border-top: 1px solid #E6E2E4; font-size: 15px !important; line-height: 1.3; color: #1E0013;
}
#sv-areas ul li::before { content: none; }
