/* The reading room (src/views/pages/reading-room.js): the 3D bookshelf on the
   publications library, and the printed-report look of a publication page. */

/* ------------------------------------------------------------ The room */
.rr-room {
  --ivory: #EEEAE2;
  --wood-hi: #8A5A68;
  --wood: #5E3446;
  --wood-lo: #351A28;
  --wall: #1D1129;
  position: relative; overflow: hidden; color: var(--ink);
  padding: clamp(40px, 6vw, 72px) 0 clamp(44px, 6vw, 80px);
  /* A light, plain room: the headings and notes sit on the page surface
     (lilac-white in light mode, the dark page tone in dark mode) at full
     contrast; only the bookcase itself is dark wood. */
  background: var(--mist);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.rr-room-inner { position: relative; }
.rr-room-head { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 0.2rem 2rem; margin-bottom: clamp(20px, 3vw, 32px); }
.rr-eyebrow {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 0.7rem; margin: 0;
  font-family: var(--font-serif); font-size: var(--kicker-size, 1rem); font-variant-caps: all-small-caps; letter-spacing: 0.16em; color: var(--accent-dark, #5A3689);
}
.rr-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.rr-room-title { margin: 0; font-family: var(--font-serif); font-weight: 500; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
.rr-room-note { margin: 0 0 0.35rem; max-width: 46ch; justify-self: end; text-align: right; font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; line-height: 1.5; color: var(--muted); }
.rr-more { margin: 1rem 0 0; font-size: 0.88rem; color: var(--muted); text-align: right; }

/* ------------------------------------------------------------ The bookcase */
.rr-case {
  --row: 272px; --plank: 28px; --k: 1;
  position: relative; padding: 18px 22px 0; border-radius: 3px;
  background: linear-gradient(180deg, #24152F, var(--wall));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 30px 60px -20px rgba(0, 0, 0, 0.7),
    0 0 0 12px var(--wood), 0 0 0 13px var(--wood-hi), 0 0 0 16px var(--wood-lo),
    0 40px 80px -30px rgba(0, 0, 0, 0.8);
  margin: 0 16px;
}
.rr-light { /* the reading lamp: follows the pointer (reading-room.js) */
  position: absolute; inset: 0; pointer-events: none; z-index: 3; mix-blend-mode: screen;
  background: radial-gradient(420px 300px at var(--lx, 50%) var(--ly, 10%), rgba(240, 236, 250, 0.12), transparent 70%);
}
.rr-shelf, .rr-books { margin: 0; padding: 0; list-style: none; }
.rr-shelf {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; position: relative;
  background-image:
    /* the plank: top surface, then its front edge */
    linear-gradient(180deg,
      transparent calc(var(--row) - var(--plank)),
      var(--wood-hi) calc(var(--row) - var(--plank)), #9C6B78 calc(var(--row) - var(--plank) + 2px),
      var(--wood-hi) calc(var(--row) - var(--plank) + 6px), var(--wood) calc(var(--row) - var(--plank) + 6px),
      var(--wood-lo) var(--row)),
    /* shadow thrown by the plank above onto the back wall */
    linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 46px),
    /* grain */
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 7px, rgba(0, 0, 0, 0.05) 7px 9px, transparent 9px 17px);
  background-size: 100% var(--row), 100% var(--row), 100% var(--row);
  margin: 0 -22px; padding: 0 22px;
}
.rr-series, .rr-books { display: contents; }
.rr-slot, .rr-bookend {
  display: flex; align-items: flex-end; height: var(--row); padding-bottom: calc(var(--plank) - 2px);
}
.rr-slot { position: relative; margin-right: 3px; perspective: 900px; perspective-origin: 50% -60%; }
.rr-slot:hover, .rr-slot:focus-within { z-index: 4; }

/* Bookend: the series label */
.rr-bookend {
  flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; margin: 0 10px 0 22px;
  height: var(--row);
}
.rr-series:first-child .rr-bookend { margin-left: 4px; }
.rr-bookend span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  padding: 12px 7px; min-height: 120px; border-radius: 3px 3px 0 0;
  font: 600 0.68rem/1 var(--font); letter-spacing: 0.18em; text-transform: uppercase; color: #2A1B45;
  background: linear-gradient(90deg, #A9A7B0, #F1EFF4 40%, #CFCCD6 70%, #8F8C98);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 4px 0 10px rgba(0, 0, 0, 0.45);
}
.rr-bookend b {
  display: inline-block; margin-inline-start: 9px; padding-inline-start: 9px; border-inline-start: 1px solid rgba(42, 27, 69, 0.45);
  font: 700 0.72rem/1 var(--font); letter-spacing: 0; font-variant-numeric: tabular-nums;
}

/* A book: spine (front), cover (right side), top and back. */
.rr-book {
  position: relative; display: block; flex: 0 0 auto;
  width: calc(var(--w) * var(--k)); height: calc(var(--h) * var(--k));
  transform-style: preserve-3d; transform-origin: 50% 100% calc(var(--d) * var(--k) * -0.5);
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  color: var(--fg); text-decoration: none; outline: none;
}
.rr-spine, .rr-face { position: absolute; top: 0; height: 100%; }
.rr-spine {
  inset: 0; display: flex; flex-direction: column; align-items: center; overflow: hidden;
  padding: 9px 0 9px; border-radius: 2px 2px 1px 1px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(255, 255, 255, 0.14) 22%, rgba(255, 255, 255, 0.04) 45%, rgba(0, 0, 0, 0.1) 70%, rgba(0, 0, 0, 0.45)),
    var(--bg);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25), 6px 0 12px -4px rgba(0, 0, 0, 0.6);
  backface-visibility: hidden;
}
.rr-band { /* series rules in the cover's accent colour */
  flex: 0 0 auto; width: 100%; height: 3px; background: var(--ac);
  box-shadow: 0 6px 0 -1.5px var(--ac);
  margin-bottom: 14px; opacity: 0.95;
}
.rr-spine-title {
  flex: 1 1 auto; min-height: 0; max-width: 100%;
  writing-mode: vertical-rl; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--font-serif); font-weight: 560; font-size: calc(14px * var(--k)); line-height: 1; letter-spacing: 0.01em;
  color: var(--fg); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.rr-book.is-light .rr-spine-title { text-shadow: none; }
.rr-spine-year {
  flex: 0 0 auto; margin-top: 10px; padding-top: 7px; border-top: 1px solid var(--ac);
  font: 600 calc(10px * var(--k))/1 var(--font); letter-spacing: 0.04em; color: var(--fg); opacity: 0.9;
}
.rr-cover { /* the right-hand side of the book: its cover */
  left: 100%; width: calc(var(--d) * var(--k));
  transform-origin: 0 50%; transform: rotateY(90deg); backface-visibility: hidden;
  background: var(--bg); overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3);
}
.rr-cover > * { display: block; width: 100%; height: 100%; object-fit: cover; }
.rr-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 18%, transparent 80%, rgba(255, 255, 255, 0.08)); }
.rr-edge { /* back cover, seen when the book turns the other way */
  left: 0; width: calc(var(--d) * var(--k)); transform-origin: 0 50%; transform: rotateY(90deg);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2)), var(--bg);
}
.rr-top { /* the pages, seen from above */
  left: 0; width: 100%; height: calc(var(--d) * var(--k)); transform-origin: 50% 0; transform: rotateX(-90deg);
  background: repeating-linear-gradient(90deg, #F6F4F0 0 1px, #DEDAD3 1px 2px), #ECE8E1;
  box-shadow: inset 0 0 0 2px var(--bg);
}
.rr-book:hover, .rr-book:focus-visible { transform: translate3d(0, -12px, 70px) rotateY(-58deg); }
.rr-book:focus-visible .rr-spine { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25), 0 0 0 3px var(--ivory); }
.rr-book.is-opening { transform: translate3d(calc(var(--d) * var(--k) * -0.5), -24px, 160px) rotateY(-90deg) !important; transition-duration: 0.5s; }
.rr-spine { transition: filter 0.3s; }
.rr-shelf:hover .rr-book:not(:hover) .rr-spine { filter: brightness(0.8); }

/* Arrival: books slide onto the shelf the first time it scrolls into view (reading-room.js). */
.rr-case.is-pre .rr-book { opacity: 0; transform: translate3d(0, -60px, 0) rotateZ(-4deg); transition: none; }
.rr-case.is-entering .rr-book {
  transition: transform 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.15), opacity 0.5s ease;
  transition-delay: calc(var(--i) * 70ms + 80ms);
}

/* Phones and small tablets: one long shelf that scrolls sideways. */
@media (max-width: 700px) {
  .rr-room-head { grid-template-columns: 1fr; }
  .rr-room-note { justify-self: start; text-align: left; }
  .rr-case { --row: 236px; --k: 0.84; padding: 10px 0 0; margin: 0 12px; }
  .rr-shelf {
    flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; margin: 0; padding: 0 16px;
    scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--wood-hi) transparent;
    background-attachment: local;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 28px), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 28px), transparent);
  }
  .rr-shelf::after { content: ""; flex: 0 0 16px; }
  .rr-slot { scroll-snap-align: start; }
  .rr-bookend { margin-left: 16px; }
  .rr-bookend span { min-height: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  .rr-book { transition: none; }
  .rr-book:hover, .rr-book:focus-visible { transform: translate3d(0, -8px, 40px) rotateY(-58deg); }
}

/* ------------------------------------------------- The printed report */
.rr-titlepage {
  position: relative;
  background:
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.rr-titlepage .pl-title { position: relative; padding-top: 0.9rem; }
.rr-titlepage .pl-title::before { content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 3px; background: var(--accent); }
.rr-titlepage .pl-head-cover {
  transform: perspective(1100px) rotateY(-12deg) rotateX(2deg); transform-origin: 0 50%;
  box-shadow: 1px 1px 0 #D9CCEE, 3px 3px 0 #F4F0FA, 4px 4px 0 #D9CCEE, 0 30px 50px -22px rgba(28, 18, 48, 0.55), 18px 18px 40px -20px rgba(28, 18, 48, 0.35);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rr-titlepage .pl-head-cover:hover { transform: perspective(1100px) rotateY(-4deg); }

/* Executive summary / abstract */
.rr-exec {
  position: relative; padding: 1.4rem 1.6rem 1.5rem; background: var(--mist);
  border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 2px;
}
.rr-exec .pl-section-title { border-bottom-color: var(--line); color: var(--ink); }

/* Contents */
.rr-contents {
  margin: 0 0 var(--s-4); padding: 1.1rem 0 0.9rem;
  border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink);
}
.rr-contents-title { margin: 0 0 0.6rem; font-family: var(--font-serif); font-size: 1.04rem; font-weight: 650; font-variant-caps: all-small-caps; letter-spacing: var(--kicker-track); color: var(--ink); }
.rr-contents ol { margin: 0; padding: 0; list-style: none;  }
.rr-contents li { break-inside: avoid; }
.rr-contents a { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.32rem 0; font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.35; color: var(--ink); }
.rr-contents a::after { content: ""; flex: 1 1 1rem; min-width: 1rem; order: 2; border-bottom: 1px dotted #B9AFC8; transform: translateY(-0.25em); }
.rr-contents a:hover .rr-toc-text { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.rr-toc-num { flex: 0 0 1.8rem; font: 600 0.85rem var(--font); font-variant-numeric: tabular-nums; color: var(--accent); }
.rr-toc-text { order: 1; }
.rr-contents li.is-sub a { padding-left: 1.4rem; font-size: 0.98rem; color: var(--ink-2, var(--ink)); }
.rr-contents li.is-sub .rr-toc-num { flex-basis: 2.2rem; font-weight: 500; }

/* Numbered sections */
.rr-prose .rr-h { scroll-margin-top: calc(var(--header-h) + 1rem); }
.rr-prose h2.rr-h { display: flex; align-items: baseline; gap: 0.8rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.rr-num { flex: 0 0 auto; font: 600 0.82em var(--font); font-variant-numeric: tabular-nums; color: var(--accent); }
.rr-prose h3.rr-h .rr-num { font-size: 0.78em; margin-right: 0.35rem; }
#pl-abstract, #pl-takeaways, #notes, #cite { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* Footnotes: numbered references, margin notes on wide screens, notes at the end otherwise. */
.rr-fn { line-height: 0; font: 600 0.62em var(--font); vertical-align: super; }
.rr-fn a { padding: 0 0.12em; color: var(--accent-dark); text-decoration: none; }
.rr-side { display: none; }
.rr-notes { margin-bottom: var(--s-4); }
.rr-notes ol { margin: 0; padding-left: 1.4em; font-size: 0.92rem; line-height: 1.55; color: var(--muted); }
.rr-notes li { margin-bottom: 0.45rem; padding-left: 0.2rem; }
.rr-notes li::marker { font-weight: 600; color: var(--accent); }
.rr-notes a { color: var(--accent-dark); overflow-wrap: anywhere; }
.rr-notes li:target { background: var(--mist); }
.rr-back { text-decoration: none; }
@media (min-width: 1240px) {
  .pl-main:has(.has-notes) { max-width: none; }
  .has-notes .rr-prose > * { max-width: 600px; }
  .has-notes .rr-prose { position: relative; }
  .rr-side {
    display: block; float: right; clear: right; position: relative;
    width: 178px; margin: 0.25rem -206px 0.8rem 0;
    padding-left: 0.7rem; border-left: 1px solid var(--line);
    font: 400 0.78rem/1.5 var(--font); color: var(--muted); text-indent: 0; white-space: normal;
  }
  .rr-side b { color: var(--accent); margin-right: 0.15rem; }
  .rr-side a { color: var(--accent-dark); overflow-wrap: anywhere; }
  .pl-main:has(.has-notes) .rr-notes { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* How to cite: a library slip */
.rr-slip {
  position: relative; padding: 1.6rem 1.8rem 1.4rem; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 3px;
  background: var(--paper);
}
.rr-slip-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 1rem; margin-bottom: 1.1rem; padding-bottom: 0.7rem; border-bottom: 2px solid var(--ink); }
.rr-slip-kicker { grid-column: 1 / -1; margin: 0; font-family: var(--font-serif); font-variant-caps: all-small-caps; letter-spacing: 0.14em; font-size: 0.95rem; color: var(--accent-dark); }
.rr-slip-head h2 { margin: 0; font-family: var(--font-serif); font-size: 1.7rem; font-weight: 560; letter-spacing: -0.01em; color: var(--ink); }
.rr-slip-call { margin: 0; font: 0.78rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); text-align: right; }
.rr-slip-entry { position: relative; padding: 0.2rem 0 1rem; }
.rr-slip-entry + .rr-slip-entry { padding-top: 0.9rem; border-top: 1px solid var(--line); }
.rr-slip-style { margin: 0 0 0.35rem; font: 600 0.7rem var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-dark); }
.rr-slip-text { margin: 0; font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }
.rr-slip .pl-copy { margin-top: 0.6rem; background: var(--paper); }
.rr-slip-more { margin-top: 0.6rem; padding-top: 1rem; border-top: 2px solid var(--ink); }
.rr-slip-more .pl-cite-panel { background: var(--mist); border: 1px solid var(--line); }
.rr-slip .pl-cite-files { margin-top: 0.9rem; }
.rr-slip .pl-cite-files a:first-child { margin-left: 0.3rem; }
@media (max-width: 640px) {
  .rr-slip { padding: 1.3rem 1rem 1.2rem; }
  .rr-slip-head { grid-template-columns: 1fr; }
  .rr-slip-call { text-align: left; margin-top: 0.3rem; }
  .rr-exec { padding: 1.1rem 1rem 1.2rem; }
  .rr-contents ol { columns: 1; }
}

@media print {
  .rr-room { display: none; }
  .rr-titlepage .pl-head-cover { transform: none; }
  .rr-slip { background: none; box-shadow: none; }
  .rr-notes { position: static !important; width: auto !important; height: auto !important; clip: auto !important; white-space: normal !important; }
  .rr-side { display: none !important; }
}

@media (max-width: 960px) {
  /* One column: the boxes span the full width of the page. */
  .rr-report .pl-body { align-items: stretch; }
}

/* ------------------------------------------- Reading-progress ribbon
   A silk bookmark hanging from the header beside a long report
   (assets/js/report-ribbon.js): its length is how far the reader has got. */
.rr-ribbon {
  --p: 0; --len: min(62vh, 560px);
  position: fixed; top: var(--header-h); right: max(6px, calc((100vw - var(--max)) / 2 - 46px)); z-index: 30;
  width: 16px; height: calc(var(--len) + 40px); pointer-events: none;
}
.rr-ribbon-silk, .rr-ribbon-tail { position: absolute; left: 0; width: 100%; }
.rr-ribbon-silk {
  top: 0; height: var(--len); transform-origin: 50% 0; transform: scaleY(max(0.02, var(--p)));
  background:
    linear-gradient(90deg, transparent 2px, rgba(255, 255, 255, 0.55) 2px 3px, transparent 3px calc(100% - 3px), rgba(255, 255, 255, 0.55) calc(100% - 3px) calc(100% - 2px), transparent 0),
    linear-gradient(90deg, #4A2F73 0%, #7B4FB5 38%, #6E42A6 60%, #3D2860 100%);
  box-shadow: 2px 0 6px rgba(20, 10, 40, 0.25);
}
.rr-ribbon-tail {
  top: 0; height: 26px; transform: translateY(calc(var(--p) * var(--len) - 1px));
  background: linear-gradient(90deg, #4A2F73 0%, #7B4FB5 38%, #6E42A6 60%, #3D2860 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 62%, 0 100%);
  filter: drop-shadow(2px 2px 2px rgba(20, 10, 40, 0.25));
}
.rr-ribbon-pct {
  position: absolute; top: 30px; left: 50%; transform: translate(-50%, calc(var(--p) * var(--len))); font: 700 0.62rem/1 var(--font); letter-spacing: 0.04em;
  color: var(--accent-dark); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.rr-ribbon.is-done .rr-ribbon-silk, .rr-ribbon.is-done .rr-ribbon-tail { filter: saturate(1.15) brightness(1.05); }
@media (max-width: 700px) {
  .rr-ribbon { width: 10px; right: 3px; --len: 46vh; }
  .rr-ribbon-pct { display: none; }
}
@media print { .rr-ribbon { display: none !important; } }

/* ---------------------------------------------- Opening a book (shelf)
   assets/js/reading-room.js: the book flies off the shelf and its cover
   turns like a page of The Long Arc's book before the report opens. */
.rr-open {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; perspective: 2200px;
  background: radial-gradient(ellipse at 50% 42%, rgba(46, 32, 72, 0.96) 0%, rgba(18, 11, 32, 0.98) 78%);
  opacity: 0; transition: opacity 0.35s ease;
}
.rr-open.is-on { opacity: 1; }
.rr-open-book {
  position: relative; width: min(340px, 62vw); aspect-ratio: 5 / 7; transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.45, 0.05, 0.3, 1);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85);
}
.rr-open.is-turning .rr-open-book { transform: translateX(min(170px, 31vw)); transition-duration: 0.7s; }
.rr-open-page {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 0.6rem; padding: 12% 11%;
  background: linear-gradient(90deg, #E7E3EC, #FCFBFD 8%, #FCFBFD); color: #2A1B45; text-align: center; border-radius: 0 3px 3px 0;
  box-shadow: inset 0 0 0 1px rgba(42, 27, 69, 0.08);
}
.rr-open-kicker { margin: 0; font: 600 0.62rem/1.2 var(--font); letter-spacing: 0.2em; text-transform: uppercase; color: #6E42A6; }
.rr-open-title { margin: 0; font-family: var(--font-serif); font-size: clamp(1.05rem, 3.6vw, 1.5rem); line-height: 1.15; font-weight: 560; text-wrap: balance; }
.rr-open-rule { width: 40px; height: 2px; margin: 0.3rem auto; background: var(--ac, #6E42A6); }
.rr-open-year { margin: 0; font-family: var(--font-serif); font-size: 0.95rem; color: #5D5B54; }
.rr-open-leaf { position: absolute; inset: 0; transform-origin: 0 50%; transform-style: preserve-3d; transition: transform 0.7s cubic-bezier(0.45, 0.05, 0.3, 1); }
.rr-open.is-turning .rr-open-leaf { transform: rotateY(-178deg); }
.rr-open-front, .rr-open-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; border-radius: 0 3px 3px 0; }
.rr-open-front { background: var(--bg, #2A1B45); }
.rr-open-front > * { display: block; width: 100%; height: 100%; object-fit: cover; }
.rr-open-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 10%); transition: background 0.7s ease; }
.rr-open.is-turning .rr-open-front::after { background: linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45)); }
.rr-open-back { transform: rotateY(180deg); background: linear-gradient(270deg, #E2DEE8, #F7F5FA 10%); border-radius: 3px 0 0 3px; }
@media (prefers-reduced-motion: reduce) { .rr-open { display: none; } }
