/* ===== Kur ēdam? ===== */
@font-face {
  font-family: "Newsreader";
  src: url("/static/fonts/newsreader-latin-ext.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  src: url("/static/fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  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: "Newsreader";
  src: url("/static/fonts/newsreader-italic-latin-ext.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  src: url("/static/fonts/newsreader-italic-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
  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 {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f3ee;
  --surface-3: #efece4;
  --ink: #1b1a16;
  --text: #1b1a16;
  --text-soft: #6a675d;
  --border: #e0ddd2;
  --line: #d3cfc2;
  --primary: #15653d;
  --primary-dark: #0e4a2b;
  --primary-soft: #e6efe9;
  --hot: #b4341c;
  --hot-soft: #f6e7e2;
  --warn: #8a6d1a;
  --warn-soft: #f5edd6;
  --ok: #15653d;
  --ok-soft: #e6efe9;
  --shadow-card: 0 10px 30px -14px rgba(27, 26, 22, .22);

  /* content hues — used via color-mix so they adapt to the active surface */
  --h-soup: #c8701f;
  --h-main: #1f7a48;
  --h-salad: #5f8f24;
  --h-dessert: #b83a6c;
  --h-drink: #2f6f9e;
  --h-side: #9a763a;
  --h-snack: #7d51a6;

  --radius: 4px;
  --header-h: 67px;
  --radius-sm: 3px;
  --radius-lg: 7px;
  --maxw: 1160px;
  --font: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

/* ---- Dark theme ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #16140e;
    --surface: #1d1a13;
    --surface-2: #232016;
    --surface-3: #2b2619;
    --ink: #f0eadc;
    --text: #f0eadc;
    --text-soft: #a49c88;
    --border: #3a3527;
    --line: #4b4432;
    --primary: #37a06a;
    --primary-dark: #8ad0a8;
    --primary-soft: #1e3327;
    --hot: #e08a63;
    --hot-soft: #3a271c;
    --warn: #d8b46a;
    --warn-soft: #352b17;
    --ok: #37a06a;
    --ok-soft: #1e3327;
    --shadow-card: 0 14px 34px -14px rgba(0, 0, 0, .6);
    --h-soup: #e0913f;
    --h-main: #56b982;
    --h-salad: #93c04a;
    --h-dessert: #e069a0;
    --h-drink: #62a7d6;
    --h-side: #c69c5f;
    --h-snack: #b184db;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #16140e;
  --surface: #1d1a13;
  --surface-2: #232016;
  --surface-3: #2b2619;
  --ink: #f0eadc;
  --text: #f0eadc;
  --text-soft: #a49c88;
  --border: #3a3527;
  --line: #4b4432;
  --primary: #37a06a;
  --primary-dark: #8ad0a8;
  --primary-soft: #1e3327;
  --hot: #e08a63;
  --hot-soft: #3a271c;
  --warn: #d8b46a;
  --warn-soft: #352b17;
  --ok: #37a06a;
  --ok-soft: #1e3327;
  --shadow-card: 0 14px 34px -14px rgba(0, 0, 0, .6);
  --h-soup: #e0913f;
  --h-main: #56b982;
  --h-salad: #93c04a;
  --h-dessert: #e069a0;
  --h-drink: #62a7d6;
  --h-side: #c69c5f;
  --h-snack: #b184db;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* nothing may ever force sideways scrolling of the page itself */
html, body { overflow-x: clip; }
.cafe-body__main, .cafe-body__side, .home-layout__list, .home-layout__map, .editor-layout > *, .masthead__main { min-width: 0; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
}
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; font-weight: 600; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 3.4vw, 2.35rem); }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
h3 { font-size: 1.1rem; }
a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
p { margin: 0 0 1rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
code, pre { font-family: "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace; font-size: .85em; }
pre {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .8rem .9rem; overflow-x: auto; line-height: 1.5; white-space: pre-wrap;
}
code { background: var(--surface-2); padding: .1em .35em; border-radius: 3px; }
pre code { background: none; padding: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 700px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

.ico { display: inline-block; flex: none; vertical-align: -.18em; }

/* ---- Top utility bar (business login, theme) ---- */
.topbar { background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: .8rem; color: var(--text-soft); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 34px; }
.topbar__date { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__date::first-letter { text-transform: uppercase; }
.topbar__sep { color: var(--line); margin: 0 .2rem; }
.topbar__right { display: flex; align-items: center; gap: .9rem; margin-left: auto; white-space: nowrap; }
.topbar__label { display: inline-flex; align-items: center; gap: .3rem; }
.topbar__link {
  display: inline-flex; align-items: center; gap: .3rem; color: var(--ink); font-weight: 600;
  text-decoration: none; font: inherit; font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer;
}
.topbar__link:hover { color: var(--primary); text-decoration: underline; }
.topbar__cta {
  color: #fff; background: var(--primary); font-weight: 700; text-decoration: none;
  padding: .2rem .6rem; border-radius: var(--radius-sm);
}
.topbar__cta:hover { color: #fff; background: color-mix(in oklab, var(--primary) 84%, #000); }
@media (max-width: 640px) {
  .topbar__date { display: none; }
  .topbar__right { margin-left: 0; width: 100%; justify-content: flex-end; }
}

/* ---- Header ---- */
.site-header {
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50;
}
.site-header__inner { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--serif); font-weight: 600; font-size: 1.42rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand__mark {
  display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none;
  background: var(--primary); color: #fff; border-radius: var(--radius);
}
.brand__mark .ico { vertical-align: 0; }
.brand__tld { color: var(--primary); }
.site-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: nowrap; }
.site-nav a {
  position: relative; display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap;
  color: var(--ink); font-weight: 600; font-size: .98rem; text-decoration: none;
  padding: .55rem .85rem; border-radius: var(--radius); transition: background .12s, color .12s;
}
.site-nav a .ico { color: var(--text-soft); transition: color .12s; }
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav a:hover .ico { color: var(--primary); }
.site-nav a.is-active { background: var(--primary-soft); color: var(--primary-dark); }
.site-nav a.is-active .ico { color: var(--primary); }
.site-nav a.is-active::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: -12px; height: 3px;
  background: var(--primary); border-radius: 2px 2px 0 0;
}
.site-nav a.site-nav__accent { border: 1px solid var(--line); margin-left: 6px; }
.site-nav a.site-nav__accent:hover { border-color: var(--primary); }
.site-nav a.site-nav__accent.is-active { border-color: transparent; }
.inline-form { display: inline; margin: 0; }

.theme-toggle {
  display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none;
  border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-soft); cursor: pointer; padding: 0; opacity: .8;
}
.theme-toggle:hover { color: var(--ink); background: var(--surface-3); opacity: 1; }
.theme-toggle__sun { display: block; }
.theme-toggle__moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle__moon { display: block; }
}
:root[data-theme="dark"] .theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__moon { display: block; }
:root[data-theme="light"] .theme-toggle__sun { display: block; }
:root[data-theme="light"] .theme-toggle__moon { display: none; }

@media (max-width: 1020px) {
  .site-nav a { padding: .5rem .6rem; font-size: .93rem; }
  .site-nav a.is-active::after { left: .6rem; right: .6rem; }
}
/* ---- Phone / tablet header: brand + always-visible menu button ---- */
.menu-btn {
  display: none; align-items: center; gap: .45rem; margin-left: auto; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .92rem; color: var(--ink);
  padding: .45rem .8rem; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--surface);
}
.menu-btn .ico { vertical-align: 0; display: block; }
.menu-btn__close { display: none; }
.menu-btn[aria-expanded="true"] { background: var(--ink); color: var(--bg); }
.menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__close { display: block; }

.mmenu {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 49;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-card);
  max-height: calc(100vh - var(--header-h) - 40px); max-height: calc(100dvh - var(--header-h) - 40px); overflow-y: auto; overscroll-behavior: contain;
}
.mmenu[hidden], .mmenu-backdrop[hidden] { display: none; }
.mmenu__inner { padding-top: .4rem; padding-bottom: 1.2rem; }
.mmenu__head { margin: 1rem 0 .4rem; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }
.mmenu__list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.mmenu__list a {
  display: flex; align-items: center; gap: .7rem; padding: .8rem .9rem; min-height: 48px;
  font-weight: 600; color: var(--ink); text-decoration: none; border-top: 1px solid var(--border);
}
.mmenu__list a:first-child { border-top: 0; }
.mmenu__list a .ico { color: var(--primary); }
.mmenu__list a.is-active { background: var(--primary-soft); color: var(--primary-dark); }
.mmenu__list--toc a { padding: .65rem .9rem; min-height: 44px; }
.mmenu__list--toc a.is-sub { padding-left: 1.9rem; font-weight: 400; color: var(--text-soft); min-height: 40px; }
.mmenu__biz { display: flex; gap: .6rem; flex-wrap: wrap; }
.mmenu__biz .btn { flex: 1 1 130px; padding: .7rem .8rem; }
.mmenu-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(20, 18, 12, .45); }

/* two-floor section grid: every section visible at once, no sideways swiping */
.quicknav { display: none; background: var(--surface); border-bottom: 1px solid var(--line); }
.quicknav__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding-top: 10px; padding-bottom: 10px; }
.quicknav a {
  display: flex; align-items: center; gap: .5rem; min-width: 0; min-height: 44px;
  padding: .5rem .65rem; border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 600; font-size: .9rem; line-height: 1.15; color: var(--ink); text-decoration: none; background: var(--surface);
}
.quicknav a .ico { color: var(--text-soft); }
.quicknav a.is-active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); }
.quicknav a.is-active .ico { color: var(--primary); }

@media (max-width: 900px) {
  .site-header__inner { min-height: 56px; gap: 12px; }
  .site-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .quicknav { display: block; }
  .brand { font-size: 1.3rem; }
}
@media (min-width: 901px) { .mmenu, .mmenu-backdrop { display: none !important; } }
@media (max-width: 640px) { .quicknav__grid { grid-template-columns: 1fr 1fr; } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  padding: .6rem 1.05rem; border-radius: var(--radius); border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg); transition: background .12s, border-color .12s, color .12s;
  white-space: nowrap;
}
.btn:hover { background: color-mix(in oklab, var(--ink) 82%, var(--surface)); color: var(--bg); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn--primary:hover { background: color-mix(in oklab, var(--primary) 84%, #000); border-color: transparent; color: #fff; }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn--link { background: none; border-color: transparent; color: var(--primary-dark); padding: .5rem .3rem; text-decoration: underline; }
.btn--link:hover { background: none; color: var(--primary); }
.btn--danger { color: var(--hot); }
.btn--link.btn--danger { color: var(--hot); }
.btn--sm { padding: .4rem .7rem; font-size: .87rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 560px) { .btn__suffix { display: none; } }

/* ---- Masthead (front page) ---- */
.masthead { background: var(--surface); border-bottom: 3px double var(--ink); }
.masthead__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) 244px; gap: 3rem;
  padding-top: 2.8rem; padding-bottom: 2.4rem; align-items: start;
}
.masthead__eyebrow {
  font-size: .7rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--primary-dark); margin: 0 0 .85rem; padding-bottom: .55rem;
  border-bottom: 1px solid var(--line);
}
.masthead__title {
  font-size: clamp(2.15rem, 4.5vw, 3.15rem); line-height: 1.05; letter-spacing: -.02em;
  margin: 0 0 .85rem; text-wrap: balance;
}
.masthead__lead {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.45; color: var(--text-soft);
  max-width: 40ch; margin: 0;
}

.dateline { border: 1px solid var(--ink); padding: .85rem 1rem 1rem; }
.dateline__date {
  font-family: var(--serif); font-weight: 600; font-size: 1.05rem; line-height: 1.2;
  margin: 0 0 .7rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line);
}
.dateline__facts { margin: 0; display: flex; flex-direction: column; }
.dateline__facts > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: .6rem;
  padding: .5rem 0; border-bottom: 1px solid var(--line);
}
.dateline__facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.dateline__facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-soft); }
.dateline__facts dd { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1; color: var(--primary-dark); font-variant-numeric: tabular-nums; }
.dateline__place { font-size: .95rem !important; text-align: right; color: var(--ink) !important; }

@media (max-width: 820px) {
  .masthead__inner { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 2rem; padding-bottom: 1.7rem; }
  .dateline { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.4rem; padding: .8rem 1rem; }
  .dateline__date { border: 0; padding: 0; margin: 0; width: 100%; }
  .dateline__facts { flex-direction: row; flex-wrap: wrap; gap: .3rem 1.6rem; }
  .dateline__facts > div { border: 0; padding: 0; gap: .4rem; }
  .dateline__facts dd { font-size: 1rem; }
  .dateline__place { text-align: left; }
}

.page-head { padding: 2rem 0 1.1rem; }
.page-head p { color: var(--text-soft); margin: .2rem 0 0; }
.page-head--img { display: none; }

/* ---- Location filter / toolbar ---- */
.locfilter {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .9rem 1rem; margin-bottom: 1.6rem;
}
.toolbar-wrap {
  position: sticky; top: var(--header-h); z-index: 30;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.toolbar-wrap .locfilter { background: none; border: 0; border-radius: 0; padding: .85rem 0; margin: 0; }
.locfilter__grid { display: flex; flex-wrap: wrap; gap: .55rem .7rem; align-items: flex-end; }

.fld { display: flex; flex-direction: column; gap: .28rem; min-width: 130px; }
.fld--grow { flex: 1 1 200px; }
.fld__label { font-size: .68rem; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: .06em; padding-left: .1rem; }
.fld__select { position: relative; display: block; }
.fld__select::after {
  content: ""; position: absolute; right: .7rem; top: 50%; width: .5rem; height: .5rem;
  border-right: 2px solid var(--text-soft); border-bottom: 2px solid var(--text-soft);
  transform: translateY(-65%) rotate(45deg); pointer-events: none;
}
.fld__select select {
  width: 100%; appearance: none; -webkit-appearance: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .5rem 2rem .5rem .65rem;
  font-weight: 600; cursor: pointer;
}
.locfilter .fld input[type="search"] { background: var(--surface); }

.locfilter__geo {
  display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; white-space: nowrap;
  font: inherit; font-weight: 600; font-size: .9rem;
  padding: .5rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); transition: border-color .12s, background .12s;
}
.locfilter__geo:hover { border-color: var(--primary); }
.locfilter__geo.is-on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); }
.locfilter__geo:disabled { opacity: .55; cursor: default; }
.locfilter__actions { display: flex; gap: .3rem; align-items: center; }
.locfilter__geo-status { display: block; font-size: .84rem; color: var(--text-soft); margin-top: .5rem; }

@media (max-width: 760px) { .toolbar-wrap { position: static; } }
@media (max-width: 620px) {
  .fld { flex: 1 1 42%; min-width: 0; }
  .locfilter__geo { flex: 1 1 100%; justify-content: center; }
  .locfilter__actions { margin-left: 0; }
}

.field { display: flex; flex-direction: column; gap: .3rem; min-width: 150px; }
.field--grow { flex: 1 1 220px; }
.field--sm { min-width: 108px; }
.field__label { font-size: .76rem; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: .04em; }
.field__label small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.field__hint { font-size: .82rem; color: var(--text-soft); }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .55rem .65rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
textarea { resize: vertical; line-height: 1.5; }
label.field > span { user-select: none; }

/* ---- Results / section head ---- */
.results-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; margin: 2rem 0 1.4rem; padding-bottom: .5rem; border-bottom: 2px solid var(--primary); }
.results-head h2 { margin: 0; font-family: var(--font); font-weight: 700; font-size: .92rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); }
.results-head__date { color: var(--primary-dark); }
.results-head__count { color: var(--text-soft); font-family: var(--serif); font-size: 1rem; margin: 0; font-variant-numeric: tabular-nums; }

.home-layout { display: grid; grid-template-columns: 1fr 358px; gap: 2rem; align-items: start; padding-bottom: 4rem; }
.home-layout__map { position: sticky; top: calc(var(--header-h) + 84px); }
@media (max-width: 940px) {
  .home-layout { grid-template-columns: 1fr; gap: 1.4rem; }
  .home-layout__map { position: static; order: -1; }
}

.map-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.map-card__label { display: flex; align-items: center; gap: .4rem; margin: 0; padding: .6rem .85rem; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); background: var(--surface); border-bottom: 2px solid var(--primary); }
.map { width: 100%; height: 420px; background: var(--surface-2); z-index: 0; }
.map--side { height: 240px; margin-bottom: 1rem; border: 1px solid var(--border); border-radius: var(--radius); }
.map--pick { height: 340px; border: 1px solid var(--border); border-radius: var(--radius); }
.map__hint { font-size: .8rem; color: var(--text-soft); margin: .55rem 0 0; }
@media (max-width: 940px) { .map { height: 300px; } }
/* phones/tablets: map sits behind a "Rādīt karti" button so offers start right away */
.map-toggle { display: none; }
@media (max-width: 940px) {
  .js .map-toggle { display: flex; }
  .js .home-layout__map.is-collapsed .map-wrap { display: none; }
  .js .home-layout__map:not(.is-collapsed) .map-toggle { margin-bottom: .7rem; }
}

/* ---- Star rating chip ---- */
.rating {
  display: inline-flex; align-items: baseline; gap: .18rem; white-space: nowrap;
  font-weight: 700; font-size: .8rem; color: var(--ink); font-variant-numeric: tabular-nums;
}
.rating__star { color: var(--h-soup); font-size: .82em; }
.rating__count { font-weight: 400; color: var(--text-soft); }
.rating--lg { font-size: .95rem; }

/* ---- Homepage picks (near / popular / top rated) ---- */
.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem 2rem; margin: 2.4rem 0 .5rem; }
.picks__col { min-width: 0; }
.picks__title {
  display: flex; align-items: center; gap: .55rem;
  margin: 0 0 .9rem; font-family: var(--font); font-weight: 700; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .1em; color: var(--ink);
  padding-bottom: .5rem; border-bottom: 2px solid var(--primary);
}
.picks__list { display: flex; flex-direction: column; }
.picks__ico {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius);
  background: color-mix(in oklab, var(--pick-hue) 16%, var(--surface)); color: color-mix(in oklab, var(--pick-hue) 80%, var(--ink));
}
.picks__ico .ico { vertical-align: 0; }
.picks__ico--near { --pick-hue: var(--h-drink); }
.picks__ico--pop  { --pick-hue: var(--h-soup); }
.picks__ico--top  { --pick-hue: var(--h-dessert); }
.picks__prompt {
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 1rem;
  background: var(--surface-2);
}
.picks__more {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .7rem; padding: .5rem .8rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  font-size: .86rem; font-weight: 700; color: var(--primary-dark); text-decoration: none;
}
.picks__more:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.picks__more .ico { transition: transform .12s ease; }
.picks__more:hover .ico { transform: translateX(3px); }
.results-head__sort { font-family: var(--font); font-size: .82rem; color: var(--text-soft); }
#visi, #tuvuma, #popularakas, #vertejums, #karte { scroll-margin-top: calc(var(--header-h) + 96px); }
@media (max-width: 760px) { #visi, #tuvuma, #popularakas, #vertejums, #karte { scroll-margin-top: calc(var(--header-h) + 14px); } }
.picks__prompt p { font-size: .88rem; color: var(--text-soft); margin: 0 0 .7rem; }

.pmini {
  display: grid; grid-template-columns: 56px 1fr; gap: .75rem; align-items: center;
  padding: .7rem 0; border-top: 1px solid var(--border); text-decoration: none; color: inherit;
  transition: background .12s ease;
}
.picks__list .pmini:first-child { border-top: 0; }
.pmini:hover { color: inherit; }
.pmini:hover .pmini__name { color: var(--primary-dark); }
.pmini__ph { width: 56px; height: 56px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.pmini__ph img { width: 100%; height: 100%; object-fit: cover; }
.pmini__ph .ph { width: 100%; height: 100%; font-size: 1.3rem; }
.pmini__body { min-width: 0; display: flex; flex-direction: column; gap: .18rem; }
.pmini__name {
  font-family: var(--serif); font-weight: 600; font-size: 1.06rem; line-height: 1.15;
  color: var(--ink); letter-spacing: -.01em; transition: color .12s;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pmini__meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .5rem; }
.pmini__meta > * + *::before { content: "·"; margin-right: .5rem; color: var(--line); }
.pmini__foot { display: flex; align-items: baseline; gap: .6rem; font-size: .85rem; }
.pmini__price { font-family: var(--serif); font-weight: 600; color: var(--primary-dark); font-variant-numeric: tabular-nums; }
.pmini__price span { font-family: var(--font); font-size: .6rem; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 860px) {
  .picks { grid-template-columns: 1fr; gap: 1.6rem; margin-top: 1.8rem; }
}

/* ---- Photo / placeholder ---- */
.ph {
  display: grid; place-items: center; font-family: var(--serif); font-weight: 600;
  --ph-hue: var(--primary);
  background: color-mix(in oklab, var(--ph-hue) 22%, var(--surface));
  color: color-mix(in oklab, var(--ph-hue) 78%, var(--ink));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ph-hue) 30%, transparent);
}
.ph--lg { font-size: 2.4rem; }
.ph--0 { --ph-hue: var(--h-main); }  .ph--1 { --ph-hue: var(--h-soup); }
.ph--2 { --ph-hue: var(--h-drink); } .ph--3 { --ph-hue: var(--h-dessert); }
.ph--4 { --ph-hue: var(--h-salad); } .ph--5 { --ph-hue: var(--h-side); }
.ph--6 { --ph-hue: var(--h-snack); }

/* ---- Lunch card (menu listing) ---- */
.lcard {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 1.5rem; overflow: hidden;
  transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}
.lcard:hover { border-color: var(--ink); box-shadow: var(--shadow-card); transform: translateY(-2px); }

.lcard__top { display: block; text-decoration: none; color: inherit; }
.lcard__top:hover { color: inherit; }
.lcard__top:hover .lcard__name { color: var(--primary-dark); }

.lcard__banner { display: block; overflow: hidden; background: var(--surface-2); }
.lcard__banner img { width: 100%; height: 158px; object-fit: cover; display: block; transition: transform .5s ease; }
.lcard:hover .lcard__banner img { transform: scale(1.045); }

.lcard__head {
  display: grid; grid-template-columns: 76px 1fr; gap: 1.1rem;
  padding: 1.3rem 1.4rem 1.15rem;
}
.lcard--photo .lcard__head { grid-template-columns: 1fr; padding-top: 1.1rem; }
.lcard__photo { width: 76px; height: 76px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.lcard__photo.ph { width: 76px; height: 76px; font-size: 1.7rem; border-color: transparent; }
.lcard__id { min-width: 0; display: flex; flex-direction: column; gap: .3rem; }

.lcard__row { display: flex; align-items: baseline; gap: .55rem; }
.lcard__name {
  margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.45rem;
  line-height: 1.1; color: var(--ink); letter-spacing: -.015em; transition: color .12s;
}
.lcard__leader { flex: 1 1 auto; min-width: 1.2rem; align-self: stretch; border-bottom: 1px dotted color-mix(in oklab, var(--text-soft) 55%, transparent); margin-bottom: .42em; }
.lcard__price { white-space: nowrap; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--primary-dark); font-variant-numeric: tabular-nums; }
.lcard__price span { font-family: var(--font); font-size: .64rem; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: .06em; }

.lcard__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .5rem; font-size: .85rem; color: var(--text-soft); margin: .15rem 0 0; }
.lcard__meta > * + *::before { content: "·"; margin-right: .5rem; color: var(--line); }
.lcard__type { text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; font-weight: 700; color: color-mix(in oklab, var(--type-hue, var(--text-soft)) 68%, var(--ink)); }
.lcard__type[data-type="Kafejnīca"]  { --type-hue: var(--h-side); }
.lcard__type[data-type="Ēdnīca"]     { --type-hue: var(--h-main); }
.lcard__type[data-type="Bistro"]     { --type-hue: var(--h-soup); }
.lcard__type[data-type="Restorāns"]  { --type-hue: var(--h-dessert); }
.lcard__type[data-type="Krogs"]      { --type-hue: var(--h-drink); }
.lcard__type[data-type="Konditoreja"]{ --type-hue: var(--h-snack); }
.lcard__dist { color: var(--primary-dark); font-weight: 700; }
.lcard__now { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: .92rem; color: var(--primary-dark); }
.lcard__over { font-family: var(--serif); font-style: italic; font-size: .92rem; color: var(--text-soft); }
.lcard__hours { margin: 0; font-size: .82rem; color: var(--text-soft); }

/* "Rādīt vēl": first 8 cards, the rest behind the button (all visible without JS) */
.js .lcard.is-more { display: none; }
.more-btn { display: none; padding: .8rem 1rem; }
.js .more-btn { display: flex; }
.more-btn__n { font-weight: 400; color: var(--text-soft); }

.lcard__sets { padding: 0 1.4rem; }
.lset { padding: 1rem 0; border-top: 1px solid var(--border); }
.lset--lg { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.lset__bar { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin: 0 0 .55rem; }
.lset__title {
  margin: 0; font-family: var(--font); font-weight: 700; font-size: .76rem;
  text-transform: uppercase; letter-spacing: .09em; color: var(--ink); white-space: nowrap;
}
.lset__bar h3, .lset__bar h4 { margin: 0; font-family: var(--font); font-weight: 700; font-size: 1rem; }
.lset__leader { flex: 1 1 auto; min-width: 1rem; border-bottom: 1px dotted color-mix(in oklab, var(--text-soft) 55%, transparent); margin-bottom: .28em; }
.lset__price { font-weight: 600; color: var(--primary-dark); white-space: nowrap; font-variant-numeric: tabular-nums; font-size: .95rem; }
.lset__desc { font-family: var(--serif); font-style: italic; font-size: .95rem; color: var(--text-soft); margin: -.2rem 0 .5rem; }
.lset__courses { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.lset__courses li { display: grid; grid-template-columns: 104px 1fr auto; gap: .1rem .7rem; font-size: .95rem; line-height: 1.4; align-items: baseline; }
.lset__courses li[data-course="Zupa"]        { --course-hue: var(--h-soup); }
.lset__courses li[data-course="Salāti"]      { --course-hue: var(--h-salad); }
.lset__courses li[data-course="Pamatēdiens"] { --course-hue: var(--h-main); }
.lset__courses li[data-course="Piedeva"]     { --course-hue: var(--h-side); }
.lset__courses li[data-course="Deserts"]     { --course-hue: var(--h-dessert); }
.lset__courses li[data-course="Dzēriens"]    { --course-hue: var(--h-drink); }
.lset__courses li[data-course="Uzkoda"]      { --course-hue: var(--h-snack); }
.lset__course {
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: .92rem;
  color: color-mix(in oklab, var(--course-hue, var(--text-soft)) 66%, var(--ink));
  display: flex; align-items: baseline; gap: .4rem;
}
.lset__course::before {
  content: ""; flex: none; width: .42rem; height: .42rem; border-radius: 50%;
  background: var(--course-hue, var(--text-soft)); transform: translateY(-.08em);
}
.lset__dish { color: var(--ink); }
.lset__dishdesc { color: var(--text-soft); font-style: italic; }
.lset__cprice { color: var(--text-soft); font-size: .88rem; font-variant-numeric: tabular-nums; }

.lcard__more {
  display: block; padding: .8rem 1.4rem; border-top: 1px solid var(--border);
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  color: var(--primary-dark); text-decoration: none;
}
.lcard__more:hover { background: var(--surface-2); color: var(--primary-dark); }
.lcard__more span { display: inline-block; transition: transform .12s ease; }
.lcard__more:hover span { transform: translateX(3px); }

@media (max-width: 520px) {
  .lcard__head { grid-template-columns: 56px 1fr; gap: .85rem; padding: 1.1rem 1.1rem .9rem; }
  .lcard__photo, .lcard__photo.ph { width: 56px; height: 56px; }
  .lcard__name { font-size: 1.25rem; }
  .lcard__sets, .lcard__more { padding-left: 1.1rem; padding-right: 1.1rem; }
  .lset__courses li { grid-template-columns: 92px 1fr; }
  .lset__cprice { grid-column: 2; }
}

.empty { background: var(--surface-2); border: 1px solid var(--border); padding: 3rem 1.4rem; text-align: center; color: var(--text-soft); border-radius: var(--radius); }
.empty__title { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; color: var(--ink); margin: 0 0 .4rem; }
.empty p { margin: .3rem 0; }

.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--surface-3); color: var(--text-soft); padding: .16rem .45rem; border-radius: 2px; }
.tag--soft { background: var(--primary-soft); color: var(--primary-dark); }
.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: .2rem .5rem; border: 1px solid var(--line); color: var(--text-soft); border-radius: 2px; }
.badge--ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge--warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.muted { color: var(--text-soft); }

/* ---- Cafe directory ---- */
.cafe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.3rem; padding-bottom: 3.5rem; }
.cafe-tile { background: var(--surface); border: 1px solid var(--border); overflow: hidden; color: var(--text); display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius); transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease; }
.cafe-tile:hover { border-color: var(--ink); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.cafe-tile__photo { height: 172px; width: 100%; object-fit: cover; transition: transform .5s ease; }
.cafe-tile:hover img.cafe-tile__photo { transform: scale(1.045); }
.cafe-tile__photo.ph { font-size: 3rem; }
.cafe-tile__body { padding: .95rem 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.cafe-tile__body h2 { margin: 0; font-size: 1.2rem; font-family: var(--serif); }
.cafe-tile__meta { display: flex; flex-wrap: wrap; gap: .3rem .5rem; font-size: .82rem; color: var(--text-soft); margin: 0; align-items: center; }
.cafe-tile__desc { font-size: .9rem; color: var(--text-soft); margin: 0; }
.cafe-tile__foot { margin-top: auto; padding-top: .4rem; }

/* ---- Cafe page ---- */
.cafe-hero { border-bottom: 1px solid var(--line); }
.cafe-hero__inner { display: grid; grid-template-columns: 340px 1fr; gap: 2rem; padding-top: 2.2rem; padding-bottom: 2.2rem; align-items: start; }
.cafe-hero__photo { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }
.cafe-hero__photo.ph { font-size: 4rem; }
.cafe-hero__tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; margin: 0 0 .2rem; }
.cafe-hero__info h1 { margin: .3rem 0; }
.cafe-hero__desc { color: var(--text-soft); max-width: 58ch; }
.cafe-hero__facts { list-style: none; padding: 0; margin: .7rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem 1.4rem; font-size: .92rem; color: var(--text-soft); }
.cafe-hero__facts li { display: inline-flex; align-items: center; gap: .4rem; }
.cafe-hero__facts .ico { color: var(--primary); }
.cafe-hero__facts a { color: var(--primary-dark); }
@media (max-width: 720px) { .cafe-hero__inner { grid-template-columns: 1fr; gap: 1.1rem; padding-top: 1.4rem; padding-bottom: 1.4rem; } .cafe-hero__photo { height: 190px; } }

/* section tabs under the hero — makes "where is the menu" obvious */
.cafe-tabs {
  position: sticky; top: var(--header-h); z-index: 20;
  background: color-mix(in oklab, var(--surface) 94%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.cafe-tabs__inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cafe-tabs__inner::-webkit-scrollbar { display: none; }
.cafe-tabs__link {
  display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap;
  padding: .85rem .9rem .8rem; font-weight: 600; font-size: .95rem; color: var(--text-soft);
  text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.cafe-tabs__link:hover { color: var(--ink); }
.cafe-tabs__link.is-active { color: var(--ink); border-bottom-color: var(--primary); }
.cafe-tabs__link.is-active .ico { color: var(--primary); }
.cafe-tabs__n {
  font-size: .72rem; font-weight: 700; min-width: 1.5em; padding: .05rem .4rem; border-radius: 999px;
  background: var(--surface-3); color: var(--text-soft); text-align: center;
}
#pusdienas, #edienkarte, #piedavajumi, #kontakti, .menu-cat { scroll-margin-top: calc(var(--header-h) + 64px); }
/* phones: tabs become a 2x2 grid (all visible, no swiping); the header menu button covers "always reachable" */
@media (max-width: 640px) {
  .cafe-tabs { position: static; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); }
  .cafe-tabs__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding-top: 10px; padding-bottom: 10px; overflow: visible; }
  .cafe-tabs__link {
    min-width: 0; min-height: 44px; padding: .5rem .65rem; margin: 0; font-size: .9rem; white-space: normal; line-height: 1.15;
    border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
  }
  .cafe-tabs__link.is-active { border-color: var(--line); }
  .cafe-tabs__link.is-active .ico { color: inherit; }
  .cafe-tabs__n { margin-left: auto; }
  #pusdienas, #edienkarte, #piedavajumi, #kontakti, .menu-cat { scroll-margin-top: calc(var(--header-h) + 12px); }
}

.cafe-body { display: grid; grid-template-columns: 1fr 300px; gap: 2.4rem; padding: 2.2rem 24px 4rem; align-items: start; max-width: var(--maxw); margin: 0 auto; }
.cafe-body__side { position: sticky; top: calc(var(--header-h) + 70px); }
@media (max-width: 900px) { .cafe-body { grid-template-columns: 1fr; } .cafe-body__side { position: static; } }

.panel { background: var(--surface); border: 1px solid var(--border); padding: 1.4rem; margin-bottom: 1.6rem; border-radius: var(--radius); }
.panel__head { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.panel__head h2 { margin: 0; }
.panel__title { display: flex; align-items: center; gap: .6rem; }
.panel__ico {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: var(--radius); background: var(--primary-soft); color: var(--primary-dark);
}
.panel__ico .ico { vertical-align: 0; }
.panel__sub { color: var(--text-soft); font-size: .93rem; margin: 0 0 1rem; }

.daypick, .daybar { display: flex; flex-wrap: wrap; gap: .3rem; }
/* public day picker: one swipeable row, never wraps onto a 2nd line */
.daypick {
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding: .2rem 0 .55rem; margin: .4rem 0 .7rem;
  scroll-snap-type: x proximity;
}
.daypick__btn { flex: none; scroll-snap-align: start; }
.daypick__btn > span { font-weight: 700; color: inherit; }
@media (max-width: 640px) {
  .daypick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; padding-bottom: .2rem; }
  .daypick .daypick__btn { min-width: 0; padding: .4rem .1rem; font-size: .8rem; }
  .panel { padding: 1.1rem 1rem; }
  .lset--lg { padding: .9rem .85rem; }
}
.daypick__btn, .daybar__btn {
  display: flex; flex-direction: column; align-items: center; min-width: 50px; padding: .32rem .5rem;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-soft);
  font-size: .84rem; font-weight: 600; text-decoration: none; border-radius: var(--radius-sm);
}
.daypick__btn small, .daybar__btn small { font-weight: 400; font-size: .76rem; }
.daypick__btn:hover, .daybar__btn:hover { border-color: var(--primary); color: var(--ink); }
.daypick__btn.is-active, .daybar__btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.daybar__btn.has-content:not(.is-active) { border-color: var(--primary); color: var(--primary-dark); }
.daybar { align-items: center; margin-bottom: 1rem; }
.daybar__pick { font-size: .8rem; color: var(--text-soft); display: flex; flex-direction: column; gap: .2rem; margin-left: .4rem; }

.menu-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .7rem 0 1.4rem; }
.menu-chips__chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  font-size: .88rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.menu-chips__chip span { font-size: .74rem; color: var(--text-soft); font-weight: 600; }
.menu-chips__chip:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-soft); }

.menu-cat { margin-bottom: 1.8rem; }
.menu-cat:last-child { margin-bottom: .4rem; }
.menu-cat__title {
  display: flex; align-items: center; gap: .8rem; margin: 0 0 .5rem;
  font-family: var(--font); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--primary-dark);
}
.menu-cat__title::after { content: ""; flex: 1; height: 2px; background: var(--primary); opacity: .35; }
.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-list li { display: flex; align-items: baseline; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.menu-list li:last-child { border-bottom: 0; }
.menu-list__text { min-width: 0; flex: 0 1 auto; }
.menu-list__name { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.menu-list__desc { display: block; font-size: .86rem; color: var(--text-soft); font-style: italic; }
.menu-list__leader { flex: 1 1 1.5rem; min-width: 1.5rem; border-bottom: 1px dotted color-mix(in oklab, var(--text-soft) 55%, transparent); transform: translateY(-.3em); }
.menu-list__price { font-weight: 700; white-space: nowrap; color: var(--primary-dark); font-variant-numeric: tabular-nums; }

.offer { border: 1px solid var(--border); padding: 1rem 1.1rem; margin-bottom: .8rem; border-radius: var(--radius); }
.offer__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; }
.offer__head h3 { margin: 0; font-family: var(--font); font-weight: 700; }
.offer__price { font-weight: 700; margin-left: auto; }
.offer__img { margin: .6rem 0; max-height: 240px; object-fit: cover; width: 100%; border-radius: var(--radius-sm); }
.offer__dates { font-size: .84rem; color: var(--text-soft); margin: .3rem 0 0; }

.sidecard { background: var(--surface-2); border: 1px solid var(--border); padding: 1.1rem; border-radius: var(--radius); }
.sidecard h3 { margin-top: 0; font-family: var(--font); font-weight: 700; font-size: 1rem; }
.sidecard p { font-size: .9rem; margin: .3rem 0; }
.sidecard__row { display: flex; gap: .55rem; align-items: flex-start; }
.sidecard__row .ico { color: var(--primary); margin-top: .18em; }
.sidecard__row a { overflow-wrap: anywhere; }
.sidecard__dir { margin-top: .8rem; }
.sidecard__nav { display: flex; flex-wrap: wrap; gap: .3rem .8rem; margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--border); }

/* ---- Offers grid ---- */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 1.3rem; padding-bottom: 3.5rem; }
.offer-card { background: var(--surface); border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; border-radius: var(--radius); }
.offer-card__img { height: 168px; object-fit: cover; width: 100%; }
.offer-card__body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.offer-card__body h2 { margin: 0; font-size: 1.2rem; }
.offer-card__cafe { font-size: .85rem; color: var(--text-soft); margin: 0; }
.offer-card__desc { font-size: .9rem; margin: 0; }
.offer-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; padding-top: .4rem; border-top: 1px solid var(--border); }
.offer-card__price { font-weight: 700; }
.offer-card__dates { font-size: .8rem; color: var(--text-soft); }

/* ---- Forms / auth ---- */
.form { display: flex; flex-direction: column; gap: 1.1rem; }
.form__group { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.3rem; margin: 0; }
.form__group legend { font-weight: 700; padding: 0 .4rem; font-size: .95rem; }
.form__row { display: flex; flex-wrap: wrap; gap: .9rem; }
.form__row .field { flex: 1 1 160px; }
.form__actions { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }

.authbox { background: var(--surface); border: 1px solid var(--border); padding: 1.9rem; margin: 2.4rem 0 3.5rem; border-radius: var(--radius); }
.authbox h1 { margin-bottom: .2rem; }
.authbox__sub { color: var(--text-soft); }
.authbox__alt { margin: 1.3rem 0 0; font-size: .92rem; text-align: center; color: var(--text-soft); }

.flash { padding: .8rem 1rem; margin-bottom: 1.3rem; font-size: .94rem; display: flex; gap: .5rem; align-items: baseline; border-radius: var(--radius-sm); border: 1px solid; }
.flash--ok { background: var(--ok-soft); color: var(--primary-dark); border-color: color-mix(in oklab, var(--ok) 38%, transparent); }
.flash--err { background: var(--hot-soft); color: color-mix(in oklab, var(--hot) 72%, var(--ink)); border-color: color-mix(in oklab, var(--hot) 38%, transparent); }
.flash--warn { background: var(--warn-soft); color: color-mix(in oklab, var(--warn) 78%, var(--ink)); border-color: color-mix(in oklab, var(--warn) 40%, transparent); }
.flash a { color: inherit; }

.checkbox { display: flex; align-items: center; gap: .5rem; font-size: .92rem; }
.checkbox--big { font-weight: 600; font-size: 1rem; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--primary); }

.weekday-picker { display: flex; gap: .35rem; flex-wrap: wrap; }
.weekday-picker__day { display: flex; flex-direction: column; align-items: center; gap: .2rem; border: 1px solid var(--line); padding: .4rem .55rem; cursor: pointer; font-size: .8rem; font-weight: 600; border-radius: var(--radius-sm); }
.weekday-picker__day input { margin: 0; width: 15px; height: 15px; }

.logo-current { display: flex; align-items: center; gap: 1rem; margin: .5rem 0; }
.logo-current img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.logo-current--wide img { width: 160px; height: 96px; }

/* ---- Admin ---- */
.adminnav { background: var(--surface); border: 1px solid var(--border); margin: 1.6rem 0; border-radius: var(--radius); overflow: hidden; }
.adminnav__cafe { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.adminnav__cafe strong { font-size: 1.05rem; font-family: var(--serif); }
.adminnav__back { font-size: .84rem; color: var(--text-soft); }
.adminnav__view { font-size: .84rem; margin-left: auto; }
.adminnav__tabs { display: flex; flex-wrap: wrap; }
.adminnav__tabs a { padding: .7rem 1.1rem; font-weight: 600; font-size: .91rem; color: var(--text-soft); border-bottom: 2px solid transparent; text-decoration: none; }
.adminnav__tabs a:hover { color: var(--ink); background: var(--surface-2); }
.adminnav__tabs a.is-active { color: var(--ink); border-bottom-color: var(--primary); }
.navbadge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.3em; height: 1.3em;
  padding: 0 .35em; margin-left: .35em; border-radius: 999px; background: var(--primary); color: #fff;
  font-size: .74rem; font-weight: 700; vertical-align: middle;
}

.admin-cards, .overview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 1.1rem; margin-bottom: 1.4rem; }
.admin-card, .overview-tile { background: var(--surface); border: 1px solid var(--border); padding: 1.1rem; border-radius: var(--radius); }
.admin-card__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.admin-card__head h2 { margin: 0; font-size: 1.1rem; }
.admin-card__loc { color: var(--text-soft); font-size: .87rem; margin: .2rem 0 .6rem; }
.admin-card__status { margin-bottom: .6rem; }
.admin-card__stats { list-style: none; padding: 0; margin: 0 0 .8rem; font-size: .87rem; color: var(--text-soft); display: flex; gap: 1rem; flex-wrap: wrap; }
.admin-card__actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.overview-tile h2 { font-size: 1.05rem; font-family: var(--font); font-weight: 700; }
.overview-tile__list { list-style: none; padding: 0; margin: 0 0 .8rem; display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.overview-tile__list span { color: var(--ink); font-weight: 700; margin-left: .3rem; }
.overview-tile__empty { color: var(--text-soft); }

.editor-layout { display: grid; grid-template-columns: 1fr 330px; gap: 1.8rem; align-items: start; padding-bottom: 3.5rem; }
.editor-layout__form textarea { font-family: "SF Mono", "Cascadia Code", Consolas, monospace; font-size: .92rem; }
.editor-layout__help { background: var(--surface-2); border: 1px solid var(--border); padding: 1.1rem; font-size: .89rem; border-radius: var(--radius); }
.editor-layout__help h2 { font-size: .98rem; margin-top: 1.2rem; font-family: var(--font); font-weight: 700; }
.editor-layout__help h2:first-child { margin-top: 0; }
.editor-layout__help h3 { font-size: .88rem; margin: .8rem 0 .2rem; }
.editor-layout__help ul { padding-left: 1.1rem; margin: .4rem 0; }
.editor-layout__help pre { font-size: .8rem; background: var(--surface); }
@media (max-width: 900px) { .editor-layout { grid-template-columns: 1fr; } }

.copyform { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: .9rem; margin-bottom: 1rem; display: flex; flex-direction: column; gap: .5rem; }

.menu-preview { list-style: none; padding: 0; margin: 0 0 .6rem; font-size: .87rem; }
.menu-preview li { padding: .15rem 0; border-bottom: 1px solid var(--border); }

.lunch-preview .lp-set { border: 1px solid var(--border); background: var(--surface); padding: .6rem .7rem; margin-bottom: .6rem; border-radius: var(--radius-sm); }
.lunch-preview .lp-title { display: flex; justify-content: space-between; font-weight: 700; font-size: .9rem; }
.lunch-preview .lp-course { display: flex; gap: .4rem; font-size: .85rem; padding: .1rem 0; }
.lunch-preview .lp-ctype { color: var(--text-soft); min-width: 74px; font-size: .74rem; text-transform: uppercase; }
.lunch-preview .lp-empty { color: var(--text-soft); }

.offer-admin-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.offer-admin-list li { border: 1px solid var(--border); background: var(--surface); padding: .7rem; display: flex; flex-direction: column; gap: .4rem; border-radius: var(--radius-sm); }
.offer-admin-list li.is-editing { border-color: var(--primary); }
.offer-admin-list__actions { display: flex; gap: .5rem; }

.mappick__toolbar { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; flex-wrap: wrap; }
.mappick__hint, .mappick__coords { font-size: .83rem; color: var(--text-soft); }
.mappick__coords { margin: .4rem 0 0; }

/* ---- About / prose ---- */
.prose { background: var(--surface); border: 1px solid var(--border); padding: 1.7rem; border-radius: var(--radius); }
.prose h2 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose__note { color: var(--text-soft); font-size: .87rem; border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 1.6rem; }

.errbox { text-align: center; padding: 3.5rem 1rem; }

/* ---- Legal pages, consent, account ---- */
.legal h2 { scroll-margin-top: calc(var(--header-h) + 16px); }
.legal h3 { margin: 1.3rem 0 .4rem; font-size: 1rem; }
.legal li { margin-bottom: .5rem; }
.legal em { color: var(--text-soft); }
.legal__toc { display: flex; flex-direction: column; gap: .3rem; padding: .9rem 1.1rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); font-size: .93rem; }
.legal__tablewrap { overflow-x: auto; margin: .6rem 0 1rem; }
.legal__table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .9rem; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: .6rem .7rem; border: 1px solid var(--border); }
.legal__table th { background: var(--surface-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); }
.legal__table small { color: var(--text-soft); }

.consent { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); padding: .85rem 1rem; }
.consent .checkbox { align-items: flex-start; line-height: 1.45; }
.consent .checkbox input { flex: none; margin-top: .2rem; }
.consent__note { margin: .5rem 0 0; font-size: .84rem; color: var(--text-soft); }
.sidecard .consent__note { margin: 0; }

.ownerbox {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.4rem;
  padding: 1rem 1.1rem; margin-bottom: 1.4rem; border: 1px solid color-mix(in oklab, var(--primary) 40%, transparent);
  border-radius: var(--radius); background: var(--primary-soft);
}
.ownerbox > div { flex: 1 1 280px; }
.ownerbox p { margin: .2rem 0 0; font-size: .9rem; color: var(--text-soft); }
.ownerbox form { margin: 0; }

.account-box { margin: 1.1rem 0 0; display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; }
.account-box h2 { margin: 0; font-family: var(--font); font-weight: 700; font-size: 1rem; }
.account-box p { margin: 0; font-size: .92rem; color: var(--text-soft); }
.account-box .field { width: 100%; max-width: 320px; }
.account-box--danger { border-color: color-mix(in oklab, var(--hot) 45%, transparent); }
.btn--danger-solid { background: var(--hot); border-color: var(--hot); color: #fff; }
.btn--danger-solid:hover { background: color-mix(in oklab, var(--hot) 84%, #000); border-color: transparent; color: #fff; }
.home-flash { margin-top: 1.4rem; }
.home-flash .flash { margin-bottom: 0; }
/* favourites */
.lcard { position: relative; }
.fav-btn {
  position: absolute; top: .7rem; right: .7rem; z-index: 2; width: 38px; height: 38px;
  display: grid; place-items: center; cursor: pointer; font-size: 1.2rem; line-height: 1;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--line);
  box-shadow: 0 2px 8px -4px rgba(0, 0, 0, .35);
}
.fav-btn:hover { color: var(--h-soup); border-color: var(--h-soup); }
.fav-btn[aria-pressed="true"] { color: var(--h-soup); border-color: var(--h-soup); }
.fav-btn--text {
  position: static; width: auto; height: auto; display: inline-flex; gap: .35rem; align-items: center;
  font: inherit; font-size: .85rem; font-weight: 700; padding: .2rem .65rem; border-radius: var(--radius); box-shadow: none; color: var(--text-soft);
}
.fav-btn--text[aria-pressed="true"] { background: color-mix(in oklab, var(--h-soup) 12%, var(--surface)); }
.lcard:not(.lcard--photo) .lcard__row { padding-right: 2.6rem; }
.favs { margin-top: 2rem; }
.favs__star { color: var(--h-soup); }
.favs__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); gap: 0 1.4rem; }
.favs__none { font-size: .9rem; color: var(--text-soft); margin: 0 0 .5rem; }
.nearby-list { margin-top: 1.4rem; }
button.picks__more { cursor: pointer; font: inherit; font-size: .86rem; font-weight: 700; }
.dash-account { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .92rem; color: var(--text-soft); }

.cookie-note {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem;
  background: var(--surface); border: 1px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-card);
}
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0; font-size: .88rem; }
@media (max-width: 480px) { .cookie-note { flex-direction: column; align-items: stretch; } }

/* ---- CTA band (events + businesses), above the footer ---- */
.cta-band { margin-top: 3rem; padding: 2.6rem 0; border-top: 1px solid var(--border); background: var(--surface-2); }
.cta-band__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.cta-card {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: .9rem 1.1rem;
  padding: 1.5rem 1.6rem; border-radius: var(--radius-lg); text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.cta-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: var(--ink); }
.cta-card__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--primary-soft); color: var(--primary-dark);
}
.cta-card__body { display: flex; flex-direction: column; gap: .3rem; }
.cta-card__kicker { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary-dark); }
.cta-card__title { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.cta-card__text { font-size: .92rem; color: var(--text-soft); }
.cta-card__go {
  grid-column: 2; display: inline-flex; align-items: center; gap: .4rem; justify-self: start;
  font-weight: 700; font-size: .9rem; color: var(--primary-dark);
}
.cta-card__go .ico { transition: transform .14s ease; }
.cta-card:hover .cta-card__go .ico { transform: translateX(3px); }
.cta-card--biz { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cta-card--biz:hover { color: var(--bg); border-color: var(--ink); }
.cta-card--biz .cta-card__icon { background: color-mix(in oklab, var(--bg) 12%, transparent); color: var(--bg); }
.cta-card--biz .cta-card__kicker, .cta-card--biz .cta-card__go { color: color-mix(in oklab, var(--primary) 55%, var(--bg)); }
.cta-card--biz .cta-card__text { color: color-mix(in oklab, var(--bg) 72%, transparent); }
@media (max-width: 800px) {
  .cta-band__inner { grid-template-columns: 1fr; }
  .cta-card { padding: 1.2rem; }
}

/* ---- Footer ---- */
.site-footer { background: var(--surface); border-top: 3px double var(--ink); }
.cta-band + .site-footer { margin-top: 0; }
main + .site-footer { margin-top: 3rem; }
.site-footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 1.6rem 3rem; padding: 2.4rem 24px 1.6rem; align-items: start; }
.site-footer__brand p { margin: .7rem 0 0; color: var(--text-soft); font-size: .9rem; max-width: 36ch; }
.brand--footer { font-size: 1.25rem; }
.brand--footer .brand__mark { width: 28px; height: 28px; }
.site-footer__col { display: flex; flex-direction: column; gap: .4rem; font-size: .92rem; }
.site-footer__col a { color: var(--ink); text-decoration: none; }
.site-footer__col a:hover { color: var(--primary); text-decoration: underline; }
.site-footer__head { margin: 0 0 .3rem; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }
.site-footer__copy { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 1rem; margin: .4rem 0 0; color: var(--text-soft); font-size: .84rem; }
@media (max-width: 640px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* ---- Leaflet ---- */
.leaflet-popup-content { font: inherit; font-size: .9rem; }
.leaflet-popup-content b { color: var(--primary-dark); }
.map--side .leaflet-container, .map--pick .leaflet-container { border-radius: var(--radius); }
.map-pop__link { font-weight: 600; }
.map-pop__sets { margin: .3rem 0; }
/* darken the light OSM tiles in dark mode so the map blends in */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .leaflet-tile { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9); }
  :root:not([data-theme="light"]) .leaflet-container { background: #2b2619; }
}
:root[data-theme="dark"] .leaflet-tile { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9); }
:root[data-theme="dark"] .leaflet-container { background: #2b2619; }

/* ---- Anti-spam slazds (neredzams cilvēkiem, bez display:none, ko boti bieži pārbauda) ---- */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* "tava atrašanās vieta" atzīme kartē */
.pin-me { background: none; border: none; }
.pin-me svg { display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .lcard:hover, .cafe-tile:hover { transform: none; }
  .lcard:hover .lcard__banner img, .cafe-tile:hover img.cafe-tile__photo { transform: none; }
}

/* ---- content hue for the "Ēdnīca" type chip inside mini cards ---- */
.pmini .lcard__type { font-size: .68rem; }
