/* =====================================================================
   HvaSkjer web – Aktiviteter (v1)
   A calmer, more atmospheric "what do you feel like?" space that shares
   the landing page's language: gradient headline, dream-lilac glow,
   category colours and the faded topographic map.
   ===================================================================== */

html.web-build #filterDialog {
  --act-grad: linear-gradient(100deg, #f078a4, #9b82e8 58%, #62bddb);
  /* translucent: the app-wide faint map (#bgMap) shows through */
  background-color: color-mix(in srgb, var(--bg) 62%, transparent);
  background-image:
    radial-gradient(60% 45% at 12% 0%, color-mix(in srgb, #9b82e8 14%, transparent), transparent 70%),
    radial-gradient(45% 40% at 95% 12%, color-mix(in srgb, #f078a4 10%, transparent), transparent 70%),
    radial-gradient(50% 40% at 70% 100%, color-mix(in srgb, #62bddb 8%, transparent), transparent 70%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--ink);
}

html.web-build #filterDialog form {
  box-sizing: border-box;
  padding: 0 max(16px, calc(50% - 600px)) 0;
  scroll-behavior: smooth;
}

/* ---------- hero ---------- */
html.web-build #filterDialog .act-hero {
  position: static;
  display: block;
  margin: 0;
  padding: 34px 56px 18px 2px;
  background: none;
}
html.web-build #filterDialog .act-hero .close {
  position: absolute;
  top: 16px;
  right: max(16px, calc(50% - 620px));
  z-index: 20;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent), 0 10px 26px -14px rgba(0, 0, 0, .7);
  transition: transform .25s var(--ease-spring, ease), background .2s;
}
html.web-build #filterDialog .act-hero .close:hover { transform: rotate(90deg); background: var(--soft); }

.act-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dream-lilac, #a88cff);
  font: 800 11px/1 inherit;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.act-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: actPulse 2.4s ease-out infinite;
}
.act-kicker b {
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--muted);
}
.act-kicker b:not(:empty)::before { content: '· '; }

html.web-build #filterDialog .act-hero h2 {
  margin: 12px 0 8px;
  font: 800 clamp(34px, 5.2vw, 58px)/1 var(--display);
  letter-spacing: -.045em;
}
html.web-build #filterDialog .act-hero h2 em {
  font-style: normal;
  background: var(--act-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.act-sub {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}
.act-sub > span { color: var(--ink); font-weight: 700; }
.act-location {
  display:inline-flex; align-items:center; gap:5px; min-height:32px; margin-left:3px; padding:0 10px;
  border:0; border-radius:999px; color:var(--ink);
  background:color-mix(in srgb,var(--dream-lilac,#a88cff) 16%,var(--surface));
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--dream-lilac,#a88cff) 42%,transparent);
  font:750 13px/1 var(--body); vertical-align:middle; transition:background .2s,transform .2s;
}
.act-location:hover{background:color-mix(in srgb,var(--dream-lilac,#a88cff) 25%,var(--surface));transform:translateY(-1px)}
.act-location [data-icon]{display:grid;width:15px;height:15px;color:var(--dream-lilac,#a88cff)}
.act-location svg{width:100%;height:100%}.act-location b{font:inherit}.act-location i{font-style:normal;font-size:10px;color:var(--muted)}

/* ---------- search ---------- */
html.web-build #filterDialog .event-search {
  position: sticky;
  top: 12px;
  z-index: 12;
  grid-template-columns: 40px 1fr 36px;
  min-height: 60px;
  margin-top: 8px;
  padding: 0 10px 0 16px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent),
    0 22px 44px -26px rgba(0, 0, 0, .85);
  transition: box-shadow .25s;
}
html.web-build #filterDialog .event-search:focus-within {
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--dream-lilac, #a88cff) 75%, transparent),
    0 0 0 6px color-mix(in srgb, var(--dream-lilac, #a88cff) 12%, transparent),
    0 22px 44px -26px rgba(0, 0, 0, .85);
}
html.web-build #filterDialog .event-search > span { transform: none; color: var(--dream-lilac, #a88cff); display: grid; }
html.web-build #filterDialog .event-search > span .ico { width: 22px; height: 22px; }
html.web-build #filterDialog .event-search input { height: 58px; font-size: 15.5px; }

/* ---------- jump nav ---------- */
.act-jump {
  display: flex;
  gap: 8px;
  margin: 16px -2px 4px;
  padding: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.act-jump::-webkit-scrollbar { display: none; }
.act-jump button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--group-c) 9%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--group-c) 22%, transparent);
  color: var(--ink);
  font: 700 12.5px/1 inherit;
  white-space: nowrap;
  transition: background .2s, transform .2s;
}
.act-jump button:hover { background: color-mix(in srgb, var(--group-c) 20%, var(--surface)); transform: translateY(-1px); }
.act-jump i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--group-c);
  box-shadow: 0 0 10px var(--group-c);
}

/* ---------- live preview ---------- */
html.web-build #filterDialog .filter-live-count {
  margin: 14px 2px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--dream-lilac, #a88cff);
}
html.web-build #filterDialog .filter-preview { gap: 8px; }
html.web-build #filterDialog .filter-preview > button {
  padding: 10px 12px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 7%, transparent);
  animation: actRise .35s ease both;
  transition: transform .2s, box-shadow .2s;
}
html.web-build #filterDialog .filter-preview > button:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dream-lilac, #a88cff) 40%, transparent), 0 16px 30px -22px rgba(0, 0, 0, .9);
}
html.web-build #filterDialog .filter-preview b { font-size: 13.5px; }
html.web-build #filterDialog .filter-preview small { font-size: 11.5px; }
@media (min-width: 900px) {
  html.web-build #filterDialog .filter-preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- groups ---------- */
html.web-build #filterDialog .interest-groups { gap: 34px; padding-top: 18px; }

.act-group-head {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  margin: 0 2px 14px;
}
.act-group-orb {
  grid-row: 1 / 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background:
    radial-gradient(120% 120% at 30% 20%, color-mix(in srgb, var(--group-c) 70%, white), var(--group-c));
  box-shadow: 0 10px 26px -10px var(--group-c);
}
.act-group-orb .ico { width: 22px; height: 22px; }
html.web-build #filterDialog .act-group-head h4 {
  margin: 0;
  color: var(--ink);
  font: 800 20px/1.1 var(--display);
  letter-spacing: -.02em;
  text-transform: none;
}
.act-group-head small { grid-column: 2; color: var(--muted); font-size: 12px; font-weight: 600; }
.act-group-all {
  grid-column: 3;
  grid-row: 1 / 3;
  padding: 8px 12px;
  border-radius: 11px;
  color: var(--group-c);
  font: 750 12.5px/1 inherit;
  background: transparent;
  transition: background .2s;
}
.act-group-all:hover { background: color-mix(in srgb, var(--group-c) 12%, transparent); }

html.web-build #filterDialog .interest-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 640px) {
  html.web-build #filterDialog .interest-grid { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; }
}

/* ---------- tiles ---------- */
html.web-build #filterDialog .interest-tile {
  --tile-c: var(--group-c);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 4px;
  min-height: 112px;
  padding: 14px;
  border: 0;
  border-radius: 20px;
  text-align: left;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--group-c) 13%, var(--surface)) 0%, color-mix(in srgb, var(--surface) 94%, transparent) 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--group-c) 20%, transparent);
  transform: none;
  transition: transform .28s var(--ease-spring, cubic-bezier(.2, 1.4, .4, 1)), box-shadow .25s, background .25s;
}
/* soft light in the corner */
html.web-build #filterDialog .interest-tile::before {
  content: '';
  display: block !important;
  position: absolute;
  z-index: -1;
  top: -40%;
  right: -30%;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--group-c) 26%, transparent), transparent 65%);
  opacity: .55;
  transition: opacity .3s, transform .5s;
}
html.web-build #filterDialog .interest-tile .interest-art {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  margin-bottom: auto;
  border-radius: 14px;
}
html.web-build #filterDialog .interest-tile .interest-art .ico { width: 21px; height: 21px; }
html.web-build #filterDialog .interest-tile strong { margin-top: 12px; font-size: 14px; line-height: 1.2; }
.interest-count { color: var(--muted); font-size: 11.5px; font-weight: 600; }

@media (hover: hover) {
  html.web-build #filterDialog .interest-tile:hover {
    transform: translateY(-3px);
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--group-c) 45%, transparent),
      0 18px 34px -20px color-mix(in srgb, var(--group-c) 70%, black);
  }
  html.web-build #filterDialog .interest-tile:hover::before { opacity: 1; transform: scale(1.12); }
  html.web-build #filterDialog .interest-tile:hover .interest-art { transform: rotate(-6deg) scale(1.06); }
}

html.web-build #filterDialog .interest-tile[aria-pressed=true] {
  transform: none;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--group-c) 34%, var(--surface)) 0%, color-mix(in srgb, var(--group-c) 12%, var(--surface)) 80%);
  box-shadow:
    inset 0 0 0 1.5px var(--group-c),
    0 16px 34px -18px var(--group-c);
}
html.web-build #filterDialog .interest-tile[aria-pressed=true]::before { opacity: 1; }
html.web-build #filterDialog .interest-tile[aria-pressed=true] .interest-count { color: color-mix(in srgb, var(--ink) 80%, transparent); }
html.web-build #filterDialog .interest-tile[aria-pressed=true]::after {
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  font-size: 12px;
  background: var(--group-c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--group-c) 25%, transparent);
}
html.web-build #filterDialog .interest-tile.is-quiet:not([aria-pressed=true]) { opacity: .55; }
html.web-build #filterDialog .interest-tile.is-quiet:not([aria-pressed=true]):hover { opacity: .85; }
html.web-build #filterDialog .interest-tile.pop { animation: actPop .38s cubic-bezier(.2, 1.4, .4, 1); }

/* staggered entrance each time Aktiviteter opens */
html.web-build #filterDialog.nav-visible .interest-tile { animation: actRise .45s cubic-bezier(.2, .9, .3, 1) both; animation-delay: calc(var(--i, 0) * 35ms); }
html.web-build #filterDialog.nav-visible .act-hero { animation: actRise .5s cubic-bezier(.2, .9, .3, 1) both; }

/* ---------- practical options ---------- */
html.web-build #filterDialog .filter-more {
  margin-top: 34px;
  border: 0;
  border-radius: 20px;
  padding: 0 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent);
}
html.web-build #filterDialog .filter-more > summary { padding: 18px 2px; }
html.web-build #filterDialog .filter-more > summary span { font: 800 16px/1.2 var(--display); }
html.web-build #filterDialog .filter-more > summary small { font-size: 12px; }
html.web-build #filterDialog .filter-more-body { padding-bottom: 16px; }
@media (min-width: 900px) {
  html.web-build #filterDialog .filter-more-body { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
}

/* ---------- action bar ---------- */
html.web-build #filterDialog .dialog-actions {
  position: sticky;
  bottom: 12px;
  z-index: 14;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 14px;
  padding: 10px 10px 10px 14px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--ink) 9%, transparent),
    0 24px 50px -24px rgba(0, 0, 0, .9);
}
.act-picked {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.act-picked::-webkit-scrollbar { display: none; }
.act-picked button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 8px 0 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--group-c) 20%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--group-c) 50%, transparent);
  color: var(--ink);
  font: 700 12px/1 inherit;
  white-space: nowrap;
  animation: actPop .3s cubic-bezier(.2, 1.4, .4, 1);
}
.act-picked button span {
  width: 18px; height: 18px; display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 12%, transparent);
  font-size: 13px;
}
html.web-build #filterDialog:not(.has-picks) .act-picked::before {
  content: 'Trykk på det som frister – du kan velge flere.';
  align-self: center;
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html.web-build #filterDialog #resetFilters { flex: 0 0 auto; color: var(--muted); font-size: 13px; }
html.web-build #filterDialog #applyFilters {
  flex: 0 0 auto;
  min-width: 180px;
  min-height: 48px;
  border-radius: 16px;
  color: #fff;
  font: 800 15px/1 var(--display);
  background: linear-gradient(100deg, #e0719d, #8f76e0 60%, #5aaecf);
  box-shadow: 0 14px 30px -14px #9b82e8;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
html.web-build #filterDialog #applyFilters:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 18px 36px -14px #9b82e8; }
html.web-build #filterDialog #applyFilters:disabled {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--muted);
  box-shadow: none;
  cursor: default;
}

/* ---------- small screens ---------- */
@media (max-width: 639px) {
  html.web-build #filterDialog .act-hero { padding: 22px 52px 12px 2px; }
  html.web-build #filterDialog .act-hero .close { top: 14px; right: 14px; }
  .act-sub { font-size: 14px; }
  html.web-build #filterDialog .interest-tile { min-height: 104px; padding: 12px; }
  html.web-build #filterDialog .interest-tile strong { font-size: 13px; }
  html.web-build #filterDialog .dialog-actions { flex-wrap: wrap; padding: 10px; }
  .act-picked { flex-basis: 100%; order: -1; }
  html.web-build #filterDialog:not(.has-picks) .act-picked { display: none; }
  html.web-build #filterDialog #applyFilters { flex: 1 1 auto; min-width: 0; }
  .act-group-all { padding: 8px 6px; }
}

@keyframes actRise { from { opacity: 0; transform: translateY(12px); } }
@keyframes actPop { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes actPulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); }
  80%, 100% { box-shadow: 0 0 0 9px transparent; }
}

@media (prefers-reduced-motion: reduce) {
  html.web-build #filterDialog *,
  html.web-build #filterDialog *::before { animation: none !important; transition: none !important; }
}
:root.reduce-motion html.web-build #filterDialog * { animation: none !important; }

/* ---------- desktop: compact rows, larger type and icons ---------- */
@media (min-width: 900px) {
  html.web-build #filterDialog .act-hero { padding: 22px 60px 10px 2px; }
  .act-kicker { font-size: 12.5px; }
  html.web-build #filterDialog .act-hero h2 { margin: 10px 0 6px; font-size: clamp(44px, 4.4vw, 60px); }
  .act-sub { font-size: 17px; max-width: 640px; }

  html.web-build #filterDialog .event-search { min-height: 62px; grid-template-columns: 44px 1fr 38px; }
  html.web-build #filterDialog .event-search > span .ico { width: 24px; height: 24px; }
  html.web-build #filterDialog .event-search input { font-size: 17px; }

  .act-jump { margin-top: 14px; gap: 10px; }
  .act-jump button { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
  .act-jump i { width: 9px; height: 9px; }

  html.web-build #filterDialog .filter-live-count { font-size: 14px; }
  html.web-build #filterDialog .filter-preview b { font-size: 15px; }
  html.web-build #filterDialog .filter-preview small { font-size: 12.5px; }
  html.web-build #filterDialog .filter-preview > button { grid-template-columns: 44px 1fr; }
  html.web-build #filterDialog .filter-preview > button > span { width: 44px; height: 44px; border-radius: 13px; }
  html.web-build #filterDialog .filter-preview .ico { width: 22px; height: 22px; }

  html.web-build #filterDialog .interest-groups { gap: 26px; padding-top: 14px; }
  .act-group-head { grid-template-columns: 50px 1fr auto; column-gap: 14px; margin-bottom: 12px; }
  .act-group-orb { width: 50px; height: 50px; border-radius: 16px; }
  .act-group-orb .ico { width: 26px; height: 26px; }
  html.web-build #filterDialog .act-group-head h4 { font-size: 24px; }
  .act-group-head small { font-size: 14px; }
  .act-group-all { font-size: 15px; padding: 10px 14px; }

  /* horizontal tiles: icon left, text right – denser grid */
  html.web-build #filterDialog .interest-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
  html.web-build #filterDialog .interest-tile {
    display: grid;
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 3px;
    align-items: center;
    align-content: center;
    min-height: 80px;
    padding: 12px 40px 12px 14px;
    border-radius: 18px;
  }
  html.web-build #filterDialog .interest-tile .interest-art {
    grid-row: 1 / 3;
    width: 52px;
    height: 52px;
    margin: 0;
    border-radius: 16px;
  }
  html.web-build #filterDialog .interest-tile .interest-art .ico { width: 26px; height: 26px; }
  html.web-build #filterDialog .interest-tile strong { grid-column: 2; margin: 0; align-self: end; font-size: 16.5px; }
  html.web-build #filterDialog .interest-count { grid-column: 2; align-self: start; font-size: 13px; }
  html.web-build #filterDialog .interest-tile[aria-pressed=true]::after { top: 50%; right: 12px; transform: translateY(-50%); }

  html.web-build #filterDialog .filter-more > summary span { font-size: 18px; }
  html.web-build #filterDialog .filter-more > summary small { font-size: 13.5px; }
  html.web-build #filterDialog .filter-more-body { font-size: 15px; }

  html.web-build #filterDialog:not(.has-picks) .act-picked::before { font-size: 14.5px; }
  .act-picked button { min-height: 36px; font-size: 14px; padding: 0 9px 0 14px; }
  html.web-build #filterDialog #resetFilters { font-size: 15px; }
  html.web-build #filterDialog #applyFilters { min-height: 52px; min-width: 210px; font-size: 17px; }
}

/* sticky search gets a soft backing band so content never shows through the gap */
html.web-build #filterDialog .event-search::before {
  content: '';
  position: absolute;
  inset: -12px -8px -10px;
  z-index: -1;
  border-radius: 26px;
  background: linear-gradient(180deg, var(--bg) 55%, transparent);
  pointer-events: none;
}

@media (max-width: 639px) {
  /* the action bar only appears once something is chosen */
  html.web-build #filterDialog:not(.has-choice) .dialog-actions { display: none; }
  .act-kicker b { display: none; }
  html.web-build #filterDialog .act-hero h2 { font-size: 34px; }
}

html.web-build #filterDialog .filter-live-count:empty { display: none; }
html.web-build #filterDialog .filter-live-count:empty + .filter-preview:empty { display: none; }

/* v2: while Aktiviteter is open, hide the page underneath so only the map shows through */
html.web-build body:has(#filterDialog.nav-visible[open]) > main { visibility: hidden; }
/* without the live map (e.g. tiles blocked) fall back to the drawn map */
html.web-build:not(.has-bgmap) #filterDialog { background-color: var(--bg); }

/* ===================== 2.1 design pass ===================== */

/* Phones: search comes right under the headline – it's the main way in. The carousel follows. */
@media (max-width: 899px) {
  html body[data-view=home] #homeView > .home-hello { order: 1; }
  html body[data-view=home] #homeView > .home-discovery { order: 2; margin-top: 2px; margin-bottom: 12px; }
  html body[data-view=home] #homeView > .hero { order: 3; }
  html body[data-view=home] #homeView > .home-search-results { order: 4; }
  html body[data-view=home] #homeView > .event-feed { order: 5; }
  html body[data-view=home] #homeView > .home-foot, html body[data-view=home] #homeView > .home-about { order: 6; }
}
html.web-build body:not(.pc-web)[data-view=home] #homeView > .home-discovery { order: 2; }
html.web-build body:not(.pc-web)[data-view=home] #homeView > .hero { order: 3; }
html.web-build body:not(.pc-web)[data-view=home] #homeView > .event-feed { order: 5; }
html.web-build body:not(.pc-web)[data-view=home] #homeView > .home-about { order: 6; }

/* Small "Beta" tag by the logo replaces the big notice box */
.beta-badge { align-self: center; margin-left: 7px; padding: 3px 7px 2px; border-radius: 999px; font: 800 9.5px/1 var(--font, sans-serif); letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: linear-gradient(100deg, #e0719d, #8f76e0 60%, #5aaecf); -webkit-text-fill-color: #fff; box-shadow: 0 4px 12px -6px rgba(143, 118, 224, .8); }
.brand { display: inline-flex; align-items: center; }
.home-about, .settings-about { margin: 22px 16px 26px; font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.home-about b, .settings-about b { color: var(--ink); font-weight: 750; }
.home-about a, .settings-about a { color: var(--dream-lilac, #a88cff); font-weight: 750; }
.settings-about { text-align: left; margin: 14px 4px 4px; padding-top: 12px; border-top: 1px solid var(--line); }

/* Cards without a photo: the venue name becomes the artwork */
.slide-art .art-venue { position: absolute; left: 9%; right: 9%; top: 22%; display: grid; gap: 4px; text-align: left; pointer-events: none; z-index: 1; }
.slide-art .art-venue b { font: 800 clamp(17px, 7.2cqw, 30px)/1.02 var(--display, sans-serif); letter-spacing: -.02em; color: rgba(255, 255, 255, .34);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.slide-art .art-venue small { font: 750 11px/1 var(--font, sans-serif); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .3); }
.slide-art { container-type: inline-size; }
.card-media .slide-art .art-venue { top: 16%; }
.card-media .slide-art .art-venue b { font-size: clamp(14px, 9cqw, 22px); }
.detail-media .slide-art .art-venue { top: 26%; }
.detail-media .slide-art .art-venue b { font-size: clamp(20px, 6cqw, 34px); }
.slide-art .ico { opacity: .7; }

/* Readability: information text at least ~12 px, and a calmer, lighter grey in dark mode */
:root { --muted: #5b625c; }
:root[data-theme=dark] { --muted: #b0b8bf; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) { --muted: #b0b8bf; } }
:root:root .event-feed .card-body small, :root:root .event-grid .card-body small, :root:root .results-grid .card-body small { font-size: 12px; }
:root:root .home-search-copy small, :root:root .home-search-copy u { font-size: 11.5px; }
:root:root .home-search-copy em { font-size: 12px; }
:root:root .home-search-head small { font-size: 11px; }
:root:root .home-search-understood b, :root:root .home-search-understood span { font-size: 12px; }
:root:root .event-feed-head small { font-size: 12px; }
:root:root .pop-venue-count { font-size: 12px; }
:root:root .pop-venue-sub { font-size: 12px; }
:root:root .pop-date-header { font-size: 12.5px; }
:root:root .pop-item-text small { font-size: 12px; }
:root:root .interest-group h4 { font-size: 12.5px; }
:root:root .interest-count, :root:root .interest-tile small { font-size: 12.5px; }
:root:root .filter-preview small, :root:root .filter-live-count { font-size: 12px; }
:root:root .tag, :root:root .action-row button { font-size: 12px; }
:root:root .talk-list article time { font-size: 11.5px; }
:root:root .talk-heading small { font-size: 10.5px; }
:root:root .partner-label { font-size: 10.5px; }
:root:root .partner-disclosure, :root:root .nearby-partners-head small { font-size: 11px; }
:root:root .partner-copy small { font-size: 12px; }
:root:root .moment-kicker, :root:root .moment-bar small { font-size: 11px; }
:root:root .slide-place b, :root:root .slide-place { font-size: max(12.5px, 1em); }
:root:root .cal-wd, :root:root .cal-pill { font-size: 12px; }
@media (max-width: 899px) { :root:root .tabbar button { font-size: 11.5px; } }

/* Web (PC): search and «Overrask meg» sit right under the headline, above the slideshow */
@media (min-width: 900px) {
  html.web-build body.pc-web[data-view="home"] #homeView { grid-template-areas: "hello" "ask" "hero" "feed" "foot" !important; }
  html.web-build body.pc-web[data-view="home"] #homeView > .home-discovery { grid-area: ask !important; margin: 4px auto 20px !important; }
  html.web-build body.pc-web[data-view="home"] #homeView > .home-about { grid-area: foot; }
}

/* ===================== «Følg» + Favoritter ===================== */
.follow-btn { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px 0 8px; border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  border-radius: 999px; background: transparent; color: var(--muted); font: 750 12px/1 var(--font, sans-serif); cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s; }
.follow-btn:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.follow-btn:focus-visible { outline: 2px solid var(--dream-lilac, #a88cff); outline-offset: 2px; }
.follow-ico { display: grid; width: 15px; height: 15px; }
.follow-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: fill .2s, transform .3s cubic-bezier(.2, 1.4, .4, 1); }
.follow-btn.on { color: var(--ink); border-color: color-mix(in srgb, #e8a84c 55%, transparent); background: color-mix(in srgb, #e8a84c 12%, transparent); }
.follow-btn.on .follow-ico svg { fill: #e8a84c; stroke: #e8a84c; }
.follow-btn.pop .follow-ico svg { animation: followPop .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes followPop { 0% { transform: scale(.6) rotate(-20deg); } 60% { transform: scale(1.25) rotate(6deg); } 100% { transform: none; } }
.follow-btn.small { height: 26px; font-size: 11.5px; }
.pop-venue-info .follow-btn { margin-top: 6px; align-self: flex-start; }
.gem-popup .gem-actions .follow-btn { flex: 0 0 auto; height: auto; padding: 8px 11px 8px 9px; border-radius: 9px; }
.detail-place { position: relative; }
.detail-place > span { flex: 1; min-width: 0; }
.detail-place > .follow-btn { margin-left: 10px; align-self: flex-start; flex: 0 0 auto; }
@media (prefers-reduced-motion: reduce) { .follow-btn.pop .follow-ico svg { animation: none; } }

.cal-favs { margin: 0 0 18px; }
/* «Mine favoritter» gets the same heading as «Min kalender» */
.fav-head { padding: 18px 2px 12px; }
.fav-head small { display: block; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.fav-head h2 { margin: 4px 0 0; font: 800 30px/1.08 var(--display, sans-serif); letter-spacing: -.8px; color: var(--ink); }
.fav-card { padding: 8px 8px 6px; border-radius: 24px; background: var(--surface); box-shadow: 0 22px 50px -42px rgba(86,62,160,.72), inset 0 1px rgba(255,255,255,.045); }
.fav-card .fav-empty { margin: 8px 8px 10px; }
.fav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.fav-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-radius: 14px; transition: background .2s;
  animation: favIn .35s cubic-bezier(.2, .8, .2, 1) both; }
.fav-item:nth-child(2) { animation-delay: .04s; } .fav-item:nth-child(3) { animation-delay: .08s; } .fav-item:nth-child(n+4) { animation-delay: .12s; }
@keyframes favIn { from { opacity: 0; translate: -8px 0; } }
.fav-item:hover, .fav-item:focus-within { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.fav-open { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 6px; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; min-width: 0; border-radius: 14px; }
.fav-ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--c, #8f76e0) 20%, var(--surface)); color: var(--c, #8f76e0); }
.fav-ico .ico { width: 17px; height: 17px; }
.fav-ico.gem { --c: #e8a84c; border-radius: 9px; transform: rotate(45deg) scale(.86); font-size: 15px; }
.fav-ico.gem { font-style: normal; }
.fav-copy { display: grid; gap: 1px; min-width: 0; }
.fav-copy strong { font-size: 13.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-copy small { font-size: 12px; color: var(--muted); font-weight: 650; }
.fav-copy em { font-style: normal; font-size: 12px; color: color-mix(in srgb, var(--c, #8f76e0) 60%, var(--ink)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-gem .fav-copy em { color: var(--muted); }
.fav-x { width: 28px; height: 28px; margin-right: 4px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .2s, background .2s; }
.fav-item:hover .fav-x, .fav-item:focus-within .fav-x { opacity: 1; }
.fav-x:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink); }
@media (hover: none) { .fav-x { opacity: .7; } }
.fav-empty { margin: 0 4px 6px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.fav-empty b { color: var(--ink); font-weight: 750; }

/* PC: three columns with the two headings on one line –  MINE FAVORITTER | MIN KALENDER [I dag] | (day panel).
   The calendar keeps its width; the room comes from the day panel on the right. */
@media (min-width: 1100px) {
  #mineView { grid-template-columns: 290px minmax(0, 1.5fr) minmax(280px, 1fr) !important;
    grid-template-areas: "fav head ." "fav cal day" "fav cal next" !important; grid-template-rows: auto auto 1fr;
    column-gap: 24px !important; padding-left: max(24px, calc(50% - 700px)) !important; padding-right: max(24px, calc(50% - 700px)) !important; }
  #mineView > .cal-head { grid-area: head; }
  .cal-favs { grid-area: fav; align-self: start; position: sticky; top: 0; margin: 0; }
  .cal-favs .fav-head { padding-top: 34px; }
  .cal-favs .fav-head h2 { font-size: 40px; }
  .cal-favs .fav-card { max-height: calc(100vh - 190px); overflow-y: auto; }
}
@media (min-width: 1024px) and (max-width: 1099px) {
  #mineView { grid-template-areas: "fav fav" "head head" "cal day" "cal next" !important; }
  .cal-favs { grid-area: fav; }
  .cal-favs .fav-head h2 { font-size: 40px; }
}
/* Phones: a compact strip above the calendar – up to 3 shown, the rest scroll */
@media (max-width: 1023px) {
  .cal-favs .fav-list { max-height: 214px; overflow-y: auto; }
}
.pop-follows { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.pop-follows .follow-btn { margin-top: 0; }
.follow-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-weight: 800; }

/* ===================== Fredoka on every heading (web + app) ===================== */
@font-face { font-family: "Fredoka"; src: url(vendor/fredoka-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fredoka"; src: url(vendor/fredoka-ext-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Fredoka"; src: url(vendor/fredoka-600.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fredoka"; src: url(vendor/fredoka-ext-600.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

h1, h2, h3, h4, h5, h6,
.dialog-heading h2, .act-group-head h4, .interest-group h4, .set-card h3, #settingsBody h3,
.map-cats-head b, .map-gems-title b, .pop-venue-title, .gem-popup h3, .hype-title, .fav-head h2, .cal-head h1,
.region-head h3, .home-search-head h2, .results-dialog-head h2, #sheetSummary {
  font-family: var(--display) !important;
  letter-spacing: -.01em;
}
/* small headings read better a step lighter than the big display ones */
h4, h5, h6, .act-group-head h4, .interest-group h4, #settingsBody h3, .set-card h3, .map-cats-head b, .map-gems-title b { font-weight: 600 !important; }
