/* Pattern G (2026-11-05): F's design (/static/theme/style.css, ai-iot.css, itsec.css are loaded first) with the client's own
   copy. Only the parts G adds are styled here: the two AI & IoT paths (service rows, the factory service picker),
   the service-page overview, and the IT / Security lightbox buttons (chips and the folded list open the lightbox).
   Same rules as F: 16px body, full-width blocks, big marks, hover = colour only (nothing moves). */

/* ---------- menu: the Factory AI & IoT column (7 services) spreads over two columns, so it is not one long list ---------- */
.mg-col-2 { grid-column: span 2; }
.mg-col-2 > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
/* no "Services top" row in G, so Close gets its own row above the cards instead of floating over the 4th card */
@media (min-width: 961px) {
  .v-g .mega-bar { position: static; display: flex; justify-content: flex-end; max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding: 12px 14px 0; }
  .v-g .mega-inner { padding-top: 8px; }
}

/* ---------- AI & IoT overview: path heads ---------- */
.g-path-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 40px; }
.g-path-no { font-family: var(--fx-font); font-size: 4.5rem; font-weight: 700; line-height: .9; color: var(--blue); letter-spacing: -.02em; }
.g-path-head .e-kicker { margin: 0 0 8px; }
.g-path-head .e-h2 { max-width: 22em; margin: 0; }
.g-path-head .ai-lead { max-width: 46em; margin: 14px 0 0; }
/* the client's illustrations (Enablement, Ai-Glies) are shown whole, not cropped like a photo */
.g-hero .dm-hero-img:has(img[src$=".svg"]) { display: flex; align-items: center; background: #E3E5FB; }
.g-hero .dm-hero-img img[src$=".svg"] { object-fit: contain; }
.g-row-vis > img[src$=".svg"] { object-fit: contain; }
.g-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.g-hero-btns .e-btn .ico { transform: none; }
.g-hero .its-btn-line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .85); }
.g-hero .its-btn-line:hover, .g-hero .its-btn-line:focus-visible { background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------- Enterprise AI: one row per service (the client's rows), visual left / copy right, alternating ---------- */
.g-rows { display: grid; gap: 24px; }
.g-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 32px; border: 1px solid var(--line);
  border-radius: 16px; background: #fff; }
.g-row:nth-child(even) .g-row-vis { order: 2; }
.g-row-vis { overflow: hidden; border-radius: 12px; background: var(--blue-pale); }
.g-row-vis > img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.g-row-vis .ai-demo { margin: 0; }
.g-row-copy h3 { margin: 10px 0 0; color: var(--ink); font-size: 1.75rem; line-height: 1.25; }
.g-row-copy > p { margin: 14px 0 0; }
.g-chip { margin: 6px 0 0 !important; color: var(--blue); font-size: .9375rem; font-weight: 700; }
.g-more { width: auto; max-width: none; margin-top: 24px; white-space: nowrap; }   /* "Learn more" on one line in every service row */

.g-brandline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.g-logo { display: inline-flex; align-items: center; height: 40px; }
.g-logo img { display: block; width: auto; max-width: 180px; height: 34px; object-fit: contain; }
.g-tags { color: var(--muted); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; }

.g-checks { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.g-checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.g-checks .ico { flex: 0 0 26px; width: 26px; height: 26px; color: var(--blue); }

/* ---------- Factory AI & IoT: the client's "A day in your plant" block, same layout, light mode (review 2026-11-05):
   service buttons with a number in a row + a progress line, then the big scene and a question card with Back / Next.
   No "STEP n" captions and no times. The scenes' dark floor and walls become light (the screens and machines stay dark,
   like real equipment in a bright room). ---------- */
.g-pick-hint { margin: 16px 0 0; color: var(--ink); font-weight: 700; }
.g-day { --pale-line: #D6E4FF; --bp: clamp(16px, 2.4vw, 32px); padding: var(--bp); border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.g-day-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;   /* 8 services since v1.2: two rows of 4 */ margin: 0; padding: 0; list-style: none; }
.g-day-steps button { display: flex; align-items: center; gap: 12px; width: 100%; height: 100%; min-height: 60px; padding: 12px 16px;
  border: 1px solid var(--pale-line); border-radius: 12px; background: var(--blue-pale); color: var(--illu-navy);
  font: 700 .9375rem/1.3 var(--font); text-align: left; transition: background-color .2s, border-color .2s, color .2s; }
.g-day-steps button:hover { border-color: var(--blue); }
.g-day-steps button[aria-selected="true"] { border-color: var(--blue); background: var(--blue); color: #fff; }
.g-day-steps button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.g-day-no { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--blue);
  font: 700 .875rem/1 var(--fx-font); box-shadow: inset 0 0 0 1px var(--pale-line); }
[aria-selected="true"] > .g-day-no { box-shadow: none; }
.g-day-bar { position: relative; height: 4px; margin: 14px 0 22px; border-radius: 2px; background: #E6EDF8; }
.g-day-bar i { position: absolute; inset: 0 auto 0 0; width: calc((var(--at) + 1) / var(--n) * 100%); border-radius: 2px; background: var(--blue);
  transition: width .45s var(--fx-ease); }
.g-day-body { position: relative; }
.g-day-panel { display: grid; grid-template-columns: minmax(0, 2.45fr) minmax(0, 1fr); gap: 20px; }
.g-day-panel[hidden] { display: none; }
.g-day-panel:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 16px; }
.g-day-stage { overflow: hidden; border: 1px solid var(--pale-line); border-radius: 16px; background: linear-gradient(#F7FAFF, #EAF1FC); }
.g-day-stage .ai-demo { margin: 0; border: 0; border-radius: 0; background: none; }
.g-day-stage .ai-demo figcaption { display: none; }
.g-day-stage svg { display: block; width: 100%; height: auto; }
.g-day-card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px 24px 96px; border: 1px solid var(--pale-line); border-radius: 16px; background: var(--blue-pale); }
.g-day-kick { margin: 0; color: var(--blue); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.g-day-q { margin: 12px 0 0; color: var(--ink); font-family: var(--fx-font); font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); line-height: 1.15; letter-spacing: -.01em; }
.g-day-t { margin: 12px 0 0; color: var(--text); }
.g-day-see { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 18px; padding: 0; color: var(--blue);   /* text link, not a button (user 2026-11-09) */
  font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.g-day-see:hover { text-decoration-thickness: 2px; }
.g-day-see:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
.g-day-nav { position: absolute; right: 24px; bottom: 24px; display: flex; gap: 10px; width: calc((100% - 20px) / 3.45 - 48px); }
.g-day-nav button { min-height: 46px; padding: 8px 18px; border: 1px solid var(--pale-line); border-radius: 999px; background: #fff; color: var(--ink); font: 700 .9375rem/1 var(--font); }
.g-day-nav .g-day-next { flex: 1; border-color: var(--blue); background: var(--blue); color: #fff; }
.g-day-nav button:hover { border-color: var(--blue); }
.g-day-nav .g-day-next:hover { background: var(--blue-deep); }
.g-day-nav button[aria-disabled="true"] { opacity: .45; cursor: default; }
.g-day-nav button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.g-day:not(.is-js) .g-day-steps, .g-day:not(.is-js) .g-day-bar, .g-day:not(.is-js) .g-day-nav { display: none; }
.g-day:not(.is-js) .g-day-panel + .g-day-panel { margin-top: 24px; }
.g-day:not(.is-js) .g-day-card { padding-bottom: 28px; }
/* AI Work Manuals scene (client v1.2): its animation rules from the client's styles.css, scoped + renamed */
.aiq-demo .tmhand{transform-box:fill-box;transform-origin:0% 50%;animation:g-tmh .5s ease-in-out infinite alternate}@keyframes g-tmh{from{transform:rotate(-10deg)}to{transform:rotate(12deg)}}
@keyframes g-tmsub{0%,6.00%{opacity:0}8.50%,96.00%{opacity:1}98.50%,100%{opacity:0}}
.aiq-demo .tmsub{animation:g-tmsub 10.0s linear infinite both}
.aiq-demo .tmspark{transform-box:fill-box;transform-origin:50% 50%;animation:g-tmsp 1.2s ease-in-out infinite}@keyframes g-tmsp{50%{transform:scale(1.35) rotate(20deg)}}
@keyframes g-tmL0{0%,26.00%{opacity:0}28.50%,44.00%{opacity:1}46.50%,100%{opacity:0}}
.aiq-demo .tmL0{animation:g-tmL0 10.0s linear infinite both}
@keyframes g-tmL1{0%,44.00%{opacity:0}46.50%,62.00%{opacity:1}64.50%,100%{opacity:0}}
.aiq-demo .tmL1{animation:g-tmL1 10.0s linear infinite both}
@keyframes g-tmL2{0%,62.00%{opacity:0}64.50%,96.00%{opacity:1}98.50%,100%{opacity:0}}
.aiq-demo .tmL2{animation:g-tmL2 10.0s linear infinite both}
@keyframes g-tmS0{0%,9.00%{opacity:0;transform:translateX(-24px)}11.50%,96.00%{opacity:1;transform:translateX(0)}98.50%,100%{opacity:0;transform:translateX(-24px)}}
.aiq-demo .tmS0{animation:g-tmS0 10.0s linear infinite both}
@keyframes g-tmS1{0%,14.50%{opacity:0;transform:translateX(-24px)}17.00%,96.00%{opacity:1;transform:translateX(0)}98.50%,100%{opacity:0;transform:translateX(-24px)}}
.aiq-demo .tmS1{animation:g-tmS1 10.0s linear infinite both}
@keyframes g-tmS2{0%,20.00%{opacity:0;transform:translateX(-24px)}22.50%,96.00%{opacity:1;transform:translateX(0)}98.50%,100%{opacity:0;transform:translateX(-24px)}}
.aiq-demo .tmS2{animation:g-tmS2 10.0s linear infinite both}
@keyframes g-tmT0{2.50%,26.00%{opacity:1}28.50%,100%{opacity:0}}
.aiq-demo .tmT0{animation:g-tmT0 10.0s linear infinite both}
@keyframes g-tmcap0{2.50%,26.00%{opacity:1}28.50%,100%{opacity:0}}
.aiq-demo .tmcap0{animation:g-tmcap0 10.0s linear infinite both}
@keyframes g-tmcap1{0%,26.00%{opacity:0}28.50%,64.00%{opacity:1}66.50%,100%{opacity:0}}
.aiq-demo .tmcap1{animation:g-tmcap1 10.0s linear infinite both}
@keyframes g-tmcap2{0%,64.00%{opacity:0}66.50%,96.00%{opacity:1}98.50%,100%{opacity:0}}
.aiq-demo .tmcap2{animation:g-tmcap2 10.0s linear infinite both}
/* light mode for the client's scenes: floor, walls and frames */
.g-day-stage svg [fill="#0E1530"] { fill: #D9E3F2; }
.g-day-stage svg [fill="#151D3B"] { fill: #F1F5FB; }
.g-day-stage svg [stroke="#2A3456"] { stroke: #B7C5DB; }
.g-day-stage svg [fill="#1E2747"] { fill: #C9D6EA; }
/* light mode: readouts that were pale-on-dark need a dark colour on the pale panels (client 2026-11-12) */
.g-day-stage svg text[class^="s4r"], .g-day-stage svg text[class^="s3c"][fill="#ffffff"] { fill: #0B2447; }
.g-day-stage svg text.s4w2, .g-day-stage [data-demo="scene-4"] text[fill="#FCA5A5"] { fill: #DC2626; }
.g-day-stage svg text.s4w2 { font-weight: 800; }
.g-rows-factory { margin-top: 40px; }

/* why choose us: numbered cards */
.g-why li { position: relative; }
.g-why-no { display: block; margin-bottom: 12px; color: var(--blue); font-family: var(--fx-font); font-size: 1.75rem; font-weight: 700; line-height: 1; }

/* ---------- service page: the client's description + checks (with the screen when there is no "how it works") ---------- */
.g-ov { display: grid; gap: 32px; }
.g-ov.has-vis { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }   /* text from the top, next to the picture (user 2026-11-10) */
.g-ov .ai-lead { max-width: none; margin: 0; color: var(--ink); font-size: 1.125rem; line-height: 1.75; }
.g-ov:not(.has-vis) .g-checks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.g-ov:not(.has-vis) .g-checks li { padding: 20px; border: 1px solid var(--line); border-radius: var(--r); }
.g-ov-vis .ai-demo { margin: 0; }
.g-steps p { margin: 0; color: var(--ink); }
.g-brand .g-tags { margin: 0; }

/* ---------- IT / Security: chips and list rows open the diagram's lightbox ---------- */
.g-open { display: inline-block; margin: 0; padding: 4px 10px; border: 1px solid #BFD6FF; border-radius: 4px; background: var(--blue-pale); color: var(--blue);
  font: inherit; font-size: .8125rem; font-weight: 700; line-height: 1.5; text-align: left; cursor: pointer; }
.g-open:hover, .g-open:focus-visible { border-color: var(--blue); background: var(--blue); color: #fff; }
.g-open:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.its-all-col .g-open { display: block; width: 100%; padding: 6px 0; border: 0; background: none; color: var(--ink); font-size: 1rem; font-weight: 400; line-height: 1.45; }
.its-all-col .g-open:hover, .its-all-col .g-open:focus-visible { background: none; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.g-feats { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.g-feats li { display: flex; gap: 12px; align-items: flex-start; }
.g-feats .ico { flex: 0 0 26px; width: 26px; height: 26px; margin-top: 1px; color: var(--blue); }
.g-feats strong { display: block; color: var(--ink); }
.g-feats span { display: block; margin-top: 2px; color: var(--text); font-size: .9375rem; }
.g-its .its-map-sec { padding-top: 64px; }
.g-cost { max-width: 60em; color: var(--ink); }

/* AI Work Manuals (Teachme Biz, client v1.2): AI features grid + the client's overview poster */
.g-ai-svc .ai-flow-rows + .ai-stat { margin-top: 28px; }
.ai-manuals .ai-flow-copy p { margin-top: 10px; color: var(--ink); font-size: 1.125rem; line-height: 1.6; }
.g-aif { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.g-aif li { padding: 0 0 24px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.g-aif-img { display: grid; place-items: center; aspect-ratio: 608 / 416; background: #F5F5F7; border-bottom: 1px solid var(--line); }
.g-aif-img img { width: 100%; height: 100%; object-fit: contain; }
.g-aif h3 { margin: 20px 24px 0; font-size: 1.125rem; }
.g-aif p { margin: 8px 24px 0; }
.g-poster { max-width: 760px; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.g-poster img { display: block; width: 100%; height: auto; }

@media (max-width: 1100px) {
  .g-day-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .g-day-panel { grid-template-columns: minmax(0, 1fr); }
  .g-day-card { padding-bottom: 28px; }
  .g-day-nav { position: static; width: auto; justify-content: space-between; margin-top: 16px; }
  .g-day-nav .g-day-next { flex: 0 1 220px; }
}
@media (max-width: 860px) {
  .g-aif { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-row { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 20px; }
  .g-row:nth-child(even) .g-row-vis { order: 0; }
  .g-ov.has-vis, .g-ov:not(.has-vis) .g-checks { grid-template-columns: minmax(0, 1fr); }
  .g-day-steps { display: flex; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .g-day-steps li { flex: 0 0 200px; }
}
@media (max-width: 720px) {
  .g-aif { grid-template-columns: minmax(0, 1fr); }
  .g-path-head { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 28px; }
  .g-path-no { font-size: 3rem; }
  .g-row-copy h3 { font-size: 1.375rem; }
  .g-day-steps button { min-height: 60px; }
}
@media (max-width: 960px) {      /* the phone menu sheet (E/style.css): one list */
  .mg-col-2 { grid-column: auto; }
  .mg-col-2 > ul { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- EC diagrams (digital-marketing-ec.html, client 2026-11-06): the client's three images as HTML / CSS,
   drawn like the marketing top page's overview: numbered blue columns, pale chips, arrows between stages ---------- */
.gd { margin: 24px 0 0; padding: clamp(14px, 2vw, 24px); border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.soft .gd, .dmx-feature .gd { border-color: rgba(0, 30, 80, .08); }
.gd figcaption { margin-top: 14px; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.gd h5 { margin: 0 0 8px; color: var(--ink); font-size: .9375rem; font-weight: 700; line-height: 1.35; }
.gd ul, .gd ol { margin: 0; padding: 0; list-style: none; }
.gd-flow { display: grid; align-items: stretch; gap: 0; }      /* the 28px arrow columns already space the stages (user 2026-11-06) */
.gd-col { --c: #166DFF; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-sm); border-top: 4px solid var(--c); background: var(--soft); }
.gd-col.s2 { --c: #4A90FF; }
.gd-col.s3 { --c: #7DB0FF; }
.gd-col.s4 { --c: #A9CBFF; }
.gd-col-h { display: flex; align-items: center; gap: 10px; margin: 0 0 2px; color: var(--ink); font-family: var(--fx-font); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.gd-no { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--fx-font); font-size: .875rem; font-weight: 700; }
.gd-group { padding: 12px; border-radius: var(--r-sm); background: #fff; }
.gd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-chips li { padding: 6px 10px; border-radius: 6px; background: var(--pale); color: var(--ink); font-size: .875rem; font-weight: 500; line-height: 1.35; }
.gd-brands li { background: #fff; box-shadow: inset 0 0 0 1px #C9D6E8; font-weight: 700; }
.gd-data li { background: #fff; box-shadow: inset 0 0 0 1px rgba(22, 109, 255, .35); color: var(--blue); }
.gd-arrow { display: grid; place-items: center; color: var(--blue); }
.gd-arrow svg { width: 24px; height: 24px; }
.gd-platform { padding: 14px; border-radius: var(--r-sm); background: var(--blue); color: #fff; }
.gd-platform-name { margin: 0; color: inherit; font-family: var(--fx-font); font-size: 1.1875rem; font-weight: 700; line-height: 1.25; }
.gd-platform-p { margin: 4px 0 0; color: rgba(255, 255, 255, .88); font-size: .875rem; }
.gd-results { display: grid; gap: 8px; }
.gd-results li { padding: 14px 12px; border-radius: var(--r-sm); background: #fff; color: var(--ink); font-weight: 700; font-size: .9375rem; line-height: 1.4; }
.gd-band { margin: 12px 0 0; padding: 14px 18px; border-radius: var(--r-sm); background: #0E2A57; color: #fff; font-family: var(--fx-font); font-weight: 700; text-align: center; line-height: 1.4; }

/* 1. overview: four stages in a row */
.gd-ov { grid-template-columns: minmax(0, .9fr) 28px minmax(0, 1.15fr) 28px minmax(0, 1.15fr) 28px minmax(0, .9fr); }
.gd-ov .gd-col.s2 { justify-content: flex-start; }

/* 2. Intelligent Commerce: sources -> the platform (four steps + the data it reads) -> use cases and outputs */
.gd-ic { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1.25fr) 28px minmax(0, 1fr); }
.gd-ic-core { background: var(--pale); }
.gd-ic-core > .gd-platform-name { padding: 12px 14px; border-radius: var(--r-sm); background: var(--blue); color: #fff; text-align: center; }
.gd-steps { display: grid; gap: 6px; counter-reset: none; }
.gd-steps li { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: #fff; color: var(--ink); font-weight: 700; font-size: .9375rem; }
.gd-steps li + li::before { content: ""; position: absolute; top: -7px; left: 25px; width: 2px; height: 8px; background: var(--blue); }
.gd-uses { display: grid; gap: 6px; }
.gd-uses li { padding: 8px 10px; border-left: 3px solid var(--blue); border-radius: 0 6px 6px 0; background: var(--pale); color: var(--ink); font-size: .875rem; line-height: 1.45; }

/* 3. end-to-end: five tabs that step from dark to light blue, each over its card; the support band below */
.gd-stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.gd-stage { --c: #0B3A8C; display: flex; flex-direction: column; }
.gd-stage.s2 { --c: #0F4DB5; }
.gd-stage.s3 { --c: #1460DD; }
.gd-stage.s4 { --c: #166DFF; }
.gd-stage.s5 { --c: #3A82F7; }
.gd-stage-tab { display: flex; flex-direction: column; margin: 0; padding: 12px 22px 12px 14px; background: var(--c); color: #fff; font-family: var(--fx-font); font-weight: 700; line-height: 1.2;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.gd-stage-no { font-size: 1.5rem; }
.gd-stage-card { flex: 1; display: flex; flex-direction: column; gap: 10px; margin-top: 8px; padding: 12px; border-radius: var(--r-sm); border: 1px solid #C9D6E8; background: var(--soft); }
.gd-stage-sub { margin: 0; color: var(--muted); font-size: .875rem; font-weight: 700; }
.gd-mini-flow { margin: 0; color: var(--ink); font-size: .8125rem; line-height: 1.5; }
.gd-mini-flow span[aria-hidden] { color: var(--blue); }
.gd-tasks { display: grid; gap: 6px; margin-top: auto !important; padding-top: 12px !important; }      /* extra space above the list only (the card gap stays 10px) */
.gd-tasks li { padding: 8px 10px; border: 1px solid #B9C3D0; border-radius: 6px; background: var(--pale); color: var(--ink); font-size: .875rem; line-height: 1.45; }      /* like .gd-uses li but with even corners and a grey outline against the grey card (user 2026-11-06) */
.gd-e2e-band { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 15em); gap: 12px; align-items: center; margin-top: 14px; padding: 12px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 2px #0E2A57; }
.gd-e2e-band-h { margin: 0; padding: 12px 16px; border-radius: 6px; background: #0E2A57; color: #fff; font-family: var(--fx-font); font-weight: 700; }
.gd-e2e-band-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.gd-e2e-band-list li { display: grid; place-items: center; padding: 10px 8px; border-radius: 6px; background: var(--pale); color: var(--ink); font-size: .875rem; font-weight: 700; line-height: 1.3; text-align: center; }
.gd-e2e-band-p { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.5; }

/* narrower screens: the stages stack; arrows turn to point down */
@media (max-width: 1100px) {
  .gd-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gd-e2e-band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .gd-ov, .gd-ic { grid-template-columns: minmax(0, 1fr); }
  .gd-arrow svg { transform: rotate(90deg); }
}
@media (max-width: 760px) {
  .gd-stages { grid-template-columns: minmax(0, 1fr); }
  .gd-stage-tab { flex-direction: row; align-items: baseline; gap: 10px; clip-path: none; border-radius: var(--r-sm) var(--r-sm) 0 0; }
  .gd-stage-card { margin-top: 0; border-radius: 0 0 var(--r-sm) var(--r-sm); }
  .gd-e2e-band-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* white text on the dark tabs / bands (the page's own p colour is more specific than the classes above) */
.gd p.gd-stage-tab, .gd p.gd-stage-tab span, .gd p.gd-e2e-band-h, .gd p.gd-e2e-band-h span, .gd p.gd-band, .gd p.gd-band span,
.gd .gd-platform p, .gd .gd-platform span, .gd p.gd-platform-name { color: #fff; }
.gd .gd-platform p.gd-platform-p, .gd .gd-platform p.gd-platform-p span { color: rgba(255, 255, 255, .88); }
.gd p.gd-col-h, .gd p.gd-col-h span { color: var(--ink); }
/* marketplace logos in the chips (client 2026-11-06) */
.gd-chips li.gd-logo { display: inline-flex; align-items: center; gap: 6px; }
.gd-chips li.gd-logo img { display: block; width: auto; height: 18px; }
.gd-chips li.gd-word { padding: 6px 12px; }
.gd-chips li.gd-word img { height: 20px; }
.gd-chips li.gd-logo { background: #fff; box-shadow: inset 0 0 0 1px #C9D6E8; font-weight: 700; }
.gd-chips li.gd-word img[src$="kantar.png"] { height: 15px; }      /* a heavy wordmark: kept the same visual weight as the others */
.gd p.gd-mini-flow, .gd p.gd-mini-flow span { color: #000; font-size: .8125rem; font-weight: 700; line-height: 1.5; }      /* client 2026-11-06: the order flow in black, bold */
.gd p.gd-mini-flow span[aria-hidden] { color: var(--blue); }
.gd-chips li.gd-word img[src$="quantium.png"] { height: 28px; }
.gd-chips li.gd-word img[src$="spx.svg"] { height: 24px; }
.dmx-ec .dmx-features + .its-note { margin-top: 20px; }      /* user 2026-11-06: space above the closing note on the EC page */

/* the Intelligent Commerce dashboard, drawn small (overview, column 2; user 2026-11-06) */
.gdb { display: grid; grid-template-columns: 22px minmax(0, 1fr); overflow: hidden; border: 1px solid #C9D6E8; border-radius: 8px; background: #fff; box-shadow: 0 8px 20px -12px rgba(0, 30, 90, .35); }
.gdb i { display: block; }
.gdb-side { display: flex; flex-direction: column; gap: 6px; padding: 8px 5px; background: #F3F6FA; border-right: 1px solid #E1E7EF; }
.gdb-side i { height: 4px; border-radius: 2px; background: #CBD4E1; }
.gdb-side i.on { background: var(--blue); }
.gdb-main { min-width: 0; padding: 8px; }
.gdb-bar { display: flex; gap: 4px; margin-bottom: 8px; }
.gdb-bar i { flex: 1; height: 8px; border-radius: 2px; background: #EEF2F7; box-shadow: inset 0 0 0 1px #DDE4ED; }
.gdb-bar i.btn { flex: 0 0 18px; background: var(--blue); box-shadow: none; }
.gd p.gdb-h { margin: 0 0 6px; color: var(--ink); font-size: .6875rem; font-weight: 700; line-height: 1.2; }
.gdb-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.gdb-kpi { display: flex; flex-direction: column; padding: 5px 6px; border: 1px solid #E1E7EF; border-radius: 4px; line-height: 1.15; }
.gdb-k { color: var(--muted); font-size: .5625rem; }
.gdb-kpi b { color: var(--ink); font-size: .75rem; }
.gdb-d { align-self: flex-start; margin-top: 2px; padding: 0 3px; border-radius: 2px; font-size: .5rem; font-weight: 700; }
.gdb-d.up { background: #E3F5EA; color: #1E7B45; }
.gdb-d.down { background: #FDE8E8; color: #B42318; }
.gdb-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-top: 4px; }
.gdb-chart { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 5px; border: 1px solid #E1E7EF; border-radius: 4px; }
.gdb-ct { align-self: flex-start; color: var(--ink); font-size: .5625rem; font-weight: 700; }
.gdb-donut { width: 44px; aspect-ratio: 1; border-radius: 50%; -webkit-mask: radial-gradient(circle, transparent 52%, #000 53%); mask: radial-gradient(circle, transparent 52%, #000 53%); }
.gdb-donut.a { background: conic-gradient(#3B6FD8 0 58%, #F0B3AE 58% 86%, #C9D3E3 86% 100%); }
.gdb-donut.b { background: conic-gradient(#3B6FD8 0 64%, #F0B3AE 64% 90%, #C9D3E3 90% 100%); }
.gdb-leg { display: flex; gap: 3px; }
.gdb-leg i { width: 10px; height: 3px; border-radius: 2px; background: #3B6FD8; }
.gdb-leg i + i { background: #F0B3AE; }
.gdb-leg i + i + i { background: #C9D3E3; }

/* ---------- Treasure AI diagrams (digital-marketing-treasure-ai.html, client 2026-11-06): the client's two images as
   HTML / CSS. "What is Treasure AI?" = sources -> hub -> destinations; segment + journey = two panels ---------- */
.g-what-p { max-width: 52em; }
.gt-ico { flex: none; width: 22px; height: 22px; color: var(--blue); }

/* stage tabs over the architecture */
.gt-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px !important; }
.gt-tabs li { padding: 10px 26px 10px 24px; background: #0F4DB5; color: #fff; font-family: var(--fx-font); font-weight: 700; line-height: 1.25;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%); }
.gt-tabs li:first-child { padding-left: 16px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.gt-tabs li.s1 { background: #3A82F7; }
.gt-tabs li.s3 { background: #0E2A57; }
.gt-tabs li span { color: #fff; }

.gt-arch { display: grid; grid-template-columns: minmax(0, 170px) 28px minmax(0, 1fr) 28px minmax(0, 170px); align-items: stretch; }
.gt-col { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r-sm); background: var(--soft); }
.gd p.gt-col-h, .gd p.gt-col-h span { margin: 0; color: var(--ink); font-size: .9375rem; font-weight: 700; text-align: center; }
.gt-ends { display: grid; gap: 6px; }
.gt-ends li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #B9C3D0; border-radius: 6px; background: #fff; color: var(--ink); font-size: .875rem; font-weight: 700; line-height: 1.3; }

/* the hub: capability boxes around the Treasure AI circle, joined to it by short lines */
.gt-hub { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: ". top ." "l core r" ". bottom ."; gap: 18px 22px; align-items: center; justify-items: center; padding: 6px 4px; }
.gd p.gt-cap { position: relative; margin: 0; padding: 10px 14px; border: 1px solid #B9C3D0; border-radius: var(--r-sm); background: #fff; color: var(--ink); font-size: .9375rem; font-weight: 700; line-height: 1.3; text-align: center; }
.gd p.gt-cap span { color: var(--ink); }
.gt-cap.top { grid-area: top; }
.gt-cap.bottom { grid-area: bottom; }
.gt-cap::after { content: ""; position: absolute; background: #9DB2CF; }
.gt-cap.top::after { left: 50%; top: 100%; width: 2px; height: 18px; }
.gt-cap.bottom::after { left: 50%; bottom: 100%; width: 2px; height: 18px; }
.gt-cap.l::after { left: 100%; top: 50%; width: 22px; height: 2px; }
.gt-cap.r::after { right: 100%; top: 50%; width: 22px; height: 2px; }
.gt-side { display: grid; gap: 12px; width: 100%; }
.gt-side.l { grid-area: l; }
.gt-side.r { grid-area: r; }
.gt-core { grid-area: core; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 210px; aspect-ratio: 1; padding: 22px; border: 10px solid var(--blue); border-radius: 50%; background: #fff; text-align: center; box-shadow: 0 0 0 6px var(--pale); }
.gd p.gt-core-name, .gd p.gt-core-name span { margin: 0; color: var(--blue); font-family: var(--fx-font); font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.gd p.gt-core-sub, .gd p.gt-core-sub span { margin: 2px 0 0; color: var(--ink); font-size: .6875rem; font-weight: 700; line-height: 1.3; }
.gt-core-ico { display: flex; gap: 2px; margin: 8px 0 4px; }
.gt-core-ico svg { width: 22px; height: 22px; fill: #4A90FF; }
.gd p.gt-core-p, .gd p.gt-core-p span { margin: 0; color: var(--ink); font-size: .8125rem; font-weight: 700; line-height: 1.3; }

/* segment + journey panels */
.gt-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gt-panel { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #C9D6E8; border-radius: var(--r-sm); }
.gd p.gt-panel-h, .gd p.gt-panel-h span { margin: 0; padding: 12px; background: #0E2A57; color: #fff; font-family: var(--fx-font); font-weight: 700; text-align: center; }
.gt-panel-b { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 14px; background: #fff; }
.gd p.gt-foot, .gd p.gt-foot span { margin: auto 0 0; color: var(--ink); font-size: .9375rem; font-weight: 700; line-height: 1.45; text-align: center; }
.gt-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.gt-tiles li { display: grid; place-items: center; min-height: 48px; padding: 6px 8px; border-radius: 4px; background: #E6E9EE; color: #6B7280; font-size: .8125rem; line-height: 1.3; text-align: center; }
.gt-tiles li.on { background: var(--blue); color: #fff; font-weight: 700; }
.gt-tiles li.on span { color: #fff; }
.gt-down { align-self: center; width: 0; height: 0; border-left: 34px solid transparent; border-right: 34px solid transparent; border-top: 16px solid #7A8597; }
.gt-people { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
.gt-people li { position: relative; aspect-ratio: 1; }
.gt-face { display: grid; place-items: end center; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; background: #E6E9EE; }
.gt-people .gt-face svg { width: 100%; height: 100%; fill: #B4BCC8; transform: translateY(14%) scale(1.12); }      /* fills the circle; the shoulders run off its edge */
.gt-people li.in .gt-face { background: var(--pale); box-shadow: inset 0 0 0 2px var(--blue); }
/* mail badge on the people who get the message (client image) */
.gt-mailbadge { position: absolute; top: -3px; right: -3px; display: grid; place-items: center; width: 38%; aspect-ratio: 1; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px #fff; }
.gt-mailbadge svg { display: block; width: 62%; height: 62%; }      /* user 2026-11-06: blue like the ring, not orange */
.gt-people li.in .gt-face svg { fill: #0F4DB5; }

/* journey: steps placed in % on a box, joined by elbow lines (solid = read, dashed = unread) */
.gtj-map { position: relative; aspect-ratio: 4 / 3; margin: 4px 0; }
.gtj-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gtj-lines polyline { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.gtj-lines .read { stroke: #0F4DB5; }
.gtj-lines .unread { stroke: #9AA5B5; stroke-dasharray: 5 4; }
.gtj-tag { position: absolute; transform: translate(-50%, -125%); color: #0F4DB5; font-size: .75rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.gtj-tag.unread { color: #7A8597; }
.gtj-tag span { color: inherit; }
.gtj-node { position: absolute; width: 0; height: 0; }
.gtj-dot { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #0F4DB5; color: #fff; font-size: .625rem; font-weight: 700; box-shadow: 0 0 0 3px #fff; }
.gtj-node .gtj-dot { position: absolute; left: -20px; top: -20px; }
.gtj-dot.sms, .gtj-dot.mail, .gtj-node.sms .gtj-dot, .gtj-node.mail .gtj-dot { background: #8E99AA; }      /* the "unread" channels are grey, as in the client image */
.gd p.gtj-txt { position: absolute; left: 26px; top: -18px; width: max-content; max-width: 132px; margin: 0; color: var(--ink); font-size: .6875rem; line-height: 1.3; }
.gtj-txt b { display: block; font-size: .875rem; }
.gtj-list { display: none; }

@media (max-width: 1100px) {
  .gt-core { width: 180px; padding: 16px; border-width: 8px; }
}
@media (max-width: 960px) {
  .gt-arch { grid-template-columns: minmax(0, 1fr); }
  .gt-arch .gd-arrow svg { transform: rotate(90deg); }
  .gt-ends { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gt-panels { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .gt-tabs { grid-template-columns: minmax(0, 1fr); }
  .gt-tabs li, .gt-tabs li:first-child { padding-left: 16px; clip-path: none; border-radius: 6px; }
  .gt-hub { grid-template-columns: minmax(0, 1fr); grid-template-areas: "core" "top" "l" "r" "bottom"; gap: 8px; }
  .gt-cap::after { display: none; }
  .gt-hub > .gt-cap, .gt-side { width: 100%; }
}
/* phones: the journey drawing needs width, so it becomes a list */
@media (max-width: 600px) {
  .gtj-map { display: none; }
  .gtj-list { display: grid; gap: 10px; }
  .gtj-list li { display: flex; gap: 10px; align-items: flex-start; }
  .gtj-list p { margin: 0; color: var(--ink); font-size: .875rem; line-height: 1.4; }
  .gtj-list b { display: block; }
  .gtj-when { display: inline-block; margin: 2px 0 4px; padding: 1px 6px; border-radius: 4px; background: var(--pale); color: #0F4DB5; font-size: .75rem; font-weight: 700; }
  .gtj-when.unread { background: #EEF0F3; color: #5E6878; }
  .gtj-when span { color: inherit; }
  .gtj-when + span { display: block; }
  .gt-tiles li { font-size: .75rem; }
}
/* the drag-and-drop hand on the Day 10 step (client image): move arrows behind a pointing hand, lower right of the dot */
.gtj-hand { position: absolute; left: -12px; top: 16px; z-index: 2; width: 34px; height: 34px; pointer-events: none; }
.gtj-move { position: absolute; left: -10px; top: -2px; width: 20px; height: 20px; color: #0F4DB5; }
.gtj-finger { position: absolute; left: 4px; top: 2px; width: 30px; height: 30px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
/* the first person in the segment: orange envelope; the pointing hand clicks the Female tile (user 2026-11-06) */
.gt-people li.pick .gt-mailbadge { background: #F07D1A; }
.gt-tiles li { position: relative; }
.gt-pointer { position: absolute; left: 66%; top: 34%; z-index: 2; width: 26px; height: 26px; pointer-events: none; }
.gt-pointer svg { position: static; display: block; width: 100%; height: 100%; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }


/* ---- network diagram, client comments 2026-11-06 ---- */
/* global sites: no flags any more, the globe and the name sit in the middle */
.g-its .itd-global .itd-head { align-items: center; border-bottom: 0; padding-bottom: 0; }
.g-its .itd-global h3 { text-align: center; }
/* cloud: IaaS and Cloud PBX icons centred */
.g-its .itd-cloud .itd-items { justify-content: center; gap: 12px 40px; }
/* security page: the monitoring box is as tall as the cloud box, NOC and SIEM / SOC further apart, chips under them */
.g-its.its-sec .itd-ops { align-self: stretch; }
.g-its.its-sec .itd-ops .itd-items { gap: 12px 44px; margin-top: auto; }
.g-its.its-sec .itd-ops .itd-chips { display: grid; grid-template-columns: 1fr; margin: 10px 0 auto; }   /* one service per line (client 2026-11-09) */
.g-its.its-sec .itd-ops .itd-chips li { text-align: center; }
/* the client's product line-up inside a lightbox */
.g-lineup { margin-top: 28px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: #F7FAFF; }
.itd-about + .g-lineup { margin: 28px 0 0; }
/* client 2026-11-09: room inside the lightbox, so the last box does not touch the bottom edge */
.g-its .itd-dlg-body, .itd-dlg-body { padding-bottom: 28px; }
.itd-dlg-body > .itd-svc:last-child { padding-bottom: 0; }
/* global sites / remote access: name on top, icon under it (client 2026-11-09) */
.g-its .itd-global .itd-items, .g-its .itd-remote .itd-items { justify-content: center; }
.g-lineup-h { margin: 0 0 10px; color: var(--blue); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.g-lineup ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.g-lineup li { display: grid; grid-template-columns: minmax(150px, 34%) minmax(0, 1fr); gap: 4px 16px; line-height: 1.5; }
.g-lineup strong { color: var(--ink); }
.g-lineup span { color: var(--text); }
@media (max-width: 640px) {
  .g-lineup li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .g-lineup li + li { padding-top: 6px; border-top: 1px solid var(--line); }
}
@media (max-width: 720px) { .itd-dlg-body { padding-bottom: 20px; } }

/* use cases: Before / After label column fits the label (was 4.25em, too much space before the text) */
.g-ai .ai-b, .g-ai .ai-a, .g-ai-svc .ai-b, .g-ai-svc .ai-a { grid-template-columns: 3.5rem minmax(0, 1fr); gap: 8px; }
@media (max-width: 480px) { .g-more { white-space: normal; } }   /* very narrow phones: let the longest label wrap */

/* service rows: no caption under the JAPAN AI / AGENTIC STAR demo screens (user 2026-11-09) */
.g-row-vis .ai-demo figcaption { display: none; }

/* use-case cards: 14px gap (user 2026-11-09) */
.g-ai .ai-cases, .g-ai-svc .ai-cases { gap: 14px; }

/* KPI list (e.g. 6 KPIs from video): number + label centred vertically in each cell (user 2026-11-09) */
.g-ai-svc .ai-stat.is-list .ai-stat-items li, .g-ai .ai-stat.is-list .ai-stat-items li { align-items: center; }

/* "See it in action" over the centred poster: centre the heading too (user 2026-11-09) */
.ai-head:has(+ .g-poster) { justify-content: center; text-align: center; }

/* AI timelines ("How we start", "Start with a proof of value"): same look as Digital Marketing's
   "Complete service overview" (F/style.css .fx-ov): a line with a ring per step, big number, step in a card (user 2026-11-09) */
.ai-page .ai-tl { --tl-gap: 20px; position: relative; grid-template-columns: none; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: var(--tl-gap); margin-top: clamp(32px, 4vw, 52px); padding-top: 40px; }
.ai-page .ai-tl::before { content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 2px; background: var(--blue); }
.ai-page .ai-tl li, .ai-page .ai-tl li + li { --c: #166DFF; display: flex; flex-direction: column; padding: 0; border-top: 0; }
.ai-page .ai-tl li:nth-child(2) { --c: #4A90FF; }
.ai-page .ai-tl li:nth-child(3) { --c: #7DB0FF; }
.ai-page .ai-tl li:nth-child(n + 4) { --c: #A9CBFF; }
.ai-page .ai-tl li::before, .ai-page .ai-tl li + li::before { top: -40px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 5px var(--c); }
.ai-page .ai-tl-no { margin: 0; color: var(--c); font: 700 clamp(3rem, 2rem + 2.6vw, 4.75rem)/.9 var(--fx-font); letter-spacing: -.05em; }
.ai-page .ai-tl-card { flex: 1; margin-top: 16px; padding: 22px; border-top: 4px solid var(--c); border-radius: var(--r); background: var(--soft); }
.ai-page .ai-sec.soft .ai-tl-card { background: #fff; }
.ai-page .ai-tl-card h3 { color: var(--ink); font-size: 1.1875rem; line-height: 1.35; }
.ai-page .ai-tl-card p { margin-top: 8px; color: var(--muted); font-size: .9375rem; line-height: 1.65; }
@media (max-width: 960px) {
  .ai-page .ai-tl { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; padding-top: 0; }
  .ai-page .ai-tl::before, .ai-page .ai-tl li::before, .ai-page .ai-tl li + li::before { display: none; }
}
@media (max-width: 600px) { .ai-page .ai-tl { grid-template-columns: minmax(0, 1fr); row-gap: 32px; } }

/* Security diagram: no 3px blue top edge on the boxes (the parts in focus already show by their blue glow) (user 2026-11-10) */
.g-its.its-sec .itd-box, .g-its.its-sec .itd.is-focus .itd-box:not(.is-key):not(.has-key), .g-its.its-sec .itd.is-focus .has-key { border-top-width: 1px; border-top-color: #D6E2F3; }
.g-its.its-sec .itd.is-focus .itd-box:not(.is-key):not(.has-key), .g-its.its-sec .itd.is-focus .has-key { border-top-color: #E3E8EF; }
.g-its.its-sec .itd-box.has-dlg:hover { border-color: var(--blue); }

/* popup of a box with no service of its own (Security > Cloud): the contact button under the text (user 2026-11-10) */
.itd-dlg-body > .itd-svc-go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }

/* =====================================================================================================
   Phone review (user 2026-11-10). Everything below is G only. Items that apply at every size say so.
   ===================================================================================================== */

/* AI service rows: "Learn more: how it works & results" is a small link at the bottom right of the copy
   (every size) instead of a button */
.g-row-copy { display: flex; flex-direction: column; align-items: flex-start; }
.g-row-copy > .g-brandline, .g-row-copy > .g-checks { align-self: stretch; }
.g-ai .e-btn.g-more { align-self: flex-end; width: auto; max-width: none; min-height: 0; margin-top: 22px; padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none; color: var(--blue); font-size: .875rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; white-space: normal; text-align: right; }
.g-ai .e-btn.g-more:hover { background: none; color: var(--blue-deep); text-decoration-thickness: 2px; }
.g-ai .e-btn.g-more .ico { width: 16px; height: 16px; }

/* "A day in your plant" (every size): the scene is the hero of the block; the question is a caption beside it,
   not a blue card. The first service has no Back button. */
@media (min-width: 1101px) { .g-day-panel { grid-template-columns: minmax(0, 3.2fr) minmax(0, 1fr); gap: 24px; } }
.g-day-card { padding: 4px 0 96px; border: 0; border-radius: 0; background: none; }   /* room for the counter + Next */
.g-day-q { margin-top: 10px; font-size: clamp(1.125rem, 1rem + .45vw, 1.375rem); line-height: 1.3; }
.g-day-t { margin-top: 8px; font-size: .9375rem; }
.g-day-see { margin-top: 14px; font-size: .9375rem; }
@media (min-width: 1101px) { .g-day-nav { right: 0; bottom: 0; width: calc((100% - 24px) / 4.2); justify-content: flex-end; } }
.g-day-nav .g-day-prev[aria-disabled="true"] { display: none; }
@media (max-width: 1100px) {
  .g-day-card { padding-bottom: 16px; }
  .g-day-nav { justify-content: flex-end; }
}

/* Treasure AI: the segmentation / journey drawing already sits in a white card; no second frame (every size) */
.dmx-treasure-ai .dmx-more .gd { padding: 0; border: 0; background: none; }

/* About (every size): the story block on grey, no connector line on the Thai flag, group companies as cards */
.fx-about .e-sec:has(.story) { background: var(--soft); }
.fx-about .gm-line[data-c="th"] { display: none; }
.fx-about .fg { display: block; background: none; }
.fx-about .fg thead { display: none; }
.fx-about .fg tbody { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fx-about .fg tr { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 22px; border: 1px solid var(--line); border-top: 3px solid #C9D6E8; border-radius: var(--r); background: #fff; }
.fx-about .fg tr.is-us { border-top-color: var(--blue); }
.fx-about .fg th, .fx-about .fg td, .fx-about .fg tbody th { display: block; width: auto !important; margin: 0; padding: 0; border: 0; background: none !important; box-shadow: none; }
.fx-about .fg tbody th { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.fx-about .fg-hq { display: inline; margin: 0; }
.fx-about .fg td:last-child { margin-top: auto; padding-top: 8px; color: var(--muted); font-size: .875rem; }
.fx-about .fg tbody tr:hover th, .fx-about .fg tbody tr:hover td { background: none; }
@media (max-width: 960px) { .fx-about .fg tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fx-about .fg tbody { grid-template-columns: minmax(0, 1fr); } .fx-about .fg tr { padding: 16px; } }

/* Digital marketing top: the section bar (About / Challenges / Services ...) only as the side rail on wide screens */
@media (max-width: 1359px) { .v-g .dm-local { display: none; } }

/* "Our services" strip: dots under the cards where the strip is not pinned (g.js draws them) */
.g-dots { display: none; justify-content: center; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.g-dots button { display: block; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #C9D6E8; cursor: pointer; transition: background-color .2s, transform .2s; }
.g-dots button[aria-current="true"] { background: var(--blue); transform: scale(1.2); }
.g-dots button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 1100px) { .g-dots { display: flex; } }

@media (max-width: 960px) {
  /* header: the language switch sits next to the menu button */
  .v-g .e-header-in { column-gap: 8px; }
  .v-g .e-burger { margin: 0; }
  /* breadcrumbs: small, one line, scrolls sideways if long */
  .v-g .e-crumbs { font-size: .75rem; }
  .v-g .e-crumbs ol { flex-wrap: nowrap; padding: 8px 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .v-g .e-crumbs ol::-webkit-scrollbar { display: none; }
  .v-g .e-crumbs li { font-size: inherit; }
  .v-g .e-crumbs li + li::before { margin: 0 6px; }
}

@media (max-width: 999px) {
  /* IT / Security diagram, stacked: one vertical line runs behind the boxes, outside and inside the site, so the
     stack still reads as one network (the box-to-box lines of the wide layout are off here) */
  .g-its .itd { --g: 14px; }
  .g-its .itd-out, .g-its .itd-site, .g-its .itd-core { position: relative; }
  .g-its .itd-out::before { content: ""; position: absolute; left: 50%; top: 24px; bottom: 0; z-index: 0; width: 2px; margin-left: -1px; background: var(--ln); }
  .g-its .itd-site::before { content: ""; position: absolute; left: 50%; top: calc(-1 * var(--zg) - 2px); bottom: 24px; z-index: 0; width: 2px; margin-left: -1px; background: var(--ln); }   /* starts at the cloud box (the site sits --zg below it) */
  .g-its .itd .itd-up .itd-box::after { display: block; }      /* the short drops from other sites / internet / remote access to the WAN */
  .g-its .itd-site { background: #F7FAFF; }                       /* the site keeps a ground, so the line reads as inside it */
  .g-its .itd-site > .itd-site-h { z-index: 1; }                  /* stays absolute in the corner, above the connector line */
}
@media (max-width: 999px) {
  /* inside the site (user 2026-11-10): firewall, then the network switch, then everything that hangs off the switch
     as a tree: trunk down the left, a tick into each box */
  .g-its .itd-site { --zp: 44px; }
  .g-its .itd-site::before { bottom: auto; height: calc(var(--zg) + var(--zp) + 2px); }        /* cloud -> firewall only */
  .g-its .itd-site-h { top: 12px; left: 14px; font-size: .75rem; }    /* small label tucked in the corner (user 2026-11-10) */
  .g-its .itd .itd-r1 .itd-box::after { content: ""; display: block; position: absolute; left: 50%; bottom: calc(-1 * var(--g) - 2px); top: auto; width: 2px; height: calc(var(--g) + 2px); margin-left: -1px; background: var(--ln); }
  .g-its .itd-r2, .g-its .itd-r3 { --tr: 28px; grid-template-columns: minmax(0, 1fr); padding-left: var(--tr); row-gap: var(--g); }
  .g-its .itd-r3 { margin-top: var(--g); }
  .g-its .itd-r2 .itd-switch { order: -1; width: calc(100% + var(--tr)); margin-left: calc(-1 * var(--tr)); }
  .g-its .itd .itd-r2 .itd-box:not(.itd-switch)::before, .g-its .itd .itd-r3 .itd-box::before { content: ""; display: block; position: absolute; left: calc(-1 * var(--tr) + 12px); top: 22px; width: calc(var(--tr) - 12px); height: 2px; background: var(--ln); }
  .g-its .itd .itd-r2 .itd-box:not(.itd-switch)::after, .g-its .itd .itd-r3 .itd-box::after { content: ""; display: block; position: absolute; left: calc(-1 * var(--tr) + 11px); top: calc(-1 * var(--g) - 2px); bottom: calc(-1 * var(--g)); width: 2px; height: auto; margin: 0; background: var(--ln); }
  .g-its .itd .itd-r3 .itd-box:last-child::after { bottom: auto; height: calc(var(--g) + 2px + 23px); }   /* the trunk ends at the last tick */
  /* security highlight: the trunk stays bright all the way down to a highlighted box, and so does its tick (user 2026-11-10) */
  .g-its .itd.is-focus .itd-r2 .itd-box:has(~ .is-key)::after, .g-its .itd.is-focus .itd-r2 .itd-box:has(~ .has-key)::after,
  .g-its .itd.is-focus .itd-r3 .itd-box:has(~ .is-key)::after, .g-its .itd.is-focus .itd-r3 .itd-box:has(~ .has-key)::after,
  .g-its .itd.is-focus .itd-r2:has(+ .itd-r3 .is-key) .itd-box::after, .g-its .itd.is-focus .itd-r2:has(+ .itd-r3 .has-key) .itd-box::after,
  .g-its .itd.is-focus .itd-box.has-key::before, .g-its .itd.is-focus .itd-box.has-key::after { opacity: 1; filter: none; }
  .g-its .itd-box { padding: 12px 10px 14px; }
  .g-its .itd-items { gap: 8px 14px; }
  .g-its .itd-switch .itd-chips { justify-content: center; }
  .g-its .itd-hint { font-size: .875rem; }
  .g-its.its-sec .itd-toggle, .g-its.its-sec .itd-legend { display: none; }   /* security page: no whole-network toggle or legend on phones; the highlight simply stays on (user 2026-11-10) */
  /* Internet and Global sites are one box, "Global sites / Internet", laid out like the other boxes (user 2026-11-10) */
  .g-its .itd-up { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }   /* equal halves: the spine runs through the gap between them */
  .g-its .itd-up .itd-global { grid-column: 1; grid-row: 1; border: 1px solid #D6E2F3; border-top: 3px solid var(--blue); background: #fff; }   /* same solid white box as Remote access (user 2026-11-10) */
  .g-its.its-sec .itd-up .itd-global { border-top: 1px solid #D6E2F3; }                                  /* security page boxes have no blue top edge */
  .g-its .itd-up .itd-internet { display: none; }
  .g-its .itd-up .itd-remote { grid-column: 2; grid-row: 1; }
  .g-its .itd-up .itd-global h3::after { content: " / Internet"; }
  html:lang(th) .g-its .itd-up .itd-global h3::after { content: " / อินเทอร์เน็ต"; }
  .g-its .itd-up .itd-global .itd-head { padding-right: 0; padding-bottom: 10px; border-bottom: 1px solid #E3EBF6; }
  .g-its .itd-up .itd-global .itd-items { justify-content: center; margin: auto 0; }
}
}

@media (max-width: 960px) {
  /* hero buttons centred (phones and tablets) */
  .v-g .its-hero-cta, .v-g .ai-hero-cta { justify-content: center; }
  .v-g .its-hero-cta .e-btn, .v-g .ai-hero-cta .e-btn { margin-left: auto; margin-right: auto; }
}
@media (max-width: 720px) {

  /* Security > How we work > roles: a compact list with a blue edge instead of stacked cards */
  .g-its .its-roles { gap: 0; }
  .g-its .its-roles li, .g-its .its-page .its-roles li { padding: 14px 0 14px 18px; border: 0; border-left: 3px solid var(--blue); border-radius: 0; background: none; }
  .g-its .its-roles li + li { margin-top: 10px; }
  .g-its .its-roles h3 { font-size: 1rem; }
  .g-its .its-roles p { margin-top: 4px; font-size: .9375rem; }

  /* AI top > use cases: the department tabs are small chips in one row that stays at the top while you read */
  .g-ai .ai-tablist { position: sticky; top: 0; z-index: 6; flex-wrap: nowrap; gap: 6px; margin: 0 calc(-1 * var(--gutter, 16px)) 16px; padding: 10px var(--gutter, 16px); overflow-x: auto; background: var(--soft); scrollbar-width: none; }
  .g-ai .ai-tablist::-webkit-scrollbar { display: none; }
  .g-ai .ai-tablist [role="tab"] { flex: none; min-height: 34px; padding: 6px 12px; border-radius: 999px; font-size: .8125rem; }
  .g-ai .ai-tablist [role="tab"] span { white-space: nowrap; }

  /* DM pages: "Complete service overview" number + stage on one line; drawings centred */
  .v-g .fx-ov-col { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 12px; }
  .v-g .fx-ov-no { font-size: 2.5rem; }
  .v-g .fx-ov-stage { margin: 0; }
  .v-g .fx-ov-card { flex: 1 0 100%; }
  .v-g .fx-step-illu { margin: 0 auto; }

  /* Treasure AI > key features: [01][title] / text / picture / caption centred */
  .dmx-treasure-ai .dmx-feature-head { grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; align-items: baseline; }
  .dmx-treasure-ai .dmx-feature-head > div { display: contents; }
  .dmx-treasure-ai .dmx-feature-head p { grid-column: 1 / -1; }
  .dmx-treasure-ai .dmx-feature-head .its-feature-no { padding-top: 0; font-size: 1.75rem; }
  .dmx-page .dmx-figure figcaption { text-align: center; }

  /* E-commerce: challenge icon over its text; key features stacked with the drawing unframed */
  .dmx-ec .ai-pains li { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dmx-ec .dmx-feature-head { display: block; }
  .dmx-ec .dmx-feature-head .its-id { display: inline-block; margin-bottom: 8px; }
  .dmx-ec .dmx-feature .gd { margin-top: 16px; padding: 0; border: 0; background: none; }

  /* CRM > our services: icon and title on one line, the icon two lines tall */
  .dmx-crm .dmx-svcs .ai-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 12px; align-items: center; }
  .dmx-crm .dmx-svcs .dmx-ico { width: 48px; height: 48px; margin: 0; }
  .dmx-crm .dmx-svcs .ai-card h3 { grid-column: 2; }
  .dmx-crm .dmx-svcs .ai-card-lead { grid-column: 1 / -1; margin-top: 8px; }
}
@media (max-width: 560px) { .v-g .fx-step-illu { margin: 0 auto; } }

/* phones: Global sites / Remote access boxes read like the others, name top-left with room for the + badge (user 2026-11-10) */
@media (max-width: 999px) {
  .g-its .itd-up .has-dlg .itd-head, .g-its .itd-global .itd-head { align-items: flex-start; padding-right: 0; }
  .g-its .itd-up .itd-box h3 { font-size: .875rem; }
  .g-its .itd-up .itd-plus { top: auto; right: 8px; bottom: 8px; }     /* the narrow boxes: badge in the bottom corner, off the title */
  .g-its .itd-global h3 { text-align: left; }
  .g-its .itd-global .itd-items, .g-its .itd-remote .itd-items { justify-content: center; margin: auto 0; }   /* icons centred in both boxes (user 2026-11-10) */
}

/* Digital marketing > Complete service overview on phones (user 2026-11-10): one blue for every number (the "02" blue),
   and the EC enablement strip becomes a fifth card hanging off the list, with its own heading */
@media (max-width: 720px) {
  .v-g .fx-ov-col, .v-g .fx-ov-col.s2, .v-g .fx-ov-col.s3, .v-g .fx-ov-col.s4 { --c: #4A90FF; }
  /* the four stage cards swipe sideways (dots under them, g.js); EC enablement stays below with its own line (user 2026-11-10) */
  .v-g .fx-ov { display: flex; gap: 14px; margin: 32px calc(-1 * var(--gutter, 16px)) 0; padding: 2px var(--gutter, 16px) 6px; overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter, 16px); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .v-g .fx-ov::-webkit-scrollbar { display: none; }
  .v-g .fx-ov.is-drag { cursor: grabbing; user-select: none; scroll-snap-type: none; }
  .v-g .fx-ov-col { flex: 0 0 calc(100% - 36px); display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: baseline; scroll-snap-align: start; }
  .v-g .fx-ov-card { grid-column: 1 / -1; align-self: stretch; }    /* every card as tall as the tallest */
  .v-g .g-dots-ov { display: flex; margin-top: 14px; }
}
/* EC enablement under the overview on tablet and phone (user 2026-11-10): not a card, just centred text with a short blue
   rule above, the three items in a row with blue dots, and the one-team line in grey */
@media (max-width: 960px) {
  .v-g .fx-ov-ec { position: relative; display: block; margin-top: 28px; padding: 0; border: 0; border-radius: 0; background: none; text-align: left; }
  .v-g .fx-ov-ec h3 { display: inline-block; padding: 8px 14px; border-radius: var(--r-sm); background: var(--pale); color: var(--ink); font-family: var(--fx-font); font-size: 1.125rem; font-weight: 700; line-height: 1.3; text-align: left; }   /* title on a pale blue tile, like the chips above */
  .v-g .fx-ov-ec ul { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px 20px; margin: 12px 0 0; padding: 0; list-style: none; }
  .v-g .fx-ov-ec li { display: inline-flex; align-items: center; gap: 8px; padding: 0; border-radius: 0; background: none; color: var(--ink); font-size: .9375rem; font-weight: 600; text-align: left; }
  .v-g .fx-ov-ec li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
  .v-g .fx-ov-ec p { margin-top: 10px; color: var(--muted); font-size: .9375rem; text-align: left; }
}

/* Digital marketing > How we support you on phones (user 2026-11-10): a small arrow between the stacked step cards */
@media (max-width: 1100px) {
  .v-g .fx-steps { gap: 30px; }
  .v-g .fx-step + .fx-step { overflow: visible; }
  .v-g .fx-step + .fx-step::before { content: ""; position: absolute; left: 50%; top: -22px; width: 0; height: 0; margin-left: -8px;
    border-style: solid; border-width: 12px 8px 0 8px; border-color: var(--blue) transparent transparent transparent; }
}

/* "A day in your plant" (user 2026-11-10): the service picker is one row of plain text links at the top of the box (no
   numbered pills, no progress bar): spread edge to edge on PC, scrolling left-right on tablet and phone. Back / Next carry
   an "n / 8" counter. */
.g-day-scroller { position: relative; margin: 0 calc(-1 * var(--bp)); }
.g-day-steps, .g-day:not(.is-js) .g-day-steps { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 24px; margin: 0 calc(-1 * var(--bp)); padding: 0 var(--bp) 4px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.g-day-scroller .g-day-steps { margin: 0; }
.g-day-scroller.can-drag .g-day-steps { cursor: grab; }
.g-day-steps.is-drag { cursor: grabbing; scroll-behavior: auto; user-select: none; }
.g-day-steps.is-drag button { pointer-events: none; }
.g-day-steps::-webkit-scrollbar { display: none; }
/* < > outside the row at each end while it overflows (plain chevrons, the one with nothing further is dimmed); the
   links fade out before the chevron so no half-letter sits under it */
.g-day-scroller.can-drag { display: flex; align-items: center; }
.g-day-track { position: relative; flex: 1 1 auto; min-width: 0; }
.g-day-arr { display: none; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--blue); cursor: pointer; transition: background-color .2s, opacity .2s; }
.g-day-arr svg { display: block; }
.g-day-arr:hover { background: var(--blue-pale); }
.g-day-arr[aria-disabled="true"] { opacity: .25; pointer-events: none; }
.g-day-scroller.can-drag .g-day-arr { display: flex; }
.g-day-scroller.can-drag .g-day-steps { padding-left: 6px; padding-right: 6px; }
.g-day-track::before, .g-day-track::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; width: 32px; display: none; pointer-events: none; }
.g-day-track::before { left: 0; background: linear-gradient(90deg, #fff 20%, rgba(255, 255, 255, 0)); }
.g-day-track::after { right: 0; background: linear-gradient(270deg, #fff 20%, rgba(255, 255, 255, 0)); }
.g-day-scroller.has-l .g-day-track::before, .g-day-scroller.has-r .g-day-track::after { display: block; }
@media (max-width: 720px) { .g-day-scroller.can-drag { margin: 0 calc(-1 * var(--bp) + 2px); } .g-day-arr { width: 32px; height: 32px; } }
/* the use-case strip can be dragged with the mouse too */
.ai-cases.is-drag { cursor: grabbing; user-select: none; scroll-snap-type: none; }
.g-day-steps li { flex: none; }
.g-day-steps button { display: inline-flex; width: auto; height: auto; min-height: 0; padding: 6px 0; border: 0; border-radius: 0; background: none; color: var(--text);
  font: 600 .9375rem/1.4 var(--font); white-space: nowrap; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: transparent; transition: color .2s, text-decoration-color .2s; }
.g-day-steps button:hover { color: var(--blue); text-decoration-color: currentColor; }
.g-day-steps button[aria-selected="true"] { background: none; color: var(--blue); text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.g-day-steps button:focus-visible { outline-offset: 4px; }
.g-day-steps .g-day-no, .g-day-bar { display: none; }
.g-day-nav .g-day-prev [aria-hidden] { display: none; }   /* Back without the arrow at every size (user 2026-11-10) */
.g-day-body { margin-top: 22px; }
.g-day-count { color: var(--muted); font: 700 .875rem/1 var(--fx-font); letter-spacing: .02em; white-space: nowrap; }
@media (min-width: 1101px) {                     /* PC: the counter above the Next button, right-aligned */
  .g-day-nav { flex-wrap: wrap; align-items: center; width: auto; }        /* sized to its buttons, so "Next service" stays on one line */
  .g-day-nav button { white-space: nowrap; }
  .g-day-count { flex: 0 0 100%; margin-bottom: 12px; text-align: right; }
}
@media (max-width: 1100px) {                      /* tablet: the list above the box; Back, then the counter right beside Next */
  .g-day-nav { align-items: center; justify-content: space-between; gap: 14px; }   /* Back at the left edge of the box (user 2026-11-10) */
  .g-day-nav .g-day-prev { order: -1; }
  .g-day-count { margin-left: auto; }                                                   /* ... and the counter right beside Next */
}
@media (max-width: 720px) {                       /* phone: counter above the buttons, smaller Back without the arrow */
  .g-day-nav { flex-wrap: wrap; justify-content: flex-end; row-gap: 0; }
  .g-day-count { flex: 0 0 100%; margin-bottom: 6px; padding-right: 20px; text-align: right; }   /* tight above Next, inside its rounded corner (user 2026-11-10) */
  .g-day-nav .g-day-prev { flex: none; order: 0; min-height: 40px; padding: 6px 14px; font-size: .875rem; }   /* counter row first, then Back + Next */
  .g-day-nav .g-day-next { flex: 1 1 auto; }                   /* Back and Next share one row */
  .g-day-steps button { font-size: .875rem; }
}

/* "What can AI do for your team?" on phones (user 2026-11-10): the use-case cards swipe sideways like the DM "Our services"
   cards, with dots under them (g.js), instead of a long stack. The next card peeks in at the right edge. */
.g-dots-cases, .g-dots-ov { display: none; }
@media (max-width: 720px) {
  .v-g .ai-tabpanel .ai-cases { display: flex; gap: 14px; margin: 0 calc(-1 * var(--gutter, 16px)); padding: 2px var(--gutter, 16px) 6px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter, 16px); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .v-g .ai-tabpanel .ai-cases::-webkit-scrollbar { display: none; }
  .v-g .ai-tabpanel .ai-case { flex: 0 0 calc(100% - 36px); scroll-snap-align: start; }
  .v-g .ai-tabpanel .g-dots-cases { display: flex; margin-top: 14px; }
}

/* any sideways list being dragged with the mouse (g.js gDrag): grabbing cursor, no text selection, no snap fighting the hand */
.v-g .is-drag, .v-g .is-drag * { cursor: grabbing !important; }
.v-g .is-drag { user-select: none; scroll-snap-type: none !important; scroll-behavior: auto; }
.v-g .is-drag a, .v-g .is-drag button { pointer-events: none; }

/* ---- Client review 2026-11-11 ---- */
/* about.html group network: every country card the same height (the grid rows used to size one by one) */
@media (min-width: 561px) { .v-g .fx-about .fg tbody { grid-auto-rows: 1fr; } }

/* IT & Security network diagram on phones: no icons, no lines; the box titles stacked as one list, each row opens its
   details (client: "アイコン＆線無しで、上からタイトルだけ並べて、クリックすると詳細に"). The tree layout stays on tablets. */
@media (max-width: 720px) {
  .g-its .itd { --g: 0px; }
  .g-its .itd-out, .g-its .itd-core, .g-its .itd-up, .g-its .itd-site, .g-its .itd-row { display: contents; }
  .g-its .itd :is(.itd-out, .itd-core, .itd-up, .itd-site, .itd-row, .itd-box, .itd-wan)::before,
  .g-its .itd :is(.itd-out, .itd-core, .itd-up, .itd-site, .itd-row, .itd-box, .itd-wan)::after { display: none !important; }
  .g-its .itd :is(.itd-internet, .itd-items, .itd-chips, .itd-brands), .g-its .itd-wan > svg, .g-its .itd-wan p span { display: none !important; }
  .g-its .itd-box, .g-its .itd-wan, .g-its.its-sec .itd-box, .g-its .itd.is-focus .itd-box, .g-its .itd.is-focus .has-key {
    display: flex; flex-direction: row; align-items: center; gap: 0; min-height: 56px; margin: -1px 0 0; padding: 14px 52px 14px 16px;
    border: 1px solid #D6E2F3; border-radius: 0; background: #fff; box-shadow: none; opacity: 1; transform: none; }
  .g-its .itd-ops { margin-top: 0; border-top-left-radius: var(--r); border-top-right-radius: var(--r); }
  .g-its .itd-endpoint { border-bottom-left-radius: var(--r); border-bottom-right-radius: var(--r); }
  .g-its .itd-head, .g-its .itd .itd-up .itd-global .itd-head { padding: 0; border: 0; gap: 0; }
  .g-its .itd .itd-r2 .itd-switch { width: auto; margin-left: 0; }                       /* undo the tablet tree's wide switch row */
  .g-its .itd .itd-up .itd-global, .g-its.its-sec .itd .itd-up .itd-global { border-top: 1px solid #D6E2F3; }
  .g-its .itd-box h3, .g-its .itd-up .itd-box h3, .g-its .itd-wan p b { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.35; text-align: left; }
  .g-its .itd-wan p { margin: 0; text-align: left; }
  .g-its .itd .itd-wan, .g-its .itd.is-focus .itd-wan.is-key { justify-content: flex-start; border-color: #D6E2F3; }   /* the WAN bar: same row as the boxes, no centring */
  .g-its .itd-plus, .g-its .itd-up .itd-plus, .g-its .itd-wan .itd-plus { top: 50%; right: 14px; bottom: auto; width: 24px; height: 24px; margin-top: -12px; }
  .g-its .itd-plus::before, .g-its .itd-plus::after { left: 6px; right: 6px; top: 11px; }
  .g-its .itd-site-h, .g-its .itd .itd-site-h { position: static; z-index: auto; margin: 22px 0 8px; font-size: .8125rem; }
  /* security page: the parts we secure keep their highlight as a blue edge; the rest of the list is dimmed */
  .g-its .itd.is-focus .itd-box:not(.is-key):not(.has-key) > * { opacity: .45; filter: none; }
  .g-its .itd.is-focus .has-key .itd-head, .g-its .itd.is-focus .has-key > * { opacity: 1; filter: none; }
  .g-its .itd.is-focus .itd-box.is-key, .g-its .itd.is-focus .itd-box.has-key, .g-its .itd .itd-wan.is-key, .g-its .itd.is-focus .itd-wan.is-key { border-left: 3px solid var(--blue); padding-left: 14px; }
}

/* diagram hint (user 2026-11-11): a quiet muted line with a small plus; on phones no badge, "row" wording, aligned with the list text */
.g-its .itd-hint { color: var(--muted); font-size: .9375rem; font-weight: 500; }
.g-its .itd-hint .itd-plus { width: 20px; height: 20px; }
.g-its .itd-hint .itd-plus::before, .g-its .itd-hint .itd-plus::after { left: 5px; right: 5px; top: 9px; }
.g-hint-ph { display: none; }
@media (max-width: 720px) {
  .g-hint-pc, .g-its .itd-hint .itd-plus { display: none; }
  .g-hint-ph { display: inline; }
  .g-its .itd-hint { margin: 0; font-size: .8125rem; }
  .g-its .its-map-sec .itd-tools { margin-bottom: 12px; }
}

/* phones (user 2026-11-11): a slightly smaller screen-edge padding; every .wrap, header and strip reads var(--gutter) */
@media (max-width: 720px) { .v-g { --gutter: 18px; } }

/* ---- Real-phone review (user 2026-11-11) ---- */
/* 1. top page cards: a plain swipe strip on phones (data-slider removed by the inline script in build.py g_home) */
.g-ecards-swipe .sl-viewport { width: auto; margin: 0; overflow: visible; cursor: default; user-select: auto; -webkit-user-select: auto; }
.g-ecards-swipe .sl-track { transform: none !important; transition: none; gap: 12px; padding: 4px var(--gutter) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.g-ecards-swipe .sl-track::-webkit-scrollbar { display: none; }
.g-ecards-swipe .sl-track > .slide { flex: 0 0 calc(100% - 36px); scroll-snap-align: start; }
.g-ecards-swipe .sl-track img { pointer-events: auto; }
.g-ecards-swipe .sl-ui { display: none; }
.g-ecards-swipe .g-dots { display: flex; margin-top: 10px; }
/* 2. news list: smaller category pills */
@media (max-width: 720px) {
  .v-g .fx-news-filter { gap: 6px; margin-bottom: 18px; }
  .v-g .fx-news-filter button { min-height: 34px; padding: 5px 12px; font-size: .8125rem; }
}
/* 4. no hover lifts or floats on touch screens (a tap would leave them stuck) */
@media (hover: none) {
  .v-g .e-card:hover, .v-g .fx-hcard > a:hover, .v-g .ec-panel:hover, .v-g .e-tile:hover { transform: none; box-shadow: none; }
  .v-g .e-card:hover img, .v-g .fx-hcard > a:hover .fx-hcard-img img, .v-g .fx-stack-card > a:hover .fx-stack-img img, .v-g .fx-row:hover .fx-row-img img, .v-g .ai-prob:hover img { transform: none; }
  .v-g .fx-stack-card > a:hover { box-shadow: 0 -1px 0 var(--line); }
  .v-g .fx-hcard > a:hover .fx-more .ico, .v-g .fx-stack-card > a:hover .fx-more .ico, .v-g .fx-row:hover .ico, .v-g .fx-news-a:hover .ico, .v-g .fx-news-head .fx-more:hover .ico,
  .v-g .its-group-list a:hover .ico, .v-g .ai-card:hover .ai-card-go .ico, .v-g .ai-prob:hover > .ico, .v-g .ai-panel-list a:hover .ico { transform: none; }
  .v-g .fx-row:hover::before, .v-g .fx-news-a:hover::before { transform: scaleY(0); }
  .v-g .ai-card:hover, .v-g .ai-prob:hover { border-color: var(--line); box-shadow: none; }
  .v-g .itd-box.has-dlg:hover, .v-g .itd-wan.has-dlg:hover, .g-its.its-sec .itd-box.has-dlg:hover { border-color: #D6E2F3; box-shadow: none; }
  .v-g .g-open:hover { border-color: #BFD6FF; background: var(--blue-pale); color: var(--blue); }
  .v-g .g-day-steps button:hover { color: var(--text); text-decoration-color: transparent; }
  .v-g .g-day-steps button[aria-selected="true"]:hover { color: var(--blue); text-decoration-color: currentColor; }
  .v-g .g-day-nav button:hover { border-color: var(--pale-line); }
  .v-g .g-day-nav .g-day-next:hover { border-color: var(--blue); background: var(--blue); }
  .v-g .g-day-arr:hover { background: none; }
  .v-g .its-chips a:hover { border-color: #BFD6FF; background: var(--blue-pale); color: var(--blue); }
}
/* 6. IT & Security "Process & costs" on phones: the steps as a timeline, the costs as one plain note */
@media (max-width: 720px) {
  .g-its .its-flow { position: relative; gap: 0; }
  .g-its .its-flow li, .g-its .its-page .ai-flow li { position: relative; gap: 2px; margin: 0; padding: 2px 0 24px 48px; border: 0; background: none; }
  .g-its .its-flow li::before { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; margin: 0; border-radius: 50%; background: var(--blue); color: #fff; font-size: .875rem; }
  .g-its .its-flow li::after { content: ""; position: absolute; left: 16px; top: 40px; bottom: 2px; width: 2px; background: #C9D9F3; }
  .g-its .its-flow li:last-child { padding-bottom: 0; }
  .g-its .its-flow li:last-child::after { display: none; }
  .g-its .its-flow strong { font-size: 1.0625rem; }
  .g-its .its-flow span { font-size: .9375rem; }
  .g-its .its-cost, .g-its .its-panel .its-cost { margin-top: 28px; padding: 12px 0 12px 16px; border: 0; border-left: 3px solid var(--blue); border-radius: 0; background: none; }
  .g-its .its-cost h3 { font-size: 1rem; }
  .g-its .its-cost-sub { font-size: .9375rem; }
  .g-its .its-cost p { margin-top: 6px; font-size: .9375rem; }
}
/* 7. security page: "Factory & scope" is its own block under the tabs */
.g-its-factory { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.g-its-factory .ai-eyebrow { margin-bottom: 8px; }
/* 8. "Agree responsibilities before an alert arrives": two columns on phones, no arrows */
@media (max-width: 720px) {
  .g-its .its-wf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .g-its .its-wf li { flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; }
  .g-its .its-wf li + li::before { display: none; }
  .g-its .its-wf-no { font-size: 1.125rem; }
  .g-its .its-wf strong { font-size: .875rem; }
}
/* 9. + 10. AI day picker: the scene and the card keep the tallest panel's size (g.js --stage-h / --card-h), and the
   card is a grey panel so it reads apart from the white service rows */
.g-day-stage { min-height: var(--stage-h, 0px); }
.g-day-card { min-height: var(--card-h, 0px); padding: 20px 20px 96px; border-radius: 16px; background: #F3F6FA; }
@media (min-width: 1101px) { .g-day-nav { right: 20px; bottom: 20px; width: calc((100% - 24px) / 4.2 - 40px); } }
@media (max-width: 1100px) { .g-day-card { padding-bottom: 20px; } }
/* 12. DM top page: "Our services" on white, "Complete service overview" stays grey */
.v-g .fx-hs { background: #fff; }
.v-g .fx-svc { border: 1px solid var(--line); }
/* 3. hero buttons on phones: full width, text centred (the 320px cap left them sitting at the left) */
@media (max-width: 720px) { .v-g .its-hero-cta .e-btn, .v-g .ai-hero-cta .e-btn, .v-g .g-hero .e-btn { width: 100%; max-width: none; } }
/* 11. DM "Our services" cards on phones: each card its own height, "Learn more ->" on one line at the right */
@media (max-width: 720px) {
  .v-g .fx-hs-track { align-items: flex-start; }
  .v-g .fx-svc { height: auto; padding-bottom: 18px; }
  .v-g .fx-svc .fx-more { display: inline-flex; flex-direction: row; align-items: center; align-self: flex-end; flex-wrap: nowrap; width: max-content; margin: 14px 0 0; padding-top: 0; white-space: nowrap; }
  .v-g .fx-svc-d { margin-top: 12px; }
}

/* ---- Real-phone review, part 2 (user 2026-11-11) ---- */
/* 1. contact form card: less padding on phones */
@media (max-width: 720px) { .v-g .cf { gap: 16px; padding: 18px 16px 20px; } }
/* 2. footer menus in two columns on phones: Services | Company, then Policies */
@media (max-width: 720px) {
  .v-g .ef-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; padding: 36px 0 28px; }
  .v-g .ef-brand { grid-column: 1 / -1; }
  .v-g .e-footer h2 { margin-bottom: 6px; }
}
/* 3. header "Company" drop-down (About us / SBKK); the phone sheet shows it as a nested list */
.g-dd { position: relative; }
.g-dd-list { position: absolute; top: 100%; left: 0; z-index: 40; display: none; min-width: 200px; margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 18px 40px -20px rgba(0, 30, 80, .35); list-style: none; }
.g-dd:hover .g-dd-list, .g-dd:focus-within .g-dd-list { display: block; }
.g-dd-list a { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 8px; color: var(--text); font-size: .9375rem; font-weight: 500; white-space: nowrap; }
.g-dd-list a:hover, .g-dd-list a:focus-visible { background: rgba(22, 109, 255, .08); color: var(--blue); }
.g-dd-list .ico { width: 14px; height: 14px; color: var(--muted); }
@media (max-width: 960px) {
  .g-dd-list, .g-dd:hover .g-dd-list { position: static; display: block; min-width: 0; padding: 0 0 10px 14px; border: 0; border-radius: 0; box-shadow: none; }
  .g-dd-list a { padding: 10px 0; border-radius: 0; font-size: 1rem; }
  .g-dd-list a:hover { background: none; }
}
/* 4. + 5. Treasure AI diagram on phones: air under the circle, tighter list under it */
@media (max-width: 720px) {
  .gt-hub { gap: 4px; }
  .gt-core { margin-bottom: 16px; }
  .gt-side { gap: 4px; }
  .gd p.gt-cap { padding: 8px 12px; }
}
/* 6. + 7. numbered features on phones: the number sits on the title line (Treasure AI, EC, CRM and the IT/Sec features) */
@media (max-width: 720px) {
  .v-g .dmx-feature-head, .dmx-treasure-ai .dmx-feature-head, .dmx-ec .dmx-feature-head, .v-g .its-feature { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
  .v-g .dmx-feature-head > div, .dmx-treasure-ai .dmx-feature-head > div, .v-g .its-feature > div { display: contents; }
  .v-g .dmx-feature-head .its-feature-no, .dmx-treasure-ai .dmx-feature-head .its-feature-no, .v-g .its-feature-no { flex: none; padding: 0; font-size: 1.625rem; line-height: 1; }
  .v-g .dmx-feature-head .its-id, .dmx-ec .dmx-feature-head .its-id { flex: none; margin: 0; }
  .v-g .dmx-feature-head h3, .v-g .its-feature h3 { flex: 1 1 0; min-width: 0; margin: 0; }
  .v-g .dmx-feature-head p, .dmx-treasure-ai .dmx-feature-head p, .v-g .its-feature p { flex: 0 0 100%; margin-top: 4px; }
}
/* 8. product band under the AI hero: plain text on phones */
@media (max-width: 720px) {
  .g-brand .wrap { gap: 12px; padding-top: 18px; padding-bottom: 18px; }
  .g-brand .ai-brand-copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
  .g-brand .ai-eyebrow { margin: 0; font-size: .8125rem; }
  .g-brand .ai-brand-name { font-size: 1rem; line-height: 1.4; }
  .g-brand .ai-brand-who { padding-top: 10px; }
  .g-brand .g-tags { color: var(--text); font-size: .9375rem; font-weight: 500; letter-spacing: 0; text-transform: none; line-height: 1.5; }
}
/* 9. 13. 18. icon or number beside the title on phones (4 tools, Who it is for, One view for every role, building blocks) */
@media (max-width: 720px) {
  .v-g .ai-tool, .v-g .ai-roles li, .v-g .ai-stage { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 6px; align-items: center; }
  .v-g .ai-tool .ai-ico, .v-g .ai-roles .ai-ico { width: 28px; height: 28px; margin: 0; }
  .v-g .ai-tool h3, .v-g .ai-roles h3, .v-g .ai-stage h3 { margin: 0; font-size: 1.0625rem; }
  .v-g .ai-tool p, .v-g .ai-roles p, .v-g .ai-stage p { grid-column: 1 / -1; margin: 0; }
  .v-g .ai-stage { padding: 16px; }
  .v-g .ai-stage-no { position: static; width: 32px; height: 32px; margin: 0; font-size: 1rem; }
}
/* 10. use-case category pills: smaller on phones */
@media (max-width: 720px) {
  .v-g .ai-tablist { gap: 6px; margin-bottom: 14px; }
  .v-g .ai-tablist [role="tab"] { min-height: 34px; padding: 6px 12px; font-size: .875rem; line-height: 1.3; }
}
/* 11. cards: less padding on phones */
@media (max-width: 720px) {
  .v-g .ai-card, .v-g .ai-case, .v-g .ai-why li, .v-g .ai-roles li, .v-g .ai-items li, .v-g .ai-steps li, .v-g .ai-tool, .v-g .ai-idea, .v-g .ai-mats li,
  .v-g .ai-phase > div, .v-g .ai-story > div, .v-g .ai-cmp, .v-g .ai-conn li, .v-g .ai-tl-card, .v-g .g-ov:not(.has-vis) .g-checks li, .v-g .its-feature,
  .v-g .ai-shield li, .v-g .ai-pains li, .v-g .ai-feats li, .v-g .ai-flow-row, .v-g .g-row, .v-g .its-prob, .v-g .ai-prob-copy, .v-g .its-note, .v-g .ai-tl-note { padding: 16px; }
  .v-g .g-aif h3 { margin: 16px 16px 0; }
  .v-g .g-aif p { margin: 6px 16px 0; }
  .v-g .g-aif li { padding-bottom: 16px; }
  .v-g .ai-page .ai-sec { padding: 40px 0; }
  .v-g .ai-page .ai-head { margin-bottom: 20px; }
}
/* 12. "All AI & IoT services" link at the right */
.v-g .ai-back { text-align: right; }
/* 14. 9 PPE types: a 3 x 3 grid on phones */
@media (max-width: 720px) {
  .v-g .ai-ppe { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .v-g .ai-ppe li { flex-direction: column; justify-content: center; gap: 6px; padding: 12px 6px; font-size: .8125rem; line-height: 1.3; text-align: center; }
  .v-g .ai-ppe .ai-ico { width: 26px; height: 26px; }
}
/* 15. 24. "See it in action" and "In practice" pictures on phones: full width, natural height, no letterbox */
@media (max-width: 720px) {
  .v-g .ai-gal img, .v-g .ai-gal.wide img { aspect-ratio: auto; height: auto; object-fit: fill; background: none; }
  .v-g .ai-gals { gap: 20px; }
}
/* 16. overview check cards: the check centred on its text */
.v-g .g-ov:not(.has-vis) .g-checks li { align-items: center; }
/* 17. SOP "6 KPIs from video": one column, tighter rows on phones */
@media (max-width: 720px) {
  .v-g .ai-stat.is-list .ai-stat-items { grid-template-columns: minmax(0, 1fr); }
  .v-g .ai-stat.is-list .ai-stat-items li, .v-g .ai-stat.is-list .ai-stat-items li:nth-child(even) { padding: 9px 20px; border-left: 0; }
  .v-g .ai-stat.is-list .ai-stat-k { padding: 16px 20px 12px; }
  .v-g .ai-stat.is-list .ai-stat-items strong { font-size: 1rem; }
}
/* 19. 23. "Start with a proof of value" / "How we start": no blue line at the left of the numbers (F's tablet rule) */
@media (max-width: 1100px) { .ai-page .ai-tl li, .ai-page .ai-tl li + li { padding: 0; border-left: 0; } }
/* 20. the note under the timeline: title on its own line above the text */
@media (max-width: 720px) {
  .v-g .ai-tl-note { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 4px; align-items: center; }
  .v-g .ai-tl-note > span { grid-column: 1 / -1; }
}
/* 21. "Real-time on one dashboard" (and every stat band with items): smaller on phones */
@media (max-width: 720px) {
  .v-g .ai-stat-k b { font-size: 1.5rem; }
  .v-g .ai-page .ai-stat-k > span { font-size: .9375rem; }
  .v-g .ai-stat:not(.is-list) .ai-stat-items li { gap: 12px; padding: 12px 16px; }
  .v-g .ai-stat-items strong { font-size: 1rem; }
  .v-g .ai-stat-items span { font-size: .875rem; }
  .v-g .ai-stat-ico { width: 30px; height: 30px; }
}
/* 22. Ai-Glies "Why it pays back": the two cards side by side on phones */
@media (max-width: 720px) {
  .v-g .ai-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .v-g .ai-cmp { padding: 14px 12px; }
  .v-g .ai-cmp b { font-size: 2rem; }
  .v-g .ai-cmp h3 { font-size: .9375rem; }
  .v-g .ai-cmp-e { padding: 4px 10px; font-size: .8125rem; }
}
/* 25. Custom AI "Building blocks we combine": icon tiles and a blue edge, two per row */
.ai-custom #blocks .ai-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ai-custom #blocks .ai-roles li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; row-gap: 4px; align-items: start; padding: 22px; border: 1px solid var(--line); border-top: 3px solid var(--blue); }
.ai-custom #blocks .ai-roles .ai-ico { grid-row: 1 / span 2; box-sizing: border-box; width: 56px; height: 56px; margin: 0; padding: 14px; border-radius: 12px; background: var(--blue-pale); }
.ai-custom #blocks .ai-roles h3 { align-self: center; margin: 0; font-size: 1.125rem; }
.ai-custom #blocks .ai-roles p { margin: 0; }
@media (max-width: 720px) {
  .ai-custom #blocks .ai-roles { grid-template-columns: minmax(0, 1fr); }
  .v-g.v-g .ai-custom #blocks .ai-roles li { grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; padding: 16px; }
  .v-g .ai-custom #blocks .ai-roles .ai-ico { grid-row: 1; width: 44px; height: 44px; padding: 10px; }
  .v-g .ai-custom #blocks .ai-roles p { grid-column: 1 / -1; }
}

/* Real-phone review, part 3 (user 2026-11-11): step number sits on the first text line */
.v-g .ai-how.has-demo .ai-steps li { align-items: baseline; }
.v-g .ai-how.has-demo .ai-steps p { margin-top: 0; }

/* ---------- Client comment sheet 2026-11-12 (IT / Security) ---------- */
/* popups: the service name is blue; with a photo, the photo sits beside the name and intro only and the checks,
   line-up and button use the full width under it (no empty column under the photo) */
.g-itd-svc h3 { color: var(--blue); }
.itd-svc.g-svc-top { display: block; }
.g-svc-head { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.g-svc-head .itd-svc-copy > :first-child { margin-top: 0; }
.g-svc-rest { margin-top: 24px; }
.g-svc-rest > .g-feats:first-child { margin-top: 0; }
@media (max-width: 720px) {
  .g-svc-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .g-svc-rest { margin-top: 16px; }
}
/* "How we achieve the goal": one block, no tabs. Security has five cards in a row on wide screens */
.g-its .its-more .its-panel-h { margin-top: 0; }

/* ---------- "How we achieve the goal" cards (user 2026-11-13) ----------
   A numbered flow: number + icon, a bar along the top of each card, a solid triangle in the gap before the next card.
   With motion on, the cards rise one after another, each bar fills left to right and then the arrow to the next card
   appears, so the row reads as steps in order. Security: five cards; the second holds two services, so it is twice as
   wide and split in two halves, which keeps it about as tall as the others. */
.g-its .its-more .ai-lead { max-width: none; margin: -6px 0 28px; }
.g-goal { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.g-goal.g-goal-sec { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.g-goal-sec > li:not(:last-child)::after { right: -18px; }
.g-goal-sec > li:nth-child(3n)::after { display: none; }      /* the last card of a row: the next row starts again on the left */
.g-goal > li { position: relative; display: flex; }
.g-goal-card { position: relative; display: flex; flex-direction: column; width: 100%; padding: 30px 24px 26px; overflow: hidden; border-radius: var(--r); background: #fff; }
.g-goal-card::before, .g-goal-card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: #D9E4F5; }
.g-goal-card::after { background: var(--blue); transform-origin: 0 50%; }
.g-goal > li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -22px; width: 0; height: 0; margin-top: -9px;
  border-style: solid; border-width: 9px 0 9px 12px; border-color: transparent transparent transparent var(--blue); }
.g-goal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.g-goal-no { color: var(--blue); font: 700 1.75rem/1 var(--fx-font); letter-spacing: -.03em; }
.g-goal-top .e-ico { flex: none; width: 44px; height: 44px; color: var(--blue); }
.g-goal-tag { margin: 18px 0 0; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
html:lang(th) .g-goal-tag { letter-spacing: 0; }
.g-goal h3 { margin-top: 18px; color: var(--ink); font-size: 1.125rem; line-height: 1.35; }
.g-goal-tag + h3 { margin-top: 4px; }
.g-goal-card > p { margin-top: 8px; color: var(--muted); }
.g-goal-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 12px; }
.g-goal-split > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.g-goal-split strong { display: block; color: var(--ink); font-size: .9375rem; }
.g-goal-split p { margin-top: 4px; color: var(--muted); }
.g-goal-sec .g-goal-card { padding: 28px 20px 24px; }
/* motion (user 2026-11-13): no moving bar; the cards rise 01, 02, 03 ... in order and the arrow to the next card
   appears after each. Wide screens: the whole list starts once most of it is on screen (G/g.js adds .in to the list),
   so the second row is visible while it plays. Phones (one card per row): each card rises as it arrives. */
.fx-anim .g-goal > li[data-rv] { opacity: 0; transform: translateY(28px); transition: none; }
.fx-anim .g-goal > li::after { opacity: 0; transform: translateX(-8px); }
@media (min-width: 861px) {
  /* the transition sits on the .in state only, so hiding at page load is instant (no late fade-out of card 06) */
  .fx-anim .g-goal.in > li[data-rv] { opacity: 1; transform: none; transition: opacity .6s ease calc(var(--i) * .3s), transform .8s var(--fx-ease, ease) calc(var(--i) * .3s); }
  .fx-anim .g-goal.in > li::after { opacity: 1; transform: none; transition: opacity .3s ease calc(var(--i) * .3s + .45s), transform .3s ease calc(var(--i) * .3s + .45s); }
}
@media (max-width: 860px) {
  .fx-anim .g-goal > li::after { transform: translateY(-8px); }
  .fx-anim .g-goal > li[data-rv].in { opacity: 1; transform: none; transition: opacity .6s ease, transform .8s var(--fx-ease, ease); }
  .fx-anim .g-goal > li.in::after { opacity: 1; transform: none; transition: opacity .3s ease .45s, transform .3s ease .45s; }
}
/* narrower screens: one card per row, the arrow points down (Security below 1100px: five cards do not fit) */
@media (max-width: 860px) {
  .g-goal.g-goal-sec { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .g-goal-sec > li:not(:last-child)::after { display: block; }
}
@media (max-width: 860px) {
  .g-goal { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .g-goal > li:not(:last-child)::after { top: auto; right: auto; left: 50%; bottom: -22px; margin: 0 0 0 -9px; border-width: 12px 9px 0 9px; border-color: var(--blue) transparent transparent transparent; }
}
@media (max-width: 560px) {
  .g-goal-card, .g-goal-sec .g-goal-card { padding: 24px 18px 20px; }
  .g-goal-split { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .g-goal-split > div + div { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* EmDash news body: elements the admin editor can produce inside .fx-article-text (h3, numbered lists, links, images, quotes).
   Same type scale and spacing as F/style.css .fx-article-text. */
.v-g .fx-article-text > :first-child { margin-top: 0; }
.v-g .fx-article-text p + p { margin-top: 14px; }
.v-g .fx-article-text h3 { margin: 24px 0 8px; color: var(--ink); font-size: 1.125rem; line-height: 1.4; }
.v-g .fx-article-text ul, .v-g .fx-article-text ol { margin: 12px 0 0; padding-left: 1.3em; }
.v-g .fx-article-text ol { list-style: decimal; }
.v-g .fx-article-text ul ul, .v-g .fx-article-text ul ol, .v-g .fx-article-text ol ul, .v-g .fx-article-text ol ol { margin-top: 4px; }
.v-g .fx-article-text p + ul, .v-g .fx-article-text p + ol { margin-top: 10px; }
.v-g .fx-article-text ul + p, .v-g .fx-article-text ol + p, .v-g .fx-article-text figure + p, .v-g .fx-article-text blockquote + p { margin-top: 14px; }
.v-g .fx-article-text a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.v-g .fx-article-text a:hover { text-decoration-thickness: 2px; }
.v-g .fx-article-text strong { color: var(--ink); font-weight: 700; }
.v-g .fx-article-text blockquote { margin: 20px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--blue); color: var(--ink); font-size: 1rem; line-height: 1.8; }
.v-g .fx-article-text figure.fx-article-fig { margin: 24px 0; }
.v-g .fx-article-text figure.fx-article-fig img { display: block; width: 100%; height: auto; border-radius: 12px; }

/* One centred column for EmDash articles (user 2026-11-13): no side image; date, category, title, text and the
   newer/older row share one reading width, and body photos fill that width (.fx-article-fig above). */
.v-g .fx-article-one .wrap { max-width: calc(860px + var(--gutter) * 2); }
.v-g .fx-article-one .fx-article-body { display: block; }

/* 2026-11-13: new-tab icon on external slider cards */
.e-card-tag .ico { width: 13px; height: 13px; margin-left: 5px; vertical-align: -1px; }
.mg-sub a[target="_blank"] .ico { width: 14px; height: 14px; margin-left: 6px; vertical-align: -2px; color: var(--muted); }
/* Company drop-down arrow, same as the Services trigger (flips while the list is open; the phone sheet always shows the list, so no arrow there) */
.g-dd > .gnav-link .ico { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.g-dd:hover > .gnav-link .ico, .g-dd:focus-within > .gnav-link .ico { transform: rotate(180deg); }
@media (max-width: 960px) { .g-dd > .gnav-link .ico { display: none; } }
@media (prefers-reduced-motion: reduce) { .g-dd > .gnav-link .ico { transition: none; } }
/* ---------- cookie consent card (site.js) ---------- */
.ck { position: fixed; left: clamp(16px, 2.4vw, 28px); bottom: clamp(16px, 2.4vw, 28px); z-index: 120; width: min(440px, calc(100vw - 32px)); padding: 22px 22px 20px; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--r); background: #fff; color: var(--text); box-shadow: 0 24px 48px -24px rgba(0, 30, 80, .45); opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .4s var(--ease); }
.ck.is-in { opacity: 1; transform: none; }
.ck[hidden] { display: none; }
.ck-title { margin: 0 0 6px; color: var(--ink); font-size: 1rem; font-weight: 700; }
.ck-text { margin: 0; font-size: .9375rem; line-height: 1.6; }
.ck-text a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.ck-opts { display: grid; gap: 2px; margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.ck-opts[hidden] { display: none; }
.ck-opt { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; cursor: pointer; }
.ck-opt input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); }
.ck-opt input:disabled { cursor: default; }
.ck-opt b { display: block; color: var(--ink); font-size: .9375rem; }
.ck-opt small { display: block; color: var(--muted); font-size: .8125rem; }
.ck-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.ck-btn { min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); font: inherit; font-size: .9375rem; font-weight: 700; cursor: pointer; }
.ck-btn:hover { background: #F0F0F0; }
.ck-btn.ck-accept { background: var(--blue); box-shadow: none; color: #fff; }
.ck-btn.ck-accept:hover { background: var(--blue-deep, #0D57D6); }
.ck-btn.ck-link { margin-left: auto; padding: 0 4px; box-shadow: none; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.ck-btn.ck-link:hover { background: none; }
.ck-btn[hidden] { display: none; }
.ck-btn:focus-visible, .ck-opt input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ck-on .sc-fab, .ck-on .sc-bar { visibility: hidden; }
@media (max-width: 560px) { .ck { left: 0; bottom: 0; width: 100%; border-width: 3px 0 0; border-radius: 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); } .ck-btn { flex: 1 1 auto; } .ck-btn.ck-link { flex: 0 0 100%; margin: 0; } }
@media (prefers-reduced-motion: reduce) { .ck { transition: none; } }
.pol-ck { margin-top: 16px; }
/* Treasure AI "What is": text sits closer to its heading and further from the diagram */
.dmx-treasure-ai #what .ai-head { margin-bottom: 20px; }
.dmx-treasure-ai #what .g-what-p + .gd { margin-top: clamp(28px, 3vw, 40px); }
/* Descriptions under section titles use the full content width (no early line breaks) */
.ai-lead, .g-path-head .ai-lead, .th-lead, .fx-intro-p, .g-what-p, .dmx-what-p { max-width: none; }
/* Home swiper: product-name tags sit at the same height on every card (copy is top-aligned, not centered, so 2- and 3-line titles don't move the tag) */
.e-card-copy { top: clamp(12px, 10%, 26px); transform: none; }
/* Home swiper: product cards as white creative banners (client's logo + catch copy + product visual) */
.e-ad { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #D9E1EC; }
.e-ad::after { display: none; }
.e-ad:hover { color: var(--ink); }
.e-ad .e-ad-visual { position: absolute; right: 5%; bottom: 9%; width: auto; max-width: 38%; height: 78%; object-fit: contain; object-position: right bottom; }
.e-ad .e-card-copy { top: 50%; right: 43%; max-width: none; transform: translateY(-50%); text-shadow: none; }
.e-ad .e-ad-logo { display: block; width: auto; max-width: 100%; height: clamp(20px, .9rem + .55vw, 30px); object-fit: contain; object-position: left center; transform: none !important; transition: none; }
.e-ad strong { color: #1C1C1C; font-size: clamp(.875rem, .66rem + .5vw, 1.25rem); }
@media (max-width: 1100px) and (min-width: 761px) {
  .e-ad .e-card-copy { right: 35%; }
  .e-ad .e-ad-visual { max-width: 31%; height: 66%; }
}
@media (max-width: 760px) {
  .e-ad .e-card-copy { right: 42%; }
  .e-ad .e-ad-visual { right: 5%; bottom: 7%; max-width: 38%; height: 64%; }
}
/* Photo card with the product logo on a white chip in place of the blue name tag (Agentic Star) */
.e-card-logo { display: inline-block; padding: 4px 8px; border-radius: 3px; background: #fff; line-height: 0; }
.e-card .e-card-logo img { display: block; width: auto; height: clamp(18px, .8rem + .45vw, 24px); object-fit: contain; transform: none !important; transition: none; }
/* Agentic Star banner: dark dotted background from the client's A4 leaflet */
.e-ad-dark { background: #0B1220; color: #fff; box-shadow: none; }
.e-ad-dark:hover { color: #fff; }
.e-ad-dark .e-ad-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.e-ad-dark::after { display: block; background: linear-gradient(90deg, rgba(8, 12, 24, .82) 0%, rgba(8, 12, 24, .55) 45%, rgba(8, 12, 24, 0) 70%); }
.e-ad-dark .e-ad-visual { z-index: 1; }
.e-ad-dark strong { color: #fff; }
.e-ad-dark .e-ad-logo { filter: brightness(1.3); }
/* Footer bottom: one centred copyright line (client 2026-11-24) */
.ef-bottom .wrap { justify-content: center; text-align: center; }
/* Phones: the bottom contact bar steps aside at the footer, so no space is kept under the page */
@media (max-width: 760px) { body { padding-bottom: 0; } }
/* Menu contact button: phones only (the header has its own on computers) */
.gnav-cta { display: none; }
@media (max-width: 960px) {
  /* Services: always open, not a toggle; items indented, no lines between them */
  .v-g .js-mega > .gnav-trigger { pointer-events: none; cursor: default; }
  .v-g .js-mega > .gnav-trigger .ico { display: none; }
  .v-g .js-mega > .mega { display: block; }
  .v-g .mega-inner { padding: 0 0 10px; }
  .v-g .mg-link, .v-g .mg-toggle, .v-g .is-on > .mg-toggle { padding: 11px 0 11px 28px; border-bottom: 0; }
  .v-g .mg-sub > ul { padding-left: 28px; }
  /* Company: its two links indented like the services */
  .v-g .g-dd-list, .v-g .g-dd:hover .g-dd-list { padding-left: 28px; }
  /* Same size and rhythm for the service and company links */
  .v-g .mg-link, .v-g .mg-toggle, .v-g .g-dd-list a { font-size: .9375rem; }
  .v-g .g-dd-list a { padding: 11px 0; }
  /* AI & IoT / Digital marketing: a chevron like the other services instead of +, pointing down when open */
  .v-g .mg-pm::after { display: none; }
  .v-g .mg-pm::before { top: 50%; left: 50%; width: 6px; height: 6px; margin: -3px 0 0 -5px; border: solid var(--muted); border-width: 1.25px 1.25px 0 0; background: none; transform: rotate(45deg); }
  .v-g .mg-pm[aria-expanded="true"]::before { margin: -5px 0 0 -3px; transform: rotate(135deg); }
  .v-g .mg-item.is-on > .mg-pm::before { border-color: var(--blue); }
  /* Contact button under News */
  .v-g .gnav-cta { display: block; padding: 20px 0 8px; border-bottom: 0; }
  .v-g .gnav-cta-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 18px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 700; }
  .v-g .gnav-cta-btn:hover { background: var(--blue-deep); color: #fff; }
  .v-g .gnav-cta-btn .ico { width: 18px; height: 18px; }
}
/* While the phone menu is open, the bottom contact bar is hidden (the menu has its own Contact us button) */
body:has(.e-header.is-menu) .sc-bar, body:has(.e-header.is-menu) .sc-fab { display: none; }
/* Phone menu: Contact us sits at the bottom of the menu panel (it follows the list when the list is taller) */
@media (max-width: 960px) {
  .v-g .e-header.is-menu .gnav { display: flex; flex-direction: column; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .v-g .gnav-list { flex: 1 0 auto; }
  .v-g .gnav-cta { margin-top: auto; padding-top: 24px; padding-bottom: 0; }
}
