/* Welly components (DESIGN.md §4) used on the public website. Class prefix wl-; variants as data-*. Tokens only. */

[hidden] { display: none !important; }

/* Icon: Lucide outline via the sprite in partials/icons.html.twig */
.wl-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wl-icon { flex: none; display: inline-block; vertical-align: middle; width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.wl-icon[data-size="16"] { width: 16px; height: 16px; }
.wl-icon[data-size="18"] { width: 18px; height: 18px; }
.wl-icon[data-size="24"] { width: 24px; height: 24px; }
.wl-icon[data-size="28"] { width: 28px; height: 28px; }

/* Button */
.wl-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: var(--control-h-md); padding: 0 var(--space-5); border: 1px solid transparent;
  border-radius: var(--radius-control); font: var(--type-label); cursor: pointer; white-space: nowrap;
  text-decoration: none; user-select: none;
  transition: var(--transition-color), transform var(--dur-fast) var(--ease-standard); }
.wl-btn:hover { text-decoration: none; }
.wl-btn:active { transform: scale(var(--press-scale)); }
.wl-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.wl-btn[data-size="sm"] { height: var(--control-h-sm); padding: 0 var(--space-3); }
.wl-btn[data-size="lg"] { height: var(--control-h-lg); padding: 0 var(--space-6); font-size: var(--text-md); }
.wl-btn[data-full="true"] { width: 100%; }
.wl-btn[data-variant="primary"] { background: var(--accent); color: var(--text-on-accent); }
.wl-btn[data-variant="primary"]:hover { background: var(--accent-hover); color: var(--text-on-accent); }
.wl-btn[data-variant="primary"]:active { background: var(--accent-active); }
.wl-btn[data-variant="secondary"] { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.wl-btn[data-variant="ghost"] { background: transparent; color: var(--text-primary); }
.wl-btn[data-variant="secondary"]:hover, .wl-btn[data-variant="ghost"]:hover { background: var(--surface-sunken); color: var(--text-primary); }
.wl-btn[data-variant="inverse"] { background: var(--surface-inverse); color: var(--text-inverse); }
.wl-btn[data-variant="inverse"]:hover { opacity: .85; color: var(--text-inverse); }

/* IconButton */
.wl-ibtn { display: inline-grid; place-items: center; width: var(--control-h-md); height: var(--control-h-md);
  padding: 0; border: 1px solid transparent; border-radius: var(--radius-control); background: transparent;
  color: var(--text-primary); cursor: pointer;
  transition: var(--transition-color), transform var(--dur-fast) var(--ease-standard); }
.wl-ibtn:hover { background: var(--surface-sunken); color: var(--text-primary); text-decoration: none; }
.wl-ibtn:active { transform: scale(var(--press-scale)); }
.wl-ibtn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Card: flat, 1px border, no shadow */
.wl-card { border: 1px solid var(--border-subtle); border-radius: var(--radius-card); background: var(--surface-card); color: var(--text-primary); }
.wl-card[data-padding="md"] { padding: var(--space-5); }
.wl-card[data-padding="lg"] { padding: var(--space-8); }
.wl-card[data-tone="sunken"] { background: var(--surface-sunken); }
.wl-card[data-tone="inverse"] { background: var(--surface-inverse); color: var(--text-inverse); border-color: transparent; }

/* Badge: small uppercase status label, 2px radius */
.wl-badge { display: inline-flex; align-items: center; height: var(--space-5); padding: 0 var(--space-2);
  border-radius: var(--radius-badge); font: var(--type-eyebrow); letter-spacing: var(--tracking-caps);
  text-transform: uppercase; white-space: nowrap; background: var(--surface-sunken); color: var(--text-secondary); }
.wl-badge[data-tone="accent"] { background: var(--accent-soft); color: var(--accent-soft-fg); }
.wl-badge[data-tone="solid"] { background: var(--accent); color: var(--text-on-accent); }

/* ThemeToggle: segmented light/dark */
.wl-theme { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); background: var(--surface-sunken); }
.wl-theme button { display: inline-grid; place-items: center; height: 30px; padding: 0 var(--space-3); border: 0;
  border-radius: var(--radius-sm); background: transparent; color: var(--text-secondary); font: var(--type-label);
  cursor: pointer; transition: var(--transition-color); }
.wl-theme button[aria-pressed="true"] { background: var(--surface-card); color: var(--text-primary); box-shadow: var(--shadow-sm); }
.wl-theme button:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.wl-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
