/* F-29a: the iframe widgets and the shareable menu page /m/{slug}. Standalone on purpose — no
   Bootstrap, no site.css, no web fonts — so the menu page paints at once on a phone and the
   iframe stays light. Light colours are the site tokens (F-38); all clear WCAG AA. */
:root {
  /* F-38 §3.4: the site's palette tokens this page reads — a copy of site.css :root, since the page
     loads no site.css. PublishCssTokenParityTests fails the build when the two copies differ. */
  --sb-primary: #18594A;
  --sb-primary-dk: #104236;
  --sb-primary-lt: #E8EFE6;
  --sb-on-primary: #FFFFFF;
  --sb-brand-tail: #B84E35;
  --sb-link: #1F6FC1;
  --sb-bg: #F8F9FA;
  --sb-surface: #FFFFFF;
  --sb-text: #1C2532;
  --sb-text-muted: #555B6E;
  --sb-border: #E9EDF0;
  --sb-warning-bg: #FEEFCD;
  --sb-notice: #62360E;
  --sb-open: #097330;
  --sb-radius-pill: 999px;
  --bg: var(--sb-surface);
  --page: var(--sb-bg);
  --fg: var(--sb-text);
  --mut: var(--sb-text-muted);
  --acc: var(--sb-primary);
  --link: var(--sb-link);
  --line: var(--sb-border);
  --warn: var(--sb-notice);
  --warnbg: var(--sb-warning-bg);
  --tag: var(--sb-primary-lt);
  --tail: var(--sb-brand-tail);
  color-scheme: light;
}
/* The dark theme (widget embeds, a visitor's dark preference) has no site-wide counterpart yet:
   its values stay here until the public site gets a dark palette of its own. */
:root[data-theme="dark"] {
  --bg: #17201D; --page: #111815; --fg: #EEF2EE; --mut: #B9C4BC; --acc: #8FD3BE; --link: #8FD3BE;
  --line: #34413B; --warn: #FFD9A0; --warnbg: #3A2D14; --tag: #24332D; --tail: #F4A48E;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --bg: #17201D; --page: #111815; --fg: #EEF2EE; --mut: #B9C4BC; --acc: #8FD3BE; --link: #8FD3BE;
    --line: #34413B; --warn: #FFD9A0; --warnbg: #3A2D14; --tag: #24332D; --tail: #F4A48E;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
}
body.embed { font-size: 15px; background: transparent; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 2px; }
h1 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 .25rem; }
h2 { font-size: 1.1rem; line-height: 1.3; margin: 1.25rem 0 .25rem; }
.embed h1 { font-size: 17px; }
.embed h2 { font-size: 15px; margin-top: 14px; }
.box { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.sub { color: var(--mut); font-size: .875rem; margin: 0 0 .4rem; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: .55rem 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 .75rem; }
.strong { font-weight: 600; }
.muted { color: var(--mut); font-size: .9rem; overflow-wrap: anywhere; }
.pill { display: inline-block; margin-top: .2rem; padding: 1px 8px; border-radius: 999px; background: var(--warnbg); color: var(--warn); font-size: .8rem; font-weight: 600; }
.tag { display: inline-block; margin: .2rem .25rem 0 0; padding: 1px 8px; border-radius: 999px; background: var(--tag); color: var(--fg); font-size: .8rem; }
sup { font-size: .7rem; color: var(--mut); }
.foot { margin-top: .75rem; font-size: .8rem; color: var(--mut); }

/* /m/{slug} */
.page { background: var(--page); min-height: 100vh; }
.wrap { max-width: 40rem; margin: 0 auto; padding: 1rem 1rem 2rem; }
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.brand { font-weight: 800; font-size: 1.1rem; text-decoration: none; color: var(--acc); }
.brand span { color: var(--tail); }
.langs { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.langs a { display: inline-block; min-width: 2.75rem; min-height: 2.75rem; line-height: 2.75rem; padding: 0 .5rem; text-align: center; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .85rem; }
.langs a[aria-current="page"] { background: var(--tag); color: var(--fg); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; }
.cta { display: block; margin-top: 1rem; padding: .8rem 1rem; border-radius: 12px; background: var(--acc); color: var(--bg); text-align: center; font-weight: 600; text-decoration: none; }
.notfound { max-width: 30rem; margin: 3rem auto; padding: 0 1rem; text-align: center; }

/* F-35 « Ma page » (/{slug}): the vendor's own page, one column, mobile first. The accent preset the
   vendor picked overrides the brand tokens on <html> for this page only — one class per preset, the
   same values as StreetBite.Core.MiniSiteAccent (MiniSiteAccentTests checks both, and that every
   preset clears WCAG AA: accent text on the surfaces, the button text on the accent and its hover,
   body text on the tint). Everything below reads the tokens; nothing names a colour. */
.ms-accent-pine { --sb-primary: #18594A; --sb-primary-dk: #104236; --sb-primary-lt: #E8EFE6; --sb-on-primary: #FFFFFF; }
.ms-accent-tomato { --sb-primary: #B3261E; --sb-primary-dk: #861C16; --sb-primary-lt: #F6E5E4; --sb-on-primary: #FFFFFF; }
.ms-accent-paprika { --sb-primary: #A63F00; --sb-primary-dk: #7C2F00; --sb-primary-lt: #F4E8E0; --sb-on-primary: #FFFFFF; }
.ms-accent-mustard { --sb-primary: #7F5600; --sb-primary-dk: #5F4000; --sb-primary-lt: #F0EBE0; --sb-on-primary: #FFFFFF; }
.ms-accent-olive { --sb-primary: #4A6619; --sb-primary-dk: #384C13; --sb-primary-lt: #E9EDE3; --sb-on-primary: #FFFFFF; }
.ms-accent-lake { --sb-primary: #1D5FA6; --sb-primary-dk: #16477C; --sb-primary-lt: #E4ECF4; --sb-on-primary: #FFFFFF; }
.ms-accent-plum { --sb-primary: #7B2D73; --sb-primary-dk: #5C2256; --sb-primary-lt: #EFE6EE; --sb-on-primary: #FFFFFF; }
.ms-accent-charcoal { --sb-primary: #2D3644; --sb-primary-dk: #222833; --sb-primary-lt: #E6E7E9; --sb-on-primary: #FFFFFF; }
.ms { background: var(--sb-bg); color: var(--sb-text); }
.ms a { color: var(--sb-primary); }
.ms h2 { color: var(--sb-primary); font-size: 1.15rem; margin: 0 0 .5rem; }
.ms h3 { font-size: 1rem; margin: 1rem 0 .25rem; }
.ms-skip { position: absolute; left: -999px; top: 0; padding: .5rem 1rem; background: var(--sb-surface); z-index: 2000; }
.ms-skip:focus { left: .5rem; top: .5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ms-hero { background: var(--sb-primary-lt); border-bottom: 4px solid var(--sb-primary); }
.ms-cover { display: block; width: 100%; max-width: 40rem; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 auto; }
.ms-identity { display: flex; gap: .9rem; align-items: center; max-width: 40rem; margin: 0 auto; padding: 1rem; }
.ms-logo { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 16px; object-fit: cover; background: var(--sb-surface); }
.ms-monogram { display: flex; align-items: center; justify-content: center; background: var(--sb-primary); color: var(--sb-on-primary); font-size: 2rem; font-weight: 800; }
.ms-identity h1 { font-size: 1.6rem; margin: 0; overflow-wrap: anywhere; }
.ms-kind { margin: .1rem 0 0; color: var(--sb-text-muted); font-size: .95rem; }
.ms-verified { display: inline-flex; align-items: center; gap: .3rem; margin: .35rem 0 0; color: var(--sb-primary); font-size: .85rem; font-weight: 600; }
.ms-main { max-width: 40rem; margin: 0 auto; padding: 0 1rem 1rem; outline: none; }
.ms-card { background: var(--sb-surface); border: 1px solid var(--sb-border); border-radius: 16px; padding: 1rem 1.1rem; margin-top: 1rem; }
.ms-now--open { border: 2px solid var(--sb-primary); }
.ms-open-dot { display: inline-block; width: .65rem; height: .65rem; margin-right: .45rem; border-radius: 50%; background: var(--sb-open); vertical-align: .05em; }
.ms-when { font-size: 1.1rem; font-weight: 700; margin: 0 0 .25rem; }
.ms-place { margin: 0 0 .75rem; }
.ms-place span { display: block; color: var(--sb-text-muted); font-size: .9rem; }
.ms-muted { color: var(--sb-text-muted); margin: 0; }
.ms-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1.25rem; border: 2px solid var(--sb-primary); border-radius: var(--sb-radius-pill); background: var(--sb-primary); font-weight: 600; text-decoration: none; }
.ms a.ms-btn { color: var(--sb-on-primary); }
.ms a.ms-btn:hover { background: var(--sb-primary-dk); border-color: var(--sb-primary-dk); }
.ms a.ms-btn--outline { background: var(--sb-surface); color: var(--sb-primary); }
.ms a.ms-btn--outline:hover { background: var(--sb-primary-lt); color: var(--sb-primary); }
.ms-btn--wide { display: flex; width: 100%; margin-top: .75rem; }
.ms-buttons { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.ms-about { margin: 0 0 .75rem; white-space: pre-line; overflow-wrap: anywhere; }
.ms-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: 0; padding: 0; list-style: none; }
.ms-photos figure { margin: 0; }
.ms-photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.ms-photos figcaption { color: var(--sb-text-muted); font-size: .8rem; }
.ms-footer { max-width: 40rem; margin: 0 auto; padding: 1rem 1rem 6rem; text-align: center; color: var(--sb-text-muted); font-size: .9rem; }
.ms-footer .langs { justify-content: center; margin: .5rem 0; }
.ms-footer .langs a[aria-current="page"] { color: var(--sb-text); }
.ms-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1rem; margin: 0; padding: 0; list-style: none; }
.ms-legal a, .ms-linkbutton { display: inline-flex; align-items: center; min-height: 44px; }
.ms-linkbutton { padding: 0; border: 0; background: none; color: var(--sb-primary); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ms a:focus-visible, .ms-linkbutton:focus-visible { outline: 3px solid var(--sb-primary); outline-offset: 2px; }
/* The site's consent banner (_ConsentBanner, DECISIONS #030) on a page without site.css: the same
   rules as there, reading the same tokens. */
.sb-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1060; background: var(--sb-surface); color: var(--sb-text); border-top: 1px solid var(--sb-border); box-shadow: 0 -4px 16px color-mix(in srgb, var(--sb-text) 12%, transparent); }
.sb-consent[hidden] { display: none; }
.sb-consent:focus { outline: 3px solid var(--sb-primary); outline-offset: -3px; }
.sb-consent .container { max-width: 40rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
.sb-consent-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; padding-top: .9rem; padding-bottom: .9rem; }
.sb-consent-copy { flex: 1 1 28rem; min-width: 0; }
.sb-consent-title { font-weight: 700; font-size: .95rem; margin: 0 0 .15rem; }
.sb-consent-text { font-size: .85rem; margin: 0; color: var(--sb-text); }
.sb-consent-text a { color: var(--sb-link); text-decoration: underline; }
.sb-consent-actions { display: flex; gap: .75rem; flex: 0 0 auto; }
.sb-consent-choice { min-width: 8.5rem; min-height: 44px; padding: .5rem 1.25rem; border: 2px solid var(--sb-primary); border-radius: var(--sb-radius-pill); background: var(--sb-primary); color: var(--sb-on-primary); font-weight: 600; font-size: .9rem; font-family: inherit; }
.sb-consent-choice:hover { background: var(--sb-primary-dk); border-color: var(--sb-primary-dk); }
@media (max-width: 575px) {
  .sb-consent-actions { flex-basis: 100%; }
  .sb-consent-choice { flex: 1 1 0; min-width: 0; }
}
