@font-face {
  font-family: "Giving Heading";
  src: url("/assets/fonts/yesevaone-1.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --giving-bg: #f4ebd9;
  --giving-paper: #fffbf3;
  --giving-ink: #241b17;
  --giving-muted: #57463d;
  --giving-accent: #0e3e42;
  --giving-gold: #cfa55d;
  --giving-tint: #e6eeea;
  --giving-outline: #8c7b69;
  --giving-crop: 50% 44%;
  --giving-heading-weight: 400;
}

.holiday-meals-home-link {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 16px;
  background: var(--giving-accent);
  color: var(--giving-paper);
  border-block-end: 2px solid var(--giving-gold);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
}
.holiday-meals-home-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.holiday-meals-home-link:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; }
.holiday-meals-home-link svg, .giving-main svg { width: 19px; height: 19px; flex: none; }

.holiday-meals-main {
  padding: clamp(18px, 3.2vw, 42px) 0;
  background: var(--giving-bg);
}
.giving-main {
  box-sizing: border-box;
  width: min(880px, calc(100% - clamp(24px, 7vw, 72px)));
  margin-inline: auto;
  color: var(--giving-ink);
  font: 16px/1.5 system-ui, sans-serif;
  border: 1px solid var(--giving-gold);
  border-radius: 12px;
  overflow: hidden;
  background: var(--giving-paper);
  box-shadow: 0 12px 32px rgba(38, 24, 11, .08);
}
.giving-photo {
  display: block;
  width: 100%;
  height: clamp(156px, 26vw, 244px);
  object-fit: cover;
  object-position: var(--giving-crop);
  background: var(--giving-accent);
}
.giving-content {
  --giving-padding: clamp(21px, 5vw, 42px);
  --giving-title-size: clamp(30px, 5.2vw, 53px);
  --giving-form-space: 25rem;
  /* The email field added one full-width row to the form, plus a little room
     so the confirmation card is never shorter than the form card. */
  --giving-email-row: 5.375rem;
  /* From 768px the number of people shares the meal choice row, saving its own. */
  --giving-size-row: 0rem;
  box-sizing: border-box;
  /* Keep the footer in place when the form is replaced by the receipt. */
  min-block-size: calc(2 * var(--giving-padding) + 1.1 * var(--giving-title-size) + var(--giving-form-space) + var(--giving-email-row) - var(--giving-size-row) + var(--giving-delivery-row, 0rem) + 2rem + 5.8rem);
  padding: var(--giving-padding);
  border-top: 4px solid var(--giving-gold);
}
.giving-content h1 {
  margin: 0 0 10px;
  font-family: "Giving Heading", Georgia, serif !important;
  font-size: var(--giving-title-size) !important;
  font-weight: var(--giving-heading-weight) !important;
  letter-spacing: -.022em;
  line-height: 1.07;
  text-wrap: balance;
}
.giving-intro { margin: 0; color: var(--giving-muted); text-wrap: balance; }
.giving-form { display: grid; gap: 19px; margin-top: 25px; }
.giving-fields, .giving-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.giving-field { display: grid; gap: 6px; }
.giving-field label, .giving-meals legend { font-weight: 700; font-size: 15px; }
.giving-field input {
  box-sizing: border-box;
  width: 100%;
  min-height: 47px;
  padding: 9px 12px;
  color: inherit;
  background: #fff;
  border: 1px solid var(--giving-outline);
  border-radius: 5px;
  font: inherit;
}
.giving-meals { min-width: 0; margin: 0; padding: 0; border: 0; }
.giving-meals legend { margin-bottom: 6px; padding: 0; }
.giving-choices label, .giving-fixed-meal {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 45px;
  padding: 8px 12px;
  border: 1px solid var(--giving-outline);
  border-radius: 5px;
  font-weight: 650;
}
.giving-choices label { cursor: pointer; }
.giving-choices input { width: 17px; height: 17px; margin: 0; accent-color: var(--giving-accent); }
.giving-choices label:has(:checked) { background: var(--giving-tint); border-color: var(--giving-accent); }
.giving-fixed-meal { width: fit-content; margin: 0; background: var(--giving-tint); border-color: var(--giving-gold); }
.giving-form-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 18px;
  border-top: 1px solid var(--giving-gold);
}
.giving-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid var(--giving-accent);
  border-radius: 5px;
  color: var(--giving-paper);
  background: var(--giving-accent);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.giving-submit:hover { filter: brightness(.88); }
.giving-main :focus-visible { outline: 2px solid var(--giving-accent); outline-offset: 3px; }
@media (min-width: 900px) {
  .giving-content { --giving-form-space: 22rem; }
}
@media (max-width: 560px) {
  .giving-content { --giving-form-space: 33rem; }
  .giving-fields, .giving-form-footer { display: grid; grid-template-columns: minmax(0, 1fr); }
}

.giving-field { align-content: start; }
.giving-field label { display: flex; align-items: center; gap: 7px; }
.giving-field label svg, .giving-choices label svg { color: var(--giving-accent); width: 17px; height: 17px; }
.giving-error { margin: 0; color: #8e271c; font-size: 14px; text-wrap: pretty; }
.giving-error:empty { position: absolute; }
.giving-field input[aria-invalid="true"] { border-color: #8e271c; }
.giving-receipt {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}
.giving-receipt .giving-submit { margin-top: 24px; text-decoration: none; }
.giving-check {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border: 1px solid var(--giving-gold);
  border-radius: 50%;
  color: var(--giving-accent);
  background: var(--giving-tint);
}
.giving-check svg { width: 28px; height: 28px; }
@media (max-width: 480px) {
  .giving-content { --giving-form-space: 35rem; }
}
@media (max-width: 400px) {
  .giving-content { --giving-form-space: 36rem; }
}
@media (max-width: 350px) {
  .giving-content { --giving-form-space: 37.5rem; }
  .giving-choices label { gap: 5px; padding-inline: 7px; }
}

/* The form built in Studio. The runtime writes its .yr-form-* fields inside
   .giving-form; these rules give them the template form's look and measure.
   The fields share one grid, so the template's 19px gaps become margins and
   the name and phone keep their 12px gap when they stack. */
.giving-form .yr-form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}
.giving-form .yr-form-field { grid-column: 1 / -1; min-width: 0; margin: 0; }
.giving-form .yr-form-half { grid-column: span 1; }
.giving-form .yr-form-field + .yr-form-field { margin-top: 19px; }
.giving-form fieldset.yr-form-field { padding: 0; border: 0; }
.giving-form .yr-form-field:not(fieldset) { display: grid; align-content: start; gap: 6px; }
.giving-form .yr-form-field > label,
.giving-form .yr-form-field > legend {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
}
.giving-form .yr-form-field > legend { margin-bottom: 6px; }
.giving-form .yr-form-field input:not([type="radio"], [type="checkbox"]) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 47px;
  padding: 9px 12px;
  color: inherit;
  background: #fff;
  border: 1px solid var(--giving-outline);
  border-radius: 5px;
  font: inherit;
}
.giving-form .yr-form-field input[aria-invalid="true"] { border-color: #8e271c; }
/* A dropdown matches the text boxes, with a drawn arrow so no image is
   loaded. "Choose one" reads as a placeholder until a choice is picked. */
.giving-form .yr-form-field select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 47px;
  padding: 9px 40px 9px 12px;
  color: inherit;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--giving-accent) 50%),
    linear-gradient(135deg, var(--giving-accent) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  border: 1px solid var(--giving-outline);
  border-radius: 5px;
  font: inherit;
  appearance: none;
  cursor: pointer;
}
.giving-form .yr-form-field select:invalid { color: var(--giving-muted); }
.giving-form .yr-form-field select option { color: var(--giving-ink); }
.giving-form .yr-form-field select[aria-invalid="true"] { border-color: #8e271c; }
.giving-form .yr-form-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.giving-form .yr-form-option,
.giving-form .yr-form-fixed-text {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 45px;
  padding: 8px 12px;
  border: 1px solid var(--giving-outline);
  border-radius: 5px;
  font-weight: 650;
}
.giving-form .yr-form-option { cursor: pointer; }
.giving-form .yr-form-option input { width: 17px; height: 17px; margin: 0; accent-color: var(--giving-accent); }
.giving-form .yr-form-option:has(:checked) { background: var(--giving-tint); border-color: var(--giving-accent); }
.giving-form .yr-form-fixed-text { width: fit-content; margin: 0; background: var(--giving-tint); border-color: var(--giving-gold); }
.giving-form .yr-form-icon { display: inline-flex; flex: none; }
.giving-form .yr-form-field > label svg,
.giving-form .yr-form-field > legend svg,
.giving-form .yr-form-option svg { color: var(--giving-accent); width: 17px; height: 17px; }
.giving-form .yr-form-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--giving-gold);
}
.giving-form .yr-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid var(--giving-accent);
  border-radius: 5px;
  color: var(--giving-paper);
  background: var(--giving-accent);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.giving-form .yr-form-submit:hover { filter: brightness(.88); }
@media (max-width: 560px) {
  .giving-form .yr-form-half { grid-column: 1 / -1; }
  .giving-form .yr-form-half + .yr-form-half { margin-top: 12px; }
  .giving-form .yr-form-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 350px) {
  .giving-form .yr-form-option { gap: 5px; padding-inline: 7px; }
}

/* The number of people needs only a short box. It takes the left column on
   its own, and from 768px it sits beside the meal choice, lined up with the
   phone number below. Narrower than that, Vegetarian would not fit in a quarter. */
@media (min-width: 561px) {
  .giving-form .yr-form-field[data-yr-field="size"] { grid-column: 1 / span 1; }
  /* Keep the name and phone together on their own row. */
  .giving-form .yr-form-field[data-yr-field="name"] { grid-column: 1 / span 1; }
}
@media (min-width: 768px) {
  .giving-content { --giving-size-row: 5.75rem; }
  .giving-form .yr-form-field[data-yr-field="meal"] { grid-column: 1 / span 1; }
  .giving-form .yr-form-field[data-yr-field="size"] { grid-column: 2 / span 1; margin-top: 0; }
  .giving-form [data-yr-field="meal"] .yr-form-option,
  .giving-form [data-yr-field="meal"] .yr-form-fixed-text { min-height: 47px; }
}

/* Pickup details on the confirmation page. */
.giving-pickup {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-sizing: border-box;
  width: min(100%, 30rem);
  margin: 22px auto 0;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--giving-tint);
  color: var(--giving-ink);
  text-align: left;
}
.giving-main .giving-pickup svg { width: 22px; height: 22px; margin-top: 1px; color: var(--giving-accent); }
.giving-pickup p { margin: 0; line-height: 1.5; }
.giving-pickup strong { display: block; }
.giving-pickup-place { display: block; margin-top: 6px; }
@media (max-width: 400px) {
  .giving-pickup { flex-direction: column; gap: 8px; padding: 14px 16px; }
}

/* Closing. From the closing time the form shows one line in place of its
   fields; the page script does the same for a copy served from Pages. The
   card no longer needs room for the receipt. */
.giving-main [hidden], .giving-form [data-giving-hidden] { display: none !important; }
.giving-form .yr-form-closed {
  margin: 0;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--giving-tint);
  color: var(--giving-ink);
  font-weight: 650;
  text-wrap: pretty;
}
.giving-content:has(.yr-form-closed:not([hidden])) { min-block-size: 0; }

/* Delivery. Three meals, then pickup or delivery in two cities; the address
   and ZIP code show only for delivery. Below 640px the meals take two
   columns and the ways to get them one. */
.giving-form .yr-form-help { margin: 0; color: var(--giving-muted); font-size: 14px; }
.giving-form [data-yr-field="pickup"] .yr-form-options { grid-template-columns: minmax(0, 1fr); }
.giving-form [data-yr-field="pickup"] .yr-form-option span { text-wrap: balance; }
.giving-form .giving-address-check {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  color: var(--giving-muted);
  font-size: 14px;
  text-wrap: pretty;
}
/* The page script puts the city check after the ZIP code, so the next field
   keeps the usual space above it. */
.giving-form .giving-address-check + .yr-form-field { margin-top: 19px; }
/* A radio never shrinks beside a long label, and below 640px the third meal,
   alone on its row, takes the whole row. */
.giving-form .yr-form-option input { flex: none; }
@media (max-width: 639px) {
  .giving-form [data-yr-field="meal"] .yr-form-option:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* Narrower than 340px, two meals no longer fit side by side. */
@media (max-width: 339px) {
  .giving-form [data-yr-field="meal"] .yr-form-options { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 640px) {
  .giving-form [data-yr-field="meal"] .yr-form-options,
  .giving-form [data-yr-field="pickup"] .yr-form-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 561px) {
  .giving-form .yr-form-field[data-yr-field="zip"] { grid-column: 1 / span 1; }
}
/* From 768px the number of people no longer fits beside three meals; from
   900px the form has four columns, and the number and ZIP code each take
   the last one. */
@media (min-width: 768px) {
  .giving-content { --giving-size-row: 0rem; }
  .giving-form .yr-form-field[data-yr-field="meal"] { grid-column: 1 / -1; }
  .giving-form .yr-form-field[data-yr-field="size"] { grid-column: 1 / span 1; margin-top: 19px; }
}
@media (min-width: 900px) {
  .giving-content { --giving-size-row: 5.75rem; }
  .giving-form .yr-form-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .giving-form .yr-form-field[data-yr-field="meal"],
  .giving-form .yr-form-field[data-yr-field="address"] { grid-column: 1 / span 3; }
  .giving-form .yr-form-field[data-yr-field="size"] { grid-column: 4 / span 1; margin-top: 0; }
  .giving-form .yr-form-field[data-yr-field="zip"] { grid-column: 4 / span 1; }
  .giving-form .yr-form-field[data-yr-field="name"] { grid-column: 1 / span 2; }
  .giving-form .yr-form-half { grid-column: span 2; }
}

/* Room for the pickup or delivery row and the third meal, so the
   confirmation card is as tall as the form card before delivery is chosen.
   Measured at every width from 320 to 1440px; choosing delivery adds the
   address and ZIP code below and the form card grows to fit. */
.giving-content { --giving-delivery-row: 21.5rem; }
@media (min-width: 340px) { .giving-content { --giving-delivery-row: 16.625rem; } }
@media (min-width: 346px) { .giving-content { --giving-delivery-row: 15.125rem; } }
@media (min-width: 351px) { .giving-content { --giving-delivery-row: 17.9375rem; } }
@media (min-width: 356px) { .giving-content { --giving-delivery-row: 16.625rem; } }
@media (min-width: 377px) { .giving-content { --giving-delivery-row: 15.125rem; } }
@media (min-width: 401px) { .giving-content { --giving-delivery-row: 16.125rem; } }
@media (min-width: 408px) { .giving-content { --giving-delivery-row: 16.125rem; } }
@media (min-width: 420px) { .giving-content { --giving-delivery-row: 14.625rem; } }
@media (min-width: 481px) { .giving-content { --giving-delivery-row: 15.125rem; } }
@media (min-width: 561px) { .giving-content { --giving-delivery-row: 16.125rem; } }
@media (min-width: 640px) { .giving-content { --giving-delivery-row: 8.25rem; } }
@media (min-width: 670px) { .giving-content { --giving-delivery-row: 8.25rem; } }
@media (min-width: 685px) { .giving-content { --giving-delivery-row: 6.75rem; } }
@media (min-width: 710px) { .giving-content { --giving-delivery-row: 6.75rem; } }
@media (min-width: 735px) { .giving-content { --giving-delivery-row: 5.375rem; } }
@media (min-width: 900px) { .giving-content { --giving-delivery-row: 8.1875rem; } }
@media (min-width: 908px) { .giving-content { --giving-delivery-row: 6.6875rem; } }
