/*
 * LocalRun shared header (localrun/nav.js) — one nav for every LocalRun page: /localrun, /restaurants,
 * /store/<id>, /jobs, /work, /drive, /partner, /me, and LocalRun-context /order, /checkout, /thanks, /track.
 * Self-contained (own --lrn-* tokens, own fonts) so it looks identical on the cream LocalRun pages,
 * the Jobs pages and Fan Cave's dark ordering pages.
 */
.lrn {
  --lrn-bg: rgba(243, 241, 236, 0.96);
  --lrn-ink: #1c1c1c;
  --lrn-soft: #3a3a3a;
  --lrn-mute: #5c5c5c;
  --lrn-line: rgba(28, 28, 28, 0.12);
  --lrn-line-strong: rgba(28, 28, 28, 0.22);
  --lrn-cta: #c2410c;
  --lrn-cta-hover: #a8380a;
  --lrn-tint: #fdebd6;
  --lrn-focus: #1d4ed8;
  --lrn-wrap: 70rem;
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--lrn-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--lrn-line);
  color: var(--lrn-ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.3;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
.lrn *,
.lrn *::before,
.lrn *::after { box-sizing: border-box; }
.lrn a { color: inherit; text-decoration: none; }
.lrn :focus-visible { outline: 3px solid var(--lrn-focus); outline-offset: 2px; border-radius: 8px; }
.lrn [hidden] { display: none !important; }

.lrn-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "logo tabs acts";
  align-items: center;
  gap: 0.5rem 1rem;
  max-width: var(--lrn-wrap);
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  min-height: 4rem;
}
.lrn-logo {
  grid-area: logo;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.lrn-logo img { width: 2.25rem; height: 2.25rem; object-fit: contain; flex: none; }

.lrn-tabs {
  grid-area: tabs;
  display: flex;
  gap: 0.25rem;
  align-items: center;
  min-width: 0;
}
.lrn-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.97rem;
  color: var(--lrn-soft);
  white-space: nowrap;
}
.lrn-tab svg { width: 1.1rem; height: 1.1rem; flex: none; }
.lrn-tab:hover { background: rgba(28, 28, 28, 0.06); color: var(--lrn-ink); }
.lrn-tab[aria-current="page"] { background: var(--lrn-ink); color: #fff; }
/* Earn (drive / offer services / add your business) reads as a button so sign-ups are easy to find. */
.lrn-tab[data-lrn-tab="earn"] { background: var(--lrn-tint); color: var(--lrn-cta); box-shadow: inset 0 0 0 1px rgba(194, 65, 12, 0.35); }
.lrn-tab[data-lrn-tab="earn"]:hover { background: var(--lrn-cta); color: #fff; }

.lrn-acts { grid-area: acts; display: flex; align-items: center; gap: 0.4rem; }
.lrn-act {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.8rem;
  border: 1px solid var(--lrn-line-strong);
  background: #fff;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--lrn-ink);
  cursor: pointer;
  white-space: nowrap;
}
.lrn-act:hover { border-color: var(--lrn-ink); }
.lrn-act svg { width: 1.2rem; height: 1.2rem; flex: none; }
.lrn-act[aria-current="page"] { border-color: var(--lrn-ink); box-shadow: inset 0 0 0 1px var(--lrn-ink); }
.lrn-count {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--lrn-cta);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.35rem;
  text-align: center;
}
.lrn-count[data-zero="1"] { background: #ece8e1; color: var(--lrn-mute); }

.lrn-more-panel {
  position: absolute;
  right: max(1.25rem, calc((100vw - var(--lrn-wrap)) / 2 + 1.25rem));
  top: calc(100% + 0.35rem);
  width: min(20rem, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid var(--lrn-line);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(28, 28, 28, 0.16);
  padding: 0.4rem;
  display: grid;
}
.lrn-more-panel a {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  font-weight: 800;
  min-height: 44px;
  justify-content: center;
}
.lrn-more-panel a small { font-weight: 600; color: var(--lrn-mute); font-size: 0.82rem; }
.lrn-more-panel a:hover { background: #f6f3ee; }
.lrn-more-panel hr { border: 0; border-top: 1px solid var(--lrn-line); margin: 0.3rem 0.4rem; }

/* "Fan Cave Pizzeria on LocalRun" strip under the header */
.lrn-ctx {
  border-top: 1px solid var(--lrn-line);
  background: #fff;
}
.lrn-ctx-in {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: var(--lrn-wrap);
  margin: 0 auto;
  padding: 0.35rem 1.25rem;
  min-height: 2.75rem;
  font-size: 0.92rem;
}
.lrn-ctx-back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 44px;
  font-weight: 800;
  color: var(--lrn-cta) !important;
  white-space: nowrap;
}
.lrn-ctx-back svg { width: 1rem; height: 1rem; }
.lrn-ctx-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--lrn-mute); }
.lrn-ctx-name b { color: var(--lrn-ink); }

.lrn-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Mid widths (tablets, small laptops): right-side buttons go icon-only so the tabs (Food, Services,
   Earn, plus Grocery/Shops when present) never slide under them. The tab row also scrolls instead of
   overlapping if a town ever has more tabs than fit. */
.lrn-tabs { overflow-x: auto; scrollbar-width: none; }
.lrn-tabs::-webkit-scrollbar { display: none; }
@media (max-width: 1100px) {
  .lrn-act-label { display: none; }
  .lrn-act { padding: 0 0.6rem; }
}
@media (max-width: 960px) {
  .lrn-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "logo acts" "tabs tabs";
    padding: 0.4rem 1rem 0.5rem;
    gap: 0.35rem 0.5rem;
    min-height: 0;
  }
  .lrn-logo { font-size: 1.15rem; }
  .lrn-logo img { width: 2rem; height: 2rem; }
  .lrn-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.25rem; }
  .lrn-tab { padding: 0.45rem 0.4rem; font-size: 0.92rem; background: rgba(28, 28, 28, 0.05); min-width: 0; }
  .lrn-tab span { overflow: hidden; text-overflow: ellipsis; }
  .lrn-act-label { display: none; }
  .lrn-act { padding: 0 0.6rem; }
  .lrn-ctx-in { padding: 0.25rem 1rem; }
  .lrn-more-panel { right: 1rem; }
}
@media (max-width: 420px) {
  .lrn-logo { font-size: 1rem; gap: 0.4rem; min-width: 0; overflow: hidden; }
  .lrn-logo img { width: 1.75rem; height: 1.75rem; }
  .lrn-acts { gap: 0.3rem; }
}
@media (max-width: 360px) {
  .lrn-tab svg { display: none; }
}

/* ---- Fan Cave ordering pages shown inside LocalRun (html.lrn-on) ---- */
html.lrn-on body > .order-shell > .order-top,
html.lrn-on body > .order-top { top: var(--lrn-h, 0px); }
html.lrn-on .order-top .brand-mark[data-lrn-hidden] { display: none !important; }
html.lrn-on .order-top [data-lrn-hidden] { display: none !important; }

/* ---- LocalRun look for the shared checkout / thanks / track pages (html.lrn-light, set by nav.js in
   LocalRun context). Only colors and fonts change — every element, price and script stays the same. ---- */
html.lrn-light {
  --ink: #1c1c1c;
  --cave: #f3f1ec;
  --cave-2: #ffffff;
  --cave-3: #f6f3ee;
  --paper: #1c1c1c;
  --mute: #5c5c5c;
  --orange: #c2410c;
  --orange-deep: #a8380a;
  --orange-soft: #c2410c;
  --orange-glow: rgba(194, 65, 12, 0.14);
  --line: rgba(28, 28, 28, 0.12);
  --line-strong: rgba(28, 28, 28, 0.22);
  --glass: rgba(255, 255, 255, 0.92);
  --shadow: 0 14px 34px rgba(28, 28, 28, 0.12);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  color-scheme: light;
}
html.lrn-light body { background: #f3f1ec; color: #1c1c1c; font-family: var(--font-body); }
html.lrn-light body::before { display: none; }
html.lrn-light .checkout-wrap h1,
html.lrn-light .thanks-wrap h1,
html.lrn-light .track-wrap h1 { letter-spacing: -0.03em; text-shadow: none; font-weight: 800; }
html.lrn-light .checkout-mode { text-shadow: none; }
html.lrn-light .field input,
html.lrn-light .field select,
html.lrn-light .field textarea { background: #fff; color: #1c1c1c; border-color: rgba(28, 28, 28, 0.22); color-scheme: light; }
html.lrn-light .field select option,
html.lrn-light .field select optgroup { background: #fff; color: #1c1c1c; }
html.lrn-light .btn-primary { background: #c2410c; color: #fff; box-shadow: 0 10px 24px rgba(194, 65, 12, 0.22); }
html.lrn-light .btn-primary:hover { color: #fff; background: #a8380a; }
html.lrn-light .btn-ghost { background: #fff; color: #1c1c1c; }
html.lrn-light .tip-btn { background: #fff; color: #1c1c1c; border-color: rgba(28, 28, 28, 0.22); }
html.lrn-light .tip-btn.on { background: #1c1c1c; color: #fff; box-shadow: none; }
html.lrn-light .disclosure-box { background: #fdebd6; border-color: rgba(194, 65, 12, 0.3); color: #3a3a3a; }
html.lrn-light .store-address-block,
html.lrn-light .stripe-box { background: #fff; }
html.lrn-light .err { color: #b42318; }
html.lrn-light .okmsg { color: #1f6b3a; }
html.lrn-light .track-dot { background: #d6d1c7; border-color: #f3f1ec; }
html.lrn-light .track-eyebrow { color: #b23d0b; }
html.lrn-light #liveMap { background: #ebe7df; }
