/* Bhojan screen (#/bhojan/*) and recipe screen (#/recipe/<id>). Uses the colour tokens from app.css. */
.bh [hidden] { display: none !important; }
.bh h1 { margin-top: 4px; }
.bh .sub { margin-bottom: 4px; }
.bh .subnav { flex-wrap: wrap; overflow: visible; }                 /* all four sub-tabs stay in view on a small phone */
.bh-cond summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.bh-cond summary::-webkit-details-marker { display: none; }
.bh-cond summary::after { content: '▾'; font-size: 1.2em; }
.bh-cond[open] summary::after { content: '▴'; }
.bh-cond summary h2 { margin: 0; }
.bh-foot { font-size: .8em; color: var(--muted); text-align: center; margin: 18px 6px 4px; line-height: 1.45; }
.bh-ul { margin: 6px 0 2px; padding-left: 1.2em; }
.bh-ul li { margin: 5px 0; }
.bh-alert { background: var(--amberbg); color: var(--amber); border-radius: 10px; padding: 8px 10px; font-size: .9em; margin: 8px 0; }
.bh-big { font-size: 1.25em; font-weight: 800; line-height: 1.25; }

/* week + day pickers */
.bh-wk { margin: 12px 0 8px; gap: 8px; }
.bh-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bh-day { border: 1px solid var(--line); background: var(--card); border-radius: 12px; min-height: 56px; padding: 4px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; line-height: 1.15; min-width: 0; }
.bh-day span { font-size: .72em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bh-day b { font-size: 1.05em; }
.bh-day.today { border-color: var(--saffron); border-width: 2px; }
.bh-day.on { background: var(--saffron); border-color: var(--saffron); color: #fff; }
.bh-day.on span { color: #fff; }
.bh-dayh { margin: 14px 2px 0; }

/* meals */
.bh-meal .list > li { align-items: flex-start; }
.bh-link { border: 0; background: none; padding: 0; margin: 0; font: inherit; font-weight: 700; color: var(--saffron2); text-align: left; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; min-height: 44px; }
.bh-swap { flex: none; margin-top: 2px; }
.bh-tot h2 { margin-bottom: 4px; }
.bh-nb { margin: 10px 0; font-size: .92em; }
.bh-bar { margin-top: 4px; height: 12px; }
.bh-bar.good > i { background: var(--good); }
.bh-bar.amber > i { background: linear-gradient(90deg, var(--gold), var(--saffron)); }
.bh-bar.warn > i { background: var(--warn); }
.bh-veg .list > li, .bh-shop .list > li { padding: 8px 2px; }
.bh-pr summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.bh-pr summary::-webkit-details-marker { display: none; }
.bh-pr summary::after { content: '▾'; color: var(--muted); font-size: 1.2em; }
.bh-pr[open] summary::after { content: '▴'; }
.bh-pr summary h2 { margin: 0; }
.bh-pick > li.on { background: var(--soft2); border-radius: 10px; }
.bh-pick > li { padding-left: 8px; padding-right: 8px; min-height: 56px; }

/* recipe list */
.bh-filters { margin: 4px 0 10px; }
.bh-q { margin-bottom: 4px; }
.bh-cards { display: grid; grid-template-columns: 1fr; gap: 0; }
.bh-card { display: block; width: 100%; text-align: left; font: inherit; color: inherit; margin: 8px 0; }
.bh-card .t { font-weight: 700; font-size: 1.04em; }
.bh-card .d { color: var(--muted); font-size: .86em; margin: 2px 0 6px; }
@media (min-width: 700px) { .bh-cards { grid-template-columns: 1fr 1fr; column-gap: 12px; } }

/* steppers */
.bh-step { gap: 8px; align-items: center; }
.bh-step .iconbtn { width: 48px; height: 48px; font-size: 1.4em; font-weight: 700; }
.bh-stepn { min-width: 2.2em; text-align: center; font-size: 1.3em; }
.bh-servrow { margin: 4px 0 2px; }

/* grocery list */
.bh-tick { margin: 0; width: 100%; align-items: center; cursor: pointer; }
.bh-tick input { width: 26px; height: 26px; margin-top: 0; }
.bh-tick .t { font-weight: 650; }
.bh-tick .d { color: var(--muted); }
.bh-tick input:checked + .grow { text-decoration: line-through; opacity: .6; }

/* me: results */
.bh-bmi { font-size: 2.2em; font-weight: 800; line-height: 1.1; }
.bh-band { position: relative; display: flex; height: 14px; border-radius: 99px; overflow: visible; margin: 12px 0 4px; }
.bh-band i { display: block; height: 100%; }
.bh-band i.u { width: 17.5%; background: var(--info); border-radius: 99px 0 0 99px; opacity: .55; }
.bh-band i.n { width: 22.5%; background: var(--good); opacity: .75; }
.bh-band i.o { width: 10%; background: var(--gold); opacity: .8; }
.bh-band i.b { width: 50%; background: var(--warn); border-radius: 0 99px 99px 0; opacity: .6; }
.bh-band span { position: absolute; top: -5px; width: 6px; height: 24px; margin-left: -3px; border-radius: 3px; background: var(--ink); box-shadow: 0 0 0 2px var(--card); }
.bh-kvs { margin-top: 10px; }
.bh-res .kv, .bh-target { display: flex; flex-direction: column; gap: 2px; }
.bh-res .kv small, .bh-target small { color: var(--muted); font-size: .76em; line-height: 1.35; }
.bh-target { margin-top: 10px; background: var(--goodbg); }
.bh-target b { color: var(--good); }
.bh-plate .list > li { align-items: flex-start; }
.bh-pv { font-weight: 650; }
.bh-plate .d { margin-top: 3px; line-height: 1.45; }

/* me: form */
.bh-form .seg { flex-wrap: wrap; }
.bh-form .seg button { min-width: 70px; }
.bh-form input[type=number] { font-size: 1.1em; }
.bh-sub { margin: 2px 0 10px 34px; padding-left: 10px; border-left: 3px solid var(--line); }   /* trimester / baby's age, under its tick box */
.bh-sub .f { margin-top: 4px; }
.bh-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bh-act { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px; text-align: left; cursor: pointer; min-height: 72px; display: flex; flex-direction: column; gap: 2px; }
.bh-act b { font-size: .98em; }
.bh-act span { font-size: .78em; color: var(--muted); line-height: 1.3; }
.bh-act.on { border: 2px solid var(--saffron); background: var(--soft2); }
.bh-act.on b { color: var(--saffron2); }

/* one recipe */
.bh-rec h1 { margin-top: 12px; }
.bh-watch { min-height: 56px; font-size: 1.05em; }
.bh-ing .t { font-weight: 650; }
.bh-amt { color: var(--saffron2); white-space: nowrap; }
.bh-steps li { margin: 10px 0; line-height: 1.6; }
.bh-steps li::marker { font-weight: 800; color: var(--saffron2); }
.bh-ntbl td:first-child { width: 50%; }

@media (max-width: 360px) {
  .bh-day span { font-size: .66em; }
  .bh-acts { grid-template-columns: 1fr; }
  .bh-swap { padding: 6px 8px; }
}
