/* ============================================================================
   Kulturhuset Stories — site styles

   Order: reset → base → layout primitives → typography → components → print.
   Everything measurable comes from assets/css/tokens.css. The only raw px in
   here are hairlines and shadow offsets, per the house rule.
   ========================================================================== */

/* ══ Reset ═════════════════════════════════════════════════════════════════ */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul[class], ol[class] { list-style: none; padding: 0; }

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* ══ Base ══════════════════════════════════════════════════════════════════ */

body {
  background-color: var(--color-bg);
  /* The paper grain is the brand's whole surface treatment. It tiles at its
     natural size: scaling it to cover would stretch the fibres and read as a
     blurry photo instead of stock. */
  background-image: url("/assets/img/paper-texture.694d3bcd7be75f24.avif");
  background-position: 50% 0;
  background-repeat: repeat;
  /* 80%, not the file's natural size: the grain was tiling far too coarsely.
     Matches the Webflow build, which also lets it scroll rather than fixing it. */
  background-size: 80% auto;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  overflow-x: hidden;
}

/* Focus. One visible ring everywhere, drawn outside the element so it is never
   clipped by the corner brackets or the card's overflow:hidden. */
:focus-visible {
  outline: var(--focus-ring-w) solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

a {
  color: var(--color-link);
  text-underline-offset: 0.18em;
  transition: color var(--dur-fast) var(--ease-out);
}

a:hover { color: var(--color-link-hover); }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: var(--size-0-5);
  z-index: 100;
  padding: var(--size-0-75) var(--size-1-25);
  background: var(--color-invert);
  color: var(--color-text-on-invert);
  font-family: var(--font-body);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--dur-fast) var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
  color: var(--color-text-on-invert);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ══ Layout primitives ═══════════════════════════════════════════════ */

.ks-page {
  width: 100%;
  max-width: var(--max-page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ks-section { padding-block: var(--section-y); }

/* container-type lets the children below respond to the column they sit in
   rather than the window, which is what keeps the contact grid sane when the
   page is previewed inside the editor canvas at half width. */
.ks-cq { container-type: inline-size; }

.ks-stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.ks-prose { max-width: var(--max-prose); }

/* ══ Typography ═════════════════════════════════════════════════════════
   Headings are the display serif at weight 900. Minion Pro ships Regular
   only, so the browser synthesises the bold — see the note in tokens.css. */

h1, h2, h3, h4, h5, h6, .ks-h1, .ks-h2, .ks-h3, .ks-h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  line-height: var(--lh-heading);
  letter-spacing: var(--tr-heading);
  color: var(--color-heading);
  text-wrap: balance;
}

.ks-h1, h1 { font-size: var(--fs-h1); }
.ks-h2, h2 { font-size: var(--fs-h2); }
.ks-h3, h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
.ks-h4, h4 { font-size: var(--fs-h4); }

/* The small section headings inside a menu card — SMÅTT & PLOCK, MÅNDAG —
   are the h4 step in caps with the wider tracking Webflow gave them. */
.ks-h4--caps {
  /* The group headings (SMÅTT & PLOCK, MÅNDAG) are the h5 step, not h4:
     30.53px at 1024 and 32px at 1440, matching the Webflow build exactly. */
  font-size: var(--fs-h5);
  text-transform: uppercase;
  letter-spacing: var(--tr-caps);
}

.ks-lead { font-size: var(--fs-large); }
.ks-small { font-size: var(--fs-small); }
.ks-muted { color: var(--color-muted); }

/* A heading followed by a rule that fills the rest of the line. */
.ks-rule-heading {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.ks-rule {
  flex: 1 1 auto;
  height: var(--border-w);
  background: var(--color-line);
  border: 0;
  margin: 0;
}

/* ══ Corner brackets ══════════════════════════════════════════════════
   The crop-mark corners around the menu scroller and the map. Webflow drew
   four full squares and let the container clip them; drawing two borders per
   corner instead means they survive a container that does not clip, and they
   cost no extra elements beyond the one the markup already carries. */

.ks-corners { position: relative; }

.ks-corners > .ks-corner {
  position: absolute;
  width: var(--menu-corner);
  height: var(--menu-corner);
  border: var(--border-w) solid var(--color-line);
  border-radius: 50%;
  background-color: var(--swatch-accent-sage);
  background-image: url("/assets/img/paper-texture.694d3bcd7be75f24.avif");
  background-position: 50%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 2;
}

/* Each sits centred ON its corner, half outside the panel, so it reads as a
   bite taken out of the outline. Top-right is the odd one out in peach. */
.ks-corner--tl { top: 0; left: 0; transform: translate(-50%, -50%); }
.ks-corner--tr { top: 0; right: 0; transform: translate(50%, -50%); }
.ks-corner--bl { bottom: 0; left: 0; transform: translate(-50%, 50%); }
.ks-corner--br { bottom: 0; right: 0; transform: translate(50%, 50%); }

/* Matched through the parent so it outweighs the sage default above, which is
   set on `.ks-corners > .ks-corner` and would otherwise win on specificity. */
.ks-corners > .ks-corner--tr { background-color: var(--swatch-accent-peach); }

/* ══ Navigation ═══════════════════════════════════════════════════════ */

.site-nav {
  position: relative;
  z-index: 3;
  padding: var(--size-1-5) var(--gutter);
}

.site-nav__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--gap-xs);
  flex-wrap: wrap;
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: var(--size-0-5) var(--size-0-75);
  min-height: var(--tap-min);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--fw-bold);
  color: var(--color-text);
  text-decoration: none;
  text-transform: uppercase;
  line-height: calc(var(--tap-min) - var(--size-1));
  transition: color var(--dur-hover) var(--ease-out);
}

/* The rule is drawn rather than underlined so it can wipe in from the left.
   transform-origin flips on the way out so it retracts the way it arrived. */
.site-nav__link::after {
  content: "";
  position: absolute;
  left: var(--size-0-75);
  right: var(--size-0-75);
  bottom: var(--size-0-25);
  height: var(--border-w);
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur) var(--ease-out);
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] { color: var(--color-heading); }

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after,
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* ══ Hero ═════════════════════════════════════════════════════════════ */

.site-hero {
  position: relative;
  padding-block: var(--size-4) var(--size-6);
}

.site-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--size-1);
}

/* The wordmark is the page's h1. It is an <img> of lettering, so the heading
   text lives in the alt and the visually-hidden span, not in a font. */
.site-hero__wordmark {
  width: min(55rem, 100%);
  height: auto;
}

/* The "Kulturhuset" script under the wordmark. The width is not a guess: the
   Webflow build rendered its Lottie at 272px on a 375px viewport and 480px on
   a 1024px one, which is exactly min(30rem, 72.5vw) — so that is what it is.
   The SVG carries about 8% of its own height as padding, so a small negative
   margin pulls the script back up under the wordmark. */
.site-hero__script {
  width: min(30rem, 72.5vw);
  margin-top: calc(var(--size-0-5) * -1);
}

/* The pepper-mill line drawing, bled off the top-right corner. Decorative:
   aria-hidden in the markup, and it must never intercept a click. */
.site-hero__ornament {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(12rem, 30vw, 28rem);
  opacity: 0.2;
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

/* ══ About ════════════════════════════════════════════════════════════ */

.about__layout {
  display: grid;
  gap: var(--gap-md);
}

@container (min-width: 48rem) {
  .about__layout { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ══ Menu section ══════════════════════════════════════════════════ */

/* The rail has two layouts and this is the container both are measured
   against. Named, so the queries below cannot accidentally resolve against
   some other container that appears later. */
.menus {
  position: relative;
  container-type: inline-size;
  container-name: menus;
}

.menus__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-xs);
  text-align: center;
}

/* Stacked is the DEFAULT, and the horizontal rail is the enhancement, so a
   narrow screen never has to undo a layout built for a wide one. */
.menus__tabs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--size-0-25);
  margin-top: var(--gap-sm);
}

/* The three menu names act as tabs: they scroll the matching card to the
   centre of the rail. They are real <button>s because they move the view
   rather than navigate, and the rail is keyboard-reachable on its own. */
.menus__tab {
  position: relative;
  padding: var(--size-0-25) var(--size-0-25) var(--size-0-5);
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: var(--fw-black);
  line-height: var(--lh-h3);
  color: var(--color-text);
  transition: color var(--dur-hover) var(--ease-out);
}

/* Hover is a colour change, as in the Webflow build (its gold accent); the
   card currently centred is held in the brand brown. No underline. */
.menus__tab:hover { color: var(--color-accent-gold); }

.menus__tab[aria-current="true"] { color: var(--color-heading); }

/* ── The rail ───────────────────────────────────────────────────────────
   A horizontal scroller. The padding-inline is half the leftover width so the
   first and last card can still reach the centre — without it the end cards
   can only ever scroll flush to the edge and the tab for them looks broken. */

/* Phones get a plain vertical stack: no sideways scroll, nothing to discover,
   every menu reachable by scrolling the page as usual. Tapping a tab scrolls
   the PAGE down to that card (site.js reads flex-direction to know which
   mode it is in, so the breakpoint lives here and only here). */
.menus__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-md);
  margin-top: var(--gap-md);
  padding-block: var(--size-2);
  padding-inline: var(--gutter);
  scrollbar-width: none;
}

.menus__rail::-webkit-scrollbar { display: none; }

.menus__rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

/* Scroll snapping and a script writing scrollLeft every frame are two things
   steering the same scroller: the snap engine keeps grabbing the wheel and the
   glide lands as a jump. Snap is switched off for the duration of a scripted
   scroll and restored at the end, so the animation is free to run and snapping
   still governs ordinary dragging and flicking. */
.menus__rail.is-animating {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

/* ══ Menu card ══════════════════════════════════════════════════════ */

.menu-card {
  flex: 0 0 auto;
  width: 100%;
  max-width: var(--menu-card-w);
  --menu-corner: var(--size-2);
  /* No sideways padding in the stack. The corner circles sit inside the
     sheet, which clips them, so this padding only ever cost width — on a
     375px phone it was 28px a side, on top of the page gutter and the
     sheet's own padding, and it left 200px for the menu. */
  padding: var(--size-1-5) 0;
  container-type: inline-size;
}

/* ── From tablet up: the horizontal rail ─────────────────────────────────
   48rem is where a 45rem card plus its margins stops being a squeeze, which
   puts iPad portrait and everything above it on the scroller and leaves
   phones with the stack. 100cqw, not 100vw: the centring padding has to be
   measured against the container the query is about. */
@container menus (min-width: 48rem) {
  .menus__tabs {
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--gap-xs) var(--gap-md);
  }

  .menus__rail {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    padding-block: var(--size-2-5);
    padding-inline: max(var(--gutter), calc((100cqw - var(--menu-card-w)) / 2));
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .menu-card {
    width: var(--menu-card-w);
    max-width: none;
    --menu-corner: var(--size-4);
    padding: var(--size-1-5) var(--size-4);
    scroll-snap-align: center;
  }
}

.menu-card__sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  /* Sideways padding follows the card's own width (cqi, the card is the
     container): ~20px on a phone, the full --size-3 once the card is wide. */
  padding: var(--size-3) clamp(var(--size-1-25), 6cqi, var(--size-3));
  /* A second, finer grain laid across the top of the sheet only — not tiled. */
  background-image: url("/assets/img/paper-texture-2.e84c32d692b2d92f.avif");
  background-position: 50% 0;
  background-repeat: no-repeat;
  background-size: 100% auto;
  /* outline rather than border, inset by its own width, so the frame sits on
     the panel edge. An outline is not clipped by overflow, which is exactly
     why it is an outline: the panel clips its corner circles while keeping
     its own frame. */
  outline: var(--border-w) solid var(--color-line);
  outline-offset: calc(var(--border-w) * -1);
  /* THIS is what turns four circles into four concave bites. Each circle is
     centred on a corner, half outside the panel; clipping throws that half
     away and leaves a quarter-disc sitting in the corner, its arc drawn in
     the same hairline. Without the clip you get a whole circle floating over
     the corner with the frame stopping either side of it. */
  overflow: hidden;
  overflow: clip;
}

.menu-card__title { font-size: var(--fs-h3); }
.menu-card__subtitle { font-size: var(--fs-h4); margin-top: var(--size-0-25); }

/* Only shown on the printed sheet — see the print block at the bottom. */
.menu-card__print-logo { display: none; }

.menu-card__sections {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

/* Wrappers around the Veckans rows and the linked sections (menu-card.html):
   they exist for the CMS bindings only and must not break the column's gap. */
.menu-card__days,
.menu-card__groups { display: contents; }

.menu-card__group {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.menu-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

/* ── One dish ─────────────────────────────────────────────────────────── */

/* Wraps rather than overflows: when a name and its prices cannot share a line
   (Toast Skagen's "halv 146:– hel 196:–" on a phone), the prices drop under
   the name, still right-aligned. The name's 9rem basis is what decides when
   that happens, so a long name wraps itself before it pushes a single price
   off the line. */
.dish__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0 var(--gap-xs);
}

.dish__row .dish__name { flex: 1 1 9rem; min-width: 0; }
.dish__row .dish__prices { margin-left: auto; }

.dish__name {
  font-family: var(--font-alt);
  font-size: var(--fs-large);
  font-weight: var(--fw-regular);
  color: var(--color-text);
}

.dish__prices {
  display: flex;
  align-items: baseline;
  gap: var(--gap-xs);
  flex: 0 0 auto;
  font-family: var(--font-alt);
  font-size: var(--fs-large);
  white-space: nowrap;
}

/* "Halv" / "Hel" sit next to the figure they qualify. They are quieter than
   the price itself so the eye lands on the number first. */
.dish__portion {
  font-size: var(--fs-small);
  color: var(--color-muted);
  text-transform: lowercase;
}

/* The Webflow build drops dish names to a flat 16px below its 768px
   breakpoint (measured: 16.00 at both 520 and 767, 22.81 at 991). Reproduced
   for fidelity — though it does leave a dish name the same size as its own
   description on a phone, which is worth a second look. */
@media (max-width: 767px) {
  .dish__name { font-size: 1rem; }
}

.dish__desc {
  margin-top: var(--size-0-25);
  max-width: 52ch;
  font-size: 1rem;
  /* 1.2 is tight for body copy, but it is what the Webflow build sets and it
     is what gives a menu card its dense, printed look. */
  line-height: 1.2;
  color: var(--color-text);
}

/* Sold out is whatever the CMS flagged: the badge only renders when the
   entry's `slutsald` is on, so :has() reads that state straight off the
   markup instead of needing a second bound attribute to carry it. */
.dish:has(.dish__flag) .dish__name { text-decoration: line-through; }
.dish:has(.dish__flag) .dish__name,
.dish:has(.dish__flag) .dish__prices { color: var(--color-soldout); }

.dish__flag {
  margin-left: var(--size-0-5);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: var(--tr-caps);
  color: var(--color-soldout);
  text-decoration: none;
  display: inline-block;
}

/* ══ Buttons ═════════════════════════════════════════════════════════ */

.ks-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--size-0-5);
  min-height: var(--tap-min);
  padding: var(--size-0-5) var(--size-1-25);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--tr-caps);
  text-decoration: none;
  color: var(--color-text);
  background: transparent;
  border: var(--border-w) solid var(--color-line);
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.ks-btn:hover {
  background: var(--color-invert);
  color: var(--color-text-on-invert);
}

.ks-btn--solid {
  background: var(--color-invert);
  color: var(--color-text-on-invert);
}

.ks-btn--solid:hover {
  background: var(--color-heading);
  color: var(--color-text-on-invert);
}

.ks-btn__icon { width: 1em; height: 1em; flex: 0 0 auto; }

.menu-card__print { align-self: flex-start; }

/* ══ Contact ═════════════════════════════════════════════════════════ */

.contact__layout {
  display: grid;
  gap: var(--gap-md);
  margin-top: var(--gap-md);
}

@container (min-width: 46rem) {
  .contact__layout { grid-template-columns: 1fr 1fr; }
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
  margin-top: var(--gap-xs);
}

.contact__link {
  display: flex;
  align-items: center;
  gap: var(--size-1);
  min-height: var(--tap-min);
  font-size: var(--fs-large);
  text-decoration: none;
  color: var(--color-text);
}

.contact__link--address { color: var(--color-heading); }

.contact__link:hover { color: var(--color-heading); text-decoration: underline; }

.contact__icon {
  width: var(--size-1-5);
  height: var(--size-1-5);
  flex: 0 0 auto;
  object-fit: contain;
}

.contact__note {
  margin-top: var(--size-0-25);
  font-size: var(--fs-small);
  color: var(--color-muted);
}

/* ── Opening hours ────────────────────────────────────────────────────
   A description list: the day range is the term, the times are the detail.
   That is what it is, and it gives a screen reader the pairing for free. */

.hours {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--size-0-75) var(--gap-sm);
  margin-top: var(--gap-xs);
}

.hours__day {
  font-size: var(--fs-large);
  font-weight: var(--fw-regular);
}

.hours__time {
  margin: 0;
  font-size: var(--fs-large);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

/* The lunch rows, flagged `framhavd` in the CMS. Booleans render as the
   string "true"/"false", confirmed against the deployed page. */
.hours__row[data-framhavd="true"] .hours__day,
.hours__row[data-framhavd="true"] .hours__time { color: var(--color-heading); }

/* display:contents lets a row wrap its two cells for authoring while the
   grid still lays the cells out, so the day and its time stay on one line. */
.hours__row { display: contents; }

/* ── Map ───────────────────────────────────────────────────────────── */

.map {
  position: relative;
  margin-top: var(--gap-md);
  /* No padding: the corners clip against this box, so it has to BE the framed
     box rather than sit around one. */
  overflow: hidden;
  overflow: clip;
}

.map__frame {
  border: var(--border-w) solid var(--color-line);
  overflow: hidden;
}

.map__frame iframe {
  width: 100%;
  aspect-ratio: 16 / 7;
  min-height: 18rem;
  border: 0;
  filter: grayscale(1) contrast(0.95);
}

/* ══ Footer ══════════════════════════════════════════════════════════ */

.site-footer { padding-block: var(--gap-md) var(--gap-sm); }

.site-footer__rule {
  height: var(--border-w);
  background: var(--color-heading);
  border: 0;
  margin: 0 0 var(--gap-sm);
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--size-0-5) var(--gap-sm);
  font-size: var(--fs-small);
  color: var(--color-muted);
}

.site-footer__row a { color: var(--color-muted); }
.site-footer__row a:hover { color: var(--color-heading); }

/* Reads as the link beside it, but it is a button because it opens a dialog
   rather than going anywhere. */
.site-footer__btn {
  font: inherit;
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
  transition: color var(--dur-hover) var(--ease-out);
}

.site-footer__btn:hover { color: var(--color-heading); }

/* ══ Entrance animation ═════════════════════════════════════════════
   ONE effect, used everywhere: fade up on first view. The start state is
   gated behind .js on <html> so a blocked or failed script can never leave
   content invisible — without JS the elements are simply already visible. */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(var(--size-1));
  transition: opacity var(--dur-reveal) var(--ease-out),
              transform var(--dur-reveal) var(--ease-out);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .menus__rail { scroll-behavior: auto; }
}

/* ══ Hero script ═════════════════════════════════════════════════════════════
   The real Lottie plays here. The SVG poster underneath is the animation's
   final frame: it is what shows before the player loads, if the player fails,
   and whenever reduced motion is asked for. site.js swaps them over. */

.site-hero__script { position: relative; }

.site-hero__script > svg,
.site-hero__script > canvas { display: block; width: 100%; height: auto; }

.site-hero__script-poster { display: block; width: 100%; height: auto; }

.site-hero__script.is-playing .site-hero__script-poster { display: none; }

/* ══ Search ══════════════════════════════════════════════════════════════════
   Only the results page uses these; the nav carries no search box because the
   Webflow original had none. */

.search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: var(--size-0-75);
  max-width: var(--max-prose);
}

.search-form label {
  flex: 1 0 100%;
  font-size: var(--fs-small);
  color: var(--color-muted);
}

.search-form input {
  flex: 1 1 14rem;
  min-height: var(--tap-min);
  padding: var(--size-0-5) var(--size-0-75);
  background: var(--color-surface);
  border: var(--border-w) solid var(--color-line);
  color: var(--color-text);
}

.search-results { list-style: none; padding: 0; }

.search-result { padding-block: var(--size-0-75); border-bottom: 1px solid var(--color-line-soft); }

.search-result__title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  color: var(--color-heading);
  text-decoration: none;
}

.search-result__title:hover { text-decoration: underline; }

/* The search client wraps matched terms in <mark>; the default yellow fights
   a cream page, so it is restated in the palette. */
.search-result mark,
.search-result__title mark {
  background: var(--swatch-primary-200);
  color: inherit;
}

/* ══ Cookie consent ══════════════════════════════════════════════════════════
   Our own markup (components/consent-banner), cloned in by the Weblooks
   consent engine inside #wl-consent-banner. The engine sets no style on it,
   so these are ordinary rules, no !important needed.

   A cream panel on the page's own grain with a 1.5px rule, like the menus.
   Reject and accept are the same size and weight on purpose: refusing has to
   be as easy as accepting, and a louder accept button is the first thing a
   regulator flags. */

#wl-consent-banner {
  position: fixed;
  left: var(--gutter);
  bottom: var(--gutter);
  z-index: 60;
  width: min(32rem, calc(100vw - var(--gutter) * 2));
  max-height: calc(100dvh - var(--gutter) * 2);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--size-1-25);
  background-color: var(--color-surface);
  background-image: url("/assets/img/paper-texture.694d3bcd7be75f24.avif");
  background-position: 50% 0;
  background-size: 180% auto;
  color: var(--color-text);
  border: var(--border-w) solid var(--color-line);
  box-shadow: 0 14px 36px -18px rgb(0 1 1 / 0.45);
  font-size: var(--fs-small);
  line-height: var(--lh-loose);
}

.consent-ui__title {
  margin: 0 0 var(--size-0-25);
  font-family: var(--font-display);
  font-size: var(--fs-h5);
  font-weight: var(--fw-black);
  line-height: var(--lh-heading);
  color: var(--color-heading);
}

.consent-ui__body { margin: 0; }

.consent-ui__body a {
  color: var(--color-heading);
  text-underline-offset: 0.18em;
}

/* Settings: hidden until "Anpassa", which sets data-wl-consent-open. */
.consent-ui__prefs {
  display: none;
  margin: var(--size-1) 0 0;
  padding: 0;
  border: 0;
}

#wl-consent-banner[data-wl-consent-open] .consent-ui__prefs { display: grid; gap: var(--size-0-75); }

.consent-ui__purpose {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--size-0-5);
  align-items: center;
  padding-top: var(--size-0-75);
  border-top: 1px solid var(--color-line-soft);
}

.consent-ui__check {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  accent-color: var(--color-invert);
}

.consent-ui__purpose label {
  font-weight: var(--fw-bold);
  color: var(--color-heading);
}

.consent-ui__desc {
  grid-column: 2;
  margin: var(--size-0-25) 0 0;
  color: var(--color-muted);
}

.consent-ui__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--size-0-5);
  margin-top: var(--size-1);
}

.consent-ui__btn {
  flex: 1 1 8rem;
  padding-inline: var(--size-1);
  font-size: 0.8125rem;
}

/* Closed: Neka · Anpassa · Acceptera. Open: Neka · Spara val · Acceptera. */
.consent-ui__save { display: none; }
#wl-consent-banner[data-wl-consent-open] .consent-ui__manage { display: none; }
#wl-consent-banner[data-wl-consent-open] .consent-ui__save { display: inline-flex; }

#wl-consent-banner :focus-visible {
  outline: var(--focus-ring-w) solid var(--color-focus);
  outline-offset: 2px;
}

/* ══ Print ═══════════════════════════════════════════════════════════
   "Skriv ut" and ⌘P open a one-page PDF (menu-pdf.js) and never reach this.
   It is for File › Print: site.js marks the menu on screen .is-printing and
   sets --print-zoom so it fits one A4 page; only that menu prints, black on
   white. Without JS, every menu prints, one per page.

   The same sheet rules are written twice — for .print-measure, the
   off-screen copy site.js lays out at A4 width to measure, and for the real
   print — so the measurement and the printout cannot drift apart. Keep the
   two blocks identical. */

.menu-card.print-measure {
  position: absolute;
  left: -10000px;
  top: 0;
  width: 182mm;
  max-width: none;
  padding: 0;
  visibility: hidden;
  font-size: 10.5pt;
}
.print-measure .menu-card__sheet { padding: 0; gap: 6mm; background: none; outline: none; }
.print-measure .ks-corner,
.print-measure .menu-card__print { display: none; }
.print-measure .menu-card__print-logo { display: block; width: 42mm; margin: 0 auto 6mm; }
.print-measure .menu-card__title { font-size: 21pt; }
.print-measure .menu-card__subtitle { font-size: 12.5pt; }
.print-measure .ks-h4--caps { font-size: 11.5pt; }
.print-measure .dish__name,
.print-measure .dish__prices { font-size: 10.5pt; }
.print-measure .dish__desc { font-size: 9pt; }
.print-measure.print-cols .menu-card__sections { display: block; columns: 2; column-gap: 8mm; }
.print-measure.print-cols .menu-card__group { break-inside: avoid; margin-bottom: 5mm; }

@media print {
  @page { size: A4 portrait; margin: 14mm; }

  body {
    background: #fff;
    color: #000;
    font-size: 10.5pt;
  }

  .site-nav,
  .site-hero,
  .about,
  .contact,
  .site-footer,
  .menus__head,
  .menu-card__print,
  .ks-corner,
  #wl-consent-banner { display: none !important; }

  /* The reveal-on-scroll start state (opacity 0) would print a blank page
     for anything the visitor has not scrolled to yet. */
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }

  /* The section's own spacing would push a fitted menu onto a second page. */
  .menus { padding: 0; margin: 0; }

  .menus__rail {
    display: block;
    overflow: visible;
    padding: 0;
    margin: 0;
  }

  .menu-card {
    width: 100%;
    max-width: none;
    padding: 0;
    /* The rail fades off-centre cards with inline opacity. */
    opacity: 1 !important;
    break-before: page;
  }

  .menu-card:first-child { break-before: auto; }

  /* One menu chosen: it alone prints, scaled to its page. */
  body:has(.is-printing) .menu-card:not(.is-printing) { display: none; }
  /* Laid out at the width it was measured at, then scaled and centred, so
     the printout is exactly the measured layout. */
  .menu-card.is-printing {
    width: 182mm;
    margin-inline: auto;
    zoom: var(--print-zoom, 1);
    break-before: auto;
    break-inside: avoid;
  }
  .is-printing.print-cols .menu-card__sections { display: block; columns: 2; column-gap: 8mm; }
  .is-printing.print-cols .menu-card__group { break-inside: avoid; margin-bottom: 5mm; }

  .menu-card__sheet { padding: 0; gap: 6mm; background: none; outline: none; }
  .menu-card__print-logo { display: block; width: 42mm; margin: 0 auto 6mm; }
  .menu-card__title { font-size: 21pt; }
  .menu-card__subtitle { font-size: 12.5pt; }
  .ks-h4--caps { font-size: 11.5pt; }
  .dish__name, .dish__prices { font-size: 10.5pt; }
  .dish__desc { font-size: 9pt; }

  .menu-card__title,
  .menu-card__subtitle,
  .ks-h4,
  .dish__name,
  .dish__prices,
  .dish__portion,
  .dish__desc,
  .dish__flag { color: #000; }

  .dish { break-inside: avoid; }
  .ks-h4--caps { break-after: avoid; }

  a[href]::after { content: ""; }
}
