@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/roboto-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/roboto-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/roboto-latin-700.woff2") format("woff2");
}
/* Blick ins Buch – Premium Reader v5 */
:root {
  --reader-ambient-solid: #111318;
  --reader-ink: #f8f9fb;
  --reader-muted: rgba(248, 249, 251, 0.7);
  --reader-panel: rgba(18, 20, 25, 0.78);
  --reader-panel-strong: rgba(18, 20, 25, 0.94);
  --reader-line: rgba(255, 255, 255, 0.3);
  --reader-line-strong: rgba(255, 255, 255, 0.64);
  --reader-accent: #ffffff;
  --reader-accent-ink: #101216;
  --reader-focus: #ffffff;
  --reader-danger: #ffb4a8;
  --reader-radius: 1.25rem;
  --reader-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.38);
  --reader-toolbar-height: calc(3.3rem - 5px);
  --reader-control-height: calc(2.55rem - 5px);
  --reader-edge-label-font-size: 1.1rem;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --reader-toolbar-safe-bottom: var(--safe-bottom);
  color-scheme: dark;
  font-family: "Roboto", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

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

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--reader-ambient-solid);
}

body {
  color: var(--reader-ink);
  line-height: 1.5;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  color: inherit;
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:not(:disabled) {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible,
a:focus-visible {
  outline: 3px solid var(--reader-focus);
  outline-offset: 3px;
}

svg {
  display: block;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: calc(0.75rem + var(--safe-top));
  left: calc(0.75rem + var(--safe-left));
  z-index: 1000;
  padding: 0.75rem 1rem;
  color: #111318;
  background: #fff;
  border-radius: 0.6rem;
  font-weight: 750;
  text-decoration: none;
  /* Keep the keyboard shortcut accessible, but do not paint an offscreen
     white layer that can resurface during Firefox fullscreen transitions. */
  opacity: 0;
  pointer-events: none;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
}

.skip-link:focus-visible {
  opacity: 1;
  pointer-events: auto;
  clip: auto;
  clip-path: none;
}

.reader-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: var(--reader-ambient-solid);
}

.reader-ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  contain: strict;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.08), transparent 55%),
    var(--reader-ambient-solid);
}

.reader-ambient__image {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  object-fit: cover;
  object-position: center;
  opacity: 0;
  filter: blur(40px) saturate(0.8) brightness(0.64);
  transform: translate3d(0, 0, 0) scale(2.5);
  transform-origin: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
  transition: opacity 400ms ease;
  pointer-events: none;
  user-select: none;
}

.reader-ambient__image.is-ready {
  opacity: 1;
}

.reader-ambient__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.62), rgba(8, 10, 14, 0.24) 38%, rgba(8, 10, 14, 0.68)),
    radial-gradient(circle at 50% 48%, transparent 0 24%, rgba(8, 10, 14, 0.24) 68%, rgba(8, 10, 14, 0.48));
  pointer-events: none;
}

.reader-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.7rem;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.reader-brand--floating {
  visibility: hidden;
  position: absolute;
  top: calc(1rem + var(--safe-top));
  left: calc(1rem + var(--safe-left));
  z-index: 18;
  max-width: min(18rem, calc(100% - 2rem));
  padding: 0.5rem 0.75rem 0.5rem 0.55rem;
  color: #fff;
  pointer-events: none;
}

.reader-brand--floating.is-clear { visibility: visible; }

.reader-brand__mark {
  display: grid;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: #fff;
}

.reader-brand__mark svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.reader-brand__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The brand stays complete until the collision check requests symbol-only. */
.reader-brand.is-symbol-only .reader-brand__text { display: none; }

.icon-button,
.zoom-value,
.toolbar-button,
.toolbar-action,
.text-button {
  border: 0px solid var(--reader-line);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease, color 150ms ease;
}

.icon-button {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  place-items: center;
  border-radius: 50%;
}

.icon-button svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

.icon-button:hover:not(:disabled),
.zoom-value:hover:not(:disabled),
.toolbar-button:hover:not(:disabled),
.toolbar-action:hover:not(:disabled),
.text-button:hover:not(:disabled) {
  border-color: var(--reader-line-strong);
  background: rgba(255, 255, 255, 0.13);
}

.icon-button:active:not(:disabled),
.zoom-value:active:not(:disabled),
.toolbar-button:active:not(:disabled),
.toolbar-action:active:not(:disabled),
.text-button:active:not(:disabled) {
  transform: translateY(1px) scale(0.98);
}

.reader-workspace {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: clamp(3.75rem, 6vw, 6rem) minmax(0, 1fr) clamp(3.75rem, 6vw, 6rem);
  min-width: 0;
  min-height: 0;
}

.reader-viewport {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  overflow-anchor: none;
  scrollbar-color: rgba(255, 255, 255, 0.34) transparent;
  scrollbar-width: thin;
  touch-action: none;
}

/* The reading area keeps keyboard focus without a visible focus frame.
   Actual buttons, links and inputs retain their focus indicators. */
#readerViewport,
#readerViewport:focus,
#readerViewport:focus-visible {
  outline: none;
  box-shadow: none;
}

.reader-viewport::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.reader-viewport::-webkit-scrollbar-track {
  margin: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.reader-viewport::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  background-clip: padding-box;
}

.reader-viewport::-webkit-scrollbar-corner {
  border-radius: 999px;
  background: transparent;
}

.reader-viewport.is-zoomed {
  cursor: grab;
  touch-action: none;
}

.reader-viewport.is-panning {
  cursor: grabbing;
  user-select: none;
}

.pan-surface {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  overflow: hidden;
}

.reader-viewport.is-zoomed .pan-surface {
  overflow: visible;
}

/* Fitted pages remain inside the middle grid column, while their visual shadows
   may extend into the reserved side columns. Zoom keeps its scroll viewport. */
.reader-viewport:not(.is-zoomed),
.reader-viewport:not(.is-zoomed) .pan-surface {
  overflow: visible;
}

/* Only the two mobile landscape width presets reserve vertical scrollbar
   space before fitting. The frame itself is exactly clientWidth wide. */
.reader-viewport.is-width-fit {
  overflow-x: hidden;
  overflow-y: scroll;
}

.reader-viewport.is-width-fit .pan-surface {
  overflow: hidden;
}

.frame-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.book-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 1px;
  height: 1px;
  opacity: 1;
  transform: none;
  transform-origin: center;
  pointer-events: auto;
  transition: opacity 220ms ease, filter 220ms ease;
}

.book-frame::before {
  position: absolute;
  inset: 0;
  z-index: 6;
  content: "";
  opacity: 0;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, 0.34) 49%, rgba(35, 29, 20, 0.12) 53%, transparent 66%);
  pointer-events: none;
}

.book-frame.is-entering.direction-forward::before {
  animation: leaf-sheen-forward 340ms ease-out both;
}

.book-frame.is-entering.direction-backward::before {
  animation: leaf-sheen-backward 340ms ease-out both;
}

.book-frame.is-entering {
  opacity: 0;
}

/* Retain the original sideways movement as an explicit opt-in.
   To restore it, set data-page-motion="slide" on #bookReader. */
.reader-shell[data-page-motion="slide"] .frame-layer { perspective: 1500px; }

.reader-shell[data-page-motion="slide"] .book-frame {
  transform-style: preserve-3d;
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.2, 0.75, 0.2, 1), filter 220ms ease;
}

.reader-shell[data-page-motion="slide"] .book-frame.is-entering.direction-forward {
  transform: translate3d(1.1rem, 0, 0) rotateY(-3deg) scale(0.992);
}

.reader-shell[data-page-motion="slide"] .book-frame.is-entering.direction-backward {
  transform: translate3d(-1.1rem, 0, 0) rotateY(3deg) scale(0.992);
}

.book-frame.is-entering.is-visible {
  opacity: 1;
}

.reader-shell[data-page-motion="slide"] .book-frame.is-entering.is-visible {
  transform: translate3d(0, 0, 0) rotateY(0) scale(1);
}

.book-frame.is-leaving {
  z-index: -1;
  opacity: 0;
  filter: brightness(0.84);
}

@keyframes leaf-sheen-forward {
  0% { opacity: 0.65; transform: translateX(-24%); }
  100% { opacity: 0; transform: translateX(24%); }
}

@keyframes leaf-sheen-backward {
  0% { opacity: 0.65; transform: translateX(24%) scaleX(-1); }
  100% { opacity: 0; transform: translateX(-24%) scaleX(-1); }
}

.page-sheet {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  overflow: hidden;
  background: #f8f7f3;
  box-shadow:
    0 1.3rem 3.4rem rgba(0, 0, 0, 0.42),
    0 0.2rem 0.8rem rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(48, 39, 24, 0.13);
  contain: layout paint style;
  isolation: isolate;
}

.page-sheet:first-child {
  border-radius: 0.42rem 0.08rem 0.08rem 0.42rem;
}

.page-sheet:last-child {
  border-radius: 0.08rem 0.42rem 0.42rem 0.08rem;
}

.page-sheet:only-child {
  border-radius: 0.48rem;
}

.page-sheet--left::after,
.page-sheet--right::before {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: clamp(1rem, 8%, 3rem);
  content: "";
  pointer-events: none;
}

.page-sheet--left::after {
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(28, 24, 17, 0.13));
}

.page-sheet--right::before {
  left: 0;
  background: linear-gradient(90deg, rgba(28, 24, 17, 0.14), transparent);
}

.page-sheet__image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Original-resolution images are rasterized once at their final layout size.
     Do not force GPU layers or nearest-neighbour scaling on printed text. */
  image-rendering: auto;
  filter: none;
  transform: none;
  background: none;
  color: #161616;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

/* Crop only the rightmost four CSS pixels of cover presentation. The JS keeps
   the image at its uncropped display width, preserving its aspect ratio. */
.page-sheet--cover {
  overflow: hidden;
}

.page-sheet--cover .page-sheet__image {
  top: 0;
  left: 0;
  max-width: none;
  object-position: left top;
}

.page-sheet__blank {
  width: 100%;
  height: 100%;
  background: #fff;
  color-scheme: only light;
  forced-color-adjust: none;
}

.book-frame--single .page-sheet {
  box-shadow:
    0 1.6rem 4.5rem rgba(0, 0, 0, 0.48),
    0 0.25rem 0.9rem rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(48, 39, 24, 0.12);
}

.book-frame--spread::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 4;
  width: 1px;
  content: "";
  background: rgba(25, 21, 15, 0.3);
  box-shadow: -0.25rem 0 0.65rem rgba(0, 0, 0, 0.15), 0.25rem 0 0.65rem rgba(0, 0, 0, 0.12);
  transform: translateX(-0.5px);
  pointer-events: none;
}

/* Grid slots reserve space; only the compact circles are interactive. */
.reader-edge-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  pointer-events: none;
}

.edge-control {
  position: relative;
  z-index: 10;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(3.5rem, 5.5vw, 5.25rem);
  height: clamp(3.5rem, 5.5vw, 5.25rem);
  min-width: 0;
  padding: 0;
  border-radius: 50%;
  pointer-events: auto;
  border: 0;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
}

/* Hide unavailable side controls without shifting the book's layout. */
.edge-control:disabled {
  visibility: hidden;
  pointer-events: none;
}

.edge-control::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border: 0px solid rgba(255, 255, 255, 0.54);
  border-radius: 50%;
  box-shadow: 0 0.8rem 2.5rem rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  content: "";
  transition: transform 170ms ease, background-color 170ms ease, border-color 170ms ease;
}

.edge-control svg {
  position: relative;
  z-index: 1;
  width: clamp(2rem, 3vw, 2.75rem);
  height: clamp(2rem, 3vw, 2.75rem);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 6.5;
  transition: transform 170ms ease;
}

/* Offset only the glyph; circle, callout and click target stay in place. */
.edge-control--previous > svg { left: -5px; }
.edge-control--next > svg { left: 5px; }

/* Actual hover devices only; available controls keep their arrow symbol. */
@media (hover: hover) {
  .edge-control:hover:not(:disabled)::before {
    border-color: rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.94);
    transform: none;
  }

  .edge-control:hover:not(:disabled) { color: #000; }
}

.edge-control__label {
  position: absolute;
  pointer-events: none;
  top: 50%;
  right: calc(50% + clamp(2.2rem, 3.5vw, 3rem));
  transform: translateY(-50%);
  width: max-content;
  max-width: 9rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  color: #fff;
  font-weight: 720;
  line-height: 1.2;
  white-space: normal;
  transition: opacity 180ms ease, transform 180ms ease;
}

/* The callout label can be sized independently of the floating brand. */
.edge-control__label-text {
  font-size: var(--reader-edge-label-font-size, 1.1rem);
}

.edge-control__label[hidden] {
  display: block;
  opacity: 0;
  transform: translate(0.5rem, -50%);
  pointer-events: none;
}

.reader-toolbar {
  position: relative;
  z-index: 20;
  height: calc(var(--reader-toolbar-height) + var(--reader-toolbar-safe-bottom));
  min-height: calc(var(--reader-toolbar-height) + var(--reader-toolbar-safe-bottom));
  max-height: calc(var(--reader-toolbar-height) + var(--reader-toolbar-safe-bottom));
  padding: 0.25rem calc(0.6rem + var(--safe-right)) calc(0.25rem + var(--reader-toolbar-safe-bottom)) calc(0.6rem + var(--safe-left));
  overflow: visible;
  background: linear-gradient(0deg, rgba(10, 12, 16, 0.96), rgba(10, 12, 16, 0.82));
  box-shadow: 0 -0.75rem 2.4rem rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px) saturate(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.08);
}

.reader-toolbar button:focus-visible,
.reader-toolbar input:focus-visible {
  outline-offset: -2px;
}

.toolbar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  gap: calc(clamp(0.15rem, 0.6vw, 0.65rem) + 2px);
  white-space: nowrap;
}

.toolbar-help {
  display: flex;
  align-items: center;
  justify-self: start;
  min-width: 0;
}

/* Equal outer columns keep the combined Zoom / page controls at the window
   centre, independently of the Help and Full screen button widths. */
.toolbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-width: 0;
  gap: calc(clamp(0.15rem, 0.6vw, 0.65rem) + 10px);
}

.toolbar-navigation {
  display: grid;
  grid-template-columns: minmax(5.25rem, auto) minmax(5rem, auto) minmax(5.25rem, auto);
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  gap: calc(0.45rem + 2px);
}

.toolbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--reader-control-height);
  min-height: var(--reader-control-height);
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 680;
}

.toolbar-button svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.8;
}

.toolbar-button--primary {
  border-color: #fff;
  color: var(--reader-accent-ink);
  background: var(--reader-accent);
  box-shadow: 0 0.45rem 1.4rem rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.toolbar-button--primary:hover:not(:disabled) {
  border-color: #fff;
  background: #fff;
}

.page-status {
  margin-inline: 2px;
  padding: 0.25rem;
  line-height: 1;
  height: var(--reader-control-height);
  min-height: var(--reader-control-height);
  border: 0;
  color: #fff;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 5rem;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.page-status::before {
  content: "Seite";
}

:lang(en) .page-status::before { content: "Page"; }

.page-status__total {
  align-self: center;
  color: var(--reader-muted);
  font-size: 0.8rem;
}

.page-status__total::before {
  content: "von ";
}

:lang(en) .page-status__total::before { content: "of "; }

.page-status.is-empty::before,
.page-status.is-empty .page-status__total {
  display: none;
}

.page-scrubber {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  bottom: 100%;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(24px, 1fr);
  justify-items: center;
  opacity: 0;
  transition: opacity 320ms ease;
  align-items: center;
  gap: 0.8rem;
  min-height: 2.8rem;
  padding: 0.55rem max(1rem, var(--safe-left), var(--safe-right));
  /* Previous transparency 0.248, reduced by 10% to 0.2232. */
  background: rgba(18, 20, 25, 0.7768);
  box-shadow: 0 -0.5rem 1.5rem rgba(0, 0, 0, 0.18);
}

.page-scrubber.is-visible { opacity: 1; }
.page-scrubber.is-closing { opacity: 0; }

.page-scrubber[hidden] { display: none; }

.page-scrubber input {
  width: 50vw;
  max-width: 100%;
  min-width: 24px;
  height: 1.5rem;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  accent-color: var(--reader-accent);
  background: transparent;
  cursor: pointer;
}

.page-scrubber input::-webkit-slider-runnable-track {
  height: 0.38rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--reader-accent) 0 var(--reader-progress, 0%), rgba(255, 255, 255, 0.2) var(--reader-progress, 0%) 100%);
}

.page-scrubber input::-webkit-slider-thumb {
  width: 1.12rem;
  height: 1.12rem;
  margin-top: -0.37rem;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--reader-accent);
  box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.28);
  -webkit-appearance: none;
}

.page-scrubber input::-moz-range-track {
  height: 0.38rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.page-scrubber input::-moz-range-progress {
  height: 0.38rem;
  border-radius: 999px;
  background: var(--reader-accent);
}

.page-scrubber input::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--reader-accent);
  box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.28);
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: calc(0.35rem + 2px);
  flex: 0 0 auto;
}

.reader-utilities {
  display: flex;
  align-items: center;
  justify-self: end;
  justify-content: flex-end;
  gap: calc(0.35rem + 2px);
  min-width: 0;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.toolbar-group-label {
  color: var(--reader-muted);
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.icon-button--toolbar {
  width: 2.55rem;
  height: var(--reader-control-height);
  border-radius: 0.75rem;
}

.zoom-value {
  min-width: 4.4rem;
  height: var(--reader-control-height);
  min-height: var(--reader-control-height);
  padding: 0.35rem 0.6rem;
  border-radius: 0.75rem;
  color: var(--reader-muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

/* The reset button shows whether the actual zoom differs from 100 percent. */
#fitButton.is-zoom-active {
  background: var(--reader-zoom-active-background, #fbbf24);
  color: var(--reader-zoom-active-color, #111318);
}

.toolbar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--reader-control-height);
  min-height: var(--reader-control-height);
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.75rem;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.toolbar-action svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

.reader-loading,
.reader-error {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  color: var(--reader-muted);
  text-align: center;
  pointer-events: none;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.reader-loading {
  inset: 50% auto auto 50%;
  width: 2.175rem;
  height: 2.175rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: none;
  box-shadow: none;
  transform: translate(-50%, -50%);
}

.reader-loading.is-background {
  transition: none;
}

.book-frame.is-obscured { display: none; pointer-events: none; }

.book-frame.book-frame--loading {
  pointer-events: none;
  opacity: 1;
  filter: none;
  transition: none;
}

.book-frame--loading::before,
.book-frame--loading.book-frame--spread::after {
  display: none;
}

/* Missing pages retain their final slot. Interior pages use the paper surface
   below; a single front/back cover keeps the transparent background. */
.page-sheet--pending,
.book-frame--single .page-sheet--pending {
  background: none;
  box-shadow: none;
}

/* Inner book pages, including their missing-page placeholders, sit on white
   paper. Only isolated front/back covers omit this class. */
.book-frame--paper,
.book-frame--paper .page-sheet,
.book-frame--paper .page-sheet--pending {
  background: #fff;
  color-scheme: only light;
  forced-color-adjust: none;
}

/* Match the white backing to the rounded page edges. Do not clip the frame:
   its children's external book shadows must remain free to extend outwards. */
.book-frame--paper.book-frame--spread {
  border-radius: 0.42rem;
}

.book-frame--paper.book-frame--single {
  border-radius: 0.48rem;
}

.book-frame--paper::before {
  border-radius: inherit;
}

.book-frame:not(.book-frame--paper) .page-sheet {
  background: none;
}

/* Wheel navigation commits without any page-turn animation. The narrowly
   scoped !important declarations also override the optional slide mode.
   Static page shadows, fold gradients and the spread spine stay unchanged. */
.reader-shell .book-frame.book-frame--quiet {
  transition: none !important;
  animation: none !important;
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
}

.reader-shell .book-frame.book-frame--quiet::before {
  display: none !important;
  animation: none !important;
}

.page-sheet--pending::before,
.page-sheet--pending::after {
  display: none;
}

.page-sheet--pending .reader-loading {
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  transition: none;
}

.reader-loading.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.reader-error {
  pointer-events: auto;
}

.reader-error[hidden] {
  display: none;
}

.reader-error strong {
  color: var(--reader-ink);
  font-size: 1.05rem;
}

.reader-error span {
  max-width: 34rem;
}

.text-button {
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border-radius: 0.75rem;
  font-weight: 700;
  pointer-events: auto;
}

.reader-loading__spinner {
  display: block;
  flex: 0 0 auto;
  width: 2.175rem;
  height: 2.175rem;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: rgba(255, 255, 255, 0.94);
  border-right-color: rgba(255, 255, 255, 0.94);
  border-left-color: transparent;
  border-radius: 50%;
  animation: reader-spinner 750ms linear infinite;
}

/* Dark, sharply drawn ring on white paper; no blur/filter/shadow around it.
   Covers keep the white ring specified by the base spinner rule. */
.book-frame--paper .reader-loading__spinner {
  border-color: rgba(64, 68, 76, 0.2);
  border-top-color: #4b4f55;
  border-right-color: #4b4f55;
  border-left-color: transparent;
  filter: none;
  box-shadow: none;
}

@keyframes reader-spinner {
  to { transform: rotate(360deg); }
}



.reader-toast {
  position: fixed;
  left: 50%;
  bottom: calc(6rem + var(--safe-bottom));
  z-index: 100;
  max-width: min(90vw, 30rem);
  padding: 0.75rem 1rem;
  border-radius: 0.8rem;
  color: #fff;
  background: var(--reader-panel-strong);
  box-shadow: var(--reader-shadow);
  font-size: 0.9rem;
  text-align: center;
  transform: translateX(-50%);
}

.reader-toast[hidden] {
  display: none;
}

.help-dialog {
  color-scheme: light;
  --reader-focus: #1648a0;
  width: min(42rem, calc(100vw - 2rem));
  max-height: min(42rem, calc(100dvh - 2rem));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 1.25rem;
  color: #202228;
  background: #fbfbfc;
  box-shadow: 0 2rem 8rem rgba(0, 0, 0, 0.52);
}

.help-dialog::backdrop {
  background: rgba(5, 7, 10, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.help-dialog__header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(251, 251, 252, 0.96);
}

.help-dialog__header h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.eyebrow {
  margin: 0 0 0.15rem;
  color: #6a5a2c;
  font-size: 0.75rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.icon-button--light {
  flex: 0 0 auto;
  color: #202228;
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.04);
}

.icon-button--light:hover:not(:disabled) {
  border-color: rgba(0, 0, 0, 0.25);
  background: rgba(0, 0, 0, 0.08);
}

.help-dialog__content {
  max-height: calc(min(42rem, 100dvh - 2rem) - 5.2rem);
  padding: 1.25rem;
  overflow: auto;
  font-size: 1rem;
}

.help-dialog__content > :first-child {
  margin-top: 0;
}

.help-dialog__content > :last-child {
  margin-bottom: 0;
}

.help-dialog__content a {
  color: #1648a0;
  text-underline-offset: 0.18em;
}

.noscript-message {
  position: fixed;
  inset: 1rem;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 2rem;
  color: #111;
  background: #fff;
  font-size: 1.1rem;
  text-align: center;
}

/* All widths: Help left, the combined Zoom / page controls in the centre,
   Full screen right. Compact controls retain their icon and text sizes. */
@media (max-width: 90rem) {
  .zoom-controls .toolbar-group-label { display: none; }
}
@media (max-width: 78rem) {
  .toolbar-action { width: 2.55rem; padding-inline: 0; }
  .toolbar-action span { display: none; }
}
/* Intermediate layout: no side controls, but spread mode can remain active. */
@media (max-width: 64rem) {
  .reader-edge-slot { display: none; }
  .reader-workspace { grid-template-columns: minmax(0, 1fr); }
}

/* Zoom uses the entire workspace; no invisible side columns remain. */
.reader-shell[data-zoomed="true"] .reader-edge-slot { display: none; }
.reader-shell[data-zoomed="true"] .reader-workspace { grid-template-columns: minmax(0, 1fr); }
.reader-shell[data-zoomed="true"] .reader-viewport { padding-inline: 0; }

@media (max-width: 62rem) {
  .toolbar-button__text { display: none; }
  .toolbar-navigation { grid-template-columns: 3.825rem auto 3.825rem; }
  .toolbar-button { width: 3.825rem; padding-inline: 0; }
  .page-status::before { display: none; }
  .page-status__total::before, :lang(en) .page-status__total::before { content: "/ "; }
}
@media (max-width: 48rem) {
  .reader-brand--floating {
    top: calc(0.65rem + var(--safe-top));
    left: calc(0.65rem + var(--safe-left));
    max-width: calc(100% - 1.3rem - var(--safe-left) - var(--safe-right));
    padding: 0.4rem 0.6rem;
  }
  .toolbar-layout { gap: 6px; }
  .toolbar-center { gap: 14px; }
  .reader-utilities, .zoom-controls, .toolbar-navigation { gap: 5px; }
  .icon-button--toolbar, .toolbar-action, .toolbar-button {
    width: 32px; min-width: 32px; height: 31px; min-height: 31px; padding: 0;
  }
  .toolbar-navigation { grid-template-columns: 48px auto 48px; }
  .toolbar-button { width: 48px; min-width: 48px; }
  .zoom-value { min-width: 44px; height: 31px; min-height: 31px; padding: 2px; font-size: 12px; }
  .page-status { min-width: 42px; height: 31px; min-height: 31px; gap: 2px; font-size: 12px; }
  .page-status__total { font-size: inherit; }
  .toolbar-action svg, .icon-button--toolbar svg, .toolbar-button svg { width: 18px; height: 18px; }
}
@media (max-width: 38rem) {
  .toolbar-layout { gap: 4px; }
  .toolbar-center { gap: 12px; }
  .reader-utilities, .zoom-controls, .toolbar-navigation { gap: 4px; }
  .icon-button--toolbar, .toolbar-action, .toolbar-button {
    width: 28px; min-width: 28px; height: 27px; min-height: 27px; border-radius: 7px;
  }
  .toolbar-navigation { grid-template-columns: 42px auto 42px; }
  .toolbar-button { width: 42px; min-width: 42px; }
  .zoom-value { min-width: 44px; height: 27px; min-height: 27px; border-radius: 7px; }
  .page-status { height: 27px; min-height: 27px; min-width: 32px; padding: 1px; }
  .reader-toast { bottom: calc(4.2rem + var(--safe-bottom)); }
}
/* At the narrowest phone widths recover only horizontal space. Keep the
   existing heights, icons, text and the 50% wider Previous / Next controls. */
@media (max-width: 22rem) {
  .icon-button--toolbar, .toolbar-action { width: 24px; min-width: 24px; }
  .toolbar-navigation { grid-template-columns: 36px auto 36px; }
  .toolbar-button { width: 36px; min-width: 36px; }
}

/* Avoid independent paint clips and backdrop-filter surfaces on rotating
   mobile viewports. Keep the same paper, toolbar gradient and ambient scale. */
.reader-shell[data-mobile="true"] .page-sheet {
  contain: layout style;
}

.reader-shell[data-mobile="true"] .reader-toolbar {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.reader-shell[data-mobile="true"] .reader-ambient__image {
  transform: scale(2.5);
  will-change: auto;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

/* Firefox Android can include browser chrome in safe-area-inset-bottom even
   though 100dvh already excludes it (Mozilla bug 2057232). Do not add it to
   the reader's toolbar a second time in an ordinary browser tab. Keep the
   actual device inset in fullscreen / standalone; other engines are unchanged. */
.reader-shell[data-mobile="true"][data-gecko-android="true"] {
  --reader-toolbar-safe-bottom: 0px;
}

:fullscreen .reader-shell[data-mobile="true"][data-gecko-android="true"],
.reader-shell[data-mobile="true"][data-gecko-android="true"]:fullscreen {
  --reader-toolbar-safe-bottom: var(--safe-bottom);
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  .reader-shell[data-mobile="true"][data-gecko-android="true"] {
    --reader-toolbar-safe-bottom: var(--safe-bottom);
  }
}

/* A small pre-blurred bitmap replaces Gecko Android's live compositor filter.
   Restore the original fixed/contained ambient and isolated page surfaces;
   never expose an unfiltered cover while bitmap preparation is pending. */
.reader-shell[data-mobile="true"][data-gecko-android="true"] .reader-ambient__image {
  inset: 0;
  width: 100%;
  height: 100%;
  filter: none;
  transform: none;
  transition: none;
  will-change: auto;
}

/* A mobile slider has a larger target while keeping ordinary control behavior. */
.reader-shell[data-mobile="true"] .page-scrubber input {
  width: 80vw;
  min-height: 44px;
  touch-action: pan-y;
}

.fit-symbol { display: none; fill: none; stroke: currentColor; stroke-width: 2.6; }
.reader-toolbar { padding-inline: max(0.6rem, var(--safe-left), var(--safe-right)); }
@media (max-width: 48rem) {
  .reader-toolbar { padding-inline: max(3px, var(--safe-left), var(--safe-right)); }
}
.help-dialog .text-button {
  color: #fff; background: #202228; border-color: #202228;
}
.help-dialog .text-button:hover { color: #fff; background: #3c4049; border-color: #202228; }
.keyboard-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0.6rem 1rem; }
.keyboard-list dt { font-weight: 700; }
.keyboard-list dd { margin: 0; }
.page-transcript { white-space: pre-wrap; }
.help-dialog__content { overflow-wrap: anywhere; overscroll-behavior: contain; }
.help-dialog__content img { max-width: 100%; height: auto; }
.rights-notice { border-top: 1px solid #a3a6ad; margin-top: 1.5rem; }
@media (max-width: 30rem) {
  .keyboard-list { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .keyboard-list dd { margin-bottom: 0.7rem; }
  .help-dialog__header, .help-dialog__content { padding: 1rem; }
}

/* Match the stable mode used by layout, zoom retention and page transitions.
   A hovering S-Pen or mouse must not bring mobile side columns back. */
.reader-shell[data-mobile="true"] .reader-edge-slot { display: none; }
.reader-shell[data-mobile="true"] .reader-workspace { grid-template-columns: minmax(0, 1fr); }

@media (hover: none) and (pointer: coarse) {
  button,
  input[type="range"] {
    touch-action: manipulation;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --reader-line: rgba(255, 255, 255, 0.42);
    --reader-line-strong: rgba(255, 255, 255, 0.7);
    --reader-muted: rgba(255, 255, 255, 0.86);
  }

  .reader-ambient__veil {
    background: rgba(0, 0, 0, 0.68);
  }
}

@media (forced-colors: active) {
  .reader-ambient,
  .reader-ambient__image,
  .reader-ambient__veil {
    display: none;
  }

  .reader-toolbar,
  .page-scrubber,
  .edge-control::before {
    background: Canvas;
  }

  .page-sheet {
    border: 1px solid CanvasText;
  }

  .toolbar-button--primary {
    color: ButtonText;
    background: ButtonFace;
  }
}

@media print {
  body {
    display: none !important;
  }
}

.help-dialog[data-fallback="true"][open] { position: fixed; inset: 0; margin: auto; z-index: 500; }

/* The lazy help loader remains readable on the light help dialog. */
#helpLoading:not([hidden]) { display: flex; align-items: center; gap: 0.75rem; padding-block: 1rem; }
#helpLoading .reader-loading__spinner { border-color: rgba(32, 34, 40, 0.2); border-top-color: #202228; }
.reader-help-legal { margin-top: 1.6rem; padding-top: 0.75rem; border-top: 1px solid #d8d9dc; }
.reader-help-legal h3 { scroll-margin-top: 1rem; }


/* BEGIN go-help-de typography and top-rule fix v3, 2026-09-17.
   These rules must be external: sanitizeHelp intentionally removes style tags. */
/* Help-fragment styles only. Explicit typography also overrides host styles. */
#goHelpLegalContent.reader-help-legal {
  --reader-help-body-size: 16px;
  --reader-help-heading-size: 18px;
  --reader-help-rule: rgba(127, 127, 127, 0.4);
  display: block !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: none !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: var(--reader-help-body-size) !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  color: inherit !important;
  text-align: start !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  overflow-wrap: anywhere !important;
  scroll-margin: 0 !important;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* No inherited rule, pseudo-rule or ornament at the beginning. */
#goHelpLegalContent.reader-help-legal #goHelpLegalBody::before,
#goHelpLegalContent.reader-help-legal #goHelpLegalBody::after,
#goHelpLegalContent.reader-help-legal::before,
#goHelpLegalContent.reader-help-legal::after,
#goHelpLegalContent.reader-help-legal #goHelpLegalBody :where(section, nav, h1, h2, h3, h4, h5, h6)::before,
#goHelpLegalContent.reader-help-legal #goHelpLegalBody :where(section, nav, h1, h2, h3, h4, h5, h6)::after {
  content: none !important;
  display: none !important;
}

#goHelpLegalContent.reader-help-legal #goHelpLegalBody,
#goHelpLegalContent.reader-help-legal #goHelpLegalBody :where(section, nav, div, p, address, ul, ol, dl, li, dt, dd) {
  box-sizing: border-box !important;
  float: none !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: var(--reader-help-body-size) !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  color: inherit !important;
  text-align: start !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  border: 0 !important;
  box-shadow: none !important;
  background: none !important;
}

#goHelpLegalContent.reader-help-legal #goHelpLegalBody,
#goHelpLegalContent.reader-help-legal #goHelpLegalBody :where(section, nav, div) {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

#goHelpLegalContent.reader-help-legal #goHelpLegalBody .reader-help-toc {
  margin: 0 0 28px !important;
}

#goHelpLegalContent.reader-help-legal #goHelpLegalBody .reader-help-toc > div {
  margin: 0 0 4px !important;
}

/* Every heading uses exactly the same font, size and weight. */
#goHelpLegalContent.reader-help-legal #goHelpLegalBody :where(h1, h2, h3, h4, h5, h6) {
  display: block !important;
  box-sizing: border-box !important;
  clear: both !important;
  margin: 28px 0 12px !important;
  padding: 20px 0 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--reader-help-rule) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: none !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: var(--reader-help-heading-size) !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: inherit !important;
  text-align: start !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  overflow-wrap: anywhere !important;
  scroll-margin: 0 !important;
}

/* Neither the page beginning nor the first heading has a separator. */
#goHelpLegalContent.reader-help-legal #goHelpLegalBody .reader-help-toc + .reader-help-section-title {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

#goHelpLegalContent.reader-help-legal #goHelpLegalBody :where(p, address, ul, ol, dl) {
  display: block !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
}

#goHelpLegalContent.reader-help-legal #goHelpLegalBody :where(ul, ol) {
  padding-inline-start: 24px !important;
}

#goHelpLegalContent.reader-help-legal #goHelpLegalBody li {
  display: list-item !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
}

#goHelpLegalContent.reader-help-legal #goHelpLegalBody dt {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  font-weight: 700 !important;
}

#goHelpLegalContent.reader-help-legal #goHelpLegalBody dd {
  display: block !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
}

#goHelpLegalContent.reader-help-legal #goHelpLegalBody :where(a, span, b, strong, em, i, small) {
  font-family: inherit !important;
  font-size: inherit !important;
  font-style: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
}

#goHelpLegalContent.reader-help-legal #goHelpLegalBody :where(a, span, small) {
  font-weight: inherit !important;
}

#goHelpLegalContent.reader-help-legal #goHelpLegalBody :where(b, strong) {
  font-weight: 700 !important;
}

#goHelpLegalContent.reader-help-legal #goHelpLegalBody a {
  cursor: pointer !important;
  text-decoration: underline !important;
  text-underline-offset: 0.14em;
}

#goHelpLegalContent.reader-help-legal #goHelpLegalBody .reader-help-back-to-top {
  display: inline-block !important;
  margin-inline-start: 6px !important;
  padding: 0 3px !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

#goHelpLegalContent.reader-help-legal #goHelpLegalBody a:hover {
  text-decoration: underline !important;
}

#goHelpLegalContent.reader-help-legal #goHelpLegalBody a:focus-visible {
  outline: 2px solid currentColor !important;
  outline-offset: 3px !important;
}

#goHelpLegalContent.reader-help-legal:focus,
#goHelpLegalContent.reader-help-legal #goHelpLegalBody :where(h1, h2, h3, h4, h5, h6):focus {
  outline: none !important;
}

#goHelpLegalContent.reader-help-legal #goHelpLegalBody .reader-help-legacy-separator {
  display: none !important;
}

/* The dialog header belongs to the host page, not to the loaded fragment.
   Remove its separator only in this help dialog; other dialogs are unchanged. */
#helpDialog.help-dialog:has(#goHelpLegalContent) > .help-dialog__header {
  border-bottom: 0 !important;
  box-shadow: none !important;
}

/* No top rule on the host's content container or its loading mount. */
#helpDialog.help-dialog:has(#goHelpLegalContent) > .help-dialog__content,
#helpDialog.help-dialog #helpContent:has(#goHelpLegalContent) {
  border-top: 0 !important;
  box-shadow: none !important;
}

/* END go-help-de typography and top-rule fix v3. */
