/* /sammenlign/: the app comparison tool. Every number comes from the skeleton tokens in
   styles.css; this file only places them. Phone first (390 px). Two states: «vælg» (the
   centred head and the box with the fields) and html.sm-cmp «sammenlign» (compact title, key
   numbers, details). Colour follows the facts only: a mark is a faint --leaf tone with a narrow
   --leaf edge and a small badge in --ink (never --leaf text on the green tone, under 4.5:1).

   The type has one size per role, so a line tells what it is before it is read:
     page title --h1-page (serif) · section (Overblik, Detaljer, Alle 29 apps) --h2-section (serif)
     · key number 700 at --h3-card wide, 1.04rem on a phone · short answer 600 1rem · explanation
     400 .95rem · source and date .84/.8rem, muted. */

/* A reading page: the flat cream of the articles, not the front page's long gradient (styles.css gives it to
   .ed-main, .artikel-main and .xp-head; Benjamin 3/12: the same background as the articles). */
body:has(.sm-page) { background: var(--cream); }

.sm-kv-app, .sm-k, .sm-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sm-label { margin: 0 0 var(--sp-2); font: 600 .78rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sm-page :is(a, button, input, summary):focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
/* The text can be marked; what is pressed cannot, so a press that drags a little does not mark a fold's head or a
   button (Benjamin 3/12). An app's closed row is a press too; its facts can be marked in the opened panel. */
.sm-page :is(button, summary, .sm-opt, .sm-check, .sm-pair, .sm-tile) { -webkit-user-select: none; user-select: none; }

/* The small chevron of everything that folds open in place (not of links that go somewhere). */
.sm-chev::after, .sm-more::after, .sm-find > summary::after, .sm-defs-btn::after, .sm-x > summary::after {
  content: ""; flex: none; width: 6px; height: 6px; margin: 0 0 3px var(--sp-2);
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.sm-more[aria-expanded="true"]::after, .sm-find[open]:not(.is-shutting) > summary::after, .sm-defs-btn[aria-expanded="true"]::after, .sm-x[open]:not(.is-shutting) > summary::after { margin-bottom: -3px; transform: rotate(-135deg); }
.sm-find > summary::-webkit-details-marker, .sm-ov-cat::-webkit-details-marker, .sm-app > summary::-webkit-details-marker, .sm-x > summary::-webkit-details-marker { display: none; }

/* ── The head («vælg»: centred, as the skeleton's centred head) ──────────── */
.sm-intro { max-width: 780px; margin: 0 auto var(--head-content-gap); text-align: center; }
.sm-intro .sm-h1 { font-size: var(--h1-page); line-height: 1.05; }
/* Who stands behind the page: the foot of the box, under a hairline (Benjamin 3/12: not a third line in the
   head). Without JS the box is gone; the method section says the same. */
.sm-by { margin: var(--sp-5) 0 0; padding: var(--sp-4) 0 0; border-top: 1px solid var(--hairline); font: 400 .9rem/1.5 var(--sans); color: var(--muted); }
.sm-by a, .sm-bar-by a { color: var(--deep); text-decoration: underline; text-underline-offset: 3px; }

/* ── «Prøv en sammenligning»: a bar over the box; each suggestion goes straight to a comparison ── */
.sm-try { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-2); max-width: 960px; margin: 0 auto var(--sp-5); }
html:not(.js) .sm-try { display: none; }
.sm-try-label { flex-basis: 100%; margin: 0 0 var(--sp-1); font: 600 .92rem/1.3 var(--sans); color: var(--deep-soft); text-align: center; }
.sm-try-links { display: contents; }
.sm-more-links[hidden] { display: none; }
.sm-pair { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--sp-4); border: 1px solid var(--hairline-strong); border-radius: var(--radius-pill); background: #fff; font: 500 .92rem/1.2 var(--sans); color: var(--ink); transition: border-color var(--t-hover) ease, background var(--t-hover) ease; }
.sm-more { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--sp-2); font: 500 .9rem/1.3 var(--sans); color: var(--deep); }

/* ── The box: «Lav din egen sammenligning», the fields, the filter that fills them, the button ── */
.sm-picker { box-sizing: border-box; max-width: 960px; margin: 0 auto; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--card-line); border-radius: var(--panel-radius); background: #fff; }
html:not(.js) .sm-picker { display: none; }
.sm-page h2.sm-pick-h { margin: 0 0 var(--sp-5); font: 800 var(--h3-card)/1.2 var(--serif); letter-spacing: -0.01em; color: var(--ink); text-align: center; text-shadow: none; text-wrap: balance; }
.sm-form { margin: 0; }
.sm-fields { display: grid; gap: var(--sp-4); }
.sm-field[hidden] { display: none; }
.sm-field-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 24px; margin-bottom: var(--sp-2); }
.sm-field-label { font: 600 .95rem/1.3 var(--sans); color: var(--ink); }
.sm-drop { min-height: 24px; padding: 0; font: 500 .86rem/1 var(--sans); color: var(--deep); text-decoration: underline; text-underline-offset: 3px; }
.sm-combo { position: relative; }
.sm-combo::after { content: ""; position: absolute; top: 25px; right: 18px; width: 8px; height: 8px; border-right: 1.5px solid var(--deep-soft); border-bottom: 1.5px solid var(--deep-soft); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.sm-input { box-sizing: border-box; width: 100%; min-height: 50px; padding: 0 44px 0 var(--sp-3); border: 1px solid var(--hairline-strong); border-radius: var(--radius-sm); background: #fff; font: 500 1rem/1.2 var(--sans); color: var(--ink); -webkit-appearance: none; appearance: none; }
.sm-input::placeholder { color: var(--muted); font-weight: 400; }
.sm-input:focus { border-color: var(--ink); outline: 2px solid var(--terra); outline-offset: 1px; }
.sm-list { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; max-height: min(320px, 46vh); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: var(--sp-1); list-style: none; border: 1px solid var(--hairline-strong); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow-md); }
.sm-list[hidden] { display: none; }
.sm-list [role="option"] { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); min-height: 44px; box-sizing: border-box; padding: var(--sp-2) var(--sp-3); border-radius: 8px; cursor: pointer; }
.sm-list .is-active { background: var(--cream-warm); }
.sm-opt-name { font: 500 .98rem/1.3 var(--sans); color: var(--ink); }
.sm-opt-cat { flex: none; font: 400 .8rem/1.3 var(--sans); color: var(--muted); text-align: right; }
.sm-list [aria-selected="true"] .sm-opt-name { font-weight: 700; }
.sm-list [aria-disabled="true"] { cursor: default; }
.sm-list [aria-disabled="true"] .sm-opt-name { color: var(--muted); }
.sm-none { padding: var(--sp-3); font: 400 .92rem/1.4 var(--sans); color: var(--muted); }

/* «+ Tredje app»: a quiet outline button in the row of fields; it becomes the third field. */
.sm-add { justify-self: start; min-height: 44px; padding: 0 var(--sp-4); border: 1px solid var(--ink); border-radius: var(--radius-sm); background: #fff; font: 600 .95rem/1 var(--sans); color: var(--ink); white-space: nowrap; transition: background var(--t-hover) ease; }
.sm-add[hidden] { display: none; }

/* The action, centred under the fields; the hint goes once two apps are chosen. */
.sm-submit { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); margin-top: var(--sp-5); text-align: center; }
.sm-go { width: 100%; min-height: 50px; padding: 0 var(--sp-6); border-radius: var(--radius-pill); background: var(--ink); color: var(--cream); font: 600 1rem/1 var(--sans); transition: background var(--t-hover) ease; }
.sm-go:disabled { background: var(--cream-warm); color: var(--deep-soft); cursor: not-allowed; }
.sm-need { margin: 0; font: 500 .92rem/1.4 var(--sans); color: var(--deep-soft); }
.sm-need:empty { display: none; }

/* A field the filter just filled lights up for a moment, so a press down there lands visibly up here. */
@keyframes sm-just { 0%, 40% { border-color: var(--leaf); background-color: rgba(79, 122, 74, .14); } }
@media screen and (prefers-reduced-motion: no-preference) {
  .sm-field.is-just .sm-input { animation: sm-just var(--t-arrive) ease-out; }
}

/* «Find apps efter behov»: a tinted panel under the fields, part of choosing them; categories and three filters,
   and the hits («+ Vælg» fills the next free field) only after a choice. */
.sm-find { margin-top: var(--sp-5); border-radius: var(--card-radius); background: var(--panel-bg); }
.sm-find > summary { display: flex; align-items: center; min-height: 52px; padding: 0 var(--sp-4); font: 600 .95rem/1.3 var(--sans); color: var(--ink); cursor: pointer; list-style: none; }
.sm-find > summary::after { margin-left: auto; }
.sm-find-n { margin-left: var(--sp-1); font-weight: 500; color: var(--deep-soft); }
.sm-filter { margin: 0; padding: var(--sp-1) var(--sp-4) var(--sp-4); }
.sm-set { margin: 0 0 var(--sp-4); padding: 0; border: 0; min-width: 0; }
.sm-set legend { margin: 0 0 var(--sp-2); padding: 0; font: 600 .86rem/1.3 var(--sans); color: var(--deep-soft); }
.sm-opts { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.sm-opt { position: relative; display: block; }
.sm-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sm-opt span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--sp-4); border: 1px solid var(--hairline-strong); border-radius: var(--radius-pill); background: #fff; font: 500 .92rem/1.2 var(--sans); color: var(--deep); transition: background var(--t-hover) ease, color var(--t-hover) ease, border-color var(--t-hover) ease; }
.sm-opt input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.sm-opt input:focus-visible + span { outline: 2px solid var(--terra); outline-offset: 2px; }
.sm-checks { display: flex; flex-wrap: wrap; gap: 0 var(--sp-5); }
.sm-check { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; font: 500 .95rem/1.3 var(--sans); color: var(--deep); cursor: pointer; }
.sm-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.sm-hits { margin-top: var(--sp-1); padding-top: var(--sp-4); border-top: 1px solid var(--hairline-strong); }
.sm-hits[hidden] { display: none; }
.sm-hits-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-2) var(--sp-4); }
.sm-match { margin: 0; font: 700 1.1rem/1.3 var(--sans); color: var(--ink); }
.sm-reset { min-height: 32px; padding: 0; font: 500 .9rem/1 var(--sans); color: var(--deep); text-decoration: underline; text-underline-offset: 3px; }
.sm-receipt { margin: var(--sp-1) 0 0; font: 500 .9rem/1.4 var(--sans); color: var(--deep-soft); }
.sm-receipt:empty { display: none; }
.sm-match-list { margin: var(--sp-3) 0 0; padding: 0; list-style: none; }
.sm-hit { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 var(--sp-3); min-height: 56px; padding: var(--sp-2) 0; border-top: 1px solid var(--hairline); }
.sm-hit-name { font: 600 1rem/1.3 var(--sans); color: var(--ink); }
.sm-hit-meta { grid-row: 2; font: 400 .82rem/1.3 var(--sans); color: var(--muted); }
.sm-hit.is-chosen .sm-hit-meta { font-weight: 600; color: var(--deep); }
.sm-hit-btn { grid-row: 1 / span 2; grid-column: 2; min-height: 36px; padding: 0 var(--sp-3); border: 1px solid var(--ink); border-radius: var(--radius-pill); background: #fff; font: 600 .88rem/1 var(--sans); color: var(--ink); white-space: nowrap; }
.sm-hit-btn.is-chosen { border-color: transparent; background: none; color: var(--deep); text-decoration: underline; text-underline-offset: 3px; }
.sm-hit-btn:disabled { opacity: .4; cursor: not-allowed; }

@media (min-width: 760px) {
  .sm-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; }
  .sm-fields.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm-add { min-height: 50px; }
  .sm-submit { flex-direction: row; justify-content: center; gap: var(--sp-4); }
  .sm-go { width: auto; }
  .sm-try-label { flex-basis: auto; margin: 0 var(--sp-2) 0 0; }
  .sm-match-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-6); }
}
@media (hover: hover) {
  .sm-list [role="option"]:not([aria-disabled="true"]):hover { background: var(--cream-warm); }
  .sm-opt span:hover { border-color: var(--ink); }
  .sm-go:not(:disabled):hover { background: var(--deep); }
  .sm-add:hover, .sm-hit-btn:not(:disabled):not(.is-chosen):hover { background: var(--cream-warm); }
  .sm-pair:hover { border-color: var(--ink); }
}

/* ── «sammenlign»: the compact top ─────────────────────────────────────── */
.sm-cmp-bar { display: none; }
html.sm-cmp .sm-intro { max-width: none; margin: 0 0 var(--sp-2); text-align: left; }
html.sm-cmp .sm-intro .sm-h1 { font: 600 .8rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-shadow: none; }
html.sm-cmp .sm-by { display: none; }
html.sm-cmp .sm-cmp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3) var(--sp-4); margin: 0 0 var(--sp-4); }
.sm-cmp-bar h2.sm-title { margin: 0; font: 800 clamp(1.7rem, 3.6vw, 2.4rem)/1.12 var(--serif); letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.sm-cmp-bar h2.sm-title:focus { outline: none; }
.sm-switch { min-height: 42px; padding: 0 var(--sp-4); border: 1px solid var(--hairline-strong); border-radius: var(--radius-pill); background: #fff; font: 600 .92rem/1 var(--sans); color: var(--ink); }
.sm-switch[aria-expanded="true"] { border-color: var(--ink); }
.sm-bar-by { flex-basis: 100%; margin: 0; font: 400 .88rem/1.5 var(--sans); color: var(--muted); }
html.sm-cmp .sm-try, html.sm-cmp .sm-pick-h { display: none; }
/* «Skift apps» folds the box out with the page's soft fold (sammenlign.js keeps it inert while folded). Once it is
   out, the clip lets go (.sm-pick-done), so a field's list can reach past the box. */
html.sm-cmp .sm-pick-fold { display: grid; grid-template-rows: 0fr; }
html.sm-cmp.sm-pick-open .sm-pick-fold { grid-template-rows: 1fr; }
html.sm-cmp .sm-pick-clip { min-height: 0; overflow: hidden; opacity: 0; }
html.sm-cmp.sm-pick-open .sm-pick-clip { opacity: 1; }
html.sm-cmp .sm-picker { max-width: none; margin: 0 0 var(--sp-5); }
html.sm-fold-on.sm-cmp .sm-pick-fold { transition: grid-template-rows var(--fold-h) var(--ease-land); }
html.sm-fold-on.sm-cmp .sm-pick-clip { translate: 0 4px; transition: opacity var(--fold-out) ease, translate var(--fold-out-blur) var(--ease-land); }
html.sm-fold-on.sm-cmp.sm-pick-open .sm-pick-clip { translate: 0 0; transition: opacity var(--t-settle) ease var(--fold-delay), translate var(--t-settle) var(--ease-land) var(--fold-delay); }
/* Out: no clip and no layer of its own (after the rules above, which it must outweigh), so a list stays over the
   names row below. */
html.sm-cmp.sm-pick-open.sm-pick-done .sm-pick-clip { overflow: visible; translate: none; }

/* ── The result ────────────────────────────────────────────────────────── */
.sm-result:empty { display: none; }
.sm-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-2) var(--sp-4); margin: var(--sp-7) 0 var(--sp-3); }
.sm-key .sm-sec-head { margin-top: var(--sp-5); }
.sm-page h3.sm-sec { margin: 0; font: 800 var(--h2-section)/1.15 var(--serif); letter-spacing: -0.01em; color: var(--ink); }
.sm-defs-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0; font: 500 .9rem/1 var(--sans); color: var(--deep); text-decoration: underline; text-underline-offset: 3px; }
.sm-defs { display: grid; gap: var(--sp-3) var(--sp-6); margin: 0 0 var(--sp-4); padding: var(--sp-4) var(--sp-5); border-radius: var(--card-radius); background: var(--panel-bg); }
.sm-defs[hidden] { display: none; }
.sm-defs dt { margin: 0 0 2px; font: 600 .92rem/1.3 var(--sans); color: var(--ink); }
.sm-defs dd { margin: 0; font: 400 .9rem/1.5 var(--sans); color: var(--deep-soft); }
@media (min-width: 760px) { .sm-defs { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }

/* The names over the columns, sticky while their own section is read. */
.sm-names { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--hairline-strong); background: var(--cream); }
.sm-names-gap { display: none; }
.sm-names p { margin: 0; padding: 0 var(--sp-2); font: 700 1rem/1.25 var(--sans); color: var(--ink); overflow-wrap: anywhere; }
.sm-names.is-detail { display: none; }

/* The key numbers: the name over the two values side by side, also on a phone. */
.sm-krow { padding: var(--sp-3) 0 var(--sp-4); border-top: 1px solid var(--hairline); }
.sm-names + .sm-krow { border-top: 0; }
.sm-kname { margin: 0 0 var(--sp-2); font: 600 1rem/1.3 var(--sans); color: var(--ink); }
.sm-kvals { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: var(--sp-3); }
.sm-kv { min-width: 0; padding: var(--sp-2); border-radius: 10px; }
.sm-kv.is-lead { background: rgba(79, 122, 74, .10); box-shadow: inset 3px 0 0 var(--leaf); }
.sm-kv-main { margin: 0; font: 700 1.04rem/1.25 var(--sans); color: var(--ink); overflow-wrap: anywhere; }
.sm-kv-sub { margin: 2px 0 0; font: 400 .84rem/1.4 var(--sans); color: var(--deep-soft); overflow-wrap: anywhere; }
.sm-mark { display: inline-block; margin: var(--sp-2) 0 0; padding: 2px 8px; border-radius: 8px; background: rgba(79, 122, 74, .2); font: 600 .74rem/1.4 var(--sans); color: var(--ink); }
.sm-kv-why, .sm-knote { margin: var(--sp-2) 0 0; font: 400 .84rem/1.4 var(--sans); color: var(--muted); }

/* Three apps on a phone: each answer under the criterion with its app's name. */
.sm-cmp[data-n="3"]:not(.is-grid) .sm-names { display: none; }
.sm-cmp[data-n="3"]:not(.is-grid) .sm-kvals { grid-template-columns: minmax(0, 1fr); gap: var(--sp-1); }
.sm-cmp[data-n="3"]:not(.is-grid) .sm-kv-app { position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; white-space: normal; margin: 0 0 2px; font: 600 .76rem/1.3 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

/* The details: one block per criterion; on a phone the apps under each other with their names. */
.sm-drow { padding: var(--sp-4) 0 var(--sp-2); border-top: 1px solid var(--hairline); }
.sm-dlabel { margin: 0 0 var(--sp-1); font: 600 1rem/1.3 var(--sans); color: var(--ink); }
.sm-dcell { min-width: 0; padding: var(--sp-3) 0; }
.sm-dcell + .sm-dcell { border-top: 1px solid var(--hairline); }
.sm-dcell .sm-dcell-app { margin: 0 0 var(--sp-1); font: 600 .76rem/1.3 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.sm-dcell p, .sm-app-body dd > p { margin: 0; font: 400 .95rem/1.5 var(--sans); color: var(--deep); overflow-wrap: anywhere; }
.sm-whom-link a, .sm-app-more a { color: var(--deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sm-page .sm-whom-link, .sm-page .sm-app-more { margin-top: var(--sp-2); }

/* A cell: the short answer stands out; the explanation and the sources fold behind «Vis mere». */
.sm-page p.sm-scan { font: 600 1rem/1.4 var(--sans); color: var(--ink); }
.sm-page p.sm-short { margin-top: 2px; font-size: .92rem; color: var(--deep-soft); }
.sm-x { margin-top: var(--sp-1); }
.sm-x > summary { display: inline-flex; align-items: center; min-height: 44px; font: 500 .86rem/1 var(--sans); color: var(--deep); cursor: pointer; list-style: none; }
.sm-x > summary .sm-x-more, .sm-x > summary .sm-x-less { text-decoration: underline; text-underline-offset: 3px; }
.sm-x-less, .sm-x[open]:not(.is-shutting) .sm-x-more { display: none; }
.sm-x[open]:not(.is-shutting) .sm-x-less { display: inline; }
.sm-x-body { padding: 0 0 var(--sp-2); }
.sm-x-body > p + p { margin-top: var(--sp-1); }
.sm-page .sm-x-body p.sm-src { margin-top: var(--sp-2); font-size: .84rem; line-height: 1.45; color: var(--deep-soft); }
.sm-src a { color: var(--deep); }
.sm-page .sm-x-body p.sm-read { margin-top: 0; font-size: .8rem; color: var(--muted); }
/* WebKit 26 keeps the open height of a nested <details> closed from script («Åbn alle detaljer» and
   back), so an opened group stood with a tall empty gap; hiding the closed content outright fixes it. */
/* (html in front: it must outweigh the soft fold's display: grid below, or the bug comes back with the fold.) */
html :is(.sm-find, .sm-ov-group, .sm-app, .sm-x):not([open]) > :not(summary) { display: none; }

/* The soft fold (sammenlign.js, html.sm-fold-on): the site's FAQ fold («THE SOFT FOLD» in styles.css) on every
   <details> of the page, with its tokens (<main> carries faq-fold for them). The panel's height grows from nothing
   while the content comes up out of a light blur, a little after; closing runs it back. A group is long, so it comes
   up without the blur, which would cost a phone a texture the size of the group. Without JS and with reduced motion
   the wrapper is a plain block and <details> opens at once. */
html.sm-fold-on .sm-fold { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--fold-h) var(--ease-land); }
html.sm-fold-on :is(.sm-find, .sm-ov-group, .sm-app, .sm-x):not(.is-open) > .sm-fold { grid-template-rows: 0fr; }
html.sm-fold-on .sm-fold-clip {
  min-height: 0; overflow: hidden; opacity: 0; filter: blur(4px); translate: 0 4px;
  transition: opacity var(--fold-out) ease, filter var(--fold-out-blur) var(--ease-land), translate var(--fold-out-blur) var(--ease-land);
}
html.sm-fold-on .is-open > .sm-fold > .sm-fold-clip {
  opacity: 1; filter: blur(0); translate: 0 0;
  transition: opacity var(--t-settle) ease var(--fold-delay), filter var(--t-settle) var(--ease-land) var(--fold-delay), translate var(--t-settle) var(--ease-land) var(--fold-delay);
}
html.sm-fold-on .sm-ov-group > .sm-fold > .sm-fold-clip { filter: none; }

/* Side by side: from 760 px with two apps, from 1100 px with three (sammenlign.js sets .is-grid). */
.sm-cmp.is-grid { --label: 200px; --col-gap: var(--sp-5); }
.sm-cmp.is-grid .sm-names { grid-template-columns: var(--label) repeat(var(--n), minmax(0, 1fr)); gap: var(--col-gap); }
.sm-cmp.is-grid .sm-names.is-detail { display: grid; }
.sm-cmp.is-grid .sm-names-gap { display: block; }
.sm-cmp.is-grid .sm-names p { padding: 0 var(--sp-3); }
.sm-cmp.is-grid .sm-krow { display: grid; grid-template-columns: var(--label) repeat(var(--n), minmax(0, 1fr)); align-items: baseline; column-gap: var(--col-gap); padding: var(--sp-2) 0; }
.sm-cmp.is-grid .sm-kname { margin: 0; }
.sm-cmp.is-grid .sm-kvals { display: contents; }
.sm-cmp.is-grid .sm-kv { padding: var(--sp-3); }
.sm-cmp.is-grid .sm-kv-main { font-size: var(--h3-card); line-height: 1.2; }
.sm-cmp.is-grid .sm-kv-sub { font-size: .9rem; }
.sm-cmp.is-grid .sm-knote { grid-column: 2 / -1; margin: 0 0 var(--sp-2); padding: 0 var(--sp-3); }
.sm-cmp.is-grid .sm-drow { display: grid; grid-template-columns: var(--label) minmax(0, 1fr); column-gap: var(--col-gap); padding: var(--sp-3) 0 var(--sp-2); }
.sm-cmp.is-grid .sm-names + .sm-drow { border-top: 0; }
.sm-cmp.is-grid .sm-dlabel { padding-top: var(--sp-2); }
.sm-cmp.is-grid .sm-dcells { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); column-gap: var(--col-gap); }
.sm-cmp.is-grid .sm-dcell { padding: var(--sp-2) var(--sp-3) 0; }
.sm-cmp.is-grid .sm-dcell + .sm-dcell { border-top: 0; }
.sm-cmp.is-grid .sm-dcell-app { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sm-cmp.is-grid .sm-x > summary { min-height: 32px; }

.sm-hint { margin: var(--sp-4) 0 0; font: 500 1rem/1.5 var(--sans); color: var(--muted); }

/* ── Every app, in the HTML ────────────────────────────────────────────── */
.sm-ov-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-2) var(--sp-4); margin: 0 0 var(--sp-3); }
.sm-ov-top h2.h-serif { font-size: var(--h2-section); line-height: 1.15; }
.sm-open-all { min-height: 40px; padding: 0; font: 600 .92rem/1 var(--sans); color: var(--deep); text-decoration: underline; text-underline-offset: 3px; }
html:not(.js) .sm-open-all { display: none; }
/* The lede runs the width of the overview; how to read it is in bold (Benjamin 3/12). */
.sm-ov-lede { margin: 0 0 var(--sp-5); font: 400 1rem/1.55 var(--sans); color: var(--deep-soft); }
.sm-ov-lede a { color: var(--deep); }
.sm-ov-lede strong { display: block; margin-top: var(--sp-1); font-weight: 700; color: var(--ink); }
.sm-ov-cols { display: none; }
.sm-ov-group { border-top: 1px solid var(--hairline-strong); }
.sm-ov-group:last-of-type { border-bottom: 1px solid var(--hairline-strong); }
.sm-ov-list { padding-bottom: var(--sp-4); }
.sm-ov-cat { display: flex; align-items: center; gap: var(--sp-2); min-height: 52px; padding: var(--sp-3) 0; font: 600 1.1rem/1.3 var(--sans); color: var(--ink); cursor: pointer; list-style: none; }
.sm-ov-cat::after { content: "+"; margin-left: auto; font-weight: 400; font-size: 1.3rem; color: var(--muted); }
.sm-ov-group[open]:not(.is-shutting) > .sm-ov-cat::after { content: "−"; }
.sm-page h2#sm-alle:focus { outline: none; }
.sm-ov-cat span { font-weight: 500; color: var(--muted); }
.sm-ov-note { margin: 0 0 var(--sp-3); font: 400 .92rem/1.5 var(--sans); color: var(--deep-soft); }

/* An app's closed row. Phone: name and price on top, the key facts as phrases under them. */
.sm-app { border-top: 1px solid var(--hairline); }
.sm-app > summary { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--sp-3); padding: var(--sp-3) 32px var(--sp-3) 0; cursor: pointer; list-style: none; }
.sm-app > summary::after { content: "+"; position: absolute; top: var(--sp-3); right: 4px; font: 400 1.2rem/1.2 var(--sans); color: var(--muted); }
.sm-app[open]:not(.is-shutting) > summary::after { content: "−"; }
.sm-app-name { font: 600 1rem/1.3 var(--sans); color: var(--ink); }
.sm-app-tag { display: block; font: 500 .78rem/1.3 var(--sans); color: var(--muted); }
/* On a phone the price's qualifier («kræver en Thermomix») takes its own line under the name. */
.sm-app-price { display: contents; }
.sm-app-pm { font: 600 .95rem/1.3 var(--sans); color: var(--ink); text-align: right; white-space: nowrap; }
.sm-app-ps { grid-column: 1 / -1; font: 400 .8rem/1.35 var(--sans); color: var(--muted); }
.sm-app-col { display: none; }
.sm-app-lines { grid-column: 1 / -1; display: grid; gap: 1px; margin-top: var(--sp-1); font: 400 .88rem/1.45 var(--sans); color: var(--deep-soft); }

/* An opened app reads in a panel of its own, one column, so it does not fight the columns above. */
.sm-app-body { margin: 0 0 var(--sp-4); padding: var(--sp-5) clamp(16px, 2vw, 24px); border-top: 1px solid var(--hairline); border-radius: 0 0 var(--card-radius) var(--card-radius); background: var(--card-bg); }
.sm-app-body h3.sm-app-h { margin: 0 0 var(--sp-4); font: 800 var(--h3-card)/1.2 var(--serif); color: var(--ink); }
.sm-app-body dl { display: grid; gap: var(--sp-4); max-width: var(--read-col); margin: 0; }
.sm-app-body dt { margin: 0 0 var(--sp-1); font: 600 .78rem/1.3 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.sm-app-body dd { margin: 0; min-width: 0; }

@media (min-width: 1000px) {
  .sm-ov-cols, .sm-app > summary { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, .9fr) minmax(0, .8fr) minmax(0, 1.5fr); gap: var(--sp-4); }
  .sm-ov-cols { padding: 0 32px var(--sp-2) 0; font: 600 .76rem/1.3 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
  .sm-app > summary { align-items: baseline; }
  .sm-app-price { display: block; }
  .sm-app-pm { display: block; text-align: left; white-space: normal; }
  .sm-app-ps { display: block; }
  .sm-app-col { display: block; font: 400 .92rem/1.4 var(--sans); color: var(--deep); }
  .sm-app-lines { display: none; }
}

/* ── Under a comparison: tiles in place of the overview (every app, other comparisons, recipes, the article) ── */
.sm-next { display: none; }
html.sm-cmp .sm-overview { display: none; }
html.sm-cmp .sm-next { display: block; }
.sm-next h2.h-serif { margin: 0 0 var(--sp-5); font-size: var(--h2-section); line-height: 1.15; }
.sm-tile[hidden] { display: none; }

/* ── How we checked ────────────────────────────────────────────────────── */
.sm-kilder-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
.sm-kilder p { margin: 0 0 var(--sp-3); font: 400 .98rem/1.55 var(--sans); color: var(--deep); }
/* An address (support@zimmerfood.com) may break, so large text stays inside the panel. */
.sm-kilder a { color: var(--deep); overflow-wrap: anywhere; }
.sm-rules, .sm-dates { margin: 0 0 var(--sp-4); padding-left: 1.1em; font: 400 .95rem/1.55 var(--sans); color: var(--deep); }
.sm-rules li + li { margin-top: var(--sp-2); }
@media (min-width: 860px) { .sm-kilder-cols { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--sp-7); } }

@media screen and (prefers-reduced-motion: reduce) {
  .sm-opt span, .sm-go, .sm-add, .sm-pair { transition: none; }
}
