@media (max-width: 760px) {
  body.luxury-site.option-two.figma-final
    :is(.shell > header, .ebook-header)
    .flag-language
    > summary {
    padding-inline: 6px;
    gap: 4px;
  }
  body.figma-final .ebook-header .flag-language > summary img {
    width: 22px;
    height: 16px;
  }
  body.figma-final .ebook-header .flag-language > summary .ui-icon {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }
  body.figma-final .ebook-dock {
    left: 0;
    right: 0;
    bottom: 0;
    border: 0;
    border-top: 1px solid #150f3d33;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    height: calc(54px + env(safe-area-inset-bottom, 0px));
    transform: none;
    width: auto;
    max-width: none;
    margin: 0;
    justify-content: space-between;
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom, 0px));
    gap: 3px;
  }
  body.figma-final .ebook-dock .ebook-page-navigation {
    gap: 2px;
  }
  body.figma-final .ebook-dock .ebook-jump-form {
    gap: 3px;
  }
  body.figma-final:not(.reading-mode) #main h1 {
    font-size: 3.4rem;
    line-height: 1.3;
    overflow-wrap: break-word;
  }
  body.figma-final:not(.reading-mode) #main h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    overflow-wrap: break-word;
  }
  body.figma-final.about-page .about-banner {
    height: auto;
    min-height: 0;
  }
  body.figma-final #chat {
    max-height: calc(100dvh - 100px);
    overflow: auto;
  }
  body.figma-final #chat #chatform input {
    font-size: 1rem;
  }
  #sidebar.open #sidebar-toggle {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    flex: 0 0 32px;
    border: 0;
    background: transparent;
  }
}
@media (max-width: 360px) {
  body.luxury-site.option-two.figma-final
    :is(.shell > header, .ebook-header)
    .flag-language
    > summary {
    padding-inline: 4px;
    gap: 3px;
  }
  body.figma-final .ebook-header .flag-language > summary img {
    width: 20px;
    height: 14px;
  }
  body.figma-final .ebook-header .flag-language > summary .ui-icon {
    width: 10px;
    height: 10px;
    flex-basis: 10px;
  }
  body.figma-final .ebook-dock .ebook-page-field {
    gap: 3px;
  }
  body.figma-final .ebook-dock .ebook-dock-divider {
    margin-inline: 0;
  }
  body.figma-final .ebook-dock .ebook-page-field input {
    width: 38px;
    min-width: 38px;
  }
}
@media (max-width: 360px) {
  body.figma-final .ebook-dock .ebook-page-field > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}
@media (max-width: 760px) {
  body.figma-final.about-page #main :is(.about-copy, .about-contact) h2,
  body.figma-final:not(.reading-mode) #main .brochure-cta .cta-copy h2 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
}
/* Reader download retains its natural label/icon width at every breakpoint. */
body.figma-final .ebook-header .ebook-download {
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  white-space: nowrap;
}
body.figma-final .ebook-header strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Contents is an overlay: opening it never resizes or shifts the PDF. */
.reader-workspace.contents-open {
  grid-template-columns: minmax(0, 1fr);
}
body.figma-final.reading-mode #main .ebook-index-float[hidden],
body.figma-final .ebook-dock #mobile-ebook-index[hidden] {
  display: none;
}
.ebook-index-head {
  padding-left: 20px;
}
@media (min-width: 761px) {
  .reader-workspace .ebook-index {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 300px;
    max-width: calc(100% - 24px);
    height: auto;
    z-index: 20;
    box-shadow: 8px 0 24px #150f3d14;
  }
}
