/* Readymag export fixes. Keep these overrides after viewer.css when re-exporting. */

/* The exported menu is anchored to the viewport centre with negative offsets.
   Pin it to the top edge instead: short MacBook windows must not crop it. */
.above-pages-container > a > .widget-button[data-id="6ac8bf311b01f27723a22f8e"],
.above-pages-container > a > .widget-button[data-id="6ac8bf311b01f27723a22f8f"],
.above-pages-container > a > .widget-button[data-id="6ac8bf311b01f27723a22f90"] {
  --nav-unit: clamp(1px, 0.09765625vw, 1.5px);
  --nav-inset: clamp(12px, 3.2vw, 60px);
  position: absolute !important;
  top: max(16px, env(safe-area-inset-top, 0px)) !important;
  left: auto !important;
  margin: 0 !important;
  zoom: 1 !important;
  transform: none !important;
  height: calc(27 * var(--nav-unit)) !important;
  min-height: 32px;
}
.above-pages-container > a > .widget-button[data-id="6ac8bf311b01f27723a22f8e"] {
  left: var(--nav-inset) !important;
  width: calc(97 * var(--nav-unit)) !important;
}
.above-pages-container > a > .widget-button[data-id="6ac8bf311b01f27723a22f8f"] {
  right: calc(var(--nav-inset) + 154 * var(--nav-unit)) !important;
  width: calc(115 * var(--nav-unit)) !important;
}
.above-pages-container > a > .widget-button[data-id="6ac8bf311b01f27723a22f90"] {
  right: var(--nav-inset) !important;
  width: calc(142 * var(--nav-unit)) !important;
}
.above-pages-container .widget-button .common-button {
  border-radius: 44px;
  background-color: #bc80f8;
  color: #000;
  font-family: custom_110311, Arial, sans-serif;
  font-weight: 500;
  font-size: calc(13 * var(--nav-unit)) !important;
}
.above-pages-container .widget-button .common-button.current,
.above-pages-container .widget-button .common-button.hovered {
  background-color: #cffd1e;
  color: #000;
}
.above-pages-container .widget-button .text {
  height: auto !important;
  line-height: 1.2 !important;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .above-pages-container > a > .widget-button[data-id] {
    top: max(8px, env(safe-area-inset-top, 0px)) !important;
    --nav-unit: 1px;
    --nav-inset: 12px;
  }
  .above-pages-container > a > .widget-button[data-id="6ac8bf311b01f27723a22f8e"] { width: 76px !important; }
  .above-pages-container > a > .widget-button[data-id="6ac8bf311b01f27723a22f8f"] {
    width: 90px !important;
    right: calc(var(--nav-inset) + 124px) !important;
  }
  .above-pages-container > a > .widget-button[data-id="6ac8bf311b01f27723a22f90"] { width: 116px !important; }
  .above-pages-container .widget-button .common-button { font-size: 11px !important; }
}

/* The viewer normally injects these colours at runtime. Supply the same styles
   in the initial stylesheet, including when a section is loaded by scrolling. */
.rmwidget.widget-button .common-button[data-id="6adf986f0d39dbf572a15a5d"],
.rmwidget.widget-button .common-button[data-id="6ae0ac7ea99d6e6e95100396"],
.rmwidget.widget-button .common-button[data-id="6ae0aa73a99d6e6e950eeb8d"],
.rmwidget.widget-button .common-button[data-id="6ae0aa73a99d6e6e950eeb8e"] {
  background-color: #cffd1e;
  color: #000;
  border-radius: 70px;
  border: 0;
  font-family: custom_110260, Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
}
.rmwidget.widget-button .common-button[data-id="6adf986f0d39dbf572a15a5d"].hovered,
.rmwidget.widget-button .common-button[data-id="6ae0ac7ea99d6e6e95100396"].hovered,
.rmwidget.widget-button .common-button[data-id="6ae0aa73a99d6e6e950eeb8d"].hovered,
.rmwidget.widget-button .common-button[data-id="6ae0aa73a99d6e6e950eeb8e"].hovered {
  background-color: #151515;
  color: #fff;
}
/* Keyboard focus is on the link wrapping the absolutely positioned widget. */
a:focus-visible > .widget-button .common-button {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Leave room above the phone logo for the now-visible menu. */
.isphone .rmwidget[data-id="6ade336f9d2a607046d4a656"] {
  top: 48px !important;
}
/* The fixed bottom arrow overlaps the launch CTA on short phone screens.
   Touch scrolling and the menu already provide section navigation. */
.isphone .viewer-type-vertical .navigation-arrow.bottom {
  display: none;
}

/* Gallery starts close to its final position, so the section is never an empty
   panel waiting for every card to download and travel a full screen width. */
.mag .page .rmwidget.artel-gallery-card {
  --artel-enter-x: 64px;
  opacity: .55;
  transform: translateX(var(--artel-enter-x));
  transition: transform .85s cubic-bezier(.16, 1, .3, 1), opacity .55s ease-out;
}
.mag .page .rmwidget.artel-gallery-card[data-artel-row="lower"] {
  --artel-enter-x: -64px;
  transition-delay: .08s;
}
.mag .page .rmwidget.artel-gallery-card.artel-card-visible {
  opacity: 1;
  transform: translateX(0);
}
.mag .page .rmwidget.artel-gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: var(--artel-preview, linear-gradient(155deg, #293044, #4d5870 55%, #242b3e)) center / cover;
  filter: blur(2px);
  clip-path: inset(0 round 10px);
  transition: opacity .3s ease-out;
}
.mag .page .rmwidget.artel-gallery-card.artel-card-loaded::before { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .mag .page .rmwidget.artel-gallery-card::before { transition: none; }
  .mag .page .rmwidget.artel-gallery-card, .mag .page .rmwidget.artel-gallery-card.artel-card-visible { opacity: 1; transform: none; transition: none; }
}
/* Keep the phone gallery heading below the fixed menu. */
.isphone .rmwidget[data-id="6ae0934cf6d6ca0b19c1ad99"] { top: 44px !important; }
