/* WeianData Design System — Plan D (Modern AI Product Platform) */

.wd-site {
  --wd-bg: #fcfcfd;
  --wd-surface: #ffffff;
  --wd-soft: #f3f5fa;
  --wd-tint: #eff4ff;
  --wd-ink: #111827;
  --wd-muted: #4b5563;
  --wd-subtle: #6b7280;
  --wd-line: #e5e7eb;
  --wd-blue: #2563eb;
  --wd-indigo: #4338ca;
  --wd-grad: linear-gradient(135deg, #2563eb, #4338ca);
  --wd-shadow-sm: 0 4px 14px rgba(17, 24, 39, 0.04);
  --wd-shadow-lg: 0 22px 50px rgba(17, 24, 39, 0.08);
  --wd-measure: 1200px;
  --wd-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  --wd-ease-spatial: cubic-bezier(0.22, 1, 0.36, 1);

  margin: 0;
  background: var(--wd-bg);
  color: var(--wd-ink);
  font-family: -apple-system, BlinkMacSystemFont, Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wd-frame,
.wd-site .services-inner {
  width: min(100%, var(--wd-measure));
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
  box-sizing: border-box;
}

.wd-mast *,
.wd-home *,
.wd-contact *,
.wd-footer * {
  box-sizing: border-box;
}

.wd-site :focus-visible {
  outline: 3px solid var(--wd-blue);
  outline-offset: 3px;
}

.wd-site [id] {
  scroll-margin-top: 88px;
}

/* Sticky Frosted Topbar -> Floating Pill on Scroll */
.wd-mast {
  box-sizing: border-box;
  position: sticky;
  inset-block-start: 0;
  z-index: 40;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  background: rgba(252, 252, 253, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid transparent;
  border-bottom-color: var(--wd-line);
  color: var(--wd-ink);
  transition:
    max-width 0.42s var(--wd-ease-spatial),
    inset-block-start 0.42s var(--wd-ease-spatial),
    border-radius 0.42s var(--wd-ease-spatial),
    box-shadow 0.42s var(--wd-ease-spatial),
    border-color 0.3s ease;
}

.wd-top,
.wd-brand,
.wd-nav,
.wd-buttons,
.wd-footer .wd-frame,
.wd-sub .wd-frame {
  display: flex;
  align-items: center;
}

.wd-top {
  gap: 18px;
  min-height: 68px;
  transition: min-height 0.38s var(--wd-ease-spatial);
}

@media (min-width: 1021px) {
  .wd-mast.is-floating {
    inset-block-start: 12px;
    max-width: 1040px;
    border-radius: 999px;
    border-color: var(--wd-line);
    background: rgba(252, 252, 253, 0.94);
    box-shadow: 0 14px 38px rgba(17, 24, 39, 0.1);
  }
  .wd-mast.is-floating .wd-top {
    min-height: 56px;
  }
  .wd-mast.is-floating .wd-cta {
    border-radius: 999px;
  }
}

.wd-brand {
  gap: 10px;
  margin-right: auto;
  flex: none;
}

.wd-brand img {
  width: 32px;
  height: 38px;
  display: block;
}

.wd-brand span {
  font-weight: 800;
  font-size: 15.5px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.wd-brand small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  color: var(--wd-muted);
  letter-spacing: 0.02em;
}

.wd-mast a,
.wd-sub a,
.wd-home a,
.wd-footer a,
.wd-contact a {
  text-decoration: none;
  color: inherit;
}

.wd-nav {
  gap: clamp(12px, 1.8vw, 24px);
}

.wd-nav a,
.wd-lang,
.wd-cta,
.wd-menu summary,
.wd-sub a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
}

.wd-nav a {
  color: var(--wd-muted);
  transition: color 0.15s ease;
}

.wd-nav a:hover,
.wd-mast a[aria-current],
.wd-lang:hover,
.wd-sub a:hover {
  color: var(--wd-blue);
}

.wd-mast a[aria-current] {
  font-weight: 650;
}

.wd-lang {
  font-family: var(--wd-mono);
  font-size: 12.5px;
  color: var(--wd-muted);
  padding: 0 10px;
  min-height: 36px;
  border: 1px solid var(--wd-line);
  border-radius: 8px;
  background: var(--wd-surface);
}

.wd-lang:hover {
  border-color: var(--wd-blue);
}

/* Buttons */
.wd-mast .wd-cta,
.wd-home .wd-action,
.wd-contact .wd-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  background: var(--wd-grad);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
  transition: filter 0.16s ease, transform 0.12s ease;
}

.wd-mast .wd-cta {
  min-height: 38px;
  padding: 0 16px;
}

.wd-cta:hover,
.wd-action:hover {
  filter: brightness(1.07);
}

.wd-home .wd-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  background: var(--wd-surface);
  color: var(--wd-ink);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--wd-line);
  transition: border-color 0.16s ease, color 0.16s ease;
}

.wd-home .wd-ghost:hover {
  border-color: var(--wd-blue);
  color: var(--wd-blue);
}

/* Mobile Menu */
.wd-menu {
  display: none;
  position: relative;
}

.wd-menu summary {
  cursor: pointer;
  list-style: none;
  padding: 0 10px;
  border: 1px solid var(--wd-line);
  border-radius: 8px;
  min-height: 36px;
  background: var(--wd-surface);
}

.wd-menu summary::-webkit-details-marker {
  display: none;
}

.wd-menu summary::after {
  content: "☰";
  margin-left: 6px;
}

.wd-menu[open] summary::after {
  content: "×";
}

.wd-menu > div {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  background: var(--wd-surface);
  border: 1px solid var(--wd-line);
  border-radius: 12px;
  box-shadow: var(--wd-shadow-lg);
  padding: 8px;
}

.wd-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.wd-menu a:hover {
  background: var(--wd-soft);
  color: var(--wd-blue);
}

/* Secondary Subnav Bar */
.wd-sub {
  border-bottom: 1px solid var(--wd-line);
  background: var(--wd-soft);
}

.wd-sub .wd-frame {
  gap: 20px;
  flex-wrap: wrap;
}

.wd-sub b {
  font-size: 13.5px;
  color: var(--wd-ink);
}

.wd-sub a {
  font-size: 13px;
  color: var(--wd-muted);
}

/* Typography & Labels */
.wd-label,
.wd-site .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wd-blue);
  font: 700 12px/1.4 var(--wd-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.wd-label::before,
.wd-site .eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.wd-home h1,
.wd-home h2,
.wd-contact h2,
.wd-site .library-hero h1,
.wd-site .hero-copy h1 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.wd-home h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
}

.wd-home h3 {
  margin: 0;
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.35;
}

/* Homepage Hero + Centered Platform Glow */
.wd-hero {
  padding-block: clamp(46px, 6.5vw, 76px) clamp(40px, 5vw, 64px);
  background:
    radial-gradient(ellipse 65% 55% at 50% 0%, rgba(37, 99, 235, 0.1), transparent 70%),
    radial-gradient(ellipse 45% 40% at 82% 14%, rgba(67, 56, 202, 0.08), transparent 65%),
    var(--wd-bg);
  border-bottom: 1px solid var(--wd-line);
}

.wd-hero-center {
  text-align: center;
}

.wd-cap-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--wd-surface);
  border: 1px solid var(--wd-line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--wd-indigo);
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
  margin-bottom: 20px;
}

.wd-hero h1 {
  margin: 0 auto 18px;
  max-width: 19ch;
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.wd-hero h1 em {
  font-style: normal;
  background: var(--wd-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wd-lead {
  margin: 0 auto 28px;
  max-width: 58ch;
  font-size: clamp(15.5px, 1.3vw, 17.5px);
  line-height: 1.75;
  color: var(--wd-muted);
}

.wd-hero .wd-buttons {
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Flagship 4-in-1 Interactive Platform Switcher (Spatial Motion Plan 3) */
.wd-stage-wrap {
  position: relative;
  margin-top: 8px;
}

.wd-switcher {
  text-align: left;
  background: var(--wd-surface);
  border: 1px solid var(--wd-line);
  border-radius: 18px;
  box-shadow: 0 24px 56px rgba(17, 24, 39, 0.08);
  overflow: hidden;
}

.wd-sw-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  background: var(--wd-soft);
  border-bottom: 1px solid var(--wd-line);
}

.wd-tab-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2.5px;
  width: 0;
  background: var(--wd-grad);
  pointer-events: none;
  transition: transform 0.36s var(--wd-ease-spatial), width 0.36s var(--wd-ease-spatial);
  z-index: 3;
}

.wd-sw-tab {
  text-align: left;
  padding: 15px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease;
}

.wd-sw-tab:hover {
  background: rgba(255, 255, 255, 0.55);
}

.wd-sw-tab[aria-selected="true"] {
  background: var(--wd-surface);
}

.wd-sw-tab strong {
  display: block;
  font-size: 14px;
  color: var(--wd-ink);
}

.wd-sw-tab span {
  display: block;
  font-size: 12px;
  color: var(--wd-muted);
  margin-top: 2px;
}

.wd-sw-body {
  padding: clamp(20px, 3vw, 30px);
}

.wd-sw-panel[hidden] {
  display: none;
}


/* Panel 1: Dual-Parameter IRT Lab + Interactive Hover Probe */
.wd-irt-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
}

.wd-chart {
  position: relative;
  height: 245px;
  background: var(--wd-soft);
  border: 1px solid var(--wd-line);
  border-radius: 14px;
  padding: 12px;
  cursor: crosshair;
}

.wd-chart canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.wd-probe-tip {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(17, 24, 39, 0.92);
  color: #f9fafb;
  border-radius: 8px;
  padding: 6px 10px;
  font-family: var(--wd-mono);
  font-size: 11.5px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.wd-probe-tip.is-active {
  opacity: 1;
  transform: translateY(0);
}

.wd-probe-hint {
  margin: 0;
  font-size: 12.5px;
  color: var(--wd-subtle);
}

.wd-irt-side {
  display: grid;
  gap: 12px;
}

.wd-ctrl-card {
  background: var(--wd-soft);
  border: 1px solid var(--wd-line);
  border-radius: 12px;
  padding: 13px 15px;
}

.wd-ctrl-card label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.wd-ctrl-card output {
  font-family: var(--wd-mono);
  font-variant-numeric: tabular-nums;
  color: var(--wd-blue);
}

.wd-ctrl-card input[type="range"] {
  display: block;
  width: 100%;
  accent-color: var(--wd-blue);
  cursor: pointer;
}

.wd-irt-metrics {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--wd-muted);
}

.wd-irt-metrics strong {
  color: var(--wd-blue);
  font-family: var(--wd-mono);
}

/* Panel 2: CRAN Pipeline */
.wd-cran-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.wd-cran-btn {
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--wd-line);
  background: var(--wd-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}

.wd-cran-btn[aria-pressed="true"] {
  background: var(--wd-tint);
  border-color: var(--wd-blue);
}

.wd-cran-btn strong {
  display: block;
  font-family: var(--wd-mono);
  font-size: 16px;
  color: var(--wd-blue);
}

.wd-cran-btn span {
  display: block;
  font-size: 12.5px;
  color: var(--wd-muted);
  margin-top: 2px;
}

.wd-cran-bar {
  background: #111827;
  color: #f9fafb;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.wd-cran-bar strong {
  display: block;
  font-size: 15.5px;
}

.wd-cran-bar small {
  display: block;
  font-size: 13px;
  color: #9ca3af;
  margin-top: 3px;
}

.wd-cran-bar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.wd-cran-bar code {
  font-family: var(--wd-mono);
  font-size: 13px;
  color: #93c5fd;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  border-radius: 6px;
}

.wd-cran-bar a {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

/* Panel 3 & 4: Pills & Stages */
.wd-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.wd-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--wd-line);
  background: var(--wd-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--wd-ink);
  cursor: pointer;
  transition: all 0.15s ease;
}

.wd-pill[aria-pressed="true"] {
  background: var(--wd-blue);
  color: #ffffff;
  border-color: var(--wd-blue);
}

.wd-role-stage {
  background: var(--wd-soft);
  border: 1px solid var(--wd-line);
  border-radius: 12px;
  padding: 20px;
  display: grid;
  gap: 8px;
}

.wd-role-stage p {
  margin: 0;
  color: var(--wd-muted);
  font-size: 14.5px;
}

.wd-skill-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.wd-skill-card {
  background: var(--wd-soft);
  border: 1px solid var(--wd-line);
  border-radius: 12px;
  padding: 16px;
}

.wd-skill-card small {
  font-family: var(--wd-mono);
  font-size: 11px;
  color: var(--wd-indigo);
  font-weight: 600;
}

.wd-skill-card strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 15px;
}

.wd-skill-card p {
  margin: 0;
  font-size: 13px;
  color: var(--wd-muted);
}

.wd-panel-foot {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.wd-link-arrow {
  color: var(--wd-blue);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wd-link-arrow::after {
  content: "→";
}

.wd-link-arrow:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Sections & Grids */
.wd-block,
.wd-band,
.wd-site .services-inner {
  padding-block: clamp(48px, 6vw, 84px);
}

.wd-section-head {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 36px;
}

.wd-section-head p {
  margin: 10px 0 0;
  color: var(--wd-muted);
  font-size: 15.5px;
}

.wd-personas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.wd-persona-card {
  background: var(--wd-surface);
  border: 1px solid var(--wd-line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--wd-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wd-persona-card span {
  font-family: var(--wd-mono);
  font-size: 11.5px;
  color: var(--wd-blue);
  font-weight: 700;
}

.wd-persona-card p {
  margin: 0;
  font-size: 14px;
  color: var(--wd-muted);
}

.wd-persona-card a {
  margin-top: auto;
  padding-top: 6px;
}

.wd-service-grid,
.wd-steps {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.wd-service-grid article,
.wd-steps article {
  background: var(--wd-surface);
  border: 1px solid var(--wd-line);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--wd-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wd-service-grid p,
.wd-steps p {
  margin: 0;
  color: var(--wd-muted);
  font-size: 14.5px;
}

.wd-service-grid a {
  margin-top: auto;
  padding-top: 6px;
  color: var(--wd-blue);
  font-size: 14px;
  font-weight: 600;
}

.wd-service-grid a::after {
  content: " →";
}

/* Soft Band: CRAN Tools & Trust */
.wd-band {
  background: var(--wd-soft);
  border-block: 1px solid var(--wd-line);
}

.wd-proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 4.5vw, 56px);
}

.wd-proof p:not(.wd-label) {
  color: var(--wd-muted);
  font-size: 15.5px;
  max-width: 48ch;
  margin: 14px 0 20px;
}

.wd-packages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wd-packages a {
  background: var(--wd-surface);
  border: 1px solid var(--wd-line);
  border-radius: 14px;
  padding: 20px;
  display: grid;
  gap: 6px;
  box-shadow: var(--wd-shadow-sm);
  transition: border-color 0.16s ease, transform 0.12s ease;
}

.wd-packages a:hover {
  border-color: var(--wd-blue);
  transform: translateY(-2px);
}

.wd-packages strong {
  color: var(--wd-blue);
  font: 800 22px/1.15 var(--wd-mono);
}

.wd-packages span {
  font-size: 13.5px;
  color: var(--wd-muted);
}

/* Enterprise Pair Cards */
.wd-home .business-services {
  background: var(--wd-bg);
  border: 0;
}

.wd-site .services-pair {
  margin-top: 28px;
  border: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.wd-site .services-pair > a {
  background: var(--wd-surface);
  border: 1px solid var(--wd-line);
  border-radius: 16px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--wd-shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.wd-site .services-pair > a + a {
  border-left: 1px solid var(--wd-line);
}

.wd-site .services-pair > a:hover {
  background: var(--wd-surface);
  border-color: var(--wd-blue);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.08);
}

.wd-site .services-pair h3 {
  margin: 8px 0 0;
  font-size: 20px;
}

.wd-site .services-pair p {
  color: var(--wd-muted);
  margin: 10px 0 18px;
  font-size: 14.5px;
}

.wd-site .services-pair strong {
  margin-top: auto;
  color: var(--wd-blue);
  font-size: 14px;
  font-weight: 600;
}

.wd-site .services-pair strong::after {
  content: " →";
}

/* Trust Commitments & Steps */
.wd-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.wd-trust-card {
  background: var(--wd-surface);
  border: 1px solid var(--wd-line);
  border-radius: 14px;
  padding: 20px;
}

.wd-trust-card.featured {
  border-color: var(--wd-blue);
  background: var(--wd-tint);
}

.wd-trust-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--wd-ink);
}

.wd-trust-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--wd-muted);
}

/* Contact Card Section — Dual-Channel Clean Layout */
.wd-contact-wrap {
  padding-block: clamp(48px, 6vw, 80px);
}

.wd-contact {
  background: linear-gradient(135deg, #1e3a8a, #312e81);
  color: #ffffff;
  border-radius: 20px;
  padding: clamp(28px, 4.5vw, 50px);
}

.wd-contact .wd-label {
  color: #bfdbfe;
}

.wd-contact-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-bottom: 26px;
}

.wd-contact-head p:not(.wd-label) {
  color: #dbeafe;
  font-size: 15.5px;
  max-width: 52ch;
  margin: 10px 0 0;
}

.wd-contact-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.wd-channel {
  background: var(--wd-surface);
  color: var(--wd-ink);
  border-radius: 16px;
  padding: clamp(20px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.wd-channel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.wd-channel-top h3 {
  margin: 0;
  font-size: 18.5px;
  font-weight: 750;
  color: var(--wd-ink);
}

.wd-channel-badge {
  font-family: var(--wd-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--wd-soft);
  color: var(--wd-muted);
  white-space: nowrap;
}

.wd-channel-badge.is-primary {
  background: var(--wd-tint);
  color: var(--wd-blue);
}

.wd-wecom-layout {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.wd-wecom-qr {
  display: block;
  flex: none;
  border-radius: 12px;
  border: 1px solid var(--wd-line);
  padding: 6px;
  background: #ffffff;
  transition: border-color 0.18s ease;
}

.wd-wecom-qr:hover {
  border-color: var(--wd-blue);
}

.wd-wecom-qr img {
  display: block;
  width: 96px;
  height: auto;
  border-radius: 6px;
}

.wd-wecom-info {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 12px;
}

.wd-wecom-info p,
.wd-channel-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--wd-muted);
}

.wd-contact a.wd-wecom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--wd-grad);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
  transition: filter 0.18s ease, transform 0.15s ease;
}

.wd-contact a.wd-wecom-btn:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.wd-email-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--wd-soft);
  border: 1px solid var(--wd-line);
  border-radius: 10px;
  padding: 10px 12px;
}

.wd-contact .wd-email {
  color: var(--wd-ink);
  font-family: var(--wd-mono);
  font-size: 13.5px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.wd-contact .wd-email:hover {
  color: var(--wd-blue);
}

.wd-copy-email {
  flex: none;
  border: 1px solid var(--wd-line);
  background: #ffffff;
  color: var(--wd-ink);
  border-radius: 7px;
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.wd-copy-email:hover {
  border-color: var(--wd-blue);
  color: var(--wd-blue);
}

.wd-mail-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

.wd-topic {
  margin: 0;
  width: 100%;
  min-height: 42px;
  background: var(--wd-soft);
  color: var(--wd-ink);
  border: 1px solid var(--wd-line);
  border-radius: 10px;
  padding-inline: 12px;
  font: 500 13.5px/1.4 inherit;
}

.wd-contact a.wd-mail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  background: #ffffff;
  color: var(--wd-blue);
  border: 1px solid var(--wd-blue);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}

.wd-contact a.wd-mail-btn:hover {
  background: var(--wd-blue);
  color: #ffffff;
}


/* Modern Light Footer */
.wd-footer {
  background: var(--wd-soft);
  color: var(--wd-muted);
  border-top: 1px solid var(--wd-line);
  font-size: 12.5px;
}

.wd-footer .wd-frame {
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-block: 26px;
}

.wd-footer strong {
  color: var(--wd-ink);
  font-weight: 800;
}

.wd-footer a:hover {
  color: var(--wd-blue);
}

.wd-footer a:first-of-type {
  margin-left: auto;
}

.wd-footer img {
  vertical-align: middle;
  margin-right: 4px;
}

/* Cross-Page Alignment (education / skills / legacy x-dc pages) */
.wd-site .wrap {
  max-width: var(--wd-measure);
}

.wd-site .hero,
.wd-site .library-hero,
.wd-site [data-screen-label] > .wd-mast + section {
  background:
    radial-gradient(ellipse 65% 55% at 50% 0%, rgba(37, 99, 235, 0.09), transparent 70%),
    linear-gradient(180deg, #f3f5fa 0%, #fcfcfd 100%) !important;
  border-bottom: 1px solid var(--wd-line) !important;
}

.wd-site .hero-copy h1,
.wd-site .library-hero h1,
.wd-site [data-screen-label] h1 {
  font-size: clamp(32px, 4.2vw, 56px) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em !important;
}

.wd-site [data-screen-label] > section > div[style*="max-width:1280px"] {
  max-width: var(--wd-measure) !important;
  box-sizing: border-box;
}

.wd-site .section-heading h2,
.wd-site .skill-about h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
}

.wd-site .eyebrow.pale {
  color: #bfdbfe;
}

.wd-site #filter {
  border-radius: 12px;
}

.wd-site .skill-tile {
  padding: 20px 16px;
}

.wd-site .skill-tile:hover {
  background: var(--wd-tint);
}

@media (max-width: 1020px) {
  .wd-nav,
  .wd-tab-line {
    display: none;
  }
  .wd-sw-tab[aria-selected="true"] {
    box-shadow: inset 0 -2.5px 0 var(--wd-blue);
  }
  .wd-menu {
    display: block;
  }
  .wd-top {
    gap: 12px;
    min-height: 62px;
  }
  .wd-sw-tabs,
  .wd-cran-grid,
  .wd-personas,
  .wd-trust-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .wd-contact-channels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .wd-proof,
  .wd-irt-split,
  .wd-skill-cards,
  .wd-service-grid,
  .wd-steps,
  .wd-site .services-pair {
    grid-template-columns: 1fr;
  }
  .wd-site .services-pair > a + a {
    border-left: 1px solid var(--wd-line);
  }
  .wd-sub .wd-frame {
    gap: 0 16px;
  }
  .wd-sub b {
    width: 100%;
    padding-top: 9px;
  }
  .wd-sub a {
    min-height: 40px;
  }
  .wd-top .wd-cta {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }
  .wd-menu summary,
  .wd-lang {
    font-size: 12.5px;
  }
  .wd-footer a:first-of-type {
    margin-left: 0;
  }
  .wd-footer .wd-frame {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .wd-sw-tabs,
  .wd-cran-grid,
  .wd-personas,
  .wd-trust-grid {
    grid-template-columns: 1fr;
  }
  .wd-top {
    gap: 8px;
  }
  .wd-brand span {
    font-size: 14px;
  }
  .wd-brand small {
    font-size: 10px;
  }
  .wd-brand img {
    width: 26px;
    height: 31px;
  }
  .wd-wecom-layout {
    flex-direction: column;
    align-items: flex-start;
  }
  .wd-mail-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .wd-mast > .wd-top {
    padding-inline: 10px !important;
    gap: 6px;
  }
  .wd-top .wd-brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 5px;
  }
  .wd-brand small {
    max-width: 11ch;
    overflow-wrap: anywhere;
  }
  .wd-top .wd-lang, .wd-top .wd-cta, .wd-menu summary {
    padding-inline: 7px;
  }
}

@media print {
  .wd-mast,
  .wd-sub,
  .wd-footer,
  .wd-contact,
  .wd-contact-wrap {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  .wd-site * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .wd-js-motion [data-wd-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Shared controls and surfaces on the public site. */
.wd-lang { justify-content:center; min-width:36px; font:20px/1 "Apple Color Emoji","Segoe UI Emoji",sans-serif; }
.wd-qr-dialog { box-sizing:border-box; width:min(360px, calc(100vw - 32px)); max-height:90vh; overflow:auto; padding:24px; border:1px solid #d8deea; border-radius:18px; color:#17223b; background:white; text-align:center; box-shadow:0 18px 60px #101a3040; }
.wd-qr-dialog::backdrop { background:rgba(15,23,42,.65); }
.wd-qr-dialog h2 { margin:0 0 14px; font-size:20px; }
.wd-qr-dialog img { display:block; width:min(100%,280px); height:auto; margin:auto; }
.wd-qr-dialog button { display:block; width:100%; min-height:44px; margin-top:16px; border:0; border-radius:10px; background:#254dc4; color:white; cursor:pointer; font-family:inherit; font-size:16px; font-weight:600; }
body:has(.wd-qr-dialog[open]) { overflow:hidden; }
.wd-site .wd-wecom-qr { cursor:zoom-in; }
.wd-site .wd-chart { background:#f8fafc; }
@media screen {
  .wd-site [data-screen-label] :is(a,button,input,select)[style*="border:"] { border-radius:10px; }
  .wd-site [data-screen-label] :is(div,details,article)[style*="border:1px"] { border-radius:14px; border-color:var(--wd-line)!important; }
  .wd-site [data-screen-label] span[style*="border:1px"] { border-radius:999px; border-color:var(--wd-line)!important; }
  .wd-pipeline > a { background:white; color:var(--wd-ink)!important; border-color:var(--wd-line)!important; box-shadow:var(--wd-shadow-sm); }
  .wd-pipeline > div { background:var(--wd-soft)!important; }
  .wd-site [data-item] { border-radius:8px; }
  .wd-education-page main :is(.button,.pick,.staff-picks button,.segmented button,.analysis-menu button,.dossier-picker button,.source,.scene-links a,select,input[type=search]), .wd-skills-page main :is(button,select,input[type=search]) { border-radius:10px; }
  .wd-education-page main :is(.panel,.report,.staff-desk,.device-grid,.dossier-page), .wd-skills-page #filter { border:1px solid var(--wd-line); border-radius:16px; box-shadow:var(--wd-shadow-sm); }
  .wd-education-page main :is(.button.primary,.button.bright,.staff-picks button[aria-pressed=true],.segmented button[aria-pressed=true],.pick[aria-pressed=true]) { background:var(--wd-grad); border-color:transparent; color:white; }
  .wd-skills-page #results { gap:12px; border:0; }
  .wd-skills-page .skill-tile { border:1px solid var(--wd-line); border-radius:14px; background:white; }
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  :is(.wd-persona-card,.wd-service-grid article,.wd-packages a,.services-pair>a,.wd-trust-card,.wd-steps article,.wd-pipeline>a,.skill-tile,.dossier-picker button) { transition:transform .19s ease-out, box-shadow .19s ease-out; }
  :is(.wd-persona-card,.wd-service-grid article,.wd-packages a,.services-pair>a,.wd-trust-card,.wd-steps article,.wd-pipeline>a,.skill-tile,.dossier-picker button):is(:hover,:focus-within) { transform:translateY(-3px); box-shadow:0 10px 24px #16244515; }
}

.wd-site .wd-lang img { display:block; width:23px; height:auto; border-radius:2px; }
.wd-site .wd-lang { padding-inline:7px; }
.wd-site .hero .hero-copy .eyebrow.pale { color:#1d4ed8; }
.wd-site .wd-contact .wd-email {color:#17233b;}
.wd-site .wd-channel, .wd-site .wd-mail-row > * {min-width:0;}
.wd-site .wd-callout { background:var(--wd-tint)!important; border:1px solid #cbdafa; border-left:3px solid var(--wd-blue); border-radius:12px; }
.wd-site .wd-callout a {color:#1d4ed8!important; border-bottom:0!important; text-decoration:underline!important; text-underline-offset:3px;}
.wd-site .wd-pipeline > div { background:var(--wd-tint)!important; color:#23468d!important; border:1px solid #cbdafa!important; }
.wd-site [data-paths]>div { gap:16px; padding:24px clamp(20px,4vw,48px); box-sizing:border-box; }
.wd-site [data-paths]>div>a, .wd-site [data-mcard] { border:1px solid var(--wd-line)!important; background:white; border-radius:16px; box-shadow:var(--wd-shadow-sm); }
.wd-site [data-paths]>div>a {padding:clamp(18px,2vw,28px)!important;}
.wd-site [data-paths]>div>a:hover {background:var(--wd-tint)!important;}
.wd-site [data-mcard] {overflow:hidden;}
