/* Nordic Anmeldelser */

.nfa,
.nfa-badge {
  --nfa-accent: #d93f2f;
  --nfa-star: #f5b301;
  --nfa-gap: 24px;
  --nfa-per-view: 3;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}

.nfa--dark {
  --nfa-title: #ffffff;
  --nfa-text: #bdb8b9;
  --nfa-muted: #8c8687;
  --nfa-strong: #ffffff;
  --nfa-card: #2d292a;
  --nfa-card-hover: #332e2f;
  --nfa-line: rgba(255, 255, 255, 0.08);
  --nfa-star-empty: rgba(255, 255, 255, 0.16);
  --nfa-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.nfa--light {
  --nfa-title: #242021;
  --nfa-text: #5f5b5c;
  --nfa-muted: #8f8b8c;
  --nfa-strong: #242021;
  --nfa-card: #ffffff;
  --nfa-card-hover: #ffffff;
  --nfa-line: #e9e6e6;
  --nfa-star-empty: #dedada;
  --nfa-shadow: 0 20px 40px rgba(36, 32, 33, 0.1);
}

.nfa {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  color: var(--nfa-text);
}

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

/* ---------- Overskrift og samlet bedømmelse ---------- */

.nfa-head {
  text-align: center;
  margin: 0 auto 48px;
  max-width: 720px;
}

.nfa .nfa-title {
  margin: 0;
  color: var(--nfa-accent);
  font-family: inherit;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

.nfa-sub {
  margin: 12px 0 0;
  color: var(--nfa-muted);
  font-size: 16px;
  line-height: 1.6;
}

.nfa-summary {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 14px 24px 14px 20px;
  border: 1px solid var(--nfa-line);
  background: var(--nfa-card);
  text-align: left;
}

.nfa-summary__score {
  color: var(--nfa-strong);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  padding-right: 16px;
  border-right: 1px solid var(--nfa-line);
}

.nfa-summary__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nfa-summary__meta .nfa-stars {
  --nfa-star-size: 18px;
}

.nfa-summary__count {
  color: var(--nfa-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ---------- Stjerner (understøtter brøkdele) ---------- */

.nfa-stars {
  --nfa-star-size: 16px;
  position: relative;
  display: inline-block;
  line-height: 0;
  white-space: nowrap;
  vertical-align: middle;
}

.nfa-stars svg {
  width: var(--nfa-star-size);
  height: var(--nfa-star-size);
  margin-right: 2px;
}

.nfa-stars__base svg {
  fill: var(--nfa-star-empty);
}

.nfa-stars__fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
}

.nfa-stars__fill svg {
  fill: var(--nfa-star);
}

/* ---------- Slider ---------- */

.nfa-viewport {
  overflow: hidden;
  margin: -12px -12px 0;
  padding: 12px 12px 20px;
  touch-action: pan-y;
}

.nfa-track {
  display: flex;
  gap: var(--nfa-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.nfa-track.is-dragging {
  transition: none;
}

.nfa-card {
  position: relative;
  flex: 0 0 calc((100% - (var(--nfa-per-view) - 1) * var(--nfa-gap)) / var(--nfa-per-view));
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 30px 28px 26px;
  background: var(--nfa-card);
  border: 1px solid var(--nfa-line);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
}

/* tynd accentlinje der tegnes ind ved hover */
.nfa-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: var(--nfa-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.nfa-card:hover {
  transform: translateY(-4px);
  background: var(--nfa-card-hover);
  box-shadow: var(--nfa-shadow);
}

.nfa-card:hover::before {
  transform: scaleX(1);
}

.nfa-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.nfa-quote {
  width: 30px;
  height: 30px;
  fill: var(--nfa-accent);
  opacity: 0.85;
  flex-shrink: 0;
}

.nfa .nfa-card__text {
  flex-grow: 1;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--nfa-text);
  font-family: inherit;
  font-size: 15px;
  font-style: normal;
  line-height: 1.7;
}

.nfa .nfa-card__text p {
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}

.nfa-card.is-open .nfa-card__text p {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.nfa .nfa-more {
  align-self: flex-start;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--nfa-accent);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
}

.nfa .nfa-more:hover {
  text-decoration: underline;
}

.nfa-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--nfa-line);
}

.nfa-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: var(--nfa-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nfa-card__who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nfa-card__who strong {
  color: var(--nfa-strong);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.nfa-card__who small {
  margin-top: 2px;
  color: var(--nfa-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ---------- Pile og fremdrift ---------- */

.nfa-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

.nfa.is-static .nfa-controls {
  display: none;
}

.nfa .nfa-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--nfa-line);
  border-radius: 0;
  background: transparent;
  color: var(--nfa-strong);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.nfa .nfa-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
}

.nfa .nfa-arrow:hover {
  background: var(--nfa-accent);
  border-color: var(--nfa-accent);
  color: #fff;
}

.nfa .nfa-arrow:focus-visible,
.nfa .nfa-more:focus-visible,
.nfa .nfa-button:focus-visible {
  outline: 2px solid var(--nfa-accent);
  outline-offset: 3px;
}

.nfa-progress {
  position: relative;
  width: min(240px, 40vw);
  height: 2px;
  overflow: hidden;
  background: var(--nfa-line);
}

.nfa-progress__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 20%;
  background: var(--nfa-accent);
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), width 0.3s;
}

/* ---------- Knap ---------- */

.nfa-cta {
  margin-top: 40px;
  text-align: center;
}

.nfa .nfa-button {
  display: inline-block;
  padding: 0 34px;
  background: var(--nfa-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 46px;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  transition: filter 0.2s;
}

.nfa .nfa-button:hover {
  color: #fff;
  filter: brightness(1.1);
}

.nfa-empty {
  text-align: center;
  color: var(--nfa-muted);
}

/* ---------- Lille bedømmelse: [nordic_bedoemmelse] ---------- */

.nfa-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--nfa-muted);
  line-height: 1;
}

.nfa-badge__score {
  color: var(--nfa-strong);
  font-size: 20px;
  font-weight: 600;
}

.nfa-badge__count {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ---------- Bredder (efter den plads slideren faar, ikke skaermen) ---------- */

.nfa {
  container-type: inline-size;
}

@container (max-width: 880px) {
  .nfa-viewport { --nfa-per-view: 2; --nfa-gap: 20px; }
}

@container (max-width: 560px) {
  .nfa-viewport { --nfa-per-view: 1; --nfa-gap: 16px; }
  .nfa-head { margin-bottom: 32px; }
  .nfa-summary { gap: 12px; padding: 12px 18px 12px 16px; }
  .nfa-summary__score { font-size: 32px; padding-right: 12px; }
  .nfa-card { padding: 26px 22px 22px; }
  .nfa-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nfa-track,
  .nfa-card,
  .nfa-card::before,
  .nfa-progress__bar {
    transition: none;
  }
}
