/* The signed-in kitchen in the 2026 redesign (docs/design/redesign-2026/mock: Kitchen, Board, Plan, List, Pantry, Account,
   Import): the kitchen header, library, boards, plan, list, pantry, household and import pages. It loads after
   application.css, follow.css, library.css and pinboard.css (stylesheets sort by name), so it wins at equal specificity.
   Only classes the pages already have: every selector the JavaScript reads (.shop__*, .list-item, .lib-item__check,
   .is-selecting, .arrange-row, .mv-pin__body ...) keeps its markup; this file only restyles them. Tokens only, so dark
   follows. Sage (basil) is done and honey (mustard) is now, each with a second cue besides colour in the markup. */

/* --- Kitchen header: title and counts on the left, search and Import on the right, the tabs under a hairline --------- */
.kitchen-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.kitchen-head .intro { flex: 1 1 320px; min-width: 0; max-width: none; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.kitchen-head .intro .display { flex: 1 1 100%; font-size: clamp(36px, 3.6vw, 48px); line-height: 1.05; margin-bottom: 4px; }
.kitchen-head .intro .lede { font-size: 16px; line-height: 24px; }
.kitchen-head .kitchen-household { align-self: center; font-size: 14px; font-weight: 600; }
.kitchen-head .kitchen-household .strong { font-weight: 600; }
.kitchen-head .kitchen-tools { flex: 1 1 380px; min-width: 0; }
.kitchen-head .kitchen-search { flex: 1 1 220px; max-width: none; }
.kitchen-head .kitchen-search input { height: 46px; background: var(--card); border: 1px solid var(--rule-strong); }
.kitchen-head .kitchen-tools .button { min-height: 46px; padding: 0 18px; background: var(--card); border: 1px solid var(--rule-strong); color: var(--ink); font-size: 14px; }
.kitchen-head .kitchen-tools .button:hover { background: var(--linen); color: var(--ink); }
.tabs { flex-wrap: wrap; margin-top: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.tab { font-size: 15px; height: 42px; }
@media (max-width: 700px) {
  .tabs { flex-wrap: nowrap; margin-top: 16px; }
  .kitchen-head .kitchen-tools { flex-basis: 100%; }
}

/* --- Library: the wall is masonry; the bar and the select toolbar are pills ----------------------------------------- */
.lib-main > .intro .display, .lib-main .display { font-size: clamp(32px, 3.2vw, 44px); line-height: 1.08; }
.lib-bar { padding: 12px 0; border-bottom: 1px solid var(--rule); gap: 10px 12px; }
.lib-bar .input--small { height: 40px; border-radius: var(--radius-pill); padding: 0 14px; font-size: 14px; font-weight: 600; }
.lib-bar .segmented { height: 40px; padding: 4px; }
.lib-bar .segmented__option { padding: 0 14px; font-size: 14px; }
.lib-bar .segmented__option[aria-current="true"] { font-weight: 700; }
.lib-bar .button--small { min-height: 40px; padding: 0 16px; background: var(--card); border: 1px solid var(--rule-strong); color: var(--ink); font-size: 14px; }
.lib-bar .button--small:hover { background: var(--linen); color: var(--ink); }
.lib-grid:not(.grid--wide) { display: block; columns: 4 200px; column-gap: 20px; }
.lib-grid:not(.grid--wide) .lib-item { break-inside: avoid; margin: 0 0 22px; }
.lib-grid:not(.grid--wide) .card__photo { height: auto; min-height: 120px; }
.lib-item__check { top: 10px; left: 10px; width: 32px; height: 32px; box-shadow: 0 0 0 2px #fff; }
.lib-item.is-picked .card__photo, .lib-row.is-picked { outline: 3px solid var(--persimmon); outline-offset: 3px; }
.lib-row { border-radius: var(--radius-lg); }
.lib-row__title { font: 700 17px/22px var(--font-sans); }
.lib-select { border-radius: 32px; padding: 10px 12px 10px 22px; box-shadow: var(--shadow-float); }
.lib-select .button--small { min-height: 40px; }
.lib-select .button--paper { background: transparent; color: var(--on-iron); border: 1px solid var(--iron-rule-2); }
.lib-select .button--paper:hover { background: var(--iron-rule); color: var(--on-iron); }
.lib-select > button[value="boards"], .lib-select__boards > summary { background: var(--persimmon); color: var(--on-persimmon); border-color: transparent; }
.lib-pager .button { background: var(--card); border: 1px solid var(--rule-strong); }
.mv-tag { background: var(--honey-bg); color: var(--honey-ink); border-color: transparent; }
.lib-side { border-radius: var(--radius-card); }
.lib-tree__link { font-weight: 600; }

/* --- Boards: three-up covers (one big photo, two small), a dashed "new board" at the end ---------------------------- */
.tiles--boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 28px 20px; align-items: start; }
.tiles--boards .mosaic { height: 190px; border-radius: 22px; }
.tiles--boards .tile { gap: 2px; }
.tiles--boards .tile__title { margin: 10px 4px 0; font: 700 18px/24px var(--font-sans); letter-spacing: 0; }
.tiles--boards .tile .muted { margin: 0 4px; font-size: 13px; }
.tiles--boards .lib-parent { gap: 8px; }
.tiles--boards .lib-subs { margin: 0 4px; }
.tiles--boards .tile:hover .mosaic { filter: brightness(.9); }
.tiles--boards .tile-new { grid-column: 1 / -1; border-radius: 22px; border: 2px dashed var(--rule-strong); padding: 24px 28px; }
.tile-new__title { font-size: 26px; line-height: 30px; }
/* .lib-main is a flex column; the boards page puts the grid on the same element, so say display: grid again here. */
.tiles--boards.lib-main { display: grid; }
@media (max-width: 600px) { .tiles--boards, .tiles--boards.lib-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; } .tiles--boards .mosaic { height: 120px; } }

/* --- A board: its cover and name in one card, sub-boards as pills ---------------------------------------------------- */
.board-head { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; padding: 16px; background: var(--card); border: 1px solid var(--rule); border-radius: 28px; }
.board-head__cover { flex: 1.4 1 340px; min-width: 0; }
.board-head__cover .mosaic { height: 300px; border-radius: 20px; }
.board-head .intro { flex: 1 1 300px; min-width: 0; max-width: none; padding: 8px 12px 8px 0; gap: 6px; }
.board-head .intro .display { font-size: clamp(36px, 4.2vw, 56px); line-height: 1; letter-spacing: -.03em; }
.board-head .intro .lede { font-size: 16px; color: var(--ink-soft); }
.board-head .intro .eyebrow { color: var(--tomato-text); }
.lib-subs .chip { background: var(--linen); border-radius: var(--radius-pill); }
.board-edit > summary { align-self: flex-start; padding: 8px 16px; border: 1px solid var(--rule-strong); border-radius: var(--radius-pill); background: var(--card); color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }
@media (max-width: 600px) { .board-head__cover .mosaic { height: 210px; } .board-head { padding: 12px; } }

/* --- Cooked ------------------------------------------------------------------------------------------------------------ */
.cooked__item { border-radius: var(--radius-lg); }

/* --- This week and the month: dinners are photo cards, the day is a small heading, Tonight is cast iron -------------- */
.week { gap: 22px; }
.week__title { font-size: clamp(34px, 3.2vw, 44px); line-height: 1.08; }
.week-day { margin-top: 10px; font: 700 13px/18px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.dinner { grid-template-columns: 112px minmax(0, 1fr) auto; border-radius: 24px; padding: 12px; }
.dinner__photo { width: 112px; height: 112px; border-radius: 16px; }
.dinner__title { font: 700 18px/24px var(--font-sans); }
.dinner--pinned { border-width: 2px; }
.plan-tag { background: var(--linen); }
.tonight { border-radius: 24px; }
.week-card, .week-set, .week-empty { border-radius: 24px; }
.week-progress__seg { height: 8px; }
.week-progress__seg--done { background: var(--sage); }
.week__aside .week-card { border-radius: 24px; }
.cooked-row { border-radius: var(--radius-lg); }
.dinner-add { border-radius: 24px; border-width: 2px; border-color: var(--rule-strong); }
@media (max-width: 700px) {
  .dinner { grid-template-columns: 84px minmax(0, 1fr); }
  .dinner__photo { width: 84px; height: 84px; }
  .dinner__actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* --- Shopping list: each aisle is a card, rows keep the checkbox the script reads -------------------------------------- */
.list-aisle { background: var(--card); border: 1px solid var(--rule); border-radius: 24px; padding: 14px 20px 6px; }
.list-aisle__head { padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.list-aisle__title { font: 800 22px/28px var(--font-display); letter-spacing: -.02em; }
.list-item:last-child { border-bottom: 0; }
.list-main { gap: 18px; }
.list-card-box { border-radius: 24px; }
.list-card-box__title { font: 800 21px/26px var(--font-display); letter-spacing: -.02em; }
.list-head__h1 { font: 800 clamp(30px, 2.8vw, 38px)/1.1 var(--font-display); letter-spacing: -.02em; }

/* --- Pantry: a card for each place, two across when there is room ---------------------------------------------------- */
.pantry-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.pantry-main > * { grid-column: 1 / -1; }
.pantry-main > .pantry-place { grid-column: auto; }
.pantry-place { background: var(--card); border: 1px solid var(--rule); border-radius: 24px; padding: 14px 18px 8px; }
.pantry-place .list-aisle__head { border-bottom: 1px solid var(--rule); }
.pantry-place .list-aisle__title { font: 800 21px/26px var(--font-display); letter-spacing: -.02em; }
.pantry-card { border-radius: 24px; }
.pantry-card__title { font: 800 21px/26px var(--font-display); letter-spacing: -.02em; }
@media (max-width: 900px) { .pantry-main { grid-template-columns: minmax(0, 1fr); } .pantry-main > .pantry-place { grid-column: 1 / -1; } }

/* --- Household, account, billing and import: roomy rounded cards ------------------------------------------------------ */
.household-card { border-radius: 28px; }
.explain-card { border-radius: 24px; }
.settings__card { border-radius: 28px; padding: 28px; }
.settings__title { letter-spacing: -.02em; }
.seat__who .avatar, .seat .who { flex: none; }
.plans .plan { border-radius: 28px; }
.import-card { border-radius: 28px; }

/* Phones: the wall is two columns, like the app. */
@media (max-width: 600px) {
  .lib-grid:not(.grid--wide) { columns: 2 140px; column-gap: 12px; }
  .lib-grid:not(.grid--wide) .lib-item { margin-bottom: 16px; }
  .lib-grid:not(.grid--wide) .favorite__button { min-height: 32px; padding: 0 12px; font-size: 13px; }
}

/* The week's header: title left, Week/Month and Print right, the progress bar across the whole width under them. */
.week__head { align-items: center; gap: 14px 16px; }
.week__head > div:first-child { flex: 1 1 280px; min-width: 0; }
.week-progress { order: 9; flex: 1 1 100%; width: 100%; }

/* --- "Cooked ×N" on library photos: sage means done, and the check and the words are the second cue ------------------ */
.card__badge { display: none; align-self: flex-start; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--sage-bg); color: var(--sage-ink); font: 700 12px/18px var(--font-sans); white-space: nowrap; }
.lib-grid .card__badge { display: inline-flex; }

/* --- Saved: the boards strip above all saves ------------------------------------------------------------------------- */
.boards-strip { display: flex; flex-direction: column; gap: 14px; }
.boards-strip__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.boards-strip__head h2 { margin: 0; font: 800 clamp(26px, 2.4vw, 32px)/1.1 var(--font-display); letter-spacing: -.02em; }
.boards-strip__all { font-weight: 700; color: var(--tomato-text); text-decoration: none; }
.boards-strip .tiles--boards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 20px; }
.boards-strip .tiles--boards .mosaic { height: 150px; }
.boards-strip .tiles--boards .tile__title { font: 700 18px/24px var(--font-sans); letter-spacing: 0; }

/* --- This week on wide screens: the mock's 7-day grid, one column per day; phones keep the stacked list --------------- */
@media (min-width: 1000px) {
  .week__layout { grid-template-columns: minmax(0, 1fr); }
  .week__aside { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
  .week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; align-items: start; }
  .week-col { min-width: 0; padding: 10px; border-radius: 24px; background: var(--linen); border: 2px solid transparent; display: flex; flex-direction: column; gap: 10px; }
  .week-col--today { border-color: var(--honey); background: var(--honey-bg); }
  .week-col .week-day { margin: 2px 4px 0; display: flex; flex-wrap: wrap; gap: 2px 8px; }
  .week-col .dinners { gap: 10px; }
  .week-col .dinner { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px; border-radius: 18px; }
  .week-col .dinner__photo { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 14px; }
  .week-col .dinner--note .dinner__photo, .week-col .dinner--leftover .dinner__photo { aspect-ratio: 5 / 3; }
  .week-col .dinner__title { font-size: 15px; line-height: 20px; }
  .week-col .dinner__actions { justify-content: flex-start; gap: 6px 8px; }
  .week-col .day-chip { max-width: 100%; }
  .week-col .dinner-tonight { margin: 0; }
  .week-col .nights { flex-wrap: wrap; gap: 4px 8px; max-width: 100%; }
  .week-col .nights__n { min-width: 56px; }
  .week-col .nights__step { width: 28px; }
  .week-col .dinner-tonight .link-button { display: block; width: 100%; box-sizing: border-box; text-align: center; padding: 7px 8px; border-radius: var(--radius-pill); background: var(--card); border: 1px solid var(--rule-strong); color: var(--ink); font-weight: 600; font-size: 12px; text-decoration: none; }
  .week-col--today .dinner-tonight .link-button { background: var(--persimmon); border-color: var(--persimmon); color: #fff; font-weight: 700; font-size: 13px; }
  .week-sometime { margin-top: 14px; }
  .week-sometime .dinners { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
  .week-col--empty { background: transparent; border: 2px dashed var(--rule-strong); min-height: 120px; }
  .week-col--empty .week-day { color: var(--muted); }
  .week-col__add { font-size: 13px; font-weight: 600; color: var(--tomato-text); text-decoration: none; padding: 0 4px; }
}

/* --- Account: the mock's two columns (you on the left, household and plan on the right), the household card in basil --- */
.settings { max-width: 1360px; gap: 24px; }
.settings__head { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.settings__avatar { flex: none; width: 84px; height: 84px; border-radius: 50%; background: var(--sage); color: var(--paper); display: grid; place-items: center; font: 800 40px/1 var(--font-display); }
.settings__who { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.settings__jump { display: flex; flex-wrap: wrap; gap: 8px; }
.settings__jump a { padding: 9px 15px; border-radius: var(--radius-pill); background: var(--linen); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.settings__jump a:hover { color: var(--tomato-text); }
.settings__cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.settings__col { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.settings__col + .settings__col { flex-grow: 1.25; flex-basis: 480px; }
.settings__card--household { background: var(--sage-bg); border-color: transparent; }
.settings__card--household .settings__title, .settings__card--household .muted { color: var(--sage-ink); }
.settings__card :target, .settings__card:target { scroll-margin-top: 90px; }
@media (max-width: 600px) { .settings__card { padding: 24px 20px; } .settings__avatar { width: 64px; height: 64px; font-size: 30px; } }
@media (max-width: 600px) {
  .boards-strip .tiles--boards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .boards-strip .tiles--boards .mosaic { height: 110px; border-radius: 16px; }
}
@media (max-width: 999px) { .week-col--empty { display: none; } }
/* Pantry add row on phones: Amount, Place and Expires each take a full row so the Place text isn't cut off. */
@media (max-width: 600px) { .pantry-add__more .pantry-field { flex: 1 1 100%; } .pantry-add__more .pantry-field select { width: 100%; } }
