/**
 * BIOEFFECT-inspired design tokens — clinical luxury, calm editorial UI.
 * Standalone theme pack — not affiliated with BIOEFFECT; aesthetic reference only.
 */
:root {
  --bio-bg-page: #f6f7f6;
  --bio-bg-white: #ffffff;
  --bio-bg-subtle: #eef0ee;
  --bio-bg-hero: linear-gradient(180deg, #fafbf9 0%, #f0f2ef 100%);
  --bio-text: #1a1c1a;
  --bio-text-muted: #5a5f5a;
  --bio-text-soft: #8a908a;
  /* Primary actions / links (not the header store control) */
  --bio-accent: #3d5248;
  --bio-accent-hover: #32463d;
  --bio-nav-store: #2c3530;
  --bio-nav-store-hover: #1e2522;
  --bio-border: #e2e5e2;
  --bio-border-strong: #c9cfc9;
  --bio-success-bg: #eef4ee;
  --bio-success-text: #2d4a2d;
  --bio-warn-bg: #f7f4e8;
  --bio-warn-text: #5c4f2a;
  --bio-info-bg: #eef1f4;
  --bio-info-text: #2a3d4a;
  --bio-error-bg: #fbf0f0;
  --bio-error-text: #5c2a2a;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-ui: "DM Sans", system-ui, -apple-system, sans-serif;
  --bio-radius: 2px;
  --bio-radius-lg: 4px;
  --bio-shadow-sm: 0 1px 2px rgba(26, 28, 26, 0.04);
  --bio-shadow-card: 0 4px 24px rgba(26, 28, 26, 0.06);
}

html {
  font-family: var(--font-ui);
  color: var(--bio-text);
  -webkit-font-smoothing: antialiased;
}

.bio-body {
  background: var(--bio-bg-page);
  min-height: 100%;
}

.bio-body main h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--bio-text);
}

/* Typography */
.bio-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--bio-text);
}

.bio-display-lg {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.bio-display-xl {
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.bio-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bio-text-soft);
}

.bio-lead {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--bio-text-muted);
}

.bio-breadcrumb {
  font-size: 0.75rem;
  color: var(--bio-text-soft);
}
.bio-breadcrumb a {
  color: var(--bio-text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.bio-breadcrumb a:hover {
  color: var(--bio-accent);
}

/* Promo bar */
.bio-promo-bar {
  background: var(--bio-bg-subtle);
  border-bottom: 1px solid var(--bio-border);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bio-text-muted);
}

/* Nav */
.bio-nav {
  background: var(--bio-bg-white);
  border-bottom: 1px solid var(--bio-border);
}

.bio-nav-inner {
  max-width: 1440px;
}

.bio-brand {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bio-text);
  text-decoration: none;
}
.bio-brand:hover {
  color: var(--bio-accent);
}

.bio-nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--bio-text-muted);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--bio-radius);
  transition: background 0.15s, color 0.15s;
}
.bio-nav-link:hover {
  color: var(--bio-text);
  background: var(--bio-bg-subtle);
}

.bio-nav-link-active {
  color: var(--bio-text);
  background: var(--bio-bg-subtle);
}

.bio-pill-location {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bio-text-muted);
  background: var(--bio-bg-subtle);
  border: 1px solid var(--bio-border);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

/* Header store switcher — charcoal (--bio-nav-store), not global primary */
.bio-nav-location-wrap {
  flex-shrink: 0;
}
.bio-nav-location-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border: none;
  color: #fafbf9;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 1.35rem 0.2rem 0;
  cursor: pointer;
  max-width: 11rem;
  line-height: 1.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fafbf9' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.1rem center;
}
.bio-nav-location-select:hover {
  color: #ffffff;
}
.bio-nav-location-select:focus {
  outline: 2px solid rgba(250, 251, 249, 0.45);
  outline-offset: 1px;
  border-radius: 2px;
}
.bio-nav-location-select option {
  background: var(--bio-bg-white);
  color: var(--bio-text);
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.875rem;
}

/* Buttons */
.bio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: var(--bio-radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.bio-btn-primary {
  background: var(--bio-accent);
  color: #fafbf9;
}
.bio-btn-primary:hover {
  background: var(--bio-accent-hover);
  color: #fff;
}

.bio-btn-secondary {
  background: transparent;
  color: var(--bio-text);
  border: 1px solid var(--bio-border-strong);
}
.bio-btn-secondary:hover {
  border-color: var(--bio-accent);
  color: var(--bio-accent);
}

.bio-btn-ghost {
  background: transparent;
  color: var(--bio-text-muted);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.bio-btn-ghost:hover {
  color: var(--bio-accent);
}

/* Cards */
.bio-card {
  background: var(--bio-bg-white);
  border: 1px solid var(--bio-border);
  border-radius: var(--bio-radius-lg);
  box-shadow: var(--bio-shadow-sm);
}

.bio-card-elevated {
  box-shadow: var(--bio-shadow-card);
}

/* Hero band (dashboard) */
.bio-hero {
  background: var(--bio-bg-hero);
  border-bottom: 1px solid var(--bio-border);
  padding: 2.5rem 0 2rem;
  margin: 0 -1rem 2rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

@media (min-width: 640px) {
  .bio-hero {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
  }
}

.bio-hero-tagline {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bio-text-soft);
  margin-bottom: 0.5rem;
}

/* Stat tiles */
.bio-stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bio-text-soft);
}

.bio-stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--bio-text);
  line-height: 1.2;
}

/* Freshness / callouts */
.bio-callout {
  border: 1px solid var(--bio-border);
  border-radius: var(--bio-radius-lg);
  padding: 1rem 1.25rem;
}

.bio-callout-success {
  background: var(--bio-success-bg);
  border-color: #c5d4c5;
  color: var(--bio-success-text);
}

.bio-callout-warn {
  background: var(--bio-warn-bg);
  border-color: #e0d8b8;
  color: var(--bio-warn-text);
}

.bio-callout-info {
  background: var(--bio-info-bg);
  border-color: #c5d0d8;
  color: var(--bio-info-text);
}

.bio-callout-error {
  background: var(--bio-error-bg);
  border-color: #e8c5c5;
  color: var(--bio-error-text);
}

/* Status pills — pair with semantic keys, e.g. gray, yellow, blue, … */
.bio-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.bio-badge-gray {
  background: #e8eae8;
  color: #3d423d;
}
.bio-badge-yellow {
  background: var(--bio-warn-bg);
  color: var(--bio-warn-text);
}
.bio-badge-blue {
  background: #e8ecf0;
  color: #2a3d55;
}
.bio-badge-indigo {
  background: #e9eaf0;
  color: #343a55;
}
.bio-badge-purple {
  background: #efeef3;
  color: #453d52;
}
.bio-badge-cyan {
  background: #e8f2f4;
  color: #2a4a52;
}
.bio-badge-green {
  background: var(--bio-success-bg);
  color: var(--bio-success-text);
}
.bio-badge-orange {
  background: #f7eee8;
  color: #5c3f2a;
}

.bio-badge-lg {
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
}

.bio-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--bio-accent);
  text-decoration: none;
}
.bio-link:hover {
  text-decoration: underline;
}

/* Tables */
.bio-table-wrap {
  border: 1px solid var(--bio-border);
  border-radius: var(--bio-radius-lg);
  overflow: hidden;
  background: var(--bio-bg-white);
}

.bio-table thead {
  background: var(--bio-bg-subtle);
}
.bio-table th {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bio-text-soft);
}
.bio-table td {
  font-size: 0.875rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--bio-border);
  color: var(--bio-text);
}
.bio-table tbody tr:hover {
  background: var(--bio-bg-subtle);
}
.bio-table tbody tr:last-child td {
  border-bottom: none;
}

/* Footer mission strip */
.bio-mission {
  border-top: 1px solid var(--bio-border);
  margin-top: 3rem;
  padding: 2rem 0;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--bio-text-muted);
  max-width: 42rem;
}

.bio-mission strong {
  color: var(--bio-text);
  font-weight: 600;
}

/* Flash alignment */
.bio-flash-wrap {
  max-width: 1440px;
}

/* Inputs */
.bio-input {
  border: 1px solid var(--bio-border-strong);
  border-radius: var(--bio-radius);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--bio-text);
  background: var(--bio-bg-white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.bio-input:focus {
  outline: none;
  border-color: var(--bio-accent);
  box-shadow: 0 0 0 3px rgba(44, 53, 48, 0.12);
}
