/* /thanksgiving/ (MIT-007 STEER-2, variant A "Cream page"): the paid-ad landing page for Thanksgiving Sofra pre-orders.
   Bora's order card on a cream tablecloth: every line people read is Mona Sans in olive on cream (7.0:1); Bodoni Moda
   600 (roman only) sets the headline and the section titles; terracotta-ink is kept for those titles and the one
   "Only 40" line; the buttons are Bora's terracotta with cream labels. The colour comes from real dish photographs.
   Brand tokens only (base.css): cream #F4EFE4, cream-3 #ACA690, olive #4F523A, terracotta-ink #8E4F30, terracotta
   button #9A5431 / #8A4A2B. Never terracotta on olive. No timed motion (L12-002). */

.tg {
  --tg-cream: #f4efe4;
  --tg-line: #aca690;
  --tg-olive: #4f523a;
  --tg-ink: #8e4f30;
  background: var(--tg-cream);
  color: var(--tg-olive);
  padding-top: var(--head-h);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 450;
  font-variant-numeric: proportional-nums lining-nums;
  font-feature-settings: "pnum", "lnum";
}
/* base.css's cream ground rule (:is(.t-cream, .page-cream > main), specificity 0,1,1) would set the text to its ink;
   on this page every line people read is olive. */
.tg.t-cream { color: var(--tg-olive); }
/* MIT-007 STEER-5 (audit item 8): at 0,2,0 the page's ring lost its colour to base.css's ground rule (0,2,1), so the
   ring around a Choose button was its own cream label colour, cream on cream. Now olive on cream, cream on olive. */
.tg.t-cream :focus-visible { outline: 2px solid var(--tg-olive); outline-offset: 3px; }
.tg.t-cream .t-olive :focus-visible { outline-color: var(--tg-cream); }
.tg ::selection { background: var(--tg-olive); color: var(--tg-cream); }
.tg .display { font-weight: 600; font-variation-settings: "opsz" 24; letter-spacing: -.018em; }
:where(.tg) :where(figure) { margin: 0; }
:where(.tg) :where(picture) { display: block; }
.tg-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.tg-h2 { font-size: clamp(32px, 7.6vw, 54px); line-height: 1.06; color: var(--tg-ink); max-width: 16em; text-wrap: balance; }

/* ---------- buttons ---------- */
.tg .btn { font-size: 15px; font-weight: 700; letter-spacing: .06em; }
.tg-call { --h: 52px; padding: 0 28px; border: 2px solid var(--tg-olive); color: var(--tg-olive); background: transparent; }
.tg-call:active { background: var(--tg-olive); color: var(--tg-cream); }
@media (hover: hover) and (pointer: fine) { .tg-call:hover { background: var(--tg-olive); color: var(--tg-cream); } }

/* ---------- first screen: headline, intro, the 40, the gift, the order card ---------- */
.tg-top {
  max-width: var(--max); margin: 0 auto;
  padding: 14px var(--pad) 0;
  display: grid; grid-template-columns: minmax(0, 1fr);
}
/* STEER-3: line-height 1.14 leaves 0.12em of air between a line's descenders (the g of "Thanksgiving,") and the next
   line's ascenders at every width (1.02 left none). The negative margins give back the extra half-leading above and
   below, so only the first line moves up (by 0.12em) and the second line and everything after it stay where they were:
   the phone first screen, with all three Choose above the dock, is unchanged. */
.tg-title { font-size: clamp(36px, 9.8vw, 72px); line-height: 1.14; margin: -.18em 0 -.06em; color: var(--tg-olive); max-width: 11em; }
.tg-intro { margin-top: 10px; font-size: 17px; line-height: 1.5; max-width: 31em; }
/* MIT-007 STEER-5 (audit item 2 B): the day sits under the intro, in the height the old three-line intro had */
.tg-when { margin-top: 0; font-size: 17px; line-height: 1.5; font-weight: 650; }
.tg-few { margin-top: 8px; font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--tg-ink); text-wrap: balance; }
.tg-gift {
  margin-top: 12px; display: flow-root;
  padding: 10px 14px 10px 10px; border-radius: 4px;
  background: var(--tg-olive); color: var(--tg-cream);
}
.tg-gift-photo { float: left; margin: 2px 12px 2px 0; }
.tg-gift-photo img { width: 64px; height: 64px; object-fit: cover; object-position: 72% 28%; border-radius: 3px; }
.tg-gift-text { font-size: 17px; line-height: 1.5; }
.tg-gift-text b { font-weight: 700; }
.tg-gift-note { font-weight: 650; }
/* The olive box takes the gift box's slot in a manual last build. At Sunday's noon close the closed box and
   its two buttons take that slot. */
.tg-lastbox { margin-top: 12px; padding: 10px 14px; border-radius: 4px; background: var(--tg-olive); color: var(--tg-cream); font-size: 20px; line-height: 1.5; font-weight: 700; text-wrap: balance; }
.tg-closed .tg-lastbox { font-size: 18px; font-weight: 650; }
.tg-closed-ctas { display: grid; gap: 10px; margin-top: 16px; }
.tg-closed-ctas .btn { --h: 52px; width: 100%; margin-top: 0; }
/* base.css keeps the first screen's lines as they are (.tg-top p); the olive boxes balance theirs */
.tg-top .tg-lastbox { text-wrap: balance; }

/* The order card: the Sofra definition, then one row per Sofra (name, price, Choose) with its dishes underneath. */
.tg-order { margin-top: 12px; border: 2px solid var(--tg-olive); border-radius: 4px; padding: 0 14px; }
.tg-sofras { border-bottom: 1px solid var(--tg-line); }
/* Audit item 2 A: the buying facts at the buttons: pickup or delivery, the $30, the deadline. The wrapper carries the
   rule at the card's full width. */
.tg-facts { padding: 12px 0; border-bottom: 1px solid var(--tg-line); }
.tg-terms { font-size: 17px; line-height: 1.5; max-width: 31em; }
.tg-last { padding-top: 4px; font-size: 17px; line-height: 1.5; font-weight: 700; text-wrap: balance; }
.tg-def { padding: 12px 0 0; font-size: 17px; line-height: 1.5; max-width: 31em; }
.tg-sofra + .tg-sofra { border-top: 1px solid var(--tg-line); }
.tg-sofra-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto;
  align-items: center; column-gap: 12px; min-height: 62px; padding: 7px 0;
}
.tg-sofra-name { grid-column: 1; grid-row: 1; align-self: end; font-size: 18px; line-height: 1.25; font-weight: 650; font-stretch: 104%; color: var(--tg-olive); }
.tg-sofra-price { grid-column: 1; grid-row: 2; align-self: start; font-size: 20px; line-height: 1.25; font-weight: 750; color: var(--tg-olive); }
.tg-choose { grid-column: 2; grid-row: 1 / 3; --h: 48px; padding: 0 20px; }
.tg-more { display: none; }
.tg-items { padding: 0 0 14px; display: grid; gap: 6px; }
.tg-items li { position: relative; padding-left: 18px; font-size: 17px; line-height: 1.5; max-width: 32em; }
.tg-items li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--tg-olive); }
.tg-veg { padding: 8px 0 6px; font-size: 17px; line-height: 1.5; max-width: 31em; }
/* Audit item 7: printed only when data/thanksgiving.json "tax" holds a line. Audit item 14: the last line of the card. */
.tg-tax { padding: 0 0 6px; font-size: 17px; line-height: 1.5; }
.tg-ask { padding: 0 0 14px; font-size: 17px; line-height: 1.5; }
.tg-ask a { color: var(--tg-olive); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.tg-sold { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tg-ink); }
.tg-hero-photo { margin: 20px calc(var(--pad) * -1) 0; }
.tg-hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 50%; }
/* Audit item 10 B: every photo says what it shows, under it on the cream, never on the photo */
.tg-hero-photo figcaption, .tg-strip figcaption { font-size: 17px; line-height: 1.5; color: var(--tg-olive); }
.tg-hero-photo figcaption { padding: 8px var(--pad) 16px; }

/* Phones and tablets up to 959 px with JavaScript: each Sofra's dishes start closed so the three rows share the first
   screen; the button over the name and price opens and closes them (js/thanksgiving.js). Without JavaScript every
   list stays open. MIT-007 STEER-5 (audit item 10 A): the button says what it does, "See dishes" or "Hide dishes",
   with a small chevron that points down while closed and up while open (no transition, L12-002); (audit item 11) the
   closed lists now run to 959 px, so a tablet shows all three Choose on its first screen. */
@media (max-width: 959px) {
  .js .tg-more {
    display: flex; align-items: flex-end; justify-content: flex-end; gap: 6px; grid-column: 1; grid-row: 1 / 3; align-self: stretch; z-index: 1;
    margin: 0; padding: 0 0 4px; border: 0; background: none; cursor: pointer; touch-action: manipulation;
    font: inherit; font-size: 15px; font-weight: 650; line-height: 1.25; color: var(--tg-olive); text-decoration: underline; text-underline-offset: 3px;
    -webkit-tap-highlight-color: transparent;
  }
  .js .tg-more:focus-visible { outline-offset: 0; }
  .js .tg-items { display: none; }
  .js .tg-sofra[data-open] .tg-items { display: grid; }
  .tg-more-hide, .tg-more[aria-expanded="true"] .tg-more-show { display: none; }
  .tg-more[aria-expanded="true"] .tg-more-hide { display: inline; }
  .tg-more-icon { display: block; position: relative; width: 10px; height: 14px; flex: none; }
  .tg-more-icon::before { content: ""; position: absolute; left: 1px; top: 2px; width: 6px; height: 6px; border: solid var(--tg-olive); border-width: 0 2px 2px 0; transform: rotate(45deg); }
  .tg-more[aria-expanded="true"] .tg-more-icon::before { top: 6px; transform: rotate(-135deg); }
}
@media (max-width: 759px) { .tg-hero-photo img { aspect-ratio: 3 / 2; } }
@media (min-width: 760px) and (max-width: 959px) {
  .js .tg-sofra-price { padding-left: 0; }
  .js .tg-more { align-items: center; padding: 0; }
}
@media (max-width: 339px) { .tg-more-label { display: none; } }

/* ---------- the table: four Sofra dishes edge to edge ---------- */
.tg-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 4px; margin-top: 4px; padding-bottom: 28px; }
.tg-strip img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.tg-strip figcaption { padding: 6px 8px 0 20px; }
.tg-strip figure:nth-child(even) figcaption { padding-left: 8px; }

/* ---------- every classic has a Turkish cousin (olive band, cream type) ---------- */
.tg-cousins { padding: 48px 0 56px; }
.tg-cousins .tg-h2 { color: var(--tg-cream); }
.tg-pairs { margin: 24px 0 0; display: grid; }
.tg-pair { padding: 12px 0 14px; border-top: 1px solid var(--tg-line); display: grid; gap: 4px; }
.tg-pair dt { font-size: 28px; line-height: 1.15; color: var(--tg-cream); }
.tg-pair dd { margin: 0; font-size: 18px; line-height: 1.5; color: var(--tg-cream); max-width: 31em; }

/* ---------- extras ---------- */
.tg-extras { padding: 64px 0 72px; }
.tg-extras-grid { display: grid; gap: 24px; }
.tg-note { margin-top: 12px; font-size: 18px; }
.tg-extras-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.tg-extras-photos img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; }
.tg-x { display: grid; gap: 14px; }
.tg-x li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: end; }
.tg-x-name { font-size: 18px; line-height: 1.5; }
.tg-x-name::after { content: ""; display: block; margin-top: 8px; border-bottom: 1px solid var(--tg-line); }
.tg-x-price { font-size: 19px; line-height: 1.5; font-weight: 750; padding-bottom: 9px; }
.tg-just { --h: 56px; margin-top: 28px; padding: 0 32px; width: 100%; }

/* ---------- how to order ---------- */
.tg-how { padding: 64px 0 64px; border-top: 1px solid var(--tg-line); }
.tg-how-grid { display: grid; gap: 28px; }
.tg-steps { counter-reset: step; display: grid; gap: 18px; max-width: 34em; }
.tg-steps li { counter-increment: step; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; font-size: 18px; line-height: 1.5; }
.tg-steps li::before { content: counter(step); font-weight: 750; font-size: 20px; line-height: 1.35; }
/* Audit item 1 (owner decision 3): pickup is free, delivery within 10 miles is $30 by Bora's own driver: two rows
   under their own title, then the chilled line, the deadline and (audit item 14) a way back to the Sofras. */
.tg-ways-title { margin-top: 36px; font-size: 20px; line-height: 1.5; font-weight: 700; max-width: 34em; }
.tg-ways { margin: 12px 0 0; max-width: 34em; border-bottom: 1px solid var(--tg-line); }
.tg-way { display: grid; gap: 2px; padding: 12px 0 14px; border-top: 1px solid var(--tg-line); }
.tg-way dt { font-size: 18px; line-height: 1.5; font-weight: 700; }
.tg-way dd { margin: 0; font-size: 18px; line-height: 1.5; }
.tg-chilled { margin-top: 16px; font-size: 18px; line-height: 1.5; max-width: 34em; }
.tg-deadline {
  margin-top: 28px; display: block; width: fit-content;
  padding: 14px 18px; border-radius: 4px;
  background: var(--tg-olive); color: var(--tg-cream);
  font-size: 20px; line-height: 1.5; font-weight: 700; text-wrap: balance;
}
.tg-back { --h: 56px; display: flex; width: 100%; margin-top: 16px; }

/* ---------- heating and allergens ---------- */
.tg-notes { padding: 48px 0 72px; border-top: 1px solid var(--tg-line); }
.tg-notes-grid { display: grid; gap: 28px; }
.tg-heat, .tg-allergens p { font-size: 18px; line-height: 1.55; max-width: 31em; }
.tg-call { margin-top: 18px; }

/* ---------- tablets and up: every Sofra's dishes are shown; the rows run name, price, Choose ---------- */
@media (min-width: 760px) {
  .tg { font-size: 19px; }
  .tg-top { padding-top: clamp(28px, 4vw, 48px); }
  .tg-intro { font-size: 20px; margin-top: 16px; }
  .tg-when { font-size: 20px; margin-top: 4px; }
  .tg-few { font-size: 23px; margin-top: 14px; }
  .tg-lastbox { margin-top: 20px; padding: 14px 20px; }
  .tg-closed-ctas { display: flex; flex-wrap: wrap; }
  .tg-closed-ctas .btn { width: auto; }
  .tg-gift { margin-top: 20px; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; padding: 14px 20px 14px 14px; align-items: center; }
  .tg-gift-photo { float: none; margin: 0; }
  .tg-gift-photo img { width: 112px; height: 112px; }
  .tg-gift-text { font-size: 18px; }
  .tg-order { margin-top: 28px; padding: 0 24px; }
  .tg-def { font-size: 18px; padding-top: 16px; }
  .tg-terms, .tg-last { font-size: 18px; }
  .tg-sofra-head { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: auto; column-gap: 20px; min-height: 72px; padding: 12px 0 10px; }
  .tg-sofra-name { grid-row: 1; align-self: center; font-size: 22px; }
  .tg-sofra-price { grid-column: 2; grid-row: 1; align-self: center; font-size: 26px; }
  .tg-choose { grid-column: 3; grid-row: 1; padding: 0 26px; }
  .tg-items { padding: 0 0 16px; gap: 4px; }
  .tg-items li { font-size: 17px; }
  .tg-hero-photo { margin: 28px 0 0; }
  .tg-hero-photo img { border-radius: 4px; aspect-ratio: 16 / 10; }
  .tg-hero-photo figcaption { padding: 8px 0 0; }
  .tg-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 6vw, 88px); }
  .tg-strip img { aspect-ratio: 4 / 3; }
  .tg-strip figcaption { padding: 10px 12px 0; }
  .tg-strip figure:first-child figcaption { padding-left: var(--pad); }
  .tg-cousins, .tg-extras { padding: clamp(72px, 8vw, 112px) 0; }
  .tg-pairs { margin-top: 32px; }
  .tg-pair { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 32px; align-items: baseline; padding: 18px 0 20px; }
  .tg-pair dt { font-size: 32px; }
  .tg-pair dd { font-size: 19px; }
  .tg-x-name { font-size: 19px; }
  .tg-x-price { font-size: 20px; }
  .tg-just { width: auto; }
  .tg-how { padding: clamp(64px, 7vw, 104px) 0; }
  .tg-steps li { font-size: 19px; grid-template-columns: 40px minmax(0, 1fr); }
  .tg-steps li::before { font-size: 22px; line-height: 1.3; }
  .tg-deadline { font-size: 22px; padding: 16px 22px; }
  .tg-ways-title { font-size: 22px; }
  .tg-way { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; align-items: baseline; }
  .tg-way dt, .tg-way dd, .tg-chilled { font-size: 19px; }
  .tg-back { display: inline-flex; width: auto; padding: 0 32px; }
  .tg-notes { padding: 56px 0 96px; }
  .tg-heat, .tg-allergens p { font-size: 19px; }
}

/* ---------- desktop: headline, gift and the Mixed Grill on the left; the whole order card on the right ----------
   MIT-007 STEER-5 (audit item 11): the two-column first screen starts at 960 px (was 1100), so a small laptop or an
   iPad on its side sees every Choose; the headline is capped so it keeps two lines; the extras, how-to and notes grids
   stay at 1100. */
@media (min-width: 960px) {
  .tg-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    grid-template-areas: "head order" "photo order";
    grid-template-rows: auto 1fr;
    column-gap: clamp(40px, 5vw, 80px);
    align-items: start;
  }
  .tg-head { grid-area: head; }
  .tg-order { grid-area: order; margin-top: 0; }
  .tg-hero-photo { grid-area: photo; margin-top: 32px; }
  .tg-hero-photo img { aspect-ratio: 3 / 2; }
  .tg-title { font-size: clamp(46px, 5vw, 72px); }
}
/* orders closed (audit item 3): the order card is gone, so the Mixed Grill takes its column */
@media (min-width: 960px) {
  html:is([data-tg="closed"], [data-tg="off"]) .tg-top { grid-template-areas: "head photo"; grid-template-rows: auto; }
  html:is([data-tg="closed"], [data-tg="off"]) .tg-hero-photo { margin-top: 0; }
}
@media (min-width: 960px) and (max-width: 1099px) {
  .tg-order { padding: 0 16px; }
  .tg-sofra-head { column-gap: 12px; }
  .tg-sofra-name { font-size: 20px; }
  .tg-sofra-price { font-size: 22px; }
  .tg-choose { padding: 0 18px; }
}
@media (min-width: 1100px) {
  .tg-extras-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head list" "photos list"; column-gap: clamp(48px, 6vw, 96px); row-gap: 32px; align-items: start; }
  .tg-extras-head { grid-area: head; }
  .tg-extras-photos { grid-area: photos; }
  .tg-extras-list { grid-area: list; padding-top: 10px; }
  .tg-how-grid, .tg-notes-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(48px, 6vw, 96px); }
}

/* small phones, and a phone on its side (audit item 11.6) */
@media (max-width: 379px) { .tg-choose { padding: 0 14px; } }
@media (max-height: 480px) and (min-width: 560px) { .tg-title { font-size: 34px; max-width: none; } .tg-top { padding-top: 12px; } }

/* ---------- /thanksgiving/thanks/ (MIT-007 STEER-8): the order confirmation page, Stripe's after-payment stop ----------
   The first screen of /thanksgiving/ with the thank-you in place of the order card: headline, the confirmation email,
   the olive box with the day, the heating button and the call; the Mixed Grill beside it from 960 px, under it on
   phones. Scoped to .tg-thanks, so /thanksgiving/ itself is unchanged. */
.tg-thanks .tg-lastbox { font-size: 18px; font-weight: 650; }
.tg-thanks .tg-closed-ctas { max-width: 420px; }
.tg-thanks .tg-ask { margin-top: 16px; padding-bottom: 0; }
.tg-thanks .tg-hero-photo { margin-bottom: 0; }
@media (min-width: 960px) {
  .tg-thanks .tg-top { grid-template-areas: "head photo"; grid-template-rows: auto; padding-top: 40px; padding-bottom: 64px; }
  .tg-thanks .tg-hero-photo { margin-top: 0; }
}
