/* The Thanksgiving grocery list, on top of ../gustamo.css and ../grocery-list/planner.css: the same
   fridge door, paper and magnets as the weekly planner. Editors stay upright; the list sheet and
   the turkey card carry the pins. Light room only, like every Gustamo page. */

.tool-hero .day-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 14px; border-radius: 12px;
  background: var(--paper); border: 1px solid var(--hair); box-shadow: var(--shadow); font: 700 .9375rem/1.25 var(--sans); color: var(--ink); }
.tool-hero .day-chip img { width: 26px; height: 26px; }

/* the menu: one paper card with the guests, the units and the twelve dishes */
.menu-card { padding: 22px 18px 18px; }
@media (min-width: 560px) { .menu-card { padding: 26px 24px 22px; } }
.guests-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 14px; border-radius: 14px; background: var(--paper2); border: 1px solid var(--hair); }
.guests-row > label { font: 800 1.0625rem/1.2 var(--sans); color: var(--ink); }
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper .mag.sm { width: 48px; padding: 0; font-size: 1.5rem; line-height: 1; }
.stepper .mag:disabled { --t: 0px; }
.tool .stepper input[type="number"] { width: 4.5rem; min-height: 48px; text-align: center; font: 800 1.375rem/1 var(--sans); padding: 8px 6px; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.dish-group { margin-top: 20px; }
.dish-group h3 { font: 800 .8125rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--quiet); margin-bottom: 4px; }
.dish-list { list-style: none; }
.dish { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--hair); }
.dish:first-child { border-top: 0; }
.dish label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; cursor: pointer; }
.dish label .t { min-width: 0; }
.dish label strong { display: block; font: 700 1rem/1.3 var(--sans); color: var(--ink); }
.dish label small { display: block; font: 600 .875rem/1.35 var(--sans); color: var(--quiet); }
.dish input { appearance: none; -webkit-appearance: none; flex: none; width: 26px; height: 26px; margin: 0; border-radius: 8px; border: 2px solid rgba(95, 82, 73, .7); background: var(--paper);
  cursor: pointer; transition: background-color .2s var(--ease-fade), border-color .2s var(--ease-fade); }
.dish input:checked { border-color: var(--basil); background: var(--basil) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.4l3 3 6.6-6.8' fill='none' stroke='%23FFFFFF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat; }
.dish input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.dish label:has(input:not(:checked)) strong { color: var(--quiet); }
.dish .ing { flex: none; font: 700 .875rem/1.2 var(--sans); padding: 12px 2px 12px 6px; }

/* the turkey card under the list */
.turkey { padding: 24px 18px 18px; }
/* phone: menu, list, turkey. Wide: the turkey card sits under the menu, the list runs down the right. */
@media (min-width: 980px) {
  .tg-grid { grid-template-areas: "menu list" "turkey list"; grid-template-rows: auto 1fr; }
  .tg-grid > .col-menu { grid-area: menu; }
  .tg-grid > .col-list { grid-area: list; }
  .tg-grid > .turkey { grid-area: turkey; align-self: start; }
}
.nw { white-space: nowrap; }
@media (min-width: 560px) { .turkey { padding: 26px 24px 20px; } }
.turkey .card-head h2 { font-size: 1.5rem; }
.turkey dl { display: grid; gap: 0; }
.turkey dl > div { padding: 11px 0; border-top: 1px solid var(--hair); }
.turkey dl > div:first-child { border-top: 0; padding-top: 2px; }
.turkey dt { font: 800 .8125rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--quiet); margin-bottom: 4px; }
.turkey dd { font-size: 1rem; line-height: 1.5; color: var(--ink); }
.turkey .src, .src-line { margin-top: 12px; font-size: .9375rem; color: var(--quiet); }
.turkey-facts.swap > div { animation: tg-fade .32s var(--ease-fade); }
@keyframes tg-fade { from { opacity: .25; } to { opacity: 1; } }

/* a block that stays in the page and opens or shuts: height and opacity only */
.fold.shut { grid-template-rows: 0fr; opacity: 0; }
.fold.shut > .in { overflow: hidden; }
.fold.shut.anim { transition: grid-template-rows .26s var(--ease-out), opacity .2s var(--ease-out); }
.sheet-list .for { margin: -4px 0 6px; font: 700 .9375rem/1.3 var(--sans); color: var(--quiet); }
.print-only { display: none; }

/* make-ahead plan */
.timeline { list-style: none; display: grid; gap: 18px; max-width: 52rem; }
.timeline > li { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 20px 18px 16px; }
@media (min-width: 700px) { .timeline > li { grid-template-columns: 13rem 1fr; gap: 20px; padding: 22px 24px 18px; } }
.timeline .when b { display: block; font: 700 1.1875rem/1.25 var(--serif); font-variation-settings: 'SOFT' 100; color: var(--ink); }
.timeline .when small { display: block; font: 700 .875rem/1.35 var(--sans); color: var(--quiet); }
.timeline ul { list-style: none; display: grid; gap: 8px; }
.timeline ul li { padding-left: 18px; position: relative; }
.timeline ul li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--terra); }
.timeline .day-of { border-left: 6px solid var(--tomato); }

/* the USDA tables */
.tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); gap: 24px 22px; align-items: start; }
.tables .paper { padding: 22px 18px 16px; }
.tables h3 { margin-bottom: 10px; }
.tables table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.4; }
.tables th, .tables td { text-align: left; padding: 8px 8px 8px 0; border-top: 1px solid var(--hair); vertical-align: top; }
.tables thead th { border-top: 0; font: 800 .75rem/1.25 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--quiet); }
.tables td:first-child { font-weight: 700; white-space: nowrap; }
.tables .note { margin-top: 10px; font-size: .9375rem; color: var(--quiet); }
.safety { margin-top: 24px; max-width: 52rem; padding: 20px 18px 16px; }
.safety ul { list-style: none; display: grid; gap: 8px; margin-top: 8px; }
.safety li { padding-left: 18px; position: relative; }
.safety li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--basil); }

/* what goes into each dish */
.dish-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: 22px; }
.dish-card { padding: 22px 18px 16px; scroll-margin-top: 84px; }
.dish-card h3 { font-size: 1.15rem; }
.dish-card .meta { margin-top: 4px; font: 700 .875rem/1.3 var(--sans); color: var(--quiet); }
.dish-card ul { list-style: none; display: grid; gap: 4px; margin-top: 10px; font-size: .9375rem; line-height: 1.45; }
.dish-card ul li { padding-left: 14px; position: relative; }
.dish-card ul li::before { content: ''; position: absolute; left: 1px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--quiet); }
.dish-card .ahead { margin-top: 10px; font-size: .9375rem; color: var(--ink); }
#tool, #ahead, #turkey-basics, #menu-dishes { scroll-margin-top: 80px; }

@media (prefers-reduced-motion: reduce) {
  .fold.shut.anim, .dish input { transition: none; }
  .turkey-facts.swap > div { animation: none; }
}

@media print {
  .tool .col-menu, .after-tool, .turkey .src, .tool-hero .day-chip { display: none !important; }
  .print-only { display: block; }
  .plan.print-only { display: grid; }
  .turkey { margin-top: 14px; padding: 0; border: 0; box-shadow: none; break-inside: avoid; }
  .tg-grid { display: block; }
  .turkey .pin { display: none; }
  .fold.shut { display: none; }
}
