/* Grafarvogur – viðburðir. Mobile-first, no framework. */
:root {
  --bg: #F4F7F6; --surface: #FFFFFF; --surface-2: #E9EFEE; --border: #D9E2E1;
  --ink: #1D2A33; --muted: #56656C; --teal: #0F5E6B; --teal-ink: #FFFFFF;
  --lupine: #5B3FD0; --lupine-ink: #FFFFFF; --sun: #F5C04A;
  --open: #1E7A46; --soon: #8A5A00; --closed: #B3261E;
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-full: 999px;
  --shadow: 0 8px 28px rgb(29 42 51 / .14), 0 1px 3px rgb(29 42 51 / .10);
  --font-d: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 16px; --max: 1200px; --nav-h: 64px; --top-h: 60px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1A20; --surface: #17242B; --surface-2: #213139; --border: #2C3D45;
    --ink: #E8EEEE; --muted: #A2B1B6; --teal: #6FC7C9; --teal-ink: #0B1416;
    --lupine: #A99AF5; --lupine-ink: #120B2E; --sun: #F5C04A;
    --open: #6BCB8E; --soon: #F2B544; --closed: #FF8A80;
    --shadow: 0 8px 28px rgb(0 0 0 / .45);
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) [style*="--cd"] { --c: var(--cd); }
}
:root[data-theme="dark"] {
  --bg: #0F1A20; --surface: #17242B; --surface-2: #213139; --border: #2C3D45;
  --ink: #E8EEEE; --muted: #A2B1B6; --teal: #6FC7C9; --teal-ink: #0B1416;
  --lupine: #A99AF5; --lupine-ink: #120B2E; color-scheme: dark;
}
:root[data-theme="dark"] [style*="--cd"] { --c: var(--cd); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + var(--bar-h, 0px) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.5 var(--font); hyphens: auto;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: var(--r-sm); }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.i { width: 22px; height: 22px; flex: none; }
.i-s { width: 18px; height: 18px; }

/* ---------- header + nav ---------- */
.top { position: sticky; top: 0; z-index: 40; isolation: isolate; }
.top::before { content: ''; position: absolute; inset: 0; z-index: -1; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.top-in { max-width: var(--max); margin: 0 auto; height: var(--top-h); padding: 0 var(--gutter); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; font: 800 1.3rem/1 var(--font-d); letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; color: var(--teal); }
/* Mobile: bottom bar with the daily destinations + "Meira". */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--border);
}
.nav > a, .nav-more > summary { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); text-decoration: none; font-size: .75rem; font-weight: 650; min-height: 44px; position: relative; }
.nav > a[aria-current="page"], .nav-more[data-current] > summary { color: var(--teal); }
.nav > a[aria-current="page"]::before { content: ''; position: absolute; top: 0; left: 50%; width: 32px; height: 3px; margin-left: -16px; border-radius: 0 0 3px 3px; background: var(--teal); }
.nav > a[aria-current="page"] .i { stroke-width: 2.3; }
.nav .nav-s { display: none; }
.nav-more { display: flex; }
.nav-more > summary { flex: 1; list-style: none; cursor: pointer; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more[open] > summary { color: var(--ink); }
.more-pop { position: fixed; right: 10px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px); z-index: 51; display: grid; min-width: 232px; padding: 6px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); animation: pop-in .16s var(--ease); }
.more-pop a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: var(--r-md); color: var(--ink); text-decoration: none; font-weight: 600; }
.more-pop a:hover { background: var(--surface-2); }
.more-pop a .i { color: var(--teal); }
.more-pop a[aria-current="page"] { background: color-mix(in oklab, var(--teal) 12%, transparent); }
.more-langs { display: flex; gap: 4px; margin: 4px 0 0; padding: 8px 6px 2px; border-top: 1px solid var(--border); }
.more-langs a { flex: 1; justify-content: center; min-height: 44px; padding: 0 6px; font-size: .88rem; color: var(--muted); }
.more-langs a[aria-current] { color: var(--ink); background: var(--surface-2); }
@keyframes pop-in { from { opacity: 0; transform: translateY(6px); } }
.top .btn-add { display: none; }
.langs { margin-left: auto; display: flex; gap: 2px; padding: 3px; border-radius: var(--r-full); background: var(--surface-2); }
.langs a { display: grid; place-items: center; min-width: 40px; min-height: 40px; border-radius: var(--r-full); color: var(--muted); text-decoration: none; font: 700 .78rem/1 var(--font); letter-spacing: .06em; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.langs a:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }

/* Desktop: daily destinations as pills, occasional ones quieter, "Bæta við" as an outlined button. */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .nav { position: static; display: flex; align-items: center; gap: 2px; height: auto; padding: 0; background: none; border: 0; margin-left: 8px; flex: 1; }
  .nav > a { flex-direction: row; gap: 7px; min-height: 42px; font-size: .97rem; padding: 0 14px; border-radius: var(--r-full); color: var(--ink); }
  .nav > a[aria-current="page"]::before { content: none; }
  .nav > a:hover { background: var(--surface-2); }
  .nav > a[aria-current="page"] { background: color-mix(in oklab, var(--teal) 12%, transparent); color: var(--teal); }
  .nav .nav-s { display: flex; color: var(--muted); font-size: .9rem; font-weight: 600; padding: 0 11px; gap: 6px; }
  .nav .nav-s:not(.nav-s ~ .nav-s) { margin-left: auto; }
  .nav-more { display: none; }
  .langs { margin-left: 0; }
  .top .btn-add { display: inline-flex; min-height: 42px; padding: 0 14px; border-radius: var(--r-full); border: 1.5px solid color-mix(in oklab, var(--lupine) 45%, var(--border)); color: var(--lupine); background: transparent; }
  .top .btn-add:hover { background: color-mix(in oklab, var(--lupine) 9%, transparent); }
  .top .btn-add[aria-current="page"] { background: color-mix(in oklab, var(--lupine) 12%, transparent); }
}
@media (min-width: 1024px) and (max-width: 1180px) { .nav .nav-s .i { display: none; } .nav > a { padding: 0 9px; gap: 5px; } .nav .nav-s { padding: 0 7px; } .top-in { gap: 10px; } }
@media (min-width: 1024px) { .top .btn-add { white-space: nowrap; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .12s, transform .12s;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--teal); color: var(--teal-ink); border-color: transparent; }
.btn-primary:hover { background: color-mix(in oklab, var(--teal) 86%, black); }
.btn-ghost { background: transparent; }
.btn-lg { min-height: 52px; font-size: 1.05rem; padding: 12px 22px; }

/* ---------- hero + search ---------- */
.hero { max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) 8px; }
.h1 { font: 800 clamp(2rem, 1.3rem + 3.6vw, 3.6rem)/1.02 var(--font-d); letter-spacing: -.035em; margin: 0 0 10px; text-wrap: balance; }
.hero-sm .h1 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.9rem); }
.h2 { font: 700 1.35rem/1.2 var(--font-d); letter-spacing: -.02em; margin: 32px 0 12px; }
.h3 { font: 700 1.1rem/1.25 var(--font-d); margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.lede { color: var(--muted); font-size: 1.08rem; margin: 0 0 18px; max-width: 60ch; }

.search { position: relative; display: flex; align-items: center; max-width: 680px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-full); padding: 4px 6px 4px 46px; box-shadow: 0 1px 2px rgb(29 42 51 / .05); transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in oklab, var(--teal) 18%, transparent); }
.search .s-ic { position: absolute; left: 16px; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; height: 44px; font-size: 1.05rem; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.s-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; min-width: 40px; justify-content: center; border: 0; border-radius: var(--r-full); background: none; color: var(--muted); cursor: pointer; padding: 0 10px; font-weight: 600; font-size: .9rem; }
.s-btn:hover { background: var(--surface-2); color: var(--ink); }
.s-btn.ai { background: color-mix(in oklab, var(--lupine) 12%, transparent); color: var(--lupine); }
.mic.listening { background: var(--closed); color: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px color-mix(in oklab, var(--closed) 20%, transparent); } }

/* ---------- sticky filter bar ---------- */
/* Sticks under the header; on small screens it tucks away while scrolling down (common.js) and returns on scroll up. */
.bar { position: sticky; top: var(--top-h); z-index: 30; background: color-mix(in oklab, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, transform .22s var(--ease), opacity .18s; }
.bar.stuck { border-bottom-color: var(--border); }
.bar.tuck { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.bar > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.strip, .cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px var(--gutter); scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); }
.strip::-webkit-scrollbar, .cats::-webkit-scrollbar { display: none; }
.strip { padding-bottom: 2px; }
.day {
  flex: none; scroll-snap-align: start; display: grid; justify-items: center; align-content: center; gap: 1px;
  min-width: 50px; height: 60px; padding: 5px 8px; border: 1.5px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); cursor: pointer; transition: background .15s, border-color .15s;
}
.day .d-w { font-size: .72rem; font-weight: 600; color: var(--muted); }
.day .d-n { font: 700 1.25rem/1 var(--font-d); font-variant-numeric: tabular-nums; }
.day.wknd .d-w { color: var(--teal); }
.day-rng { min-width: 74px; }
.day-rng .d-n { font-size: 1rem; }
.day-all { margin-right: 6px; }
.dots { display: flex; gap: 3px; height: 5px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); opacity: .7; }
.day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.day[aria-pressed="true"] .d-w, .day[aria-pressed="true"].wknd .d-w { color: inherit; opacity: .8; }
.day[aria-pressed="true"] .dots i { background: var(--sun); opacity: 1; }
.day.today:not([aria-pressed="true"]) { border-color: var(--teal); }
.day.past { display: none; }

.bar-row { display: flex; align-items: center; gap: 8px; }
/* Collapsed: only complete shortcuts (common.js fitChips hides any that would be cut off, zero-result ones and
   panel-only choices). "Flokkar og síur" opens the full panel: every option, grouped, with counts. */
.bar-row .cats { position: relative; flex: 1; min-width: 0; padding-right: 0; }
.bar:not(.open) .bar-row .cats { overflow: hidden; scroll-snap-type: none; }
.bar:not(.open) .cats > .nofit, .bar:not(.open) .cats > [data-panel], .bar:not(.open) .cats > .chip.zero:not([aria-pressed="true"]), .bar:not(.open) .cats > .chip-sep { display: none; }
.chip-lbl { flex: 1 1 100%; margin: 6px 0 -2px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.chip-lbl:first-child { margin-top: 0; }
.fl-short { display: none; }
@media (max-width: 439px) { .fl-long { display: none; } .fl-short { display: inline; } }
.bar.open .bar-row { flex-wrap: wrap; justify-content: flex-end; }
.bar.open .bar-row .cats { order: 2; flex: 1 1 100%; flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; padding-top: 0; padding-right: var(--gutter); }
.bar.open .bar-row > .filt-btn:not(:last-child) { margin-left: var(--gutter); margin-right: auto; }
body.searching .board, body.searching .feed-head .lede { display: none; }
@media (max-width: 1023px) { .bar.open { position: relative; top: 0; } }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 13px 6px 10px;
  border: 1.5px solid var(--border); border-radius: var(--r-full); background: var(--surface); cursor: pointer;
  font-size: .92rem; font-weight: 600; white-space: nowrap; color: var(--ink); transition: background .15s, border-color .15s;
}
.chip:not(:has(.i)) { padding-left: 13px; }
.chip .i { color: var(--c, var(--teal)); }
.chip:hover { border-color: var(--c, var(--teal)); }
.chip[aria-pressed="true"], .chip:has(input:checked) { background: var(--c, var(--teal)); border-color: var(--c, var(--teal)); color: var(--bg); }
.chip[aria-pressed="true"] .i, .chip:has(input:checked) .i { color: inherit; }
.chip .n { display: none; font-weight: 500; opacity: .7; font-variant-numeric: tabular-nums; }
.bar.open .chip .n:not(:empty) { display: inline; }
.chip.zero { opacity: .45; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.chip:has(input:focus-visible) { outline: 3px solid var(--sun); outline-offset: 2px; }
.chip-sep { flex: none; width: 1px; align-self: stretch; margin: 6px 2px; background: var(--border); }
.bar.open .chip-sep { flex-basis: 100%; height: 0; margin: 0; background: none; }
/* Date picker: only in the expanded panel. */
.chip-date { display: none; cursor: default; }
.bar.open .chip-date { display: inline-flex; }
.chip-date input { position: static; opacity: 1; pointer-events: auto; border: 0; background: none; min-height: 32px; color: var(--ink); }
.filt-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 12px; margin: 8px 0; border: 1.5px solid var(--border); border-radius: var(--r-full); background: var(--surface); color: var(--ink); font-weight: 650; font-size: .92rem; cursor: pointer; }
.filt-btn:hover { border-color: var(--teal); }
.filt-btn[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filt-n { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--r-full); background: var(--lupine); color: var(--lupine-ink); font-size: .75rem; }
.bar-row > .filt-btn:last-child { margin-right: var(--gutter); }
.cats.wrap { flex-wrap: wrap; overflow: visible; padding: 0; }
.view { flex: none; display: flex; padding: 3px; margin-right: var(--gutter); background: var(--surface-2); border-radius: var(--r-full); }
.vbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 38px; padding: 0 12px; border: 0; border-radius: var(--r-full); background: none; cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--muted); }
.vbtn[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
@media (max-width: 599px) { .vbtn span { display: none; } .vbtn { padding: 0 10px; } }
@media (pointer: coarse) { .chip { min-height: 44px; } .vbtn { height: 44px; } .view { padding: 2px; } }

/* ---------- list ---------- */
.split { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 40px; }
.status { margin: 12px 0 2px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.status:empty { display: none; }
.dgroup { margin-top: 10px; }
.dgroup + .dgroup { margin-top: 22px; }
.dhead { position: sticky; top: calc(var(--top-h) + var(--bar-h, 0px) - 1px); z-index: 5; transition: top .22s var(--ease); display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 10px 0 8px; background: var(--bg); font: 800 clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem)/1.1 var(--font-d); letter-spacing: -.03em; }
.dh-date { font: 600 .9rem/1 var(--font); color: var(--muted); letter-spacing: 0; }
.dh-date.dup { display: none; }
.evs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ev-link {
  position: relative; display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 12px;
  padding: 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border);
  color: var(--ink); text-decoration: none; overflow: hidden; transition: border-color .15s, transform .12s;
}
.ev-link:hover { border-color: var(--c); text-decoration: none; }
.ev-link:active { transform: scale(.995); }
.ev-time { display: grid; font: 700 1.08rem/1.1 var(--font-d); font-variant-numeric: tabular-nums; }
.ev-time small { font: 500 .78rem/1.3 var(--font); color: var(--muted); }
.ev-body { display: grid; gap: 3px; min-width: 0; }
.ev-title { font-weight: 650; font-size: 1.04rem; line-height: 1.3; overflow-wrap: anywhere; }
.ev-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; color: var(--muted); font-size: .9rem; }
.ev-meta .i { color: var(--muted); width: 15px; height: 15px; }
.free { margin-left: 4px; padding: 1px 8px; border-radius: var(--r-full); background: color-mix(in oklab, var(--open) 14%, transparent); color: var(--open); font-weight: 700; font-size: .78rem; }
.ev-cat { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in oklab, var(--c) 13%, var(--surface)); color: var(--c); }
/* With a picture the icon becomes a small rounded photo tile; the icon stays underneath as the fallback. */
.ev-cat.has-th { position: relative; width: 48px; height: 48px; border-radius: var(--r-md); overflow: hidden; }
.ev-th { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--surface); }
.ev-cat.has-th::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 8%, transparent); pointer-events: none; }
@media (min-width: 480px) { .ev-cat.has-th { width: 56px; height: 56px; } }
/* Phones: tighter time column and spacing so a thumbnail doesn't cost the title its width. */
@media (max-width: 479px) { .ev-link { grid-template-columns: 52px 1fr auto; gap: 10px; padding-left: 12px; } .ev:has(> .sv) .ev-link { padding-right: 42px; } .ev > .sv { right: 0; } }
@media (min-width: 760px) { .ev-cat.has-th { width: 72px; height: 72px; } }
.evs.compact .ev-cat.has-th { width: 48px; height: 48px; }
.ev-venue { display: inline-flex; align-items: flex-start; gap: 4px; min-width: 0; }
.ev-venue .i { flex: none; margin-top: 2px; }
.ev.hl .ev-link { border-color: var(--c); box-shadow: 0 0 0 2px color-mix(in oklab, var(--c) 30%, transparent); }
.evs.compact .ev-link { padding: 10px 12px; }
/* Eligibility ("15 ára og eldri, skriflegt samþykki foreldris"): compact on rows, prominent on the event page. */
.elig { display: flex; align-items: flex-start; gap: 5px; font-size: .86rem; font-weight: 650; color: var(--soon); line-height: 1.35; }
.elig .i { width: 15px; height: 15px; margin-top: 1px; flex: none; }
.elig-s { color: var(--board-hi); }
.elig-fact { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; padding: 12px 14px; border-radius: var(--r-md); background: color-mix(in oklab, var(--soon) 12%, var(--surface)); border: 1px solid color-mix(in oklab, var(--soon) 35%, var(--border)); color: var(--ink); }
.elig-fact .i { color: var(--soon); margin-top: 1px; }


.regular { margin-top: 40px; }
.reg { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.reg a, .reg > li > span { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); color: var(--ink); text-decoration: none; }
.reg span span, .reg a span { color: var(--muted); font-size: .9rem; }

html.bar-tucked .dhead { top: calc(var(--top-h) - 1px); }
.empty { text-align: center; padding: 36px 16px; border: 2px dashed var(--border); border-radius: var(--r-lg); margin-top: 20px; }
.empty-t { font: 700 1.3rem/1.2 var(--font-d); margin: 0 0 4px; }
.empty-why { margin: 0 0 16px; color: var(--muted); font-weight: 600; }
.empty-why:empty { display: none; }
.empty-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; }
.empty .muted { margin: 0; font-size: .95rem; }
.more-all-wrap { margin: 16px 0 0; text-align: center; }
.more-all { width: 100%; max-width: 420px; }

/* ---------- home: "Í dag" board ---------- */
/* The one loud surface on the site: a deep-teal board that answers "what now?" before the long feed. */
:root { --board: #0F5E6B; --board-ink: #FFFFFF; --board-muted: rgb(255 255 255 / .74); --board-line: rgb(255 255 255 / .16); --board-hi: #F5C04A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --board: #12404A; --board-line: rgb(255 255 255 / .12); } }
:root[data-theme="dark"] { --board: #12404A; --board-line: rgb(255 255 255 / .12); }
.hero-home { padding-top: 14px; }
.hero-home .h1 { font-size: clamp(1.65rem, 1.15rem + 2.5vw, 2.7rem); margin-bottom: 12px; }
@media (min-width: 1024px) {
  .hero-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 480px); align-items: end; gap: 32px; padding-top: 24px; }
  .hero-home .h1 { margin: 0; }
}
.board { max-width: var(--max); margin: 8px auto 0; padding: 0 var(--gutter); }
.board-in { border-radius: var(--r-lg); background: var(--board); color: var(--board-ink); padding: 14px 16px 6px; }
.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 4px; }
.board-date { margin: 0; font: 800 1.3rem/1.15 var(--font-d); letter-spacing: -.02em; }
.board-dm { color: var(--board-muted); font-weight: 650; }
.board-clock { font: 600 .88rem/1 var(--font); color: var(--board-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.board-grid { display: grid; gap: 4px 32px; }
@media (min-width: 760px) { .board-grid { grid-template-columns: 1fr 1fr; } .board-in { padding: 18px 22px 10px; } }
.bcol { min-width: 0; }
.bcol-h { display: flex; align-items: center; gap: 7px; margin: 10px 0 2px; font: 650 .9rem/1.2 var(--font); color: var(--board-muted); }
.bcol-h .i { width: 16px; height: 16px; }
.bl { list-style: none; margin: 0; padding: 0; }
.bl > li > a { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: start; gap: 10px; min-height: 48px; padding: 9px 0; border-top: 1px solid var(--board-line); color: inherit; text-decoration: none; }
.bl > li:first-child > a { border-top: 0; }
.bl > li > a:hover strong { text-decoration: underline; text-underline-offset: .15em; }
.bl > li > a:focus-visible { outline-color: var(--board-hi); }
.bl-when { display: grid; gap: 1px; font: 700 1.05rem/1.15 var(--font-d); color: var(--board-hi); font-variant-numeric: tabular-nums; }
.bl-day { font: 650 .74rem/1.2 var(--font); color: var(--board-muted); }
.bl-day:empty { display: none; }
.bl-next li.live .bl-day { justify-self: start; padding: 1px 7px; border-radius: var(--r-full); background: var(--board-hi); color: #1D2A33; font-weight: 750; }
.bl-main { display: grid; gap: 1px; min-width: 0; }
.bl-main strong, .bl .oft-main strong { font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.bl-meta { color: var(--board-muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-empty { margin: 6px 0 4px; color: var(--board-muted); }
.bl-more { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--board-ink); font-weight: 650; font-size: .92rem; text-underline-offset: .2em; }
.bl-more .i { width: 16px; height: 16px; opacity: .8; }
/* Labelled ways on: the programme, all deals, what's open. One row of pills under the two columns. */
.board-links { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 6px 0 8px; padding-top: 10px; border-top: 1px solid var(--board-line); }
.board-links .bl-more { padding: 0 14px; border-radius: var(--r-full); background: rgb(255 255 255 / .1); text-decoration: none; }
.board-links .bl-more:hover { background: rgb(255 255 255 / .17); }
/* Phones: two events and at most two deals; the third of each joins on wider screens. */
@media (max-width: 759px) { .bl > li[data-extra] { display: none; } .board-links { gap: 6px; } .board-links .bl-more { flex: 1 1 auto; justify-content: center; padding: 0 11px; font-size: .86rem; gap: 5px; } }
/* Deal rows inside the board reuse .oft markup. */
.bl-deals .oft > a { grid-template-columns: minmax(0, 1fr) auto; }
.bl-deals .oft-meta { color: var(--board-muted); }
.bl-deals .oft-cond { color: var(--board-ink); opacity: .9; }
.bl-deals .oft-price { color: var(--board-hi); }
.bl-deals .av[data-state] { background: rgb(255 255 255 / .13); color: var(--board-ink); }
.bl-deals .av[data-state="now"] { background: var(--board-hi); color: #1D2A33; }
.board-open .dot { width: 8px; height: 8px; border-radius: 50%; background: #6BCB8E; box-shadow: 0 0 0 3px rgb(107 203 142 / .25); }
.feed-head { max-width: var(--max); margin: 0 auto; padding: 8px var(--gutter) 0; scroll-margin-top: calc(var(--top-h) + 8px); }
.feed-head .h2 { margin: 22px 0 2px; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); }
.feed-head .lede { font-size: .98rem; margin: 0; }

/* ---------- map ---------- */
.mapcol { position: relative; }
.map { height: calc(100dvh - var(--top-h) - 150px - var(--nav-h)); min-height: 360px; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); margin-top: 12px; }
.map-mode .listcol { display: none; }
@media (min-width: 1024px) {
  .split.has-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .map-mode .listcol { display: block; }
  .mapcol { position: sticky; top: calc(var(--top-h) + 150px); align-self: start; }
  .map { height: calc(100dvh - var(--top-h) - 170px); }
  .split.has-map .dhead { position: static; }
}
.pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c, var(--teal)); border: 2.5px solid #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .3); display: grid; place-items: center; }
.pin b { transform: rotate(45deg); color: #fff; font: 700 .78rem/1 var(--font); }
.leaflet-popup-content { font: 400 .95rem/1.4 var(--font); margin: 12px 14px; }
.leaflet-popup-content a { font-weight: 600; }
.pop-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; max-height: 220px; overflow: auto; }
.pop-list small { color: #56656C; display: block; }

/* ---------- detail ---------- */
.detail { max-width: 760px; margin: 0 auto; padding: 12px var(--gutter) 48px; }
.back { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 14px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.back:hover { color: var(--ink); }
.d-hero { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.d-date { display: grid; justify-items: center; width: 68px; padding: 8px 0 10px; border-radius: var(--r-md); background: var(--c); color: #fff; }
.dd-m { font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.dd-d { font: 800 2rem/1 var(--font-d); }
.d-title { font-size: clamp(1.8rem, 1.3rem + 2.6vw, 2.8rem); margin-top: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: var(--r-full); background: color-mix(in oklab, var(--c, var(--teal)) 13%, var(--surface)); color: var(--c, var(--teal)); font-weight: 700; font-size: .82rem; }
.d-img { width: 100%; border-radius: var(--r-lg); margin: 18px 0 4px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.facts { display: grid; gap: 14px; margin: 22px 0; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.facts div { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.facts dt { color: var(--teal); padding-top: 1px; }
.facts dd { margin: 0; }
.facts:empty { display: none; }
[data-reldate]:not(:empty)::before { content: ' · '; color: var(--muted); }
[data-reldate] { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
@media (max-width: 599px) {
  .actions .btn-primary { flex: 1 1 100%; }
  .actions .btn { flex: 1 1 auto; }
}
.prose { max-width: 65ch; font-size: 1.05rem; }
.prose p { margin: 0 0 1em; }
.prose.narrow { margin: 0 auto; padding: 0 var(--gutter) 40px; max-width: calc(65ch + 2 * var(--gutter)); }
.minimap { position: relative; display: block; margin: 24px 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); aspect-ratio: 8 / 3; border: 1px solid var(--border); }
.tiles { position: absolute; inset: 0; overflow: hidden; }
.tiles img { position: absolute; width: 256px; height: 256px; max-width: none; }
.tile-pin { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -26px 0 0 -13px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c, var(--teal)); border: 3px solid #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .35); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tiles img { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9); } }
.minimap span { position: absolute; right: 10px; bottom: 10px; display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; border-radius: var(--r-full); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); }
.src { font-size: .9rem; margin-top: 32px; }
.more .h2 { font-size: 1.15rem; }

.hours { border-collapse: collapse; width: 100%; max-width: 420px; }
.hours th, .hours td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.hours th { font-weight: 500; color: var(--muted); }
.hours tr.today th, .hours tr.today td { color: var(--ink); font-weight: 700; }

/* Place page: business photo, today's hours with the week on demand, jump links. */
.p-hero { aspect-ratio: 2 / 1; max-height: 340px; margin: 0 0 16px; }
@media (max-width: 599px) { .p-hero { aspect-ratio: 3 / 1; margin-bottom: 12px; } .place .d-title { font-size: 2rem; margin-bottom: 6px; } }
.p-intro { font-size: 1rem; margin-bottom: 14px; }
/* Place actions: directions, call and menu up front; save, share and website as a quieter second row. */
.p-acts { margin-bottom: 8px; }
.p-acts .btn { flex: 1 1 0; min-width: max-content; }
@media (max-width: 599px) { .p-acts .btn-primary { flex: 1 1 100%; } }
.ph-n { display: none; }
@media (min-width: 600px) { .ph-l { display: none; } .ph-n { display: inline; } }
.acts-2 { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; }
.acts-2 .btn { min-height: 44px; padding: 8px 12px; border-color: transparent; background: transparent; color: var(--muted); font-size: .9rem; }
.acts-2 .btn:hover { background: var(--surface-2); color: var(--ink); }
.acts-2 .sv-b[aria-pressed="true"] { color: var(--lupine); }
.place .more:first-of-type .h2 { margin-top: 8px; }
.hrs { margin: 4px 0 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); }
.hrs > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; cursor: pointer; list-style: none; }
.hrs > summary::-webkit-details-marker { display: none; }
.hrs-l { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.hrs-today { font-variant-numeric: tabular-nums; }
.hrs-more { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; color: var(--teal); font-weight: 650; font-size: .92rem; }
.hrs-more .i { transition: transform .15s; }
.hrs[open] .hrs-more .i { transform: rotate(180deg); }
.hrs .hours { margin: 0 14px 12px; width: calc(100% - 28px); }
.hrs > p { margin: 0 14px 12px; }
.hrs-none { display: flex; align-items: center; gap: 8px; margin: 4px 0 18px; }
.jump { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 4px; }
.jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-full); background: var(--surface-2); color: var(--ink); font-weight: 650; font-size: .92rem; text-decoration: none; }
.jump a:hover { background: color-mix(in oklab, var(--teal) 12%, var(--surface-2)); }
.place .more { scroll-margin-top: calc(var(--top-h) + 12px); }
.place .facts { margin-top: 28px; }

/* ---------- places ---------- */
.pls { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.split.has-map .pls { grid-template-columns: 1fr; }
/* Name, address and status share one flexible column (nothing truncated); the bookmark sits at the edge. */
.pl a { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); color: var(--ink); text-decoration: none; height: 100%; }
.pl a:hover { border-color: var(--teal); }
.pl-ic { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); overflow: hidden; background: color-mix(in oklab, var(--teal) 11%, var(--surface)); color: var(--teal); }
.pl-ic .thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--surface); }
.hrs-unk { font-size: .8rem; color: var(--muted); }
.pl-body { display: grid; gap: 2px; min-width: 0; }
.pl-name { font-weight: 650; }
.pl-meta { color: var(--muted); font-size: .88rem; line-height: 1.35; }
.pl-side { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 3px; }
.pl-side:empty { display: none; }
.rating { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: .88rem; }
.rating .i { color: #E3A008; fill: #E3A008; }
.open-badge { padding: 2px 9px; border-radius: var(--r-full); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.open-badge.is-open { background: color-mix(in oklab, var(--open) 14%, transparent); color: var(--open); }
.open-badge.is-soon { background: color-mix(in oklab, var(--soon) 14%, transparent); color: var(--soon); }
.open-badge.is-closed { background: color-mix(in oklab, var(--closed) 11%, transparent); color: var(--closed); }

/* ---------- year ---------- */
.mjump { position: sticky; top: var(--top-h); z-index: 20; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: var(--max); margin: 0 auto; padding: 8px var(--gutter) 10px; background: var(--bg); }
.mjump::-webkit-scrollbar { display: none; }
.mjump a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: var(--r-full); border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 650; text-transform: capitalize; }
.mjump a:hover { border-color: var(--teal); }
.mjump a[aria-current] { background: var(--teal); border-color: var(--teal); color: var(--teal-ink); }
.mjump b { font-weight: 600; font-size: .8rem; opacity: .65; font-variant-numeric: tabular-nums; }
.year { list-style: none; max-width: var(--max); margin: 8px auto 48px; padding: 0 var(--gutter); display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.month { padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); scroll-margin-top: calc(var(--top-h) + 72px); }
.month.now { border: 2px solid var(--teal); }
.m-name { display: flex; align-items: center; gap: 8px; font: 800 1.5rem/1 var(--font-d); letter-spacing: -.02em; margin: 0 0 12px; text-transform: capitalize; }
.m-tag { padding: 3px 9px; border-radius: var(--r-full); background: var(--surface-2); color: var(--muted); font: 700 .75rem/1.3 var(--font); text-transform: none; letter-spacing: 0; }
.month.now .m-tag { background: var(--teal); color: var(--teal-ink); }
.month ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.month ul > li { display: grid; gap: 3px; position: relative; padding-left: 18px; }
.month ul > li::before { content: ''; position: absolute; left: 0; top: .45em; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--teal)); }
.month ul > li strong, .month ul > li > a { font-weight: 650; line-height: 1.3; text-wrap: balance; }
.month ul > li > a { color: var(--ink); text-decoration-color: color-mix(in oklab, var(--ink) 30%, transparent); }
.month ul > li > a:hover { color: var(--teal); }
.month ul > li span { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.month ul > li .y-date { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-style: italic; }
.month ul > li .y-date.ok { font-style: normal; font-weight: 700; color: var(--open); }
.y-date .i { width: 15px; height: 15px; }

/* ---------- form ---------- */
.form-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 48px; display: grid; gap: 32px; }
@media (min-width: 900px) { .form-wrap { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } .alt { position: sticky; top: calc(var(--top-h) + 20px); } }
.form { display: grid; gap: 18px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 650; padding: 0; margin-bottom: 2px; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--r-md); background: var(--bg); transition: border-color .15s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in oklab, var(--teal) 16%, transparent); }
.field textarea { resize: vertical; }
.field .row { display: flex; gap: 8px; }
.field .row input { flex: 1; }
.hint { margin: 0; color: var(--muted); font-size: .88rem; }
.paste { padding: 14px; border-radius: var(--r-md); background: color-mix(in oklab, var(--lupine) 7%, var(--surface)); }
.paste .btn { color: var(--lupine); }
.grid2 { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.more-fields summary { cursor: pointer; font-weight: 650; color: var(--teal); padding: 6px 0; }
.more-fields[open] summary { margin-bottom: 14px; }
.more-fields > .field + .field, .more-fields > .grid2 + .field { margin-top: 14px; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; font-weight: 600; }
.form-msg.ok { color: var(--open); }
.form-msg.err { color: var(--closed); }
.alt { display: grid; gap: 8px; padding: 22px; border-radius: var(--r-lg); background: var(--surface-2); }
.alt p { margin: 0 0 14px; }
.done { text-align: center; padding: 40px 22px; }
.done .h1 { font-size: 2rem; }

/* ── Submit ── (/skra/: smart paste → preview cards; place mode) */
.sub-main, #m-event { display: grid; gap: 14px; min-width: 0; }
#m-event[hidden] { display: none; }
.seg { display: inline-flex; justify-self: start; padding: 4px; gap: 2px; background: var(--surface-2); border-radius: var(--r-full); }
.seg-b { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-full); background: none; color: var(--muted); font-weight: 650; cursor: pointer; }
.seg-b[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.seg-b[aria-pressed="true"] .i { color: var(--teal); }
.field > span { font-weight: 650; }
.smart { gap: 12px; }
.smart-l { font: 700 1.2rem/1.2 var(--font-d); letter-spacing: -.01em; }
.smart textarea { width: 100%; min-height: 128px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--r-md); background: var(--bg); font-size: 1.05rem; line-height: 1.45; resize: vertical; transition: border-color .15s, box-shadow .15s; }
.smart textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in oklab, var(--teal) 16%, transparent); }
.smart-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.smart-row .btn-primary { flex: 1 1 220px; }
.smart-row .btn-ghost { flex: 1 1 auto; color: var(--teal); }
.form-msg:empty { display: none; }
.form-msg.busy { color: var(--muted); }
.form-msg.busy::before { content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.social { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-lg); background: color-mix(in oklab, var(--sun) 16%, var(--surface)); border: 1px solid color-mix(in oklab, var(--sun) 45%, var(--border)); }
.social-t { margin: 0; }
.social-opt { display: grid; gap: 8px; }
.social-opt .btn { white-space: normal; text-align: center; }
#link-form { padding-top: 12px; border-top: 1px dashed color-mix(in oklab, var(--sun) 55%, var(--border)); }
.cards { display: grid; gap: 12px; }
.cards:empty { display: none; }
.pv { border-radius: var(--r-lg); background: var(--surface); border: 1.5px solid var(--border); box-shadow: 0 1px 2px rgb(29 42 51 / .05); animation: pv-in .25s var(--ease); }
.pv.editing { border-color: var(--teal); }
@keyframes pv-in { from { opacity: 0; transform: translateY(6px); } }
.pv-f { display: grid; gap: 14px; padding: 18px; }
.pv-t { margin: 0; font: 750 1.3rem/1.2 var(--font-d); letter-spacing: -.015em; overflow-wrap: anywhere; }
.pv-t:focus { outline: none; }
.pv-m { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-weight: 600; }
.pv-m .miss { color: var(--closed); }
.pv.editing .pv-view { display: none; }
.pv-edit { display: grid; gap: 14px; border: 0; padding: 0; margin: 0; min-width: 0; }
.pv-edit input, .pv-edit textarea { width: 100%; min-height: 46px; padding: 10px 13px; border: 1.5px solid var(--border); border-radius: var(--r-md); background: var(--bg); }
.pv-edit input:focus, .pv-edit textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in oklab, var(--teal) 16%, transparent); }
.pv-edit .more-fields > .field + .field, .pv-edit .more-fields > .grid2 + .field { margin-top: 14px; }
.pv-cats { border: 0; padding: 0; margin: 0; min-width: 0; }
.pv-cats .chip { min-height: 36px; }
.pv:not(.editing) .pv-cats .chip { pointer-events: none; }
.pv:not(.editing) .pv-cats .chip:not(:has(input:checked)) { display: none; }
.pv:not(.editing) .pv-cats:not(:has(input:checked)) { display: none; }
.pv-act { display: flex; gap: 8px; }
.pv-act .btn-primary { flex: 1; }
.pv-x { padding: 10px 12px; color: var(--muted); }
.done-s { padding: 22px 18px; text-align: center; }
.done-t { margin: 0 0 4px; font: 750 1.25rem/1.25 var(--font-d); color: var(--open); overflow-wrap: anywhere; }
.done-t:focus { outline: none; }
.done-s .muted { margin: 0 0 14px; }
.done-a { margin: 0; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.sub .alt { font-size: .95rem; background: transparent; border: 1px dashed var(--border); }
.sub .alt p { margin: 0 0 10px; }
@media (max-width: 420px) { .grid2 { gap: 12px; } .pv-f, .social { padding: 16px 14px; } .form { padding: 18px 14px; } .seg:not(.seg-sec) { display: flex; max-width: 100%; } .seg:not(.seg-sec) .seg-b { flex: 1 1 auto; justify-content: center; padding: 0 10px; gap: 5px; } }
@media (max-width: 400px) { .seg:not(.seg-sec) .seg-b .i { display: none; } }

/* ---------- calendars (/askrift/) ---------- */
.subs { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter) 48px; }
.subs-rec { padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 2px solid var(--teal); }
.subs-tag { display: inline-block; margin: 0 0 6px; padding: 2px 10px; border-radius: var(--r-full); background: var(--teal); color: var(--teal-ink); font-weight: 750; font-size: .8rem; }
.subs-rec .h3 { flex-wrap: wrap; font-size: 1.25rem; }
.subs-rec .h3 .i { color: var(--teal); }
.subs-rec .h3 .muted { font: 600 .92rem var(--font); }
.subs-pv-h { margin: 12px 0 6px; color: var(--muted); font-size: .9rem; font-weight: 650; }
.subs-pv { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.subs-pv li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 10px; padding: 6px 0; border-top: 1px solid var(--border); }
.subs-pv li:first-child { border-top: 0; }
.subs-pv-d { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; padding-top: 1px; }
.subs-pv a { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.subs-pv a:hover { text-decoration: underline; }
.subs-how .h2 { margin-top: 28px; }
.cal-apps { display: flex; max-width: 100%; }
.cal-apps .seg-b { flex: 1 1 auto; justify-content: center; }
.cal-apps .seg-b[aria-pressed="true"] { color: var(--ink); }
.cal-steps { margin-top: 14px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.cal-steps ol { margin: 0 0 14px; padding-left: 1.3em; display: grid; gap: 6px; }
.cal-steps .btn-lg { width: 100%; max-width: 380px; }
.cal-url { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.cal-url code { flex: 1 1 220px; min-width: 0; padding: 10px 12px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--border); font-size: .88rem; overflow-wrap: anywhere; }
.cal-pick { margin: 12px 0 0; }
.subs-vs { display: flex; gap: 8px; align-items: flex-start; margin: 18px 0 0; color: var(--muted); font-size: .95rem; }
.subs-vs .i { flex: none; margin-top: 3px; color: var(--teal); }
.subs-more { margin-top: 28px; border-top: 1px solid var(--border); }
.subs-more > summary { display: flex; align-items: center; gap: 6px; min-height: 52px; cursor: pointer; list-style: none; font: 700 1.1rem/1.2 var(--font-d); }
.subs-more > summary::-webkit-details-marker { display: none; }
.subs-more > summary .i { margin-left: auto; transition: transform .15s; }
.subs-more[open] > summary .i { transform: rotate(180deg); }
.subs-more .feeds { padding: 0; margin: 4px 0 0; }
.subs-note { margin-top: 18px; font-size: .9rem; }
.feeds { list-style: none; max-width: 860px; margin: 0 auto 48px; padding: 0 var(--gutter); display: grid; gap: 10px; }
.feed { display: grid; grid-template-columns: 44px 1fr; gap: 12px 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); }
.feed-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: color-mix(in oklab, var(--c) 13%, var(--surface)); color: var(--c); }
.feed-body { display: grid; }
.feed-body span { color: var(--muted); font-size: .9rem; }
.feed-act { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
@media (min-width: 700px) { .feed { grid-template-columns: 44px 1fr auto; } .feed-act { grid-column: auto; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--border); margin-top: 24px; }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 32px; font-size: .95rem; }
.foot p { margin: 0 0 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; padding: 10px 18px; border-radius: var(--r-full); background: var(--ink); color: var(--bg); font-weight: 600; z-index: 60; transition: opacity .2s, transform .2s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1024px) { .toast { bottom: 24px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Dark map tiles: OSM raster has no dark style, so invert it. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9); } }
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9); }
.leaflet-container { font-family: var(--font); background: var(--surface-2); }

/* ── Corrections (event page) ── */
.fix { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
.fix > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; color: var(--muted); font-weight: 600; list-style: none; }
.fix > summary::-webkit-details-marker { display: none; }
.fix > summary:hover, .fix[open] > summary { color: var(--ink); }
.fix-form { display: grid; gap: 18px; margin-top: 8px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.fix-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fix-form legend { font-weight: 700; margin-bottom: 10px; }
.fix-form .cats { flex-wrap: wrap; overflow: visible; }
.fix-issues { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.fix-issues label { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; }
.fix-issues input { width: 18px; height: 18px; accent-color: var(--teal); }
.fix-note { display: grid; gap: 6px; font-weight: 700; }
.fix-note textarea { font: inherit; font-weight: 400; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--bg); color: var(--ink); resize: vertical; }
.fix-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fix-done { margin: 0; }
.d-title { overflow-wrap: anywhere; hyphens: auto; }

/* ---------- languages ---------- */
.orig { margin: 6px 0 0; font-size: .95rem; overflow-wrap: anywhere; }
.orig-text { margin: 0 0 1.2em; max-width: 65ch; }
.orig-text > summary { cursor: pointer; color: var(--muted); font-weight: 600; min-height: 40px; display: flex; align-items: center; }
.orig-text .prose { margin-top: 8px; padding: 12px 16px; border-radius: var(--r-md); background: var(--surface-2); }
.prose .mt { font-size: .88rem; }
.foot-langs a[aria-current] { color: var(--ink); font-weight: 700; text-decoration: none; }
/* Language offer: a slim line under the language switch, in the page flow (never covers content). */
.lang-hint { max-width: var(--max); margin: 0 auto; padding: 2px var(--gutter) 0; display: flex; justify-content: flex-end; }
.lh-in { display: inline-flex; align-items: center; gap: 2px; margin: 0; padding: 0 2px 0 14px; border-radius: var(--r-full); background: color-mix(in oklab, var(--lupine) 10%, var(--surface)); border: 1px solid color-mix(in oklab, var(--lupine) 25%, var(--border)); font-weight: 650; font-size: .92rem; }
.lh-in a { color: var(--lupine); text-decoration: none; padding: 10px 2px; }
.lh-in a:hover { text-decoration: underline; }
.lh-x { display: grid; place-items: center; border: 0; background: none; color: var(--muted); width: 44px; height: 40px; border-radius: var(--r-full); cursor: pointer; }
.lh-x:hover { color: var(--ink); background: color-mix(in oklab, var(--lupine) 10%, transparent); }

/* ---------- offers + menus ---------- */
.offers { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 32px; }
.ofpanel[hidden] { display: none; }
.seg-sec { display: flex; width: max-content; max-width: 100%; margin-top: 4px; }
.seg-sec .seg-b { text-decoration: none; min-height: 44px; }
.seg-sec .seg-b b { margin-left: 2px; padding: 0 7px; border-radius: var(--r-full); background: var(--surface-2); color: var(--muted); font-size: .8rem; line-height: 1.6; font-variant-numeric: tabular-nums; }
.seg-sec .seg-b[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.seg-sec .seg-b[aria-current="true"] .i { color: var(--teal); }
.ofs { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); align-items: stretch; }
.of { --c: var(--teal); display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); scroll-margin-top: calc(var(--top-h) + 16px); }
.of:target { border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in oklab, var(--teal) 22%, transparent); }
.of[data-kind="2fyrir1"], .of[data-kind="afslattur"], .of[data-kind="magntilbod"] { --c: var(--lupine); }
.of[data-kind="hladbord"], .of[data-kind="hadegi"] { --c: var(--soon); }
.of[data-kind="happy-hour"] { --c: var(--closed); }
.of-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.of-kind { font-weight: 750; font-size: .78rem; color: var(--c); padding: 2px 9px; border-radius: var(--r-full); background: color-mix(in oklab, var(--c) 12%, var(--surface)); }
/* Availability pill, filled in by the browser (G.offerStatus). */
.av { padding: 2px 9px; border-radius: var(--r-full); font-size: .78rem; font-weight: 700; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.av:empty { display: none; }
.av[data-state="now"] { background: color-mix(in oklab, var(--open) 15%, transparent); color: var(--open); }
.av[data-state="later"], .av[data-state="today"] { background: color-mix(in oklab, var(--soon) 14%, transparent); color: var(--soon); }
.av[data-state="anytime"] { background: none; padding: 0 2px; font-weight: 600; }
/* Title gets the full width; the price sits under it (a bundle shows the commitment first, the unit price after). */
.of-head { display: grid; gap: 3px; }
.of-t { font-size: 1.06rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; min-width: 0; color: var(--ink); text-decoration: none; }
a.of-t:hover { text-decoration: underline; }
.of-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-variant-numeric: tabular-nums; }
.pr-main { font: 800 1.12rem/1.2 var(--font-d); letter-spacing: -.015em; }
.pr-sub { color: var(--muted); font-size: .88rem; font-weight: 600; }
.of-cond { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: .9rem; font-weight: 650; color: var(--ink); }
.of-cond .i { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--soon); }
.of-d { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.of-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: .88rem; }
.of-foot:empty { display: none; }
.of-foot .i { width: 15px; height: 15px; }
.of-pl, .of-when { display: inline-flex; align-items: center; gap: 5px; }
.of-pl { color: var(--ink); font-weight: 650; text-decoration: none; min-height: 32px; }
.of-pl:hover { text-decoration: underline; }
.of-when { color: var(--muted); }
.of-meta { margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
.of-meta a { color: inherit; }
.of-meta .stale { color: var(--soon); font-weight: 600; }
.mn-note { margin: 14px 0 12px; max-width: 60ch; }
.of-search { margin-top: 12px; }
.mn-items > li[hidden] { display: none; }
.mns { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); align-items: start; }
.mns.one { grid-template-columns: minmax(0, 560px); }
.mn { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); }
.mn-pl { font: 700 1.1rem/1.2 var(--font-d); color: var(--ink); text-decoration: none; }
.mn-pl:hover { text-decoration: underline; }
.mn-lbl { margin: 0; font-size: .82rem; font-weight: 650; color: var(--muted); }
.mn-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; font-size: .94rem; }
.mn-items li { display: flex; align-items: baseline; gap: 8px; }
.mn-items li span:first-child { flex: 1; min-width: 0; }
.mn-p { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.mn-full { align-self: flex-start; margin-top: 4px; color: var(--teal); border-color: color-mix(in oklab, var(--teal) 35%, var(--border)); }
.mn .of-meta { margin: 0; }
/* Compact deal rows: one title, one secondary line, one aligned price, the deciding condition. */
.ofts { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.oft > a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; color: inherit; text-decoration: none; }
.ofts .oft > a { padding: 10px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); }
.oft-main { display: grid; gap: 2px; min-width: 0; }
.oft-main strong { overflow-wrap: anywhere; line-height: 1.3; }
.oft-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; color: var(--muted); font-size: .88rem; }
.oft-cond { font-size: .86rem; font-weight: 600; }
.oft-price { display: grid; justify-items: end; text-align: right; max-width: 42vw; font-variant-numeric: tabular-nums; }
.oft-price .pr-main { font-size: 1rem; line-height: 1.25; }
.oft-price .pr-sub { font-size: .8rem; }
.bl-deals .oft-price .pr-sub { color: var(--board-muted); }
/* Phones: deal rows give the title the full width and put the price underneath. */
@media (max-width: 599px) {
  .oft > a, .bl-deals .oft > a { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .oft-price { justify-items: start; text-align: left; max-width: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; grid-row: 2; }
}

/* ---------- a deal's own page ---------- */
.deal .tags { margin-bottom: 4px; }
.deal .of-kind { --c: var(--teal); }
.deal[data-kind="2fyrir1"], .deal[data-kind="afslattur"], .deal[data-kind="magntilbod"] { --c: var(--lupine); }
.deal[data-kind="hladbord"], .deal[data-kind="hadegi"] { --c: var(--soon); }
.deal[data-kind="happy-hour"] { --c: var(--closed); }
.deal .of-kind { color: var(--c); background: color-mix(in oklab, var(--c) 12%, var(--surface)); }
.dl-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.dl-price .pr-main { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.1rem); }
.dl-price .pr-sub { font-size: 1rem; }
.dl-cond { font-size: 1rem; }
.dl-d { margin: 10px 0 0; color: var(--muted); max-width: 65ch; }
.dl-gone { display: flex; align-items: center; gap: 8px; width: fit-content; margin: 0 0 10px; padding: 6px 14px 6px 10px; border-radius: var(--r-full); background: color-mix(in oklab, var(--soon) 14%, var(--surface)); color: var(--soon); font-weight: 750; }
.deal .ofx { margin: -12px 0 24px; }
.deal .ofts .oft > a { min-height: 48px; }

/* ---------- archived event ---------- */
.ended { display: flex; width: fit-content; align-items: center; gap: 8px; margin: 0 0 8px; padding: 6px 14px 6px 10px; border-radius: var(--r-full); background: color-mix(in oklab, var(--soon) 14%, var(--surface)); color: var(--soon); font-weight: 750; font-size: .92rem; }
.archived .d-title { color: color-mix(in oklab, var(--ink) 78%, var(--bg)); }

/* ---------- save (bookmark), share, header search ---------- */
/* The row bookmark is drawn with a mask so 100+ rows stay light; pressed = filled lupine. */
.sv:not(.sv-b) { --bm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linejoin='round'%3E%3Cpath d='M6 3.5h12v17l-6-4.5-6 4.5z'/%3E%3C/svg%3E");
  --bmf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='1.9' stroke-linejoin='round'%3E%3Cpath d='M6 3.5h12v17l-6-4.5-6 4.5z'/%3E%3C/svg%3E");
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--r-full); background: none; color: var(--muted); cursor: pointer; flex: none; }
.sv:not(.sv-b)::before { content: ''; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--bm) center / contain no-repeat; mask: var(--bm) center / contain no-repeat; transition: transform .15s var(--ease); }
.sv:not(.sv-b):hover { color: var(--lupine); background: color-mix(in oklab, var(--lupine) 9%, transparent); }
.sv[aria-pressed="true"] { color: var(--lupine); }
.sv:not(.sv-b)[aria-pressed="true"]::before { -webkit-mask-image: var(--bmf); mask-image: var(--bmf); animation: sv-pop .28s var(--ease); }
@keyframes sv-pop { 40% { transform: scale(1.28); } }
html:not(.js) .sv { display: none !important; }
.sv-b[aria-pressed="true"] { border-color: color-mix(in oklab, var(--lupine) 45%, var(--border)); background: color-mix(in oklab, var(--lupine) 10%, var(--surface)); }
.sv-b[aria-pressed="true"] .i { fill: currentColor; }
/* Event rows and place cards: the bookmark sits at the right edge, inside the card. */
.ev, .pl { position: relative; }
.ev > .sv, .pl > .sv { position: absolute; right: 4px; top: 50%; translate: 0 -50%; }
.ev:has(> .sv) .ev-link { padding-right: 50px; }
.pl:has(> .sv) > a { padding-right: 50px; }
@media (max-width: 379px) { .ev:has(> .sv) .ev-cat { display: none; } .ev:has(> .sv) .ev-link { grid-template-columns: 52px 1fr; } }
.top-search { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border-radius: var(--r-full); color: var(--ink); text-decoration: none; }
.top-search span { display: none; }
.top-search:hover, .top-search[aria-current] { background: var(--surface-2); }
.top-search + .langs { margin-left: 0; }
@media (max-width: 400px) { .top-in { gap: 6px; } .brand { font-size: 1.15rem; } .brand-mark { width: 30px; height: 30px; } .langs a { min-width: 36px; } }
@media (min-width: 1024px) { .nav > a { white-space: nowrap; } .top-search { margin-left: 0; width: 42px; height: 42px; color: var(--muted); } }
@media (min-width: 1440px) { .top-search { width: auto; gap: 7px; padding: 0 14px; display: inline-flex; align-items: center; font-weight: 600; font-size: .9rem; } .top-search span { display: inline; } }
/* Saved count on the Vistað tab. */
.nav > a[data-n]:not([data-n=""]) .i { overflow: visible; }
.nav > a[data-n]:not([data-n=""])::after { content: attr(data-n); position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-full); background: var(--lupine); color: var(--lupine-ink); font: 750 .68rem/18px var(--font); text-align: center; }
@media (min-width: 1024px) { .nav > a[data-n]:not([data-n=""])::after { position: static; margin-left: 2px; } }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sec-h .h2 { margin-right: auto; }

/* Deal card footer: source on the left, save / share / report (flag) on the right. */
.of-end { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; margin-top: auto; padding-top: 2px; }
.of-foot { margin-top: 2px; }
.of-end .of-meta { margin: 0; flex: 1 1 160px; }
.of-acts { display: flex; align-items: center; gap: 0; margin-left: auto; margin-right: -8px; }
.of-a { display: inline-grid; place-items: center; grid-auto-flow: column; gap: 4px; min-width: 44px; height: 44px; padding: 0 8px; border: 0; border-radius: var(--r-full); background: none; color: var(--muted); font-weight: 650; font-size: .86rem; cursor: pointer; }
.of-a:hover { color: var(--ink); background: var(--surface-2); }
.of-fixb[aria-expanded="true"] { color: var(--ink); background: var(--surface-2); }
.of-fixb:disabled { opacity: .5; cursor: default; }
.ofx { display: grid; gap: 12px; margin-top: 6px; padding: 14px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--border); animation: pop-in .16s var(--ease); }
.ofx fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ofx legend { font-weight: 700; margin-bottom: 6px; }
.ofx-issues { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.ofx-issues label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.ofx-issues input { width: 18px; height: 18px; accent-color: var(--teal); }
.ofx > label { display: grid; gap: 4px; font-weight: 650; font-size: .92rem; }
.ofx input:not([type=checkbox]), .ofx textarea { font: inherit; font-weight: 400; padding: 9px 12px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); color: var(--ink); min-width: 0; }
.ofx .fix-done { padding: 4px 0; }

/* ---------- Vistað ---------- */
.saved, .sx-page { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 48px; }
.saved > *, .sx-page > * { max-width: 760px; }
.sv-tools, .sv-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sv-shared { padding: 14px 16px; margin-bottom: 8px; border-radius: var(--r-lg); background: color-mix(in oklab, var(--lupine) 9%, var(--surface)); border: 1px solid color-mix(in oklab, var(--lupine) 28%, var(--border)); }
.sv-shared p { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 650; color: var(--lupine); }
.svg + .svg { margin-top: 26px; }
.svg .h3 { margin: 20px 0 10px; }
.svg .h3 .i { color: var(--teal); }
.svg .h3 .muted { font: 600 .95rem var(--font); }
.svl { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.svi { display: flex; align-items: center; gap: 8px; padding: 10px 6px 10px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); }
.svi-main { display: grid; gap: 2px; min-width: 0; flex: 1; }
.svi-t { font-weight: 650; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
a.svi-t:hover { text-decoration: underline; }
.svi-m { color: var(--muted); font-size: .88rem; }
.svi-m:empty, .svi-tags:empty { display: none; }
.svi-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.svi-b { padding: 1px 9px; border-radius: var(--r-full); font-size: .78rem; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.svi-b[data-state="now"] { background: color-mix(in oklab, var(--open) 14%, transparent); color: var(--open); }
.svi-b.gone { background: color-mix(in oklab, var(--soon) 14%, transparent); color: var(--soon); }
.svi.is-gone { background: transparent; border-style: dashed; }
.svi.is-gone .svi-t { color: var(--muted); }
.svi-acts { display: flex; align-items: center; gap: 4px; flex: none; }
.svi-cal { min-height: 40px; padding: 6px 12px; font-size: .88rem; }
@media (max-width: 480px) { .svi:has(.svi-cal) { flex-wrap: wrap; } .svi:has(.svi-cal) .svi-acts { width: 100%; } .svi-cal { flex: 1; } }

/* ---------- unified search ---------- */

.sx-sugg { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 18px; }
.sx-sugg .chip { text-decoration: none; color: var(--ink); }
.sx-empty .sx-sugg { justify-content: center; }
.sxg { margin-top: 18px; }
.sxg-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 700 1.1rem/1.2 var(--font-d); }
.sxg-h .i { color: var(--teal); }
.sxg-h b { font: 650 .82rem/1 var(--font); padding: 3px 8px; border-radius: var(--r-full); background: var(--surface-2); color: var(--muted); }
.sxl { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sxi a { display: flex; align-items: flex-start; gap: 12px; padding: 10px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); color: var(--ink); text-decoration: none; }
.sxi a:hover { border-color: var(--teal); }
.sxi-main { display: grid; gap: 1px; min-width: 0; flex: 1; }
.sxi-main strong { font-weight: 650; overflow-wrap: anywhere; line-height: 1.3; }
.sxi-o, .sxi-s { color: var(--muted); font-size: .86rem; }
.sxi-pr { font: 800 .98rem/1.3 var(--font-d); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sx-all { margin-top: 4px; min-height: 40px; }
/* AI answer on /leit/: a labelled box above the ordinary results (which stay). */
.sx-ai { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-lg); background: color-mix(in oklab, var(--lupine) 8%, var(--surface)); border: 1px solid color-mix(in oklab, var(--lupine) 28%, var(--border)); }
.sx-ai-h { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 1.05rem/1.2 var(--font-d); color: var(--lupine); }
.sx-ai-scope { margin: 4px 0 0; color: var(--muted); font-size: .86rem; }
.sx-ai-a { margin: 8px 0 0; font-weight: 600; }
.sx-ai .sxl { margin-top: 10px; }
.sx-ai.busy .sx-ai-a::before { content: ''; display: inline-block; width: 13px; height: 13px; margin-right: 8px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
/* Under the home / places search box: the other kinds, compact. */
.sx-strip { max-width: 680px; margin-top: 10px; padding: 4px 14px 12px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.sx-strip-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 8px 0 0; font-weight: 650; font-size: .88rem; color: var(--muted); }
.sx-strip .sxg { margin-top: 8px; }
.sx-strip .sxg-h { font-size: .95rem; }
.sx-strip .sxi a { padding: 8px 10px; border: 0; background: var(--bg); }
.sx-strip .sx-all { display: none; }

/* ---------- add to home screen ---------- */
.inst { max-width: var(--max); margin: 0 auto; padding: 6px var(--gutter) 0; }
.inst-in { display: flex; align-items: center; gap: 12px; margin: 0; padding: 8px 4px 8px 10px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); font-size: .92rem; }
.inst-in img { border-radius: 9px; flex: none; }
.inst-in > span { display: grid; flex: 1; min-width: 0; color: var(--muted); }
.inst-in strong { color: var(--ink); }
.inst-go { min-height: 40px; padding: 6px 14px; flex: none; }
.inst-x { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); border-radius: var(--r-full); cursor: pointer; flex: none; }
.inst-x:hover { color: var(--ink); background: var(--surface-2); }
.deal .more + .actions, .deal .more + .src { margin-top: 24px; }
