/* ============================================================================
 * STANDARD accessibility widget styles (vanilla port of the EatFuti a11y.css).
 * Pairs with /assets/a11y.js. Every color comes from this site's own design
 * tokens through the --a-* map below: no hard-coded colors in the widget.
 * ========================================================================== */
:root {
  --a11y-dark: var(--ink);
  --a11y-light: var(--cream);
}
.nb-float,
.nb-a11y,
.nb-guide {
  --a-bg: var(--bg);
  --a-bg2: var(--cream);
  --a-ink: var(--ink);
  --a-muted: var(--ink-soft);
  --a-rule: var(--line);
  --a-rule2: var(--ink-soft);
  --a-icon: var(--chile);
  --a-accent: var(--chile);
  --a-on-accent: var(--cream);
  --a-strong: var(--chile);
  --a-tint: color-mix(in srgb, var(--chile) 10%, var(--bg));
  --a-night: var(--ink);
  --a-on-night: var(--cream);
  --a-hover: var(--chile);
  --a-on-hover: var(--cream);
  --a-font: var(--sans);
  --a-display: var(--serif);
  --a-shadow: 0 6px 18px -6px color-mix(in srgb, var(--ink) 60%, transparent);
  --a-backdrop: color-mix(in srgb, var(--ink) 45%, transparent);
  --a-backdrop-strong: color-mix(in srgb, var(--ink) 62%, transparent);
  --a-guide: var(--chile);
  --a-guide-2: var(--amber);
}
/* phones: sit above the sticky Order Online bar */
@media (max-width: 640px) {
  html .nb-float {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
}
/* contrast 1: darker text and lines on the same page colors */
html[data-a11y~="contrast-1"] {
  --ink-soft: var(--ink);
  --ink-faint: var(--ink);
  --line: var(--ink-soft);
  --amber-deep: var(--chile-deep, var(--chile));
}
/* contrast 2: the whole page dark, text light */
html[data-a11y~="contrast-2"] body {
  --bg: var(--a11y-dark);
  --bg-2: var(--a11y-dark);
  --bg-3: var(--a11y-dark);
  --card: var(--a11y-dark);
  --cream: var(--a11y-dark);
  --ink: var(--a11y-light);
  --ink-soft: var(--a11y-light);
  --ink-faint: var(--a11y-light);
  --line: var(--a11y-light);
  --chile: var(--amber);
  --chile-deep: var(--amber);
  background: var(--bg);
  color: var(--ink);
}
html[data-a11y~="contrast-2"] body :is(section, footer, .faq-item, .dish, .rev, .loc, .cookie) {
  background-color: var(--bg);
  color: var(--ink);
}
html[data-a11y~="contrast-2"] body .nb-float__btn {
  border-color: var(--ink);
}
html[data-a11y~="contrast-3"] :is(img, video, iframe, .hero .bg, .band .bg) {
  filter: invert(1) hue-rotate(180deg);
}
html[data-a11y~="noimg-1"] :is(img, video, picture, iframe, .hero .bg, .band .bg) {
  visibility: hidden !important;
}

/* ---------- widget ---------- */
.nb-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: grid;
  gap: 0.5rem;
  justify-items: end;
}
.nb-float__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--a-rule);
  border-radius: 50%;
  background: var(--a-night);
  color: var(--a-on-night);
  box-shadow: var(--a-shadow);
  cursor: pointer;
}
.nb-float__btn svg {
  width: 1.35rem;
  height: 1.35rem;
}
.nb-float__btn:hover,
.nb-float__btn:focus-visible {
  background: var(--a-hover);
  color: var(--a-on-hover);
}
.nb-float__btn:focus-visible {
  outline: 2px solid var(--a-ink);
  outline-offset: 2px;
}
/* The label slides out to the left on hover and keyboard focus. */
.nb-float__label {
  position: absolute;
  right: calc(100% + 0.5rem);
  top: 50%;
  translate: 0.4rem -50%;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--a-night);
  color: var(--a-on-night);
  font: 600 0.8rem/1 var(--a-font);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.nb-float__btn:hover .nb-float__label,
.nb-float__btn:focus-visible .nb-float__label {
  opacity: 1;
  translate: 0 -50%;
}
.nb-float__top {
  opacity: 0;
  visibility: hidden;
  translate: 0 0.5rem;
}
.nb-float__top.is-shown {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}
@media (prefers-reduced-motion: no-preference) {
  .nb-float__btn,
  .nb-float__label {
    transition: opacity 0.2s ease, translate 0.2s ease, background-color 0.2s ease, visibility 0.2s;
  }
}
/* Phones: nothing floats over the first screen (the hero buttons are there);
   the buttons come in with the first scroll, above the sticky order bar. */
@media (max-width: 59.99rem) {
  .nb-float--rest .nb-float__btn {
    opacity: 0;
    visibility: hidden;
  }
}
@media print {
  .nb-float {
    display: none;
  }
}

.nb-a11y {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(24rem, 100vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 1rem;
  border: 0;
  overflow-y: auto;
  background: var(--a-bg);
  color: var(--a-ink);
  font-family: var(--a-font);
  box-shadow: var(--a-shadow);
}
/* Only lay the panel out when it is open; a closed <dialog> must keep its
   default display:none, so the flex layout lives on the [open] state (an
   unconditional display on .nb-a11y would render the panel into the page). */
.nb-a11y[open] {
  display: flex;
  flex-direction: column;
}
.nb-a11y::backdrop {
  background: var(--a-backdrop);
}
.nb-a11y__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}
.nb-a11y__head h2 {
  font-family: var(--a-display);
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0;
  color: var(--a-ink);
}
.nb-a11y__head kbd {
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--a-rule2);
  border-radius: 6px;
  font: 600 0.75rem/1.2 var(--a-font);
  color: var(--a-muted);
}
@media (hover: none) {
  .nb-a11y__head kbd {
    display: none;
  }
}
.nb-a11y__close {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--a-rule2);
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
}
.nb-a11y__close svg {
  width: 1rem;
  height: 1rem;
}
.nb-a11y__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  /* Compact, natural-height rows packed at the top: never stretched to fill
     the panel. The dialog scrolls only on an unusually short viewport. */
  align-content: start;
}
.nb-a11y__grid li {
  margin: 0;
  padding: 0;
}
.nb-a11y__grid li::before {
  content: none;
}
.nb-a11y__grid button {
  position: relative;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 0.12rem;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0.42rem 0.55rem;
  border: 1.5px solid var(--a-rule);
  border-radius: 10px;
  background: var(--a-bg2);
  color: inherit;
  font: inherit;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
}
.nb-a11y__grid svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--a-icon);
}
.nb-a11y__grid strong {
  font-size: 0.82rem;
  line-height: 1.2;
  color: var(--a-ink);
}
.nb-a11y__grid span {
  font-size: 0.7rem;
  line-height: 1.25;
  color: var(--a-muted);
  min-width: 0;
}
.nb-a11y__grid button:hover {
  border-color: var(--a-rule2);
}
.nb-a11y__grid button[aria-pressed="true"] {
  border-color: var(--a-strong);
  background: var(--a-tint);
  box-shadow: inset 0 0 0 1px var(--a-strong);
}
.nb-a11y__grid .nb-a11y__check {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0.2rem;
  border-radius: 50%;
  background: var(--a-accent);
  color: var(--a-on-accent);
}
/* Level bar: one segment per level, filled up to the current one. */
.nb-a11y__grid .nb-a11y__bar {
  display: flex;
  gap: 0.25rem;
  width: 100%;
  margin-top: auto;
  padding-top: 0.35rem;
}
.nb-a11y__bar i {
  flex: 1;
  height: 0.25rem;
  border-radius: 999px;
  background: var(--a-rule);
}
.nb-a11y__bar i.is-on {
  background: var(--a-strong);
}
.nb-a11y .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* Page structure: the headings as a jump list, indented by level. */
.nb-a11y__outline {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
  align-content: start;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.nb-a11y__outline li {
  margin: 0;
  padding: 0;
}
.nb-a11y__outline button {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 6px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.nb-a11y__outline button:hover {
  background: var(--a-bg2);
}
.nb-a11y__outline [data-depth="1"] button {
  font-weight: 700;
}
.nb-a11y__outline [data-depth="3"] button {
  padding-left: 1.75rem;
  color: var(--a-muted);
}
.nb-a11y__reset {
  width: 100%;
  min-height: 2.75rem;
  margin-top: 0.5rem;
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--a-night);
  color: var(--a-on-night);
  font: 600 0.95rem/1.2 var(--a-font);
  cursor: pointer;
  flex-shrink: 0;
}
.nb-a11y__back {
  margin-top: 0;
}
.nb-a11y__reset:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ---------- accessibility modes ----------
 * One token per option and level on <html data-a11y="text-2 contrast-1 ...">. */
/* Text sizes on this site are set in px, so the body is zoomed (scales px and rem alike). */
html[data-a11y~="text-1"] body {
  zoom: 1.125;
}
html[data-a11y~="text-2"] body {
  zoom: 1.25;
}
html[data-a11y~="text-3"] body {
  zoom: 1.375;
}
html[data-a11y~="text-4"] body {
  zoom: 1.5;
}
/* the widget keeps its own size (it already fits one screen) */
html[data-a11y~="text-1"] :is(.nb-float, .nb-a11y) {
  zoom: 0.8889;
}
html[data-a11y~="text-2"] :is(.nb-float, .nb-a11y) {
  zoom: 0.8;
}
html[data-a11y~="text-3"] :is(.nb-float, .nb-a11y) {
  zoom: 0.7273;
}
html[data-a11y~="text-4"] :is(.nb-float, .nb-a11y) {
  zoom: 0.6667;
}

/* contrast 3 (invert) and saturation are filters on the page root; they
   combine through these two variables. Photos are turned back when inverted. */
html[data-a11y~="contrast-3"],
html[data-a11y~="sat-1"],
html[data-a11y~="sat-2"],
html[data-a11y~="sat-3"] {
  filter: var(--a11y-invert, invert(0)) var(--a11y-sat, saturate(1));
}
html[data-a11y~="contrast-3"] {
  --a11y-invert: invert(1) hue-rotate(180deg);
  background: var(--a11y-light);
}
html[data-a11y~="sat-1"] {
  --a11y-sat: saturate(0.5);
}
html[data-a11y~="sat-2"] {
  --a11y-sat: saturate(1.8);
}
html[data-a11y~="sat-3"] {
  --a11y-sat: grayscale(1);
}

html[data-a11y~="links-1"] a {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px;
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

html[data-a11y~="spacing-1"] body {
  letter-spacing: 0.04em;
  word-spacing: 0.1em;
}
html[data-a11y~="spacing-2"] body {
  letter-spacing: 0.08em;
  word-spacing: 0.2em;
}
html[data-a11y~="spacing-3"] body {
  letter-spacing: 0.12em;
  word-spacing: 0.32em;
}

html[data-a11y~="line-1"] :is(p, li, dd, dt, address, blockquote, figcaption, summary) {
  line-height: 1.75;
}
html[data-a11y~="line-2"] :is(p, li, dd, dt, address, blockquote, figcaption, summary) {
  line-height: 2;
}
html[data-a11y~="line-3"] :is(p, li, dd, dt, address, blockquote, figcaption, summary) {
  line-height: 2.3;
}

html[data-a11y~="align-1"] main :is(h1, h2, h3, h4, p, li, address, blockquote, figcaption, summary) {
  text-align: left;
}
html[data-a11y~="align-2"] main :is(h1, h2, h3, h4, p, li, address, blockquote, figcaption, summary) {
  text-align: center;
}
html[data-a11y~="align-3"] main :is(h1, h2, h3, h4, p, li, address, blockquote, figcaption, summary) {
  text-align: right;
}

html[data-a11y~="font-1"] body,
html[data-a11y~="font-1"] body :is(h1, h2, h3, h4, p, a, li, span, strong, em, b, button, input, textarea, select, label, summary, address, dt, dd),
html[data-a11y~="font-2"] body,
html[data-a11y~="font-2"] body :is(h1, h2, h3, h4, p, a, li, span, strong, em, b, button, input, textarea, select, label, summary, address, dt, dd) {
  font-family: Verdana, Tahoma, Arial, sans-serif !important;
  font-style: normal;
  font-variation-settings: normal !important;
  letter-spacing: normal;
}
html[data-a11y~="font-2"] body {
  letter-spacing: 0.05em !important;
  word-spacing: 0.12em;
}
html[data-a11y~="font-2"] body :is(p, li, dd, address, summary) {
  font-weight: 500;
  letter-spacing: 0.05em;
}

html[data-a11y~="calm-1"] {
  scroll-behavior: auto !important;
}
html[data-a11y~="calm-1"] *,
html[data-a11y~="calm-1"] *::before,
html[data-a11y~="calm-1"] *::after {
  animation: none !important;
  transition: none !important;
}

/* Larger cursor: a bigger arrow everywhere, a bigger hand on clickables. */
html[data-a11y~="cursor-1"],
html[data-a11y~="cursor-1"] * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M5 4 5 31 12 24 17 35 22 33 17 22 27 22Z' fill='black' stroke='white' stroke-width='2.4' stroke-linejoin='round'/%3E%3C/svg%3E") 5 4, auto;
}
html[data-a11y~="cursor-1"] :is(a, button, [role="button"], summary, label, input, select, textarea, .btn) {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M13 4c-1.1 0-2 .9-2 2v10l-2-2c-.8-.8-2-.8-2.8 0s-.8 2 0 2.8l6 7c.6.7 1.5 1.1 2.4 1.1h6a4 4 0 0 0 4-4v-6a2 2 0 0 0-4 0 2 2 0 0 0-4 0 2 2 0 0 0-4 0V6c0-1.1-.9-2-2-2z' fill='black' stroke='white' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") 12 4, pointer;
}
html[data-a11y~="cursor-2"],
html[data-a11y~="cursor-2"] * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 40 40'%3E%3Cpath d='M5 4 5 31 12 24 17 35 22 33 17 22 27 22Z' fill='black' stroke='white' stroke-width='2.4' stroke-linejoin='round'/%3E%3C/svg%3E") 7 6, auto;
}
html[data-a11y~="cursor-2"] :is(a, button, [role="button"], summary, label, input, select, textarea, .btn) {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 40 40'%3E%3Cpath d='M13 4c-1.1 0-2 .9-2 2v10l-2-2c-.8-.8-2-.8-2.8 0s-.8 2 0 2.8l6 7c.6.7 1.5 1.1 2.4 1.1h6a4 4 0 0 0 4-4v-6a2 2 0 0 0-4 0 2 2 0 0 0-4 0 2 2 0 0 0-4 0V6c0-1.1-.9-2-2-2z' fill='black' stroke='white' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") 17 6, pointer;
}

/* Reading guide: follows the pointer (--guide-y is set by a11y.js). */
.nb-guide {
  position: fixed;
  inset: 0 0 auto;
  z-index: 9999;
  pointer-events: none;
  transform: translateY(calc(var(--guide-y, 50vh) - 50%));
}
.nb-guide--1 {
  height: 4px;
  background: var(--a-guide);
  box-shadow: 0 0 0 1px var(--a11y-light);
}
.nb-guide--2 {
  height: 14px;
  background: var(--a11y-dark);
  border-block: 3px solid var(--a-guide-2);
}
/* 3: a reading window; everything above and below it is dimmed */
.nb-guide--3 {
  height: 7rem;
  box-shadow: 0 0 0 100vmax var(--a-backdrop-strong);
  border-block: 2px solid var(--a-guide-2);
}
@media (hover: none) {
  .nb-guide {
    display: none;
  }
}
