/* Kitchen library pages (change 146). Same paper, ink and type as the site; light and quiet so recipes read easily. */
:root { --paper: #FAF7F0; --panel: #F2EDE1; --card: #FFFDF8; --ink: #25261F; --ink-soft: #5B5B4D; --olive: #424B22; --olive-deep: #343B1A;
  --turmeric-ink: #8A5600; --clay: #9E4A30; --line: #DCD4C2; --focus: #1F5F8B; --tint: #F7E9E2;
  --font: "Alegreya Sans", Seravek, "Gill Sans", Calibri, system-ui, sans-serif; color-scheme: light; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.5 var(--font); overflow-x: clip; }
a { color: var(--olive); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--olive-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.kb-top { border-bottom: 1px solid var(--line); background: var(--paper); }
.kb-brand { display: block; max-width: 980px; margin: 0 auto; padding: 14px 16px; color: var(--ink); text-decoration: none; letter-spacing: .08em; font-size: 1.2rem; }
.kb-brand span { color: var(--ink-soft); letter-spacing: .02em; font-size: 1rem; margin-left: .4em; }
.kb { max-width: 980px; margin: 0 auto; padding: 20px 16px 48px; }
.crumbs { font-size: .95rem; color: var(--ink-soft); margin-bottom: 14px; }
h1 { font-weight: 300; font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); line-height: 1.1; margin: 0 0 .35em; text-wrap: balance; }
h2 { font-weight: 400; font-size: 1.6rem; line-height: 1.2; margin: 1.6em 0 .5em; text-wrap: balance; }
h3 { font-weight: 500; font-size: 1.15rem; margin: 1em 0 .4em; }
h4 { font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; color: var(--turmeric-ink); margin: 1em 0 .3em; }
p { margin: 0 0 .9em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin: .25em 0; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; }
.meta { color: var(--ink-soft); font-size: .98rem; }
.few { display: inline-block; font-size: .8rem; font-weight: 500; color: var(--turmeric-ink); background: #FBF0D9; border-radius: 999px; padding: 0 .55em; margin-left: .25em; vertical-align: .1em; white-space: nowrap; }
h1 .few, h2 .few { font-size: .8rem; letter-spacing: 0; }
.tag { font-size: .8rem; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 0 .5em; white-space: nowrap; }
.also { font-size: .95rem; color: var(--ink-soft); border-left: 3px solid var(--line); padding-left: .7em; margin: .3em 0 .6em; }
.vers { background: var(--panel); border-radius: 8px; padding: 4px 18px 8px; margin: 18px 0 8px; }
.vers h2 { margin-top: .6em; font-size: 1.25rem; }
.version { border-top: 1px solid var(--line); margin-top: 28px; }
.version > h2 { margin-top: 1em; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; }
@media (min-width: 760px) { .cols { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.cols3 { columns: 1; }
@media (min-width: 640px) { .cols3 { columns: 2; } }
@media (min-width: 900px) { .cols3 { columns: 3; } }
.cols3 li { break-inside: avoid; }
.prob h3 { margin-top: 1.1em; }
.see { margin: -.2em 0 1em; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 8px; }
.kb-foot { border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .9rem; }
.kb-foot p { max-width: 980px; margin: 0 auto; padding: 16px; }
/* Change 156 (owner request, 7 Nov 2026): short lists read as one line; long tip lists show 5 at a time. */
.kb-line { max-width: 70ch; }
.kb-tips > ul > li { margin: .45em 0; }
.kb-more { font: inherit; font-size: 1rem; color: var(--olive); background: var(--card); border: 1px solid var(--olive); border-radius: 999px; padding: 10px 18px; min-height: 44px; cursor: pointer; margin: 4px 0 8px; }
.kb-more:hover { background: var(--panel); color: var(--olive-deep); }
/* Change 157 (owner request, 7 Nov 2026): tips page through 5 at a time. */
.kb-where { color: var(--ink-soft); font-size: .95rem; margin: 0 0 .4em; scroll-margin-top: 16px; }
.kb-pager { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 4px 0 8px; }
.kb-pager .kb-more { margin: 0; }
/* Change 158 (owner request, 7 Nov 2026): the front page drills down one level at a time, with a search box. */
.kb-search { margin: 6px 0 18px; max-width: 560px; }
.kb-search label { display: block; font-weight: 500; margin-bottom: 6px; }
.kb-search-row { display: flex; gap: 8px; }
.kb-search input { flex: 1; min-width: 0; font: inherit; padding: 10px 14px; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); }
.kb-search button { font: inherit; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--olive); color: #fff; cursor: pointer; }
.kb-search button:hover { background: var(--olive-deep); }
.kb-cats ul, .kb-subnav ul { list-style: none; padding: 0; margin: 0 0 1em; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kb-cats a, .kb-subnav a { display: flex; align-items: center; min-height: 52px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 1.05rem; }
.kb-cats a:hover, .kb-subnav a:hover { border-color: var(--olive); color: var(--olive-deep); }
.kb-sub[data-only] > h3 { display: none; }
.kb-trail { margin: 0 0 6px; }
/* Change 160 (owner request, 7 Nov 2026): festivals in the next 14 days, with their dates. */
.kb-dated { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.kb-dated li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.kb-dated a { font-size: 1.05rem; }
.kb-when { color: var(--muted); white-space: nowrap; font-size: .95rem; }
.kb-dated li[hidden] { display: none; }
/* Change 161 (owner request, 7 Nov 2026): the library pages carry the site's own header and footer. These are the
   site's rules for them (assets/styles.css), so the pages do not need the whole site stylesheet. */
:root { --turmeric: #D18500; --footer-bg: #E6EED8; --t-text: 1.0625rem; --t-sub: max(1.35rem, min(1.5rem, 8.4vw)); }
@media (max-width: 599px) { :root { --t-text: 1.125rem; --t-sub: max(1.42rem, min(1.625rem, 8.4vw)); } }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: 0; transform: translateY(-110%); background: var(--olive); color: #fff; padding: 10px 14px; z-index: 50; border-radius: 6px; }
.skip:focus { transform: none; color: #fff; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
html { scroll-padding-top: 64px; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(250, 247, 240, .96); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) { .site-header { background: rgba(250, 247, 240, .93); backdrop-filter: saturate(1.2) blur(10px); } }
.header-bar { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; min-height: 60px; }
.header-bar > .menu-btn { justify-self: start; }
.header-bar > .icon-btn:last-child { justify-self: end; }
.brand { justify-self: center; display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--font); font-weight: 400; font-size: max(11px, min(1.35rem, 28px, calc((100vw - 150px) / 7.6))); white-space: nowrap; }
.icon-btn { position: relative; width: 48px; height: 48px; display: inline-grid; place-items: center; background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; border-radius: 50%; }
.icon-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.icon-btn:hover { color: var(--olive-deep); background: rgba(66, 75, 34, .06); }
.menu-btn .ico-close, .menu-open .menu-btn .ico-open, .search-btn .ico-new { display: none; }
.menu-open .menu-btn .ico-close { display: block; }
.site-menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); box-shadow: 0 18px 30px -22px rgba(30, 30, 10, .45); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); max-height: calc(100dvh - 60px); overflow-y: auto; }
.site-menu[hidden] { display: none; }
.menu-inner { padding-block: 1rem .5rem; display: grid; grid-template-columns: minmax(0, 1fr); }
.menu-main { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.menu-item + .menu-item { border-top: 1px solid var(--line); }
.menu-row { display: grid; grid-template-columns: minmax(0, 1fr) 56px; }
.menu-page-link { min-width: 0; display: flex; align-items: center; min-height: 56px; font-size: var(--t-sub); color: var(--ink); text-decoration: none; }
.menu-page-link > span { white-space: nowrap; }
.menu-page-link:hover > span { text-decoration: underline; text-underline-offset: 6px; }
.menu-page-link[aria-current="page"] > span { color: var(--olive-deep); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.menu-page { display: flex; align-items: center; justify-content: center; width: 56px; min-height: 56px; margin-right: -.75rem; padding: 0; background: none; border: 0; cursor: pointer; color: var(--ink); }
.menu-page .chev { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.menu-page[aria-expanded="true"] .chev { transform: rotate(180deg); }
.menu-sub { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 2px solid var(--turmeric); }
.menu-sub li:last-child { padding-bottom: .75rem; }
.menu-sub[hidden] { display: none; }
.menu-sub a { display: flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.menu-sub a:hover { text-decoration: underline; }
@media (min-width: 900px) { .header-bar { min-height: 68px; } .brand-name { font-size: min(1.6rem, 32px); } .menu-main { max-width: 640px; } }
@media (max-width: 640px) { .header-bar { min-height: 48px; } html { scroll-padding-top: 52px; } .site-menu { max-height: calc(100dvh - 48px); } }
@media (max-width: 260px) { .wrap { padding-left: 8px; padding-right: 8px; } .icon-btn { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .menu-page .chev { transition: none; } }
.site-footer { background: var(--footer-bg); color: var(--olive-deep); border-top: 1px solid #D3DEC0; margin-top: 2.5rem; padding-block: .4rem calc(.4rem + env(safe-area-inset-bottom, 0px)); text-align: center; }
.site-footer a { color: var(--olive-deep); }
.footer-inner { display: grid; gap: 0; container-type: inline-size; }
.site-footer ul.footer-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0 1rem; }
/* Release 180: three links again (Kitchen tips removed in 177), so Help left, Terms centre, Instagram right, as in the site footer. */
.site-footer ul.footer-links:has(> li:nth-child(4)) { grid-template-columns: 1fr auto auto 1fr; }
@container (max-width: 14em) { .site-footer ul.footer-links:has(> li:nth-child(4)) { display: flex; flex-wrap: wrap; justify-content: space-between; } }
.footer-links li:first-child { justify-self: start; }
.footer-links li:last-child { justify-self: end; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-ig { min-width: 44px; justify-content: center; }
.footer-ig svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.footer-ig .dot { fill: currentColor; stroke: none; }
.copyright { margin: 0; font-size: var(--t-text); line-height: 1.4; color: var(--ink-soft); text-align: center; }
/* Change 162 (owner request, 8 Nov 2026): every section of a card is an accordion under the short summary. */
.kb-acc { border-top: 1px solid var(--line); }
.kb-acc:last-of-type { border-bottom: 1px solid var(--line); }
.kb-acc > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 4px 2px; cursor: pointer; font-size: 1.05rem; font-weight: 500; color: var(--ink); }
.kb-acc > summary::-webkit-details-marker { display: none; }
.kb-acc > summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -4px 6px 0 0; transition: transform .2s ease; }
.kb-acc[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
.kb-acc > summary:hover { color: var(--olive-deep); }
.kb-acc > section { padding: 0 0 16px; margin: 0; }
@media (prefers-reduced-motion: reduce) { .kb-acc > summary::after { transition: none; } }
main.kb > .crumbs { margin-bottom: 6px; }
main.kb > h1 { margin: 6px 0 8px; }
main.kb > .lede { margin: 0 0 6px; }
main.kb > .meta { margin: 0 0 14px; }
main.kb > h1 { font-size: 2rem; line-height: 1.15; }
main.kb > .lede { font-size: 1.05rem; line-height: 1.45; }
main.kb > .meta { font-size: .95rem; }
.kb-accs.kb-acc-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; border-top: 1px solid var(--line); }
.kb-accs.kb-acc-grid > .kb-acc { border-top: 0; border-bottom: 1px solid var(--line); min-width: 0; }
.kb-accs.kb-acc-grid > .kb-acc[open] { grid-column: 1 / -1; }
.kb-accs.kb-acc-grid > .kb-acc > summary { font-size: 1rem; line-height: 1.25; }
/* Change 163 (owner request, 8 Nov 2026): Start creating, a step-by-step companion for recipes and bases. */
.kb-create { font: inherit; font-size: 1.05rem; font-weight: 500; color: #fff; background: var(--olive); border: 0; border-radius: 999px; padding: 10px 22px; min-height: 44px; cursor: pointer; margin: 0 0 14px; }
.kb-create:hover { background: var(--olive-deep); }
html.kbc-open, html.kbc-open body { overflow: hidden; }
.kbc { position: fixed; inset: 0; z-index: 100; background: var(--paper); display: flex; flex-direction: column; height: 100dvh; }
.kbc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); padding-top: max(8px, env(safe-area-inset-top)); }
.kbc-title { margin: 0; font-weight: 500; font-size: 1.05rem; line-height: 1.25; }
.kbc-title span { display: block; font-weight: 400; font-size: .95rem; color: var(--ink-soft); }
.kbc-x { font: inherit; font-size: 1.8rem; line-height: 1; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 50%; flex: none; }
.kbc-body { flex: 1; overflow-y: auto; padding: 8px 16px 24px; max-width: 680px; width: 100%; margin: 0 auto; }
.kbc-body h2 { margin: .6em 0 .5em; }
.kbc-body h2:focus, .kbc-now:focus { outline: none; }
.kbc-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 10px 16px; padding-bottom: max(10px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.kbc-go, .kbc-back { font: inherit; font-size: 1.05rem; min-height: 48px; padding: 10px 22px; border-radius: 999px; cursor: pointer; }
.kbc-go { flex: 1; max-width: 320px; color: #fff; background: var(--olive); border: 0; font-weight: 500; }
.kbc-go:hover { background: var(--olive-deep); }
.kbc-back { color: var(--olive); background: var(--card); border: 1px solid var(--olive); }
.kbc-note { color: var(--ink-soft); }
.kbc-pick { list-style: none; padding: 0; }
.kbc-pick button { font: inherit; font-size: 1.05rem; text-align: left; width: 100%; min-height: 56px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); cursor: pointer; }
.kbc-pick button span { display: block; font-size: .92rem; color: var(--ink-soft); }
.kbc-serves { display: flex; align-items: center; gap: 18px; margin: 4px 0 10px; }
.kbc-serves output { font-size: 2.2rem; min-width: 2ch; text-align: center; }
.kbc-step { font: inherit; font-size: 1.6rem; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--olive); background: var(--card); color: var(--olive); cursor: pointer; }
.kbc-step:disabled { opacity: .4; cursor: default; }
.kbc-have { list-style: none; padding: 0; }
.kbc-have li { margin: 0; border-bottom: 1px solid var(--line); }
.kbc-have label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 2px; min-height: 44px; cursor: pointer; }
.kbc-have input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--olive); }
.kbc-have input:checked + span { color: var(--ink-soft); text-decoration: line-through; }
.kbc-left { font-weight: 500; margin-top: 14px; }
.kbc-count { color: var(--ink-soft); margin: 12px 0 6px; }
.kbc-now { font-size: 1.45rem; line-height: 1.45; }
.kbc-timer { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.kbc-clock { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.kbc-head .kbc-clock { margin-left: auto; font-size: 1.15rem; font-weight: 500; color: var(--clay); }
.kbc-head .kbc-clock:empty { display: none; }
/* Change 164: a card's picture, beside its name. */
/* Release 213: the card picture is full width and landscape (4:3, the same as the inventory site), shown whole above the name. On a phone it runs edge to edge. */
.kb-pic { display: block; width: calc(100% + 32px); max-width: none; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin: -20px -16px 14px; border-radius: 0; background: var(--panel); }
/* Release 212: a card whose picture is not made yet shows an empty frame of the same size. */
.kb-pic-empty { display: block; border: 1px solid var(--line, rgba(0,0,0,.08)); }
main.kb > .kb-accs, main.kb > section, main.kb > .kb-create { clear: both; }
@media (min-width: 700px) { .kb-pic { width: 100%; margin: 0 0 18px; border-radius: 14px; } }
/* Change 161 (release fix): the brand keeps its place before the script adds the buttons. */
.header-bar > .brand { grid-column: 2; }
/* Release 216 (owner request, 16 Nov 2026): library pages follow the device's light or dark setting, like every other
   page, with the same soft grey dark colours as the site (assets/styles.css). */
@media (prefers-color-scheme: dark) {
  html:not(.force-light) { --paper: #1F1F1D; --panel: #393936; --card: #30302E; --ink: #ECE7DA; --ink-soft: #B8B3A3;
    --olive: #B9C67F; --olive-deep: #CFDA9C; --turmeric: #E8A23A; --turmeric-ink: #F0B963; --clay: #E3907A;
    --line: #4A4944; --footer-bg: #262624; --focus: #86BDE6; --tint: #3B2317; color-scheme: dark; }
  html:not(.force-light) .few { background: #413313; }
  html:not(.force-light) .site-header { background: rgba(31, 31, 29, .96); }
  @supports (backdrop-filter: blur(1px)) { html:not(.force-light) .site-header { background: rgba(31, 31, 29, .9); } }
  html:not(.force-light) .site-footer { border-top-color: #434B35; }
  html:not(.force-light) .icon-btn:hover { background: rgba(236, 231, 218, .08); }
  html:not(.force-light) .site-menu { box-shadow: 0 18px 30px -22px rgba(0, 0, 0, .7); }
  html:not(.force-light) .skip, html:not(.force-light) .skip:focus, html:not(.force-light) .kb-search button,
  html:not(.force-light) .kb-create, html:not(.force-light) .kbc-go { color: #2D2716; }
  /* The taste panel (assets/kbq.js) takes the colours above; only its white text on the now light olive needs the dark ink. */
  html:not(.force-light) .kbq-chip[aria-expanded=true], html:not(.force-light) .kbt-chip[aria-pressed=true],
  html:not(.force-light) .kbt-rate button[aria-pressed=true], html:not(.force-light) .kbt-save,
  html:not(.force-light) .kbt-tab[aria-selected=true] { color: #2D2716; }
}

/* Release 218: nutrient table under a version */
.kb-nut { margin: 1rem 0 .5rem; }
.kb-nut table { border-collapse: collapse; width: 100%; max-width: 22rem; font-size: .95rem; }
.kb-nut th, .kb-nut td { padding: .3rem .25rem; border-bottom: 1px solid var(--line, #E4E0D6); text-align: left; font-weight: 400; }
.kb-nut td { text-align: right; white-space: nowrap; }
.kb-nut tr.sub th { padding-left: 1.1rem; color: var(--ink-soft, #5C5A52); }
.kb-nut-src { font-size: .85rem; color: var(--ink-soft, #5C5A52); margin-top: .4rem; max-width: 40rem; }

/* Release 220 (owner, 19 Nov 2026): the BhumiSutra mark replaces the name in the header. One cached file (assets/logo-mark.svg) is
   used as a mask, so the mark takes the brand brown, and a light ink in the dark theme. */
/* Release 221 (owner, 19 Nov 2026): the mark is 10% smaller, 36 px, and 40 px from 900 px wide. */
.brand-mark { display: block; width: 36px; height: 36px; background-color: #631600; -webkit-mask: url(/assets/logo-mark.svg) center / contain no-repeat; mask: url(/assets/logo-mark.svg) center / contain no-repeat; }
@media (min-width: 900px) { .brand-mark { width: 40px; height: 40px; } }
@media (prefers-color-scheme: dark) { html:not(.force-light) .brand-mark { background-color: var(--ink, #ECE7DA); } }
html.force-dark .brand-mark { background-color: var(--ink, #ECE7DA); }
@media (forced-colors: active) { .brand-mark { forced-color-adjust: none; background-color: CanvasText; } }

/* Release 221 (owner, 19 Nov 2026): on a computer (900 px and wider) the name BhumiSutra shows beside the mark; on a phone only the mark shows. */
.brand { gap: 0; }
.brand-mark + .brand-name { margin-left: 10px; }
@media (max-width: 899.98px) { .brand-mark + .brand-name { display: none; } }

/* Change 227 (owner request, 20 Nov 2026): dark chosen on the site shows dark here too, whatever the device says. */
html.force-dark { --paper: #1F1F1D; --panel: #393936; --card: #30302E; --ink: #ECE7DA; --ink-soft: #B8B3A3;
    --olive: #B9C67F; --olive-deep: #CFDA9C; --turmeric: #E8A23A; --turmeric-ink: #F0B963; --clay: #E3907A;
    --line: #4A4944; --footer-bg: #262624; --focus: #86BDE6; --tint: #3B2317; color-scheme: dark; }
  html.force-dark .few { background: #413313; }
  html.force-dark .site-header { background: rgba(31, 31, 29, .96); }
  @supports (backdrop-filter: blur(1px)) { html.force-dark .site-header { background: rgba(31, 31, 29, .9); } }
  html.force-dark .site-footer { border-top-color: #434B35; }
  html.force-dark .icon-btn:hover { background: rgba(236, 231, 218, .08); }
  html.force-dark .site-menu { box-shadow: 0 18px 30px -22px rgba(0, 0, 0, .7); }
  html.force-dark .skip, html.force-dark .skip:focus, html.force-dark .kb-search button,
  html.force-dark .kb-create, html.force-dark .kbc-go { color: #2D2716; }
  /* The taste panel (assets/kbq.js) takes the colours above; only its white text on the now light olive needs the dark ink. */
  html.force-dark .kbq-chip[aria-expanded=true], html.force-dark .kbt-chip[aria-pressed=true],
  html.force-dark .kbt-rate button[aria-pressed=true], html.force-dark .kbt-save,
  html.force-dark .kbt-tab[aria-selected=true] { color: #2D2716; }
html.force-dark .brand-mark { background-color: var(--ink, #ECE7DA); }

/* Release 228 (owner request, 20 Nov 2026): My Kitchen opens this page, under the cupboard picture with its name on it,
   and the person's own kitchen list is a card of its own. */
.mk-hero { position: relative; margin: -20px calc(50% - 50vw) 0; }
.mk-hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 72svh; object-fit: cover; object-position: 50% 55%; background: #7a5434; }
/* Release 241 (owner 20 Nov 2026 15:57): the same height as the Create page's top picture (styles.css change 74): half the
   screen height on phones, and 3/7 of the width, at most 62% of the screen height, on wider screens. */
.mk-hero img { aspect-ratio: auto; max-height: none; height: min(calc(100vw * 3 / 7), 62vh); height: min(calc(100vw * 3 / 7), 62svh); }
@media (max-width: 699px) { .mk-hero img { height: 50vh; height: 50svh; } }
.mk-hero-title { position: absolute; left: 0; right: 0; top: 0; padding: clamp(.9rem, 3vw, 2.5rem) max(16px, calc((100vw - 980px) / 2 + 16px)) clamp(2.5rem, 8vw, 6rem); color: #fff;
  background: linear-gradient(to bottom, rgba(20, 20, 16, .78), rgba(20, 20, 16, .45) 60%, rgba(20, 20, 16, 0)); text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
.mk-hero-title h1 { margin: 0; color: #fff; }
.mk-hero-sub { margin: .3em 0 0; font-size: clamp(1.1rem, 1rem + .9vw, 1.6rem); line-height: 1.25; }
.mk-card { margin: 20px 0 28px; padding: 18px 16px 20px; max-width: 720px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
@media (min-width: 700px) { .mk-card { padding: 22px 26px 24px; } }
.mk-card h2 { margin: 0 0 .25em; }
/* Release 241 (owner 20 Nov 2026 15:57): the season and moon card sits on the top picture, see-through, in the page's light
   or dark colours, both lines in the same font. */
.mk-sky { position: absolute; left: max(16px, calc((100vw - 980px) / 2 + 16px)); bottom: 16px; max-width: calc(100% - 32px); padding: 10px 16px;
  border-radius: 12px; color: var(--ink); background: rgba(255, 253, 248, .74); background: color-mix(in srgb, var(--card) 74%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 2px 12px rgba(0, 0, 0, .18); font-size: 1.0625rem; line-height: 1.4; }
.mk-sky:empty { display: none; }
.mk-sky p { margin: 0; }
.mk-sky a { color: inherit; text-decoration: none; }
.mk-sky strong { font-weight: 700; }
/* Release 242: Change picture, for a signed-in person, on the top picture's upper right. */
.mk-hero-tools { position: absolute; right: max(16px, calc((100vw - 980px) / 2 + 16px)); top: 16px; z-index: 2; }
.mk-hero-tools[hidden] { display: none; }
.mk-hero-tools summary { list-style: none; }
.mk-hero-tools summary::-webkit-details-marker { display: none; }
.mk-hero-menu { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-top: 8px; }
.mk-hero-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; font: inherit; font-size: .95rem; cursor: pointer;
  color: var(--ink); background: rgba(255, 253, 248, .74); background: color-mix(in srgb, var(--card) 74%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 2px 12px rgba(0, 0, 0, .18); }
.mk-hero-btn:focus-within, .mk-hero-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.mk-lead { margin: 0 0 .8em; color: var(--ink-soft); }
.mk-muted { color: var(--ink-soft); }
.mk-who { margin: 0 0 .6em; font-size: .95rem; }
.mk-sub { font-size: 1.15rem; font-weight: 500; margin: 1.1em 0 .45em; }
.mk-sub-s { font-weight: 500; margin: .9em 0 .3em; }
.mk-items { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mk-items li { display: inline-flex; align-items: center; gap: 2px; padding: 2px 2px 2px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.mk-remove { font: inherit; font-size: 1.3rem; line-height: 1; width: 44px; height: 40px; border: 0; border-radius: 999px; background: none; color: var(--ink-soft); cursor: pointer; }
.mk-remove:hover { color: var(--clay); background: var(--panel); }
.mk-pick { display: grid; gap: 10px; }
@media (min-width: 600px) { .mk-pick { grid-template-columns: 1fr 1fr; } }
.mk-field label, .mk-add > label { display: block; font-weight: 500; margin-bottom: 6px; }
.mk-card select, .mk-card input[type=text], .mk-card input:not([type]) { width: 100%; min-width: 0; font: inherit; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.mk-card select:disabled { opacity: .6; }
.mk-add { margin-top: 12px; }
.mk-add-row { display: flex; gap: 8px; }
.mk-add-row input { flex: 1; }
.mk-btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--olive); color: #fff; text-decoration: none; cursor: pointer; }
a.mk-btn:hover, .mk-btn:hover { background: var(--olive-deep); color: #fff; }
.mk-quiet { font: inherit; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--olive); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mk-err { color: var(--clay); margin: 6px 0 0; }
.mk-err[hidden] { display: none; }
.mk-clear { margin: 8px 0 0; }
.mk-want { margin: 18px 0 4px; padding: 0; border: 0; }
.mk-want legend { font-size: 1.15rem; font-weight: 500; padding: 0; margin-bottom: 6px; }
.mk-check { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; }
.mk-check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--olive); }
.mk-ask { margin: 12px 0 0; }
.mk-ideas { margin: 0; padding-left: 1.2em; }
.mk-ideas li { margin: .35em 0; }
.suggest-wrap { position: relative; }
.suggest-list { position: absolute; z-index: 45; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: .3rem 0; list-style: none; max-height: 16rem; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 24px -16px rgba(0, 0, 0, .45); }
.suggest-list[hidden] { display: none; }
.suggest-list li { padding: .55rem .9rem; cursor: pointer; }
.suggest-list li[aria-selected=true], .suggest-list li:hover { background: var(--panel); }
.suggest-note { font-size: .9rem; color: var(--ink-soft); }
dialog.bs-notice { max-width: min(28rem, calc(100vw - 32px)); padding: 20px 20px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); }
dialog.bs-notice::backdrop { background: rgba(20, 20, 16, .55); }
dialog.bs-notice h2 { margin: 0 0 .4em; font-size: 1.4rem; }
dialog.bs-notice p { margin: 0 0 .8em; }
.mk-acc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
dialog .btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); background: none; color: var(--ink); }
dialog .btn-primary { border: 0; background: var(--olive); color: #fff; }
dialog .linklike { font: inherit; border: 0; background: none; padding: 0; color: var(--olive); text-decoration: underline; cursor: pointer; }
@media (prefers-color-scheme: dark) { html:not(.force-light) .mk-btn, html:not(.force-light) a.mk-btn:hover, html:not(.force-light) dialog .btn-primary { color: #2D2716; } }
html.force-dark .mk-btn, html.force-dark a.mk-btn:hover, html.force-dark dialog .btn-primary { color: #2D2716; }

/* The animated mark, copied from assets/styles.css (change 226): ui.js now runs on this page too. */
/* Animated logo loader (owner request, change 226): the mark drawn faint, with a highlight that travels clockwise along the
   cord, one lap every 2.4 s. It shows in the header while the next page is on its way, and beside the words while Ask thinks.
   With reduced motion the still mark shows. Same colours as the mark. */
.bs-loader { display: block; width: 100%; height: 100%; }
.bs-loader .bsl-base { opacity: .24; }
.bs-loader .bsl-r1 { stroke-dasharray: 12.34 87.66; animation: bsl-k1 var(--bsl-speed, 2.4s) linear infinite; }
@keyframes bsl-k1 { from { stroke-dashoffset: 6.17; } to { stroke-dashoffset: -93.83; } }
.bs-loader .bsl-r2 { stroke-dasharray: 12.66 87.34; animation: bsl-k2 var(--bsl-speed, 2.4s) linear infinite; }
@keyframes bsl-k2 { from { stroke-dashoffset: 6.33; } to { stroke-dashoffset: -93.67; } }
.bs-loader .bsl-r3 { stroke-dasharray: 13.04 86.96; animation: bsl-k3 var(--bsl-speed, 2.4s) linear infinite; }
@keyframes bsl-k3 { from { stroke-dashoffset: 6.52; } to { stroke-dashoffset: -93.48; } }
.bs-loader .bsl-r4 { stroke-dasharray: 13.49 86.51; animation: bsl-k4 var(--bsl-speed, 2.4s) linear infinite; }
@keyframes bsl-k4 { from { stroke-dashoffset: 6.75; } to { stroke-dashoffset: -93.25; } }
.bs-loader .bsl-r5 { stroke-dasharray: 14.05 85.95; animation: bsl-k5 var(--bsl-speed, 2.4s) linear infinite; }
@keyframes bsl-k5 { from { stroke-dashoffset: 7.02; } to { stroke-dashoffset: -92.98; } }
.bs-loader .bsl-r6 { stroke-dasharray: 14.71 85.29; animation: bsl-k6 var(--bsl-speed, 2.4s) linear infinite; }
@keyframes bsl-k6 { from { stroke-dashoffset: 7.36; } to { stroke-dashoffset: -92.64; } }
.bs-loader .bsl-r7 { stroke-dasharray: 15.51 84.49; animation: bsl-k7 var(--bsl-speed, 2.4s) linear infinite; }
@keyframes bsl-k7 { from { stroke-dashoffset: 7.76; } to { stroke-dashoffset: -92.24; } }
.bs-loader .bsl-r8 { stroke-dasharray: 16.48 83.52; animation: bsl-k8 var(--bsl-speed, 2.4s) linear infinite; }
@keyframes bsl-k8 { from { stroke-dashoffset: 8.24; } to { stroke-dashoffset: -91.76; } }
.bs-loader .bsl-r9 { stroke-dasharray: 17.64 82.36; animation: bsl-k9 var(--bsl-speed, 2.4s) linear infinite; }
@keyframes bsl-k9 { from { stroke-dashoffset: 8.82; } to { stroke-dashoffset: -91.18; } }
.bs-loader .bsl-r10 { stroke-dasharray: 19.04 80.96; animation: bsl-k10 var(--bsl-speed, 2.4s) linear infinite; }
@keyframes bsl-k10 { from { stroke-dashoffset: 9.52; } to { stroke-dashoffset: -90.48; } }
.bs-loader .bsl-r11 { stroke-dasharray: 20.73 79.27; animation: bsl-k11 var(--bsl-speed, 2.4s) linear infinite; }
@keyframes bsl-k11 { from { stroke-dashoffset: 10.36; } to { stroke-dashoffset: -89.64; } }
.bs-loader .bsl-r12 { stroke-dasharray: 22.76 77.24; animation: bsl-k12 var(--bsl-speed, 2.4s) linear infinite; }
@keyframes bsl-k12 { from { stroke-dashoffset: 11.38; } to { stroke-dashoffset: -88.62; } }
.bs-loader .bsl-r13 { stroke-dasharray: 25.21 74.79; animation: bsl-k13 var(--bsl-speed, 2.4s) linear infinite; }
@keyframes bsl-k13 { from { stroke-dashoffset: 12.60; } to { stroke-dashoffset: -87.40; } }
.bs-loader .bsl-r14 { stroke-dasharray: 28.16 71.84; animation: bsl-k14 var(--bsl-speed, 2.4s) linear infinite; }
@keyframes bsl-k14 { from { stroke-dashoffset: 14.08; } to { stroke-dashoffset: -85.92; } }
.bs-loader .bsl-r15 { stroke-dasharray: 31.72 68.28; animation: bsl-k15 var(--bsl-speed, 2.4s) linear infinite; }
@keyframes bsl-k15 { from { stroke-dashoffset: 15.86; } to { stroke-dashoffset: -84.14; } }
.bs-loader .bsl-r16 { stroke-dasharray: 36.00 64.00; animation: bsl-k16 var(--bsl-speed, 2.4s) linear infinite; }
@keyframes bsl-k16 { from { stroke-dashoffset: 18.00; } to { stroke-dashoffset: -82.00; } }
@media (prefers-reduced-motion: reduce) { .bs-loader [class^="bsl-r"] { animation: none; display: none; } .bs-loader .bsl-base { opacity: 1; } }
.brand-load, .ask-load { color: #631600; }
@media (prefers-color-scheme: dark) { html:not(.force-light) .brand-load, html:not(.force-light) .ask-load { color: var(--ink); } }
html.force-dark .brand-load, html.force-dark .ask-load { color: var(--ink); }
@media (forced-colors: active) { .brand-load, .ask-load { color: CanvasText; } }
.brand-load { display: none; width: 36px; height: 36px; }
@media (min-width: 900px) { .brand-load { width: 40px; height: 40px; } }
html.bs-leaving .brand-mark { display: none; }
html.bs-leaving .brand-load { display: block; }

/* Change 229 (owner request, 20 Nov 2026): the recipe pictures under every card; a row to swipe on a phone, a grid of thumbnails on a computer. */
.kb-rel { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.kb-rel h2 { margin: 0 0 12px; }
.kb-rel-row { list-style: none; margin: 0 -16px; padding: 2px 16px 12px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 44%);
  gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 16px; -webkit-overflow-scrolling: touch; }
.kb-rel-row[aria-busy] { min-height: 250px; }
.kb-rel-row li { margin: 0; scroll-snap-align: start; min-width: 0; }
.kb-rel-row a { display: flex; flex-direction: column; gap: 2px; height: 100%; padding-bottom: 10px; color: var(--ink); text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.kb-rel-row a:focus-visible { outline-offset: -3px; }
.kb-rel-row img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--panel); margin-bottom: 6px; }
.kb-rel-n { padding: 0 10px; font-weight: 500; line-height: 1.25; color: var(--olive); }
.kb-rel-row a:hover .kb-rel-n { text-decoration: underline; }
.kb-rel-m { padding: 0 10px; font-size: .9rem; line-height: 1.3; color: var(--ink-soft); }
@media (min-width: 700px) { .kb-rel-row { margin: 0; padding: 2px 0 0; grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; scroll-snap-type: none; } }
@media (min-width: 960px) { .kb-rel-row { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: no-preference) { .kb-rel-row { scroll-behavior: smooth; } }

/* Release 231 (owner request, 20 Nov 2026): the shelf (the person's own kitchen) above, Add Ingredients (where things come from) below. */
.mk-shelf { margin: 14px -4px 0; padding: 10px 12px 0; border-radius: 12px 12px 4px 4px; background: var(--shelf-wall, #F3E6D1); }
.mk-shelf .mk-sub { margin: 0 0 8px; }
.mk-count { color: var(--ink-soft); font-weight: 400; }
.mk-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-bottom: 12px; }
.mk-empty p { margin: 0; }
.mk-jars { list-style: none; margin: 0; padding: 4px 0 8px; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.mk-jars li { position: relative; width: 74px; display: flex; flex-direction: column; align-items: center; text-align: center; font-size: .9rem; line-height: 1.15; }
.mk-jars .mk-pic { width: 56px; height: 56px; }
.mk-out { position: absolute; top: -6px; right: 0; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; font: inherit; font-size: 1.05rem; line-height: 1;
  border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink-soft); cursor: pointer; }
.mk-out::after { content: ""; position: absolute; inset: -7px; }
.mk-out:hover { color: var(--clay); }
.mk-plank { height: 14px; margin: 0 -12px; border-radius: 2px; background: linear-gradient(var(--wood, #B98A57), var(--wood-dark, #8C6239)); border-bottom: 3px solid var(--wood-edge, #6E4A27); }
.mk-more { margin: 12px 0 0; }
.mk-shop { margin: 18px -4px 0; padding: 4px 12px 14px; border-radius: 12px; background: var(--market, #E9EFE0); border: 1px solid var(--market-line, #C9D3B6); }
.mk-cats { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px; overscroll-behavior-x: contain; }
.mk-cat { flex: none; min-height: 44px; padding: 0 14px; font: inherit; white-space: nowrap; border: 1px solid var(--market-line, #C9D3B6); border-radius: 999px; background: var(--card); color: var(--ink); cursor: pointer; }
.mk-cat[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); color: #fff; }
.mk-goods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.mk-goods button { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px 8px; font: inherit; font-size: .95rem; line-height: 1.15;
  border: 0; border-radius: 12px; background: none; color: var(--ink); cursor: pointer; }
.mk-goods button[aria-disabled="true"] { opacity: .45; cursor: default; }
.mk-got { font-size: .8rem; color: var(--olive); min-height: 1em; }
.mk-pic { display: block; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--panel); }
.mk-pic-l { display: grid; place-items: center; color: var(--ink-soft); font-size: 1.4rem; }
.mk-flyer { position: fixed; z-index: 60; margin: 0; pointer-events: none; box-shadow: 0 8px 18px rgba(0, 0, 0, .25); }
.mk-landed { animation: mk-land .45s ease-out; }
@keyframes mk-land { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .mk-landed { animation: none; } }
@media (prefers-color-scheme: dark) { html:not(.force-light) { --shelf-wall: #2E2721; --wood: #7A5634; --wood-dark: #5E4026; --wood-edge: #3F2A17; --market: #262C20; --market-line: #3E4733; }
  html:not(.force-light) .mk-cat[aria-pressed="true"] { color: #2D2716; } }
html.force-dark { --shelf-wall: #2E2721; --wood: #7A5634; --wood-dark: #5E4026; --wood-edge: #3F2A17; --market: #262C20; --market-line: #3E4733; }
html.force-dark .mk-cat[aria-pressed="true"] { color: #2D2716; }
@media (forced-colors: active) { .mk-plank { background: CanvasText; } .mk-cat[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; } }

/* Release 232 (owner 20 Nov 2026 10:11 "check why they are not being displayed in rows and columns"): the shelf is a grid
   with pictures aligned at the top, so a one-line name no longer sits lower than its two-line neighbours. */
.mk-jars { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px 8px; align-items: start; }
.mk-jars li { width: auto; }
.mk-out { right: calc(50% - 40px); }
.mk-goods { align-items: start; }
.mk-goods li { margin: 0; }
.mk-got:empty { display: none; }

/* Release 234 (owner 20 Nov 2026 10:26): Add Ingredients is a row of category cards that slides sideways, each with a
   picture above its name and all its ingredients, in the style of the recipe pictures. */
.mk-aisles { list-style: none; margin: 0 -12px; padding: 2px 12px 12px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 84%);
  gap: 12px; align-items: start; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 12px; -webkit-overflow-scrolling: touch; }
.mk-aisle { margin: 0; scroll-snap-align: start; min-width: 0; padding-bottom: 8px; background: var(--card); border: 1px solid var(--market-line, #C9D3B6); border-radius: 12px; overflow: hidden; }
.mk-aisle-pic { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--panel); }
.mk-aisle-n { margin: 8px 10px 6px; font-size: 1.05rem; font-weight: 500; line-height: 1.25; color: var(--olive); text-transform: none; letter-spacing: normal; }
.mk-aisle .mk-goods { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 0 4px; }
.mk-aisle .mk-goods button { font-size: .88rem; padding: 4px 2px 6px; }
.mk-aisle .mk-pic { width: 52px; height: 52px; }
@media (min-width: 700px) { .mk-aisles { grid-auto-columns: 300px; } }
@media (prefers-reduced-motion: no-preference) { .mk-aisles { scroll-behavior: smooth; } }

/* Release 236 (owner 20 Nov 2026 13:33): Ideas from what you have slide sideways as cards, like the Add Ingredients categories. */
.mk-idea-row { list-style: none; margin: 0 -12px; padding: 2px 12px 12px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 84%);
  gap: 12px; align-items: stretch; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 12px; -webkit-overflow-scrolling: touch; }
.mk-idea { margin: 0; scroll-snap-align: start; min-width: 0; background: var(--card); border: 1px solid var(--market-line, #C9D3B6); border-radius: 12px; overflow: hidden; }
.mk-idea-b { padding: 0 12px 12px; }
.mk-idea-b p { margin: 0 0 6px; }
.mk-idea-k { margin: 10px 0 0 !important; font-size: .82rem; color: var(--ink-soft); }
.mk-idea .mk-aisle-n { margin: 2px 0 6px; }
@media (min-width: 700px) { .mk-idea-row { grid-auto-columns: 300px; } }
@media (prefers-reduced-motion: no-preference) { .mk-idea-row { scroll-behavior: smooth; } }
/* Release 245: twelve at a time in each Add Ingredients category, with Next. */
.mk-all { margin: 6px 0 0; padding: 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .88rem; }
.mk-all .mk-quiet { min-height: 44px; padding: 0 8px; font-weight: 600; }
/* Release 245: the category name sits on its picture, over a dark fade so it reads on any photo. */
.mk-aisle-top { position: relative; margin-bottom: 8px; }
.mk-aisle-top .mk-aisle-n { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 28px 12px 10px; color: #fff; font-size: 1.15rem; font-weight: 600;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.72)); text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.mk-aisle-top .mk-aisle-n .mk-count { color: #fff; opacity: .9; font-weight: 500; }
/* Release 246 (owner 21 Nov 2026 07:02): every category card is the same height. Cards stretch to the tallest, each name
   takes two lines at most (the full name is in the button's label and tooltip), and the count and Next sit at the foot. */
.mk-aisles { align-items: stretch; }
.mk-aisle { display: flex; flex-direction: column; }
.mk-aisle .mk-goods { flex: 1 0 auto; align-content: start; }
.mk-aisle .mk-goods button > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-height: 2.3em; overflow-wrap: anywhere; }
.mk-aisle .mk-all { margin-top: auto; }
/* Release 250 (owner 21 Nov 2026 12:41): the shelves no longer stand on a wooden plank. The panel takes the opposite colour
   scheme to the page, dark on a light page and light on a dark one, so the kitchen cabinet stands apart from the rest. */
.mk-plank { display: none; }
.mk-shelf { padding: 12px 12px 10px; border-radius: 12px; color: var(--ink); color-scheme: dark; background: #2A2A27;
  --ink: #ECE7DA; --ink-soft: #B8B3A3; --card: #3A3A37; --panel: #45453F; --line: #5A5952; --olive: #B9C67F; --clay: #E3907A; --focus: #86BDE6; }
.mk-shelf .mk-btn { color: #2D2716; }
html.force-dark .mk-shelf { color-scheme: light; background: #F4EFE3;
  --ink: #25261F; --ink-soft: #5B5B4D; --card: #FFFDF8; --panel: #E8E1D1; --line: #D2C9B5; --olive: #424B22; --clay: #9E4A30; --focus: #1F5F8B; }
html.force-dark .mk-shelf .mk-btn { color: #fff; }
@media (prefers-color-scheme: dark) {
  html:not(.force-light) .mk-shelf { color-scheme: light; background: #F4EFE3;
    --ink: #25261F; --ink-soft: #5B5B4D; --card: #FFFDF8; --panel: #E8E1D1; --line: #D2C9B5; --olive: #424B22; --clay: #9E4A30; --focus: #1F5F8B; }
  html:not(.force-light) .mk-shelf .mk-btn { color: #fff; }
}
@media (forced-colors: active) { .mk-shelf { border: 1px solid CanvasText; } }
