/* Animated diagrams share the internalization page's fine lines and red signals.
   All illustrations remain legible at rest and pause outside the viewport. */
body.editorial-site.site-panel.service-panel.page-ai-agent-infrastructure[data-site-page] main :is(#about,#solutions).solution-text-section > .wrap > .sec-head {
  grid-template-columns: minmax(0,1fr);
  align-items: start;
  gap: 24px;
}
body.editorial-site.site-panel.service-panel.page-ai-agent-infrastructure[data-site-page] main :is(#about,#solutions) .solution-text-row {
  --diagram-row-padding: 48px;
  --diagram-row-gap: 32px;
  grid-template-columns: 13% minmax(0,.95fr) minmax(0,1.25fr);
  gap: var(--diagram-row-gap);
  align-items: stretch;
  padding-block: var(--diagram-row-padding);
}
body.editorial-site.site-panel.service-panel.page-ai-agent-infrastructure[data-site-page] main :is(#about,#solutions) .solution-text-number {
  align-self: start;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -.04em;
}
body.editorial-site.site-panel.service-panel.page-ai-agent-infrastructure[data-site-page] main :is(#about,#solutions) .solution-text-description {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 16px;
  border-left: 0;
  font-size: 18px;
  line-height: 1.8;
}
body.editorial-site.site-panel.service-panel.page-ai-agent-infrastructure[data-site-page] main :is(#about,#solutions) .solution-text-description > p {
  margin: 24px 0 0;
}
body.editorial-site.site-panel.service-panel.page-ai-agent-infrastructure[data-site-page] main :is(#about,#solutions) .solution-text-kicker {
  margin: 0 0 14px;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .035em;
}
body.editorial-site.site-panel.service-panel.page-ai-agent-infrastructure[data-site-page] main :is(#about,#solutions) .solution-text-heading h3 {
  --section-role-size: 22px;
  --section-role-line: 1.6;
  font-size: 22px;
  line-height: 1.6;
}
body.page-ai-agent-infrastructure .foundation-illustration {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  min-width: 0;
  min-height: 270px;
  align-self: stretch;
}
body.page-ai-agent-infrastructure .foundation-illustration::before,
body.editorial-site.site-panel.service-panel.page-ai-agent-infrastructure[data-site-page] main :is(#about,#solutions) .solution-text-description::before {
  content: '';
  position: absolute;
  top: calc(-1 * var(--diagram-row-padding));
  bottom: calc(-1 * var(--diagram-row-padding));
  left: calc(-.5 * var(--diagram-row-gap));
  border-left: 1px solid var(--border);
  pointer-events: none;
}
body.page-ai-agent-infrastructure .foundation-illustration svg {
  display: block;
  width: min(100%,340px);
  height: auto;
  overflow: visible;
  background: transparent;
  font-family: 'DM Sans',sans-serif;
  color: #55515f;
}
.foundation-illustration text { fill: currentColor; }
.foundation-illustration .diagram-caption { fill: #7b7683; letter-spacing: .06em; }
.foundation-illustration .diagram-glass { fill: var(--glass); stroke: #aaa6b5; stroke-width: .85; }
.foundation-illustration .diagram-line { fill: none; stroke: #96909f; stroke-width: .9; stroke-linejoin: round; stroke-linecap: round; }
.foundation-illustration .diagram-guide { fill: none; stroke: #b8b4c0; stroke-width: .65; }
.foundation-illustration .diagram-detail { fill: none; stroke: #17191d; stroke-opacity: .75; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.foundation-illustration .diagram-chart { fill: none; stroke: #8d8799; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.foundation-illustration .diagram-red,
.foundation-illustration .diagram-signal { fill: #c40030; }
.foundation-illustration .diagram-accent { fill: none; stroke: #c40030; stroke-width: 1.2; }
.foundation-illustration .diagram-signal {
  animation: agent-diagram-signal 4.8s linear infinite;
  animation-delay: var(--delay,0s);
  animation-play-state: paused;
}
.foundation-illustration .cycle-is-playing .diagram-signal { animation-play-state: running; }
@keyframes agent-diagram-signal {
  0%,8% { transform: translate(0,0); opacity: 0; }
  18% { opacity: 1; }
  78% { opacity: 1; }
  94%,100% { transform: translate(var(--dx,0px),var(--dy,0px)); opacity: 0; }
}
@media (max-width:980px) {
  body.editorial-site.site-panel.service-panel.page-ai-agent-infrastructure[data-site-page] main :is(#about,#solutions) .solution-text-row {
    --diagram-row-padding: 40px;
    --diagram-row-gap: 24px;
    grid-template-columns: 72px minmax(0,.9fr) minmax(0,1.2fr);
  }
  body.editorial-site.site-panel.service-panel.page-ai-agent-infrastructure[data-site-page] main :is(#about,#solutions) .solution-text-description { font-size: 16px; padding-left: 8px; }
  body.page-ai-agent-infrastructure .foundation-illustration { min-height: 240px; }
}
/* Use the same single reading column as the internalization approach rows. */
@media (max-width:767px) {
  body.editorial-site.site-panel.service-panel.page-ai-agent-infrastructure[data-site-page] main :is(#about,#solutions) .solution-text-row {
    --diagram-row-padding: 24px;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 8px 12px;
  }
  body.editorial-site.site-panel.service-panel.page-ai-agent-infrastructure[data-site-page] main :is(#about,#solutions) .solution-text-row > * {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    min-width: 0;
  }
  body.page-ai-agent-infrastructure .foundation-illustration {
    width: min(100%,220px);
    min-height: 0;
    margin: 0 auto;
    justify-self: center;
    justify-items: center;
  }
  body.editorial-site.site-panel.service-panel.page-ai-agent-infrastructure[data-site-page] main :is(#about,#solutions) .solution-text-description { grid-column: 1 / -1; padding: 0; text-align: left; }
  body.page-ai-agent-infrastructure .foundation-illustration::before,
  body.editorial-site.site-panel.service-panel.page-ai-agent-infrastructure[data-site-page] main :is(#about,#solutions) .solution-text-description::before { content: none; }
  body.editorial-site.site-panel.service-panel.page-ai-agent-infrastructure[data-site-page] main :is(#about,#solutions) .solution-text-heading h3 { --section-role-size: 26px; --section-role-line: 1.5; font-size: 26px; line-height: 1.5; }
  body.editorial-site.site-panel.service-panel.page-ai-agent-infrastructure[data-site-page] main :is(#about,#solutions) .solution-text-description > p { margin-top: 16px; }
  body.service-panel.page-ai-agent-infrastructure #about .layer-callout {
    min-height: 0;
    padding: 32px 0 40px;
    gap: 12px;
    text-align: left;
  }
  body.service-panel.page-ai-agent-infrastructure #about .layer-callout > p:first-child {
    font-size: 20px;
    line-height: 1.6;
  }
  body.service-panel.page-ai-agent-infrastructure #about .layer-callout > p + p {
    font-size: 16px;
    line-height: 1.8;
  }
  body.service-panel.page-ai-agent-infrastructure #about .layer-callout b { font-weight: 600; }
}
@media (prefers-reduced-motion:reduce) {
  .foundation-illustration .diagram-signal { animation: none; opacity: 1; }
}

@layer japanese-line-wrap {
  @media (max-width:767px) {
    body.page-ai-agent-infrastructure main #about .layer-callout > p + p {
      text-wrap: wrap !important;
    }
    body.page-ai-agent-infrastructure main #about .layer-callout > p + p .jp-copy-phrase {
      display: inline !important;
      text-wrap: wrap !important;
    }
    body.page-ai-agent-infrastructure main #about .layer-callout > p + p wbr { display: none; }
  }
}

/* Match the inset of the internalization service's row indices. */
body.editorial-site.site-panel.service-panel.page-ai-agent-infrastructure[data-site-page] main :is(#about,#solutions) .solution-text-number {
  position: relative;
  top: calc(16px - var(--diagram-row-padding));
  left: calc(16px - var(--panel-gutter));
}
@media (max-width:767px) {
  body.editorial-site.site-panel.service-panel.page-ai-agent-infrastructure[data-site-page] main :is(#about,#solutions) .solution-text-number {
    top: -16px;
    line-height: 1.2;
    letter-spacing: -.03em;
  }
}
