/* Saffran Ver — daily takeaway menu
   Palette carried over from the coming-soon page, extended for long-form menus. */

:root {
  --forest: #1f4f2a;
  --forest-deep: #14331b;
  --leaf: #3b8f45;
  --gold: #ffb347;
  --gold-bright: #ffcc33;
  --amber: #ff9f1c;
  --rind: #e8551f;
  --paper: #fdf6e6;
  --paper-edge: #f3e7cd;
  --ink: #24190f;
  --ink-soft: #6b5b43;

  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;

  --shell: 620px;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: #fff;
  background: var(--forest-deep);
  background-image: radial-gradient(circle at top, #3b8f45 0%, #1f4f2a 42%, #122a17 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 32px 18px 56px;
  animation: fadeIn 1s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------------------------------------------------------- header */

.masthead {
  text-align: center;
}

.logo {
  width: 100%;
  max-width: 288px;
  height: auto;
  margin: 0 auto 26px;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4));
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
  font-weight: 700;
}

.date-title {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 700;
  /* The floor used to be 2rem, which fitted "Tuesday 1 September" but not
     "Wednesday 30th September" once the ordinals went in. Measured against the
     longest dates the site can print — longest weekday, longest month, widest
     ordinal ("23rd") — with a little room to spare, so no date wraps to a
     second line on a phone. */
  font-size: clamp(1.4rem, 7.2vw, 2.9rem);
  line-height: 1.05;
  margin: 0 0 16px;
  background: linear-gradient(92deg, var(--gold), var(--gold-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.24);
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status.is-open {
  color: #b9f0c0;
}
.status.is-soldout {
  color: var(--gold);
}
.status.is-closed {
  color: #e2d9c8;
}

/* ------------------------------------------------------------ week strip */

.week {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 26px 0 0;
  flex-wrap: wrap;
}

.daychip {
  flex: 1 1 0;
  min-width: 42px;
  max-width: 66px;
  padding: 9px 4px 8px;
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.13);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.daychip:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.34);
}

.daychip-day {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}

.daychip-num {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

.daychip.is-empty .daychip-num {
  opacity: 0.4;
  font-weight: 500;
}

.daychip.is-today {
  border-color: rgba(255, 179, 71, 0.55);
}

.daychip.is-current {
  background: linear-gradient(160deg, var(--gold), var(--amber));
  border-color: transparent;
  color: #24190f;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.daychip.is-current .daychip-day {
  opacity: 0.8;
}

/* --------------------------------------------------------- menu "docket"
   The card is the plate from the logo: green-and-orange rim, warm centre. */

.docket {
  position: relative;
  margin: 26px 0 0;
  padding: 34px 22px 30px;
  background: var(--paper);
  background-image: linear-gradient(180deg, #fffaf0 0%, var(--paper) 34%, var(--paper-edge) 100%);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

.docket::before,
.docket::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 7px;
  background: linear-gradient(
    to bottom,
    var(--forest) 0 3px,
    transparent 3px 4px,
    var(--rind) 4px 7px
  );
}

.docket::before {
  top: 0;
  border-radius: var(--radius) var(--radius) 0 0;
}

.docket::after {
  bottom: 0;
  transform: scaleY(-1);
  border-radius: var(--radius) var(--radius) 0 0;
}

.note {
  margin: 0 0 26px;
  padding: 12px 15px;
  border-left: 3px solid var(--amber);
  background: rgba(255, 179, 71, 0.15);
  border-radius: 0 10px 10px 0;
  font-size: 0.93rem;
  line-height: 1.5;
  color: #4a3720;
}

.course + .course {
  margin-top: 30px;
}

.course-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(31, 79, 42, 0.28);
  position: relative;
}

.course-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 46px;
  height: 2px;
  background: var(--rind);
}

.dishes {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dish + .dish {
  margin-top: 15px;
}

.dish-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.dish-name {
  font-weight: 650;
  font-size: 1.02rem;
  line-height: 1.35;
}

.dish-leader {
  flex: 1 1 auto;
  min-width: 14px;
  border-bottom: 2px dotted rgba(31, 79, 42, 0.32);
  transform: translateY(-4px);
}

.dish-price {
  font-weight: 700;
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
  color: var(--forest);
  white-space: nowrap;
}

.dish-price-empty {
  opacity: 0.35;
}

.dish-desc {
  margin: 3px 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 46ch;
}

.dish-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  vertical-align: middle;
  background: var(--rind);
  color: #fff;
}

.dish.is-soldout .dish-name,
.dish.is-soldout .dish-price {
  opacity: 0.42;
}

.dish.is-soldout .dish-name {
  text-decoration: line-through;
  text-decoration-color: rgba(232, 85, 31, 0.6);
  text-decoration-thickness: 2px;
}

.dish.is-soldout .dish-tag {
  text-decoration: none;
  opacity: 1;
}

.empty {
  text-align: center;
  padding: 14px 6px;
}

.empty-title {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--forest);
  margin: 0 0 8px;
}

.empty-body {
  margin: 0 auto;
  max-width: 34ch;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------- actions */

.actions {
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}

.share-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.btn {
  appearance: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 15px 20px;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: #1f1f1f;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
}

.btn-primary:hover {
  background: var(--amber);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #fff;
  font-size: 0.83rem;
  font-weight: 600;
  padding: 13px 10px;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.19);
  transform: translateY(-2px);
}

.btn-ghost.is-done {
  background: var(--leaf);
  border-color: var(--leaf);
}

/* ------------------------------------------------------------ pagination */

.daynav {
  margin: 26px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.86rem;
}

.daynav-link {
  text-decoration: none;
  font-weight: 600;
  color: var(--gold);
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 179, 71, 0.4);
  background: rgba(0, 0, 0, 0.22);
  transition: background 0.2s ease, transform 0.2s ease;
}

.daynav-link:hover {
  background: rgba(255, 179, 71, 0.16);
  transform: translateY(-2px);
}

.daynav a {
  text-decoration: none;
  opacity: 0.85;
  padding: 8px 4px;
}

.daynav a:hover {
  opacity: 1;
  color: var(--gold);
}

.jump-today {
  font-weight: 700;
  color: var(--gold);
}

/* ---------------------------------------------------------------- footer */

.footer {
  margin: 34px 0 0;
  text-align: center;
  font-size: 0.83rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.footer-tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 10px;
}

.footer a {
  color: var(--gold);
  text-decoration: none;
}

.phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.phone-sep {
  color: rgba(255, 255, 255, 0.35);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  background: #12291a;
  color: #fff;
  border: 1px solid rgba(255, 179, 71, 0.5);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 40;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ----------------------------------------------------------- responsive */

@media (min-width: 560px) {
  .shell {
    padding-top: 48px;
  }
  .docket {
    padding: 42px 40px 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }
  .week,
  .actions,
  .daynav,
  .toast {
    display: none !important;
  }
  .docket {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  .date-title {
    color: #1f4f2a;
    -webkit-text-fill-color: #1f4f2a;
  }
}

/* Portion pricing — a dish sold in several sizes */

.dish-sizes {
  list-style: none;
  margin: 7px 0 0;
  padding: 0 0 0 14px;
  border-left: 2px solid rgba(31, 79, 42, 0.18);
}

.dish-size {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}

.dish-size-label {
  font-size: 0.9rem;
  color: #4a3720;
}

.dish-size-leader {
  flex: 1 1 auto;
  min-width: 12px;
  border-bottom: 1px dotted rgba(31, 79, 42, 0.28);
  transform: translateY(-3px);
}

.dish-size-price {
  font-weight: 700;
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
  color: var(--forest);
  white-space: nowrap;
}

.dish.is-soldout .dish-sizes {
  opacity: 0.42;
}

/* Standing price box — portion sizes that apply across the menu */

.docket-top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  /* wrap-reverse puts the price box above the note once they stop fitting
     side by side, rather than burying it below. */
  flex-wrap: wrap-reverse;
}

.docket-top:not(:empty) {
  margin-bottom: 22px;
}

.docket-top .note {
  flex: 1 1 240px;
  margin: 0;
}

.price-key {
  flex: 0 0 auto;
  width: 172px;
  margin: 0 0 0 auto;
  padding: 12px 14px 11px;
  background: rgba(31, 79, 42, 0.06);
  border: 1px solid rgba(31, 79, 42, 0.22);
  border-top: 3px solid var(--rind);
  border-radius: 4px 4px 10px 10px;
}

.price-key-title {
  margin: 0 0 8px;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--forest);
}

.price-key-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-key-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
}

.price-key-list li + li {
  border-top: 1px dotted rgba(31, 79, 42, 0.2);
}

.price-key-label {
  font-size: 0.84rem;
  color: #4a3720;
}

.price-key-amount {
  font-weight: 700;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  color: var(--forest);
  white-space: nowrap;
}

@media (max-width: 479px) {
  .price-key {
    width: auto;
    min-width: 168px;
  }
}

@media print {
  .price-key {
    border-color: #999;
  }
}

/* Ordering — add buttons, basket bar and checkout sheet */

.dish-add {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

/* Sized dishes: one small chip per size */
.add-btn {
  appearance: none;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--forest);
  background: rgba(31, 79, 42, 0.07);
  border: 1px solid rgba(31, 79, 42, 0.28);
  transition: background 0.18s ease, color 0.18s ease;
}

/* Single-price dishes: a round button on the dish line itself */
.add-dot {
  appearance: none;
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  /* Pushes to the end of the line so the buttons align in a column, whether
     or not the dish has a price. The .dish-line gap keeps it off the price. */
  margin-left: auto;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--forest);
  background: rgba(31, 79, 42, 0.07);
  border: 1px solid rgba(31, 79, 42, 0.28);
  align-self: center;
  position: relative;
  transition: background 0.18s ease, color 0.18s ease;
}

/* Keeps the button small but gives thumbs a ~45px target to hit. */
.add-dot::after {
  content: "";
  position: absolute;
  inset: -9px;
}

.add-btn:hover,
.add-dot:hover {
  background: var(--forest);
  color: #fff;
}

.add-btn.is-added,
.add-dot.is-added {
  background: var(--leaf);
  border-color: var(--leaf);
  color: #fff;
}

/* Toppings offered on each dish that can take them. Lighter than .add-btn so
   the dish's own add button stays the primary action. */
.dish-tops {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.top-btn {
  appearance: none;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-soft);
  background: transparent;
  border: 1px dashed rgba(31, 79, 42, 0.34);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.top-btn:hover {
  background: rgba(31, 79, 42, 0.08);
  border-style: solid;
  color: var(--forest);
}

.top-btn.is-added {
  background: var(--leaf);
  border-color: var(--leaf);
  border-style: solid;
  color: #fff;
}

/* Basket bar */

.cartbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, #10261a 62%, rgba(16, 38, 26, 0));
  z-index: 30;
}

.cartbar-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  appearance: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 15px 20px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: #24190f;
  background: var(--gold);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

.cartbar-btn:hover {
  background: var(--amber);
}

.cartbar-count {
  flex: 0 0 auto;
  min-width: 26px;
  height: 26px;
  line-height: 26px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 0.84rem;
  text-align: center;
}

.cartbar-label {
  flex: 1 1 auto;
  text-align: left;
}

.cartbar-total {
  font-variant-numeric: tabular-nums;
}

body.has-cart .shell {
  padding-bottom: 110px;
}

/* Checkout sheet */

/* An author display value beats the hidden attribute, so restore it. */
.sheet[hidden],
.cartbar[hidden] {
  display: none;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 18, 10, 0.66);
}

.sheet-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  border-radius: 20px 20px 0 0;
  border-top: 3px solid var(--rind);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4);
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(31, 79, 42, 0.16);
}

.sheet-title {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--forest);
  margin: 0;
}

.sheet-close {
  appearance: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--forest);
  padding: 0 4px;
}

.sheet-body {
  overflow-y: auto;
  padding: 16px 20px calc(22px + env(safe-area-inset-bottom));
}

.cart-empty {
  text-align: center;
  color: var(--ink-soft);
  margin: 18px 0;
}

.cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Wraps so a dish's toppings drop onto their own full-width row beneath it
     instead of squeezing in beside the quantity stepper. */
  flex-wrap: wrap;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dotted rgba(31, 79, 42, 0.24);
}

/* Toppings, listed under the dish they were added to */

.cart-tops {
  flex: 0 0 100%;
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 2px solid rgba(31, 79, 42, 0.18);
}

.cart-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.cart-top-name {
  flex: 1 1 auto;
  min-width: 0;
}

.cart-top-price {
  font-variant-numeric: tabular-nums;
}

.cart-top-x {
  appearance: none;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid rgba(31, 79, 42, 0.24);
}

.cart-top-x:hover {
  background: var(--rind);
  border-color: var(--rind);
  color: #fff;
}

.cart-line-name {
  display: block;
  font-weight: 600;
  font-size: 0.96rem;
}

.cart-line-price {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.qty {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.qty-btn {
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(31, 79, 42, 0.32);
  background: transparent;
  color: var(--forest);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.qty-btn:hover {
  background: rgba(31, 79, 42, 0.1);
}

.qty-num {
  min-width: 26px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sheet-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 16px 0 18px;
  font-size: 1.05rem;
}

.sheet-total strong {
  font-size: 1.25rem;
  color: var(--forest);
  font-variant-numeric: tabular-nums;
}

.ofield {
  display: block;
  margin-bottom: 13px;
}

.ofield-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 5px;
}

.ofield-label em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.ofield input,
.ofield select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 13px;
  border-radius: 11px;
  border: 1px solid rgba(31, 79, 42, 0.3);
  background: #fff;
  color: var(--ink);
}

.oerror {
  color: #9c2b12;
  font-size: 0.9rem;
  margin: 0 0 12px;
}

.ofine {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 12px 0 0;
}

.done-ref {
  font-size: 1.1rem;
  margin: 8px 0 6px;
  color: var(--forest);
}

.done-body {
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

#order-done .btn {
  margin-bottom: 10px;
}

#order-done .btn-ghost {
  color: var(--forest);
  border-color: rgba(31, 79, 42, 0.3);
  background: transparent;
}

body.sheet-open {
  overflow: hidden;
}

@media print {
  .cartbar,
  .sheet,
  .dish-add,
  .dish-tops,
  .add-dot {
    display: none !important;
  }
}

/* Size chooser on basket lines */

.cart-size {
  display: block;
  margin-top: 6px;
  font-family: inherit;
  font-size: 0.86rem;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid rgba(31, 79, 42, 0.32);
  background: #fff;
  color: var(--ink);
  max-width: 220px;
}

/* Nudges the customer to pick before they can order. */
.cart-size.is-unset {
  border-color: var(--rind);
  background: rgba(232, 85, 31, 0.06);
  color: var(--rind);
  font-weight: 600;
}

.cart-line-text {
  min-width: 0;
}

/* Box picker — portion size and what goes in it */

.box-picker {
  padding: 4px 0 16px;
  border-bottom: 1px solid rgba(31, 79, 42, 0.18);
  margin-bottom: 14px;
}

.box-picker[hidden] {
  display: none;
}

#box-size.is-unset {
  border-color: var(--rind);
  background: rgba(232, 85, 31, 0.06);
  color: var(--rind);
  font-weight: 600;
}

.box-contents {
  margin-bottom: 12px;
}

#box-dishes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.box-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px 6px 13px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(31, 79, 42, 0.09);
  border: 1px solid rgba(31, 79, 42, 0.24);
  color: var(--forest);
}

.box-chip-x {
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 2px;
  color: var(--rind);
}

.box-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.94rem;
}

/* A dish already in the box */
.add-dot.is-chosen {
  background: var(--leaf);
  border-color: var(--leaf);
  color: #fff;
}

.add-dot:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.add-dot:disabled:hover {
  background: rgba(31, 79, 42, 0.07);
  color: var(--forest);
}

.box-sides {
  margin-bottom: 12px;
}

#box-sides {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

/* Sides come with the meal, so they read differently from box dishes. */
.box-chip.is-side {
  background: rgba(255, 179, 71, 0.14);
  border-color: rgba(232, 85, 31, 0.32);
}

/* Photos of the day's food — a scrolling strip above the menu */

.shots {
  margin: 0 0 18px;
}

.shots-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  /* Each photo settles into place instead of stopping mid-frame. */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* One photo fills the strip; a second peeks in to show it scrolls. */
.shot {
  flex: 0 0 82%;
  margin: 0;
  scroll-snap-align: start;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-edge);
  box-shadow: 0 2px 10px rgba(20, 51, 27, 0.16);
}

.shot img {
  display: block;
  width: 100%;
  /* Fixed ratio so a mix of portrait and landscape photos still lines up. */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: zoom-in;
}

.shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 12px 9px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(20, 51, 27, 0.82));
}

/* A single photo has nothing to scroll to, so it takes the full width. */
.shots-rail:not(:has(.shot + .shot)) .shot {
  flex-basis: 100%;
}

@media (min-width: 560px) {
  .shot {
    flex-basis: 48%;
  }
}

/* Tap to enlarge */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 51, 27, 0.92);
  cursor: zoom-out;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
}

.lightbox-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 24px;
  text-align: center;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

@media print {
  .shots {
    display: none !important;
  }
}

/* Closure dates announced in advance. Sits at the top of the docket, above
   the day's own note, because it applies to days other than this one. */

.closures {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(31, 79, 42, 0.24);
  border-radius: 12px;
  background: rgba(31, 79, 42, 0.06);
  text-align: center;
}

/* Once the closure is actually running it stops being a diary note and
   becomes the reason the page is empty, so it takes the louder colour. */
.closures-now {
  border-color: rgba(232, 85, 31, 0.35);
  background: rgba(232, 85, 31, 0.08);
}

.closures-title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest);
}

.closures-now .closures-title {
  color: var(--rind);
}

.closures-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.closure-row {
  padding: 4px 0;
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--ink);
}

.closure-row + .closure-row {
  margin-top: 2px;
}

.closure-when {
  font-weight: 600;
}

.closure-why {
  display: block;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.closures-back {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px dashed rgba(31, 79, 42, 0.22);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* The reopening day is the one thing a customer is looking for here, so it
   gets the display face and the accent colour rather than sitting in the
   same grey as the dates it follows. */
.closures-back strong {
  display: block;
  margin-top: 4px;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--forest);
}

.closures-now .closures-back strong {
  color: var(--rind);
}

/* Your own line, under the reopening day. */
.closures-message {
  margin: 8px auto 0;
  max-width: 36ch;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* The sign on the door, shown in place of the menu when the kitchen is shut.
   Drawn rather than photographed, so it stays sharp at any size. */

.closed-sign {
  --sign-top: #e5372c;
  --sign-bottom: #c22318;
  text-align: center;
  padding: 0 0 6px;
}

.sign-svg {
  display: block;
  width: 100%;
  max-width: 268px;
  height: auto;
  margin: 0 auto;
  /* Lifts the board off the paper so it reads as hanging, not printed. */
  filter: drop-shadow(0 10px 14px rgba(36, 25, 15, 0.26));
}

.sign-nail {
  fill: #b9b0a0;
  stroke: rgba(36, 25, 15, 0.35);
  stroke-width: 1.5;
}

.sign-cord {
  stroke: #cfc6b4;
  stroke-width: 2.5;
  stroke-linecap: round;
  fill: none;
}

.sign-inner {
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 2.5;
}

.sign-sorry,
.sign-closed {
  fill: #fff;
  font-family: var(--display);
}

.sign-sorry {
  font-size: 40px;
  font-style: italic;
  font-weight: 500;
}

.sign-closed {
  font-size: 50px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Kitchen closed, public holiday, or sold out */

.notice {
  text-align: center;
  padding: 22px 14px;
  border-radius: 12px;
  background: rgba(31, 79, 42, 0.05);
  /* Reads as a deliberate sign on the door rather than a page error. */
  border: 1px dashed rgba(31, 79, 42, 0.28);
}

.notice-title {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--forest);
  margin: 0 0 8px;
}

.notice-body {
  margin: 0 auto;
  max-width: 34ch;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* A holiday is a nicer occasion than an ordinary closure, so it gets the
   warmer amber rather than the flat green. */
.notice-holiday {
  background: rgba(255, 159, 28, 0.1);
  border-color: rgba(255, 159, 28, 0.45);
}

.notice-holiday .notice-title {
  color: var(--rind);
}

/* Sold out sits above a menu that is still on show, so it is sized to lead
   into the dishes rather than stand alone. */
.notice-soldout {
  margin-bottom: 20px;
  padding: 16px 14px;
  background: rgba(232, 85, 31, 0.08);
  border-color: rgba(232, 85, 31, 0.4);
}

.notice-soldout .notice-title {
  font-size: 1.25rem;
  color: var(--rind);
}

/* Sides offered on a dish that comes with them. Toppings cost money and are
   priced on the chip; a side is included, so it reads plainer. */
.side-btn {
  border-style: solid;
  border-color: rgba(31, 79, 42, 0.22);
  background: rgba(31, 79, 42, 0.04);
}

.side-btn.is-added {
  border-color: var(--leaf);
}

/* Side chip under a box dish (Mains), selected */
.side-btn.is-chosen {
  background: var(--leaf);
  border-color: var(--leaf);
  border-style: solid;
  color: #fff;
}

.side-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* The ghost button is white-on-transparent, made for the dark header. On the
   sheet's cream panel it all but disappears, so this one gets forest green on
   a tinted fill — clearly tappable, but quieter than the gold Place order. */
#box-add.btn-ghost {
  margin-top: 4px;
  color: var(--forest);
  background: rgba(31, 79, 42, 0.08);
  border: 1px solid rgba(31, 79, 42, 0.35);
  font-size: 0.9rem;
  font-weight: 700;
}

#box-add.btn-ghost:hover:not(:disabled) {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--paper);
}

/* Disabled until a portion size is chosen; the hint below says why, so this
   only has to read as "not yet" rather than "broken". */
#box-add.btn-ghost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

#box-add-hint {
  margin: 6px 0 0;
  text-align: center;
  color: #9c2b12;
}

/* Remove control on an added box. Wider than the round × used for a single
   topping, since it carries a word rather than a symbol. */
.cart-box-remove {
  appearance: none;
  margin-left: auto;
  padding: 2px 10px;
  border: 1px solid rgba(31, 79, 42, 0.24);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--ink-soft);
  background: transparent;
}

.cart-box-remove:hover {
  background: var(--rind);
  border-color: var(--rind);
  color: #fff;
}

/* ------------------------------------------------------ how to order page */

.howto {
  list-style: none;
  counter-reset: howto;
  margin: 0;
  padding: 0;
}

.howto-step {
  counter-increment: howto;
  position: relative;
  padding: 0 0 22px 46px;
  border-bottom: 1px solid rgba(31, 79, 42, 0.14);
  margin-bottom: 22px;
}

.howto-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.howto-step::before {
  content: counter(howto);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.howto-title {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--forest);
  margin: 4px 0 6px;
  line-height: 1.3;
}

.howto-body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink);
}

.howto-notes {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(31, 79, 42, 0.06);
}

.howto-notes .howto-title {
  margin-top: 0;
}

.howto-list {
  margin: 0;
  padding-left: 20px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink);
}

.howto-list li {
  margin-bottom: 4px;
}

/* A quiet pointer to the guide, sitting under the share buttons rather than
   competing with the order button above them. */
.howto-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.85;
}

.howto-link:hover {
  opacity: 1;
}

/* Each step's drawing. Sits under the text on a phone and beside it on wider
   screens, where there is room for both without shrinking the picture. */
.howto-figure {
  margin: 12px 0 0;
}

.howto-figure svg {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
}

@media (min-width: 620px) {
  .howto-step {
    display: grid;
    grid-template-columns: 1fr 300px;
    column-gap: 22px;
    align-items: start;
  }

  .howto-step .howto-title,
  .howto-step .howto-body {
    grid-column: 1;
  }

  .howto-figure {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 4px;
  }
}

/* Step illustrations. Drawn as inline SVG so they scale on any screen and
   need no image files — the text inside them is real text, not a picture of
   text, so it stays sharp and readable to a screen reader. */
.howto-fig {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 14px 0 2px;
}

.howto-fig text {
  font-family: var(--sans);
}

.fig-t {
  font-size: 13px;
  fill: var(--ink);
}

.fig-s {
  font-size: 11px;
  fill: var(--ink-soft);
}

.fig-tag {
  font-size: 11px;
  fill: var(--forest);
}

.fig-on {
  font-size: 11px;
  fill: var(--paper);
}

.fig-btn {
  font-size: 13px;
  font-weight: 700;
  fill: var(--forest);
}

.fig-btn-dark {
  font-size: 13px;
  font-weight: 700;
  fill: #1f1f1f;
}

.fig-total {
  font-size: 14px;
  font-weight: 700;
  fill: var(--ink);
}

.fig-ref {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  fill: var(--forest);
}

/* ------------------------------------------------------- dish photos */

/* A dish with a picture is tappable; one without stays plain text, so a tap
   never lands on nothing. The dotted underline is the only hint it needs —
   an icon on every second line would clutter the menu. */
button.dish-name {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: underline dotted rgba(36, 25, 15, 0.4);
  text-underline-offset: 4px;
}

button.dish-name:hover { text-decoration-color: var(--rind, #e8551f); }

.shotbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(6, 16, 9, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.shotbox[hidden] { display: none; }

body.shot-open { overflow: hidden; }

.shotbox-figure {
  margin: 0;
  max-width: 640px;
  width: 100%;
  text-align: center;
}

.shotbox-figure img {
  width: 100%;
  height: auto;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.shotbox-figure figcaption {
  margin-top: 12px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}

.shotbox-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.shotbox-close:hover { background: rgba(255, 255, 255, 0.28); }

/* Extras printed under a course when there is no basket to add them in.
   They are ordinary dish rows, so they already carry the leader dots and the
   price column — these rules only set them slightly apart from the dishes
   they belong to. */
.dish.is-extra-head {
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px dashed rgba(31, 79, 42, 0.28);
}

.dish-extra-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft, #6b5b43);
}

/* Set in slightly, so they read as belonging to the course above rather
   than as five more burgers. */
.dish.is-extra { padding-left: 14px; }

.dish.is-extra .dish-name { font-weight: 500; }
