/*
  WINDSUCKERS shared visual system
  Version: 2026-05-04 15:20 CEST · clean global header/footer
  Upload path: /_sub/assets/css/windsuckers-theme.css

  Purpose:
  - one shared UI language for www / sail / aok / log
  - shared header/footer/menu/pills
  - shared layout, grids, cards, metrics, chart boxes, notes
  - shared app components: forms, buttons, tabs, badges, tables, toolbars
*/

:root {
  --ws-bg: #f6f9fd;
  --ws-bg-2: #ffffff;
  --ws-card: #f3f8ff;
  --ws-card-2: #eef6ff;
  --ws-card-3: #ffffff;
  --ws-border: #d5e4f4;
  --ws-border-strong: #b9d0e8;

  --ws-navy: #071f55;
  --ws-navy-2: #0b2b68;
  --ws-blue: #0f4fa8;
  --ws-blue-deep: #073b7a;
  --ws-blue-soft: #eef6ff;
  --ws-blue-soft-2: #eaf4ff;
  --ws-blue-border: #c9def8;
  --ws-muted: #5d6f8d;
  --ws-muted-2: #8190a8;

  --ws-gold: #d7ad2f;
  --ws-gold-2: #c99d1f;

  --ws-green: #11a75c;
  --ws-amber: #d89419;
  --ws-red: #c74136;

  --ws-radius: 22px;
  --ws-radius-sm: 14px;
  --ws-radius-md: 18px;
  --ws-radius-lg: 34px;

  --ws-shadow: 0 14px 40px rgba(7, 31, 85, .08);
  --ws-shadow-soft: 0 8px 24px rgba(7, 31, 85, .06);

  --ws-max: 1180px;

  --ws-header-height: 70px;
  --ws-logo-size: 46px;
  --ws-logo-size-mobile: 42px;
  --ws-wordmark-size: 23px;
  --ws-wordmark-size-mobile: 22px;

  --ws-pill-radius: 13px;
  --ws-pill-padding-y: 10px;
  --ws-pill-padding-x: 15px;

  --ws-section-y: 28px;
  --ws-section-y-tight: 18px;

  --ws-card-padding: 22px;
  --ws-card-padding-mobile: 18px;

  --ws-control-height: 44px;
  --ws-control-radius: 13px;
  --ws-control-padding-x: 13px;

  --ws-footer-padding-y: 14px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ws-bg);
  color: var(--ws-navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

img,
svg,
canvas {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

/* ==========================================================================
   Page shell
   ========================================================================== */

.ws-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(215,173,47,.09), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, var(--ws-bg) 48%, #ffffff 100%);
}

.ws-main {
  width: 100%;
}

.ws-container {
  width: min(var(--ws-max), calc(100% - 32px));
  margin: 0 auto;
}

.ws-section {
  padding: var(--ws-section-y) 0;
}

.ws-section-tight {
  padding: var(--ws-section-y-tight) 0;
}

.ws-page-hero {
  padding: 42px 0 24px;
}

.ws-kicker {
  margin: 0 0 8px;
  color: var(--ws-gold-2);
  font-size: 13px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.ws-page-title {
  margin: 0;
  color: var(--ws-navy);
  font-size: clamp(38px, 7vw, 78px);
  line-height: .95;
  font-weight: 950;
  letter-spacing: -.045em;
}

.ws-page-lead {
  margin: 14px 0 0;
  max-width: 760px;
  color: #1b3569;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.35;
  font-weight: 650;
}

.ws-section-title {
  margin: 0 0 14px;
  color: var(--ws-navy);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: .02em;
  font-weight: 950;
  text-transform: uppercase;
}

.ws-section-subtitle {
  margin: -6px 0 18px;
  color: var(--ws-muted);
  font-weight: 650;
}

.ws-muted {
  color: var(--ws-muted);
}

/* ==========================================================================
   Shared header
   ========================================================================== */

.ws-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(213,228,244,.8);
}

.ws-header-inner {
  min-height: var(--ws-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.ws-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ws-logo {
  width: var(--ws-logo-size);
  height: var(--ws-logo-size);
  object-fit: contain;
  flex: 0 0 auto;
}

.ws-wordmark {
  color: var(--ws-gold);
  font-size: var(--ws-wordmark-size);
  font-weight: 950;
  letter-spacing: .012em;
  white-space: nowrap;
  -webkit-text-stroke: .35px rgba(7,31,85,.72);
  text-shadow:
    0 1px 0 rgba(7,31,85,.45),
    .6px 0 0 rgba(7,31,85,.28);
}

.ws-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
}


.ws-nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 15px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.ws-nav-pill:hover {
  transform: translateY(-1px);
}

.ws-nav-pill--active {
  color: #061c4b !important;
  background: linear-gradient(180deg, #e8c24b, var(--ws-gold));
  border-color: rgba(201,157,31,.52);
  box-shadow: 0 8px 18px rgba(215,173,47,.18);
}

.ws-nav-pill--inactive {
  color: var(--ws-navy) !important;
  background: rgba(238,246,255,.92);
  border-color: var(--ws-blue-border, var(--ws-border));
  box-shadow: none;
}

.ws-nav-pill--inactive:hover {
  background: #f6fbff;
  border-color: rgba(15,79,168,.28);
}

.ws-mobile-menu {
  display: none;
  position: relative;
}

.ws-mobile-menu summary {
  list-style: none;
  cursor: pointer;
  color: var(--ws-navy);
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
  padding: 8px;
}

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

.ws-mobile-menu-panel {
  position: absolute;
  right: 0;
  top: 48px;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-sm);
  box-shadow: var(--ws-shadow);
  padding: 10px;
}

.ws-mobile-menu-panel .ws-nav-pill {
  width: 100%;
  margin: 4px 0;
  text-align: center;
}

/* ===========================================================================
   Shared footer
   ========================================================================== */

.ws-footer-min {
  width: 100%;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(213,228,244,.9);
  background: rgba(255,255,255,.72);
  text-align: center;
}

.ws-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.ws-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  color: var(--ws-muted);
  font-size: 13px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .01em;
  white-space: nowrap;
  text-transform: lowercase;
}

.ws-footer-iconbox {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 17px;
  border: 1px solid rgba(93,111,141,.58);
  border-radius: 5px;
  background: rgba(238,246,255,.52);
  color: var(--ws-muted);
}

.ws-footer-icon-svg {
  width: 11px;
  height: 11px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ws-footer-separator {
  color: rgba(93,111,141,.62);
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  transform: translateY(-1px);
}

.ws-footer-link:hover {
  color: var(--ws-navy);
}

.ws-footer-link:hover .ws-footer-iconbox {
  color: var(--ws-navy);
  border-color: rgba(7,31,85,.55);
  background: rgba(238,246,255,.86);
}

/* ==========================================================================
   Grid system
   ========================================================================== */

.ws-grid {
  display: grid;
  gap: 18px;
}

.ws-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ws-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ws-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* legacy compatibility */
.ws-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ws-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* ==========================================================================
   Buttons and pills
   ========================================================================== */

.ws-btn,
.ws-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
  text-align: center;
  user-select: none;
}

.ws-btn:hover,
.ws-button:hover {
  transform: translateY(-1px);
}

.ws-btn:disabled,
.ws-button:disabled,
.ws-button[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.ws-btn-primary,
.ws-button--primary {
  background: linear-gradient(180deg, #e5bd43, var(--ws-gold));
  color: #061c4b;
  box-shadow: 0 10px 22px rgba(215,173,47,.22);
}

.ws-btn-secondary,
.ws-button--secondary {
  background: rgba(255,255,255,.82);
  color: var(--ws-navy);
  border-color: rgba(7,31,85,.35);
}

.ws-button--ghost {
  background: transparent;
  color: var(--ws-navy);
  border-color: transparent;
}

.ws-button--ghost:hover {
  background: rgba(238,245,255,.9);
  border-color: var(--ws-border);
}

.ws-button--danger {
  background: rgba(199,65,54,.08);
  color: var(--ws-red);
  border-color: rgba(199,65,54,.25);
}

.ws-button--danger:hover {
  background: rgba(199,65,54,.12);
  border-color: rgba(199,65,54,.38);
}

.ws-mini-btn,
.ws-button--small {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 14px;
}

.ws-button--block {
  width: 100%;
  display: flex;
}

.ws-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: var(--ws-pill-padding-y) var(--ws-pill-padding-x);
  border-radius: var(--ws-pill-radius);
  border: 1px solid transparent;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.ws-pill:hover {
  transform: translateY(-1px);
}

.ws-pill-gold {
  color: #061c4b !important;
  background: linear-gradient(180deg, #e5bd43, var(--ws-gold));
  border-color: rgba(201,157,31,.45);
  box-shadow: 0 10px 22px rgba(215,173,47,.16);
}

.ws-pill-blue {
  color: var(--ws-navy) !important;
  background: #eef5ff;
  border-color: var(--ws-border);
}

.ws-pill--active,
.ws-pill.is-active {
  outline: 2px solid rgba(7,31,85,.08);
}

/* Source toggles */

.ws-source-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--ws-border);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
}

.ws-source-toggle__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--ws-navy);
  font-weight: 850;
  cursor: pointer;
  border: 0;
  background: transparent;
}

.ws-source-toggle__item--active {
  background: #eef5ff;
  box-shadow: inset 0 0 0 1px var(--ws-border);
}

/* ==========================================================================
   Toolbar / actions / empty states
   ========================================================================== */

.ws-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
}

.ws-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.ws-empty-state {
  padding: 28px 22px;
  border-radius: var(--ws-radius);
  border: 1px dashed var(--ws-border-strong);
  background: rgba(255,255,255,.7);
  color: var(--ws-muted);
  font-weight: 750;
  text-align: center;
}

/* ==========================================================================
   App navigation / tabs
   ========================================================================== */

.ws-app-nav,
.ws-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 4px 0 10px;
  margin: 0 0 18px;
}

.ws-app-nav__item,
.ws-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid var(--ws-border);
  background: rgba(255,255,255,.82);
  color: var(--ws-navy);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.ws-app-nav__item--active,
.ws-tab--active {
  background: var(--ws-navy);
  color: #fff;
  border-color: var(--ws-navy);
  box-shadow: 0 10px 22px rgba(7,31,85,.16);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.ws-card {
  background: rgba(255,255,255,.85);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius);
  box-shadow: var(--ws-shadow-soft);
}

.ws-card--feature,
.ws-card--analysis,
.ws-card--note {
  padding: var(--ws-card-padding);
}

.ws-card--feature {
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(243,248,255,.94));
}

.ws-card--metric {
  padding: 18px;
  background: rgba(255,255,255,.88);
}

.ws-card--analysis {
  background: linear-gradient(180deg, #ffffff, #f4f9ff);
}

.ws-card--note {
  background: rgba(243,248,255,.9);
}

.ws-card__kicker {
  margin: 0 0 8px;
  color: var(--ws-gold-2);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ws-card__title {
  margin: 0;
  color: var(--ws-navy);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 950;
}

.ws-card__text {
  margin: 10px 0 0;
  color: #173160;
  font-size: 16px;
  font-weight: 600;
}

.ws-card__value {
  margin: 8px 0 0;
  color: var(--ws-navy);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.035em;
}

.ws-card__meta {
  margin: 8px 0 0;
  color: var(--ws-muted);
  font-size: 14px;
  font-weight: 750;
}

/* ==========================================================================
   Metrics / stats
   ========================================================================== */

.ws-stat {
  min-width: 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(213,228,244,.75);
}

.ws-stat__label {
  display: block;
  color: var(--ws-muted);
  font-size: 13px;
  font-weight: 850;
}

.ws-stat__value {
  display: inline-block;
  margin-top: 4px;
  color: var(--ws-navy);
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.025em;
}

.ws-stat__unit {
  color: var(--ws-muted);
  font-size: 13px;
  font-weight: 900;
}

.ws-stat__note {
  display: block;
  margin-top: 6px;
  color: var(--ws-muted);
  font-size: 13px;
  font-weight: 650;
}

/* Existing compact wind metric compatibility */

.ws-wind-card {
  padding: 20px;
}

.ws-wind-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid var(--ws-border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.ws-wind-title {
  margin: 0;
  color: var(--ws-navy);
  font-size: 26px;
  font-weight: 950;
}

.ws-status-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ws-muted);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.ws-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--ws-green);
  display: inline-block;
}

.ws-dot-stale {
  background: var(--ws-amber);
}

.ws-dot-none {
  background: var(--ws-muted-2);
}

.ws-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ws-metric {
  min-width: 0;
  padding: 10px 8px;
  border-radius: 16px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(213,228,244,.7);
  text-align: center;
}

.ws-metric-main {
  background: linear-gradient(180deg, #edf5ff, #e6f1ff);
  border-color: var(--ws-border-strong);
}

.ws-metric-label {
  display: block;
  margin-bottom: 5px;
  color: var(--ws-muted);
  font-size: 12px;
  font-weight: 850;
}

.ws-metric-value {
  display: block;
  color: var(--ws-navy);
  font-size: 21px;
  font-weight: 950;
  line-height: 1.05;
}

.ws-metric-unit {
  font-size: 12px;
  font-weight: 900;
}

.ws-metric-gust .ws-metric-value,
.ws-metric-gust .ws-metric-unit {
  color: var(--ws-red);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.ws-form {
  display: grid;
  gap: 16px;
}

.ws-form-grid {
  display: grid;
  gap: 14px;
}

.ws-form-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ws-form-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ws-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.ws-label {
  color: var(--ws-navy);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
}

.ws-input,
.ws-select,
.ws-textarea {
  width: 100%;
  min-height: var(--ws-control-height);
  padding: 10px var(--ws-control-padding-x);
  border-radius: var(--ws-control-radius);
  border: 1px solid var(--ws-border-strong);
  background: rgba(255,255,255,.92);
  color: var(--ws-navy);
  font-weight: 700;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.ws-input::placeholder,
.ws-textarea::placeholder {
  color: var(--ws-muted-2);
  font-weight: 650;
}

.ws-input:focus,
.ws-select:focus,
.ws-textarea:focus {
  border-color: var(--ws-gold);
  box-shadow: 0 0 0 3px rgba(215,173,47,.18);
  background: #fff;
}

.ws-select {
  appearance: none;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ws-navy) 50%),
    linear-gradient(135deg, var(--ws-navy) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 13px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.ws-textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.4;
}

.ws-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #173160;
  font-weight: 750;
  cursor: pointer;
}

.ws-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--ws-gold);
}

.ws-help {
  color: var(--ws-muted);
  font-size: 13px;
  font-weight: 650;
}

.ws-error {
  color: var(--ws-red);
  font-size: 13px;
  font-weight: 800;
}

/* ==========================================================================
   Badges / status
   ========================================================================== */

.ws-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.ws-badge--neutral {
  color: var(--ws-navy);
  background: #eef5ff;
  border-color: var(--ws-border);
}

.ws-badge--ok,
.ws-badge--fresh {
  color: #075634;
  background: rgba(17,167,92,.12);
  border-color: rgba(17,167,92,.28);
}

.ws-badge--warn,
.ws-badge--stale {
  color: #79510a;
  background: rgba(216,148,25,.13);
  border-color: rgba(216,148,25,.28);
}

.ws-badge--bad {
  color: var(--ws-red);
  background: rgba(199,65,54,.10);
  border-color: rgba(199,65,54,.28);
}

/* ==========================================================================
   Tables
   ========================================================================== */

.ws-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius);
  background: rgba(255,255,255,.85);
  box-shadow: var(--ws-shadow-soft);
}

.ws-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  color: #173160;
}

.ws-table th,
.ws-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(213,228,244,.75);
  text-align: left;
  vertical-align: top;
}

.ws-table th {
  color: var(--ws-navy);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(238,245,255,.8);
}

.ws-table tr:last-child td {
  border-bottom: 0;
}

.ws-table--compact th,
.ws-table--compact td {
  padding: 9px 11px;
  font-size: 14px;
}

/* ==========================================================================
   Key-value / summary
   ========================================================================== */

.ws-kv {
  display: grid;
  gap: 0;
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius);
  overflow: hidden;
  background: rgba(255,255,255,.86);
}

.ws-kv__row {
  display: grid;
  grid-template-columns: minmax(120px, .45fr) minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(213,228,244,.72);
}

.ws-kv__row:last-child {
  border-bottom: 0;
}

.ws-kv__key {
  color: var(--ws-muted);
  font-size: 13px;
  font-weight: 850;
}

.ws-kv__value {
  color: var(--ws-navy);
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   Analytics / chart components
   ========================================================================== */

.ws-chart-card {
  padding: var(--ws-card-padding);
  border-radius: var(--ws-radius);
  border: 1px solid var(--ws-border);
  background: rgba(255,255,255,.88);
  box-shadow: var(--ws-shadow-soft);
}

.ws-chart-placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  border-radius: 18px;
  border: 1px dashed var(--ws-border-strong);
  background:
    linear-gradient(180deg, rgba(238,246,255,.62), rgba(255,255,255,.78));
  color: var(--ws-muted);
  font-weight: 850;
  text-align: center;
  padding: 20px;
}

.ws-chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 14px;
  color: var(--ws-muted);
  font-size: 13px;
  font-weight: 750;
}

.ws-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ws-chart-legend span::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--ws-navy);
}

.ws-chart-legend span:nth-child(2)::before {
  background: var(--ws-red);
}

.ws-chart-legend span:nth-child(3)::before {
  background: var(--ws-gold);
}

.ws-summary-list {
  display: grid;
  gap: 8px;
}

.ws-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(213,228,244,.72);
  color: #173160;
  font-weight: 700;
}

.ws-summary-row:last-child {
  border-bottom: 0;
}

/* ==========================================================================
   Notes
   ========================================================================== */

.ws-note {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--ws-border);
  background: rgba(243,248,255,.9);
  color: #173160;
  font-weight: 650;
}

.ws-note--public-data {
  background: rgba(255,255,255,.85);
  border-left: 4px solid var(--ws-gold);
}

/* ==========================================================================
   Inner layout wrappers
   ========================================================================== */

.ws-card__header {
  padding: var(--ws-card-padding) var(--ws-card-padding) 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.ws-card__body {
  padding: var(--ws-card-padding);
}

.ws-card__header + .ws-card__body {
  padding-top: 14px;
}

.ws-card__footer {
  padding: 0 var(--ws-card-padding) var(--ws-card-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ws-card__body + .ws-card__footer {
  padding-top: 4px;
}

.ws-card__header + .ws-card__footer {
  padding-top: 14px;
}

.ws-card__header:first-child:last-child,
.ws-card__body:first-child:last-child,
.ws-card__footer:first-child:last-child {
  padding: var(--ws-card-padding);
}

.ws-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ws-stack--xs {
  gap: 6px;
}

.ws-stack--sm {
  gap: 10px;
}

.ws-stack--md {
  gap: 20px;
}

.ws-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ws-inline--sm {
  gap: 8px;
}

.ws-inline--md {
  gap: 16px;
}

.ws-inline > * {
  min-width: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1020px) {
  .ws-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ws-grid--3,
  .ws-form-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .ws-container {
    width: min(100% - 24px, var(--ws-max));
  }

  .ws-header-inner {
    min-height: 64px;
  }

  .ws-logo {
    width: var(--ws-logo-size-mobile);
    height: var(--ws-logo-size-mobile);
  }

  .ws-wordmark {
    font-size: var(--ws-wordmark-size-mobile);
  }

  .ws-nav {
    display: none;
  }

  .ws-mobile-menu {
    display: block;
  }

  .ws-page-hero {
    padding: 30px 0 18px;
  }

  .ws-grid,
  .ws-grid--2,
  .ws-grid--3,
  .ws-grid--4,
  .ws-grid-2,
  .ws-grid-3,
  .ws-form-grid--2,
  .ws-form-grid--3 {
    grid-template-columns: 1fr;
  }

  .ws-card--feature,
  .ws-card--analysis,
  .ws-card--note,
  .ws-chart-card {
    padding: var(--ws-card-padding-mobile);
  }

  .ws-card__header {
    padding: var(--ws-card-padding-mobile) var(--ws-card-padding-mobile) 0;
    flex-direction: column;
    align-items: stretch;
  }

  .ws-card__body {
    padding: var(--ws-card-padding-mobile);
  }

  .ws-card__header + .ws-card__body {
    padding-top: 12px;
  }

  .ws-card__footer {
    padding: 0 var(--ws-card-padding-mobile) var(--ws-card-padding-mobile);
    align-items: stretch;
    flex-direction: column;
  }

  .ws-card__header:first-child:last-child,
  .ws-card__body:first-child:last-child,
  .ws-card__footer:first-child:last-child {
    padding: var(--ws-card-padding-mobile);
  }

  .ws-inline {
    align-items: flex-start;
  }


  .ws-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .ws-actions {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .ws-actions > * {
    flex: 0 0 auto;
  }

  .ws-wind-card {
    padding: 16px;
  }

  .ws-wind-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .ws-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .ws-metric {
    padding: 8px 3px;
    border-radius: 14px;
  }

  .ws-metric-label {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .ws-metric-value {
    font-size: 17px;
  }

  .ws-metric-unit {
    font-size: 9px;
  }

  .ws-source-toggle {
    max-width: 100%;
    overflow-x: auto;
  }

  .ws-button--block-mobile {
    width: 100%;
    display: flex;
  }
}

@media (max-width: 560px) {
  .ws-footer-min {
    padding: 11px 10px 13px;
  }

  .ws-footer-links {
    gap: 6px;
  }

  .ws-footer-link {
    gap: 4px;
    font-size: 12.5px;
  }

  .ws-footer-iconbox {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
    border-radius: 4px;
  }

  .ws-footer-icon-svg {
    width: 10px;
    height: 10px;
  }

  .ws-footer-separator {
    font-size: 12px;
  }

  .ws-summary-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .ws-kv__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 420px) {
  .ws-container {
    width: min(100% - 18px, var(--ws-max));
  }

  .ws-wordmark {
    font-size: var(--ws-wordmark-size-mobile);
  }

  .ws-page-title {
    font-size: clamp(36px, 12vw, 54px);
  }

  .ws-button,
  .ws-btn {
    min-height: 44px;
  }
}


