/*
--------

Billig Studentmat – grundstil

--------
*/

:root {
  --bg: #0b0c0f;
  --panel: #12141a;
  --text: #e9eef3;
  --muted: #b8c2cc;
  --brand: #5dd39e;
  --brand-2: #89e5c2;
  --danger: #ef4444;
  --border: #242834;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fb;
    --panel: #ffffff;
    --text: #12141a;
    --muted: #5b6673;
    --border: #e8ecf2;
    --shadow: 0 10px 30px rgba(0,0,0,.06);
  }
}

* { box-sizing: border-box }

html, body { height: 100% }

body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg), color-mix(in oklab, var(--bg), #000 5%));
  color: var(--text);
}

.container { width: min(1100px, 92%); margin-inline: auto }

.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--panel), transparent 20%);
}

.header-inner { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 0 }

h1 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin: 0 }

.tagline { margin: 0; color: var(--muted) }

.controls {
  display: grid; gap: 1rem; align-items: center; padding: 1.2rem 0 0.5rem;
  grid-template-columns: 1fr;
}

.search-group input {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); color: var(--text);
  outline: 0; box-shadow: var(--shadow);
}

.search-group input::placeholder { color: var(--muted) }

.filters {
  display: flex; flex-wrap: wrap; gap: .5rem; border: 0; margin: 0; padding: 0
}

.filters legend { position: absolute; left: -9999px }

.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--border); padding: .35rem .6rem; border-radius: 999px; background: var(--panel); cursor: pointer;
  user-select: none
}

.chip input { accent-color: var(--brand) }

.grid {
  display: grid; gap: 1rem; padding: 1rem 0 2.5rem;
  grid-template-columns: repeat( auto-fit, minmax(260px, 1fr) );
}

/* ------ Kort med bild ------ */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card .thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.card .thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

.card .thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear
