/* RVA Healthy website: the recipe pages (src/site.js) and the blog pages (src/learn.js).
   The look follows the Android app: purple on lilac, rounded white cards, a soft colour for each meal.
   No page needs a script. Phones first (from 320px wide); the wider layout starts at 720px. */
:root {
  --p: #7026B9; --p2: #8B3FD0; --dk: #3D2855; --tx: #231F20; --mu: #6E6680; --soft: #554D63;
  --bg: #FAF6FE; --l2: #EBDDFA; --l3: #E3C9F5; --line: #EADCF7;
  --detox: #E3F6EA; --breakfast: #EBDDFA; --lunch: #FFE9C9; --snack: #DFF3FF; --dinner: #FFE3E3;
  --r: 22px; --sh: 0 10px 26px -14px rgba(112, 38, 185, .4);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  display: flex; flex-direction: column; min-height: 100vh; /* a short page still has its footer at the bottom */
  margin: 0; color: var(--tx); background: var(--bg); -webkit-font-smoothing: antialiased;
  font: 500 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Telugu", "Noto Sans Devanagari", sans-serif;
}
a { color: var(--p); }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 9; background: #fff; padding: 8px 12px; border-radius: 10px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--p); outline-offset: 2px; }

/* ---- header and menu ---- */
.top { background: #fff; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding-top: 10px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--dk); text-decoration: none; }
.brand img { display: block; border-radius: 50%; }
.menu { order: 3; display: flex; gap: 4px; width: 100%; overflow-x: auto; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu a { padding: 7px 14px; border-radius: 99px; font-weight: 700; color: var(--dk); text-decoration: none; white-space: nowrap; }
.menu a:hover { background: var(--bg); }
.menu a[aria-current] { background: var(--l2); color: var(--p); }
.get { background: var(--p); color: #fff; padding: 8px 16px; border-radius: 99px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.get:hover { background: var(--p2); }
.wide { display: none; }

/* ---- page ---- */
main { flex: 1 0 auto; width: 100%; padding-top: 22px; padding-bottom: 56px; }
h1 { margin: 0 0 6px; font-size: 30px; line-height: 1.2; letter-spacing: -.02em; color: var(--dk); }
h2 { color: var(--dk); letter-spacing: -.01em; }
.lede { margin: 0 0 16px; max-width: 62ch; color: var(--mu); }
.m { color: var(--mu); font-size: 14px; }

/* ---- recipe list: search, meal tabs, filters ---- */
.search { display: flex; gap: 8px; max-width: 560px; margin: 16px 0 14px; }
.search input { flex: 1; min-width: 0; font: inherit; color: inherit; background: #fff; border: 1.5px solid var(--l3); border-radius: 99px; padding: 10px 18px; }
.search input:focus-visible { border-color: var(--p); outline-offset: 1px; }
.search button { font: inherit; font-weight: 700; color: #fff; background: var(--p); border: 0; border-radius: 99px; padding: 0 20px; cursor: pointer; }
.search button:hover { background: var(--p2); }
.tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 8px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 8px 16px; border-radius: 99px; background: #fff; color: var(--tx); font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: 0 2px 8px -3px rgba(112, 38, 185, .35); }
.tabs a[aria-current] { background: var(--dk); color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 6px 0 4px; }
.fgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fgroup b { margin-right: 2px; font-size: 13px; font-weight: 700; color: var(--mu); }
.chip { padding: 5px 12px; border-radius: 99px; border: 1.5px solid var(--l3); background: #fff; color: var(--tx); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chip[aria-current] { background: var(--p); border-color: var(--p); color: #fff; }
.hint { margin: 8px 0 0; font-size: 13px; color: var(--mu); }
.found { margin: 18px 0 0; font-weight: 700; color: var(--dk); }
.found a { margin-left: 8px; font-weight: 600; }
.empty { margin-top: 22px; padding: 22px; border-radius: var(--r); background: #fff; box-shadow: var(--sh); }
.empty p { margin: 0 0 6px; }

/* ---- dish cards ---- */
.sec { margin-top: 26px; }
.sec h2 { margin: 0 0 2px; font-size: 22px; }
.sec .sub { margin: 0 0 4px; font-size: 14px; color: var(--mu); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 10px; margin-top: 12px; }
.dish { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 14px 10px 10px; border-radius: 24px; background: var(--breakfast); color: var(--tx); text-decoration: none; }
.dish:hover { box-shadow: var(--sh); }
.t-detox { background: var(--detox); }
.t-breakfast { background: var(--breakfast); }
.t-lunch { background: var(--lunch); }
.t-snack { background: var(--snack); }
.t-dinner { background: var(--dinner); }
.ph { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #fff; font-size: 27px; line-height: 1; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .2); }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph img.yt { transform: scale(1.34); } /* a YouTube thumbnail has black bars; zoom past them */
.dx { flex: 1; min-width: 0; }
.dn { display: block; font-weight: 700; line-height: 1.3; }
.dt, .dm { display: block; font-size: 13px; color: var(--soft); }
.dm { margin-top: 2px; }
.pill { flex: none; padding: 3px 10px; border-radius: 99px; background: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.p-easy { color: #3B6B12; }
.p-medium { color: #9A5200; }
.p-hard { color: #B03030; }
.p-detox { color: #1E7A4D; }
/* the Indian food marks: green dot = vegetarian, amber dot = egg, red triangle = non-vegetarian */
.vm, .egm, .nvm { display: inline-grid; place-items: center; flex: none; width: 14px; height: 14px; margin-right: 6px; border: 1.5px solid #1E8E4E; border-radius: 3px; background: #fff; vertical-align: -2px; }
.vm::after, .egm::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #1E8E4E; }
.egm { border-color: #C98A00; }
.egm::after { background: #C98A00; }
.nvm { border-color: #C23A3A; }
.nvm::after { content: ""; width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-bottom: 6px solid #C23A3A; }

/* ---- one dish ---- */
.crumbs { margin: 0 0 12px; font-size: 14px; color: var(--mu); }
.crumbs a { font-weight: 600; text-decoration: none; }
.hero { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 26px; }
.hero .ph { width: 76px; height: 76px; font-size: 40px; }
.hero h1 { margin: 0; font-size: 26px; }
.hero .te { margin: 2px 0 0; color: var(--soft); }
.hx { min-width: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { padding: 4px 12px; border-radius: 99px; background: #fff; font-size: 13.5px; font-weight: 600; }
.by { margin: 8px 0 0; font-size: 14px; color: var(--soft); }
.cols { display: grid; gap: 14px; margin-top: 14px; }
.stack { display: grid; gap: 14px; align-content: start; min-width: 0; }
.card { padding: 18px; border-radius: var(--r); background: #fff; box-shadow: var(--sh); }
.card h2 { margin: 0 0 10px; font-size: 19px; }
.card > :last-child { margin-bottom: 0; }
.card .avid { margin: 0; }
.per { margin: -6px 0 10px; font-size: 14px; color: var(--mu); }
.kcal { margin: 0 0 12px; color: var(--mu); }
.kcal b { font-size: 34px; line-height: 1; letter-spacing: -.02em; color: var(--dk); }
.nut { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; }
.nut div { padding: 8px 4px; border-radius: 14px; background: var(--bg); text-align: center; }
.nut dt { font-size: 12.5px; color: var(--mu); }
.nut dd { margin: 0; font-weight: 700; }
.fine { margin: 12px 0 0; font-size: 13px; color: var(--mu); }
.gtk { padding: 16px 18px; border-radius: var(--r); background: var(--detox); color: #245C40; }
.gtk h2 { margin: 0 0 4px; font-size: 17px; color: #1E7A4D; }
.gtk p { margin: 4px 0; }
.gtk .w { font-weight: 600; color: #7A4300; }
.rlist { margin: 0; padding-left: 22px; }
.rlist li { margin-bottom: 6px; }
.vcap { margin: 8px 0 0; font-size: 14px; color: var(--mu); }
.btn { display: inline-block; padding: 9px 18px; border-radius: 99px; background: var(--p); color: #fff; font-weight: 700; text-decoration: none; }
.btn:hover { background: var(--p2); }

/* ---- blog ---- */
.article, .list { max-width: 720px; }
.article h1 { margin: 10px 0; font-size: 28px; line-height: 1.25; }
.meta { margin: 0; font-size: 14px; color: var(--mu); }
.article .lede { margin: 0 0 4px; font-size: 17px; }
.cover { display: block; width: 100%; margin: 14px 0; border-radius: 18px; }
.article h3 { margin: 26px 0 6px; font-size: 21px; color: var(--dk); }
.article h4 { margin: 18px 0 4px; font-size: 17px; color: var(--dk); }
.article blockquote { margin: 14px 0; padding: 10px 14px; border-radius: 12px; background: #F3EAFB; }
.avid { position: relative; margin: 16px 0; padding-top: 56.25%; border-radius: 14px; overflow: hidden; background: #000; }
.avid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.icard { display: flex; align-items: center; gap: 8px; margin: 10px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ie { font-size: 26px; }
.in { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; } /* the name gives way, the three numbers stay whole */
.in small { font-size: 12px; color: var(--mu); }
.iv { display: flex; flex-direction: column; align-items: center; min-width: 44px; font-size: 12px; color: var(--mu); }
.iv b { font-size: 15px; color: var(--tx); }
.disc { margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mu); }
.list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.list b { display: block; font-size: 18px; color: var(--dk); }

/* ---- the header with four menu entries (class "m4": the pages in src/site_more.js) ---- */
.menu.m4 { gap: 0; justify-content: space-between; }
.menu.m4 a { padding: 7px 9px; font-size: 15px; }

/* ---- cards that are not a meal: ingredients and fitness activities ---- */
.t-plain { background: #fff; box-shadow: 0 2px 8px -3px rgba(112, 38, 185, .35); }
.t-plain .ph { background: var(--bg); box-shadow: none; }
.t-plain .tag { background: var(--bg); }
.hero.t-plain { box-shadow: var(--sh); }
.more { margin: 12px 0 0; font-weight: 700; }
.more a { text-decoration: none; }
.dose { margin: 0 0 4px; font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--dk); }
.dose + .m { margin: 0; }
.chipsrow { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.card p + .chipsrow { margin-top: 12px; }

/* ---- one ingredient: the table of all its nutrients ---- */
.scroll { overflow-x: auto; }
.ntab { width: 100%; border-collapse: collapse; font-size: 15px; }
.ntab th, .ntab td { padding: 7px 0 7px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.ntab th:first-child { padding-left: 0; text-align: left; font-weight: 600; white-space: normal; }
.ntab thead th { font-size: 12.5px; font-weight: 700; color: var(--mu); white-space: normal; vertical-align: bottom; }
.ntab tbody tr:last-child > * { border-bottom: 0; }

/* ---- front page ---- */
.hh { padding: 24px 20px; border-radius: 26px; background: linear-gradient(135deg, var(--l2), #fff 75%); box-shadow: var(--sh); }
.hh .lede { margin-bottom: 0; font-size: 18px; color: var(--soft); }
.hh .m { margin: 0; max-width: 62ch; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 12px; }
.btn.ghost { background: #fff; color: var(--p); box-shadow: inset 0 0 0 1.5px var(--l3); }
.btn.ghost:hover { background: var(--bg); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 12px; }
.tile { display: block; padding: 16px 18px; border-radius: var(--r); background: #fff; color: var(--tx); text-decoration: none; box-shadow: var(--sh); }
.tile:hover { box-shadow: 0 12px 28px -12px rgba(112, 38, 185, .55); }
.tile b { display: block; font-size: 18px; color: var(--dk); }
.tile span { display: block; margin-top: 2px; font-size: 14px; color: var(--mu); }
.tile .ti { margin: 0 0 6px; font-size: 30px; line-height: 1.2; }
.feats { max-width: 62ch; margin: 8px 0 14px; padding-left: 22px; }
.feats li { margin-bottom: 6px; }

/* ---- a page of text: the privacy policy ---- */
.prose { max-width: 720px; }
.prose .lede { margin-top: 10px; }
.prose h2 { margin: 28px 0 6px; font-size: 21px; }
.prose ul { margin: 8px 0; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.note { margin: 16px 0; padding: 14px 18px; border-radius: 18px; background: var(--lunch); }
.note p { margin: 0 0 6px; }
.note ul { margin: 0; }

/* ---- footer ---- */
.foot { padding: 20px 0 28px; border-top: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--mu); }
.foot p { margin: 4px 0; }
.foot b { color: var(--dk); }
.foot .links a { margin-right: 16px; font-weight: 600; text-decoration: none; }
.foot .links.many a { display: inline-block; } /* with seven links the row wraps: between links, not inside one */

/* ---- the smallest phones ---- */
@media (max-width: 359px) {
  .ie { display: none; }
  .menu.m4 a { padding: 7px 6px; font-size: 14.5px; }
}

/* ---- wider screens ---- */
@media (min-width: 720px) {
  .icard { gap: 12px; padding: 10px 14px; }
  .iv { min-width: 52px; }
  .bar { padding-bottom: 10px; }
  .brand { margin-right: 10px; }
  .menu { order: 0; width: auto; margin-right: auto; }
  .menu.m4 { gap: 4px; justify-content: flex-start; }
  .menu.m4 a { padding: 7px 14px; font-size: 16px; }
  .wide { display: inline; }
  h1 { font-size: 36px; }
  .tabs { flex-wrap: wrap; overflow: visible; }
  .hero { gap: 22px; padding: 22px; }
  .hero .ph { width: 104px; height: 104px; font-size: 54px; }
  .hero h1 { font-size: 34px; }
}
@media (min-width: 880px) {
  .cols { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .side { grid-column: 2; grid-row: 1; }
  .mainc { grid-column: 1; grid-row: 1; }
}
