/*
 * Snilld forside – læsesalen (biblioteket) som sektion. Hører til include/home-frontier-library.php
 * og home-frontier/library/. Ren CSS, ikke Stylus.
 *
 * Tilstande på [data-sfl-root]:
 *   (ingen)        uden JavaScript: kun teksten og listen
 *   .sfl-no3d      telefon, reduceret bevægelse eller ingen WebGL: teksten og listen
 *   .sfl-wants3d   rummet er ved at blive hentet
 *   .sfl-3d        rummet kører; listen er foldet sammen, til man beder om den (.sfl-list-open)
 */
/* Cormorant Garamond hentes af home-frontier/library/app.js (font-cormorant.js). Uden den bruges Georgia. */

#snilld-frontier .sf-lib {
  position: relative;
  background: #0b0806;
  color: #fff;
}
#snilld-frontier .sf-lib *,
#snilld-frontier .sf-lib *::before,
#snilld-frontier .sf-lib *::after {
  box-sizing: border-box;
}

/* ——— Rummet ——— */
#snilld-frontier .sfl-hall {
  position: relative;
  padding: 88px 24px 40px;
}
#snilld-frontier .sfl-stage {
  display: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
#snilld-frontier .sfl-wants3d .sfl-hall,
#snilld-frontier .sfl-3d .sfl-hall {
  height: 100vh;
  height: max(640px, 100svh);
  padding: 0;
  overflow: hidden;
}
#snilld-frontier .sfl-wants3d .sfl-stage,
#snilld-frontier .sfl-3d .sfl-stage {
  display: block;
}
#snilld-frontier .sfl-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: grab;
  touch-action: pan-y;
  transition: opacity 900ms ease;
}
#snilld-frontier .sfl-3d .sfl-stage canvas {
  opacity: 1;
}
#snilld-frontier .sfl-stage canvas.hovering {
  cursor: pointer;
}
#snilld-frontier .sfl-stage canvas.grabbing {
  cursor: grabbing;
}
/* Kanterne toner ud i forsidens mørke, så rummet ikke står som en kasse. */
#snilld-frontier .sfl-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, #0e0a14 0%, rgba(14, 10, 20, 0) 16%, rgba(14, 10, 20, 0) 78%, #0e0a14 100%),
    linear-gradient(90deg, rgba(11, 8, 6, 0.86) 0%, rgba(11, 8, 6, 0.5) 26%, rgba(11, 8, 6, 0) 52%);
}

#snilld-frontier .sfl-intro {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
#snilld-frontier .sfl-wants3d .sfl-intro,
#snilld-frontier .sfl-3d .sfl-intro {
  position: absolute;
  left: max(24px, calc((100vw - 1200px) / 2));
  bottom: 112px;
  width: min(430px, calc(100vw - 48px));
  margin: 0;
  pointer-events: none;
}
#snilld-frontier .sfl-intro .sf-h2 {
  margin-bottom: 14px;
}
/* Sektionen er mørk: overskriften skal stå lyst som i forsidens top. */
#snilld-frontier .sfl-intro .sf-h2 strong {
  color: #fff;
}
#snilld-frontier .sfl-intro .sf-h2 span {
  color: #cdc2f8;
}
#snilld-frontier .sfl-intro .sf-kicker {
  color: #cdc2f8;
}
#snilld-frontier .sfl-intro .sf-lead {
  color: rgba(255, 255, 255, 0.86);
}
#snilld-frontier .sfl-intro .sf-lead {
  max-width: 46ch;
}
#snilld-frontier .sfl-tools {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  pointer-events: auto;
}
#snilld-frontier .sfl-3d .sfl-tools {
  display: flex;
}

/* Små knapper i rummet: pille-form som forsidens øvrige valg. */
#snilld-frontier .sfl-chip,
#snilld-frontier .sfl-nav,
#snilld-frontier .sfl-sections button {
  margin: 0;
  padding: 7px 15px 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(14, 10, 20, 0.55);
  color: #fff;
  font: 600 14px/1.2 "Work Sans", "Helvetica Neue", Arial, sans-serif;
  text-shadow: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
#snilld-frontier .sfl-chip::before,
#snilld-frontier .sfl-nav::before,
#snilld-frontier .sfl-sections button::before,
#snilld-frontier .sfl-close::before,
#snilld-frontier .sfl-btn::before,
#snilld-frontier .sfl-card-back::before {
  content: none;
}
#snilld-frontier .sfl-chip:hover,
#snilld-frontier .sfl-nav:hover,
#snilld-frontier .sfl-sections button:hover {
  background: #7a4ddb;
  border-color: #7a4ddb;
  color: #fff;
}
#snilld-frontier .sfl-chip[aria-pressed="true"] {
  background: #fff;
  border-color: #fff;
  color: #0e0a14;
}
#snilld-frontier .sfl-hud {
  position: absolute;
  left: max(24px, calc((100vw - 1200px) / 2));
  bottom: 40px;
  display: none;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 48px);
}
#snilld-frontier .sfl-3d .sfl-hud {
  display: flex;
}
#snilld-frontier .sfl-sections {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
#snilld-frontier .sfl-sections button {
  white-space: nowrap;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}
#snilld-frontier .sfl-sections button[aria-current="true"] {
  background: rgba(205, 194, 248, 0.16);
  border-color: #cdc2f8;
  color: #fff;
}
#snilld-frontier .sfl-nav {
  flex: none;
  width: 38px;
  height: 34px;
  padding: 0;
}

/* Titlen under den bog, man peger på. */
#snilld-frontier .sfl-cap {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: max-content;
  max-width: min(360px, 70vw);
  margin: 0;
  padding: 10px 16px 11px;
  border-radius: 12px;
  background: rgba(14, 10, 20, 0.9);
  color: #fff;
  font: 400 13px/1.3 "Work Sans", "Helvetica Neue", Arial, sans-serif;
  text-align: center;
  pointer-events: none;
  will-change: transform;
}
#snilld-frontier .sfl-cap[hidden] {
  display: none;
}
#snilld-frontier .sfl-cap span:first-child {
  color: #cdc2f8;
  font: 400 11px/1.3 "DM Mono", SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
#snilld-frontier .sfl-cap strong {
  font: 600 19px/1.15 "Cormorant Garamond", Georgia, serif;
}
#snilld-frontier .sfl-cap-act {
  color: #cdc2f8;
}

/* Markører i rummet: en hvid pille med en pulserende prik, der peger på det, man kan klikke på. */
#snilld-frontier .sfl-pin {
  position: absolute;
  top: -14px; /* plads til den lille pil under pillen */
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  margin: 0;
  padding: 7px 15px 8px 9px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
  color: #1d1622;
  font: 600 14.5px/1.2 "Work Sans", "Helvetica Neue", Arial, sans-serif;
  text-shadow: none;
  white-space: nowrap;
  pointer-events: none;
  will-change: transform;
}
#snilld-frontier .sfl-pin[hidden] {
  display: none;
}
#snilld-frontier .sfl-pin::before {
  content: none;
}
#snilld-frontier .sfl-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  margin-left: -7px;
  border-style: solid;
  border-width: 8px 7px 0;
  border-color: #fff transparent transparent;
}
#snilld-frontier .sfl-pin--paper {
  cursor: pointer;
  pointer-events: auto;
}
#snilld-frontier .sfl-pin--paper:hover {
  background: #7a4ddb;
  color: #fff;
}
#snilld-frontier .sfl-pin--paper:hover::after {
  border-top-color: #7a4ddb;
}
#snilld-frontier .sfl-pin-dot {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6b3eb8;
}
#snilld-frontier .sfl-pin--paper:hover .sfl-pin-dot {
  background: #fff;
}
#snilld-frontier .sfl-pin-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #6b3eb8;
  animation: sfl-pin-pulse 1.8s ease-out infinite;
}
@keyframes sfl-pin-pulse {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(2.6); opacity: 0; }
}

#snilld-frontier .sfl-hint,
#snilld-frontier .sfl-loader {
  position: absolute;
  right: max(24px, calc((100vw - 1200px) / 2));
  bottom: 104px; /* over chat-knappen i hjørnet */
  width: max-content;
  max-width: calc(100vw - 48px);
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font: 400 12px/1.3 "DM Mono", SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 500ms ease;
}
#snilld-frontier .sfl-hint,
#snilld-frontier .sfl-3d .sfl-loader {
  opacity: 0;
}
#snilld-frontier .sfl-3d .sfl-hint {
  opacity: 1;
}
#snilld-frontier .sfl-3d .sfl-hint.is-gone {
  opacity: 0;
}

/* Ligger panelet for vilkår og cookies i bunden, rykker rummets tekst og knapper op over det. */
html.usm-consent-open #snilld-frontier .sfl-3d .sfl-intro,
html.usm-consent-open #snilld-frontier .sfl-wants3d .sfl-intro {
  bottom: calc(112px + var(--usm-consent-bar-height, 0px));
}
html.usm-consent-open #snilld-frontier .sfl-hud {
  bottom: calc(40px + var(--usm-consent-bar-height, 0px));
}
html.usm-consent-open #snilld-frontier .sfl-hint,
html.usm-consent-open #snilld-frontier .sfl-loader {
  bottom: calc(104px + var(--usm-consent-bar-height, 0px));
}

/* ——— Listen ——— */
#snilld-frontier .sfl-list {
  padding: 8px 24px 72px;
  background: #0e0a14;
  outline: none;
}
#snilld-frontier .sfl-3d .sfl-list {
  display: none;
}
#snilld-frontier .sfl-3d.sfl-list-open .sfl-list {
  display: block;
  padding-top: 56px;
}
#snilld-frontier .sfl-list .sf-wrap {
  max-width: 1200px;
  margin: 0 auto;
}
#snilld-frontier .sfl-list-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#snilld-frontier .sfl-sec {
  margin: 0 0 40px;
}
#snilld-frontier .sfl-sec-title {
  display: block;
  width: auto;
  margin: 0 0 14px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(205, 194, 248, 0.24);
  color: #cdc2f8;
  font: 400 13px/1.3 "DM Mono", SFMono-Regular, Consolas, monospace !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
#snilld-frontier .sfl-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#snilld-frontier .sfl-items li {
  margin: 0;
  padding: 0;
}
#snilld-frontier .sfl-item {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 16px;
  align-items: start;
  padding: 12px;
  margin: 0 -12px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  transition: background-color 160ms ease;
}
#snilld-frontier .sfl-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
#snilld-frontier .sfl-item-cover {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 3px;
  background: #241439;
  overflow: hidden;
}
#snilld-frontier .sfl-item-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#snilld-frontier .sfl-item-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
#snilld-frontier .sfl-item-no,
#snilld-frontier .sfl-item-meta {
  color: #a99be0;
  font: 400 12px/1.3 "DM Mono", SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.06em;
}
#snilld-frontier .sfl-item-title {
  font: 600 20px/1.18 "Cormorant Garamond", Georgia, serif;
}
#snilld-frontier .sfl-item-sum {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14.5px;
  line-height: 1.45;
}

/* ——— Opslaget ——— */
#snilld-frontier .sfl-reader {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(8, 5, 12, 0);
  transition: background-color 420ms ease;
}
#snilld-frontier .sfl-reader[hidden] {
  display: none;
}
#snilld-frontier .sfl-reader.is-arriving {
  background: rgba(8, 5, 12, 0.38);
  cursor: progress;
}
#snilld-frontier .sfl-reader.is-open {
  background: rgba(8, 5, 12, 0.86);
}
/* Kom bogen flyvende, skal rummet stadig kunne anes bag den. */
#snilld-frontier .sfl-reader.is-open.is-3d {
  background: rgba(8, 5, 12, 0.62);
}
#snilld-frontier .sfl-spread {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: min(78vh, 61vw, 680px);
  height: min(78svh, 61vw, 680px);
  aspect-ratio: 3 / 2;
  color: #241a2b;
  opacity: 0;
  transition: opacity 240ms ease;
}
#snilld-frontier .sfl-reader.is-open .sfl-spread {
  opacity: 1;
  transition-duration: 380ms;
}
#snilld-frontier .sfl-page {
  position: relative;
  min-width: 0;
  padding: clamp(20px, 3.2vw, 44px);
  overflow-y: auto;
  background: #f1e9da;
  scrollbar-width: thin;
  scrollbar-color: rgba(36, 26, 43, 0.3) transparent;
}
#snilld-frontier .sfl-page--l {
  border-radius: 4px 0 0 4px;
  box-shadow: inset -22px 0 26px -20px rgba(36, 20, 10, 0.38);
}
#snilld-frontier .sfl-page--r {
  padding-top: 56px; /* plads til luk-knappen */
  padding-bottom: 26px;
  border-radius: 0 4px 4px 0;
  box-shadow: inset 22px 0 26px -20px rgba(36, 20, 10, 0.38);
}
#snilld-frontier .sfl-r-kicker {
  margin: 0 0 14px;
  color: #6b3eb8;
  font: 400 12px/1.3 "DM Mono", SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
#snilld-frontier .sfl-r-title {
  display: block;
  width: auto;
  margin: 0 0 12px;
  padding: 0;
  color: #241a2b;
  font: 600 clamp(22px, 2.5vw, 34px)/1.1 "Cormorant Garamond", Georgia, serif !important;
  letter-spacing: 0;
  outline: none;
}
#snilld-frontier .sfl-r-meta {
  margin: 0 0 18px;
  color: rgba(36, 26, 43, 0.66);
  font: 400 12px/1.3 "DM Mono", SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.06em;
}
#snilld-frontier .sfl-r-sum {
  margin: 0 0 20px;
  color: #241a2b;
  font-size: clamp(14px, 1.15vw, 16.5px);
  line-height: 1.55;
}
#snilld-frontier .sfl-r-more {
  display: inline-block;
  color: #4a2a8c;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#snilld-frontier .sfl-r-points[hidden],
#snilld-frontier .sfl-r-points-title[hidden] {
  display: none;
}

/* Forklaringsvideoen: plakat og Afspil-knap, til man trykker. */
#snilld-frontier .sfl-rv {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 0 22px;
  overflow: hidden;
  border: 1px solid rgba(36, 26, 43, 0.25);
  border-radius: 3px;
  background: #e6dccd;
}
#snilld-frontier .sfl-rv[hidden] {
  display: none;
}
#snilld-frontier .sfl-rv img,
#snilld-frontier .sfl-rv video,
#snilld-frontier .sfl-rv iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
#snilld-frontier .sfl-rv video {
  background: #000;
  object-fit: contain;
}
#snilld-frontier .sfl-rv-play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 16px 8px 9px;
  border: 0;
  border-radius: 999px;
  background: #1f1b2e;
  color: #f3ecdf;
  font: 600 14.5px/1.2 "Work Sans", "Helvetica Neue", Arial, sans-serif;
  text-shadow: none;
  cursor: pointer;
}
#snilld-frontier .sfl-rv-play::before {
  content: none;
}
#snilld-frontier .sfl-rv-play:hover {
  background: #6b3eb8;
  color: #fff;
}
#snilld-frontier .sfl-rv-i {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #6b3eb8;
}
#snilld-frontier .sfl-rv-play:hover .sfl-rv-i {
  background: #1f1b2e;
}
#snilld-frontier .sfl-rv-i::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 7px;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #f3ecdf;
}
#snilld-frontier .sfl-badge {
  margin-left: 6px;
  padding: 2px 7px 3px;
  border: 1px solid rgba(205, 194, 248, 0.4);
  border-radius: 999px;
  color: #cdc2f8;
}
#snilld-frontier .sfl-r-points-title {
  display: block;
  width: auto;
  margin: 0 44px 14px 0;
  padding: 0;
  color: #6b3eb8;
  font: 400 12px/1.3 "DM Mono", SFMono-Regular, Consolas, monospace !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
#snilld-frontier .sfl-r-points {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: sflp;
}
#snilld-frontier .sfl-r-points li {
  position: relative;
  margin: 0;
  padding: 9px 0 9px 34px;
  border-top: 1px solid rgba(36, 26, 43, 0.14);
  color: #241a2b;
  font-size: clamp(13.5px, 1.1vw, 15.5px);
  line-height: 1.4;
  counter-increment: sflp;
}
#snilld-frontier .sfl-r-points li::before {
  content: counter(sflp, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 11px;
  color: #6b3eb8;
  font: 400 12px/1.3 "DM Mono", SFMono-Regular, Consolas, monospace;
}
#snilld-frontier .sfl-r-actions {
  margin-top: 4px;
}
#snilld-frontier .sfl-r-note {
  margin: 10px 0 0;
  color: rgba(36, 26, 43, 0.66);
  font-size: 13.5px;
}
#snilld-frontier .sfl-btn {
  display: inline-block;
  margin: 0;
  padding: 12px 24px 13px;
  border: 0;
  border-radius: 999px;
  background: #6b3eb8;
  color: #fff;
  font: 600 16px/1.2 "Work Sans", "Helvetica Neue", Arial, sans-serif;
  text-decoration: none;
  text-shadow: none;
  cursor: pointer;
  transition: background-color 160ms ease;
}
#snilld-frontier .sfl-btn:hover {
  background: #4a2a8c;
  color: #fff;
}
#snilld-frontier .sfl-btn[hidden] {
  display: none;
}
#snilld-frontier .sfl-btn[disabled] {
  opacity: 0.6;
  cursor: default;
}
#snilld-frontier .sfl-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(36, 26, 43, 0.3);
  border-radius: 50%;
  background: #f1e9da;
  color: #241a2b;
  font: 400 24px/1 "Work Sans", "Helvetica Neue", Arial, sans-serif;
  text-shadow: none;
  cursor: pointer;
}
#snilld-frontier .sfl-close:hover {
  background: #241a2b;
  border-color: #241a2b;
  color: #f1e9da;
}

/* ——— Dagens avis ——— */
#snilld-frontier .sfl-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#snilld-frontier .sfl-chip--paper {
  background: #f1e9da;
  border-color: #f1e9da;
  color: #1d1622;
}
#snilld-frontier .sfl-paper .sfl-spread {
  perspective: 2200px;
}
#snilld-frontier .sfl-paper .sfl-close {
  background: #ece4d3;
}
#snilld-frontier .sfl-np {
  padding: clamp(18px, 2.6vw, 36px);
  padding-bottom: 64px; /* plads til bladreknapperne */
  background: #ece4d3;
  color: #1d1622;
}
#snilld-frontier .sfl-page--r.sfl-np {
  padding-top: clamp(18px, 2.6vw, 36px);
}
#snilld-frontier .sfl-np-mast {
  margin: 0 0 16px;
  padding: 0 0 10px;
  border-bottom: 3px double #1d1622;
  text-align: center;
}
#snilld-frontier .sfl-np-name {
  display: block;
  font: 600 clamp(30px, 4.2vw, 58px)/1 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.01em;
}
#snilld-frontier .sfl-np-date,
#snilld-frontier .sfl-np-folio,
#snilld-frontier .sfl-np-kicker {
  display: block;
  color: rgba(29, 22, 34, 0.7);
  font: 400 11px/1.4 "DM Mono", SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
#snilld-frontier .sfl-np-date {
  margin-top: 8px;
}
#snilld-frontier .sfl-np-folio {
  margin: 0 56px 6px 0;
  padding: 0 0 8px;
  border-bottom: 1px solid #1d1622;
}
#snilld-frontier .sfl-np-story {
  display: block;
  padding: 9px 0 10px;
  border-bottom: 1px solid rgba(29, 22, 34, 0.22);
  color: #1d1622;
  text-decoration: none;
}
#snilld-frontier .sfl-np-story:last-of-type {
  border-bottom: 0;
}
#snilld-frontier .sfl-np-head {
  display: block;
  margin-top: 4px;
  font: 600 clamp(17px, 1.55vw, 23px)/1.14 "Cormorant Garamond", Georgia, serif;
}
#snilld-frontier .sfl-np-story:hover .sfl-np-head,
#snilld-frontier .sfl-np-story:focus-visible .sfl-np-head {
  color: #4a2a8c;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
#snilld-frontier .sfl-np-sum {
  display: -webkit-box;
  margin-top: 5px;
  overflow: hidden;
  color: rgba(29, 22, 34, 0.84);
  font-size: clamp(12.5px, 0.98vw, 14px);
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
          line-clamp: 2;
}
#snilld-frontier .sfl-np-story--lead {
  padding-top: 0;
  border-bottom: 0;
}
#snilld-frontier .sfl-np-story--lead .sfl-np-head {
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.06;
}
#snilld-frontier .sfl-np-story--lead .sfl-np-sum {
  -webkit-line-clamp: 3;
          line-clamp: 3;
  font-size: clamp(13.5px, 1.08vw, 15.5px);
}
#snilld-frontier .sfl-np-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 19vh;
  margin: 12px 0 10px;
  object-fit: cover;
  /* tryk-præg: lidt afdæmpet, så billedet ligner noget, der står i en avis */
  filter: grayscale(0.3) contrast(1.05) sepia(0.14);
}
#snilld-frontier .sfl-np-more,
#snilld-frontier .sfl-np-all {
  display: inline-block;
  margin-top: 10px;
  color: #4a2a8c;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#snilld-frontier .sfl-pager {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px 0 13px;
  /* tekst, der ruller, toner ud bag knapperne */
  background: linear-gradient(180deg, rgba(236, 228, 211, 0) 0%, #ece4d3 46%);
  border-radius: 0 0 4px 4px;
  pointer-events: none;
}
#snilld-frontier .sfl-pager-btn {
  margin: 0;
  padding: 7px 14px 8px;
  border: 1px solid rgba(29, 22, 34, 0.4);
  border-radius: 999px;
  background: #ece4d3;
  color: #1d1622;
  font: 600 13.5px/1.2 "Work Sans", "Helvetica Neue", Arial, sans-serif;
  text-shadow: none;
  cursor: pointer;
  pointer-events: auto;
}
#snilld-frontier .sfl-pager-btn::before {
  content: none;
}
#snilld-frontier .sfl-pager-btn:hover {
  background: #1d1622;
  border-color: #1d1622;
  color: #ece4d3;
}
#snilld-frontier .sfl-pager-btn[disabled] {
  opacity: 0.35;
  cursor: default;
  background: #ece4d3;
  color: #1d1622;
}
#snilld-frontier .sfl-pager-btn[hidden],
#snilld-frontier .sfl-pager-label[hidden] {
  display: none;
}
#snilld-frontier .sfl-pager-label {
  color: rgba(29, 22, 34, 0.7);
  font: 400 11px/1.4 "DM Mono", SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
/* Bladet, der vender, når man bladrer. */
#snilld-frontier .sfl-leaf {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 50%;
  display: none;
  background: linear-gradient(90deg, #d9d0bd 0%, #ece4d3 18%, #f3ecdd 100%);
  box-shadow: 0 0 30px rgba(20, 10, 4, 0.35);
  transform-origin: left center;
  backface-visibility: visible;
  pointer-events: none;
}
#snilld-frontier .sfl-leaf.is-forward {
  display: block;
  animation: sfl-leaf-forward 620ms cubic-bezier(0.45, 0.05, 0.3, 1) both;
}
#snilld-frontier .sfl-leaf.is-back {
  display: block;
  animation: sfl-leaf-back 620ms cubic-bezier(0.45, 0.05, 0.3, 1) both;
}
@keyframes sfl-leaf-forward {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(-180deg); }
}
@keyframes sfl-leaf-back {
  from { transform: rotateY(-180deg); }
  to { transform: rotateY(0deg); }
}
#snilld-frontier .sfl-item-cover--wide {
  aspect-ratio: 4 / 3;
}

/* ——— Lånerkortet ——— */
#snilld-frontier .sfl-loan {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(8, 5, 12, 0.6);
}
#snilld-frontier .sfl-loan[hidden] {
  display: none;
}
#snilld-frontier .sfl-card {
  position: relative;
  width: min(460px, 100%);
  max-height: 92vh;
  padding: 26px 28px 22px;
  overflow-y: auto;
  border-radius: 6px;
  background: #f6efe2;
  color: #241a2b;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
#snilld-frontier .sfl-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 2px solid #241a2b;
  font: 400 11px/1.4 "DM Mono", SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.12em;
}
#snilld-frontier .sfl-card-mono {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #6b3eb8;
  color: #fff;
  font: 600 22px/1 "Cormorant Garamond", Georgia, serif;
}
#snilld-frontier .sfl-card-title {
  font: 600 24px/1 "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0;
}
#snilld-frontier .sfl-card-book {
  margin: 14px 0 10px;
  font-size: 14.5px;
  line-height: 1.4;
}
#snilld-frontier .sfl-card form[hidden] {
  display: none;
}
#snilld-frontier .sfl-line {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  border-bottom: 1px solid rgba(36, 26, 43, 0.3);
  font-size: 13px;
}
#snilld-frontier .sfl-line input {
  width: 100%;
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #241a2b;
  font: 400 16px/1.3 "Work Sans", "Helvetica Neue", Arial, sans-serif;
}
#snilld-frontier .sfl-line input:focus-visible {
  outline: 2px solid #6b3eb8;
  outline-offset: 2px;
}
#snilld-frontier .sfl-consent {
  display: block;
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
}
#snilld-frontier .sfl-consent input {
  width: auto;
  margin: 0 6px 0 0;
}
#snilld-frontier .sfl-card-err {
  min-height: 1.3em;
  margin: 10px 0;
  color: #a3123a;
  font-size: 13.5px;
}
#snilld-frontier .sfl-card-privacy,
#snilld-frontier .sfl-card-done {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
}
#snilld-frontier .sfl-card-privacy a {
  color: #4a2a8c;
}
#snilld-frontier .sfl-card-done {
  font: 600 22px/1.2 "Cormorant Garamond", Georgia, serif;
}
#snilld-frontier .sfl-card-done:empty {
  display: none;
}
#snilld-frontier .sfl-card-back {
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: #4a2a8c;
  font: 600 14px/1.2 "Work Sans", "Helvetica Neue", Arial, sans-serif;
  text-decoration: underline;
  text-shadow: none;
  cursor: pointer;
}
#snilld-frontier .sfl-card-back:hover {
  background: none;
  color: #241a2b;
}

#snilld-frontier .sf-lib a:focus-visible,
#snilld-frontier .sf-lib button:focus-visible {
  outline: 2px solid #cdc2f8;
  outline-offset: 3px;
}
#snilld-frontier .sfl-spread a:focus-visible,
#snilld-frontier .sfl-spread button:focus-visible,
#snilld-frontier .sfl-card a:focus-visible,
#snilld-frontier .sfl-card button:focus-visible {
  outline-color: #6b3eb8;
}

/* Smalle skærme: opslaget bliver ét ark, og rummet hentes slet ikke. */
@media (max-width: 767px) {
  #snilld-frontier .sfl-hall {
    padding: 64px 16px 24px;
  }
  #snilld-frontier .sfl-list {
    padding: 8px 16px 56px;
  }
  #snilld-frontier .sfl-spread {
    display: block;
    width: min(100%, 480px);
    height: auto;
    max-height: 88vh;
    aspect-ratio: auto;
    overflow-y: auto;
    border-radius: 6px;
    background: #f1e9da;
  }
  #snilld-frontier .sfl-page {
    padding: 22px 22px 8px;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
  }
  #snilld-frontier .sfl-page--r {
    position: static; /* så luk-knappen sætter sig i arkets øverste hjørne */
    padding-top: 8px;
    padding-bottom: 26px;
  }
  #snilld-frontier .sfl-page--l {
    padding-right: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #snilld-frontier .sfl-reader,
  #snilld-frontier .sfl-spread,
  #snilld-frontier .sfl-stage canvas {
    transition: none;
  }
  #snilld-frontier .sfl-pin-dot::after {
    animation: none;
  }
}
