/* Archivo (SIL Open Font License), lokaal gehost: geen Google Fonts nodig */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-italic.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap; }

/* =====================================================================
   Eet up, v4. Richting: Mob (wit, zacht oranje, brede zware koppen, pillen).
   Let op: de variabelen heten nog --lime (historisch), maar zijn nu oranje.
   Accent = zacht abrikoos, --peach = zacht botergeel (tweede accent).
   ===================================================================== */
:root {
  --ink: #0D1B1E;
  --ink-2: #3B4648;
  --muted: #5E6769;
  --paper: #fff;
  --lime: #F5A26A;       /* accent: zacht oranje (abrikoos) */
  --lime-soft: #FDF1E7;  /* heel licht oranje, voor vlakken */
  --lime-deep: #EC8A4B;  /* iets dieper oranje, voor hover */
  --peach: #F7E3A6;      /* tweede accent: zacht botergeel */
  --grey: #F0F0EE;
  --grey-2: #E4E4E1;
  --line: #E6E6E3;
  --red: #C8321E;
  --online: #1FA85A;
  /* oude namen, gemapt op het nieuwe palet */
  --mustard: var(--lime);
  --tomato: var(--peach);
  --mint: var(--lime-soft);
  --lilac: #ECE8F7;
  --sky: #E3EEF6;
  --pink: #F8D9DC;
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wrap: 1400px;
  --gut: clamp(16px, 3.4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.5; font-stretch: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); font-weight: 400; }
.strong { font-weight: 700; text-decoration: none; }
.plain { text-decoration: none; }
.plain:hover { text-decoration: underline; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.mt { margin-top: 2.5rem; }

h1, h2, h3 { font-stretch: 125%; font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
h3 { font-size: 1.15rem; font-stretch: 110%; }
p { margin: 0 0 .6em; }
.lead { font-size: 1.2rem; max-width: 62ch; color: var(--ink-2); }
.lead.small { font-size: 1rem; }
code { background: var(--grey); padding: 2px 6px; border-radius: 6px; font-size: .9em; }

/* ---------------------------------------------------------------- knoppen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .95em 1.5em; border-radius: 999px; border: 0;
  background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s ease, transform .12s ease;
}
.btn:hover { background: #24363a; }
.btn:active { transform: translateY(1px); }
.btn.lime { background: var(--lime); color: var(--ink); }
.btn.lime:hover { background: var(--lime-deep); }
.btn.ghost { background: var(--grey); color: var(--ink); }
.btn.ghost:hover { background: var(--grey-2); }
.btn.small { font-size: .9rem; padding: .7em 1.1em; }
.btn.big { font-size: 1.1rem; padding: 1.05em 1.8em; }
.btn.danger { background: var(--red); color: #fff; }
.link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: pointer; color: inherit; }
.link.small { font-size: .9rem; }
.link.danger { color: var(--red); }
.pill-btn { display: inline-flex; align-items: center; gap: .5rem; background: var(--grey); border-radius: 999px; padding: .35rem .8rem .35rem .35rem; font-weight: 600; cursor: pointer; }
.pill-btn:hover { background: var(--grey-2); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--grey); color: var(--ink); border: 0; cursor: pointer; flex: none; text-decoration: none; }
.icon-btn .ic { width: 21px; height: 21px; }
.icon-btn:hover { background: var(--grey-2); }
.icon-btn.on, .icon-btn.dark { background: var(--ink); color: var(--paper); }
.icon-btn.dark[aria-expanded="true"] { background: var(--lime); color: var(--ink); }
.icon-btn.grey { width: 40px; height: 40px; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: .72rem; font-weight: 800; }
.icon-btn .count { position: absolute; top: -4px; right: -4px; box-shadow: 0 0 0 2px var(--paper); }

/* labels / tags */
.tag { display: inline-flex; align-items: center; padding: .38em .85em; border-radius: 999px; font-size: .85rem; font-weight: 600; line-height: 1; white-space: nowrap; }
.tag-lime { background: var(--lime); }
.tag-peach { background: var(--peach); }
.tag-white { background: var(--paper); }
.pill-mini { display: inline-block; font-size: .78rem; font-weight: 600; padding: .2em .7em; border-radius: 999px; background: var(--paper); }

/* formulieren */
input, select, textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--grey-2); border-radius: var(--r-sm); padding: .75em .9em; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
textarea { resize: vertical; line-height: 1.45; }
textarea.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--ink); }
input[type=file] { border-style: dashed; padding: .6em; background: var(--grey); }
label { display: flex; flex-direction: column; gap: .35em; font-weight: 600; }
label .muted { font-weight: 400; font-size: .88rem; }
label.check { flex-direction: row; align-items: center; gap: .55em; font-weight: 500; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; margin-bottom: .5rem; padding: 0; }
.stack { display: flex; flex-direction: column; gap: 1.1rem; }
.row { display: flex; gap: .7rem; align-items: center; }
.row.wrap { flex-wrap: wrap; align-items: flex-end; }
.row .grow { flex: 1 1 220px; }
.full { width: 100%; }
.cols-2, .cols-3 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cols-2 { grid-template-columns: 1fr 1fr; } .cols-3 { grid-template-columns: repeat(3, 1fr); } }
.panel { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.2rem, 3vw, 2rem); margin-bottom: 1.5rem; }
.danger-zone { border-color: #F2C9C1; margin-top: 2rem; }
form.inline, .inline { display: inline; }
.flash { max-width: var(--wrap); margin: 1rem auto; padding: .95rem 1.3rem; border-radius: var(--r-md); background: var(--lime-soft); font-weight: 600; }
main > .flash { margin: 1rem var(--gut); }
.flash.err { background: var(--pink); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6em 1em; z-index: 99; }
.skip:focus { left: 8px; top: 8px; }
.hide-sm { display: none !important; }
@media (min-width: 760px) { .hide-sm { display: inline-flex !important; } }

/* ---------------------------------------------------------------- header */
.promo { display: block; background: var(--lime); text-align: center; padding: .7rem var(--gut); font-weight: 700; text-decoration: none; font-size: .98rem; }
.promo u { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.promo:hover u { text-decoration-thickness: 2.5px; }
/* Lagen (z-index), van laag naar hoog. Houd je hieraan, anders vallen menu's achter elkaar:
   1-10  kleine dingen binnen de pagina (knop op receptkaart, opslaan-balken)
   30    filterbalk op Alle recepten (met zijn uitklappanelen)
   45    uitklapmenu's in de pagina (zoeksuggesties onder het grote zoekveld, @-vermelden)
   50    kopbalk bovenaan (plakt bij scrollen); zijn eigen menu's (account, zoeksuggesties) zitten erin
   90+   meldingen, schermvullende lagen (kookmodus, reels, emoji, foto groot, filtervel op mobiel) */
.top { position: sticky; top: 0; z-index: 50; background: var(--paper); }
.top-inner { max-width: var(--wrap); margin: 0 auto; padding: 1rem var(--gut) .6rem; display: flex; align-items: center; gap: .8rem 1.5rem; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.logo-word { font-size: 1.75rem; font-weight: 900; font-stretch: 125%; letter-spacing: -0.04em; line-height: 1; text-transform: lowercase; }
.logo-slogan { display: none; font-size: 1.35rem; font-weight: 400; font-stretch: 112%; letter-spacing: -0.01em; padding-left: 1rem; border-left: 1.5px solid var(--ink); line-height: 1.3; }
@media (min-width: 1100px) { .logo-slogan { display: inline; } }
.top-search { order: 3; flex: 1 1 100%; display: flex; align-items: center; gap: .6rem; background: var(--grey); border-radius: 999px; padding: 0 1.2rem; }
.top-search .ic { color: var(--muted); width: 22px; height: 22px; }
.top-search input { border: 0; background: transparent; padding: .9rem 0; font-size: 1.02rem; }
.top-search:focus-within { box-shadow: 0 0 0 2px var(--ink); }
.top-search input::-webkit-search-cancel-button { cursor: pointer; }
@media (min-width: 900px) { .top-search { order: 0; flex: 1 1 380px; max-width: 760px; margin-left: auto; } }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
@media (min-width: 900px) { .top-actions { margin-left: 0; padding-left: 1.2rem; border-left: 1.5px solid var(--line); } }
.mainnav { max-width: var(--wrap); margin: 0 auto; padding: .4rem var(--gut) .9rem; display: flex; gap: 2.2rem; overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a { text-decoration: none; font-weight: 600; font-size: 1.08rem; font-stretch: 108%; white-space: nowrap; padding: .25rem 0; border-bottom: 2.5px solid transparent; }
.mainnav a:hover { border-bottom-color: var(--grey-2); }
.mainnav a[aria-current] { border-bottom-color: var(--ink); }
.usermenu { position: relative; }
.usermenu summary { list-style: none; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu-pop { position: absolute; z-index: 5; right: 0; top: calc(100% + 10px); background: var(--paper); border-radius: var(--r-md); padding: .5rem; min-width: 210px; display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(13, 27, 30, .16); z-index: 30; }
.usermenu-pop a, .usermenu-pop button { text-align: left; padding: .65em .9em; border-radius: 10px; text-decoration: none; font: inherit; font-weight: 500; background: none; border: 0; cursor: pointer; width: 100%; }
.usermenu-pop a:hover, .usermenu-pop button:hover { background: var(--grey); }

/* avatars */
.avatar { border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; font-weight: 700; flex: none; font-stretch: 100%; }
.avatar.xs { width: 28px; height: 28px; font-size: .78rem; }
.avatar.sm { width: 40px; height: 40px; font-size: .95rem; }
.avatar.md { width: 54px; height: 54px; }
.avatar.lg { width: 92px; height: 92px; font-size: 2rem; }
.avatar.xl { width: clamp(110px, 16vw, 170px); height: clamp(110px, 16vw, 170px); font-size: 3.6rem; }
.tone0 { background: var(--lime); } .tone1 { background: var(--peach); } .tone2 { background: #D9D2F2; } .tone3 { background: #CFE3F1; }
.avatar-wrap { position: relative; display: inline-flex; flex: none; }
.online-dot { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 2px var(--paper); }
.avatar-wrap.big .online-dot { width: 22px; height: 22px; right: 8%; bottom: 8%; box-shadow: 0 0 0 3px var(--paper); }
.site-dot { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grey); font-size: .78rem; font-weight: 700; flex: none; }
.mention { font-weight: 600; text-decoration: none; background: var(--lime-soft); border-radius: 6px; padding: 0 .25em; }
.mention:hover { background: var(--lime); }

/* ---------------------------------------------------------------- layout */
main { min-height: 70vh; }
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(1.8rem, 4vw, 3rem) var(--gut); }
.section.narrow { max-width: 860px; }
.section.tight { padding-top: .8rem; padding-bottom: .8rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.section-head h1, .section-head h2 { margin: 0; }
.hint { margin-top: 1rem; }
.empty { background: var(--grey); border-radius: var(--r-lg); padding: 2.2rem 1.5rem; text-align: center; max-width: 680px; margin: 1rem auto; }
.empty p:first-child { font-size: 1.3rem; font-weight: 700; font-stretch: 112%; }

/* ---------------------------------------------------------------- hero */
.hero { max-width: calc(var(--wrap) - 2 * var(--gut)); margin: .4rem auto 0; margin-left: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut))); margin-right: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut))); background: var(--lime-soft); border-radius: var(--r-xl); padding: clamp(1.8rem, 5vw, 5rem) clamp(1.5rem, 5vw, 6rem); display: grid; gap: 2.5rem; align-items: center; overflow: hidden; }
@media (min-width: 1000px) { .hero { grid-template-columns: 1.1fr 1fr; min-height: 560px; padding-top: 3rem; padding-bottom: 3rem; } }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); font-weight: 900; letter-spacing: -0.035em; line-height: 1.02; max-width: 12ch; margin-bottom: 2rem; }
.checks { list-style: none; padding: 0; margin: 0 0 2.2rem; display: flex; flex-direction: column; gap: .65rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.checks li { display: flex; gap: .7rem; align-items: baseline; }
.checks .ic { stroke-width: 3; transform: translateY(.15em); }
.have-form { display: flex; flex-wrap: wrap; gap: .6rem; max-width: 620px; }
.have-form input { flex: 1 1 280px; border: 0; border-radius: 999px; padding: 1.05em 1.4em; font-size: 1.02rem; }
.have-form input:focus { box-shadow: 0 0 0 2px var(--ink); }
.have-form.small { margin-top: .5rem; }
.have-form.small input { background: var(--grey); }
.hero-alt { margin: 1.2rem 0 0; }
.collage { display: none; }
@media (min-width: 1000px) {
  /* 3 kolommen vierkante foto's die boven en onder doorlopen tot de rand (rechts 2rem ruimte); elke kolom begint op een andere hoogte.
     contain: size = de collage krijgt de hoogte van de tekst (min. 560px) en de foto's rekken het blok niet op. */
  .collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; align-self: stretch; contain: size; overflow: hidden;
    margin: -3rem calc(2rem - clamp(1.5rem, 5vw, 6rem)) -3rem 0; }
  .collage-col { display: flex; flex-direction: column; gap: 16px; }
  /* alle kolommen beginnen even hoog; links en rechts schuiven een halve foto omlaag via een leeg blokje
     (aspect-ratio 2/1 = halve foto; -8px = de helft van de gap) */
  .collage-col { margin-top: -120px; }
  .collage-col.c0::before, .collage-col.c2::before { content: ""; display: block; aspect-ratio: 2 / 1; margin-bottom: -8px; }
  .collage-col a { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1; }
  .collage img { width: 100%; height: 100%; object-fit: cover; }
}
.search-head { padding-bottom: .5rem; }
.search-head h1 { margin: 0; }

/* chips */
.chips-section { padding-top: 1.8rem; padding-bottom: .4rem; }
.chips-bar { display: flex; align-items: center; gap: .8rem; }
.chips-row { display: flex; gap: .6rem; overflow-x: auto; scrollbar-width: none; flex: 1; padding: 2px; }
.chips-row::-webkit-scrollbar { display: none; }
.chip-link { display: inline-flex; align-items: center; gap: .5em; white-space: nowrap; text-decoration: none; background: var(--grey); padding: .85em 1.35em; border-radius: 999px; font-weight: 500; font-size: 1rem; }
.chip-link:hover { background: var(--grey-2); }
.chip-link.on { background: var(--ink); color: var(--paper); }
.chip-link .ic { width: 1em; height: 1em; }
.chips-divider { width: 1.5px; height: 44px; background: var(--line); flex: none; margin-left: auto; }
.filter-panel { margin-top: 1rem; background: var(--grey); border-radius: var(--r-lg); padding: 1.3rem; }
.filter-panel[hidden] { display: none; }
.filters { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.filters label { font-size: .88rem; }
.filters select { border-color: transparent; border-radius: 999px; padding: .75em 1em; }
.filters.inline { margin-bottom: 1.8rem; max-width: 760px; }
.filters.inline select { background: var(--grey); }
.filter-actions { margin: 1rem 0 0; display: flex; gap: 1rem; align-items: center; }
.chip { flex-direction: row; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: .7em 1.2em; border-radius: 999px; font-weight: 500; background: var(--grey); }
.chip input:checked + span { background: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------------------------------------------------------------- kaarten */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.8rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid.one { grid-template-columns: minmax(0, 360px); }
.card { display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); transition: box-shadow .2s ease; }
.card:hover { box-shadow: 0 10px 30px rgba(13, 27, 30, .08); }
.card-img { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--grey); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.noimg { background: var(--lime-soft) radial-gradient(circle at 50% 55%, rgba(13, 27, 30, .06) 0 30%, transparent 31%); }
.card-tags { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: .4rem; }
.card-body { padding: 1.1rem 1.3rem 1rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 .55rem; font-size: 1.22rem; font-weight: 500; font-stretch: 100%; letter-spacing: -0.01em; line-height: 1.3; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; }
.card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; }
.card-time { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .98rem; margin: 0; }
.card-time .ic { width: 1.05em; height: 1.05em; }
.card-match { align-self: flex-start; margin: .6rem 0 0; font-size: .85rem; font-weight: 600; background: var(--lime); padding: .3em .75em; border-radius: 999px; }
.card-note { font-size: .95rem; color: var(--ink-2); margin: 0; }
.card-foot { margin-top: auto; padding-top: 1rem; display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.card-body > :last-child.card-foot { border-top: 1.5px solid var(--line); margin-top: 1.2rem; }
.card-author { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink-2); font-size: .95rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.card-diet { color: var(--ink-2); font-size: .95rem; white-space: nowrap; text-decoration: none; }

/* rails (horizontaal scrollen, zoals Mob) */
.rail-section .section-head { margin-bottom: 1rem; }
.rail-ctrl { display: flex; align-items: center; gap: .5rem; }
.rail-ctrl .link { margin-right: .5rem; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 300px); gap: 1.3rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .6rem; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.rail:focus-visible { outline-offset: 6px; }
@media (max-width: 700px) { .rail-ctrl .icon-btn { display: none; } .rail { grid-auto-columns: 78%; } }

/* sticker (receptpagina) */
.sticker { position: absolute; top: 18px; left: 18px; font-weight: 600; font-size: .95rem; padding: .5em 1em; border-radius: 999px; }
.sticker.own { background: var(--lime); }
.sticker.gbc { background: var(--peach); }
.sticker.inline { position: static; display: inline-block; margin-left: .3em; font-size: .85rem; padding: .3em .8em; }

/* keuken-tegels */
.tiles { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.tile { display: flex; flex-direction: column; justify-content: space-between; min-height: 120px; padding: 1.2rem 1.3rem; border-radius: var(--r-lg); text-decoration: none; background: var(--grey); transition: background .15s ease; }
.tile:nth-child(3n+1) { background: var(--lime-soft); }
.tile:nth-child(3n+2) { background: #FCEBDD; }
.tile:hover { background: var(--lime); }
.tile-name { font-size: 1.5rem; font-weight: 800; font-stretch: 118%; letter-spacing: -0.02em; line-height: 1.05; }
.tile-count { color: var(--ink-2); font-size: .92rem; }
.t-mustard { background: var(--lime); } .t-tomato { background: var(--peach); } .t-mint { background: var(--lime-soft); }
.t-lilac { background: var(--lilac); } .t-sky { background: var(--sky); } .t-pink { background: var(--pink); }

.strip { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; }
.strip-item { flex: 0 0 210px; text-decoration: none; font-weight: 600; scroll-snap-align: start; }
.strip-item img { aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); margin-bottom: .5rem; width: 100%; }
.strip.small .strip-item { flex-basis: 120px; font-size: .9rem; }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2.5rem; font-weight: 600; }

/* ---------------------------------------------------------------- receptpagina */
.recipe-hero { max-width: var(--wrap); margin: 0 auto; padding: 1rem var(--gut) var(--gut); display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); }
@media (min-width: 960px) { .recipe-hero { grid-template-columns: 1fr 1fr; align-items: center; } }
.recipe-photo { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 1 / 1; background: var(--grey); max-height: 640px; }
.recipe-photo img { width: 100%; height: 100%; object-fit: cover; }
.recipe-intro h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 900; }
.facts { display: flex; flex-wrap: wrap; gap: .8rem 2.2rem; margin: 1.6rem 0; }
.facts div { min-width: 90px; }
.facts dt { font-size: .85rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; font-size: 1.15rem; }
.facts a { text-decoration: none; border-bottom: 2px solid var(--lime); }
.source { font-weight: 500; }
.actions, .share-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; align-items: center; }
.share-row { margin-top: .7rem; }
.inline-plan { display: flex; gap: .4rem; }
.inline-plan select { width: auto; border-radius: 999px; background: var(--grey); border-color: transparent; padding: .7em 1em; }
.actions .btn.ghost[aria-pressed="true"], .actions .btn[aria-pressed="true"] { background: var(--lime); color: var(--ink); }
.stars { letter-spacing: .05em; white-space: nowrap; }
.stars .off { color: #CFCFCB; }

.recipe-body { max-width: var(--wrap); margin: 0 auto; padding: var(--gut); display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 960px) { .recipe-body { grid-template-columns: minmax(300px, 400px) 1fr; } .ingredients { position: sticky; top: 150px; align-self: start; } }
.ingredients { background: var(--lime-soft); border-radius: var(--r-lg); padding: 1.6rem; }
.ing-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.ing-head h2 { margin: 0; font-size: 1.6rem; }
.servings { display: flex; align-items: center; border-radius: 999px; background: var(--paper); }
.servings button { font: inherit; font-weight: 700; font-size: 1.15rem; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; border-radius: 50%; }
.servings button:hover { background: var(--grey); }
.servings output { min-width: 1.5em; text-align: center; font-weight: 700; }
.ing-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.ing-list li { border-top: 1.5px solid rgba(13, 27, 30, .08); }
.ing-list label { flex-direction: row; align-items: flex-start; gap: .75rem; padding: .65rem 0; font-weight: 400; cursor: pointer; }
.ing-list input { margin-top: .3em; width: 1.1em; height: 1.1em; }
.ing-list input:checked + span { text-decoration: line-through; opacity: .45; }
.nutrients { margin-top: 1rem; }
.nutrients summary { font-weight: 600; cursor: pointer; }
.nutrients table { width: 100%; font-size: .9rem; border-collapse: collapse; margin-top: .5rem; }
.nutrients th { text-align: left; font-weight: 400; }
.nutrients td { text-align: right; font-weight: 600; }
.step-list { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step { counter-increment: step; position: relative; padding: 0 0 1.8rem 4.4rem; margin-bottom: 1.4rem; border-bottom: 1.5px solid var(--line); }
.step::before { content: counter(step); position: absolute; left: 0; top: -.1em; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-size: 1.2rem; font-weight: 800; font-stretch: 110%; }
.step-text { font-size: 1.15rem; max-width: 68ch; }
.tweaks { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-direction: column; gap: .6rem; }
.tweak { display: flex; gap: .7rem; align-items: flex-start; background: var(--grey); border-radius: var(--r-md); padding: .85rem 1rem; }
.tweak p { margin: 0; }
.tweak > div { flex: 1; }
.tweak-del { margin-left: auto; }
.tweak-form summary { cursor: pointer; font-weight: 600; display: inline-block; padding: .5em 1em; border-radius: 999px; background: var(--grey); font-size: .9rem; list-style: none; }
.tweak-form summary::-webkit-details-marker { display: none; }
.tweak-form[open] summary { background: var(--ink); color: var(--paper); }
.tweak-form form { display: flex; flex-direction: column; gap: .6rem; margin-top: .75rem; max-width: 640px; align-items: flex-start; }
.reviews { max-width: calc(var(--wrap) - 2 * var(--gut)); margin: 2rem auto; padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: 3rem; background: var(--grey); border-radius: var(--r-xl); }
@media (min-width: 960px) { .reviews { grid-template-columns: 400px 1fr; margin-left: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut))); margin-right: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut))); } }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 2.3rem; color: #CFCFCB; cursor: pointer; padding: 0 .06em; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--ink); }
.star-input input:focus-visible + label { outline: 3px solid var(--ink); border-radius: 4px; }
.review { display: flex; gap: .8rem; padding: 1rem 0; border-bottom: 1.5px solid var(--grey-2); }
.review p { margin: 0 0 .2rem; }
.share { position: relative; }
.share summary { list-style: none; }
.share summary::-webkit-details-marker { display: none; }
.share-pop { position: absolute; z-index: 6; top: calc(100% + 8px); left: 0; width: 290px; background: var(--paper); border-radius: var(--r-md); padding: 1.1rem; box-shadow: 0 12px 40px rgba(13, 27, 30, .16); }
.made-by { display: inline-flex; align-items: center; gap: .2rem; font-size: .92rem; }

.cook-overlay { position: fixed; inset: 0; z-index: 150; background: var(--lime-soft); padding: clamp(1.5rem, 6vw, 5rem); display: flex; flex-direction: column; justify-content: center; }
.cook-overlay[hidden] { display: none; }
.cook-close { position: absolute; top: 1.2rem; right: 1.2rem; }
.cook-count { font-weight: 700; font-size: 1.2rem; }
.cook-step { font-size: clamp(1.6rem, 4.5vw, 3.2rem); font-weight: 600; font-stretch: 110%; line-height: 1.2; max-width: 30ch; }
.cook-nav { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

/* recept toevoegen */
.import-box { background: var(--lime-soft); border-radius: var(--r-lg); padding: 1.3rem 1.5rem; margin: 1.5rem 0 2rem; }
.import-box label { margin-bottom: .6rem; }
.import-box .row input { flex: 1; }
.thumb { width: 180px; border-radius: var(--r-sm); aspect-ratio: 4/3; object-fit: cover; }
.photo-field { display: flex; flex-direction: column; gap: .75rem; }

/* toplijst */
.ranking { list-style: none; padding: 0; margin: 0; }
.rank-row { display: grid; grid-template-columns: 3rem 72px 1fr; gap: .5rem 1rem; align-items: center; padding: .9rem 0; border-bottom: 1.5px solid var(--line); }
@media (min-width: 700px) { .rank-row { grid-template-columns: 4.5rem 96px 1fr auto; } }
.rank-num { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 900; font-stretch: 125%; line-height: 1; }
.rank-img { aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; display: block; }
.rank-img img { width: 100%; height: 100%; object-fit: cover; }
.rank-title { font-weight: 600; font-size: 1.2rem; text-decoration: none; }
.rank-info p { margin: 0; }
.rank-score { grid-column: 3; }
@media (min-width: 700px) { .rank-score { grid-column: auto; text-align: right; } }
.podium.p1 { background: var(--lime-soft); border-radius: var(--r-md); padding-left: 1rem; padding-right: 1rem; border: 0; }

/* ---------------------------------------------------------------- tabs */
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.tabs a { text-decoration: none; font-weight: 500; padding: .7em 1.2em; border-radius: 999px; background: var(--grey); }
.tabs a:hover { background: var(--grey-2); }
.tabs a[aria-current] { background: var(--ink); color: var(--paper); }
.tabs.small { margin-bottom: 1.5rem; }

/* ---------------------------------------------------------------- tijdlijn */
.social-layout { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 0 2.5rem; }
@media (min-width: 1000px) { .social-layout { grid-template-columns: minmax(0, 720px) 340px; justify-content: center; } .social-layout .side { padding-top: clamp(1.8rem, 4vw, 3rem); position: sticky; top: 150px; align-self: start; } }
.timeline { max-width: 720px; }
.social-layout .timeline { max-width: none; margin: 0; }
.side { padding: 0 var(--gut) 2rem; }
.side-h { font-size: 1.2rem; margin-top: 1.5rem; }
.side-box { background: var(--lime-soft); border-radius: var(--r-lg); padding: 1.3rem; }
.people-mini { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: .5rem; }
.people-mini a { display: flex; align-items: center; gap: .6rem; font-weight: 600; text-decoration: none; }
.composer { display: flex; gap: 1rem; background: var(--grey); border-radius: var(--r-lg); padding: 1.1rem; margin-bottom: 1rem; }
.composer-body { flex: 1; display: flex; flex-direction: column; gap: .75rem; }
.composer .row { justify-content: space-between; }
.composer textarea { border-color: transparent; }
.composer-preview { max-height: 240px; width: auto; border-radius: var(--r-sm); }
.composer textarea, .comment-form textarea, .chat-form textarea { resize: none; overflow: hidden; min-height: 2.9em; }
.file-btn { flex-direction: row; font-weight: 600; cursor: pointer; padding: .7em 1.1em; background: var(--paper); border-radius: 999px; font-size: .92rem; white-space: nowrap; }
.file-btn input { position: absolute; opacity: 0; width: 1px; }
.file-btn:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.post { border-bottom: 1.5px solid var(--line); padding: 1.8rem 0; }
.post-head { display: flex; gap: .8rem; align-items: flex-start; }
.post-head p { margin: 0; }
.post-stars { margin-left: auto; font-size: 1.15rem; }
.post-body { font-size: 1.12rem; margin: 1rem 0; }
.post-img { border-radius: var(--r-lg); width: 100%; max-height: 680px; object-fit: cover; margin: 1rem 0; }
.post-actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.push-right { margin-left: auto; }
.reactions { display: flex; gap: .3rem; }
.react { font-size: 1.1rem; line-height: 1; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--grey); cursor: pointer; transition: transform .12s ease; }
.react:hover { transform: scale(1.1); background: var(--grey-2); }
.react.on { background: var(--lime); }
.reaction-summary { display: flex; gap: .7rem; font-weight: 600; font-size: .95rem; }
.like { font: inherit; font-weight: 600; background: var(--grey); border: 0; border-radius: 999px; padding: .5em 1em; cursor: pointer; }
.like.on { background: var(--lime); }
.comments { margin-top: 1rem; display: flex; flex-direction: column; gap: .7rem; }
.comment { display: flex; gap: .6rem; align-items: flex-start; }
.bubble { background: var(--grey); padding: .6rem .95rem; border-radius: var(--r-md); flex: 1; }
.bubble p { margin: 0; }
.bubble-meta { display: flex; gap: .9rem; align-items: center; font-size: .84rem; margin-top: .2rem; }
.bubble-meta form { display: inline; }
.comment-form { display: flex; gap: .5rem; align-items: flex-end; }
.comment-form textarea, .comment-form input { flex: 1; background: var(--grey); border-color: transparent; border-radius: 22px; }

/* ---------------------------------------------------------------- crew & profiel */
.people-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.person { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; background: var(--paper) !important; }
.person-top { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; text-decoration: none; }
.person-name { font-size: 1.5rem; font-weight: 800; font-stretch: 118%; line-height: 1.05; letter-spacing: -0.02em; }
.person-name small { font-size: .9rem; font-weight: 500; }
.person-seen { font-size: .9rem; color: var(--muted); }
.person-bio { margin: 0; color: var(--ink-2); }
.person-stats { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin: 0; font-size: .92rem; }
.person-fav { margin: 0; align-self: flex-start; font-size: .85rem; font-weight: 600; background: var(--lime-soft); padding: .3em .8em; border-radius: 999px; }
.person-actions { display: flex; gap: .5rem; margin-top: auto; padding-top: .5rem; }
.people-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.people-list a { display: flex; gap: .8rem; align-items: center; padding: .6rem; border-radius: var(--r-md); text-decoration: none; }
.people-list a:hover { background: var(--grey); }
.people-list.compact { grid-template-columns: 1fr; }
.profile-cover { max-width: calc(var(--wrap) - 2 * var(--gut)); margin: .4rem auto 0; margin-left: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut))); margin-right: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut))); border-radius: var(--r-xl); padding: clamp(1.5rem, 4vw, 3.5rem); }
.profile-cover.t-mustard { background: var(--lime-soft); }
.profile-cover.t-tomato { background: #FBF0D2; }
.profile-cover.t-mint { background: var(--lime-soft); }
.profile-inner { display: grid; gap: 1.5rem 2.5rem; align-items: center; }
@media (min-width: 900px) { .profile-inner { grid-template-columns: auto 1fr auto; } }
.profile-inner > .avatar-wrap { justify-self: start; }
.profile-main h1 { margin-bottom: .15em; font-weight: 900; }
.profile-handle { font-weight: 600; }
.profile-handle span { font-weight: 400; margin-left: .5rem; color: var(--ink-2); }
.profile-bio { font-size: 1.15rem; max-width: 55ch; }
.profile-facts { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; font-size: .95rem; color: var(--ink-2); }
.profile-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.profile-cover .btn.ghost { background: var(--paper); }
.profile-counts { display: grid; grid-template-columns: repeat(4, auto); gap: .5rem 1.8rem; margin: 0; justify-content: start; }
@media (min-width: 900px) { .profile-counts { grid-template-columns: repeat(2, auto); } }
.profile-counts dt { font-size: .85rem; color: var(--ink-2); }
.profile-counts dd { margin: 0; font-size: 2.2rem; font-weight: 900; font-stretch: 125%; line-height: 1; }
.profile-counts a { text-decoration: none; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.badge { border-radius: var(--r-md); padding: .7rem 1.1rem; display: flex; flex-direction: column; background: var(--grey); }
.badge.t-mustard, .badge.t-tomato { background: var(--lime); }
.badge b { font-size: 1rem; }
.badge span { font-size: .8rem; color: var(--ink-2); }
.review-cards { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.review-card { display: flex; gap: .9rem; text-decoration: none; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: .7rem; }
.review-card:hover { border-color: var(--ink); }
.rc-img { width: 84px; height: 84px; border-radius: var(--r-sm); overflow: hidden; flex: none; }
.rc-img img { width: 100%; height: 100%; object-fit: cover; }
.rc-body { display: flex; flex-direction: column; gap: .15rem; }
.rc-text { font-size: .95rem; }
.cover-pick, .cover-pick label { flex-direction: row; cursor: pointer; }
.cover-pick input, .cover-pick span { display: inline-block; padding: .55em 1.1em; border-radius: 999px; font-weight: 500; border: 2px solid transparent; }
.cover-pick input:checked + span { border-color: var(--ink); }
.cover-pick input:focus-visible + span, .avatar-edit { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; max-width: 720px; }
.photo-grid img { aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); width: 100%; }

/* ---------------------------------------------------------------- meldingen */
.notif-list { list-style: none; padding: 0; margin: 0; }
.notif-group { font-weight: 800; font-stretch: 118%; margin: 1.5rem 0 .4rem; font-size: 1.1rem; }
.notif a { display: flex; gap: .9rem; align-items: center; padding: .85rem; border-radius: var(--r-md); text-decoration: none; }
.notif a:hover { background: var(--grey); }
.notif.unread a { background: var(--lime-soft); }
.notif-text { display: flex; flex-direction: column; font-weight: 500; }
.notif-text .muted { font-size: .88rem; }

/* ---------------------------------------------------------------- berichten */
body.messages-page .foot { display: none; }
.chat { max-width: var(--wrap); margin: 0 auto; display: grid; height: calc(100vh - var(--top-h, 150px)); height: calc(100dvh - var(--top-h, 150px)); border-top: 1.5px solid var(--line); }
@media (min-width: 900px) { .chat { grid-template-columns: 340px 1fr; } }
.chat-list { border-right: 1.5px solid var(--line); overflow-y: auto; display: none; }
.chat-list-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem; gap: .5rem; }
.chat-list-head h1 { font-size: 1.8rem; margin: 0; }
.chat-list ul { list-style: none; padding: 0 .5rem; margin: 0; }
.chat-list li a { display: flex; gap: .7rem; align-items: center; padding: .75rem; border-radius: var(--r-md); text-decoration: none; }
.chat-list li a:hover { background: var(--grey); }
.chat-list li a.on { background: var(--lime-soft); }
.chat-li-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.chat-li-text .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
.has-unread .chat-li-text .muted { color: var(--ink); font-weight: 600; }
.group-av { background: var(--lime); font-size: 1.1rem; }
.new-chat { position: relative; }
.new-chat summary { list-style: none; }
.new-chat summary::-webkit-details-marker { display: none; }
.new-chat-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; background: var(--paper); border-radius: var(--r-md); padding: 1rem; width: 260px; display: flex; flex-direction: column; gap: .6rem; box-shadow: 0 12px 40px rgba(13, 27, 30, .16); }
.chat-main { display: flex; flex-direction: column; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 1rem; padding: .8rem 1.1rem; border-bottom: 1.5px solid var(--line); }
.chat-who { display: flex; gap: .7rem; align-items: center; text-decoration: none; margin: 0; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .15rem; background: var(--lime-soft); }
.chat-empty { margin: auto; color: var(--muted); font-weight: 600; }
.msg { display: flex; gap: .5rem; align-items: flex-end; max-width: 78%; margin-top: .6rem; }
.msg.grouped { margin-top: .12rem; padding-left: 36px; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg.mine.grouped { padding-left: 0; }
.msg-bubble { background: var(--paper); border-radius: 20px 20px 20px 6px; padding: .55rem .9rem; }
.msg.mine .msg-bubble { background: var(--ink); color: var(--paper); border-radius: 20px 20px 6px 20px; }
.msg.mine .mention { background: var(--lime); color: var(--ink); }
.msg.mine a { color: inherit; }
.msg-bubble p { margin: 0; }
.msg-name { font-weight: 700; font-size: .84rem; }
.msg-time { font-size: .72rem; opacity: .6; text-align: right; }
.msg-recipe { display: flex; gap: .6rem; align-items: center; text-decoration: none; background: var(--lime); color: var(--ink) !important; border-radius: 14px; padding: .45rem; margin: .2rem 0 .4rem; min-width: 220px; }
.msg-recipe img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.chat-form { display: flex; gap: .6rem; padding: .8rem 1rem; border-top: 1.5px solid var(--line); align-items: flex-end; }
.chat-form textarea { flex: 1; max-height: 160px; background: var(--grey); border-color: transparent; border-radius: 24px; }
@media (min-width: 900px) { .chat-list { display: block; } .chat-back { display: none; } }
@media (max-width: 899px) { .chat.list-only .chat-list { display: block; border: 0; } .chat.list-only .chat-main { display: none; } }

/* ---------------------------------------------------------------- agenda / evenementen */
.event-list { display: grid; gap: .9rem; }
.event-list.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.event-card { display: flex; gap: 1.1rem; align-items: center; padding: 1.1rem; border: 1.5px solid var(--line); border-radius: var(--r-lg); text-decoration: none; background: var(--paper); flex-wrap: wrap; }
.event-card:hover { border-color: var(--ink); }
.event-card.big { background: var(--lime-soft); border-color: transparent; }
.event-card.past { opacity: .75; }
.event-date { flex: none; width: 78px; height: 78px; border-radius: var(--r-md); background: var(--lime); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 600; line-height: 1; }
.event-date b { font-size: 2.1rem; font-weight: 900; font-stretch: 125%; }
.event-card.past .event-date { background: var(--grey); }
.event-info { display: flex; flex-direction: column; gap: .2rem; flex: 1 1 200px; min-width: 0; }
.event-kind { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.event-title { font-size: 1.3rem; font-weight: 800; font-stretch: 118%; line-height: 1.12; }
.event-theme { display: block; font-size: 1rem; font-weight: 500; font-stretch: 100%; color: var(--ink-2); }
.event-people { display: flex; align-items: center; margin-top: .25rem; }
.event-people .avatar { margin-right: -8px; box-shadow: 0 0 0 2px var(--paper); }
.event-people .muted { margin-left: 16px; font-size: .92rem; }
.rsvp-tag { flex: none; font-weight: 600; font-size: .88rem; padding: .55em 1em; border-radius: 999px; background: var(--grey); }
.rsvp-tag.ja { background: var(--lime); }
.side .event-card { flex-direction: row; }
.side .rsvp-tag { margin-left: 94px; }
.event-hero { max-width: calc(var(--wrap) - 2 * var(--gut)); margin: .4rem auto 0; margin-left: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut))); margin-right: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut))); border-radius: var(--r-xl); background: var(--lime-soft); padding: clamp(1.5rem, 4vw, 3.5rem); }
.event-hero-inner { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }
.event-hero h1 { font-weight: 900; margin-bottom: .3em; }
.hero-tags { display: flex; gap: .4rem; margin-bottom: .8rem; }
.theme-line { font-size: clamp(1.2rem, 2.2vw, 1.6rem); margin-bottom: .6rem; }
.event-date.huge { width: 150px; height: 150px; font-size: 1.3rem; border-radius: var(--r-lg); }
.event-date.huge b { font-size: 4.6rem; }
.event-body { max-width: var(--wrap); margin: 0 auto; padding: var(--gut); display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .event-body { grid-template-columns: 1fr 340px; } .event-side { position: sticky; top: 150px; align-self: start; } }
.event-main > h2, .event-main section > h2, .event-main .section-head { margin-top: 2.2rem; }
.event-main > .prose { margin-bottom: 1rem; }
.event-main .timeline { max-width: none; }
.rsvp h2 { margin-top: 0; }
.rsvp-buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
.rsvp-buttons .btn[aria-pressed="true"] { background: var(--lime); color: var(--ink); }
.event-side { background: var(--grey); border-radius: var(--r-lg); padding: 1.5rem; }
.event-side h2 { font-size: 1.35rem; }
.event-side h3 { font-size: 1rem; margin: 1.2rem 0 .3rem; }

/* kalender */
.cal { border: 1.5px solid var(--line); border-radius: var(--r-xl); padding: clamp(1rem, 2.5vw, 1.8rem); }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; gap: 1rem; }
.cal-head h2 { margin: 0; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { font-size: .85rem; font-weight: 600; color: var(--muted); padding: 0 .4rem .3rem; }
.cal-day { min-height: 110px; background: var(--grey); border-radius: var(--r-sm); padding: .4rem; display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.cal-day.other { background: transparent; }
.cal-day.other .cal-num { color: #A8ADAE; }
.cal-num { align-self: flex-start; display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 999px; font-weight: 600; font-size: .92rem; text-decoration: none; }
.cal-num:hover { background: var(--paper); }
.cal-day.today .cal-num { background: var(--ink); color: var(--paper); }
.cal-item { display: block; background: var(--lime); font-size: .8rem; font-weight: 600; line-height: 1.25; padding: .35em .55em; border-radius: 8px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-time { font-weight: 500; opacity: .75; }
.cal-legend { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin: 1rem 0 0; font-size: .9rem; }
.cal-legend .cal-item { display: inline-block; }
@media (max-width: 700px) {
  .cal-day { min-height: 58px; padding: .25rem; }
  .cal-item { font-size: 0; padding: 0; height: 8px; border-radius: 4px; }
  .cal-legend .cal-item { font-size: .8rem; height: auto; padding: .35em .55em; }
  .cal-num { min-width: 26px; height: 26px; font-size: .82rem; }
}

/* ---------------------------------------------------------------- weekmenu */
.week { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.day { background: var(--grey); border-radius: var(--r-md); padding: 1rem; min-height: 150px; }
.day.today { background: var(--lime-soft); box-shadow: inset 0 0 0 2px var(--ink); }
.day h2 { font-size: 1.1rem; text-transform: capitalize; }
.day-item { padding: .5rem 0; border-top: 1.5px solid var(--grey-2); display: flex; flex-direction: column; gap: .15rem; }
.day-item a { font-weight: 600; text-decoration: none; line-height: 1.25; }
.band { max-width: calc(var(--wrap) - 2 * var(--gut)); border-radius: var(--r-xl); margin: 1rem auto; margin-left: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut))); margin-right: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut))); padding-left: clamp(1.2rem, 4vw, 3rem); padding-right: clamp(1.2rem, 4vw, 3rem); }
.band-mint, .band-tomato { background: var(--lime-soft); }
.band-ink { background: var(--ink); color: var(--paper); }
.shoplist { columns: 300px; column-gap: 2rem; }
.shop-group { break-inside: avoid; margin-bottom: 1.5rem; }
.shop-group ul { list-style: none; padding: 0; margin: 0; }
.shop-group label { flex-direction: row; gap: .5rem; font-weight: 400; padding: .25rem 0; }
.shop-group input:checked + span { text-decoration: line-through; opacity: .5; }

/* ---------------------------------------------------------------- login */
body.auth .foot { display: none; }
.auth-wrap { min-height: 100vh; display: grid; padding: var(--gut); gap: var(--gut); }
@media (min-width: 900px) { .auth-wrap { grid-template-columns: 1.2fr 1fr; } }
.auth-brand { background: var(--lime-soft); border-radius: var(--r-xl); padding: clamp(2rem, 6vw, 5rem); display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; }
.auth-logo { font-size: clamp(4.5rem, 14vw, 11rem); font-weight: 900; font-stretch: 125%; letter-spacing: -0.06em; line-height: .85; margin: 0; text-transform: lowercase; }
.auth-tag { font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 400; font-stretch: 110%; margin-top: 1.2rem; max-width: 24ch; }
.auth-form { padding: clamp(1rem, 4vw, 4rem); display: flex; flex-direction: column; justify-content: center; max-width: 520px; width: 100%; margin: 0 auto; }
.auth-switch { margin-top: 1.5rem; }
.auth-form .btn.big { background: var(--lime); color: var(--ink); }

/* ---------------------------------------------------------------- beheer */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; margin-bottom: 2rem; }
.stat { background: var(--grey); border-radius: var(--r-md); padding: 1rem 1.2rem; display: flex; flex-direction: column; font-weight: 500; }
.stat-n { font-size: 2rem; font-weight: 900; font-stretch: 125%; }
.table-wrap { overflow-x: auto; margin-bottom: 2rem; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; border-bottom: 1.5px solid var(--ink); padding: .6rem .5rem; font-weight: 600; }
.table td { border-bottom: 1px solid var(--line); padding: .6rem .5rem; vertical-align: top; }
.table tr.dim { opacity: .5; }
.row-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.narrow-panel { max-width: 640px; }
.preview { border: 1.5px dashed var(--grey-2); border-radius: var(--r-md); padding: 1.2rem; min-height: 80px; }
.prose { font-size: 1.1rem; }
.prose p, .prose li { max-width: 68ch; }
.prose img { border-radius: var(--r-md); }
.dropzone { position: relative; border: 2px dashed var(--grey-2); border-radius: var(--r-lg); padding: 2.5rem 1.5rem; text-align: center; align-items: center; cursor: pointer; background: var(--grey); }
.dropzone.over { background: var(--lime-soft); border-color: var(--ink); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.dz-title { font-size: 1.3rem; font-weight: 800; font-stretch: 118%; }
.upload-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.upload-list li { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; }
.mini-bar, .imp-progress .bar { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--grey); overflow: hidden; }
.mini-bar i, .imp-progress .bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .25s; }
.imp-progress { margin-top: 1.2rem; }
.imp-msg { margin-top: .5rem; font-weight: 600; }

/* ---------------------------------------------------------------- mention-suggesties */
.mention-pop { position: absolute; z-index: 45; background: var(--paper); border-radius: var(--r-sm); list-style: none; margin: 0; padding: .35rem; min-width: 210px; box-shadow: 0 12px 40px rgba(13, 27, 30, .18); }
.mention-pop li { padding: .5rem .7rem; border-radius: 8px; cursor: pointer; font-weight: 500; }
.mention-pop li[aria-selected="true"], .mention-pop li:hover { background: var(--lime-soft); }
.mention-pop small { color: var(--muted); margin-left: .35rem; }

/* ---------------------------------------------------------------- footer */
.foot { margin-top: 4rem; background: var(--lime-soft); }
.foot-inner { max-width: var(--wrap); margin: 0 auto; padding: 2.5rem var(--gut) 3rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; align-items: baseline; }
.foot-logo { font-size: 2rem; font-weight: 900; font-stretch: 125%; letter-spacing: -0.04em; margin: 0; text-transform: lowercase; }
.foot nav { display: flex; gap: 1.2rem; margin-left: auto; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

@media print {
  .top, .promo, .foot, .actions, .share-row, .tweak-form, .reviews, .servings, .tweak-del, .flash { display: none !important; }
  .recipe-body { grid-template-columns: 1fr 2fr; }
  .ingredients { background: none; border: 1.5px solid #000; position: static; }
  .recipe-photo { max-height: 260px; aspect-ratio: auto; }
}

/* ---------------------------------------------------------------- verfijningen */
.rail-section { padding-top: 1.4rem; padding-bottom: 1.4rem; }
.chips-section + .section { padding-top: 2rem; }
.card-author .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.event-hero .btn.ghost, .event-hero .btn.small.ghost { background: var(--paper); }
.event-hero .btn.ghost:hover { background: var(--grey-2); }
@media (max-width: 600px) {
  .event-date.huge { width: 92px; height: 92px; font-size: 1rem; border-radius: var(--r-md); }
  .event-date.huge b { font-size: 2.8rem; }
  .event-hero-inner { gap: 1.2rem; }
    .event-card .rsvp-tag { margin-left: 94px; }
}
input, select, textarea { font-weight: 400; }
[id] { scroll-margin-top: calc(var(--top-h, 150px) + 16px); }

/* ---------------------------------------------------------------- voorstellen & goedkeuren */
.rsvp-tag.wait { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.rsvp-tag.no { background: var(--pink); }
.event-card.pending { border-style: dashed; border-color: var(--ink-2); }
.event-card.pending .event-date { background: var(--grey); }
.cal-item.wait { background: repeating-linear-gradient(-45deg, var(--lime-soft) 0 6px, var(--paper) 6px 12px); box-shadow: inset 0 0 0 1.5px var(--lime-deep); }
.proposals { background: var(--lime-soft); border-radius: var(--r-xl); padding: clamp(1.2rem, 3vw, 2rem); margin-bottom: 1.5rem; }
.proposals h2 { margin-bottom: 1rem; }
.proposal-list { display: flex; flex-direction: column; gap: .7rem; }
.proposal { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; justify-content: space-between; background: var(--paper); border-radius: var(--r-lg); padding: 1rem 1.2rem; }
.proposal-main { display: flex; flex-direction: column; gap: .15rem; text-decoration: none; flex: 1 1 280px; }
.proposal-main b { font-size: 1.15rem; font-stretch: 112%; }
.event-hero.is-pending { background: var(--grey); }
.event-hero.is-pending .event-date { background: var(--paper); }
.review-panel { border-color: var(--ink); }
.reject-form { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1.5px solid var(--line); }
.spots { font-size: 1.05rem; }
.mail-intro details { margin-top: .6rem; }
.mail-intro summary { cursor: pointer; }
.mail-intro details p { margin: .5rem 0 0; }
.event-hero .btn.ghost .ic { width: 1em; height: 1em; }

/* ---------------------------------------------------------------- Instagram & inspiratiemuur */
.ig { width: 100%; margin: 1rem 0; }
.ig .instagram-media { margin: 0 auto !important; min-width: 0 !important; width: 100% !important; max-width: 540px !important; border-radius: var(--r-md) !important; }
.ig-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; text-align: center; min-height: 320px; padding: 1.5rem; border-radius: var(--r-md); background: linear-gradient(160deg, var(--lime-soft), #FCEBDD); }
.ig-logo { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--paper); color: var(--ink); }
.ig-logo svg { width: 30px; height: 30px; }
.ig-kind { font-weight: 700; font-stretch: 110%; margin: 0; }
.ig-note { font-size: .82rem; color: var(--ink-2); max-width: 32ch; margin: 0; }
.ig.loading { min-height: 320px; background: var(--grey); border-radius: var(--r-md); }

.insp-hero { max-width: calc(var(--wrap) - 2 * var(--gut)); margin: .4rem auto 0; margin-left: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut))); margin-right: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut))); background: var(--lime-soft); border-radius: var(--r-xl); padding: clamp(1.5rem, 4vw, 3.5rem); display: grid; gap: 1.5rem 3rem; align-items: center; }
@media (min-width: 960px) { .insp-hero { grid-template-columns: 1fr 1.1fr; } }
.insp-hero h1 { font-weight: 900; font-size: clamp(2.4rem, 5vw, 4.2rem); margin-bottom: .3em; }
.insp-sharers { display: flex; align-items: center; margin: 1rem 0 0; }
.insp-sharers .avatar { margin-right: -8px; box-shadow: 0 0 0 2px var(--lime-soft); }
.insp-sharers span { margin-left: 16px; font-weight: 600; }
.insp-share { background: var(--paper); border-radius: var(--r-lg); padding: 1.3rem; display: flex; flex-direction: column; gap: .6rem; }
.insp-share-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.insp-share-row input { flex: 1 1 260px; background: var(--grey); border-color: transparent; border-radius: 999px; padding: .95em 1.3em; }
.insp-share textarea { background: var(--grey); border-color: transparent; border-radius: 22px; resize: none; overflow: hidden; }
.insp-check { margin: 0; font-size: .9rem; font-weight: 600; min-height: 1.3em; }
.insp-check.ok { color: var(--ink); }
.insp-check.bad { color: var(--red); }
.small-note { font-size: .85rem; margin: 0; }

.wall { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); align-items: start; }
.wall-card { border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); }
.wall-card .ig { margin: 0; }
.wall-card .ig-placeholder, .wall-card .ig.loading { border-radius: 0; }
.wall-card .instagram-media { border-radius: 0 !important; border: 0 !important; box-shadow: none !important; }
.wall-foot { padding: .9rem 1.1rem 1rem; }
.wall-who { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin: 0 0 .4rem; font-size: .92rem; }
.wall-note { margin: 0 0 .6rem; }
.wall-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.react.small { width: 34px; height: 34px; font-size: .95rem; }
.composer-ig summary { cursor: pointer; font-weight: 600; font-size: .92rem; list-style: none; }
.composer-ig summary::-webkit-details-marker { display: none; }
.composer-ig summary::before { content: "+ "; }
.composer-ig[open] summary::before { content: "− "; }
.composer-ig input { margin-top: .5rem; border-color: transparent; }
.insp-detail { max-width: 720px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 2.5rem) var(--gut) 0; }
.insp-detail .ig .instagram-media { max-width: 100% !important; }

/* ---------------------------------------------------------------- de dansende banaan */
.banana { display: inline-block; vertical-align: -0.35em; line-height: 0; }
.banana img { height: 100%; width: auto; image-rendering: pixelated; image-rendering: crisp-edges; }
.banana-sm { height: 1.45em; }
.banana-md { height: 1.9em; vertical-align: -0.55em; }
.banana-lg { height: 110px; vertical-align: middle; }
/* knopje om een banaan in te voegen */
.banana-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--grey); display: inline-grid; place-items: center; cursor: pointer; padding: 0; font-size: 18px; transition: transform .15s; }
.banana-btn:hover { transform: scale(1.12) rotate(-6deg); background: #FFF3B0; }
.banana-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.banana-btn .banana-sm { height: 1.6em; vertical-align: 0; }
.react .banana-sm { height: 1.35em; vertical-align: -0.3em; }
/* losse banaan in de chat: geen ballon */
.msg-bubble.bare, .msg.mine .msg-bubble.bare { background: none; color: var(--ink); padding: 0 .2rem; }
.msg-bubble.bare .msg-time { color: var(--ink-2); }
/* op donkere achtergronden: lichte rand, zodat de zwarte omlijning zichtbaar blijft */
.msg.mine .msg-bubble:not(.bare) .banana img { filter: drop-shadow(0 0 1px rgba(255, 246, 200, .95)) drop-shadow(0 0 1px rgba(255, 246, 200, .8)); }

/* ---------------------------------------------------------------- alle recepten: zoeken met filters */
.search-top { padding-bottom: 0; }
.big-search { position: relative; display: flex; align-items: center; gap: .6rem; background: var(--grey); border-radius: 999px; padding: .45rem .45rem .45rem 1.3rem; max-width: 900px; }
.big-search > .ic { width: 22px; height: 22px; flex: none; color: var(--ink-2); }
.big-search input[type=search] { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 1.15rem; padding: .7rem .2rem; }
.big-search input[type=search]:focus { outline: none; }
.big-search:focus-within { box-shadow: 0 0 0 2.5px var(--ink); }

.search-layout { max-width: var(--wrap); margin: 0 auto; padding: 1.5rem var(--gut) 3rem; display: grid; gap: 2rem; }
@media (min-width: 980px) { .search-layout { grid-template-columns: 270px minmax(0, 1fr); align-items: start; } }
.facets { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 980px) { .facets { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; padding-right: .3rem; scrollbar-width: thin; } }
/* op kleine schermen: de filterblokken naast elkaar, horizontaal scrollen (altijd zichtbaar, niet eindeloos lang) */
@media (max-width: 979px) {
  .facets { flex-direction: row; overflow-x: auto; scroll-snap-type: x proximity; gap: .8rem; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) .6rem; }
  .facet-box { flex: 0 0 250px; scroll-snap-align: start; max-height: 330px; overflow-y: auto; }
}
.facet-box { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1rem 1.05rem; display: flex; flex-direction: column; gap: .45rem; }
.facet-box h2 { font-size: .95rem; font-stretch: 110%; margin: 0 0 .15rem; }
.facet-box input:not([type=hidden]) { background: var(--grey); border-color: transparent; border-radius: 12px; padding: .6rem .8rem; font-size: .95rem; }
.facet-box .sub { font-size: .85rem; font-weight: 600; margin-top: .2rem; }
.facet-box .btn { align-self: flex-start; margin-top: .2rem; }
.facet-list { display: flex; flex-direction: column; gap: .1rem; }
.facet { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .42rem .6rem; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.facet:hover { background: var(--grey); }
.facet .n { font-size: .8rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.facet.on { background: var(--ink); color: var(--paper); font-weight: 600; }
.facet.on .n { color: var(--lime); }
.facet.on::after { content: "×"; margin-left: -.2rem; font-weight: 700; }
.facet.off { color: #9AA2A3; cursor: default; }
.facet-pills { display: flex; flex-wrap: wrap; gap: .35rem; }
.facet-pills .facet { background: var(--grey); border-radius: 999px; padding: .4rem .75rem; font-size: .9rem; }
.facet-pills .facet.on { background: var(--ink); }
.facet-pills .facet.on::after { content: none; }
.facet-select { width: 100%; background: var(--grey); border: 0; border-radius: 12px; padding: .6rem .7rem; font-size: .92rem; margin-top: .25rem; }
.facet-note { font-size: .78rem; color: var(--ink-2); margin: .2rem 0 0; }

.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .8rem 1.5rem; margin-bottom: .8rem; }
.results-head h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0; }
.sort-label { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .92rem; }
.sort-label select { background: var(--grey); border: 0; border-radius: 999px; padding: .55rem 1rem; font-size: .92rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: 1.2rem; }
.active-chip { display: inline-flex; align-items: center; gap: .35rem; background: var(--lime); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .88rem; padding: .38rem .55rem .38rem .8rem; border-radius: 999px; }
.active-chip span { font-size: 1.05rem; line-height: 1; opacity: .7; }
.active-chip:hover span { opacity: 1; }
.did-you-mean { font-size: 1.05rem; background: var(--lime-soft); border-radius: var(--r-md); padding: .8rem 1rem; }
.results-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.pager.numbered { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .35rem; margin-top: 2rem; }
.pager .num { min-width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; background: var(--grey); padding: 0 .6rem; }
.pager .num.on { background: var(--ink); color: var(--paper); }
.pager .gap { color: var(--ink-2); padding: 0 .2rem; }
.results-foot { text-align: center; font-size: .85rem; margin-top: .6rem; }

/* suggesties onder de zoekbalk */
.has-suggest { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 45; background: var(--paper); border-radius: 18px; box-shadow: 0 14px 40px rgba(13, 27, 30, .18), 0 0 0 1.5px var(--line); padding: .4rem; max-height: 70vh; overflow-y: auto; min-width: 300px; }
.sg-item, .sg-all { display: flex; align-items: center; gap: .7rem; padding: .5rem .6rem; border-radius: 12px; text-decoration: none; color: var(--ink); }
.sg-item img, .sg-ic { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; flex: none; background: var(--lime-soft); }
.sg-filter .sg-ic { background: var(--grey); }
.sg-text { display: flex; flex-direction: column; min-width: 0; }
.sg-text b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-text small { color: var(--ink-2); font-size: .8rem; }
.sg-all { border-top: 1.5px solid var(--line); border-radius: 0 0 12px 12px; margin-top: .3rem; padding-top: .7rem; font-size: .92rem; }
.sg-item.on, .sg-item:hover, .sg-all.on, .sg-all:hover { background: var(--grey); }

/* homepage: alle recepten in een blok van twee rijen */
.all-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.all-nav { display: flex; align-items: center; gap: .5rem; }
.all-nav .muted { font-size: .88rem; min-width: 6.5em; text-align: right; font-variant-numeric: tabular-nums; }
.all-nav .icon-btn:disabled { opacity: .35; cursor: default; }
.all-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); transition: opacity .15s; }
.all-grid.loading { opacity: .45; }
@media (max-width: 1100px) { .all-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .all-grid > :nth-child(n+9) { display: none; } }
@media (max-width: 700px) { .all-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .all-grid > :nth-child(n+7) { display: none; } }
.all-more { text-align: center; margin: 1.3rem 0 0; }
@media (max-width: 979px) {
  .recipes-page .search-top { display: none; }            /* de zoekbalk bovenaan de site is er al */
  .facet-box { flex-basis: 230px; max-height: 250px; }
  .search-layout { padding-top: 1rem; gap: 1.2rem; }
}

/* ---------------------------------------------------------------- weekmenu */
.planner-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: 1.5rem; }
.planner-head h1 { margin: 0 0 .6rem; }
.seg { display: inline-flex; background: var(--grey); border-radius: 999px; padding: 4px; gap: 2px; }
.seg a { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1.1rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.seg a.on { background: var(--ink); color: var(--paper); }
.seg .ic { width: 18px; height: 18px; }
.seg .badge { background: var(--lime); color: var(--ink); border-radius: 999px; font-size: .75rem; padding: .05rem .45rem; }
.week-nav { display: flex; align-items: center; gap: .5rem; }
.week-label { display: flex; flex-direction: column; align-items: center; min-width: 11rem; text-align: center; }
.week-label small { color: var(--ink-2); font-size: .8rem; }

.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .7rem; }
@media (max-width: 1100px) { .week-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .week-grid { grid-template-columns: 1fr; } }
.wday { background: var(--grey); border-radius: var(--r-lg); padding: .8rem; display: flex; flex-direction: column; gap: .55rem; min-height: 190px; }
.wday.today { background: var(--lime-soft); box-shadow: inset 0 0 0 2px var(--lime); }
.wday.past { opacity: .72; }
.wday h2 { font-size: 1rem; margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; }
.wday h2 span::first-letter { text-transform: uppercase; }
.wday h2 small { font-weight: 500; color: var(--ink-2); font-size: .82rem; }
.wmeal { background: var(--paper); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
@media (max-width: 700px) { .wmeal { flex-direction: row; } .wmeal-img { width: 96px; aspect-ratio: auto; flex: none; } }
.wmeal-img { display: block; aspect-ratio: 16 / 10; background: var(--lime-soft); }
.wmeal-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wmeal-body { padding: .55rem .65rem .6rem; display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.wmeal-title { font-weight: 700; font-size: .92rem; line-height: 1.25; text-decoration: none; color: var(--ink); }
.wmeal-body .small { font-size: .8rem; display: inline-flex; align-items: center; gap: .25rem; }
.wmeal-body .small .ic { width: 14px; height: 14px; }
.wmeal-tools { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; margin-top: .15rem; }
.stepper { display: inline-flex; align-items: center; background: var(--grey); border-radius: 999px; font-size: .8rem; font-weight: 600; }
.stepper button { width: 26px; height: 26px; border: 0; background: none; border-radius: 50%; font-size: 1rem; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: var(--line); }
.stepper span { padding: 0 .15rem; white-space: nowrap; }
.wmeal-move { background: var(--grey); border: 0; border-radius: 999px; font-size: .8rem; padding: .3rem .5rem; }
.icon-btn.tiny { width: 28px; height: 28px; }
.icon-btn.tiny .ic { width: 15px; height: 15px; }
.wadd { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: .3rem; border: 2px dashed #CDD0CC; background: none; border-radius: 12px; padding: .55rem; font-weight: 600; font-size: .88rem; color: var(--ink-2); cursor: pointer; }
.wadd:hover { border-color: var(--ink); color: var(--ink); background: var(--paper); }
.wadd .ic { width: 16px; height: 16px; }
.week-summary { margin-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; background: var(--lime-soft); border-radius: var(--r-lg); padding: 1rem 1.3rem; }
.week-summary p { margin: 0; }
.week-summary .btn .ic, .export-bar .ic { width: 18px; height: 18px; }

.history { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.hist { display: flex; gap: .9rem; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: .8rem; }
.hist-imgs { flex: none; width: 92px; height: 92px; border-radius: 14px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--lime-soft); }
.hist-imgs img { width: 100%; height: 100%; object-fit: cover; }
.hist-imgs img:only-child { grid-column: span 2; grid-row: span 2; }
.hist-body h3 { margin: 0 0 .2rem; font-size: 1rem; }
.hist-body h3 a { color: var(--ink); }
.hist-body p { margin: 0 0 .5rem; font-size: .88rem; }

/* dialogen: dag kiezen en recept zoeken */
.plan-dialog { border: 0; border-radius: 24px; padding: 0; width: min(560px, calc(100vw - 24px)); box-shadow: 0 24px 70px rgba(13, 27, 30, .3); }
.plan-dialog::backdrop { background: rgba(13, 27, 30, .45); }
.plan-dialog-inner { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .7rem; }
.plan-dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.plan-dialog h2 { margin: 0; font-size: 1.35rem; }
.plan-dialog h3 { margin: .5rem 0 0; font-size: .95rem; }
.plan-dialog h3 .muted { font-weight: 500; font-size: .82rem; }
.plan-dialog-head p { margin: .2rem 0 0; }
.plan-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; }
.plan-day { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .55rem 0; border: 0; border-radius: 14px; background: var(--grey); cursor: pointer; font-size: .85rem; color: var(--ink); }
.plan-day b { font-size: .8rem; }
.plan-day span { font-size: 1.15rem; font-weight: 700; }
.plan-day:hover:not(:disabled) { background: var(--lime); }
.plan-day.today { box-shadow: inset 0 0 0 2px var(--ink); }
.plan-day:disabled { opacity: .35; cursor: default; }
.plan-servings { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: .9rem; margin-top: .4rem; }
.plan-servings input { width: 5.5em; background: var(--grey); border: 0; border-radius: 10px; padding: .45rem .6rem; }
.picker input[type=search] { background: var(--grey); border: 0; border-radius: 999px; padding: .75rem 1.1rem; font-size: 1rem; }
.picker-results { display: flex; flex-direction: column; gap: .3rem; max-height: 55vh; overflow-y: auto; }
.pick { display: flex; align-items: center; gap: .7rem; text-align: left; border: 0; background: none; padding: .45rem; border-radius: 12px; cursor: pointer; color: var(--ink); }
.pick:hover { background: var(--grey); }
.pick img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; }
.pick span { display: flex; flex-direction: column; }
.pick small { color: var(--ink-2); font-size: .8rem; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: var(--paper); padding: .8rem 1.2rem; border-radius: 999px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); max-width: calc(100vw - 24px); }
.toast a { color: var(--lime); margin-left: .3rem; }

/* knop op receptkaarten */
.card { position: relative; }
.card-plan { position: absolute; top: .6rem; right: .6rem; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; cursor: pointer; color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); transition: transform .15s, background .15s; }
.card-plan:hover, .card-plan:focus-visible { background: var(--lime); transform: scale(1.08); }
.card-plan .ic { width: 19px; height: 19px; }
.actions .btn .ic { width: 18px; height: 18px; }

/* boodschappenlijst */
.export-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.3rem; }
.week-layout { display: grid; gap: 2rem; }
@media (min-width: 980px) { .week-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.shop-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.shop-progress { margin: 0; font-weight: 600; }
.aisle { margin-bottom: 1.3rem; }
.aisle h2 { font-size: 1.05rem; margin: 0 0 .4rem; padding-bottom: .35rem; border-bottom: 1.5px solid var(--line); }
.aisle ul { list-style: none; margin: 0; padding: 0; }
.aisle li { display: flex; align-items: center; gap: .4rem; border-bottom: 1px solid var(--grey); }
.aisle li label { flex: 1; display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: center; padding: .55rem .2rem; cursor: pointer; }
.aisle li input { width: 22px; height: 22px; accent-color: var(--ink); grid-row: span 2; }
.aisle .it b { font-weight: 700; }
.aisle .for { grid-column: 2; font-size: .78rem; color: var(--ink-2); }
.aisle li.done .it { text-decoration: line-through; color: #8C9496; }
.shop.hide-done li.done { display: none; }
.aisle-home { opacity: .8; }
.aisle-home h2::after { content: " (vink af wat op is)"; font-weight: 500; font-size: .8rem; color: var(--ink-2); }
.extra-add { display: flex; gap: .5rem; margin-top: .7rem; }
.extra-add input { flex: 1; background: var(--grey); border: 0; border-radius: 999px; padding: .6rem 1rem; }
.week-recipes { background: var(--grey); border-radius: var(--r-lg); padding: 1.1rem; }
.week-recipes h2 { margin: 0 0 .4rem; font-size: 1.1rem; }
.week-recipes h3 { font-size: .85rem; color: var(--ink-2); margin: .9rem 0 .35rem; font-weight: 600; }
.wr { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); background: var(--paper); border-radius: 14px; padding: .45rem; margin-bottom: .35rem; }
.wr img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.wr span { display: flex; flex-direction: column; min-width: 0; }
.wr small { color: var(--ink-2); font-size: .8rem; }
.wr:hover { box-shadow: 0 0 0 2px var(--ink); }

@media print {
  header.top, nav.mainnav, .promo, footer, .skip, .seg, .week-nav, .export-bar, .extra-add, .shop-top label, .aisle li form, .week-recipes .btn, .toast { display: none !important; }
  .week-layout { grid-template-columns: 1fr 260px; }
  .aisle li { border-color: #ddd; }
  .aisle li input { width: 14px; height: 14px; }
  .aisle { break-inside: avoid; }
  .week-recipes { background: none; padding: 0; }
  .wr { box-shadow: none !important; padding: .2rem 0; }
  .shop.hide-done li.done { display: flex; }
}
.plan-dialog .plan-servings { flex-direction: row; justify-content: flex-start; align-items: center; text-align: left; font-weight: 500; }
.plan-dialog .plan-servings .muted { font-size: .8rem; }
.wday h2 small { white-space: nowrap; }

/* ---------------------------------------------------------------- Instagram-speler (iframe) */
.ig.loaded { container-type: inline-size; min-height: 0; background: none; }
.ig-frame { display: block; width: 100%; border: 0; background: var(--paper); height: calc(100cqw + 190px); }
.ig-frame.reel { height: calc(100cqw * 1.7778 + 150px); }
.wall-play { display: flex; align-items: center; justify-content: center; gap: .4rem; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; font-size: .9rem; padding: .6rem; }
.wall-play:hover { background: #000; }
.wall-play .ic, .insp-cta .ic { width: 18px; height: 18px; }
.insp-cta { margin: 0 0 .8rem; }
.insp-cta .btn { display: inline-flex; align-items: center; gap: .5rem; }

/* ---------------------------------------------------------------- reels-modus */
html:has(body.reels-page), body.reels-page { overflow: hidden; }
.reels { position: fixed; inset: 0; z-index: 100; background: #0B0F10; color: #FDF1E7; overflow-y: scroll; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none;
  --bar: 54px; --h: calc(100dvh - var(--bar) - 70px); --w: min(calc((var(--h) - 150px) * .5625), calc(100vw - 92px), 470px); }
.reels::-webkit-scrollbar { display: none; }
.reels-bar { position: sticky; top: 0; z-index: 3; height: var(--bar); margin-bottom: calc(-1 * var(--bar)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 max(.8rem, env(safe-area-inset-left)); background: linear-gradient(#0B0F10 40%, rgba(11, 15, 16, 0)); }
.reels-close { display: inline-flex; align-items: center; gap: .3rem; color: #FDF1E7; text-decoration: none; font-weight: 600; padding: .4rem .6rem .4rem .2rem; border-radius: 999px; }
.reels-close .ic { width: 22px; height: 22px; }
.reels-close:hover { background: rgba(255, 255, 255, .08); }
.reels-tabs { display: flex; gap: .2rem; background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 3px; }
.reels-tabs a { color: #FDF1E7; text-decoration: none; font-weight: 600; font-size: .9rem; padding: .35rem .9rem; border-radius: 999px; }
.reels-tabs a[aria-current] { background: var(--lime); color: var(--ink); }
.reel { height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--bar) + 4px) .6rem 12px; gap: .5rem; }
.reel-top { width: calc(var(--w) + 72px); max-width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; min-height: 32px; }
.reel-who { display: inline-flex; align-items: center; gap: .45rem; color: #FDF1E7; text-decoration: none; }
.reel-time { font-size: .8rem; opacity: .6; }
.reel-note { flex-basis: 100%; margin: 0; font-size: .92rem; opacity: .9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reel-note .mention { background: var(--lime); color: var(--ink); }
.reel-main { display: flex; align-items: flex-end; gap: .5rem; }
.reel-stage { position: relative; width: var(--w); height: calc(var(--w) * 1.7778 + 150px); max-height: var(--h); border-radius: 18px; overflow: hidden; background: #1A2022; }
.reel.is-post .reel-stage { height: calc(var(--w) + 190px); }
.reel-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.reel-poster { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #243033, #121819); }
.reel-play { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: rgba(245, 162, 106, .95); color: var(--ink); }
.reel-play svg { width: 34px; height: 34px; margin-left: 4px; }
.reel.mounted .reel-poster { display: none; }
.reel-rail { display: flex; flex-direction: column; gap: .45rem; align-items: center; padding-bottom: .4rem; }
.rail-btn { width: 54px; display: flex; flex-direction: column; align-items: center; gap: .1rem; border: 0; background: none; color: #FDF1E7; cursor: pointer; text-decoration: none; padding: .2rem 0; font: inherit; }
.rail-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); font-size: 1.35rem; transition: transform .12s, background .12s; }
.rail-ic .ic { width: 22px; height: 22px; }
.rail-ic .banana-sm { height: 1.55em; vertical-align: 0; }
.rail-btn:hover .rail-ic { background: rgba(255, 255, 255, .18); transform: scale(1.06); }
.rail-btn.on .rail-ic { background: var(--lime); }
.rail-n { font-size: .75rem; font-weight: 700; min-height: 1em; }
.reels-consent { position: fixed; inset: var(--bar) 0 0 0; z-index: 2; display: grid; place-items: center; background: rgba(11, 15, 16, .88); text-align: center; padding: 1.5rem; }
.reels-consent div { max-width: 340px; }
.reels-empty, .reels-end { min-height: 60dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; text-align: center; scroll-snap-align: start; }
.reels-end .btn.ghost { color: #FDF1E7; border-color: rgba(255, 255, 255, .3); }
@media (max-width: 520px) {
  .reels { --w: min(calc((var(--h) - 150px) * .5625), calc(100vw - 76px)); }
  .reel { padding-left: .3rem; padding-right: .3rem; }
  .reel-main { gap: .25rem; }
  .rail-btn { width: 46px; }
  .rail-ic { width: 40px; height: 40px; font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) { .reels { scroll-behavior: auto; } }
/* verborgen is echt weg (anders blokkeert het venster alle klikken) */
.reels [hidden], .reels-consent[hidden], .reels-end[hidden] { display: none !important; }
/* in de reels-modus geen ruimte voor de kopbalk (anders klikken reels verschoven vast) */
.reels [id] { scroll-margin-top: 0; }

/* ---------------------------------------------------------------- emoji kiezen */
.emoji-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--grey); display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); padding: 0; transition: background .15s, transform .15s; }
.emoji-btn .ic { width: 22px; height: 22px; }
.emoji-btn:hover, .emoji-btn[aria-expanded="true"] { background: var(--lime); transform: scale(1.06); }
.emoji-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.emoji-picker { position: fixed; z-index: 120; width: 332px; max-height: min(430px, 70vh); overflow-y: auto; background: var(--paper); border-radius: 20px; box-shadow: 0 18px 50px rgba(13, 27, 30, .25), 0 0 0 1.5px var(--line); padding: .7rem .8rem .8rem; }
.emoji-picker[hidden] { display: none; }
.ep-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.ep-close { border: 0; background: var(--grey); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: .85rem; }
.ep-banana { width: 100%; display: flex; align-items: center; gap: .7rem; border: 0; border-radius: 16px; background: var(--lime-soft); padding: .5rem .7rem; cursor: pointer; font-weight: 700; font-size: 1rem; color: var(--ink); margin-bottom: .3rem; }
.ep-banana .banana { height: 54px; }
.ep-banana:hover, .ep-banana:focus-visible { background: var(--lime); }
.ep-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); margin: .6rem 0 .2rem; }
.ep-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.ep-grid button { border: 0; background: none; border-radius: 10px; font-size: 1.45rem; line-height: 1; aspect-ratio: 1; cursor: pointer; padding: 0; display: grid; place-items: center; }
.ep-grid button:hover, .ep-grid button:focus-visible { background: var(--grey); }
.ep-mini-banana .banana { height: 1.3em; vertical-align: 0; }
.ep-tip { font-size: .78rem; color: var(--ink-2); margin: .6rem 0 0; }
@media (max-width: 600px) {
  .emoji-picker { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; max-height: 55vh; border-radius: 22px 22px 0 0; padding-bottom: max(.8rem, env(safe-area-inset-bottom)); }
  .ep-grid { grid-template-columns: repeat(8, 1fr); }
  .ep-grid button { font-size: 1.6rem; }
}
.banana-preview { display: flex; align-items: center; gap: .35rem; font-size: .82rem; color: var(--ink-2); margin: .2rem 0 .3rem; }
.banana-preview[hidden] { display: none; }
.banana-preview .banana { height: 26px; vertical-align: middle; }
.banana-btn { display: none; } /* oude knop (vervangen door de emoji-knop) */

/* ---------------------------------------------------------------- foto's in de chat */
.chat-form { flex-wrap: wrap; position: relative; }
.chat-attach { flex-basis: 100%; display: flex; align-items: center; gap: .7rem; background: var(--grey); border-radius: 16px; padding: .45rem .5rem .45rem .45rem; }
.chat-attach[hidden] { display: none; }
.chat-attach img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: var(--line); flex: none; }
.chat-attach-info { flex: 1; font-size: .85rem; color: var(--ink-2); }
.photo-pick { position: relative; flex: none; }
.photo-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--grey); display: grid; place-items: center; cursor: pointer; color: var(--ink); padding: 0; transition: background .15s, transform .15s; }
.photo-btn .ic { width: 22px; height: 22px; }
.photo-btn:hover, .photo-btn[aria-expanded="true"] { background: var(--lime); transform: scale(1.06); }
.photo-menu { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 30; background: var(--paper); border-radius: 16px; box-shadow: 0 12px 34px rgba(13, 27, 30, .22), 0 0 0 1.5px var(--line); padding: .35rem; display: flex; flex-direction: column; min-width: 160px; }
.photo-menu[hidden] { display: none; }
.photo-menu button { border: 0; background: none; text-align: left; padding: .75rem .9rem; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); }
.photo-menu button:hover, .photo-menu button:focus-visible { background: var(--grey); }
.msg-photo { display: block; margin: .15rem 0 .35rem; }
.msg-photo img { display: block; max-width: min(280px, 62vw); max-height: 360px; width: auto; height: auto; border-radius: 14px; background: rgba(0, 0, 0, .06); }
.msg-bubble.photo-only { padding: .3rem; background: transparent !important; }
.msg-bubble.photo-only .msg-photo { margin: 0; }
.msg-bubble.photo-only .msg-time { color: var(--ink-2); padding: .15rem .3rem 0; }
.msg-bubble.photo-only .msg-name { padding: 0 .3rem .2rem; }
.lightbox { position: fixed; inset: 0; z-index: 140; background: rgba(8, 12, 13, .92); display: grid; place-items: center; padding: 1rem; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox-close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.1rem; cursor: pointer; }
.chat-drop { position: absolute; inset: 0; z-index: 25; display: grid; place-items: center; margin: 0; background: rgba(245, 162, 106, .88); color: var(--ink); font-weight: 800; font-size: 1.3rem; border: 3px dashed var(--ink); border-radius: var(--r-lg); pointer-events: none; }
.chat-drop[hidden] { display: none; }
.chat-main { position: relative; }

/* ---------------------------------------------------------------- Beheer > Homepage */
.hs-intro { max-width: 760px; }
.hs-list { display: flex; flex-direction: column; gap: .7rem; margin: 1rem 0; }
.hs { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: .8rem 1rem; margin: 0; background: var(--paper); }
.hs.off { background: var(--grey); }
.hs.off .hs-body { display: none; }
.hs-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.hs-move { display: flex; gap: .2rem; }
.hs-move .icon-btn .ic { transform: rotate(90deg); }
.hs-title { flex: 1 1 220px; }
.hs-title input { font-weight: 700; font-size: 1rem; border: 0; background: var(--grey); border-radius: 10px; padding: .5rem .7rem; width: 100%; }
.hs.off .hs-title input { background: var(--paper); }
.hs-type { font-size: .78rem; font-weight: 600; background: var(--lime-soft); border-radius: 999px; padding: .25rem .6rem; }
.switch { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; flex-direction: row; }
.switch input { width: 18px; height: 18px; accent-color: var(--ink); }
.hs-body { margin-top: .8rem; padding-top: .8rem; border-top: 1.5px solid var(--grey); display: flex; flex-direction: column; gap: .6rem; }
.hs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem .8rem; }
.hs-grid label { font-size: .85rem; font-weight: 600; }
.hs-grid select, .hs-grid input:not([type=checkbox]) { background: var(--grey); border: 0; border-radius: 10px; padding: .5rem .6rem; font-size: .9rem; }
.hs-veg { align-self: end; flex-direction: row; padding-bottom: .5rem; }
.hs-count { margin: 0; font-weight: 600; font-size: .9rem; }
.hs-count.low { color: var(--red); }
.hs-limit { display: flex; flex-direction: row; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; }
.hs-limit input { width: 5em; background: var(--grey); border: 0; border-radius: 10px; padding: .4rem .5rem; }
.hs-picks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.hs-picks li { display: flex; align-items: center; gap: .6rem; background: var(--grey); border-radius: 12px; padding: .35rem .4rem; }
.hs-picks img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.hs-picks span { flex: 1; font-weight: 600; font-size: .92rem; }
.hs-search { position: relative; max-width: 480px; }
.hs-search input { width: 100%; background: var(--grey); border: 0; border-radius: 999px; padding: .6rem 1rem; }
.hs-add { display: flex; flex-wrap: wrap; gap: .5rem; }
.hs-add .ic { width: 16px; height: 16px; }
.hs-save { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--paper) 30%); padding: 1rem 0; margin-top: .5rem; z-index: 5; }
.hs-reset { margin-top: .4rem; }
.hs-row { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; }
.hs-limit select { background: var(--grey); border: 0; border-radius: 10px; padding: .4rem .5rem; font-size: .9rem; }

/* ---------------------------------------------------------------- groepen */
.group-bar { background: var(--ink); color: var(--paper); text-align: center; padding: .55rem 1rem; font-size: .92rem; }
.group-bar .link { color: var(--lime); margin-left: .5rem; }
.group-bar form { display: inline; }
.groups-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); margin: 1rem 0; }
.group-card.current { box-shadow: inset 0 0 0 2px var(--lime); }
.group-head h2 { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.group-head p { margin: .2rem 0 0; }
.group-actions { margin-top: .8rem; }
.group-self h2 { margin-top: 0; }
.users-filter { align-items: center; gap: .6rem; margin: 0 0 1rem; }
.users-filter select { width: auto; max-width: 100%; background: var(--grey); border: 0; border-radius: 999px; padding: .45rem .9rem; font: inherit; }
.move-form { display: inline-flex; gap: .3rem; align-items: center; }
.move-form select { background: var(--grey); border: 0; border-radius: 8px; padding: .25rem .4rem; font-size: .82rem; }
.cols-2 .full { grid-column: 1 / -1; }
.own-preview { margin: .2rem 0 .6rem; font-size: .88rem; color: var(--ink-2); }

/* ---------------------------------------------------------------- filters bovenaan (Alle recepten) */
.search-layout.filters-top { display: block; }
.fbar { position: relative; z-index: 30; margin-bottom: 1.2rem; }
.fbar-filters { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.fdrop { position: relative; }
.fdrop > summary { list-style: none; display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .9rem; border-radius: 999px; background: var(--grey); font-weight: 600; font-size: .95rem; cursor: pointer; user-select: none; white-space: nowrap; }
.fdrop > summary::-webkit-details-marker { display: none; }
.fdrop > summary:hover { background: var(--line); }
.fdrop > summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.fdrop .chev { width: 16px; height: 16px; transition: transform .15s; }
.fdrop[open] > summary { background: var(--ink); color: var(--paper); }
.fdrop[open] .chev { transform: rotate(180deg); }
.fdrop.on > summary { background: var(--ink); color: var(--paper); }
.fdrop.on > summary:hover { background: #000; }
.fdrop-val { font-weight: 500; color: var(--lime); max-width: 16ch; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; }
.fpanel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; width: 300px; max-width: calc(100vw - 2 * var(--gut)); background: var(--paper); border-radius: 18px; box-shadow: 0 18px 50px rgba(13, 27, 30, .2), 0 0 0 1.5px var(--line); padding: .8rem .9rem 1rem; display: flex; flex-direction: column; gap: .45rem; }
.fdrop-wide .fpanel { width: min(640px, calc(100vw - 2 * var(--gut))); }
.fpanel-head { display: none; justify-content: space-between; align-items: center; margin-bottom: .2rem; }
.fpanel-close { border: 0; background: var(--grey); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.facet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem .4rem; }
.facet-grid.wide { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); max-height: min(60vh, 520px); overflow-y: auto; }
.fpanel .facet-select { margin-top: 0; }
.fpanel-sub { font-size: .82rem; font-weight: 700; margin-top: .5rem; }
.fpanel-form { display: flex; flex-direction: column; gap: .35rem; }
.fpanel-form label { font-size: .85rem; font-weight: 700; }
.fpanel-form input { background: var(--grey); border: 0; border-radius: 12px; padding: .6rem .8rem; }
.fpanel-form .btn { align-self: flex-start; margin-top: .3rem; }
.fbar-sep { width: 1.5px; height: 26px; background: var(--line); margin: 0 .25rem; }
.fquick { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.fquick:hover { border-color: var(--ink); }
.fquick.on { background: var(--lime); border-color: var(--lime); }
.filters-top .results-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
/* rechts in beeld: panelen van knoppen aan de rechterkant niet buiten het scherm laten vallen */
.fdrop.flip .fpanel { left: auto; right: 0; }

@media (max-width: 700px) {
  .fbar-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) .3rem; scrollbar-width: none; }
  .fbar-filters::-webkit-scrollbar { display: none; }
  .fdrop { position: static; }
  .fpanel, .fdrop-wide .fpanel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; max-height: 78vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 1rem 1.1rem max(1.2rem, env(safe-area-inset-bottom)); z-index: 130; }
  .fpanel-head { display: flex; }
  .facet-grid.wide { max-height: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.fsheet-open::after { content: ""; position: fixed; inset: 0; background: rgba(13, 27, 30, .45); z-index: 120; }
  body.fsheet-open { overflow: hidden; }
}
@media (max-width: 700px) {
  /* geen eigen laag voor de balk: dan komt het paneel boven de donkere achtergrond */
  .fbar { z-index: auto; }
}
.filters-top .sort-label { display: inline-flex; flex-direction: row; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem; }
.filters-top .results-head { align-items: center; }
@media (max-width: 700px) {
  /* rechterrand vervaagt: er zijn meer filters als je opzij schuift */
  .fbar-filters { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); padding-right: 3rem; }
  .fbar-filters.at-end { -webkit-mask-image: none; mask-image: none; }
}

/* ---------------------------------------------------------------- voorraadkast */
.pantry-intro { margin: 1.2rem 0 1.6rem; }
.pantry-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; background: var(--lime-soft); border-radius: var(--r-lg); padding: 1.2rem 1.5rem; }
.pantry-summary p { margin: 0; max-width: 62ch; font-size: 1.05rem; }
.pantry-tools { display: flex; justify-content: flex-end; margin-bottom: 1rem; }
.pantry-find { position: relative; display: flex; align-items: center; width: min(100%, 320px); margin: 0; }
.pantry-find .ic { position: absolute; left: .9rem; color: var(--muted); pointer-events: none; }
.pantry-find input { width: 100%; padding: .7rem 1rem .7rem 2.5rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font: inherit; }
.pantry-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }
.pantry-cat { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.2rem 1.2rem; margin: 0; min-width: 0; background: var(--paper); }
.pantry-cat[hidden] { display: none; }
.pantry-cat legend { float: left; width: 100%; padding: 0; font-weight: 800; font-stretch: 112%; font-size: 1.1rem; margin-bottom: .15rem; }
.pantry-cat-head { clear: both; display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; margin-bottom: .7rem; }
.pantry-page .small { font-size: .85rem; }
.pantry-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.pchip { display: inline-flex; margin: 0; cursor: pointer; font-weight: 500; }
.pchip[hidden] { display: none; }
.pchip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pchip span { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .85rem; border-radius: 999px; background: var(--grey); font-size: .92rem; line-height: 1.2; transition: background .12s ease; }
.pchip span::before { content: "+"; font-weight: 700; color: var(--muted); width: .8em; text-align: center; }
.pchip:hover span { background: var(--grey-2); }
.pchip input:checked + span { background: var(--lime); }
.pchip input:checked + span::before { content: "✓"; color: var(--ink); }
.pchip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.pantry-own { background: var(--lime-soft); border-color: transparent; }
.pantry-add { display: flex; gap: .5rem; margin-top: .8rem; }
.pantry-add input { flex: 1; min-width: 0; padding: .6rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); font: inherit; background: var(--paper); }
.pantry-save { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; align-items: center; gap: 1rem; margin-top: 1rem; padding: .8rem 0 calc(.8rem + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--paper) 70%, rgba(255, 255, 255, 0)); }
.pantry-save .muted { font-size: .9rem; }
/* receptpagina */
.pantry-note { display: flex; gap: .5rem; align-items: flex-start; font-size: .92rem; margin: .9rem 0 0; background: var(--paper); border-radius: var(--r-sm); padding: .6rem .8rem; }
.pantry-note .ic { color: var(--lime-deep); margin-top: .15em; }
.pantry-note.muted { background: none; padding: 0; }
.ing-list li.in-pantry label > span { color: var(--ink-2); }
.ing-have { flex: none; margin-left: auto; align-self: center; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--lime); color: var(--ink); border-radius: 999px; padding: .15rem .55rem; }
/* receptkaart */
.card-match.pantry { background: var(--lime-soft); box-shadow: inset 0 0 0 1.5px var(--lime); }
/* boodschappenlijst */
.aisle-pantry { background: var(--lime-soft); border-radius: var(--r-md); padding: .9rem 1rem .4rem; }
.aisle-pantry h2 { border-bottom-color: rgba(13, 27, 30, .1); }
.aisle-pantry li { border-bottom-color: rgba(13, 27, 30, .06); }
.aisle-note { font-size: .85rem; color: var(--ink-2); margin: 0 0 .4rem; }
.pantry-hint { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; background: var(--lime-soft); border-radius: var(--r-md); padding: .7rem .9rem; margin: 0 0 1rem; }
.pantry-hint .ic { color: var(--lime-deep); margin-top: .15em; }
.fpanel-pantry { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1.5px solid var(--line); }
@media print {
  .pantry-hint, .aisle-note { display: none !important; }
  .aisle-pantry { background: none; padding: 0; }
  .aisle-pantry li.done { display: none !important; }
  .aisle-pantry:not(:has(li:not(.done))) { display: none; }
}
.pantry-find .ic { top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) {
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg a { padding: .5rem .8rem; font-size: .88rem; white-space: nowrap; }
  .seg .ic { display: none; }
  .pantry-find { width: 100%; }
  .pantry-summary { padding: 1rem 1.1rem; }
}
.chat-foreign { margin: 0; padding: .55rem 1rem; font-size: .88rem; background: var(--peach); border-bottom: 1.5px solid var(--line); }

/* ---------------------------------------------------------------- sterren, deels gevuld (3,8) */
.stars .st { position: relative; display: inline-block; color: #CFCFCB; letter-spacing: 0; margin-right: .05em; }
.stars .st-on { position: absolute; left: 0; top: 0; bottom: 0; overflow: hidden; color: var(--ink); white-space: nowrap; }
.stars-num { font-weight: 700; font-variant-numeric: tabular-nums; }

/* cijfer geven met een schuif */
.rate-input { display: flex; flex-direction: column; gap: .5rem; }
.rate-top { display: flex; align-items: center; gap: .9rem; }
.rate-num { font-size: 3.2rem; font-weight: 800; font-stretch: 125%; line-height: 1; min-width: 2.4ch; font-variant-numeric: tabular-nums; }
.rate-top .stars { font-size: 1.7rem; }
.rate-input input[type=range] { width: 100%; padding: 0; border: 0; background: none; height: 36px; accent-color: var(--ink); cursor: pointer; }
.rate-scale { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; color: var(--muted); padding: 0 .3rem; }
.rate-hint { margin: 0; font-size: .9rem; }
.rate-hint[hidden] { display: none; }
.rate-missing .rate-hint { color: var(--red); font-weight: 600; }

/* ---------------------------------------------------------------- Verras me (kaart over de pagina) */
.surprise-btn { background: var(--lime-soft); }
.surprise-btn:hover { background: var(--lime); }
html.surprise-open { overflow: hidden; }
.surprise { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 1rem; }
.surprise[hidden] { display: none; }
.surprise-back { position: absolute; inset: 0; background: rgba(13, 27, 30, .45); }
.surprise-sheet { position: relative; width: min(460px, 100%); max-height: calc(100vh - 2rem); overflow-y: auto; background: var(--paper); border-radius: var(--r-lg); padding: 1.3rem; display: flex; flex-direction: column; gap: 1rem; box-shadow: 0 20px 60px rgba(13, 27, 30, .25); }
.surprise-head { display: flex; align-items: center; gap: .8rem; }
.surprise-head h2 { margin: 0; flex: 1; font-size: 1.6rem; }
.surprise-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.surprise-chip { font: inherit; font-size: .88rem; font-weight: 600; padding: .55em 1em; border-radius: 999px; border: 0; background: var(--grey); color: var(--ink); cursor: pointer; }
.surprise-chip:hover { background: var(--grey-2); }
.surprise-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.surprise-chip[hidden] { display: none; }
.surprise-card { display: flex; flex-direction: column; border-radius: var(--r-md); overflow: hidden; border: 1.5px solid var(--line); text-decoration: none; }
.surprise-card[hidden] { display: none; }
.surprise-img { display: block; aspect-ratio: 4 / 3; background: var(--grey); flex: none; }
.surprise-img img { width: 100%; height: 100%; object-fit: cover; }
.surprise-img.noimg img { display: none; }
.surprise-body { display: flex; flex-direction: column; gap: .3rem; padding: .9rem 1rem 1rem; }
/* vaste hoogte: titel altijd 2 regels, meta en "nog halen" altijd 1 regel */
.surprise-title { font-size: 1.2rem; font-weight: 800; font-stretch: 112%; line-height: 1.2; height: 2.4em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.surprise-meta, .surprise-miss { height: 1.45em; line-height: 1.45; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.surprise-card.is-empty { pointer-events: none; }
.surprise-card.is-empty .surprise-title { font-size: 1.05rem; }
.surprise-actions .btn.is-off { opacity: .4; pointer-events: none; }
.surprise-hide.is-off { visibility: hidden; }
.surprise-card:hover .surprise-title { text-decoration: underline; }
.surprise-meta { font-size: .9rem; color: var(--muted); }
.surprise-miss { font-size: .9rem; font-weight: 600; }
.surprise-miss[hidden] { display: none; }
.surprise-hide { align-self: flex-start; color: var(--muted); margin-top: -.4rem; }
.surprise-hide[hidden] { display: none; }
.th-sort { display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; color: inherit; white-space: nowrap; }
.th-sort:hover { text-decoration: underline; }
.th-arrow { font-size: .7em; color: var(--muted); }
.th-sort.on .th-arrow { color: var(--ink); }
.online-now { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }
.online-now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--online); }
.fav-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 1.5rem; }
.fav-filter label { flex: 0 1 auto; }
.fav-filter .fav-q { flex: 1 1 220px; }
.fav-filter select { width: auto; border-radius: 999px; background: var(--grey); border-color: transparent; padding: .65em 1em; }
.fav-filter input[type=search] { border-radius: 999px; }
.fav-count { margin: 0 0 0 auto; font-size: .92rem; }
.prefs-panel { margin: 0 0 2rem; }
.prefs-panel h2 { margin-bottom: .4rem; }
.prefs-bar { height: 10px; border-radius: 999px; background: var(--grey-2); overflow: hidden; max-width: 420px; }
.prefs-bar span { display: block; height: 100%; background: var(--lime); }
.prefs-list { display: grid; gap: .4rem; margin: .6rem 0 0; }
.prefs-list div { display: flex; gap: .8rem; }
.prefs-list dt { font-weight: 700; min-width: 7.5rem; }
.prefs-list dd { margin: 0; }
/* receptpagina: vier hoofdknoppen + menu "Meer" */
.more-menu summary.btn { gap: .35em; }
.more-menu summary .ic { width: 1em; height: 1em; transition: transform .15s ease; }
.more-menu[open] summary .ic { transform: rotate(180deg); }
.more-pop { min-width: 250px; left: auto; right: 0; z-index: 12; }
@media (max-width: 600px) { .more-pop { right: auto; left: 0; } }
.more-pop form { display: flex; flex-direction: column; margin: 0; }
.more-pop form button { width: 100%; }
.more-share > summary { list-style: none; padding: .65em .9em; border-radius: 10px; font-weight: 500; cursor: pointer; }
.more-share > summary::-webkit-details-marker { display: none; }
.more-share > summary:hover { background: var(--grey); }
.more-share[open] > summary { background: var(--grey); }
.more-share-form { padding: .7rem .9rem .9rem; }
.more-share-form button.btn { width: auto; align-self: flex-start; background: var(--ink); color: var(--paper); padding: .7em 1.1em; }
.more-sep { margin: .35rem .9rem .15rem; padding-top: .5rem; border-top: 1.5px solid var(--line); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.hidden-groups { flex-wrap: wrap; margin-bottom: 1.2rem; }
.recipe-note { background: var(--peach); padding: .7rem 1rem; border-radius: var(--r-sm); font-size: .95rem; max-width: 62ch; margin: 0 0 1rem; }
.surprise-empty { margin: 0; padding: 1.5rem 1rem; background: var(--grey); border-radius: var(--r-md); text-align: center; }
.surprise-empty[hidden] { display: none; }
.surprise-actions { display: flex; gap: .6rem; }
.surprise-actions .btn { flex: 1; }
.surprise-actions .btn[hidden] { display: none; }
.surprise.loading .surprise-card { opacity: .5; }
@media (max-width: 600px) {
  .surprise { place-items: end stretch; padding: 0; }
  .surprise-sheet { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; padding-bottom: max(1.3rem, env(safe-area-inset-bottom)); }
  .surprise-img { aspect-ratio: 16 / 10; }
}
@media (prefers-reduced-motion: no-preference) {
  .surprise:not([hidden]) .surprise-sheet { animation: surprise-in .18s ease-out; }
  @keyframes surprise-in { from { transform: translateY(16px); opacity: 0; } }
}

/* ---------------------------------------------------------------- kopbalk v2: één regel op desktop, hamburger op mobiel */
.nav-toggle { display: none; }
.icon-btn.nav-toggle { background: var(--ink); color: var(--paper); }
.icon-btn.nav-toggle:hover { background: #24363a; }
/* naam bij een icoon als je er met de muis op staat (of er met Tab op komt) */
@media (hover: hover) {
  [data-tip]::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -4px); background: var(--ink); color: var(--paper); font-size: .8rem; font-weight: 600; line-height: 1; padding: .5em .75em; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s ease, transform .12s ease; z-index: 60; }
  [data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); transition-delay: .15s; }
  /* helemaal rechts: label rechts uitlijnen, anders steekt het buiten het scherm */
  .usermenu [data-tip]::after { left: auto; right: 0; transform: translateY(-4px); }
  .usermenu [data-tip]:hover::after, .usermenu [data-tip]:focus-visible::after { transform: none; }
  [data-tip]:not(:hover):not(:focus-visible)::after { visibility: hidden; }
  .top { overflow-x: clip; }
}
.um-name { display: inline; }
@media (min-width: 900px) {
  .top-inner { flex-wrap: nowrap; }
  .top-search { flex: 1 1 260px; max-width: 560px; min-width: 180px; }
  .top-actions { flex: none; }
}
@media (max-width: 1199px) { .um-name, .add-long { display: none; } .usermenu .pill-btn { padding-right: .6rem; } }
.add-btn .ic { width: 1.1em; height: 1.1em; }
@media (max-width: 899px) {
  .nav-toggle { display: inline-grid; }
  .mainnav { display: none; }
  .top-inner { gap: .7rem .45rem; padding: .7rem var(--gut); }
  .top-actions { gap: .4rem; }
  .top-actions .icon-btn, .nav-toggle { width: 40px; height: 40px; }
  .top-actions .icon-btn .ic, .nav-toggle .ic { width: 19px; height: 19px; }
  .hide-md { display: none !important; }
  .usermenu .pill-btn { padding: .3rem; }
  .usermenu .pill-btn > .ic { display: none; }
  .logo-word { font-size: 1.45rem; }
  .top-search input { padding: .75rem 0; }
}
.navdrawer { position: fixed; inset: 0; z-index: 95; }
.navdrawer[hidden] { display: none; }
.navdrawer-back { position: absolute; inset: 0; background: rgba(13, 27, 30, .45); }
.navdrawer-panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(320px, 86vw); background: var(--paper); padding: 1rem 1rem max(1.2rem, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: .15rem; overflow-y: auto; }
.navdrawer-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 .6rem .6rem; }
.nd-link { display: flex; align-items: center; gap: .7rem; padding: .7rem .6rem; border-radius: 12px; font-size: 1.15rem; font-weight: 700; font-stretch: 110%; text-decoration: none; color: var(--ink); }
.nd-link .ic { width: 20px; height: 20px; color: var(--ink-2); }
.nd-link:hover { background: var(--grey); }
.nd-link[aria-current] { background: var(--lime-soft); }
.nd-link .count { margin-left: auto; }
.nd-sep { border: 0; border-top: 1.5px solid var(--line); margin: .5rem .6rem; }
.navdrawer-panel .btn { margin: .9rem .6rem 0; }
html.nav-open { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .navdrawer:not([hidden]) .navdrawer-panel { animation: nd-in .18s ease-out; }
  @keyframes nd-in { from { transform: translateX(-24px); opacity: 0; } }
}

/* posten zonder herladen */
.composer-err { color: var(--red); font-size: .9rem; font-weight: 600; }
.composer-err[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .post-new { animation: post-new .35s ease-out; }
  @keyframes post-new { from { opacity: 0; transform: translateY(-8px); } }
}

/* boodschappenlijst leegmaken */
.shop-clear { display: flex; flex-wrap: wrap; gap: .5rem; margin: .2rem 0 1rem; }
.shop-removed { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; margin: 0 0 1rem; font-size: .92rem; }
.shop-empty { margin: 0 0 1rem; padding: 1.2rem 1rem; background: var(--grey); border-radius: var(--r-md); text-align: center; }

/* super user: groepslabel bij iets uit een andere groep */
.group-tag { display: inline-block; margin-left: .35em; padding: .05em .55em; border-radius: 999px; background: var(--grey); color: var(--muted); font-size: .78em; font-weight: 600; vertical-align: .1em; }

/* Europese / originele maten */
.ing-head { flex-wrap: wrap; gap: .6rem; }
.units { display: inline-flex; background: var(--paper); border-radius: 999px; padding: 3px; gap: 2px; }
.units[hidden] { display: none; }
.units button { font: inherit; font-size: .82rem; font-weight: 600; border: 0; background: none; color: var(--ink); padding: .4em .8em; border-radius: 999px; cursor: pointer; }
.units button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* partner (gedeelde voorraadkast) */
.partner-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0; }
.partner-form { display: flex; flex-direction: column; gap: .4rem; }
.partner-form .row { display: flex; flex-wrap: wrap; gap: .5rem; }
.partner-form input { flex: 1 1 14rem; }
.pantry-shared { display: flex; align-items: center; gap: .5rem; margin: 0 0 1rem; font-size: .95rem; }


/* ---------------------------------------------------------------- kooktimers */
.step-timers { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.step-timer { display: inline-flex; align-items: center; gap: .25em; font: inherit; font-weight: 600; color: var(--ink); background: var(--lime-soft); border: 1.5px solid var(--lime); border-radius: 999px; padding: 0 .5em; line-height: 1.5; cursor: pointer; vertical-align: baseline; }
.step-timer:hover { background: var(--lime); }
.step-timer:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.step-timer svg { flex: none; }
.step-timer.started { background: var(--lime); }
.cook-overlay .step-timer { border-width: 2px; padding: 0 .4em; }
.step-timers .step-timer { font-size: .95rem; padding: .4em .95em; gap: .4em; line-height: 1.2; }
.cook-overlay .step-timers .step-timer { font-size: 1.1rem; }
.timers { position: fixed; right: 1rem; bottom: 1rem; z-index: 160; display: flex; flex-direction: column; gap: .5rem; width: min(22rem, calc(100vw - 2rem)); }
.timers[hidden] { display: none; }
.timer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: .6rem .6rem .6rem 1rem; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.timer.done { background: var(--lime); border-color: var(--lime-deep); animation: timer-pulse 1s ease-in-out infinite; }
.timer.paused .timer-time { color: var(--grey); }
.timer-info { display: flex; flex-direction: column; min-width: 0; }
.timer-time { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.timer-label { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timer-label a { color: inherit; }
.timer-btns { display: flex; gap: .3rem; flex: none; }
.timer-btns button { min-width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; padding: 0 .6rem; }
.timer-btns button:hover { border-color: var(--ink); }
.timer.done .timer-btns button { border-color: var(--ink); }
@keyframes timer-pulse { 50% { transform: scale(1.03); } }
@media (max-width: 600px) { .timers { right: .5rem; left: .5rem; bottom: .5rem; width: auto; } }
@media print { .timers, .step-timers { display: none !important; } }

/* weekmenu: restjes opmaken */
.leftovers { margin-top: 2rem; }
.leftovers .section-head p { margin: .2rem 0 0; }
.left-pick { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin: 0 0 1.4rem; }
.left-pick fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.left-pick .chip { display: inline-flex; position: relative; }
.left-pick .chip span { padding: .55em 1em; font-size: .95rem; }
.left-pick .chip input:checked + span { background: var(--lime); color: var(--ink); font-weight: 600; }
.left-more { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: -.4rem 0 1.2rem; }
.card-match.overlap { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; border-radius: var(--r-sm); text-wrap: pretty; }
