/*
 * Winseety Enterprise Design System
 * Version: 1.0.3
 * Scope: shared visual foundation for website pages and components
 * Naming: --ws-* tokens, .ws-* components/utilities
 */

:root {
  color-scheme: light;

  /* Brand and neutral palettes */
  --ws-color-brand-50: #f3f8fb;
  --ws-color-brand-100: #e4f0f6;
  --ws-color-brand-200: #c9dfeb;
  --ws-color-brand-300: #9fc6d9;
  --ws-color-brand-400: #6fa8c2;
  --ws-color-brand-500: #4389aa;
  --ws-color-brand-600: #2b6f94;
  --ws-color-brand-700: #1c5a82;
  --ws-color-brand-800: #174966;
  --ws-color-brand-900: #123f5b;
  --ws-color-brand-950: #09283d;

  --ws-color-neutral-0: #ffffff;
  --ws-color-neutral-50: #f8fafc;
  --ws-color-neutral-100: #f1f5f9;
  --ws-color-neutral-200: #e2e8f0;
  --ws-color-neutral-300: #cbd5e1;
  --ws-color-neutral-400: #94a3b8;
  --ws-color-neutral-500: #64748b;
  --ws-color-neutral-600: #475569;
  --ws-color-neutral-700: #334155;
  --ws-color-neutral-800: #1e293b;
  --ws-color-neutral-900: #0f172a;
  --ws-color-neutral-950: #020617;

  --ws-color-success-50: #ecfdf5;
  --ws-color-success-600: #059669;
  --ws-color-warning-50: #fffbeb;
  --ws-color-warning-600: #d97706;
  --ws-color-danger-50: #fef2f2;
  --ws-color-danger-600: #dc2626;
  --ws-color-info-50: #eff6ff;
  --ws-color-info-600: #2563eb;

  /* Semantic colors: components should use these rather than palette values. */
  --ws-color-primary: var(--ws-color-brand-700);
  --ws-color-primary-hover: var(--ws-color-brand-800);
  --ws-color-primary-active: var(--ws-color-brand-900);
  --ws-color-primary-soft: var(--ws-color-brand-50);
  --ws-color-primary-contrast: var(--ws-color-neutral-0);
  --ws-color-text: var(--ws-color-neutral-900);
  --ws-color-text-secondary: var(--ws-color-neutral-600);
  --ws-color-text-tertiary: var(--ws-color-neutral-500);
  --ws-color-text-disabled: var(--ws-color-neutral-400);
  --ws-color-heading: var(--ws-color-neutral-950);
  --ws-color-link: var(--ws-color-brand-700);
  --ws-color-link-hover: var(--ws-color-brand-900);
  --ws-color-background: #f6f8fb;
  --ws-color-surface: var(--ws-color-neutral-0);
  --ws-color-surface-subtle: var(--ws-color-neutral-50);
  --ws-color-surface-muted: var(--ws-color-neutral-100);
  --ws-color-border: var(--ws-color-neutral-200);
  --ws-color-border-strong: var(--ws-color-neutral-300);
  --ws-color-focus: var(--ws-color-info-600);
  --ws-color-overlay: rgba(2, 6, 23, .72);

  /* Typography: px tokens are intentional for compatibility with the legacy site's fluid root rem scale. Browser zoom remains fully supported. */
  --ws-font-sans: Inter, "PingFang SC", "HarmonyOS Sans SC", "HarmonyOS Sans", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  --ws-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --ws-font-size-12: 12px;
  --ws-font-size-13: 13px;
  --ws-font-size-14: 14px;
  --ws-font-size-16: 16px;
  --ws-font-size-18: 18px;
  --ws-font-size-20: 20px;
  --ws-font-size-24: 24px;
  --ws-font-size-30: 30px;
  --ws-font-size-36: 36px;
  --ws-font-size-48: 48px;
  --ws-font-size-60: 60px;
  --ws-font-size-72: 72px;
  --ws-font-weight-regular: 400;
  --ws-font-weight-medium: 500;
  --ws-font-weight-semibold: 600;
  --ws-font-weight-bold: 700;
  --ws-font-weight-heavy: 800;
  --ws-line-height-tight: 1.15;
  --ws-line-height-heading: 1.25;
  --ws-line-height-body: 1.7;
  --ws-line-height-reading: 1.95;
  --ws-letter-spacing-tight: -.03em;
  --ws-letter-spacing-normal: 0;
  --ws-letter-spacing-wide: .08em;
  --ws-letter-spacing-caps: .14em;

  /* Spacing: 4px base grid */
  --ws-space-0: 0;
  --ws-space-1: 4px;
  --ws-space-2: 8px;
  --ws-space-3: 12px;
  --ws-space-4: 16px;
  --ws-space-5: 20px;
  --ws-space-6: 24px;
  --ws-space-7: 28px;
  --ws-space-8: 32px;
  --ws-space-10: 40px;
  --ws-space-12: 48px;
  --ws-space-14: 56px;
  --ws-space-16: 64px;
  --ws-space-20: 80px;
  --ws-space-24: 96px;
  --ws-space-28: 112px;
  --ws-space-32: 128px;

  /* Layout */
  --ws-container-sm: 640px;
  --ws-container-md: 768px;
  --ws-container-lg: 1024px;
  --ws-container-xl: 1160px;
  --ws-container-2xl: 1280px;
  --ws-reading-width: 820px;
  --ws-page-gutter: clamp(16px, 3vw, 32px);
  --ws-section-space: clamp(64px, 8vw, 120px);

  /* Borders and radii */
  --ws-border-width: 1px;
  --ws-border-width-strong: 2px;
  --ws-radius-none: 0;
  --ws-radius-sm: 6px;
  --ws-radius-md: 8px;
  --ws-radius-lg: 12px;
  --ws-radius-xl: 16px;
  --ws-radius-2xl: 24px;
  --ws-radius-full: 999px;

  /* Shadows */
  --ws-shadow-none: none;
  --ws-shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
  --ws-shadow-sm: 0 6px 18px rgba(15, 23, 42, .06);
  --ws-shadow-md: 0 12px 32px rgba(15, 23, 42, .08);
  --ws-shadow-lg: 0 20px 55px rgba(15, 23, 42, .10);
  --ws-shadow-xl: 0 30px 80px rgba(15, 23, 42, .14);
  --ws-shadow-focus: 0 0 0 3px rgba(37, 99, 235, .24);

  /* Motion */
  --ws-duration-instant: 80ms;
  --ws-duration-fast: 160ms;
  --ws-duration-normal: 240ms;
  --ws-duration-slow: 400ms;
  --ws-ease-standard: cubic-bezier(.2, 0, 0, 1);
  --ws-ease-enter: cubic-bezier(.16, 1, .3, 1);
  --ws-ease-exit: cubic-bezier(.7, 0, .84, 0);

  /* Component dimensions */
  --ws-control-height-sm: 36px;
  --ws-control-height-md: 44px;
  --ws-control-height-lg: 52px;
  --ws-icon-size-sm: 16px;
  --ws-icon-size-md: 20px;
  --ws-icon-size-lg: 24px;
  --ws-icon-stroke: 1.75;

  /* Layering */
  --ws-z-base: 1;
  --ws-z-sticky: 100;
  --ws-z-dropdown: 500;
  --ws-z-overlay: 1000;
  --ws-z-modal: 1100;
  --ws-z-toast: 1200;
}

/*
 * Opt-in foundation.
 * .ws-scope is intentionally non-visual so a legacy page can adopt the system
 * component by component without changing its existing header, footer or CMS widgets.
 */
.ws-scope :where([class^="ws-"], [class*=" ws-"]),
.ws-scope :where([class^="ws-"], [class*=" ws-"]) *,
.ws-scope :where([class^="ws-"], [class*=" ws-"])::before,
.ws-scope :where([class^="ws-"], [class*=" ws-"])::after,
.ws-scope :where([class^="ws-"], [class*=" ws-"]) *::before,
.ws-scope :where([class^="ws-"], [class*=" ws-"]) *::after {
  box-sizing: border-box;
}

.ws-surface {
  color: var(--ws-color-text);
  background: var(--ws-color-surface);
  font-family: var(--ws-font-sans);
  font-size: var(--ws-font-size-16);
  line-height: var(--ws-line-height-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ws-scope :where(.ws-button, .ws-input, .ws-select, .ws-textarea, .ws-check, .ws-skip-link):focus-visible,
.ws-scope .ws-link:focus-visible {
  outline: 2px solid var(--ws-color-focus);
  outline-offset: 3px;
  box-shadow: var(--ws-shadow-focus);
}

.ws-scope :where(.ws-button, .ws-input, .ws-select, .ws-textarea) {
  font: inherit;
}

.ws-link {
  color: var(--ws-color-link);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

.ws-link:hover {
  color: var(--ws-color-link-hover);
}

/* Layout primitives */
.ws-container {
  width: min(100% - (var(--ws-page-gutter) * 2), var(--ws-container-xl));
  margin-inline: auto;
}

.ws-container--reading { max-width: var(--ws-reading-width); }
.ws-container--wide { max-width: var(--ws-container-2xl); }
.ws-section { padding-block: var(--ws-section-space); }
.ws-section--compact { padding-block: clamp(40px, 5vw, 72px); }
.ws-stack { display: flex; flex-direction: column; gap: var(--ws-stack-gap, var(--ws-space-6)); }
.ws-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ws-cluster-gap, var(--ws-space-3)); }
.ws-grid { display: grid; grid-template-columns: repeat(var(--ws-grid-columns, 3), minmax(0, 1fr)); gap: var(--ws-grid-gap, var(--ws-space-6)); }

/* Typography utilities */
.ws-display,
.ws-heading-1,
.ws-heading-2,
.ws-heading-3,
.ws-heading-4 {
  margin: 0;
  color: var(--ws-color-heading);
  font-weight: var(--ws-font-weight-bold);
  letter-spacing: var(--ws-letter-spacing-tight);
}

.ws-display { font-size: clamp(48px, 7vw, var(--ws-font-size-72)); line-height: 1.04; }
.ws-heading-1 { font-size: clamp(36px, 5vw, var(--ws-font-size-60)); line-height: var(--ws-line-height-tight); }
.ws-heading-2 { font-size: clamp(30px, 4vw, var(--ws-font-size-48)); line-height: 1.18; }
.ws-heading-3 { font-size: clamp(24px, 3vw, var(--ws-font-size-36)); line-height: var(--ws-line-height-heading); }
.ws-heading-4 { font-size: var(--ws-font-size-24); line-height: var(--ws-line-height-heading); }
.ws-lead { color: var(--ws-color-text-secondary); font-size: clamp(18px, 2vw, var(--ws-font-size-20)); line-height: 1.8; }
.ws-body { color: var(--ws-color-text); font-size: var(--ws-font-size-16); line-height: var(--ws-line-height-body); }
.ws-body--large { font-size: var(--ws-font-size-18); line-height: var(--ws-line-height-reading); }
.ws-caption { color: var(--ws-color-text-tertiary); font-size: var(--ws-font-size-13); line-height: 1.5; }
.ws-eyebrow { color: var(--ws-color-primary); font-size: var(--ws-font-size-12); font-weight: var(--ws-font-weight-heavy); letter-spacing: var(--ws-letter-spacing-caps); line-height: 1.4; text-transform: uppercase; }
.ws-text-secondary { color: var(--ws-color-text-secondary); }
.ws-text-tertiary { color: var(--ws-color-text-tertiary); }
.ws-text-center { text-align: center; }

/* Buttons */
.ws-button {
  --ws-button-bg: transparent;
  --ws-button-color: var(--ws-color-text);
  --ws-button-border: var(--ws-color-border-strong);
  --ws-button-shadow: none;
  display: inline-flex;
  min-height: var(--ws-control-height-md);
  align-items: center;
  justify-content: center;
  gap: var(--ws-space-2);
  padding: 0 var(--ws-space-5);
  border: var(--ws-border-width) solid var(--ws-button-border);
  border-radius: var(--ws-radius-full);
  color: var(--ws-button-color);
  background: var(--ws-button-bg);
  box-shadow: var(--ws-button-shadow);
  font-size: var(--ws-font-size-14);
  font-weight: var(--ws-font-weight-semibold);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: transform var(--ws-duration-normal) var(--ws-ease-enter), background-color var(--ws-duration-fast) var(--ws-ease-standard), border-color var(--ws-duration-fast) var(--ws-ease-standard), color var(--ws-duration-fast) var(--ws-ease-standard), box-shadow var(--ws-duration-normal) var(--ws-ease-standard);
}

.ws-button:hover { color: var(--ws-button-color); transform: translateY(-2px); box-shadow: var(--ws-shadow-sm); }
.ws-button:active { transform: translateY(0); }
.ws-button--primary { --ws-button-bg: var(--ws-color-primary); --ws-button-color: var(--ws-color-primary-contrast); --ws-button-border: var(--ws-color-primary); --ws-button-shadow: 0 8px 20px rgba(28, 90, 130, .18); }
.ws-button--primary:hover { --ws-button-bg: var(--ws-color-primary-hover); --ws-button-border: var(--ws-color-primary-hover); }
.ws-button--secondary { --ws-button-bg: var(--ws-color-surface); --ws-button-color: var(--ws-color-primary); --ws-button-border: var(--ws-color-border-strong); }
.ws-button--secondary:hover { --ws-button-bg: var(--ws-color-primary-soft); --ws-button-border: var(--ws-color-brand-300); }
.ws-button--ghost { --ws-button-bg: transparent; --ws-button-color: var(--ws-color-text-secondary); --ws-button-border: transparent; }
.ws-button--ghost:hover { --ws-button-bg: var(--ws-color-surface-muted); --ws-button-color: var(--ws-color-text); }
.ws-button--danger { --ws-button-bg: var(--ws-color-danger-600); --ws-button-color: #fff; --ws-button-border: var(--ws-color-danger-600); }
.ws-button--sm { min-height: var(--ws-control-height-sm); padding-inline: var(--ws-space-4); font-size: var(--ws-font-size-13); }
.ws-button--lg { min-height: var(--ws-control-height-lg); padding-inline: var(--ws-space-7); font-size: var(--ws-font-size-16); }
.ws-button--square { width: var(--ws-control-height-md); padding: 0; border-radius: var(--ws-radius-lg); }
.ws-button--block { width: 100%; }
.ws-button[disabled], .ws-button[aria-disabled="true"] { opacity: .48; transform: none; box-shadow: none; cursor: not-allowed; pointer-events: none; }
.ws-button.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.ws-button.is-loading::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; color: var(--ws-color-primary-contrast); animation: ws-spin .7s linear infinite; }

/* Cards */
.ws-card {
  overflow: hidden;
  border: var(--ws-border-width) solid var(--ws-color-border);
  border-radius: var(--ws-radius-xl);
  background: var(--ws-color-surface);
  box-shadow: var(--ws-shadow-xs);
}

.ws-card--elevated { border-color: transparent; box-shadow: var(--ws-shadow-lg); }
.ws-card--subtle { background: var(--ws-color-surface-subtle); box-shadow: none; }
.ws-card--interactive { transition: transform var(--ws-duration-normal) var(--ws-ease-enter), border-color var(--ws-duration-normal) var(--ws-ease-standard), box-shadow var(--ws-duration-normal) var(--ws-ease-standard); }
.ws-card--interactive:hover { transform: translateY(-4px); border-color: var(--ws-color-brand-200); box-shadow: var(--ws-shadow-md); }
.ws-card__media { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ws-color-surface-muted); }
.ws-card__header { padding: var(--ws-space-6) var(--ws-space-6) 0; }
.ws-card__body { padding: var(--ws-space-6); }
.ws-card__footer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ws-space-3); padding: 0 var(--ws-space-6) var(--ws-space-6); }

/* Tags, badges and status */
.ws-tag,
.ws-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  gap: var(--ws-space-1);
  padding: 0 var(--ws-space-3);
  border: var(--ws-border-width) solid var(--ws-color-border);
  border-radius: var(--ws-radius-full);
  color: var(--ws-color-text-secondary);
  background: var(--ws-color-surface);
  font-size: var(--ws-font-size-12);
  font-weight: var(--ws-font-weight-medium);
  line-height: 1;
}

.ws-badge--brand { border-color: var(--ws-color-brand-200); color: var(--ws-color-primary); background: var(--ws-color-primary-soft); }
.ws-badge--success { border-color: transparent; color: var(--ws-color-success-600); background: var(--ws-color-success-50); }
.ws-badge--warning { border-color: transparent; color: var(--ws-color-warning-600); background: var(--ws-color-warning-50); }
.ws-badge--danger { border-color: transparent; color: var(--ws-color-danger-600); background: var(--ws-color-danger-50); }

/* Forms */
.ws-form { display: grid; gap: var(--ws-space-5); }
.ws-field { display: grid; gap: var(--ws-space-2); }
.ws-label { color: var(--ws-color-text); font-size: var(--ws-font-size-14); font-weight: var(--ws-font-weight-semibold); line-height: 1.4; }
.ws-label__required { color: var(--ws-color-danger-600); }
.ws-input,
.ws-select,
.ws-textarea {
  width: 100%;
  min-height: var(--ws-control-height-md);
  padding: 0 var(--ws-space-4);
  border: var(--ws-border-width) solid var(--ws-color-border-strong);
  border-radius: var(--ws-radius-lg);
  color: var(--ws-color-text);
  background: var(--ws-color-surface);
  box-shadow: var(--ws-shadow-xs);
  font-size: var(--ws-font-size-14);
  line-height: 1.5;
  transition: border-color var(--ws-duration-fast) var(--ws-ease-standard), box-shadow var(--ws-duration-fast) var(--ws-ease-standard), background-color var(--ws-duration-fast) var(--ws-ease-standard);
}

.ws-textarea { min-height: 120px; padding-block: var(--ws-space-3); resize: vertical; }
.ws-input::placeholder, .ws-textarea::placeholder { color: var(--ws-color-text-disabled); }
.ws-input:hover, .ws-select:hover, .ws-textarea:hover { border-color: var(--ws-color-neutral-400); }
.ws-input:focus, .ws-select:focus, .ws-textarea:focus { outline: 0; border-color: var(--ws-color-focus); box-shadow: var(--ws-shadow-focus); }
.ws-input[disabled], .ws-select[disabled], .ws-textarea[disabled] { color: var(--ws-color-text-disabled); background: var(--ws-color-surface-muted); cursor: not-allowed; }
.ws-field.is-error :where(.ws-input, .ws-select, .ws-textarea), :where(.ws-input, .ws-select, .ws-textarea)[aria-invalid="true"] { border-color: var(--ws-color-danger-600); }
.ws-help, .ws-error { margin: 0; color: var(--ws-color-text-tertiary); font-size: var(--ws-font-size-12); line-height: 1.5; }
.ws-error { color: var(--ws-color-danger-600); }
.ws-check { display: inline-flex; align-items: flex-start; gap: var(--ws-space-2); color: var(--ws-color-text-secondary); font-size: var(--ws-font-size-14); cursor: pointer; }
.ws-check input { width: 16px; height: 16px; margin-top: .2em; accent-color: var(--ws-color-primary); }
.ws-form-actions { display: flex; flex-wrap: wrap; gap: var(--ws-space-3); padding-top: var(--ws-space-2); }

/* Tables */
.ws-table-wrap { width: 100%; overflow-x: auto; border: var(--ws-border-width) solid var(--ws-color-border); border-radius: var(--ws-radius-xl); background: var(--ws-color-surface); box-shadow: var(--ws-shadow-xs); -webkit-overflow-scrolling: touch; }
.ws-table { width: 100%; border-collapse: collapse; color: var(--ws-color-text); font-size: var(--ws-font-size-14); line-height: 1.6; }
.ws-table caption { padding: var(--ws-space-4) var(--ws-space-5); color: var(--ws-color-text-secondary); font-weight: var(--ws-font-weight-semibold); text-align: left; }
.ws-table th, .ws-table td { padding: var(--ws-space-4) var(--ws-space-5); border-bottom: var(--ws-border-width) solid var(--ws-color-border); text-align: left; vertical-align: middle; }
.ws-table th { color: var(--ws-color-text-secondary); background: var(--ws-color-surface-subtle); font-size: var(--ws-font-size-12); font-weight: var(--ws-font-weight-bold); letter-spacing: .04em; text-transform: uppercase; }
.ws-table tbody tr:last-child td { border-bottom: 0; }
.ws-table tbody tr { transition: background-color var(--ws-duration-fast) var(--ws-ease-standard); }
.ws-table tbody tr:hover { background: var(--ws-color-primary-soft); }
.ws-table--striped tbody tr:nth-child(even) { background: var(--ws-color-surface-subtle); }
.ws-table .is-numeric { font-variant-numeric: tabular-nums; text-align: right; }

/* Icons: designed for inline SVG (Lucide/Heroicons-style, currentColor). */
.ws-icon { display: inline-block; width: var(--ws-icon-size-md); height: var(--ws-icon-size-md); flex: 0 0 auto; color: currentColor; fill: none; stroke: currentColor; stroke-width: var(--ws-icon-stroke); stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }
.ws-icon--sm { width: var(--ws-icon-size-sm); height: var(--ws-icon-size-sm); }
.ws-icon--lg { width: var(--ws-icon-size-lg); height: var(--ws-icon-size-lg); }
.ws-icon--filled { fill: currentColor; stroke: none; }
.ws-icon-box { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--ws-radius-lg); color: var(--ws-color-primary); background: var(--ws-color-primary-soft); }

/* Alerts and content callouts */
.ws-alert { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--ws-space-3); padding: var(--ws-space-4) var(--ws-space-5); border: var(--ws-border-width) solid var(--ws-color-brand-200); border-radius: var(--ws-radius-xl); color: var(--ws-color-text-secondary); background: var(--ws-color-primary-soft); }
.ws-alert--success { border-color: #a7f3d0; background: var(--ws-color-success-50); }
.ws-alert--warning { border-color: #fde68a; background: var(--ws-color-warning-50); }
.ws-alert--danger { border-color: #fecaca; background: var(--ws-color-danger-50); }
.ws-alert__title { margin: 0 0 var(--ws-space-1); color: var(--ws-color-heading); font-weight: var(--ws-font-weight-semibold); }
.ws-alert__body { margin: 0; }

/* Dividers and decorative surfaces */
.ws-divider { height: var(--ws-border-width); margin: var(--ws-space-6) 0; border: 0; background: var(--ws-color-border); }
.ws-surface { border-radius: var(--ws-radius-xl); background: var(--ws-color-surface); }
.ws-surface--muted { background: var(--ws-color-surface-muted); }

/* Motion utilities */
@keyframes ws-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ws-slide-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ws-scale-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: scale(1); } }
@keyframes ws-spin { to { transform: rotate(360deg); } }
@keyframes ws-pulse { 50% { opacity: .55; } }
.ws-animate-fade { animation: ws-fade-in var(--ws-duration-slow) var(--ws-ease-enter) both; }
.ws-animate-up { animation: ws-slide-up var(--ws-duration-slow) var(--ws-ease-enter) both; }
.ws-animate-scale { animation: ws-scale-in var(--ws-duration-normal) var(--ws-ease-enter) both; }
.ws-animate-pulse { animation: ws-pulse 1.5s var(--ws-ease-standard) infinite; }
.ws-transition { transition: color var(--ws-duration-normal) var(--ws-ease-standard), background-color var(--ws-duration-normal) var(--ws-ease-standard), border-color var(--ws-duration-normal) var(--ws-ease-standard), box-shadow var(--ws-duration-normal) var(--ws-ease-standard), transform var(--ws-duration-normal) var(--ws-ease-enter); }

/* Accessibility */
.ws-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.ws-skip-link { position: fixed; top: var(--ws-space-3); left: var(--ws-space-3); z-index: var(--ws-z-toast); padding: var(--ws-space-3) var(--ws-space-4); border-radius: var(--ws-radius-lg); color: #fff; background: var(--ws-color-primary); box-shadow: var(--ws-shadow-md); transform: translateY(-160%); transition: transform var(--ws-duration-fast) var(--ws-ease-enter); }
.ws-skip-link:focus { transform: translateY(0); }

@media (max-width: 860px) {
  .ws-grid { --ws-grid-columns: 2; }
}

@media (max-width: 640px) {
  :root {
    --ws-page-gutter: 16px;
    --ws-section-space: 64px;
  }

  .ws-grid { --ws-grid-columns: 1; }
  .ws-button--mobile-block { width: 100%; }
  .ws-card__header { padding: var(--ws-space-5) var(--ws-space-5) 0; }
  .ws-card__body { padding: var(--ws-space-5); }
  .ws-card__footer { padding: 0 var(--ws-space-5) var(--ws-space-5); }
  .ws-form-actions { flex-direction: column; }
  .ws-form-actions .ws-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ws-scope :where([class^="ws-"], [class*=" ws-"]),
  .ws-scope :where([class^="ws-"], [class*=" ws-"]) *,
  .ws-scope :where([class^="ws-"], [class*=" ws-"])::before,
  .ws-scope :where([class^="ws-"], [class*=" ws-"])::after,
  .ws-scope :where([class^="ws-"], [class*=" ws-"]) *::before,
  .ws-scope :where([class^="ws-"], [class*=" ws-"]) *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .ws-scope { color: #000; background: #fff; }
  .ws-button, .ws-skip-link { display: none !important; }
  .ws-card { border-color: #ccc; box-shadow: none; break-inside: avoid; }
}


/* --------------------------------------------------------------------------
 * Shared site shell: Header / Footer
 * The selectors are intentionally scoped to migrated pages so legacy modules
 * outside the Design System remain untouched until their own migration.
 * -------------------------------------------------------------------------- */
.ws-scope :where(.ws-site-header, .th_header) {
  color: var(--ws-color-text);
  font-family: var(--ws-font-sans);
}
.ws-scope :where(.ws-site-header, .th_header) h1 { margin: 0; }
.ws-scope :where(.ws-site-header, .th_header) img { display: block; }
.ws-scope :where(.ws-site-header, .th_header) :where(a, button):focus-visible,
.ws-scope :where(.ws-site-header-mobile, .header-wap) :where(a, button):focus-visible,
.ws-scope :where(.ws-site-footer, .th_footer) :where(a, button):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ws-color-focus) 36%, transparent);
  outline-offset: 3px;
}
.ws-scope :where(.ws-site-header-mobile, .header-wap) img { max-width: 160px; height: auto; }
.ws-scope :where(.ws-site-header, .th_header) .th_nav > ul,
.ws-scope :where(.ws-site-header-mobile, .header-wap) .toggle-Nav > ul { list-style: none; margin: 0; padding: 0; }
.ws-scope :where(.ws-site-header, .th_header) .th_nav > ul > li > a,
.ws-scope :where(.ws-site-header-mobile, .header-wap) .toggle-Nav > ul > li > a { text-decoration: none; }
.ws-scope :where(.ws-site-header, .th_header) .th_nav > ul > li.s_crt > a,
.ws-scope :where(.ws-site-header, .th_header) .th_nav > ul > li:hover > a,
.ws-scope :where(.ws-site-header-mobile, .header-wap) .toggle-Nav > ul > li.s_crt > a {
  color: var(--ws-color-primary) !important;
}
.ws-scope :where(.ws-site-header, .th_header) .th_nav dl,
.ws-scope :where(.ws-site-header-mobile, .header-wap) .toggle-Nav dl { margin: 0; padding: 0; }
.ws-scope :where(.ws-site-header, .th_header) .th_nav dl a,
.ws-scope :where(.ws-site-header-mobile, .header-wap) .toggle-Nav dl a { text-decoration: none; }
.ws-scope :where(.ws-site-footer, .th_footer) {
  color: rgba(255,255,255,.78);
  background: var(--ws-color-brand-950);
  font-family: var(--ws-font-sans);
}
.ws-scope :where(.ws-site-footer, .th_footer) .th_footer_con {
  width: min(var(--ws-container-xl), calc(100% - 2 * var(--ws-page-gutter)));
  margin: 0 auto;
}
.ws-scope :where(.ws-site-footer, .th_footer) :where(a, dt a) {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  transition: color var(--ws-duration-fast) var(--ws-ease-standard), opacity var(--ws-duration-fast) var(--ws-ease-standard);
}
.ws-scope :where(.ws-site-footer, .th_footer) :where(a, dt a):hover { color: #fff; }
.ws-scope :where(.ws-site-footer, .th_footer) .th_col-02 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--ws-space-8);
  float: none;
  width: 100%;
}
.ws-scope :where(.ws-site-footer, .th_footer) .th_col-02 dl { margin: 0; }
.ws-scope :where(.ws-site-footer, .th_footer) .th_col-02 dt { margin-bottom: var(--ws-space-4); }
.ws-scope :where(.ws-site-footer, .th_footer) .th_col-02 dt a { color: #fff; font-weight: var(--ws-font-weight-semibold); }
.ws-scope :where(.ws-site-footer, .th_footer) .th_col-02 dd { margin: 0 0 var(--ws-space-2); font-size: var(--ws-font-size-13); }
.ws-scope :where(.ws-site-footer, .th_footer) .th_col-03 { float: none; }
.ws-scope :where(.ws-site-footer, .th_footer) .th_col-03 .th_title a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--ws-space-4); border: 1px solid rgba(255,255,255,.22); border-radius: var(--ws-radius-full); }
.ws-scope :where(.ws-site-footer, .th_footer) .th_tt img { width: 112px; height: 112px; object-fit: contain; border-radius: var(--ws-radius-md); background: #fff; }
.ws-scope :where(.ws-site-footer, .th_footer) .th_copyright { border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.58); font-size: var(--ws-font-size-12); }
.ws-scope :where(.ws-site-footer, .th_footer) .th_copyright a { color: rgba(255,255,255,.72); }
.ws-scope :where(.ws-site-footer, .th_footer) > p,
.ws-scope :where(.ws-site-footer, .th_footer) .th_footer_top > p { color: rgba(255,255,255,.58); font-size: var(--ws-font-size-12); }
@media (max-width: 760px) {
  .ws-scope :where(.ws-site-footer, .th_footer) .th_col-02 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ws-space-6); }
  .ws-scope :where(.ws-site-footer, .th_footer) .th_col-03 { float: none; margin-top: var(--ws-space-8); }
}
@media (prefers-reduced-motion: reduce) {
  .ws-scope :where(.ws-site-header, .th_header, .ws-site-footer, .th_footer) * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
