/* ALRG Explore page.
   Brand title, then the "Filtering for N allergies" band directly under the
   header, then the six-step guide from sign up to a worry-free meal, deals and
   promotions, sponsored restaurants with the food-type search, the food allergy
   facts, the mission statement, then food allergy news, medications and
   allergists. The scan shortcut follows, and the install tip closes it. The page
   order is applied with flex order on the existing blocks, so every section
   keeps one source of content and nothing is duplicated. */

#view-discover > .inner{display:flex;flex-direction:column}
#view-discover .explore-brand-kicker{order:1}
#view-discover .explore-brand-rule{order:2}
#view-discover .explore-brand-eyebrow{order:3}
#view-discover .explore-brand-title{order:4}
/* The "Filtering for N allergies" band sits directly under the page header,
   then the "Scan first. Order informed." call to action, then the six steps,
   deals, sponsored restaurants, facts, mission, news, medications and
   allergists — the order the page is read in. */
#view-discover .explore-allergy-band{order:5}
#view-discover .explore-scan-cta{order:6}
#view-discover .explore-steps{order:7}
#view-discover #dealHighlights{order:8}
#view-discover .explore-sponsored-head{order:9}
#view-discover #restaurantGrid{order:10}
#view-discover .explore-sponsored-note{order:11}
#view-discover .food-search-row{order:12}
#view-discover #filters{order:13}
#view-discover #foodMatches{order:14}
#view-discover .explore-facts{order:15}
#view-discover .explore-mission{order:16}
#view-discover #medicalNews{order:17}
#view-discover .explore-meds{order:18}
#view-discover .explore-allergists{order:19}
#view-discover .explore-standard{order:20}
#view-discover .explore-map-cta{order:21}
#view-discover .explore-insights-head{order:22}
#view-discover .explore-insights-feed{order:23}
#view-discover #alrgInstallTip{order:24}
#view-discover .deck-footer{order:25}
/* The six-step guide above replaces the older journey block. */
#view-discover #alrgJourney{display:none}

/* The allergy filter band opens the page, right under the header. */
#view-discover .explore-allergy-band{margin:14px 0 4px}

/* ---------- brand title ---------- */
#view-discover .explore-brand-app{
  display:block;margin-top:6px;
  font-size:.42em;line-height:1.15;letter-spacing:-.2px;
  color:#b3080f;
}

/* ---------- six-step guide: sign up to a worry-free meal ---------- */
#view-discover .explore-steps{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;margin:14px 0 20px;
}
#view-discover .explore-steps-head{grid-column:1/-1;margin-bottom:2px}
#view-discover .explore-steps-head h2{
  margin:5px 0 0;font-size:clamp(19px,3.6vw,24px);line-height:1.2;
}
#view-discover .explore-step{
  display:flex;flex-direction:column;align-items:center;text-align:center;
  padding:14px 12px 15px;border:1px solid var(--line,#f0e4dd);border-radius:16px;
  background:#fff;box-shadow:0 4px 14px rgba(88,30,18,.06);
}
#view-discover .explore-step-num{
  display:inline-flex;align-items:center;justify-content:center;
  width:24px;height:24px;border-radius:50%;margin-bottom:8px;
  background:var(--brand-red,#b3080f);color:#fff;
  font-size:12px;font-weight:800;line-height:1;
}
#view-discover .explore-step svg{display:block;width:100%;max-width:74px;height:auto;margin:0 auto 9px}
#view-discover .explore-step b{
  display:block;font-family:'Montserrat','Inter',Arial,sans-serif;
  font-size:13.5px;font-weight:800;line-height:1.25;color:#2a2423;
}
#view-discover .explore-step small{display:block;margin-top:5px;font-size:11.5px;line-height:1.45;color:#6b5c55}

/* ---------- sponsored note ---------- */
#view-discover .explore-sponsored-note{margin:-6px 0 20px}

/* ---------- food-type search and random picker ---------- */
#view-discover .food-search-row{display:flex;align-items:stretch;gap:8px;margin:10px 0 8px}
#view-discover .food-search-row .searchbox{flex:1;min-width:0}
#view-discover .dice-btn{
  flex:0 0 49px;width:49px;display:flex;align-items:center;justify-content:center;
  border:1px solid #dfb2a5;border-radius:15px;background:#fffdf9;color:#b3080f;
  cursor:pointer;transition:background .16s ease,transform .16s ease;
}
#view-discover .dice-btn svg{width:22px;height:22px;display:block}
#view-discover .dice-btn:hover{background:#fff1ef}
#view-discover .dice-btn:active{transform:scale(.94)}
#view-discover .food-matches{display:flex;flex-wrap:wrap;gap:7px;margin:2px 0 12px}
#view-discover .food-match{
  border:1px solid #e6cfc6;border-radius:12px;background:#fffaf5;
  padding:7px 11px;text-align:left;cursor:pointer;
  font-size:12.5px;font-weight:800;color:#7a2b23;line-height:1.25;
}
#view-discover .food-match:hover{background:#fff1ef}
#view-discover .food-match small{display:block;margin-top:2px;font-size:10px;font-weight:600;color:#8a6b60}

/* ---------- medications and allergists ---------- */
#view-discover .explore-meds article a,
#view-discover .explore-allergists article a{
  display:inline-block;margin-top:8px;
  color:#b21919;font-weight:800;font-size:12px;text-decoration:none;
}
#view-discover .explore-meds article a:hover,
#view-discover .explore-allergists article a:hover{text-decoration:underline}

/* Two across on phones so each step keeps a readable explanation. */
@media(max-width:640px){
  #view-discover .explore-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  #view-discover .explore-step{padding:12px 9px 13px;border-radius:14px}
  #view-discover .explore-step svg{max-width:58px}
  #view-discover .explore-step b{font-size:12px}
  #view-discover .explore-step small{font-size:10.5px}
}
@media(max-width:420px){
  #view-discover .explore-steps{gap:7px}
  #view-discover .explore-step{padding:10px 7px 11px;border-radius:12px}
  #view-discover .explore-step b{font-size:11px}
  #view-discover .explore-step small{font-size:9.5px;line-height:1.4}
  #view-discover .explore-step svg{max-width:50px}
  #view-discover .dice-btn{flex-basis:46px;width:46px}
}
