/* =================================================================
   SNOWFALL — /allergens
   Reuses brand tokens, fonts, nav, footer & .hl boxes from styles.css.
   Only the allergen-specific components live here.
   ================================================================= */

/* This page has no promo bar, so pin the nav to the very top — robust whether
   or not styles.css defines the announcement-bar offset (it's added by a
   separate in-progress branch). */
.nav { top: 0; }

.alg-page {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 5.5rem));
  padding-bottom: clamp(4.5rem, 10vw, 9rem);
}

/* ---------- header ---------- */
.alg-hero { text-align: center; max-width: 780px; margin: 0 auto clamp(2.4rem, 5vw, 3.4rem); }
.alg-hero__title {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.012em;
  line-height: 1.5;
  font-size: clamp(2rem, 6vw, 4.1rem);
  margin-bottom: 1.7rem;
}
.alg-lead {
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  color: var(--charcoal);
  line-height: 1.5;
  max-width: 34ch;
  margin: 0 auto;
}

/* ---------- callouts ---------- */
.alg-callout {
  max-width: 780px;
  margin: 1.2rem auto 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--ink-15);
  border-radius: 16px;
  background: var(--oat);
  color: var(--ink-70);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.62;
}
.alg-callout strong { color: var(--charcoal); font-weight: 600; }
.alg-callout--speak {
  background: var(--charcoal);
  color: var(--oat);
  border-color: var(--charcoal);
  text-align: center;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.55;
}
.alg-callout--speak strong { color: #fff; }

/* ---------- sections ---------- */
.alg-section { margin-top: clamp(3.5rem, 8vw, 6rem); }
.alg-section__head { text-align: center; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.alg-section__title {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: clamp(1.45rem, 3.6vw, 2.4rem);
  line-height: 1.32;
}
.alg-section__note { margin-top: 0.85rem; color: var(--ink-50); font-size: clamp(0.85rem, 1.1vw, 0.95rem); }

/* ---------- allergen tags ---------- */
.alg-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.alg-tag {
  display: inline-block;
  font-family: var(--label);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oat);
  background: var(--charcoal);
  padding: 0.46em 0.9em 0.52em;
  border-radius: 100px;
  white-space: nowrap;
}
.alg-tag--advisory { background: transparent; color: var(--ink-70); border: 1px solid var(--ink-35); }
.alg-tag--none { background: var(--taupe-15); color: var(--taupe); letter-spacing: 0.08em; }

/* ---------- product grid ---------- */
.alg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.1rem, 2.6vw, 1.8rem);
}
.alg-card {
  border: 1px solid var(--ink-15);
  border-radius: 20px;
  padding: clamp(1.4rem, 3vw, 2.1rem);
  background: #fff;
}
.alg-card__name {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.2;
}
.alg-row { margin-top: 1.15rem; }
.alg-row__label {
  display: block;
  font-family: var(--label);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.6rem;
}
.alg-ing-text { color: var(--ink-70); font-size: 0.92rem; line-height: 1.62; }

/* ---------- individual ingredients ---------- */
.alg-ing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 2vw, 1.4rem);
}
.alg-ing-item {
  border: 1px solid var(--ink-08);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  background: var(--oat);
}
.alg-ing-item h4 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  margin: 0 0 0.75rem;
  color: var(--charcoal);
}
.alg-ing-item .alg-tags { gap: 0.4rem; }
.alg-advisory { margin-top: 0.65rem; font-size: 0.78rem; color: var(--ink-50); line-height: 1.5; }

/* ---------- kitchen information ---------- */
.alg-kitchen {
  max-width: 780px;
  margin: clamp(3.5rem, 8vw, 6rem) auto 0;
  border: 1px solid var(--ink-15);
  border-radius: 22px;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  background: var(--oat);
}
.alg-kitchen .alg-section__head { margin-bottom: 1rem; }
.alg-kitchen p { color: var(--ink-70); font-size: clamp(0.92rem, 1.2vw, 1rem); line-height: 1.6; }
.alg-kitchen .alg-tags { justify-content: center; margin: 1.3rem auto; max-width: 30rem; }

/* ---------- additional notes ---------- */
.alg-notes {
  max-width: 780px;
  margin: clamp(1.8rem, 4vw, 2.6rem) auto 0;
  padding: 0;
  list-style: none;
}
.alg-notes li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.95rem;
  color: var(--ink-70);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.62;
}
.alg-notes li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--taupe);
}

/* ---------- back-home link under the header ---------- */
.alg-back {
  display: inline-flex; align-items: center; gap: 0.5em;
  margin-top: 1.6rem;
  font-family: var(--label);
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--taupe);
  transition: color 0.4s var(--mist);
}
.alg-back:hover { color: var(--charcoal); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .alg-ing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .alg-grid { grid-template-columns: 1fr; }
  .alg-ing-grid { grid-template-columns: 1fr; }
}
