/* Catalog navigation inherits the site's palette and native flyout behavior. */
/* Model branches stay open initially around the original mark, with native disclosures. */
.catalog-menu {
  width: min(700px, calc(100vw - 48px));
  padding: 22px 20px 16px;
}
.catalog-menu-heading {
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.09em;
  line-height: 1.7;
  margin: 0 0 10px;
  padding-inline: 8px;
}
.catalog-menu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}
.header #nav .catalog-menu-list a {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--ink);
  text-align: start;
  white-space: normal;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}
.catalog-item-title,
.catalog-item-desc {
  overflow-wrap: anywhere;
}
.header #nav .catalog-menu-list a:hover {
  background: var(--pale-blue);
  border-color: var(--line);
}
.catalog-item-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.catalog-item-title {
  font-size: 14px;
  font-weight: 550;
  line-height: 1.5;
}
.catalog-item-desc {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.65;
}
.catalog-menu-list svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--blue);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.header #nav .catalog-menu-list a:hover svg,
.header #nav .catalog-menu-list a:focus-visible svg {
  opacity: 1;
  transform: none;
}
[dir="rtl"] .catalog-menu-list svg { transform: scaleX(-1) translateX(-4px); }
[dir="rtl"] .header #nav .catalog-menu-list a:hover svg,
[dir="rtl"] .header #nav .catalog-menu-list a:focus-visible svg {
  transform: scaleX(-1);
}
.catalog-selector { margin-block: 24px 32px; }
.catalog-selector > h3 { font-size: 16px; font-weight: 500; }
.catalog-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 14px 20px; }
.catalog-tabs button {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.catalog-tabs button[aria-selected="true"] { border-color: var(--blue); color: var(--blue); }
.catalog-tabs button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.catalog-panel { scroll-margin-top: 110px; }
.catalog-panel[hidden] { display: none; }
.catalog-panel > p { max-width: 720px; color: var(--muted); line-height: 1.8; }
.catalog-panel > h3 { font-size: 20px; font-weight: 500; }
.model-catalogue {
  padding-block: 20px 28px;
  border-top: 1px solid var(--line);
}
#intelligence .model-catalogue h3 {
  color: var(--navy);
  font-size: 20px;
  line-height: 1.5;
  font-weight: var(--site-weight-title);
}
.model-catalogue-intro {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.model-tree {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 1.25fr) minmax(0, 1fr);
  gap: 16px 32px;
  align-items: center;
}
.model-tree-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.model-tree-figure img {
  width: 100%;
  max-width: 400px;
  height: auto;
}
.model-tree-group {
  display: block;
  min-width: 0;
  border: 0;
  background: transparent;
  align-self: start;
}
#main #intelligence .model-tree-group > .model-tree-group-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--pale-blue);
  cursor: pointer;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: var(--site-weight-title);
  letter-spacing: 0;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}
.model-tree-group-label:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.model-tree-group-label::-webkit-details-marker {
  display: none;
}
#main #intelligence .model-tree-group > summary::after {
  display: none;
}
.model-tree-group-label svg {
  flex: none;
  margin-inline-start: auto;
  color: var(--blue);
  transform: rotate(90deg);
  transition: transform 160ms ease;
}
.model-tree-group[open] > summary svg {
  transform: rotate(-90deg);
}
.model-tree-group-label:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.model-tree-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 6px;
  border-radius: 999px;
  background: var(--pale-blue);
  color: var(--blue);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
#main #intelligence .model-tree-group > .model-tree-children {
  display: grid;
  gap: 8px;
  padding: 0;
  margin-top: 0;
  border-radius: 0;
  background: transparent;
}
.model-tree-group:not([open]) > .model-tree-children {
  display: none;
}
.model-tree-left {
  text-align: end;
}
#main #intelligence .model-tree-left > .model-tree-group-label {
  margin-inline-start: auto;
}
.model-tree-right {
  align-items: flex-start;
}
.model-tree-left,
.model-tree-right {
  min-width: 0;
}
.model-tree-item {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 64px;
  padding: 12px 10px;
  padding-inline-end: 30px;
  margin-inline: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.18s ease;
}
.model-tree-item::after {
  content: "→";
  position: absolute;
  inset-inline-end: 10px;
  top: 15px;
  color: var(--blue);
  font-size: 13px;
  opacity: 0.65;
  transform: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
[dir="rtl"] .model-tree-item::after {
  transform: scaleX(-1);
}
.model-tree-name {
  display: block;
  color: var(--blue);
  font-size: 16px;
  font-weight: var(--site-weight-title);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--blue) 35%, transparent);
  text-underline-offset: 3px;
}
.model-tree-title {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.model-tree-item:hover,
.model-tree-item:focus-visible {
  background: color-mix(in srgb, var(--blue) 6%, transparent);
}
.model-tree-item:hover::after,
.model-tree-item:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}
[dir="rtl"] .model-tree-item:hover::after,
[dir="rtl"] .model-tree-item:focus-visible::after {
  transform: scaleX(-1);
}
.model-tree-item:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.model-tree-item:hover .model-tree-name,
.model-tree-item:focus-visible .model-tree-name {
  text-decoration-color: var(--blue);
}
.model-tree-base {
  min-width: 0;
  padding: 8px 28px 8px 10px;
  margin-inline: 0;
  border-bottom: 0;
  text-align: center;
}
.model-tree-base::after {
  display: block;
}
.model-tree-base .model-tree-name {
  font-size: 18px;
}
.model-tree-inputs {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}
#main #intelligence .model-tree-inputs > .model-tree-group-label {
  margin-inline: auto;
}
#main #intelligence .model-tree-inputs > .model-tree-children {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 24px;
  max-width: 600px;
  margin-inline: auto;
}
@media (prefers-reduced-motion: reduce) {
  .model-tree-group-label,
  .model-tree-group-label svg,
  .model-tree-item,
  .model-tree-item::after {
    transition: none;
  }
}
.model-tree-inputs .model-tree-item {
  min-width: 0;
}
@media (max-width: 900px) {
  .model-tree {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .model-tree-figure {
    order: -1;
    grid-column: 1 / -1;
  }
  .model-tree-figure img {
    width: 240px;
    max-width: 70%;
  }
  .model-tree-left,
  .model-tree-right {
    align-items: stretch;
    text-align: start;
  }
  .model-tree-item {
    min-width: 0;
  }
  #main #intelligence .model-tree-left > .model-tree-group-label {
    margin-inline-start: 0;
  }
}
@media (max-width: 600px) {
  .model-tree {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .model-tree-figure img {
    width: 200px;
  }
  #main #intelligence .model-tree-group > .model-tree-group-label {
    font-size: 13px;
  }
  #main #intelligence .model-tree-group > .model-tree-children {
    gap: 4px;
  }
  .model-tree-inputs {
    text-align: start;
  }
  #main #intelligence .model-tree-inputs > .model-tree-group-label {
    margin-inline: 0;
  }
  #main #intelligence .model-tree-inputs > .model-tree-children {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 850px) {
  .catalog-menu { padding: 0; width: 100%; }
  .catalog-menu-heading { padding-inline: 0; }
  .header #nav .catalog-menu-list { grid-template-columns: minmax(0, 1fr); }
  .header #nav .catalog-menu-list a { padding: 12px 10px; }
  .catalog-menu-list svg { opacity: 1; transform: none; }
  [dir="rtl"] .catalog-menu-list svg { transform: scaleX(-1); }
}

/* Keep the service navigation and its short descriptions in one compact band. */
#deployment {
  padding-block: 36px;
}
#deployment > .section-wrap {
  display: grid;
  padding-block: 0;
  grid-template-columns: minmax(120px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 24px 40px;
}
#deployment .section-heading {
  margin: 0;
}
#deployment .section-heading h2 {
  font-size: 28px !important;
  line-height: 1.4;
  letter-spacing: 0;
}
#deployment .catalog-selector {
  display: contents;
}
#deployment .catalog-tabs {
  justify-content: flex-end;
  margin: 0;
  gap: 8px;
}
#deployment .catalog-panel:not([hidden]) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 24px;
  border-top: 1px solid var(--line);
  padding-block-start: 20px;
}
#deployment .catalog-panel > h3 {
  font-size: 18px !important;
  line-height: 1.5;
  margin: 0;
}
#deployment .catalog-panel > p {
  max-width: none;
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}
#deployment .catalog-panel > .text-link {
  justify-self: end;
  font-size: 14px;
  white-space: nowrap;
}
#deployment #service-deploy:not([hidden]) {
  grid-template-columns: minmax(0, 1fr);
}
#deployment #service-deploy > h3 {
  display: none;
}
@media (max-width: 850px) {
  #deployment > .section-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  #deployment .catalog-tabs {
    justify-content: flex-start;
  }
  #deployment .catalog-panel:not([hidden]) {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
    padding-block-start: 16px;
  }
  #deployment .catalog-panel > p {
    grid-row: 2;
    grid-column: 1 / -1;
  }
  #deployment .catalog-panel > .text-link {
    grid-row: 1;
    grid-column: 2;
  }
}

/* Source-based service introductions retain the native service tabs. */
#deployment .service-rich:not([hidden]) {
  display: block;
}
#deployment .service-introduction {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 28px;
  margin-bottom: 22px;
}
#deployment .service-introduction h3 {
  font-size: 24px;
  line-height: 1.5;
  margin: 0;
  color: var(--navy);
}
#deployment .service-introduction > p {
  grid-column: 1;
  margin: 0;
}
#deployment .service-introduction > a {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  white-space: nowrap;
}
#deployment .service-introduction > a.text-link {
  border-bottom: 0;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f7ef7 0%, var(--blue) 55%, #0754b6 100%);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: var(--site-weight-title);
  box-shadow: 0 8px 20px rgba(9, 102, 216, 0.26);
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
#deployment .service-introduction > a.text-link:hover {
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(9, 102, 216, 0.34);
}
#deployment .service-body {
  display: grid;
  gap: 20px;
}
#deployment .service-body h4,
#deployment .service-body h5 {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: var(--site-weight-title);
  line-height: 1.6;
}
#deployment .service-body p,
#deployment .service-introduction p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}
#deployment .service-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 16px 0;
  margin: 0;
  border-block: 1px solid var(--line);
  gap: 20px;
}
#deployment .service-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 5px 10px;
  min-width: 0;
}
#deployment .service-step-number {
  font-size: 14px;
  line-height: 1.7;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
#deployment .service-steps p {
  grid-column: 2;
  margin: 0;
}
#deployment .service-model-cases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 24px;
}
#deployment .service-model-cases > h4 {
  grid-column: 1 / -1;
}
#deployment .service-model-cases article {
  border-inline-start: 2px solid var(--line);
  padding-inline-start: 12px;
}
#deployment .service-model-cases p {
  margin: 5px 0 0;
  color: var(--blue);
}
#deployment .service-model-cases small {
  font-size: 11px;
  color: var(--muted);
}
#deployment .service-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
#deployment .service-photo {
  min-width: 0;
  margin: 0;
}
#deployment .service-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: contain;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}
#deployment .service-workshop-media img {
  object-fit: cover;
}
#deployment .service-photo figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px 12px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--navy);
}
#deployment .service-photo time {
  font-size: 11px;
  color: var(--muted);
}
#deployment .service-photo p {
  margin: 4px 0 0;
}
#deployment .service-body .service-boundary {
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
}
#deployment .service-agent-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 3fr);
  gap: 28px;
}
#deployment .service-agent-core {
  background: var(--pale-blue);
  border-inline-start: 3px solid var(--blue);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#deployment .service-agent-core h4 {
  font-size: 21px;
}
#deployment .service-agent-core ul {
  margin: 12px 0 0;
  padding-inline-start: 18px;
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
}
#deployment .service-agent-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
}
#deployment .service-agent-examples > h4 {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--muted);
}
#deployment .service-agent-examples article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
#deployment .service-agent-examples p {
  grid-column: 2;
  margin: 0;
}
#deployment .service-workshop {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr);
  gap: 6px 28px;
}
#deployment .service-workshop strong {
  grid-column: 1;
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
}
#deployment .service-workshop p {
  grid-column: 2;
  margin: 0;
}
#deployment .service-workshop p:first-of-type {
  grid-row: 1;
}
@media (max-width: 850px) {
  #deployment .service-introduction {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  #deployment .service-introduction h3 {
    font-size: 21px;
  }
  #deployment .service-introduction > a {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
  #deployment .service-steps,
  #deployment .service-model-cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #deployment .service-agent-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  #deployment .service-agent-core {
    padding: 16px;
  }
  #deployment .service-agent-core ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 26px;
  }
  #deployment .service-workshop {
    grid-template-columns: minmax(0, 1fr);
  }
  #deployment .service-workshop p {
    grid-column: 1;
  }
  #deployment .service-workshop p:first-of-type {
    grid-row: auto;
  }
}
@media (max-width: 520px) {
  #deployment .service-media-grid,
  #deployment .service-agent-examples {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  #deployment .service-steps {
    gap: 16px;
  }
}
