/* Shared finish for the public site. Theme tokens also apply to the mobile drawer. */
:root {
  --finish-surface: #fff;
  --finish-wash: #f0f5f9;
  --finish-ink: #102b40;
  --finish-copy: #354d62;
  --finish-line: #bccdd8;
  --finish-accent: #114f82;
  --finish-highlight: #fff;
  --finish-shadow: 0 6px 19px -10px #163b5538;
  --finish-spectrum: #173664 0%, #25478c 19%, #235c82 32%, #137078 42%, #46577a 49%, #244770 54%, #173664 70%, #173664 100%;
}
html:is(.dark, [data-theme="dark"]) {
  --finish-surface: #142536;
  --finish-wash: #1b3043;
  --finish-ink: #f2f8ff;
  --finish-copy: #c8d6e4;
  --finish-line: #435a6e;
  --finish-accent: #a2daff;
  --finish-highlight: #32485b;
  --finish-shadow: 0 8px 22px -12px #0009;
  --finish-spectrum: #9cc8fc 0%, #b5c2ff 19%, #89d7ed 32%, #8de7df 42%, #fff 49%, #badbff 54%, #9cc8fc 70%, #9cc8fc 100%;
}

/* The navigation reads as one rail, with opaque surfaces on scrolled pages. */
html body .wx19-header .wx17-header-inner {
  box-sizing: border-box;
  background: var(--finish-surface);
  border: 1px solid var(--finish-line);
  border-radius: 20px;
  box-shadow: inset 0 1px var(--finish-highlight), var(--finish-shadow);
  padding-inline: 4px;
  pointer-events: auto;
}
html body:is(.wx35-home,.wx35-refined) .wx19-header .wx17-header-inner :is(.wx17-brand,.wx17-desktop-nav,.wx17-header-actions) {
  background: transparent !important;
  backdrop-filter: none;
  border-color: transparent !important;
  box-shadow: none !important;
}
html body .wx19-header .wx17-nav-group[open] > summary,
html body .wx19-header .wx17-nav-direct[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}
html body .wx19-header .wx17-header-inner .wx17-contact {
  background: #174e95 !important;
  color: #fff !important;
  border-color: #174e95 !important;
  border-radius: 14px;
}
html body .wx19-header .wx17-mega,
html body .wx17-drawer .wx36-service-field input {
  background: var(--finish-surface) !important;
  border-color: var(--finish-line) !important;
}
html body .wx19-header .wx19-solutions-column > p,
html body .wx19-header .wx17-menu-link small {
  color: var(--finish-copy) !important;
}
html body :is(.wx19-header,.wx17-drawer) :is(a,button,summary,input):focus-visible {
  outline: 3px solid var(--finish-accent) !important;
  outline-offset: 2px;
}
@media (min-width: 1040px) {
  html body .wx19-header .wx17-header-inner .wx17-brand { padding-inline-start: 18px; }
}
@media (max-width: 600px) {
  html body .wx19-header .wx17-header-inner { border-radius: 16px; padding-inline: 1px; }
}

/* Interior reading plates and service cards retain their existing layout. */
html body.wx35-refined #main {
  --wx35-radius: 17px;
  --wx35-paper: var(--finish-surface);
  --wx35-muted: var(--finish-copy);
  --wx35-line: var(--finish-line);
  --wx35-shadow: inset 0 1px var(--finish-highlight), var(--finish-shadow);
}
html body.wx35-refined #main :is(
  .wx36-hero-copy,.business-service-card,.w8i-related-card,.w8p-related-card,
  .catalog-entry,.wx36-service-card,.contact-card,.legal-content > section,
  .nw7-price-group,.security-grid > article,.scope-grid > article
),
html body.wx35-home #main :is(
  .wx36-capabilities,.wx36-capability,.wx17-system-card,.wx18-approval-panel,.wx35-story
) {
  border-color: var(--finish-line) !important;
  box-shadow: inset 0 1px var(--finish-highlight), var(--finish-shadow) !important;
}
html body #main .wx36-brief {
  border-top-color: var(--finish-line);
}
html body #main .wx36-brief h2 {
  letter-spacing: -.025em;
}

/* Approval artwork is a light panel in light mode and a dark panel in dark mode. */
html body #approval-studio .wx18-creative-art {
  color: var(--finish-ink) !important;
  background: linear-gradient(137deg, var(--finish-surface), var(--finish-wash)) !important;
}
html body #approval-studio .wx18-creative-art > span,
html body #approval-studio .wx18-creative-art p,
html body #approval-studio .wx18-card-ready,
html body #approval-studio .wx18-approval-steps li {
  color: var(--finish-copy) !important;
  -webkit-text-fill-color: currentColor !important;
  opacity: 1 !important;
}
html body #approval-studio .wx18-creative-art > span { font-size: 11px; }
html body #approval-studio .wx18-creative-art h3 { color: var(--finish-ink) !important; }
html body #approval-studio .wx18-creative-art p { font-size: 14px; line-height: 1.5; }
html body #approval-studio :is(.wx18-creative-card, .wx18-creative-card header, .wx18-card-ready) {
  background: var(--finish-surface) !important;
  color: var(--finish-ink) !important;
  border-color: var(--finish-line) !important;
}
html body #approval-studio .wx18-approval-steps li > span {
  color: var(--finish-copy) !important;
  background: var(--finish-surface) !important;
  border-color: var(--finish-line) !important;
}
html body #approval-studio .wx18-approval-steps li[aria-current="step"],
html body #approval-studio .wx18-approval-steps li[aria-current="step"] > span {
  color: var(--finish-accent) !important;
  font-weight: 740;
}
html body #approval-studio .wx18-revise {
  background: var(--finish-surface) !important;
  border: 1px solid var(--finish-line) !important;
  color: var(--finish-accent) !important;
}
html body #main .wx17-system-console li:not(.is-current),
html body #main .wx17-system-phases span:not(.is-current) { color: var(--finish-copy) !important; }

/* A slow highlight moves within the letters. All stops remain legible. */
@keyframes wsai-title-reflection {
  from { background-position: 0% 50%; }
  to { background-position: 220% 50%; }
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  html body #main :is(.wx36-liquid-text, .wx23-metal-text, .wx18-approval-copy h2 > span,
    .wx36-cap-intro h2 > span, .wx20-interior-hero h1 .w13-accent) {
    background-image: linear-gradient(108deg, var(--finish-spectrum)) !important;
    background-size: 220% 100% !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
    animation: wsai-title-reflection 9s linear infinite !important;
    animation-play-state: var(--finish-play, running) !important;
  }
}
html:is(.wx16-motion-paused,.wx17-motion-paused,.wx19-motion-paused,.nw7-paused),
body:is(.wx35-motion-stopped,.wx16-motion-paused,.wx17-motion-paused,.wx19-motion-paused,.nw7-paused,[data-wx16-motion="paused"],[data-wx19-motion="paused"]) {
  --finish-play: paused;
}
@media (prefers-reduced-motion: reduce) { :root { --finish-play: paused; } }
@media (forced-colors: active) {
  html body #main :is(.wx36-liquid-text,.wx23-metal-text,.wx18-approval-copy h2 > span,.wx36-cap-intro h2 > span,.wx20-interior-hero h1 .w13-accent) {
    background: none !important;
    color: CanvasText !important;
    -webkit-text-fill-color: CanvasText !important;
    animation: none !important;
  }
}

/* Keep the silver brand motif behind the work, especially around long reading panels. */
html[data-theme="light"] body .wx22-world-background.wx23-world-background { opacity: .48; }
html[data-theme="dark"] body .wx22-world-background.wx23-world-background { opacity: .72; }

/* The approval figure shares its width with a caption on small screens. */
@media (max-width: 580px) {
  html body[data-wx30-page] #main .wx22-approval-wexo {
    height: auto;
    min-height: 150px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 10px;
  }
  html body[data-wx30-page] #main .wx22-approval-wexo > .wx30-approval {
    width: min(100%, 154px);
    height: auto;
    aspect-ratio: 1;
  }
  html body[data-wx30-page] #main .wx22-approval-wexo > .wx22-kicker {
    margin: 0;
    align-self: end;
  }
  html body[data-wx30-page] #main .wx22-approval-wexo > figcaption {
    margin: 7px 0 0;
    font-size: 16px;
    line-height: 1.35;
    overflow-wrap: break-word;
  }
}

/* Keep the fixed rail and its text in the native pixel plane. */
html body .wx19-header,
html body .wx19-header .wx17-header-inner,
html body .wx19-header .wx17-header-inner :is(.wx17-brand,.wx17-desktop-nav,.wx17-header-actions,.wx17-nav-direct,.wx17-brand-type,.wx17-brand img,.wx17-nav-group > summary) {
  filter: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transform: none !important;
  will-change: auto !important;
  text-shadow: none !important;
}
html body .wx19-header .wx17-header-inner .wx17-brand img {
  height: 30px;
  width: 56px;
  object-fit: contain;
}
/* V45: keep the approved navy-and-silver mark in both themes. */
html body .wx19-header .wx17-header-inner .wx17-brand img,
html body .wx16-brand img {
  content: normal !important;
  filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}
/* The original artwork needs a light surface, not a recolored replacement. */
html:is(.dark,[data-theme="dark"]) body .wx19-header .wx17-header-inner .wx17-brand {
  --finish-ink: #102b40;
  background: #fff !important;
  border-color: #d4dee8 !important;
  border-radius: 12px;
  box-shadow: none !important;
}
html:is(.dark,[data-theme="dark"]) body img[src="/images/ws-official-v14.webp"] {
  content: normal !important;
  filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  background: #fff;
  border-radius: 5px;
  padding: 2px;
  box-sizing: border-box;
}
html body .wx19-header .wx17-brand-type,
html body .wx19-header .wx17-brand-type > span {
  color: var(--finish-ink) !important;
  font-style: normal;
  line-height: 1.25;
}
html body .wx19-header .wx17-brand-type { font-size: 12px; letter-spacing: .045em; }
html body .wx19-header .wx17-brand-type > span { font-size: 9px; letter-spacing: .07em; }
@media (max-width: 410px) {
  html body .wx19-header .wx17-header-inner .wx17-brand img { width: 32px; height: 18px; }
  html body .wx19-header .wx17-brand-type { font-size: 10px; }
  html body .wx19-header .wx17-brand-type > span { font-size: 7px; }
}
html body .wx19-header .wx17-mega {
  inset-inline: 0;
  margin-inline: auto;
  transform: none !important;
}

/* One wavelength fits the strip. End positions match so looping has no cut. */
@keyframes wsai-spectrum-flow {
  from { background-position: 200% 50%; }
  to { background-position: 0% 50%; }
}
@supports (background-clip:text) or (-webkit-background-clip:text) {
  html body #main #home-title .wx23-metal-text {
    --hero-spectrum: #153b63, #244d78 22%, #456b8e 39%, #54728f 48%, #315982 58%, #1a436f 77%, #153b63;
    background-image: linear-gradient(92deg,var(--hero-spectrum)) !important;
    background-size: 200% 100% !important;
    animation: wsai-spectrum-flow 3.1s linear infinite !important;
    animation-play-state: var(--finish-play,running) !important;
    font-weight: 800;
  }
  html body #main #home-title .wx23-metal-text--second { animation-delay: -1.15s !important; }
  html:is(.dark,[data-theme="dark"]) body #main #home-title .wx23-metal-text {
    --hero-spectrum: #80a7cc, #afc8df 22%, #d6e4f1 39%, #f6faff 48%, #b5cde3 58%, #8fb5d8 77%, #80a7cc;
  }
  html body #main [data-reflection-offscreen] { --finish-play: paused; }
}
@media (forced-colors:active) {
  html body #main #home-title .wx23-metal-text {
    color: CanvasText !important;
    -webkit-text-fill-color: CanvasText !important;
    background: none !important;
    animation: none !important;
  }
}
