/* Khao Tom Nai Phut demo: the menu cover's world. Cream paper, the sage band, green ink line drawings. */

@font-face { font-family: 'Trirong'; font-weight: 400; font-display: swap; src: url(../fonts/trirong-thai-400-normal.woff2) format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Trirong'; font-weight: 400; font-display: swap; src: url(../fonts/trirong-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Trirong'; font-weight: 600; font-display: swap; src: url(../fonts/trirong-thai-600-normal.woff2) format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Trirong'; font-weight: 600; font-display: swap; src: url(../fonts/trirong-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plex Looped'; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-thai-looped-thai-400-normal.woff2) format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Plex Looped'; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-thai-looped-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plex Looped'; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-thai-looped-thai-600-normal.woff2) format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Plex Looped'; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-thai-looped-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #faf7ee;
  --paper-2: #f2eddd;
  --rule: #d8d0b9;
  --ink: #1e3328;        /* text: green-black */
  --muted: #4c5f54;      /* 6.4:1 on paper */
  --leaf: #1f6e43;       /* the line-drawing green, darkened for text and buttons (6.1:1) */
  --leaf-2: #175635;
  --sage: #639b82;       /* the cover band, exact */
  --sage-ink: #457760;   /* sage that carries small white text (5.2:1), and sage text on paper (4.8:1) */
  --sage-pale: #dcebe2;
  --rec: #b02a22;        /* แนะนำ ribbon red from the printed menu */
  --pop: #a2560a;        /* ยอดนิยม ribbon orange, darkened (5.0:1 on paper) */
  --display: 'Trirong', Georgia, serif;
  --body: 'Plex Looped', 'Leelawadee UI', Tahoma, sans-serif;
  --pad: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 2px #1e33281a, 0 8px 24px -10px #1e332838;
  color-scheme: light;
  accent-color: var(--leaf);
  scrollbar-color: var(--sage) var(--paper-2);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 132px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.7 var(--body); caret-color: var(--leaf); }
::selection { background: var(--sage-pale); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
svg { width: 1.15em; height: 1.15em; flex: none; }
.sprite { position: absolute; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.35; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--leaf); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--leaf-2); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }

/* Both languages are in the markup; the active one shows. */
:root[data-ui="th"] .en, :root[data-ui="en"] .th { display: none !important; }
/* Demo versions: hide what a version does not include. */
:root[data-offer="1"] [data-min="2"], :root:not([data-offer="3"]) [data-min="3"], :root:not([data-offer="1"]) [data-only="1"] { display: none !important; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--leaf); color: var(--paper); padding: .5rem 1rem; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 8px; }
.nw { white-space: nowrap; }
.note { color: var(--muted); font-size: .9rem; }
.ph { color: var(--muted); font-style: italic; }
.is-placeholder { outline: 1px dashed var(--muted); outline-offset: 3px; }

/* ---------- Demo bar (kept on every demo) ---------- */
.demo-flag { background: var(--ink); color: var(--paper); padding: .55rem var(--pad); font-size: .88rem; line-height: 1.55; display: flex; gap: .7rem; align-items: baseline; justify-content: center; text-align: center; flex-wrap: wrap; }
.demo-flag strong { letter-spacing: .14em; font-weight: 600; background: #f2c94c; color: var(--ink); padding: 0 .5rem; border-radius: 3px; }
.versions { background: var(--paper-2); border-bottom: 1px solid var(--rule); padding: .55rem var(--pad); display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; font-size: .9rem; }
.versions__label { color: var(--muted); font-weight: 600; font-size: .85rem; }
.versions__seg { display: flex; flex-wrap: wrap; gap: 4px; }
.versions__seg a { color: var(--ink); text-decoration: none; padding: .25rem .8rem; border: 1px solid var(--rule); border-radius: 6px; min-height: 38px; display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; background: var(--paper); }
.versions__seg a b { font-family: var(--display); color: var(--leaf); }
.versions__seg a:hover { border-color: var(--sage); }
.versions__seg a[aria-current] { background: var(--leaf); border-color: var(--leaf); color: var(--paper); font-weight: 600; }
.versions__seg a[aria-current] b { color: var(--paper); }
.versions__more { min-height: 38px; padding: .25rem .9rem; border: 1px solid var(--leaf); border-radius: 6px; background: transparent; color: var(--leaf); font: 600 .9rem var(--body); cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; }
.versions__more:hover, .versions__more[aria-expanded="true"] { background: var(--sage-pale); }
.included { flex-basis: 100%; border-top: 1px solid var(--rule); padding-top: .7rem; }
.included ul { margin: .3rem 0 0; padding-left: 1.2rem; columns: 2 320px; column-gap: 2rem; }
.included li { break-inside: avoid; margin-bottom: .3rem; }
.included li::marker { color: var(--sage); }
.included__price { font-weight: 600; color: var(--leaf); margin: 0; }
.included__try { font-weight: 600; white-space: nowrap; }

/* ---------- Header ---------- */
.head { display: flex; align-items: center; gap: 1rem 1.5rem; padding: .7rem var(--pad); border-bottom: 1px solid var(--rule); }
.head__brand { background: var(--sage); border-radius: 4px; padding: 6px 10px; flex: none; }
.head__brand img { width: 150px; }
.head__nav { display: flex; gap: .2rem 1.2rem; flex-wrap: wrap; margin-left: auto; }
.head__nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .3rem 0; border-bottom: 1px solid transparent; }
.head__nav a:hover { border-bottom-color: var(--leaf); color: var(--leaf); }
.lang { min-width: 48px; min-height: 40px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); color: var(--ink); font: 600 .9rem var(--body); cursor: pointer; }
.lang:hover { border-color: var(--leaf); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .55rem 1.2rem; border-radius: 6px; font: 600 1rem/1.3 var(--body); text-decoration: none; cursor: pointer; border: 1.5px solid var(--leaf); transition: background .2s, color .2s, transform .2s var(--ease); }
.btn--solid { background: var(--leaf); color: var(--paper); }
.btn--solid:hover { background: var(--leaf-2); border-color: var(--leaf-2); color: var(--paper); }
.btn--line { background: transparent; color: var(--leaf); }
.btn--line:hover { background: var(--sage-pale); color: var(--leaf-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Cover: the printed menu's front page, live ---------- */
.cover { position: relative; display: grid; background: var(--paper); overflow: hidden; }
.cover__veg { background: var(--leaf); -webkit-mask: url(../img/veg-top.webp) center / cover no-repeat; mask: url(../img/veg-top.webp) center / cover no-repeat; height: clamp(140px, 27vh, 290px); }
.cover__veg--bottom { -webkit-mask-image: url(../img/veg-bottom.webp); mask-image: url(../img/veg-bottom.webp); height: clamp(150px, 29vh, 310px); }
.cover__band { background: var(--sage); padding: clamp(14px, 2.4vw, 26px) var(--pad); display: grid; justify-items: center; }
/* Footage behind the name: the two clips crossfade; a sage multiply keeps the white wordmark readable.
   With no video (reduced motion, Save-Data, not loaded yet) the band is the plain printed sage. */
.cover__band { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(30px, 6vh, 64px); }
.cover__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity 1.2s ease; }
.cover__vid.is-on { opacity: 1; }
.cover__band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: #3f7a60; mix-blend-mode: multiply; opacity: .55; }
.cover__pause { position: absolute; right: 12px; bottom: 10px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #ffffff88; background: #1e332855; color: #fff; cursor: pointer; }
.cover__pause:hover { background: #1e3328aa; }
.cover__pause svg { width: 16px; height: 16px; }
.cover__mark { display: grid; justify-items: center; gap: .35rem; }
.cover__mark img { width: min(600px, 86vw); }
.cover__en { color: #fff; font: 600 1.2rem/1.4 var(--display); text-align: center; }
.cover__tag { position: absolute; right: var(--pad); bottom: clamp(14px, 3vh, 34px); background: var(--sage-ink); color: #fff; padding: .7rem 1.1rem; border-radius: 2px; text-align: center; box-shadow: var(--shadow); max-width: calc(100% - 2 * var(--pad)); }
.cover__hours { font: 600 1.15rem/1.4 var(--display); }
.cover__hours small { display: block; font-size: .95rem; font-weight: 400; }
.cover__now { margin-top: .45rem; padding-top: .45rem; border-top: 1px solid #ffffff55; font-size: .92rem; display: flex; gap: .5rem; align-items: center; justify-content: center; }
.cover__now i { width: 9px; height: 9px; border-radius: 50%; background: #fff; flex: none; }
.cover__now.is-open i { background: #b9f5c9; box-shadow: 0 0 0 3px #b9f5c955; }
.cover__now.is-closed i { background: transparent; box-shadow: inset 0 0 0 1.5px #fff; }
.cover__now.is-monday i { background: #f2c94c; }

/* The one authored moment: the line drawings ink themselves in, top panel left to right, bottom right to left. */
@media (prefers-reduced-motion: no-preference) {
  .cover__veg--top { animation: ink-ltr 1.8s var(--ease) both; }
  .cover__veg--bottom { animation: ink-rtl 1.8s .25s var(--ease) both; }
  .cover__tag { animation: rise .9s 1s var(--ease) both; }
}
@keyframes ink-ltr { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ink-rtl { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Intro ---------- */
.intro { padding: clamp(36px, 6vw, 72px) var(--pad) clamp(28px, 4vw, 48px); max-width: 1180px; margin: 0 auto; display: grid; gap: 1.6rem; }
.intro__line { font: 400 clamp(1.45rem, 3.2vw, 2.3rem)/1.55 var(--display); max-width: 30ch; }
.intro__btns { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- Story ---------- */
.sec-h { font-size: clamp(1.7rem, 3.6vw, 2.6rem); color: var(--ink); }
.story { max-width: 1180px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--pad); display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(240px, 320px); gap: clamp(20px, 4vw, 56px); align-items: start; border-top: 1px solid var(--rule); }
.story__year { font: 600 clamp(4.2rem, 11vw, 7.5rem)/.9 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--leaf); letter-spacing: -.02em; }
.story__text { display: grid; gap: 1rem; max-width: 62ch; }
.notice { border: 1.5px solid var(--sage-ink); padding: 1.1rem 1.2rem 1.2rem; background: #fff8; position: relative; }
.notice__h { font-size: 1rem; position: absolute; top: -.85rem; left: .9rem; background: var(--paper); padding: 0 .5rem; color: var(--sage-ink); }
.notice h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.notice p { color: var(--muted); }

/* ---------- Photos with the shop's ribbon redrawn on top ---------- */
.dish__media { position: relative; aspect-ratio: 315 / 206; border-radius: 4px; overflow: hidden; background: var(--paper-2); }
.dish__media img { width: 100%; height: 100%; object-fit: cover; }
.rib { position: absolute; top: 0; right: .4%; width: 29%; height: 44%; display: grid; place-items: start center; padding-top: 8%; color: var(--paper); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
.rib svg { width: 52%; height: auto; aspect-ratio: 1; }
.rib--rec { background: var(--rec); }
.rib--pop { background: var(--pop); }

/* ---------- Offer 1: recommended gallery ---------- */
.picks { max-width: 1180px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--pad); border-top: 1px solid var(--rule); }
.picks .note { margin: .4rem 0 1.4rem; }
.picks__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 1.8rem 1.4rem; }
.picks__grid p { display: flex; align-items: baseline; gap: .5rem; margin-top: .6rem; }
.picks__grid p b { font: 600 1.05rem/1.4 var(--display); }
/* dot leaders, like a printed price list */
.picks__grid p::after, .dish__foot::before { content: ''; order: 1; flex: 1; border-bottom: 1.5px dotted var(--rule); transform: translateY(-.3em); min-width: 1rem; }
.picks__grid .price { order: 2; }
.price { font-weight: 600; color: var(--leaf); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Menu ---------- */
.menu { max-width: 1180px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--pad); border-top: 1px solid var(--rule); }
.menu__head { display: grid; gap: .3rem; margin-bottom: 1rem; }
.menu__bar { position: sticky; top: 0; z-index: 5; background: var(--paper); padding: .7rem 0 .55rem; border-bottom: 1px solid var(--rule); display: grid; gap: .55rem; }
.search { display: flex; align-items: center; gap: .5rem; border: 1.5px solid var(--rule); border-radius: 6px; padding: 0 .8rem; background: #fff; color: var(--muted); max-width: 460px; }
.search:focus-within { border-color: var(--leaf); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 1rem var(--body); padding: .6rem 0; color: var(--ink); outline: none; }
.search input::placeholder { color: #5f7066; }
.cats { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; text-decoration: none; color: var(--ink); padding: .3rem .85rem; border-radius: 999px; border: 1px solid var(--rule); font-size: .92rem; font-weight: 600; min-height: 36px; display: inline-flex; align-items: center; }
.cats a:hover { border-color: var(--sage); color: var(--ink); }
.cats a[aria-current] { background: var(--sage-ink); border-color: var(--sage-ink); color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: .9rem 0 .2rem; font-size: .88rem; }
.mark { display: inline-flex; align-items: center; gap: .3rem; font-size: .84rem; font-weight: 600; }
.mark svg { width: 1em; height: 1em; }
.mark--rec { color: var(--rec); }
.mark--pop { color: var(--pop); }
.mark--hot { color: var(--rec); }
.mark--out { color: var(--muted); border: 1px solid var(--muted); border-radius: 3px; padding: 0 .35rem; }

.msec { padding-top: clamp(26px, 4vw, 44px); }
.msec__h { font-size: clamp(1.45rem, 2.8vw, 1.9rem); display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.msec__h::after { content: ''; flex: 1; height: 1px; background: var(--sage); }
.dishes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 0 2.6rem; }
/* Menu rows, not boxed cards: photo beside the words, a hairline between, like a page of the printed menu. */
.dish { display: grid; grid-template-columns: minmax(118px, 42%) 1fr; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); align-items: start; }
.dish--plain { grid-template-columns: 1fr; }
.dish__body { display: grid; gap: .15rem; min-width: 0; }
.dish h3 { font-size: 1.12rem; line-height: 1.4; }
.dish__alt { color: var(--muted); font-size: .84rem; line-height: 1.45; }
.dish__marks { display: flex; flex-wrap: wrap; gap: .1rem .7rem; margin-top: .15rem; }
.dish__opts { font-size: .84rem; color: var(--muted); line-height: 1.5; margin-top: .15rem; }
.dish__foot { display: flex; align-items: center; gap: .5rem; margin-top: .3rem; }
.dish__foot .price { order: 2; }
.dish__foot .add { order: 3; }
.dish.is-out { opacity: .55; }
.menu__empty { padding: 2rem 0; color: var(--muted); }

/* Whole fish: the menu's two-page chooser */
.fishguide { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 1.2rem 2.4rem; margin-top: 1.3rem; padding: 1.4rem; background: var(--paper-2); border-radius: 4px; }
.fishguide h3 { font-size: 1.1rem; margin-bottom: .6rem; color: var(--sage-ink); }
.fishguide__fish ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.fishguide__fish li { font: 600 1.05rem/1.4 var(--display); border: 1.5px solid var(--sage-ink); border-radius: 999px; padding: .35rem 1rem; background: var(--paper); }
.fishguide__group { margin-bottom: .7rem; }
.fishguide__group h4 { font: 600 .82rem var(--body); color: var(--muted); letter-spacing: .04em; }
.fishguide__group i { color: var(--sage); font-style: normal; }
.fishguide__shots { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .9rem; }
.fishguide__shots img { border-radius: 4px; aspect-ratio: 290 / 186; object-fit: cover; width: 100%; }
.fishguide__shots span { display: block; font-size: .85rem; color: var(--muted); margin-top: .3rem; }

/* ---------- Order (offer 3) ---------- */
.order { background: var(--sage-pale); }
.order > * { max-width: 1180px; }
.order { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(40px, 6vw, 80px) max(var(--pad), calc((100% - 1180px) / 2)); }
.order__text { display: grid; gap: 1.1rem; }
.steps { margin: 0; padding-left: 1.4rem; display: grid; gap: .5rem; max-width: 52ch; }
.steps li::marker { font-family: var(--display); font-weight: 600; color: var(--leaf); }
.order__try { display: flex; flex-wrap: wrap; gap: .6rem; }
.order__card { margin: 0; display: grid; justify-items: center; gap: .6rem; }
.order__card figcaption { font-size: .85rem; color: var(--muted); }
.tcard { width: 240px; background: var(--paper); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: .45rem; padding-bottom: 1.1rem; box-shadow: var(--shadow); }
.tcard img { background: var(--sage); padding: 10px 16px; width: 100%; }
.tcard__no { font: 600 1.7rem var(--display); }
.tcard__qr { background: #fff; padding: 10px; width: 168px; }
.tcard__qr svg { width: 100%; height: auto; display: block; }
.tcard__hint { font-weight: 600; color: var(--muted); }

/* ---------- Booking ---------- */
.book { max-width: 1180px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) var(--pad); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
:root[data-offer="1"] .book { grid-template-columns: 1fr; }
.book__intro { display: grid; gap: 1rem; }
.book__alt { display: flex; flex-wrap: wrap; gap: .6rem; }
.bform { display: grid; gap: 1rem; padding: clamp(18px, 3vw, 28px); border: 1.5px solid var(--rule); border-radius: 4px; background: #fff9; }
.bform__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.bform label { display: grid; gap: .3rem; }
.lbl { font-size: .9rem; font-weight: 600; }
.bform input, .bform select { font: 400 1rem var(--body); color: var(--ink); background: #fff; border: 1.5px solid var(--rule); border-radius: 6px; padding: .6rem .7rem; min-height: 46px; width: 100%; }
.bform input:focus, .bform select:focus { border-color: var(--leaf); outline: none; box-shadow: 0 0 0 3px var(--sage-pale); }
.bform input::placeholder { color: #5f7066; }
.bform [aria-invalid="true"] { border-color: var(--rec); }
.bform__error { color: var(--rec); font-weight: 600; min-height: 0; }
.bform__error:empty { display: none; }
.bform__send { justify-self: start; }
.fineprint { font-size: .85rem; color: var(--muted); }
.bform__done { border-top: 1px solid var(--rule); padding-top: 1rem; display: grid; gap: .4rem; }
.bform__done h3 { color: var(--leaf); }

/* ---------- Contact ---------- */
.contact { max-width: 1180px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) var(--pad); border-top: 1px solid var(--rule); display: grid; gap: 1.3rem; }
.branch { display: grid; gap: .6rem; }
.branch h3 { font-size: 1.25rem; }
.branch p { display: flex; gap: .6rem; align-items: flex-start; }
.branch p svg { margin-top: .3em; color: var(--leaf); }
.branch__btns, .social { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .3rem; }

/* ---------- Footer ---------- */
.foot { text-align: center; padding: 0 var(--pad) 2.2rem; font-size: .9rem; color: var(--muted); display: grid; gap: .4rem; }
.foot__veg { height: 120px; margin: 0 calc(-1 * var(--pad)) 1rem; background: var(--sage); opacity: .55; -webkit-mask: url(../img/veg-bottom.webp) center / cover no-repeat; mask: url(../img/veg-bottom.webp) center / cover no-repeat; }
.foot p:first-of-type { font: 600 1.05rem var(--display); color: var(--ink); }
.foot__demo { font-size: .82rem; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 60; transform: translate(-50%, 140%); background: var(--ink); color: var(--paper); padding: .7rem 1.1rem; border-radius: 6px; box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center; transition: transform .35s var(--ease); }
.toast.is-on { transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .story__year { font-size: 4.5rem; }
  .book, .order { grid-template-columns: 1fr; }
  .fishguide { grid-template-columns: 1fr; padding: 1.1rem; }
}
@media (max-width: 720px) {
  .head { padding-block: .5rem; }
  .head__nav { display: none; } /* one long page on a phone: the cover and the buttons under it do the navigating */
  .head__brand { margin-right: auto; }
  .head__brand img { width: 128px; }
  .versions { padding-block: .45rem .55rem; gap: .45rem; }
  .versions > .versions__label { display: none; }
  .versions__seg { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .versions__seg a { flex: none; }
  .versions__more { flex: 1 1 100%; justify-content: center; min-height: 44px; }
  .demo-flag { font-size: .8rem; padding-block: .45rem; }
  /* The hours tag sits under the band instead of over the drawings. */
  .cover__tag { position: static; margin: 0 var(--pad) 0; transform: translateY(-50%); justify-self: center; }
  .cover__veg--bottom { margin-bottom: -2rem; }
  .cover__en { font-size: 1.05rem; }
  .dish { grid-template-columns: 38% 1fr; gap: .75rem; }
  .dish h3 { font-size: 1.04rem; }
}
