@font-face {
  font-family: "Parents Noto Sans Thai";
  src: url("/fonts/noto-sans-thai/noto-sans-thai-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Parents Noto Sans Thai";
  src: url("/fonts/noto-sans-thai/noto-sans-thai-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Parents Noto Sans Thai";
  src: url("/fonts/noto-sans-thai/noto-sans-thai-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #fbf8f0;
  --paper: #fffefa;
  --white: #fff;
  --ink: #371d14;
  --brown: #572a17;
  --text: #563d32;
  --muted: #6f5b51;
  --green: #08712a;
  --green-dark: #075923;
  --mint: #dff3e9;
  --mint-strong: #c5ead1;
  --yellow: #ffcb4c;
  --border: #e5ded4;
  --shadow: 0 4px 14px #462b1a0a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.parents-meals-page { background: var(--cream); color: var(--ink); font-family: "Parents Noto Sans Thai", system-ui, sans-serif; font-size: 1rem; line-height: 1.55; }
.parents-meals-page .mlb-page { background: inherit; overflow: clip; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-inline-size: 100%; }
[hidden] { display: none !important; }
[id] { scroll-margin-block-start: 1.25rem; }
:focus-visible { outline: 3px solid #22784b; outline-offset: 3px; }

.shell { width: min(100% - 60px, 1276px); margin-inline: auto; }
main { display: grid; gap: 28px; }
main:focus { outline: none; }
.symbol-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: absolute; top: 8px; left: 8px; z-index: 21; padding: 10px; background: white; }

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
.button-green { color: white; background: var(--green); }
.button-green:hover { background: var(--green-dark); }
.button-outline { color: #184c27; background: #fffef9; border-color: #5a9062; }
.button-outline:hover { background: #f0f8ef; }
.button-brown { color: white; background: var(--brown); }
.button-brown:hover { background: #422114; }
.button-neutral { background: var(--paper); border-color: var(--border); }
.button-neutral:hover { background: #f5ece2; }
.line-icon {
  width: 24px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  position: relative;
  flex: 0 0 auto;
  background: white;
  color: var(--green);
  border-radius: 50%;
  font-family: system-ui, sans-serif;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: -.035em;
}
.line-icon::after { content: ""; width: 7px; height: 5px; position: absolute; left: 7px; bottom: -3px; background: inherit; clip-path: polygon(0 0, 100% 0, 0 100%); }
.button-outline .line-icon { background: var(--green); color: white; }

.hero {
  border: 1px solid #f3e5bd;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(128deg, #fff6dc 0%, #fffaf0 49%, #fff3cd 100%);
}
.hero-grid { display: grid; grid-template-columns: 45% 55%; align-items: center; }
.hero-copy { padding: 28px 18px 24px clamp(24px, 3.25vw, 48px); position: relative; z-index: 1; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .075em; margin-bottom: 9px; }
h1, h2, h3 { font-weight: 700; }
h1 { font-size: clamp(32px, 4.05vw, 56px); line-height: 1.16; letter-spacing: -.035em; }
html[lang="en"] h1 { font-size: clamp(30px, 3.45vw, 50px); }
.hero-parents { white-space: nowrap; }
.spark { display: inline-block; width: .58em; height: .64em; margin-left: .20em; position: relative; vertical-align: .07em; }
.spark::before, .spark::after {
  content: "";
  position: absolute;
  display: block;
  width: .095em;
  min-width: 3px;
  height: .34em;
  border-radius: 99px;
  background: #f4bb36;
  transform: rotate(31deg);
}
.spark::before { left: .05em; top: .02em; }
.spark::after { left: .29em; top: .18em; }
.spark-mirror { margin: 0 .22em 0 0; transform: scaleX(-1); }
.hero-seasoning {
  width: fit-content;
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--mint);
  color: #214932;
  font-size: clamp(16px, 1.55vw, 20px);
  font-weight: 700;
  line-height: 1.45;
}
.hero-intro {
  margin-top: 15px;
  color: var(--text);
  font-size: clamp(16px, 1.55vw, 22px);
  line-height: 1.58;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-actions .button { min-height: 48px; }
.hero-visual { position: relative; align-self: stretch; display: grid; place-items: center; }
.hero-photo { position: relative; width: 100%; }
#hero-image { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-anniversary-badge {
  position: absolute;
  inset: clamp(6px, 1vw, 14px) clamp(6px, 1vw, 14px) auto auto;
  z-index: 1;
  width: clamp(44px, 16%, 112px);
  height: auto;
  filter: drop-shadow(0 4px 8px #233a2929);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 12%;
  background: linear-gradient(90deg, #fff9e9, #fff9e900);
  pointer-events: none;
}
.hero-facts { margin: 0 25px 20px; padding: 12px 16px 9px; border-radius: 19px; background: #fffefa; text-align: center; }
.hero-facts ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; }
.hero-facts li { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; padding: 0 12px; }
.hero-facts li + li { border-inline-start: 1px solid var(--border); }
.fact-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff0c5;
  font-size: 20px;
}
.fact-icon-mint { background: #d8eee1; }
.hero-facts p { margin-top: 5px; color: var(--muted); font-size: 13px; }

main h2 { font-size: clamp(25px, 3.05vw, 40px); line-height: 1.24; letter-spacing: -.027em; }
.menu-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "heading more" "controls controls" "results results";
  column-gap: 15px;
  row-gap: 15px;
}
.menu-heading { grid-area: heading; }
.menu-heading p, .section-intro { color: var(--text); font-size: 17px; margin-top: 4px; }
.menu-heading .menu-note, .delivery-hint { color: var(--muted); font-size: 14px; }
.menu-more { grid-area: more; align-self: start; color: var(--green-dark); padding: 8px 2px 8px 10px; }
.menu-more-bottom { display: none; }
.menu-more:hover, .small-link:hover, .text-action:hover { text-decoration: underline; text-underline-offset: .25em; }
.menu-controls { grid-area: controls; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.days, .filters { display: grid; gap: 7px; }
.days { grid-template-columns: repeat(5, minmax(62px, 1fr)); }
.filters { grid-template-columns: repeat(4, minmax(63px, 1fr)); padding-left: 20px; border-left: 1px solid #d9cec0; }
.chip {
  min-height: 44px;
  background: var(--paper);
  border: 1px solid #dfd6cd;
  border-radius: 11px;
  padding: 5px 10px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.chip:hover { border-color: #ad988b; }
.chip:disabled { cursor: default; opacity: .52; }
.days .chip[aria-pressed="true"] { background: var(--brown); color: white; border-color: var(--brown); }
.filters .chip { border-radius: 999px; }
.filters .chip[aria-pressed="true"] { background: var(--mint-strong); color: #204a2b; border-color: #afdbbd; font-weight: 700; }
.menu-grid { grid-area: results; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.meal-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  padding: 9px;
  border-radius: 17px;
  background: var(--white);
  border: 1px solid #e8e0d6;
  box-shadow: var(--shadow);
}
.meal-media {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  background: #f4f0e9;
  width: 100%;
  aspect-ratio: 4 / 3;
}
.meal-media img { width: 100%; height: 100%; object-fit: cover; }
.meal-media .icon { color: #837367; width: 30px; height: 30px; }
.meal-card-body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 8px 3px 2px; }
.meal-card h3 { font-size: clamp(16px, 1.8vw, 23px); line-height: 1.34; text-wrap: balance; }
.meal-meta { font-size: 14px; color: var(--muted); margin-top: 2px; }
.meal-price { margin-top: auto; padding-top: 4px; font-size: clamp(20px, 2.1vw, 28px); font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.meal-details { width: 100%; min-height: 44px; margin-top: 7px; padding: 7px 9px; background: #ddf2e6; color: #1d3824; }
.meal-details:hover { background: #ccead7; }
.empty-card { grid-column: 1 / -1; padding: 26px; border: 1px solid var(--border); background: var(--white); border-radius: 15px; text-align: center; }
.empty-card p { margin-bottom: 8px; color: var(--text); }
.empty-card .button + .button { margin-left: 8px; }

.panel { border-radius: 21px; }
.delivery { padding: 24px 30px 18px; background: linear-gradient(140deg, #e5f6ee, #d7efe4); }
.delivery-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(150px, .84fr);
  gap: 13px;
  align-items: end;
  margin-top: 16px;
}
.delivery-form label { display: grid; gap: 4px; min-width: 0; font-size: 15px; font-weight: 700; }
.delivery-form select {
  min-width: 0;
  width: 100%;
  min-height: 46px;
  padding: 8px 33px 8px 11px;
  appearance: none;
  background: #fffefa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23563d32' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 16px no-repeat;
  color: var(--ink);
  border: 1px solid #a9bfb2;
  border-radius: 9px;
  font-weight: 400;
}
.delivery-form select:disabled { opacity: .74; background-color: #f6faf6; color: #625d54; }
.delivery-hint { margin-top: 8px; }
.delivery-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 19px;
  padding-top: 14px;
  border-top: 1px solid #aecdbb;
}
.method { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 15px; }
.method + .method { border-left: 1px solid #aecdbb; }
.method .icon { width: 41px; height: 41px; stroke-width: 1.4; }
.method strong { font-size: 17px; }
.method p { font-size: 14px; color: var(--text); }
.small-link { min-height: 36px; display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; color: var(--green-dark); font-size: 14px; font-weight: 700; }
.delivery-result {
  border: 1px solid #9ec6a8;
  background: #fbfffc;
  border-radius: 11px;
  padding: 12px 15px;
  margin-top: 13px;
}
.delivery-result strong { display: block; color: var(--green-dark); font-size: 17px; }
.delivery-result p { margin-top: 3px; color: var(--text); font-size: 14px; }

.offer {
  display: grid;
  grid-template-columns: minmax(230px, 1.55fr) 1fr 1fr minmax(140px, 1fr);
  grid-template-areas: "title pay get action" "title . terms action";
  gap: 2px 16px;
  align-items: center;
  background: linear-gradient(110deg, #fff3ce, #fff9ec 65%, #fff2d2);
  border: 1px solid #f1d998;
  padding: 19px 26px;
}
.offer-title { grid-area: title; }
.offer-title h2 { margin-top: 5px; font-size: clamp(24px, 2.55vw, 35px); }
.offer-badge { display: inline-block; border-radius: 99px; background: #ffded9; padding: 3px 10px; font-weight: 700; font-size: 13px; }
.offer-amount { display: grid; justify-items: center; line-height: 1.3; border-left: 1px solid #edcc7c; }
.offer-amount span { font-size: 15px; font-weight: 700; }
.offer-amount strong { font-size: clamp(27px, 3.15vw, 45px); font-variant-numeric: tabular-nums; }
.offer-pay { grid-area: pay; }
.offer-pay strong { text-decoration: underline; text-decoration-color: #eeb3b2; text-decoration-thickness: .13em; text-underline-offset: .15em; }
.offer-get { grid-area: get; }
.offer-get strong { text-decoration: underline; text-decoration-color: #9bdcd8; text-decoration-thickness: .13em; text-underline-offset: .15em; }
.offer-terms { grid-area: terms; justify-self: center; color: var(--text); text-align: center; font-size: 12px; line-height: 1.5; margin-top: 7px; }
.offer-action { grid-area: action; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0; margin-top: 12px; }
.step-card {
  height: 100%;
  display: flex;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 11px;
}
.step-card:hover { border-color: #c3af98; background: #fffdf8; }
.step-number { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #ffdb77; flex: 0 0 auto; font-size: 19px; font-weight: 700; }
.step-icon { width: 27px; height: 27px; }
.step-copy { display: grid; line-height: 1.36; }
.step-copy strong { font-size: 16px; }
.step-copy small { color: var(--muted); font-size: 13px; }
.step-arrow { margin-left: auto; width: 15px; height: 15px; }
.faq-list { display: grid; gap: 7px; margin-top: 11px; }
.faq details { border-radius: 12px; border: 1px solid var(--border); background: var(--white); overflow: clip; }
.faq summary {
  min-height: 46px;
  list-style: none;
  cursor: pointer;
  padding: 8px 15px;
  font-weight: 700;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: #fffdf8; }
.faq details .faq-minus, .faq details[open] .faq-plus { display: none; }
.faq details[open] .faq-minus { display: inline-block; }
.faq summary:focus-visible { outline-offset: -3px; }
.faq-answer { border-top: 1px solid #eee8e0; color: var(--text); padding: 10px 15px 11px; }
.faq-price-links { display: flex; flex-wrap: wrap; column-gap: 18px; }
.text-action { display: inline-flex; align-items: center; min-height: 42px; padding: 0; background: transparent; border: 0; color: var(--green-dark); font-weight: 700; text-align: left; }
.closing {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px 24px;
  background: var(--mint);
  padding: 18px 22px;
}
.closing h2 { font-size: clamp(25px, 3.15vw, 39px); }
.closing .button { min-width: 230px; }

#detail-dialog {
  width: min(515px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  border: 1px solid #e6ddd1;
  border-radius: 20px;
  padding: 22px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 16px 55px #29180d45;
}
#detail-dialog::backdrop { background: #26170d94; }
body:has(#detail-dialog[open]) { overflow: hidden; }
.dialog-close {
  display: grid;
  place-items: center;
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: white;
}
.dialog-close:hover { background: #f8f3ea; }
.dialog-content { display: grid; gap: 9px; }
.dialog-content h2 { padding-right: 30px; font-size: clamp(23px, 4vw, 30px); }
.dialog-content p { color: var(--text); }
.dialog-content .meal-media { max-height: 255px; }
.dialog-content .meal-media img { object-fit: contain; }
.dialog-content .meal-price { color: var(--ink); font-size: 24px; padding: 0; }
.dialog-content .button { justify-self: start; margin-top: 4px; }
.dialog-kicker { padding-right: 32px; font-size: 13px; font-weight: 700; }
.dialog-highlight { background: #e9f6ed; padding: 11px 14px; border-radius: 10px; }

@media (max-width: 930px) {
  .shell { width: calc(100% - 44px); }
  .hero-copy { padding-left: 23px; }
  .hero-facts li { font-size: 14px; }
  .delivery-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer {
    grid-template-columns: 1.3fr 1fr 1fr;
    grid-template-areas: "title pay get" "title terms terms" "action action action";
    row-gap: 8px;
  }
  .offer-action { justify-self: end; }
  .step-copy strong { font-size: 15px; }
}

@media (max-width: 680px) {
  .shell { width: calc(100% - 24px); }
  main { gap: 24px; }
  .hero { border-radius: 19px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: 20px 16px 18px; }
  .eyebrow { font-size: 13px; margin-bottom: 7px; }
  h1, html[lang="en"] h1 { font-size: clamp(28px, 8.35vw, 44px); letter-spacing: -.032em; }
  .hero-intro { margin-top: 10px; font-size: 16px; }
  .hero-actions { margin-top: 15px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .hero-actions .button { min-height: 46px; }
  .hero-visual { margin: 0; }
  #hero-image { border-radius: 13px; }
  .hero-visual::after { display: none; }
  .hero-facts { margin: 11px 9px 9px; padding: 4px 12px 9px; border-radius: 14px; }
  .hero-facts ul { grid-template-columns: 1fr; }
  .hero-facts li { justify-content: flex-start; text-align: left; padding: 7px 1px; }
  .hero-facts li + li { border-inline-start: 0; border-top: 1px solid #eee7df; }
  .fact-icon { width: 32px; height: 32px; font-size: 16px; }
  .hero-facts p { border-top: 1px solid #eee7df; padding-top: 6px; margin-top: 1px; }
  h2 { font-size: clamp(24px, 6.7vw, 33px); }
  .menu-section {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "controls" "results" "more";
    gap: 9px;
  }
  .menu-heading p, .section-intro { font-size: 15px; }
  .menu-controls { display: grid; gap: 7px; }
  .days { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-left: 0; border: 0; }
  .chip { min-height: 44px; padding-inline: 3px; font-size: 14px; }
  .menu-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .meal-card { grid-template-columns: minmax(0, .63fr) minmax(0, 1fr); grid-template-rows: auto; align-items: start; border-radius: 14px; gap: 9px; padding: 7px; }
  .meal-media { aspect-ratio: 1 / 1; }
  .meal-card-body { padding: 2px 1px 0 0; }
  .meal-card h3 { font-size: clamp(16px, 4.25vw, 19px); }
  .meal-meta { margin-top: 2px; font-size: 13px; }
  .meal-price { font-size: 20px; padding-top: 2px; }
  .meal-details { margin-top: 4px; min-height: 44px; font-size: 14px; }
  .menu-more { justify-self: center; padding: 7px 15px; }
  .menu-more-top { display: none; }
  .menu-more-bottom { display: inline-flex; }
  .panel { border-radius: 16px; }
  .delivery { padding: 15px 14px 10px; }
  .delivery-form { grid-template-columns: minmax(0, 1fr); margin-top: 12px; gap: 8px; }
  .delivery-form label { font-size: 14px; }
  .delivery-methods { grid-template-columns: 1fr; padding-top: 0; margin-top: 13px; }
  .method { justify-content: flex-start; padding: 10px 0; gap: 11px; }
  .method + .method { border-left: 0; border-top: 1px solid #aecdbb; }
  .method .icon { width: 34px; height: 34px; }
  .small-link { min-height: 44px; margin-top: 0; }
  .offer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "title title" "pay get" "terms terms" "action action";
    padding: 14px;
    row-gap: 9px;
    column-gap: 0;
  }
  .offer-title h2 { font-size: clamp(25px, 6.5vw, 31px); }
  .offer-pay { border-left: 0; }
  .offer-amount strong { font-size: clamp(30px, 8.8vw, 40px); }
  .offer-terms { margin-top: 5px; font-size: 13px; }
  .offer-action { width: 100%; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .step-card { padding: 9px; }
  .step-copy strong { font-size: 16px; }
  .faq summary { padding-inline: 11px; font-size: 15px; }
  .closing { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px; }
  .closing h2 { font-size: clamp(23px, 6.4vw, 29px); text-align: center; }
  .closing .button { min-width: 0; }
  .dialog-content .meal-media { aspect-ratio: 3 / 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
