/* Ingredient mix checker — loaded after style.css */

body.mix-page {
  opacity: 1 !important;
}

body.mix-page .reveal {
  opacity: 1;
  transform: none;
}

.mix-main {
  max-width: 920px;
}

.mix-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0 18px;
  font-size: 13px;
  color: var(--muted2);
}

.mix-crumb a {
  color: var(--muted);
}

.mix-crumb a:hover {
  color: var(--text);
}

.mix-crumb__sep {
  opacity: 0.45;
}

.mix-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 14px;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.mix-badge--safe {
  background: linear-gradient(180deg, rgba(46, 229, 157, 0.18), rgba(47, 107, 79, 0.12));
  border-color: rgba(47, 107, 79, 0.28);
  color: #1a5c3e;
}

.mix-badge--alert {
  background: linear-gradient(180deg, rgba(255, 77, 109, 0.16), rgba(255, 77, 109, 0.08));
  border-color: rgba(255, 77, 109, 0.32);
  color: #b4233d;
}

.mix-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.mix-hero h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.12;
  max-width: 22ch;
}

.mix-hero__lede {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 62ch;
}

.mix-pair-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.mix-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(10, 26, 20, 0.12);
  font-weight: 800;
  font-size: 14px;
}

.mix-pill__plus {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(47, 107, 79, 0.12);
  color: var(--primary);
  font-weight: 900;
  font-size: 14px;
}

.mix-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  margin: 8px 0 18px;
}

.mix-wait {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 160px;
}

.mix-wait__value {
  font-size: 56px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.mix-wait__unit {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.mix-wait__note {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.mix-warning {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.mix-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.mix-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(10, 26, 20, 0.1);
  background: var(--surface2);
}

.mix-steps__n {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(47, 107, 79, 0.95), rgba(203, 191, 154, 0.7));
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

.mix-steps li p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.mix-cta-card {
  margin-top: 18px;
  padding: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, rgba(47, 107, 79, 0.12), rgba(203, 191, 154, 0.16));
}

.mix-cta-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.mix-cta-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 46ch;
}

.mix-cta-card .btn--primary {
  min-width: min(280px, 100%);
}

.mix-related {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mix-related a {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(10, 26, 20, 0.1);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  line-height: 1.4;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mix-related a:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 107, 79, 0.28);
}

.mix-related h3 {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.35;
}

.mix-related .tag {
  font-size: 11px;
}

.mix-hub-search {
  margin: 16px 0 18px;
}

.mix-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mix-hub-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(10, 26, 20, 0.1);
  background: var(--surface);
  box-shadow: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mix-hub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 107, 79, 0.28);
}

.mix-hub-card h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
}

.mix-empty {
  text-align: left;
}

.mix-disclaimer {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted2);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .mix-grid,
  .mix-related,
  .mix-hub-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .mix-hero h1 {
    font-size: 28px;
  }

  .mix-wait__value {
    font-size: 44px;
  }

  .mix-cta-card .btn--primary {
    width: 100%;
  }
}

@media (prefers-color-scheme: dark) {
  body.mix-page {
    --bg0: #101a16;
    --bg1: #0c1411;
    --surface: #18241e;
    --surface2: #1e2c26;
    --text: #f4f0e6;
    --muted: rgba(244, 240, 230, 0.72);
    --muted2: rgba(244, 240, 230, 0.56);
    --stroke: rgba(244, 240, 230, 0.12);
    background:
      radial-gradient(1200px 600px at 20% 10%, rgba(47, 107, 79, 0.22), transparent 55%),
      radial-gradient(1000px 600px at 85% 25%, rgba(203, 191, 154, 0.1), transparent 55%),
      linear-gradient(180deg, var(--bg0), var(--bg1));
    color: var(--text);
  }

  body.mix-page .topbar {
    background: linear-gradient(180deg, rgba(16, 26, 22, 0.92), rgba(16, 26, 22, 0.72));
    border-bottom-color: rgba(244, 240, 230, 0.08);
  }

  body.mix-page .card,
  body.mix-page .mix-hub-card,
  body.mix-page .mix-related a,
  body.mix-page .mix-pill {
    background: var(--surface);
    border-color: rgba(244, 240, 230, 0.1);
    color: var(--text);
  }

  body.mix-page .mix-steps li {
    background: var(--surface2);
    border-color: rgba(244, 240, 230, 0.1);
  }

  body.mix-page .mix-badge--safe {
    color: #8cf0c4;
  }

  body.mix-page .mix-badge--alert {
    color: #ffb3c0;
  }

  body.mix-page .acc {
    background: rgba(24, 36, 30, 0.88);
    border-color: rgba(244, 240, 230, 0.1);
  }
}
