/* leika.is: one small stylesheet, system fonts, light and dark.
   This file is the "Upprunalegt" look. The other looks (static/themes/*.css, joined onto the end of
   this file by the build) only change the settings below plus a few layout rules.
   Rule: outside the :root blocks, never write a colour directly; use a setting (tests check this). */
/* Light/dark: the header toggle sets data-theme="light"; each look has its own default. */
/* The look's settings. [data-look] also matches the little previews in the look picker. */
:root, [data-look="upprunalegt"] {
  --red: #dc1e35;
  --blue: #02529c;
  --navy: #0b2545;
  --red-text: #ff7383;
  --blue-text: #74b4f2;
  --ink: #e7eaef;
  --muted: #a0aab7;
  --bg: #0f1216;
  --card: #171b21;
  --line: #2a313b;
  --soft: #13263b;
  --focus: #f5b700;
  --round: 1;                 /* multiplies every corner: 0 = square, 1.5 = extra round */
  --radius: calc(12px * var(--round));
  --pill: 999px;              /* fully round buttons and tags */
  --shadow: none;
  --shadow-pop: 0 4px 18px rgb(0 0 0 / .35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: var(--font);
  --wrap: 1120px;
  --icon-bg: var(--navy);     /* the tile behind the pixel icons */
  --on-blue: #fff;            /* text on a --blue button */
  --on-blue-muted: #dbe9f7;
  --on-focus: #1a1300;        /* text on a --focus tag */
  --dot: #8aa4c8; --dot-ring: #fff; --dot-shadow: 0 1px 3px rgba(0,0,0,.4);
  --banner-bg: #ffe58a; --banner-ink: #3d3000;
  --fs: 16px;                 /* body text size */
  --map-ring: #0f1216; --map-cluster: var(--red); --map-me: #74b4f2;   /* map markers: plain colours only */
  --map-cluster-place: #2f6fb5; --map-place: #ffffff; --map-place-ring: #1b2430;   /* places on the map */
  --chip-l: 21%;
  --chip-t: 84%;
  --chip-s: 40%;
  --free: #5fd49a; --kids: #f2c063; --warn: #ffaa5c;
  color-scheme: dark;
}
:root[data-theme="light"], [data-theme="light"] [data-look="upprunalegt"] {
  --red-text: #c0162b;
  --blue-text: #02529c;
  --ink: #15181d;
  --muted: #5a6472;
  --bg: #f5f6f8;
  --card: #ffffff;
  --line: #dde2e8;
  --soft: #eaf1f9;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 3px 10px rgb(0 0 0 / .05);
  --chip-l: 93%;
  --chip-t: 26%;
  --chip-s: 65%;
  --free: #137a46; --kids: #8a5a00; --warn: #a44f00;
  --map-ring: #ffffff;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: var(--fs)/1.5 var(--font);
}
a { color: var(--blue-text); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: calc(4px * var(--round)); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-family: var(--font-head); }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -.01em; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--card); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.n { color: var(--muted); font-size: .85em; font-variant-numeric: tabular-nums; }
.empty, .no-match { color: var(--muted); padding: 1rem 0; }

/* ---- header and footer ---- */
.preview-banner { background: var(--banner-bg); color: var(--banner-ink); text-align: center; font-size: .85rem; padding: .3rem 16px; }
.preview-banner a { color: inherit; font-weight: 600; text-decoration: underline; white-space: nowrap; }
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; padding-top: .7rem; padding-bottom: .7rem; }
.logo { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.55rem; text-decoration: none; letter-spacing: -.02em; }
.logo img { width: 40px; height: 40px; image-rendering: pixelated; display: block; }
.logo-a { color: var(--red-text); }
.logo-b { color: var(--blue-text); }
.main-nav { display: flex; gap: .25rem; flex-wrap: wrap; flex: 1 1 auto; }
.main-nav a { text-decoration: none; color: var(--ink); padding: .35rem .65rem; border-radius: var(--pill); font-weight: 550; }
.main-nav a:hover { background: var(--soft); }
.main-nav a.is-here { background: var(--soft); color: var(--blue-text); }
.main-nav a { display: inline-flex; align-items: center; gap: .35rem; }
.px-icon { display: inline-block; width: 1.25em; height: 1.25em; flex: none; background: var(--icon-bg); border-radius: calc(4px * var(--round)); padding: 1px; }
.px-icon svg, .door-icon svg { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.theme-toggle {
  font: inherit; font-size: .9rem; display: inline-flex; align-items: center; gap: .3rem; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--pill); padding: .25rem .7rem; background: var(--bg); color: var(--ink);
}
.theme-toggle:hover { border-color: var(--blue-text); }
.tt-icon { font-size: 1rem; line-height: 1; }
.footer-doors { display: flex; flex-wrap: wrap; gap: .4rem 1rem; padding-top: 1.1rem; }
.footer-doors a { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink); text-decoration: none; font-weight: 550; }
.footer-doors a:hover { color: var(--blue-text); text-decoration: underline; }
.header-search input { width: 9rem; }
.lang-switch { font-size: .9rem; text-decoration: none; border: 1px solid var(--line); border-radius: var(--pill); padding: .25rem .7rem; color: var(--ink); }
.ls-short { display: none; }
.signin { font-size: .9rem; line-height: 1.5; text-decoration: none; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--pill); padding: .25rem .55rem; color: var(--ink); }
.signin:hover, .lang-switch:hover { border-color: var(--blue-text); }
.si-icon { display: inline-block; width: 1rem; height: 1rem; color: var(--blue-text); }
.si-icon svg { display: block; width: 100%; height: 100%; }
.signin::after { content: "\200b"; } /* a line of text, so it is as tall as the language button */
input[type="search"], select, .big-search input {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: calc(8px * var(--round)); padding: .4rem .6rem; min-height: 2.4rem;
}
.site-footer { margin-top: 3rem; border-top: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: .9rem; }
.footer-grid { padding-top: 1.25rem; padding-bottom: 1.5rem; }
.footer-grid p { margin: .35rem 0; }
.footer-grid .disclaimer { font-size: .85rem; }

main { padding-top: 1.25rem; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: .75rem; }
.crumbs a { color: var(--muted); }
.page-head { margin: .25rem 0 1.25rem; }
.page-head .lead { color: var(--muted); font-size: 1.08rem; max-width: 46rem; margin: 0; }
.page-head h1 { display: flex; align-items: center; gap: .6rem; }
.page-head .door-icon { width: 2.4rem; height: 2.4rem; background: var(--icon-bg); border-radius: calc(10px * var(--round)); padding: 4px; flex: none; }

/* ---- front page: headline, 8 doors, tools ---- */
.home-head { text-align: center; margin: .75rem auto 1.5rem; max-width: 46rem; }
.home-head h1 { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .3rem; }
.home-head .lead { color: var(--muted); font-size: 1.08rem; margin: 0 0 1.1rem; }
.home-head .slogan { display: block; font-size: clamp(1.15rem, 3.4vw, 1.6rem); font-weight: 700; letter-spacing: 0; color: var(--red-text); margin-top: .25rem; }
.home-head .big-search { margin: 0; }
.doors { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin: 0 0 1rem; }
.door {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr; gap: .15rem .85rem; align-items: start;
  padding: 1rem 1.05rem; border-radius: calc(16px * var(--round)); background: var(--card); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow); min-height: 7.5rem;
}
.door-icon { grid-row: 1 / span 3; width: 3.6rem; height: 3.6rem; background: var(--icon-bg); border-radius: calc(12px * var(--round)); padding: 6px; display: block; }
.door-word { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.door-tag { font-size: .86rem; color: var(--muted); line-height: 1.35; }
.door-count { font-size: .78rem; color: var(--muted); align-self: end; }
.door:hover { border-color: var(--blue-text); }
.door:hover .door-word { color: var(--blue-text); }
.door:focus-visible { outline-offset: 3px; }
.tools { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem; }
.tools a {
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: var(--pill);
  background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600;
}
.tools a:hover { border-color: var(--blue-text); color: var(--blue-text); }
.tools .px-icon { width: 1.4em; height: 1.4em; }
.tools .emoji { font-size: 1.1em; line-height: 1; }
.home-cats-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.home-cat-group h3 a { display: inline-flex; align-items: center; gap: .45rem; }
/* /gera/ */
.page-gera .page-head h1 { display: flex; align-items: center; gap: .6rem; }
.gera-popular h2, .page-gera .home-regions h2 { font-size: 1.15rem; margin: 1.4rem 0 .6rem; }
.gera-more .lead { color: var(--muted); margin: -.3rem 0 .8rem; }
/* section pages: a heading over each group (Fjör), and the information categories at the foot */
.cat-group h2 { font-size: 1.15rem; margin: 1.6rem 0 .6rem; }
.cat-group:first-of-type h2 { margin-top: .4rem; }
.cat-more { margin-top: 2rem; padding: .9rem 1.1rem; border: 1px dashed var(--line); border-radius: var(--radius); }
.cat-more h2 { font-size: 1rem; margin: 0 0 .5rem; color: var(--muted); }
.cat-more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.cat-more li a { font-weight: 600; }
.cat-more .more-desc { display: block; font-size: .85rem; color: var(--muted); }
/* region pages: "Viðburðir" and "Gera" */
.region-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.region-tabs a {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1.1rem; border-radius: var(--pill);
  background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.05rem;
}
.region-tabs a:hover { border-color: var(--blue-text); }
.region-tabs a[aria-current] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); color: var(--blue-text); }
.region-tabs .px-icon { width: 1.4em; height: 1.4em; }
.region-tabs .n { font-weight: 600; color: var(--muted); font-size: .9rem; }
.cinema-link a + a { margin-left: 1rem; }

/* ---- map page ---- */
.map-filters .map-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.map-filters .near { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-left: auto; }
.map-status { margin: .5rem 0 0; color: var(--muted); font-size: .92rem; min-height: 1.3em; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.map { height: min(68vh, 640px); min-height: 360px; }
.map noscript p { padding: 1.5rem; }
.map-list-wrap { margin-top: 1.5rem; }
.map-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.map-item { background: var(--card); border: 1px solid var(--line); border-radius: calc(10px * var(--round)); padding: .65rem .85rem; }
.map-item p { margin: 0 0 .2rem; }
.map-item .ev-title { font-weight: 650; }
.map-item .ev-meta { font-size: .88rem; color: var(--muted); }
.map-item .ev-badges { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin: .3rem 0 0; }
.map-item .approx { font-size: .75rem; color: var(--muted); font-style: italic; }
.map-list .more, .map-list .empty { grid-column: 1 / -1; list-style: none; }
.map-popup .events { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; max-height: 300px; overflow: auto; }
.map-popup .map-item { border: 0; padding: .2rem 0; background: none; }
/* Kort and Listi, which turn the map or the lists off (one always stays) */
.map-top { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0 0 .75rem; }
.map-view { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--pill); overflow: hidden; }
.map-view button {
  font: inherit; font-weight: 650; border: 0; background: var(--bg); color: var(--ink); padding: .45rem 1.05rem;
  cursor: pointer; display: inline-flex; align-items: center; gap: .45rem;
}
.map-view button + button { border-left: 1px solid var(--line); }
.map-view .px-icon { width: 1.25em; height: 1.25em; }
.map-view button { font-weight: 550; color: var(--muted); }
.map-view button[aria-pressed="true"] { background: var(--soft); color: var(--ink); }
.map-view button[aria-pressed="true"]::before { content: "✓"; font-weight: 700; color: var(--blue-text); }
.map-view button[aria-disabled="true"] { cursor: default; }
.map-wrap[hidden], .map-list-wrap[hidden], .map-card-body[hidden] { display: none; }
/* a card is its layer's switch: picked, it has its colour all round and its filters open; not picked, it is only
   its title, greyed, and a click anywhere on it picks it */
.card-pick { all: unset; display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; }
.card-pick:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 3px; border-radius: 4px; }
.pick-cue {
  margin-left: .2rem; font-size: .78rem; font-weight: 600; white-space: nowrap; color: var(--blue-text);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--pill); padding: .1rem .6rem;
}
.card-pick:hover .pick-cue, .map-card.is-off:hover .pick-cue { border-color: var(--blue-text); }
.card-pick[aria-pressed="true"] .when-off, .card-pick[aria-pressed="false"] .when-on { display: none; }
.map-card:not(.is-off) { border-color: var(--card-top); box-shadow: inset 0 0 0 1px var(--card-top); }
.map-card.is-off { cursor: pointer; background: transparent; border-top-width: 1px; padding-bottom: .6rem; }
.map-card.is-off .map-card-head { margin-bottom: 0; }
.map-card.is-off .card-pick { color: var(--muted); }
.map-card.is-off .map-key { opacity: .45; }
.map-card.is-off:hover { border-color: var(--card-top); }
.map-none-layers { margin: .6rem 0 0; color: var(--muted); font-size: .92rem; }
.map-none-layers[hidden] { display: none; }
.map-part[hidden], .map-list-part[hidden] { display: none; }
/* the two cards: Viðburðir and Gera side by side (one fills the row when the other is hidden),
   each topped with the colour of its clusters on the map */
.map-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: .75rem; margin-top: .75rem; align-items: start; }
.map-card {
  border: 1px solid var(--line); border-top: 4px solid var(--card-top); border-radius: var(--radius);
  background: var(--bg); padding: .6rem .85rem .75rem; min-width: 0;
}
.map-card-events { --card-top: var(--map-cluster); }
.map-card-places { --card-top: var(--map-cluster-place); }
.map-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem .8rem; margin: 0 0 .55rem; }
.map-card-head h2 { margin: 0; font-size: 1.05rem; display: inline-flex; align-items: center; gap: .45rem; }
.map-key { width: .8rem; height: .8rem; border-radius: 50%; background: var(--card-top); flex: none; }
.map-card-n { color: var(--muted); font-size: .88rem; }
.map-card fieldset, .map-card .map-dates { margin-bottom: .5rem; }
.map-card fieldset { min-width: 0; }  /* a fieldset is as wide as its content otherwise, and the phone's one-row chips would widen the page */
.map-card .map-dates .date-range { margin-left: 0; }
.filters .map-secs button {
  font: inherit; font-size: .9rem; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: var(--pill); padding: .28rem .75rem .28rem .5rem; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem;
}
.filters .map-secs button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.map-secs .px-icon { width: 1.2em; height: 1.2em; }
.map-search input {
  font: inherit; min-width: 15rem; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: var(--pill);
  background: var(--bg); color: var(--ink);
}
.map-list-part + .map-list-part { margin-top: 1.75rem; }
.map-popup { max-height: 360px; overflow: auto; }
.map-popup .events, .map-popup .places { max-height: none; overflow: visible; }
.map-popup .places { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.map-popup .places + .events, .map-popup .map-item + .map-item { border-top: 1px solid var(--line); padding-top: .45rem; }
.map-place .pl-desc { font-size: .86rem; margin: .25rem 0; }
.pl-next { font-size: .86rem; margin: .3rem 0 0; }
.pl-next-h { font-weight: 650; margin: 0; }
.pl-next ul { margin: .1rem 0 0; padding-left: 1.1rem; }
.pl-next .w { color: var(--muted); }
.map-dir { font-size: .86rem; margin: .35rem 0 0; }
/* "Sýna á korti" on category, section, region and /gera/ pages */
.map-link-row { margin: .5rem 0 0; }
.map-link {
  display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .9rem .35rem .6rem; border-radius: var(--pill);
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 650; text-decoration: none;
}
.map-link:hover { border-color: var(--blue-text); color: var(--blue-text); }
.map-link .px-icon { width: 1.3em; height: 1.3em; }
.maplibregl-popup-content { background: var(--card) !important; color: var(--ink); border-radius: calc(10px * var(--round)) !important; box-shadow: var(--shadow-pop) !important; }
.maplibregl-popup-tip { border-top-color: var(--card) !important; border-bottom-color: var(--card) !important; }
.maplibregl-popup-close-button { color: var(--ink); font-size: 1.2rem; }

.big-search { display: flex; gap: .5rem; margin: 0 0 1.5rem; }
.big-search input { flex: 1; font-size: 1.05rem; min-height: 2.9rem; background: var(--card); }
.big-search button, .btn-primary {
  font: inherit; font-weight: 600; border: 0; border-radius: calc(8px * var(--round)); padding: .55rem 1.1rem;
  background: var(--blue); color: var(--on-blue); cursor: pointer; min-height: 2.6rem;
}
.big-search button:hover, .btn-primary:hover { filter: brightness(1.12); }
.btn-link { font: inherit; background: none; border: 0; color: var(--blue-text); text-decoration: underline; cursor: pointer; padding: .3rem; }

/* ---- "Hvað á ég að gera?" ---- */
.wtd { background: var(--soft); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.75rem; }
.wtd-head h2 { margin-bottom: .15rem; }
.wtd-head p { margin: 0 0 .75rem; color: var(--muted); }
/* "Uppgötvaðu eitthvað nýtt": things to do flicking past before the idea comes up (static/leika.js whatToDo) */
.wtd-shuffle { margin: .3rem 0; font-size: 2.4rem; line-height: 1; display: inline-block; animation: wtd-pop .17s ease-in-out infinite alternate; }
@keyframes wtd-pop { from { transform: translateY(0) scale(1); } to { transform: translateY(-4px) scale(1.12); } }
.wtd-spoken { margin: 0 0 .2rem; font-weight: 700; }
#wtd-go:disabled { opacity: .7; cursor: progress; }
/* Labels always above their box. Wide: the three boxes and the button in one row. Medium: the boxes
   in a row, "Með börn" and the button under them. Narrow and phones: one box per row. */
.wtd-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: .6rem .9rem; align-items: end; }
.wtd-field { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.wtd-label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.wtd-controls select { width: 100%; background: var(--card); }
.wtd-controls select:disabled { opacity: .55; cursor: not-allowed; }
.wtd-act { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; min-height: 2.4rem; }
@media (max-width: 1080px) {
  .wtd-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wtd-act { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wtd-controls { grid-template-columns: minmax(0, 1fr); }
  .wtd-act #wtd-go { width: 100%; }
}
.check { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; }
.wtd-result:empty { display: none; }
.wtd-result { margin-top: .9rem; background: var(--card); border-radius: calc(10px * var(--round)); padding: .9rem 1rem; box-shadow: var(--shadow); }
.wtd-weather { font-size: .92rem; color: var(--muted); margin: 0 0 .4rem; }
.wtd-title { font-size: 1.2rem; font-weight: 700; }
.wtd-desc { margin: .3rem 0 .6rem; }
.wtd-result .btn-link { padding-left: 0; }

/* ---- event lists ---- */
.strips { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; margin-bottom: 1.5rem; }
.strip { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem .4rem; }
.strip h2 a { color: inherit; text-decoration: none; }
.strip-date { font-size: .9rem; font-weight: 400; color: var(--muted); margin-left: .35rem; }
.more { margin: .6rem 0 .8rem; font-weight: 550; }
ul.events { list-style: none; margin: 0; padding: 0; }
li.ev { display: grid; grid-template-columns: 8.5rem 1fr; gap: .2rem 1rem; padding: .65rem 0; border-top: 1px solid var(--line); }
li.ev:first-child { border-top: 0; }
.compact li.ev { grid-template-columns: 6.5rem 1fr; padding: .5rem 0; }
.ev-when { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); font-size: .95rem; }
.ev-day { display: block; font-weight: 500; color: var(--muted); font-size: .85rem; }
.more-times { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.ev-times time.x { display: none; }
.ev-times time:not(.x) ~ time:not(.x)::before { content: " · "; font-weight: 400; color: var(--muted); }
.ev-ongoing { font-weight: 500; color: var(--muted); font-size: .88rem; }
.ev-title { font-weight: 650; color: var(--ink); text-decoration: none; }
.ev-title:hover { text-decoration: underline; color: var(--blue-text); }
.ev-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; font-size: .86rem; color: var(--muted); margin-top: .15rem; }
.is-cancelled .ev-title { text-decoration: line-through; color: var(--muted); }
.price { white-space: nowrap; }

.chip {
  --h: 210;
  display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap;
  font-size: .8rem; font-weight: 600; line-height: 1.2; border-radius: var(--pill); padding: .18rem .55rem;
  background: hsl(var(--h) var(--chip-s) var(--chip-l)); color: hsl(var(--h) 60% var(--chip-t));
  border: 1px solid transparent;
}
.c-tonlist { --h: 268; } .c-leikhus { --h: 352; } .c-dans { --h: 318; } .c-uppistand { --h: 28; }
.c-fjolskylda { --h: 130; } .c-hatid { --h: 45; } .c-ithrottir { --h: 175; } .c-bio { --h: 220; }
.c-namskeid { --h: 15; } .c-list { --h: 245; } .c-fyrirlestur { --h: 75; } .c-annad { --h: 210; }
.badge { font-size: .76rem; font-weight: 650; border-radius: calc(4px * var(--round)); padding: .1rem .4rem; border: 1px solid currentColor; white-space: nowrap; }
.b-soldout, .b-cancelled { color: var(--red-text); }
.b-free { color: var(--free); } .b-likely { border-style: dashed; font-weight: 600; cursor: help; } .b-kids { color: var(--kids); } .b-postponed, .b-moved, .b-few { color: var(--warn); }
.b-fixed { color: var(--muted); border-style: dotted; cursor: help; }

/* ---- calendar page ---- */
.cinema-link { margin: .5rem 0 0; font-weight: 600; }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: 1.25rem; }
/* the calendar's filters: one row per group (Hvenær, Tegund, Nánar), its name on the left (above it on a phone) */
.f-group { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .35rem .9rem; align-items: start; padding: .65rem 0; border-top: 1px solid var(--line); }
.f-group:first-child { border-top: 0; padding-top: .1rem; }
.f-group[hidden] { display: none; }
.cal-filters.is-day .f-group[data-group="type"] { border-top: 0; padding-top: .1rem; }
.f-region { display: inline-flex; align-items: center; gap: .4rem; }
.f-region[hidden] { display: none; }
.region-chip { font: inherit; font-size: .9rem; font-weight: 600; display: inline-flex; align-items: center; gap: .1rem; padding: .3rem .75rem;
  border-radius: var(--pill); border: 1px solid var(--blue); background: var(--blue); color: var(--on-blue); cursor: pointer; }
.region-chip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* the calendar's head: the region map (its region filter) beside the title, under it on a phone */
.head-calendar.has-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: .75rem 2rem; align-items: start; }
.head-map .region-picker { margin: 0; max-width: none; }
.head-map .rmap-tools { justify-content: center; text-align: center; font-size: .8rem; margin-top: .1rem; }
.head-map .rl { font-size: 34px; }
.head-map .rl .ct { font-size: 27px; }
@media (max-width: 760px) {
  .head-calendar.has-map { grid-template-columns: minmax(0, 1fr); }
  .head-map .region-picker { max-width: 26rem; margin-inline: auto; }
}
.f-label { font-size: .8rem; font-weight: 700; letter-spacing: .02em; color: var(--muted); padding-top: .4rem; }
.f-items { min-width: 0; }
.f-items .when, .f-items.types { display: flex; flex-wrap: wrap; gap: .4rem; }
.f-items .date-range { margin: .55rem 0 0; }
.date-range[hidden] { display: none; }
.filters .when .f-dates { color: var(--blue-text); font-weight: 600; background: var(--card); }
.filters .when .f-dates[aria-expanded="true"] { background: var(--soft); border-color: var(--blue-text); }
.filters .when .f-dates.is-active { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.f-search input { width: 100%; font: inherit; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: var(--pill); background: var(--bg); color: var(--ink); }
.f-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem 1rem; padding-top: .55rem; border-top: 1px solid var(--line); }
.f-foot .filter-count { margin: 0; }
.f-foot .btn-link { margin-left: auto; }
@media (max-width: 640px) {
  .f-group { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .f-label { padding-top: 0; }
}
/* Dagatal or Listi, over the calendar */
.cal-top { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0 0 .75rem; }
.cal-view { display: inline-flex; border: 1px solid var(--line); border-radius: var(--pill); overflow: hidden; }
.cal-view[hidden] { display: none; }
.cal-view button { font: inherit; font-size: .95rem; font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem 1rem; border: 0; background: var(--card); color: var(--ink); cursor: pointer; }
.cal-view button + button { border-left: 1px solid var(--line); }
.cal-view button[aria-pressed="true"] { background: var(--blue); color: var(--on-blue); }
.cal-view .px-icon { width: 1.25em; height: 1.25em; }
/* the month: a day shows how many events match; on a wide screen also the first few, in their colours */
.cal-month { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem; margin: 0 0 1.25rem; }
.cal-month[hidden] { display: none; }
.cal-month.is-loading .calm-grid { opacity: .55; }
.calm-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 0 0 .6rem; }
.calm-title { margin: 0; font-size: 1.2rem; }
.calm-nav { font: inherit; font-size: 1.35rem; line-height: 1; width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.calm-nav:hover:not(:disabled) { border-color: var(--blue-text); }
.calm-nav:disabled { opacity: .3; cursor: default; }
.calm-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.calm-wd { font-size: .76rem; font-weight: 700; color: var(--muted); text-align: center; padding: .1rem 0 .2rem; text-transform: capitalize; }
.calm-day {
  font: inherit; color: var(--ink); text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: .1rem;
  min-width: 0; min-height: 3.5rem; padding: .3rem .35rem; overflow: hidden; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); border-radius: calc(.5rem * var(--round));
}
.calm-day:hover:not(:disabled) { border-color: var(--blue-text); }
.calm-day:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.calm-day:disabled { cursor: default; background: transparent; }
.calm-day.is-past { opacity: .4; }
.calm-day.no-ev .calm-n { color: var(--muted); font-weight: 500; }
.calm-day.is-today { border: 2px solid var(--blue-text); }
.calm-day.is-on { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.calm-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 .3rem; width: 100%; }
.calm-n { font-weight: 700; font-size: .95rem; line-height: 1.1; }
.calm-word { display: none; }
.calm-day.unknown .calm-n { color: var(--muted); }
.calm-count { font-size: .74rem; font-weight: 650; color: var(--blue-text); }
.calm-day.is-on .calm-count, .calm-day.is-on .calm-more { color: var(--on-blue-muted); }
.calm-dots { display: flex; flex-wrap: wrap; gap: 2px; margin-top: auto; }
.calm-dots i { width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--h) 60% var(--chip-t)); }
.calm-day.is-on .calm-dots i { box-shadow: 0 0 0 1px var(--on-blue); }
.calm-items { display: none; }
.calm-hint { margin: .6rem 0 0; font-size: .85rem; color: var(--muted); }
@media (min-width: 860px) {
  .calm-day { min-height: 7rem; padding: .35rem .45rem; }
  .calm-dots { display: none; }
  .calm-word { display: inline; font-weight: 500; }
  .calm-items { display: flex; flex-direction: column; gap: 2px; width: 100%; margin-top: .1rem; }
  .calm-it { display: block; font-size: .74rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    border-left: 3px solid hsl(var(--h) 60% var(--chip-t)); padding-left: .3rem; }
  .calm-more { font-size: .72rem; font-weight: 650; color: var(--muted); }
}
.filters fieldset { border: 0; margin: 0 0 .6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.cal-filters .filter-row { gap: .5rem 1rem; }
.filters .when button {
  font: inherit; font-size: .92rem; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: var(--pill); padding: .3rem .8rem; cursor: pointer;
}
.filters .when button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.filters .types button.chip { cursor: pointer; font-family: inherit; font-size: .84rem; padding: .3rem .65rem; opacity: .75; }
.filters .types button.chip[aria-pressed="true"] { opacity: 1; border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.filters .types button.chip:hover { opacity: 1; }
.filter-row { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; font-size: .92rem; }
.filter-row label { display: inline-flex; align-items: center; gap: .4rem; }
.filter-row .grow { flex: 1 1 12rem; }
.filter-row .grow input { flex: 1; min-width: 0; }
.filter-count { margin: .5rem 0 0; font-size: .88rem; color: var(--muted); }
.filter-count:empty { display: none; }
.sub-nav { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .7rem; }
.sub-nav a { text-decoration: none; font-size: .9rem; border: 1px solid var(--line); border-radius: var(--pill); padding: .2rem .7rem; background: var(--bg); color: var(--ink); }
.sub-nav a:hover { border-color: var(--blue-text); }
.day { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1.1rem .3rem; margin-bottom: 1rem; }
.day h2 { font-size: 1.1rem; position: sticky; top: 0; background: var(--card); padding: .2rem 0 .4rem; margin: 0; z-index: 1; }
.months ul, .feed-links, .region-list, .fest-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.months { margin: 2rem 0 1rem; }
.subscribe { background: var(--soft); border-radius: var(--radius); padding: 1rem 1.2rem; margin-top: 1.5rem; }
.subscribe p { margin: 0 0 .5rem; }
.subscribe details { margin-top: .6rem; }
.subscribe summary { cursor: pointer; font-weight: 600; }
.subscribe details ul { margin-top: .4rem; }

/* ---- cinema ---- */
.day-pick { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.day-pick a {
  font-size: .92rem; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: var(--pill); padding: .3rem .8rem; text-decoration: none; white-space: nowrap;
}
.day-pick a[aria-current="true"] { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
/* Sports on /ithrottir/: chips that pick a sport, and the cards about it */
.sport-pick { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 1.25rem; }
.sport-pick-h { font-weight: 600; font-size: .92rem; margin-right: .2rem; }
.sport-chip {
  font-size: .9rem; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: var(--pill); padding: .25rem .75rem; text-decoration: none; white-space: nowrap;
}
.sport-chip:hover { border-color: var(--blue-text); }
.sport-chip[aria-current="true"] { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.sport-chip[aria-current="true"] .n { color: inherit; }
.more-sports { display: contents; }
.more-sports summary { font-size: .9rem; color: var(--blue-text); cursor: pointer; padding: .25rem .5rem; list-style: none; }
.more-sports summary::-webkit-details-marker { display: none; }
.more-sports summary::after { content: " ▾"; }
.more-sports[open] summary::after { content: " ▴"; }
.sport-results { margin-bottom: 2rem; }
.sport-results h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .9rem; font-size: 1.3rem; }
.sport-clear { font-size: .9rem; font-weight: 400; }
.sport-all { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.sport-all h3 { font-size: 1.05rem; margin: 0 0 .75rem; color: var(--muted); }
/* "Leikhús í dag" strip under a directory page's heading, and the place filter it opens on the calendar */
.day-shortcut { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 1.25rem; }
.day-shortcut a {
  font-size: .95rem; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: var(--pill); padding: .3rem .85rem; text-decoration: none;
}
.day-shortcut a:hover { border-color: var(--blue-text); }
.day-shortcut .sc-main { background: var(--blue); border-color: var(--blue); color: var(--on-blue); font-weight: 600; }
.day-shortcut .sc-main .n { color: inherit; font-weight: 400; opacity: .9; }
.day-shortcut .sc-main::after { content: " →"; }
.place-pick { margin: .2rem 0 .6rem; font-size: .92rem; }
.place-pick [data-place-label] { font-weight: 600; }
.film-day { margin-bottom: 1.5rem; }
.film-day-h { font-size: 1.15rem; margin: 0 0 .6rem; }
.film-day-h .n { font-weight: 400; font-size: .9rem; color: var(--muted); }
.films { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.film { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.film h2, .film h3, .film h4 { font-size: 1.08rem; margin: 0; }
.film .times { display: flex; flex-wrap: wrap; gap: .3rem; margin: .45rem 0 0; }
.film dl { margin: 0; }
.film dt { font-weight: 600; font-size: .9rem; margin-top: .45rem; }
.film dd { margin: .2rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.showtime { font-variant-numeric: tabular-nums; font-size: .9rem; border: 1px solid var(--line); border-radius: calc(6px * var(--round)); padding: .1rem .45rem; text-decoration: none; }
.showtime:hover { border-color: var(--blue-text); }
.showtime.is-past { opacity: .4; text-decoration: line-through; }
.source-note { color: var(--muted); font-size: .85rem; margin-top: 1rem; }
.cinema-teaser a {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .9rem; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1.1rem;
  text-decoration: none; color: var(--ink); margin-bottom: 1.75rem;
}
.ct-icon { grid-row: span 2; font-size: 2rem; }
.ct-title { font-weight: 700; font-size: 1.1rem; }
.ct-sub { color: var(--muted); font-size: .92rem; }
.cinema-teaser a:hover .ct-title { text-decoration: underline; color: var(--blue-text); }

/* ---- directory ---- */
.cat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.cat-card {
  display: flex; flex-direction: column; gap: .3rem; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.1rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
}
.cat-card:hover { border-color: var(--blue-text); }
.section-leikari .cat-card:hover { border-color: var(--red-text); }
.cat-icon { font-size: 1.7rem; }
.cat-title { font-weight: 700; font-size: 1.1rem; }
.cat-desc { color: var(--muted); font-size: .93rem; }
.cat-count { font-size: .85rem; color: var(--blue-text); font-weight: 600; }
.section-leikari .cat-count { color: var(--red-text); }
.cat-subs { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .2rem; }
.cat-subs span { font-size: .76rem; background: var(--bg); border-radius: var(--pill); padding: .05rem .5rem; color: var(--muted); }
.sub { margin-bottom: 1.75rem; }
.sub > h2, .sub > h3 { border-bottom: 2px solid var(--line); padding-bottom: .3rem; }
.sub > h3 a { color: var(--ink); text-decoration: none; }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; display: flex; flex-direction: column; gap: .35rem; }
.card h3 { margin: 0; font-size: 1.04rem; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { margin: 0; font-size: .93rem; }
.card.is-featured { border: 2px solid var(--blue-text); }
.card:target { outline: 3px solid var(--focus); }
/* "Vantar eitthvað?": the last tile on a category page, in another colour, to the form on /minn/ */
.missing-tile { display: flex; flex-direction: column; gap: .35rem; min-height: 9rem; padding: .9rem 1rem; background: var(--soft); border: 2px dashed var(--blue-text); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.missing-tile strong { font-size: 1.04rem; color: var(--blue-text); }
.missing-tile span { font-size: .93rem; }
.missing-tile .missing-mark { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--blue); color: var(--on-blue); font-size: 1.3rem; font-weight: 700; line-height: 1; }
.missing-tile .missing-go { margin-top: auto; font-weight: 600; color: var(--blue-text); }
.missing-tile:hover { border-style: solid; }
.missing-tile:hover .missing-go { text-decoration: underline; }
.missing-tile:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* the slimmer one at the foot of a region page's panel */
.missing-tile.is-row { display: grid; grid-template-columns: auto 1fr; gap: .1rem .75rem; min-height: 0; margin: .75rem 0 .5rem; }
.missing-tile.is-row .missing-mark { grid-row: span 3; }
.missing-tile.is-row .missing-go { margin-top: .1rem; }
.facts { list-style: none; margin: auto 0 0; padding: .3rem 0 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.facts li { font-size: .75rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--pill); padding: .05rem .5rem; color: var(--muted); }
.facts .fact-kids { color: var(--kids); }
.made-by, .store-links { font-size: .86rem !important; color: var(--muted); }
.cards.compact { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.cards.compact .card p { font-size: .88rem; }
.fest-when { font-weight: 600; color: var(--blue-text); font-size: .9rem !important; }

/* ---- region picker: a small map of Iceland (macros.html region_map) ---- */
.region-picker { margin: .5rem 0 1.5rem; max-width: 600px; }
.region-picker.rp-small { max-width: 480px; }
/* on a region page the map stands alone over the two parts: centred, its tools under it too */
.page-region .region-picker { margin-inline: auto; }
.page-region .rmap-tools { justify-content: center; text-align: center; }
.rmap { display: block; width: 100%; height: auto; overflow: visible; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.rmap a { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rmap a:focus { outline: none; }
.rmap-hit path { fill: none; stroke: transparent; stroke-width: 24; stroke-linejoin: round; pointer-events: stroke; }
/* the land: a soft green that stands apart from the page in every look, white seams between the regions (as thin
   on a small map as on a big one) and a darker coast round the island (#rmap-coast in the map: the land grown a
   little, in this colour, under it) */
.region-picker {
  --land: color-mix(in srgb, var(--free) 16%, var(--card));
  --land-hover: color-mix(in srgb, var(--free) 32%, var(--card));
}
.rmap-land { filter: url(#rmap-coast); }
.rmap-coast { flood-color: color-mix(in srgb, var(--free) 60%, var(--card)); }
.rg path { fill: var(--land); stroke: var(--card); stroke-width: 1.4px; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: fill .12s ease; }
.rg:hover path { fill: var(--land-hover); }
.rg:focus-visible path { fill: var(--land-hover); stroke: var(--blue-text); stroke-width: 3px; }
.rg.is-here path, .rg.is-picked path { fill: var(--blue); }
.is-multi .rg.is-here:not(.is-picked) path { fill: var(--land); }
.rg-bubble circle { fill: var(--bg); stroke: var(--blue-text); stroke-width: 2.5; }
.rg-bubble:hover circle { fill: var(--soft); }
.rmap-lead { fill: none; stroke: var(--blue-text); stroke-width: 2.5; stroke-dasharray: 6 5; pointer-events: none; }
.rl { font-size: 30px; font-weight: 650; fill: var(--ink); paint-order: stroke; stroke: var(--card); stroke-width: 6px; stroke-linejoin: round; pointer-events: none; }
.rl .ct { font-size: 23px; font-weight: 450; fill: var(--muted); }
.rl.on { fill: var(--on-blue); stroke: var(--blue); }
.rl.on .ct { fill: var(--on-blue-muted); }
.rg-bubble .rl { pointer-events: auto; stroke: var(--bg); }
.rg-bubble .rl.on { stroke: var(--blue); }
.rmap-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; margin-top: .35rem; font-size: .86rem; color: var(--muted); }
.rmap-more[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.hint-mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .hint-touch { display: none; } .hint-mouse { display: inline; } }
.rmap-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin-top: .5rem; padding: .55rem .8rem; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--radius); background: var(--card); }
.rmap-bar[hidden], .rmap-tools[hidden] { display: none; }
.rmap-go { font-weight: 600; }
.rmap-clear { margin-left: auto; }
.regions-layout { display: grid; gap: 0 2.5rem; }
@media (min-width: 900px) { .regions-layout { grid-template-columns: minmax(0, 600px) minmax(14rem, 1fr); align-items: start; } .regions-layout .region-list { margin-top: .5rem; } }
.region-list li { width: 100%; }

/* ---- region pages: each part in its own framed panel, told apart by the colour on top ---- */
/* Gera and Viðburðir side by side on a wide screen, one above the other on a phone; one alone (its tab)
   takes the full width */
.region-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 25rem), 1fr)); gap: 0 1.5rem; align-items: start; }
.region-parts > .tab-part { min-width: 0; }
.region-parts > .tab-part[hidden] { display: none; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--panel-top, var(--blue-text));
  border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1.5rem; overflow: hidden;
}
.panel-festivals { --panel-top: var(--focus); }
.panel-listings { --panel-top: var(--red-text); }
/* "Hvar sem er á landinu": nationwide and online things, under the region's own */
.panel-anywhere { --panel-top: var(--blue-text); }
.panel-lead { margin: 0; padding: .6rem 1.1rem 0; color: var(--muted); font-size: .92rem; }
.panel-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem 1rem;
  padding: .75rem 1.1rem .65rem; background: var(--soft); border-bottom: 1px solid var(--line);
}
.panel-head h2 { margin: 0; display: inline-flex; align-items: center; gap: .5rem; }
.panel-head .px-icon { width: 1.4rem; height: 1.4rem; flex: none; }
.panel-emoji { font-size: 1.15em; line-height: 1; }
.panel-link { font-weight: 550; font-size: .92rem; }
.panel-body { padding: .35rem 1.1rem .5rem; }
.panel-body > .empty { margin: .6rem 0; }
.panel-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; }
/* the count on the right of a panel's head */
.panel-sum { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin-left: auto; }
.panel-sum .n { color: var(--muted); font-size: .9rem; }
.panel > .panel-tools { padding: .6rem 1.1rem 0; }
.panel > .panel-tools:has(.fold-all[hidden]) { display: none; }
.panel-more { margin: 0; padding: 0 1.1rem .8rem; font-weight: 550; font-size: .92rem; }
/* folded categories: one row each (name, count, "Sýna ▾"), opened one by one or all at once */
.fold-list { padding-top: .2rem; padding-bottom: .2rem; }
.fold + .fold { border-top: 1px solid var(--line); }
.fold > summary {
  display: flex; align-items: center; gap: .6rem; padding: .6rem 0; cursor: pointer; list-style: none; font-weight: 600;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold-title { flex: 1 1 auto; min-width: 0; }
.fold > summary:hover .fold-title { color: var(--blue-text); }
.fold > summary .n { font-weight: 500; }
.fold-cue, .fold-all {
  flex: none; font: inherit; font-size: .85rem; font-weight: 600; white-space: nowrap; color: var(--blue-text);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--pill); padding: .15rem .7rem;
}
.fold-all { cursor: pointer; padding: .3rem .9rem; }
.fold-all:hover, .fold > summary:hover .fold-cue { border-color: var(--blue-text); }
.fold[open] > summary .fold-cue, .fold-all[aria-expanded="true"] { background: var(--soft); }
.fold .when-open, .fold-all .when-open { display: none; }
.fold[open] > summary .when-open, .fold-all[aria-expanded="true"] .when-open { display: inline; }
.fold[open] > summary .when-closed, .fold-all[aria-expanded="true"] .when-closed { display: none; }
.fold-body { padding: .2rem 0 .4rem; }
.fold-body .more { margin: .7rem 0 .5rem; }
.panel .card { background: var(--bg); }
.fest-grid {
  list-style: none; margin: 0; padding: .9rem 1.1rem; display: grid; gap: .6rem 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}
.fest-grid li { display: flex; flex-direction: column; padding-left: .7rem; border-left: 3px solid var(--line); }
.fest-grid a { font-weight: 600; }
.fest-grid .n { font-size: .85rem; }

/* ---- front page lower part ---- */
.featured, .home-regions { margin-bottom: 1.75rem; }
.home-regions h2 a { color: inherit; text-decoration: none; }
.home-cats { margin-top: 1.5rem; }
.home-cat-group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; }
.home-cat-group h3 { font-size: 1.15rem; }
.group-leikari h3 a { color: var(--red-text); }
.home-cat-group ul { list-style: none; padding: 0; margin: 0; }
.home-cat-group li { padding: .22rem 0; }
.home-cat-group li a { color: var(--ink); text-decoration: none; }
.home-cat-group li a:hover { color: var(--blue-text); text-decoration: underline; }

/* ---- search and about ---- */
.search-count { color: var(--muted); }
.search-results { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.search-results li { background: var(--card); border: 1px solid var(--line); border-radius: calc(10px * var(--round)); padding: .7rem .9rem; }
.search-results .r-title { font-weight: 650; }
.search-results .r-cat { font-size: .8rem; color: var(--muted); margin-left: .4rem; }
.search-results p { margin: .2rem 0 0; font-size: .92rem; }
.search-results .r-where { font-size: .85rem; }
.prose { max-width: 46rem; }
.prose pre { background: var(--card); border: 1px solid var(--line); border-radius: calc(8px * var(--round)); padding: .6rem .8rem; overflow-x: auto; font-size: .88rem; }
.prose h2 { margin-top: 1.8rem; }

/* ---- narrow screens ---- */
@media (max-width: 900px) {
  .strips, .home-cats-grid { grid-template-columns: 1fr 1fr; }
  .doors { grid-template-columns: repeat(2, 1fr); }
  .door:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .strips, .home-cats-grid { grid-template-columns: 1fr; }
  .doors { gap: 8px; }
  .door { grid-template-columns: 1fr; grid-template-rows: auto; padding: .8rem; min-height: 0; gap: .25rem; }
  .door-icon { grid-row: auto; width: 2.8rem; height: 2.8rem; padding: 4px; }
  .door-word { font-size: 1.1rem; }
  .door-tag { font-size: .8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .map-filters .near { margin-left: 0; }
  .map { height: 60vh; }
  .map-view { display: flex; width: 100%; }
  .map-view button { flex: 1; justify-content: center; padding: .45rem .6rem; }
  .region-tabs a { padding: .45rem .75rem; gap: .35rem; font-size: .95rem; }
  /* on a phone the chips are one row each, swiped sideways, so the map is not far below */
  .map-card .when, .map-card .map-secs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .map-card .when::-webkit-scrollbar, .map-card .map-secs::-webkit-scrollbar { display: none; }
  .map-card .when button, .map-card .map-secs button { flex: none; white-space: nowrap; }
  .map-search, .map-search input { flex: 1 1 100%; min-width: 0; width: 100%; }
  .header-row { gap: .5rem .75rem; }
  .main-nav { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .main-nav a { white-space: nowrap; }
  .header-search { order: 4; flex-basis: 100%; }
  .header-search input { width: 100%; }
  .lang-switch { margin-left: auto; }
  li.ev, .compact li.ev { grid-template-columns: 4.6rem 1fr; gap: .1rem .7rem; }
  .rl { font-size: 34px; }
  .rl .ct { font-size: 27px; }
  .panel-head, .panel-body, .fest-grid { padding-left: .85rem; padding-right: .85rem; }
  .big-search button { padding: .55rem .8rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .door, .cat-card { transition: transform .12s ease, background-color .12s ease, border-color .12s ease; }
  .door:hover, .cat-card:hover { transform: translateY(-2px); }
}
.maplibregl-ctrl-attrib, .maplibregl-ctrl-group { background: var(--card) !important; color: var(--muted); }
.maplibregl-ctrl-attrib a { color: var(--muted) !important; }
.maplibregl-ctrl-group button { filter: none; }
:root:not([data-theme="light"]) .maplibregl-ctrl-group button .maplibregl-ctrl-icon,
:root:not([data-theme="light"]) .maplibregl-ctrl-attrib-button { filter: invert(1); }
.main-nav { scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
/* small phones: the four menu words fit without their icons */
@media (max-width: 430px) {
  .main-nav { gap: 0; }
  .main-nav .px-icon { display: none; }
  .main-nav a { padding-left: .55rem; padding-right: .55rem; }
}

/* ---- place pages ---- */
.place-cat { margin: 0 0 .25rem; color: var(--muted); font-size: .95rem; }
.place-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
.btn-quiet { display: inline-block; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: calc(.5rem * var(--round)); text-decoration: none; }
.place-address { margin: 1rem 0 .5rem; font-size: 1.05rem; }
.place-map { height: 320px; border-radius: calc(.75rem * var(--round)); overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.place-map.is-failed { display: none; }
.place-osm { margin: .4rem 0 0; font-size: .85rem; }
/* "Hvar er þetta?" on a place with no position (static/stadsetja.js): the phone's position or a pin on a map */
.place-pin { --pin: var(--map-cluster); margin-top: 1rem; padding: .9rem 1rem; border: 1px dashed var(--blue-text); border-radius: var(--radius); background: var(--soft); }
.pin-title { margin: 0 0 .3rem; font-size: 1.05rem; }
.pin-text { margin: 0 0 .7rem; }
.pin-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.pin-actions button, .pin-send {
  font: inherit; font-weight: 600; cursor: pointer; padding: .45rem .9rem; border-radius: var(--pill);
  border: 1px solid var(--blue-text); background: var(--card); color: var(--blue-text);
}
.pin-actions button:hover { background: var(--bg); }
.pin-send { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.pin-actions[hidden], .pin-map[hidden], .pin-confirm[hidden], .pin-actions button[hidden] { display: none; }
.pin-map { height: 320px; margin-top: .7rem; border-radius: calc(.75rem * var(--round)); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.pin-status { margin: .5rem 0 0; font-size: .92rem; }
.pin-status:empty { display: none; }
.pin-status.is-bad { color: var(--red-text); }
.pin-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: .6rem 0 0; }
.pin-paste { margin: .7rem 0 0; font-size: .88rem; }
.place-events, .place-near, .place-similar, .place-contact { margin-top: 2rem; }
.contact-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .4rem 1.2rem; margin: 0; font-size: 1.05rem; }
.contact-list dt { color: var(--muted); font-weight: 600; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.contact-note { margin: .6rem 0 0; color: var(--muted); font-size: .85rem; }
.facts .fact-vakinn, .facts .fact-owner { color: var(--free); }
.suggest-link { font-size: .9rem; color: var(--muted); margin: .4rem 0 0; }
.suggest-link a { font-weight: 600; }
.facts .fact-claim { border-style: dashed; padding: 0; }
.facts .fact-claim a { display: block; padding: .05rem .5rem; color: var(--blue-text); text-decoration: none; }
.facts .fact-claim a:hover { text-decoration: underline; }
.near-list { list-style: none; padding: 0; columns: 2 16rem; }
.near-list li { padding: .25rem 0; break-inside: avoid; }
.near-list .n { color: var(--muted); font-size: .85rem; }
.place-check { margin-top: 2rem; color: var(--muted); font-size: .85rem; }
.place-feedback { margin: .3rem 0 0; font-size: .85rem; }
.place-own { margin: 1.5rem 0; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.place-own h2 { margin-top: 0; }
.place-own h3 { font-size: 1rem; margin: 1rem 0 .3rem; }
.own-text p { margin: 0 0 .7rem; }
.own-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .6rem; margin: 0 0 1rem; }
.own-photos figure { margin: 0; }
.own-photos figure.is-first { grid-column: 1 / -1; }
.own-photos img { display: block; width: 100%; height: auto; border-radius: calc(8px * var(--round)); }
.own-photos figure:not(.is-first) img { aspect-ratio: 4 / 3; object-fit: cover; }
.own-photos figcaption { font-size: .8rem; color: var(--muted); margin-top: .2rem; }
.own-note { color: var(--muted); font-size: .85rem; margin: .5rem 0 0; }
.minn-photos { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .8rem; }
.minn-photos img, .minn-thumb { display: block; width: 100%; max-width: 100%; height: auto; border-radius: calc(8px * var(--round)); }
.minn-photos li.is-hidden { opacity: .5; }
/* ---- /minn/: owner accounts, the feedback form, admin (PHP pages, no script) ---- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.minn-top { display: flex; align-items: center; gap: 1rem; padding-top: .8rem; padding-bottom: .8rem; }
.minn-top .brand { font-weight: 800; font-size: 1.25rem; color: var(--red-text); text-decoration: none; }
/* /minn/ signed out is one narrow column; signed in, a menu and the page. The header and footer line up with them. */
.page-minn .wrap { max-width: 42rem; }
.page-minn.has-menu .wrap { max-width: 64rem; }
.minn-top .minn-home { font-weight: 600; }
.minn-who { margin-left: auto; color: var(--muted); font-size: .9rem; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.minn-out { margin: 0; }
.minn-out .btn-link { padding: .3rem 0; }
.minn-frame { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 2.2rem; align-items: start; padding-top: 1.4rem; }
.minn-frame > .minn { min-width: 0; max-width: 46rem; }
.minn-frame .page-head h1 { margin-top: 0; }
.minn-menu { position: sticky; top: 1rem; }
.minn-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.minn-menu a { display: flex; align-items: center; gap: .5rem; padding: .45rem .7rem; border-radius: calc(8px * var(--round)); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.minn-menu a:hover { background: var(--soft); }
.minn-menu a[aria-current] { background: var(--soft); color: var(--blue-text); font-weight: 700; box-shadow: inset 3px 0 0 var(--blue); }
.minn-menu-head { margin: 1rem .7rem .25rem; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.minn-menu .minn-add a { color: var(--blue-text); font-weight: 600; }
.minn-menu .minn-admin-entry { display: none; }
.minn-menu .minn-menu-site a { font-size: .9rem; color: var(--muted); }
.minn-count { display: inline-block; margin-left: auto; min-width: 1.5rem; padding: 0 .4rem; border-radius: 99px; background: var(--soft); color: var(--ink); font-size: .78rem; font-weight: 700; text-align: center; line-height: 1.5; }
.minn-menu a[aria-current] .minn-count { background: var(--card); }
.minn-crumbs { font-size: .88rem; color: var(--muted); margin: 0 0 .2rem; }
.minn-crumbs a { color: var(--muted); }
@media (max-width: 52rem) {
  .minn-frame { grid-template-columns: minmax(0, 1fr); gap: .9rem; padding-top: .9rem; }
  .minn-menu { position: static; }
  .minn-menu ul { display: flex; flex-wrap: wrap; gap: .4rem; }
  .minn-menu-head, .minn-menu .minn-menu-site { display: none; }
  .minn-menu a { padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 99px; background: var(--card); font-size: .92rem; }
  .minn-menu a[aria-current] { box-shadow: none; border-color: var(--blue); }
  .minn-menu:not(.in-admin) .minn-admin { display: none; }
  .minn-menu:not(.in-admin) .minn-admin-entry { display: block; }
  .minn-menu .minn-count { margin-left: .15rem; }
  .minn-who { display: none; }
  .minn-out { margin-left: auto; }
}
/* the front page: what waits (admins), a card per place, the coming events */
.minn-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .6rem; }
.minn-tiles a { display: block; height: 100%; padding: .6rem .85rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--bg); font-weight: 600; }
.minn-tiles a:hover { border-color: var(--muted); }
.minn-tiles b { display: block; font-size: 1.6rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.minn-tiles span { display: block; color: var(--muted); font-size: .84rem; font-weight: 400; }
.minn-tiles .is-waiting a { border-color: var(--blue); box-shadow: inset 0 3px 0 var(--blue); }
.minn-cards { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; gap: .8rem; }
.minn-card { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; background: var(--bg); }
.minn-card h3 { margin: 0 0 .15rem; font-size: 1.12rem; }
.minn-card h3 a { text-decoration: none; }
.minn-chips, .minn-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.minn-chips { list-style: none; margin: .55rem 0 .35rem; padding: 0; }
.minn-chips a, .minn-tabs a { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-size: .9rem; background: var(--card); color: var(--ink); }
.minn-chips a:hover, .minn-tabs a:hover { border-color: var(--blue); }
.minn-pick-label { margin: 1rem 0 0; font-weight: 600; }
.minn-pick a[aria-current] { background: var(--blue); border-color: var(--blue); color: var(--on-blue); font-weight: 600; }
.minn-chips .minn-count, .minn-tabs .minn-count { margin-left: 0; }
.minn-button { display: inline-block; font-weight: 600; border-radius: calc(8px * var(--round)); padding: .55rem 1.1rem; background: var(--blue); color: var(--on-blue); text-decoration: none; }
.minn-button:hover { filter: brightness(1.12); }
/* the place page: jump between its parts; the bar stays in view */
.minn-tabs { position: sticky; top: 0; z-index: 3; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding: .6rem 0; margin: 0 0 1rem; background: var(--bg); border-bottom: 1px solid var(--line); }
.minn-tabs a { flex: none; }
.minn .minn-box { scroll-margin-top: 4.5rem; }
/* text buttons start where the links and text around them start */
.minn .btn-link { padding-left: 0; padding-right: 0; }
.minn .lead { color: var(--muted); }
.minn-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0 0 1rem; box-shadow: var(--shadow); }
.minn-box h2 { margin-top: 0; font-size: 1.15rem; }
.minn-form { display: grid; gap: .8rem; }
.minn-form label { display: grid; gap: .3rem; font-weight: 600; }
.minn-form label.check { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
.minn-form input[type="text"], .minn-form input[type="email"], .minn-form input[type="url"], .minn-form input[type="date"],
.minn-form input[type="time"], .minn-form input[type="search"], .minn-form select, .minn-form textarea {
  font: inherit; font-weight: 400; width: 100%; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: calc(8px * var(--round)); padding: .5rem .65rem; min-height: 2.6rem;
}
.minn-form textarea { min-height: 8rem; resize: vertical; }
.minn-form button, .minn-actions button:not(.btn-link) {
  justify-self: start; font: inherit; font-weight: 600; border: 0; border-radius: calc(8px * var(--round));
  padding: .55rem 1.1rem; background: var(--blue); color: var(--on-blue); cursor: pointer; min-height: 2.6rem;
}
.minn-form button:hover, .minn-actions button:not(.btn-link):hover { filter: brightness(1.12); }
.minn-form button.danger { background: var(--red); }
.btn-link.danger { color: var(--red-text); }
.minn-notice { border-radius: var(--radius); padding: .7rem 1rem; margin: 0 0 1rem; border: 1px solid var(--line); background: var(--soft); }
.minn-notice.is-error { border-color: var(--red-text); }
.minn-note { color: var(--muted); font-size: .88rem; margin: 0; }
.minn-from { color: var(--muted); font-size: .92rem; margin: 0; }
.minn-meta { margin: 0 0 .4rem; color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.minn-text { margin: 0 0 .6rem; overflow-wrap: anywhere; }
.minn-msg.is-handled { opacity: .65; }
.minn-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.minn-actions input[type="text"] { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: calc(8px * var(--round)); padding: .4rem .6rem; min-width: 14rem; }
.minn-inline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; }
.minn-list { padding-left: 1.2rem; }
.minn-list li { margin: .3rem 0; }
.minn-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .8rem; }
.minn-fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem 1rem .9rem; margin: 0; display: grid; gap: .5rem; }
.minn-fieldset legend { font-weight: 600; padding: 0 .3rem; }
.minn-events li { margin: .2rem 0 .8rem; }
.minn-events .minn-actions { margin-top: .25rem; font-size: .92rem; }
.minn-more { margin-top: .4rem; }
.minn-more > summary { cursor: pointer; color: var(--link, var(--blue)); }
.minn-more[open] > summary { margin-bottom: .6rem; }
.minn-more .minn-form + .minn-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.minn-search { grid-template-columns: 1fr auto; align-items: end; margin-bottom: .6rem; }
@media (max-width: 30rem) { .minn-search { grid-template-columns: 1fr; } }
.event-page .lead time { font-weight: 600; }
.event-page.is-cancelled h1 { text-decoration: line-through; text-decoration-thickness: 2px; }
.event-add { margin-top: 1.5rem; }
.minn-code code { font-size: 1.15rem; font-weight: 700; letter-spacing: .02em; }
.minn code { overflow-wrap: anywhere; }
.place-dot { display: block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--dot-ring); background: var(--dot); box-shadow: var(--dot-shadow); }
.place-dot.is-here { width: 20px; height: 20px; background: var(--red); }
.card-go { margin: .5rem 0 0; font-size: .9rem; }
.card-go a { font-weight: 600; text-decoration: none; }
/* ---- event buttons ---- */
.ev-tools { display: inline-flex; gap: .25rem; margin-left: .25rem; vertical-align: middle; }
.ev-tools button { position: relative; border: 1px solid var(--line); background: transparent; color: inherit; border-radius: calc(.4rem * var(--round)); padding: .05rem .35rem; font-size: .85rem; line-height: 1.4; cursor: pointer; opacity: .75; }
.ev-tools button:hover, .ev-tools button:focus-visible { opacity: 1; }
.ev-tools button[data-done]::after { content: attr(data-done); position: absolute; bottom: 120%; right: 0; white-space: nowrap; background: var(--card); border: 1px solid var(--line); padding: .15rem .4rem; border-radius: calc(.3rem * var(--round)); font-size: .75rem; }
.ev.is-shared, .ev:target { outline: 2px solid var(--red); outline-offset: 4px; border-radius: calc(.4rem * var(--round)); }
/* ---- pools: hours and facilities ---- */
.place-pool { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.place-pool h2 { margin-top: 0; }
.hours { border-collapse: collapse; width: 100%; max-width: 22rem; }
.hours th, .hours td { text-align: left; padding: .3rem .5rem .3rem 0; border-bottom: 1px solid var(--line); font-weight: normal; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; }
.hours-label { margin: 0 0 .5rem; color: var(--muted); }
.hours-check { margin: .75rem 0 0; font-size: .85rem; color: var(--muted); }
.amen-list { list-style: none; padding: 0; margin: 0; columns: 2 10rem; }
.amen-list li { padding: .2rem 0; break-inside: avoid; }
.amen-icons { margin: .4rem 0 0; letter-spacing: .15rem; }
.open-state { display: inline-block; font-size: .8rem; font-weight: 600; padding: .1rem .5rem; border-radius: calc(1rem * var(--round)); vertical-align: middle; }
.open-state.is-open { background: transparent; color: var(--free); border: 1px solid var(--free); }
.open-state.is-closed { background: var(--line); color: var(--muted); }
.amen-filter { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem .9rem; }

/* ---- scoreboard --------------------------------------------------------------------- */
.cat-feature { border-color: var(--blue-text); }
.scores-sport { margin-top: 1.5rem; }
.scores-sport > h2 { margin-bottom: .75rem; }
.league-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.league { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.1rem; min-width: 0; }
.league h3 { margin: 0; }
.league h4 { margin: 1.1rem 0 .4rem; font-size: .95rem; }
.league-state, .league-note { color: var(--muted); font-size: .85rem; margin: .2rem 0 .6rem; }
.table-wrap { overflow-x: auto; }
.standings { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .92rem; }
.standings th, .standings td { padding: .35rem .3rem; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.standings .t-team { text-align: left; font-weight: 500; width: 100%; white-space: normal; }
.standings thead th { color: var(--muted); font-weight: 500; font-size: .8rem; }
.standings .t-pts { font-weight: 700; }
.standings tr.split-line td, .standings tr.split-line th { border-top: 2px solid var(--muted); }
.matches { list-style: none; padding: 0; margin: 0; display: grid; }
.match { display: grid; grid-template-columns: 1fr; gap: .1rem; padding: .4rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.match .m-when { color: var(--muted); font-size: .8rem; }
.match .m-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: .6rem; align-items: center; }
.match .m-home { text-align: right; }
.match .m-score, .match .m-vs { font-variant-numeric: tabular-nums; min-width: 3ch; text-align: center; }
.league-link p { margin: .4rem 0; }
@media (max-width: 480px) { .standings .t-goals { display: none; } }

/* ---- events ahead on cards ---------------------------------------------------------- */
.card .ev-ahead { margin: .4rem 0 0; font-size: .88rem; font-weight: 600; }
.card .ev-ahead a { text-decoration: none; }
.card .ev-ahead a:hover { text-decoration: underline; }
.card .ev-none { margin: .4rem 0 0; font-size: .82rem; color: var(--muted); }
.ev-none-all { color: var(--muted); font-size: .9rem; margin: .3rem 0 0; }

/* from–to date picker on the calendar and the map */
.date-range { display: inline-flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-left: .25rem; }
.date-range label { display: inline-flex; gap: .3rem; align-items: center; font-size: .9rem; }
.date-range input[type=date] { font: inherit; padding: .25rem .4rem; border: 1px solid var(--line); border-radius: calc(.4rem * var(--round)); background: var(--card); color: var(--ink); color-scheme: light dark; }
.feed-terms { font-size: .9rem; color: var(--muted); margin-top: 1rem; }

/* "Í brennidepli": a spotlight listing */
.card.is-spotlight { border: 2px solid var(--focus); background: linear-gradient(135deg, color-mix(in srgb, var(--focus) 16%, var(--card)), var(--card) 70%); }
.spot-tag { display: inline-block; align-self: flex-start; font-size: .78rem !important; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--on-focus); background: var(--focus); border-radius: var(--pill); padding: .1rem .55rem; }
.place.is-spotlight .page-head { border-left: 4px solid var(--focus); padding-left: .9rem; }
/* game activity (leika/games.py) */
.game-act { font-size: .9rem; }
.game-act a { text-decoration: none; color: inherit; }
.game-act a:hover { text-decoration: underline; }
.act-quiet { color: var(--muted); }
.game-activity dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem .9rem; margin: .6rem 0; }
.game-activity dt { font-weight: 700; }
.game-activity dd { margin: 0; }
.act-note { font-size: .85rem; color: var(--muted); }
/* dd/mm/yyyy box with the native calendar behind the 📅 button */
.date-range .dmy { font: inherit; width: 7.2em; padding: .25rem .4rem; border: 1px solid var(--line); border-radius: calc(.4rem * var(--round)); background: var(--card); color: var(--ink); }
.date-range .dmy-pick { background: none; border: 0; padding: 0 .1rem; cursor: pointer; font-size: 1.05rem; line-height: 1; }
.date-range .dmy-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.date-range label { position: relative; }

/* standard event links: the event's own page (tickets or website) and its place on leika.is */
.ev-place a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.ev-place a:hover { text-decoration-color: currentColor; }
.ev-links, .r-links { display: inline-flex; flex-wrap: wrap; gap: .3rem .5rem; align-items: center; }
.ev-links a, .r-links a { font-size: .82rem; font-weight: 600; text-decoration: none; border: 1px solid var(--line); border-radius: var(--pill); padding: .05rem .55rem; max-width: 100%; overflow-wrap: anywhere; }
.ev-links, .r-links { max-width: 100%; }
.ev-links a:hover, .r-links a:hover { border-color: currentColor; }
.ev-out, .r-out { color: var(--blue-text); }
.ev-here, .r-here { color: var(--ink); }
.r-links { margin-top: .35rem; }

/* ---- look picker ("Útlit", leika/themes.py): a panel under the header with a small preview of each look.
   Each preview has data-look="…", so it picks up that look's own settings. ---- */
.header-row { position: relative; }
.look-btn {
  font: inherit; font-size: .9rem; display: inline-flex; align-items: center; gap: .3rem; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--pill); padding: .25rem .7rem; background: var(--bg); color: var(--ink);
}
.look-btn:hover, .look-btn[aria-expanded="true"] { border-color: var(--blue-text); }
.lb-icon { font-size: 1rem; line-height: 1; }
.look-new { font-size: .68rem; font-weight: 700; line-height: 1.5; background: var(--red); color: var(--on-blue); border-radius: var(--pill); padding: 0 .4rem; }
.look-panel {
  position: absolute; z-index: 20; right: 16px; top: calc(100% - .25rem); width: min(25rem, calc(100vw - 32px));
  max-height: calc(100vh - 6rem); overflow: auto; padding: .8rem;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-pop);
}
.look-panel fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: .4rem; }
.look-panel legend { font-weight: 700; padding: 0 0 .5rem; }
.look-opt {
  display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: .65rem; cursor: pointer;
  padding: .45rem .55rem; border: 1px solid var(--line); border-radius: calc(10px * var(--round));
}
.look-opt:hover { border-color: var(--blue-text); }
.look-opt:has(input:checked) { border-color: var(--blue-text); box-shadow: inset 0 0 0 1px var(--blue-text); background: var(--soft); }
.look-opt input { margin: 0; accent-color: var(--blue); }
.look-sw {
  display: block; width: 3.8rem; height: 2.6rem; padding: .3rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: calc(8px * var(--round));
}
.sw-card {
  display: flex; align-items: center; gap: .22rem; height: 100%; padding: 0 .3rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: calc(5px * var(--round));
  font-family: var(--font-head); font-size: .9rem; line-height: 1;
}
.sw-card i { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; }
.sw-a { background: var(--blue); }
.sw-b { background: var(--red); }
.look-name { display: block; font-weight: 650; }
.look-desc { display: block; font-size: .82rem; line-height: 1.35; color: var(--muted); }
.look-note { font-size: .8rem; color: var(--muted); margin: .6rem 0 0; }
/* phones: icons only (☀/☾ and 🎨), "Nýtt" shrinks to a dot, so logo, buttons and language fit on one row */
@media (max-width: 640px) {
  .lb-text, .tt-text, .ls-long { display: none; }
  .ls-short { display: inline; }
  .header-row { column-gap: .5rem; }
  .theme-toggle, .look-btn { padding: .25rem .55rem; }
  .look-btn { position: relative; }
  .look-new { position: absolute; top: -.2rem; right: -.2rem; width: .65rem; height: .65rem; padding: 0; font-size: 0; }
}

/* ==== look: klassiskt (static/themes/klassiskt.css) ==== */
/* Klassískt: plain like a newspaper. Serif type, thin lines instead of boxes, square corners and
   underlined links. The front-page doors become a two-column list, like an old link directory.
   Settings first (dark, then light), then the few layout rules. See docs/themes.md. */
[data-look="klassiskt"] {
  --red: #c0283d; --blue: #3d6fb5; --navy: #2a2824;
  --red-text: #f08a94; --blue-text: #8fb4e8;
  --ink: #ece8df; --muted: #a8a397; --bg: #161513; --card: #161513; --line: #3a3731; --soft: #201f1c;
  --focus: #e0b84a; --on-focus: #1a1300;
  --round: 0; --pill: 2px;
  --shadow: none; --shadow-pop: 0 6px 24px rgb(0 0 0 / .5);
  --font: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs: 17px; --wrap: 1040px;
  --icon-bg: #2a2824; --on-blue: #ffffff; --on-blue-muted: #e6e1d6;
  --chip-l: 18%; --chip-t: 82%; --chip-s: 25%;
  --free: #7fcf9f; --kids: #e2c27a; --warn: #f0a868;
  --map-ring: #161513; --map-me: #8fb4e8; --dot: #9a958a; --dot-ring: #ffffff;
  color-scheme: dark;
}
[data-look="klassiskt"][data-theme="light"], [data-theme="light"] [data-look="klassiskt"] {
  --red: #a3122a; --blue: #1a4d8f; --navy: #1b1b1b;
  --red-text: #a3122a; --blue-text: #1a4d8f;
  --ink: #1b1b1b; --muted: #5e5a52; --bg: #faf8f3; --card: #faf8f3; --line: #d6d0c2; --soft: #f1ede3;
  --focus: #b06f00; --on-focus: #000000;
  --shadow: none; --shadow-pop: 0 6px 24px rgb(0 0 0 / .12);
  --icon-bg: #1b1b1b; --on-blue: #ffffff; --on-blue-muted: #dfe7f2;
  --chip-l: 94%; --chip-t: 24%; --chip-s: 30%;
  --free: #1d6b3f; --kids: #7a5200; --warn: #9a4600;
  --map-ring: #ffffff; --map-me: #1a4d8f; --dot: #8a857a;
  color-scheme: light;
}

/* masthead and footer: a double rule instead of a coloured bar */
[data-look="klassiskt"] .site-header { background: var(--bg); border-bottom: 3px double var(--ink); }
[data-look="klassiskt"] .site-footer { background: var(--bg); border-top: 3px double var(--line); }
[data-look="klassiskt"] .logo { font-family: var(--font-head); font-weight: 700; letter-spacing: 0; }
[data-look="klassiskt"] :is(h1, h2, .home-head h1) { letter-spacing: 0; font-weight: 700; }
[data-look="klassiskt"] .home-head { border-bottom: 1px solid var(--line); padding-bottom: 1.25rem; }
[data-look="klassiskt"] .home-head .slogan { font-style: italic; font-weight: 400; }
[data-look="klassiskt"] .sub > :is(h2, h3) { border-bottom: 1px solid var(--ink); }
[data-look="klassiskt"] .header-search input { width: 8.5rem; }

/* small labels in a plain sans, like captions in a paper */
[data-look="klassiskt"] :is(.chip, .badge, .facts li, .ev-meta, .door-count, .n, .crumbs, .main-nav a, input, select, button, .look-desc) { font-family: var(--sans); }

/* links are underlined, like a printed directory */
[data-look="klassiskt"] :is(.card h3 a, .ev-title, .door-word, .cat-title, .ct-title, .home-cat-group li a, .tools a, .footer-doors a, .near-list a, .strip h2 a, .home-regions h2 a, .sub > h3 a) {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em;
}
[data-look="klassiskt"] :is(.ev-title, .door-word, .cat-title) { color: var(--blue-text); }
[data-look="klassiskt"] .main-nav a:is(.is-here, :hover) { background: none; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }

/* boxes become plain sections divided by thin lines */
[data-look="klassiskt"] :is(.card, .cat-card, .strip, .day, .filters, .home-cat-group, .league, .film, .map-item, .search-results li, .cinema-teaser a, .wtd, .subscribe, .wtd-result) {
  background: transparent; border: 0; border-top: 1px solid var(--line); box-shadow: none; padding-left: 0; padding-right: 0;
}
[data-look="klassiskt"] :is(.cards, .cat-grid, .films, .league-grid) { column-gap: 2rem; row-gap: .25rem; }
[data-look="klassiskt"] .panel { background: transparent; border: 0; border-top: 3px double var(--ink); border-radius: 0; box-shadow: none; }
[data-look="klassiskt"] .panel-head { background: transparent; padding-left: 0; padding-right: 0; }
[data-look="klassiskt"] :is(.panel-body, .fest-grid) { padding-left: 0; padding-right: 0; }
[data-look="klassiskt"] .card.is-featured { border: 0; border-top: 3px solid var(--blue-text); }
[data-look="klassiskt"] .card.is-spotlight { background: transparent; border: 0; border-top: 3px solid var(--focus); }
[data-look="klassiskt"] .chip { background: transparent; border-color: currentColor; }
[data-look="klassiskt"] .tools { gap: .25rem 1.25rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
[data-look="klassiskt"] .tools a { background: none; border: 0; padding: .2rem 0; }
[data-look="klassiskt"] :is(.px-icon, .door-icon) { filter: grayscale(1); }

/* the eight doors: a two-column directory list */
[data-look="klassiskt"] .doors { grid-template-columns: repeat(2, 1fr); gap: 0 2.5rem; border-top: 1px solid var(--ink); }
[data-look="klassiskt"] .door {
  grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: .1rem .8rem; min-height: 0;
  padding: .7rem 0; background: none; border: 0; border-bottom: 1px solid var(--line); box-shadow: none;
}
[data-look="klassiskt"] .door:hover { transform: none; }
[data-look="klassiskt"] .door:hover .door-word { color: var(--blue-text); text-decoration-thickness: 2px; }
[data-look="klassiskt"] .door-icon { grid-row: 1 / span 2; width: 2.1rem; height: 2.1rem; padding: 3px; }
[data-look="klassiskt"] .door-word { grid-column: 2; grid-row: 1; font-size: 1.2rem; }
[data-look="klassiskt"] .door-count { grid-column: 3; grid-row: 1; align-self: baseline; }
[data-look="klassiskt"] .door-tag { grid-column: 2 / span 2; grid-row: 2; }
@media (max-width: 640px) {
  [data-look="klassiskt"] .doors { grid-template-columns: 1fr; }
  [data-look="klassiskt"] .door { grid-template-columns: auto 1fr auto; padding: .55rem 0; }
  [data-look="klassiskt"] .door-icon { grid-row: 1 / span 2; width: 1.9rem; height: 1.9rem; }
}

/* ==== look: litrikt (static/themes/litrikt.css) ==== */
/* Litríkt: playful, for families. Each of the eight sections has its own bright colour (doors,
   category cards and place pages), big rounded buttons, larger text and a rounded font (Nunito,
   static/fonts/, SIL Open Font License; browsers only download it for people using this look).
   Settings first (dark, then light), then the layout rules. See docs/themes.md. */
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}
[data-look="litrikt"] {
  --red: #ff6b88; --blue: #9b7bff; --navy: #120c26;
  --red-text: #ff8fa6; --blue-text: #b9a2ff;
  --ink: #f6f0ff; --muted: #b9add6; --bg: #1a1430; --card: #241c42; --line: #3a2f63; --soft: #2e2456;
  --focus: #ffc83d; --on-focus: #2a1f00; --on-blue: #160d33; --on-blue-muted: #2a1f55;
  --round: 1.6;
  --shadow: 0 3px 0 rgb(0 0 0 / .25); --shadow-pop: 0 10px 34px rgb(0 0 0 / .5);
  --font: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-head: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --fs: 17px;
  --icon-bg: #120c26;
  --press: color-mix(in srgb, var(--blue) 55%, #000000);
  /* section colours: saturation and lightness of the door fill, its border and its icon tile */
  --door-s: 55%; --door-l: 24%; --door-b: 40%; --door-i: 55%;
  --chip-l: 28%; --chip-t: 88%; --chip-s: 60%;
  --free: #6ff0a8; --kids: #ffd36b; --warn: #ffad73;
  --map-ring: #1a1430; --map-me: #b9a2ff; --dot: #a99bd6;
  color-scheme: dark;
}
[data-look="litrikt"][data-theme="light"], [data-theme="light"] [data-look="litrikt"] {
  --red: #ff4f6d; --blue: #6c3cf0; --navy: #2a1f3d;
  --red-text: #d62f53; --blue-text: #5a2fd6;
  --ink: #2a1f3d; --muted: #6b5f80; --bg: #fff8ef; --card: #ffffff; --line: #f0dfcc; --soft: #fff0d9;
  --focus: #ffb400; --on-focus: #2a1f00; --on-blue: #ffffff; --on-blue-muted: #ece4ff;
  --shadow: 0 3px 0 rgb(42 31 61 / .07), 0 8px 20px rgb(42 31 61 / .07); --shadow-pop: 0 12px 34px rgb(42 31 61 / .18);
  --icon-bg: #2a1f3d;
  --press: color-mix(in srgb, var(--blue) 60%, #000000);
  --door-s: 90%; --door-l: 94%; --door-b: 82%; --door-i: 48%;
  --chip-l: 90%; --chip-t: 28%; --chip-s: 85%;
  --free: #0f8a4f; --kids: #9a5b00; --warn: #b34700;
  --map-ring: #ffffff; --map-me: #5a2fd6; --dot: #9b8fb5;
  color-scheme: light;
}

html[data-look="litrikt"] { font-size: 106.25%; }
[data-look="litrikt"] :is(h1, h2, h3) { font-weight: 850; letter-spacing: -.005em; }
[data-look="litrikt"] .home-head h1 { font-weight: 900; }
[data-look="litrikt"] .logo { font-weight: 900; }
[data-look="litrikt"] .main-nav a { font-weight: 750; }

/* each section's colour (a hue; the look's settings give saturation and lightness) */
[data-look="litrikt"] { --dh: 265; }
[data-look="litrikt"] :is(.door-svid, .section-svid) { --dh: 352; }
[data-look="litrikt"] :is(.door-bio, .section-bio) { --dh: 22; }
[data-look="litrikt"] :is(.door-fjor, .section-fjor) { --dh: 45; }
[data-look="litrikt"] :is(.door-utivist, .section-utivist) { --dh: 135; }
[data-look="litrikt"] :is(.door-ut-a-lifid, .section-ut-a-lifid) { --dh: 90; }
[data-look="litrikt"] :is(.door-bod-sofn, .section-bod-sofn) { --dh: 178; }
[data-look="litrikt"] :is(.door-ithrottir, .section-ithrottir) { --dh: 212; }
[data-look="litrikt"] :is(.door-tonlist, .section-tonlist) { --dh: 268; }
[data-look="litrikt"] :is(.door-leikir, .section-leikir) { --dh: 318; }

[data-look="litrikt"] .door { background: hsl(var(--dh) var(--door-s) var(--door-l)); border: 2px solid hsl(var(--dh) var(--door-s) var(--door-b)); }
[data-look="litrikt"] .door-icon, [data-look="litrikt"] .page-head .door-icon { background: hsl(var(--dh) 70% var(--door-i)); }
[data-look="litrikt"] .door:hover { border-color: hsl(var(--dh) 75% var(--door-i)); }
[data-look="litrikt"] .door:hover .door-word { color: inherit; }
[data-look="litrikt"] .door-word { font-weight: 900; }
[data-look="litrikt"] .cat-card { border-width: 2px; border-top: 6px solid hsl(var(--dh) 75% var(--door-i)); }
[data-look="litrikt"] .card { border-width: 2px; }
[data-look="litrikt"] .panel { border-width: 2px; border-top-width: 6px; }
[data-look="litrikt"] .wtd { --dh: 45; background: hsl(var(--dh) var(--door-s) var(--door-l)); border: 2px dashed hsl(var(--dh) 80% var(--door-b)); }
@media (prefers-reduced-motion: no-preference) {
  [data-look="litrikt"] :is(.door, .cat-card):hover { transform: translateY(-3px) rotate(-.6deg); }
}

/* chunky buttons and pills */
[data-look="litrikt"] :is(.big-search button, .btn-primary) { font-weight: 800; padding: .65rem 1.4rem; box-shadow: 0 4px 0 var(--press); }
[data-look="litrikt"] :is(.big-search button, .btn-primary):active { transform: translateY(2px); box-shadow: 0 2px 0 var(--press); }
[data-look="litrikt"] .tools a { background: var(--soft); border: 2px solid var(--line); font-weight: 800; padding: .55rem 1.05rem; }
[data-look="litrikt"] :is(.big-search input, input[type="search"], select) { border-width: 2px; }
[data-look="litrikt"] .chip { font-weight: 800; padding: .22rem .65rem; }

/* ==== look: nordurljos (static/themes/nordurljos.css) ==== */
/* Norðurljós: deep night blue with a soft green and violet glow at the top of the page, cards that
   let the glow through and glow themselves on hover. The light version is a pale, icy morning.
   Settings first (dark, then light), then the layout rules. See docs/themes.md. */
[data-look="nordurljos"] {
  --red: #e0569a; --blue: #1fcf9a; --navy: #0b1430;
  --red-text: #ff8cc6; --blue-text: #5ef0c0;
  --ink: #e6f0ff; --muted: #9fb0cc; --bg: #070b1a; --card: #0f1733; --line: #1f2b52; --soft: #102046;
  --focus: #8cffd9; --on-focus: #032016; --on-blue: #04140f; --on-blue-muted: #0b3a2c;
  --round: 1.15;
  --shadow: 0 8px 28px rgb(0 0 0 / .35); --shadow-pop: 0 10px 40px rgb(0 0 0 / .55);
  --font-head: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --icon-bg: #13204a;
  --glow-1: rgb(46 230 160 / .30); --glow-2: rgb(150 90 255 / .30); --glow-3: rgb(46 230 160 / .35);
  --chip-l: 20%; --chip-t: 86%; --chip-s: 45%;
  --free: #6ff0b0; --kids: #ffd27a; --warn: #ffb07a;
  --map-ring: #070b1a; --map-me: #5ef0c0; --dot: #7f95c4;
  color-scheme: dark;
}
[data-look="nordurljos"][data-theme="light"], [data-theme="light"] [data-look="nordurljos"] {
  --red: #b0307a; --blue: #0b8a6a; --navy: #0d2a4a;
  --red-text: #a3286f; --blue-text: #07745a;
  --ink: #0d1b2e; --muted: #4c5d75; --bg: #eef5fb; --card: #ffffff; --line: #cfe0ee; --soft: #e2f1f4;
  --focus: #12b886; --on-focus: #022a1d; --on-blue: #ffffff; --on-blue-muted: #d9f5ec;
  --shadow: 0 1px 2px rgb(13 42 74 / .06), 0 6px 18px rgb(13 42 74 / .08); --shadow-pop: 0 10px 34px rgb(13 42 74 / .18);
  --icon-bg: #0d2a4a;
  --glow-1: rgb(18 184 134 / .20); --glow-2: rgb(140 90 230 / .16); --glow-3: rgb(18 184 134 / .30);
  --chip-l: 92%; --chip-t: 26%; --chip-s: 60%;
  --free: #0b7a4b; --kids: #855a00; --warn: #a14c00;
  --map-ring: #ffffff; --map-me: #07745a; --dot: #8aa4c8;
  color-scheme: light;
}

/* the glow: two soft lights at the top of every page (no pictures, just gradients) */
[data-look="nordurljos"] body {
  background:
    radial-gradient(1100px 520px at 15% -140px, var(--glow-1), transparent 70%),
    radial-gradient(1000px 480px at 85% -120px, var(--glow-2), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
}
[data-look="nordurljos"] .site-header { background: transparent; border-bottom-color: color-mix(in srgb, var(--line) 60%, transparent); }
[data-look="nordurljos"] .site-footer { background: color-mix(in srgb, var(--card) 70%, transparent); }
[data-look="nordurljos"] .home-head { padding: 1.25rem 0 .25rem; }
[data-look="nordurljos"] .home-head .slogan {
  background: linear-gradient(90deg, var(--blue-text), var(--red-text)); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* cards let the glow through, and glow on hover */
[data-look="nordurljos"] :is(.door, .strip, .cat-card, .card, .home-cat-group, .wtd-result, .tools a, .search-results li, .league, .panel) {
  background: color-mix(in srgb, var(--card) 82%, transparent); backdrop-filter: blur(6px);
}
[data-look="nordurljos"] :is(.door, .cat-card, .card, .tools a):hover { border-color: var(--blue-text); box-shadow: 0 0 0 1px var(--blue-text), 0 0 28px var(--glow-3); }
[data-look="nordurljos"] :is(.wtd, .subscribe) {
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 14%, var(--card)), color-mix(in srgb, var(--red) 12%, var(--card)));
  border: 1px solid var(--line);
}
[data-look="nordurljos"] :is(.door-icon, .page-head .door-icon) { background: linear-gradient(160deg, var(--icon-bg), color-mix(in srgb, var(--blue) 35%, var(--icon-bg))); }
[data-look="nordurljos"] :is(.big-search button, .btn-primary) { background: linear-gradient(135deg, var(--blue), color-mix(in srgb, var(--blue) 55%, var(--red))); }
[data-look="nordurljos"] .main-nav a.is-here { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue-text) 45%, transparent); }

/* ==== look: skyrt (static/themes/skyrt.css) ==== */
/* Skýrt: easy to read. High contrast (text at least 7:1), larger text, thick focus outlines, links
   always underlined, bigger buttons, no gradients, shadows or movement. Starts in the device's
   light/dark setting. The accessibility look: kept whatever the vote says. See docs/themes.md. */
[data-look="skyrt"] {
  --red: #ff8a95; --blue: #9ccaff; --navy: #000000;
  --red-text: #ffa3ac; --blue-text: #9ccaff;
  --ink: #ffffff; --muted: #d6d6d6; --bg: #000000; --card: #000000; --line: #a0a0a0; --soft: #0d1a33;
  --focus: #ffd400; --on-focus: #000000; --on-blue: #000000; --on-blue-muted: #1a1a1a;
  --round: .5;
  --shadow: none; --shadow-pop: 0 0 0 2px #ffffff;
  --font-head: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs: 18px;
  --icon-bg: #000000;
  --chip-l: 16%; --chip-t: 92%; --chip-s: 60%;
  --free: #7dffb0; --kids: #ffd35c; --warn: #ffb366;
  --map-ring: #000000; --map-me: #9ccaff; --dot: #ffffff; --dot-ring: #000000;
  color-scheme: dark;
}
[data-look="skyrt"][data-theme="light"], [data-theme="light"] [data-look="skyrt"] {
  --red: #b00020; --blue: #0033a0; --navy: #000000;
  --red-text: #a0001c; --blue-text: #0033a0;
  --ink: #000000; --muted: #333333; --bg: #ffffff; --card: #ffffff; --line: #595959; --soft: #eaf0ff;
  --focus: #000000; --on-focus: #ffffff; --on-blue: #ffffff; --on-blue-muted: #e6ecff;
  --shadow: none; --shadow-pop: 0 0 0 2px #000000;
  --chip-l: 95%; --chip-t: 18%; --chip-s: 80%;
  --free: #00602e; --kids: #6a4400; --warn: #8a3a00;
  --map-ring: #ffffff; --dot: #333333; --dot-ring: #ffffff;
  color-scheme: light;
}

/* bigger text everywhere (rem sizes follow the root size) */
html[data-look="skyrt"] { font-size: 112.5%; }
[data-look="skyrt"] body { line-height: 1.6; }

/* links: always underlined, except the ones drawn as boxes or buttons */
[data-look="skyrt"] a:not(:is(.logo, .door, .rg, .cat-card, .cinema-teaser a, .main-nav a, .tools a, .sub-nav a, .ev-links a, .r-links a, .lang-switch, .btn-quiet, .showtime)) {
  text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: .2em;
}
[data-look="skyrt"] :is(.door-word, .cat-title, .ct-title) { text-decoration: underline; text-decoration-thickness: 2px; }
[data-look="skyrt"] :focus-visible { outline-width: 4px; outline-offset: 3px; }

/* clearer edges and bigger targets */
[data-look="skyrt"] :is(.card, .cat-card, .door, .strip, .day, .panel, .filters, .home-cat-group, .league, .film, .map-item, .search-results li, .cinema-teaser a, .tools a, .sub-nav a, .ev-links a, .r-links a, .theme-toggle, .look-btn, .lang-switch, .look-opt, input[type="search"], select, .btn-quiet, .showtime, .chip) {
  border-width: 2px;
}
[data-look="skyrt"] .chip { border-color: currentColor; }
[data-look="skyrt"] .panel { border-top-width: 6px; }
[data-look="skyrt"] :is(.tools a, .sub-nav a, .lang-switch, .theme-toggle, .look-btn, .btn-quiet, .filters .when button, .big-search button, .btn-primary) { min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; }
[data-look="skyrt"] :is(.ev-links a, .r-links a) { min-height: 2.4rem; display: inline-flex; align-items: center; }
[data-look="skyrt"] .ev-tools button { font-size: 1rem; padding: .25rem .6rem; opacity: 1; }
/* the larger text needs the header in two rows: tools first, then the main links */
[data-look="skyrt"] .main-nav { order: 3; flex-basis: 100%; }
[data-look="skyrt"] .header-search { margin-left: auto; }
[data-look="skyrt"] .main-nav a.is-here { box-shadow: inset 0 -3px 0 var(--blue-text); }

/* no decoration, no movement */
[data-look="skyrt"] .card.is-spotlight { background: var(--card); }
[data-look="skyrt"] :is(.door, .cat-card):hover { transform: none; }
[data-look="skyrt"] * { transition: none !important; }

/* fewer, wider columns */
[data-look="skyrt"] :is(.cards, .cat-grid, .cards.compact) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
[data-look="skyrt"] .doors { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) {
  [data-look="skyrt"] .logo { font-size: 1.25rem; }
  [data-look="skyrt"] .logo img { width: 32px; height: 32px; }
  [data-look="skyrt"] .doors { grid-template-columns: 1fr; }
  [data-look="skyrt"] .door-tag { -webkit-line-clamp: unset; display: block; }
}
