/* ================================================================
   Nolea — Google reviews (server-rendered by _worker.js)
   Ivory cards with a gold label frame on the burgundy field, three
   at a time. Flat and still, in the site's own Cormorant and Josefin.
   Browse with Föregående/Nästa, by dragging, swiping or arrow keys.
   Rules: NO text-shadow · NO IntersectionObserver
================================================================ */

.reviews { padding: 72px 0; }
.reviews__head { margin-bottom: 20px; }

.nlr__fallback {
  text-align: center; max-width: 560px; margin: 0 auto;
  font-size: 19px; line-height: 1.7; color: rgba(245,239,227,0.9);
}
.nlr__fallback a { color: var(--ivory); text-decoration: underline; text-underline-offset: 3px; }

/* ── Summary ── */
.nlr__summary {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin-bottom: 36px;
}
.nlr__score {
  font-family: var(--font-serif); font-size: 64px; font-weight: 300;
  line-height: 1; color: var(--ivory);
}
.nlr__summary-side {
  display: flex; flex-direction: column; gap: 10px;
  padding-left: 20px; border-left: 0.5px solid rgba(196,151,58,0.55);
}
.nlr__summary .nlr__stars svg { width: 15px; height: 15px; }
.nlr__count {
  font-family: var(--font-sans); font-size: 12px; font-weight: 300;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(245,239,227,0.9); text-decoration: none;
  border-bottom: 0.5px solid rgba(196,151,58,0.6); padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.nlr__count:hover { color: var(--ivory); border-bottom-color: var(--gold); }
.nlr__stars { display: inline-flex; gap: 3px; }
.nlr__stars svg { width: 13px; height: 13px; fill: var(--gold); }

/* ── Row of cards ── */
.nlr__viewport {
  --nlr-per: 3; --nlr-gap: 28px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.nlr__viewport::-webkit-scrollbar { display: none; }
.nlr__viewport:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 6px; }
.nlr--js .nlr__viewport { overflow: hidden; scroll-snap-type: none; cursor: grab; touch-action: pan-y; }
.nlr--js .nlr__viewport.is-dragging { cursor: grabbing; }
.nlr--js .nlr__viewport.is-dragging * { user-select: none; }

/* Cards stretch to one shared height, so the row stays tidy. */
.nlr__track { display: flex; gap: var(--nlr-gap); align-items: stretch; }
.nlr--js .nlr__track {
  transform: translateX(var(--nlr-x, 0px));
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nlr--js .nlr__viewport.is-dragging .nlr__track { transition: none; }

/* ── Card ── */
.nlr__card {
  flex: 0 0 calc((100% - (var(--nlr-per) - 1) * var(--nlr-gap)) / var(--nlr-per));
  position: relative; scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--ivory);
  /* Gold label frame inset from the card edge */
  outline: 0.5px solid rgba(196,151,58,0.75); outline-offset: -8px;
  padding: 34px 30px 26px;
}
.nlr__card::before {
  content: "\201C";
  position: absolute; top: 12px; right: 22px;
  font-family: var(--font-serif); font-size: 84px; line-height: 1;
  color: rgba(133,0,53,0.12); pointer-events: none;
}
.nlr__card > .nlr__stars { margin-bottom: 16px; }

.nlr__quote {
  font-family: var(--font-serif); font-size: 17px; font-weight: 500;
  line-height: 1.55; color: var(--ink);
}
.nlr__quote p + p { margin-top: 0.75em; }
.nlr--js .nlr__quote.is-clamped {
  max-height: calc(1.55em * 7); overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
          mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.nlr__expand {
  align-self: flex-start; margin-top: 14px;
  background: none; border: none; border-bottom: 0.5px solid rgba(133,0,53,0.5);
  padding: 0 0 3px; cursor: pointer;
  font-family: var(--font-sans); font-size: 11px; font-weight: 400;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--wine);
  transition: border-color 0.2s;
}
.nlr__expand:hover { border-bottom-color: var(--wine); }
.nlr__expand:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 4px; }

.nlr__by {
  display: flex; align-items: center; gap: 14px;
  margin-top: auto; padding-top: 16px;
  border-top: 0.5px solid var(--hairline);
}
/* Space between the text and the byline, whatever the text length */
.nlr__quote { margin-bottom: 20px; }
.nlr__expand { margin-top: -8px; margin-bottom: 20px; }
.nlr__mono {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--burgundy); color: var(--champagne);
  font-family: var(--font-serif); font-size: 19px; font-style: italic; line-height: 1;
}
.nlr__who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nlr__name {
  font-family: var(--font-sans); font-size: 12px; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--burgundy);
  overflow-wrap: anywhere;
}
.nlr__who time { font-size: 15px; font-style: italic; line-height: 1.3; color: var(--muted); }

.nlr__reply { margin-top: 12px; }
.nlr__reply summary {
  list-style: none; cursor: pointer; display: inline-flex; gap: 8px; align-items: center;
  font-family: var(--font-sans); font-size: 11px; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
  transition: color 0.2s;
}
.nlr__reply summary::-webkit-details-marker { display: none; }
.nlr__reply summary::before { content: "+"; font-size: 15px; color: var(--gold); }
.nlr__reply[open] summary::before { content: "\2212"; }
.nlr__reply summary:hover { color: var(--wine); }
.nlr__reply summary:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 4px; }
.nlr__reply p {
  margin-top: 12px; padding-left: 16px; border-left: 1px solid rgba(196,151,58,0.6);
  font-size: 16px; font-style: italic; line-height: 1.55; color: var(--reading);
}

/* ── Controls ── */
.nlr__controls {
  display: flex; align-items: center; justify-content: center; gap: 44px;
  margin-top: 28px;
}
.nlr__controls[hidden] { display: none; }
.nlr__step {
  background: none; border: none; cursor: pointer; padding: 0 0 4px; white-space: nowrap;
  border-bottom: 0.5px solid rgba(196,151,58,0.6);
  font-family: var(--font-sans); font-size: 12px; font-weight: 300;
  letter-spacing: 0.26em; text-transform: uppercase; color: rgba(245,239,227,0.9);
  transition: color 0.2s, border-color 0.2s, opacity 0.2s;
}
.nlr__step:hover:not(:disabled) { color: var(--ivory); border-bottom-color: var(--gold); }
.nlr__step:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 5px; }
.nlr__step:disabled { opacity: 0.3; cursor: default; }
.nlr__counter {
  min-width: 7em; text-align: center;
  font-family: var(--font-serif); font-size: 18px; font-style: italic;
  color: rgba(245,239,227,0.78); font-variant-numeric: lining-nums;
}

.nlr__source {
  margin: 24px auto 0; text-align: center; max-width: 780px;
  font-size: 15px; line-height: 1.6; color: rgba(245,239,227,0.8);
}
.nlr__source a { color: var(--ivory); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(196,151,58,0.8); }
.nlr__source a:hover { text-decoration-color: var(--ivory); }

/* ── Tablet and mobile ── */
@media (max-width: 960px) {
  .nlr__viewport { --nlr-per: 2; --nlr-gap: 24px; }
}
@media (max-width: 640px) {
  .reviews { padding: 56px 0; }
  .nlr__summary { gap: 14px; margin-bottom: 28px; }
  .nlr__score { font-size: 54px; }
  .nlr__summary-side { padding-left: 16px; }
  .nlr__viewport { --nlr-per: 1; --nlr-gap: 16px; }
  /* One note at a time: each keeps its own height, and the row follows it. */
  .nlr--js .nlr__track { align-items: flex-start; }
  .nlr--js .nlr__viewport { transition: height 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .nlr__card { padding: 30px 26px 24px; }
  .nlr__card::before { font-size: 76px; right: 18px; }
  .nlr__controls { gap: 14px; justify-content: space-between; }
  .nlr__step { font-size: 11px; letter-spacing: 0.14em; }
  .nlr__counter { min-width: 0; font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .nlr--js .nlr__track, .nlr--js .nlr__viewport { transition: none; }
}
