/* v1.0.29 — ajustes responsivos para tablets de 7 a 10 polegadas */
@media (min-width: 600px) and (max-width: 1024px) {
  html, body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body.font-small { --read-font: 17px; --hino-font: 18px; }
  body.font-normal { --read-font: 18px; --hino-font: 20px; }
  body.font-large { --read-font: 20px; --hino-font: 22px; }
  body.font-extra { --read-font: 22px; --hino-font: 24px; }

  .appbar-main,
  .mode-switch,
  .page,
  .bottom-nav-inner {
    max-width: 760px;
  }

  .appbar-main {
    height: 58px;
  }

  .brand-mark {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .appbar-title {
    font-size: 21px;
  }

  .appbar-subtitle {
    font-size: 12px;
  }

  .mode-switch {
    height: 46px;
    margin-top: 7px;
  }

  .mode-btn {
    font-size: 17px;
  }

  .sub-title-row,
  .hino-top {
    min-height: 66px;
    padding: 18px 62px 10px;
  }

  .sub-title-row h1,
  .hino-top h1 {
    font-size: 24px;
    line-height: 1.15;
  }

  .sub-title-row .back-btn,
  .hino-top .back-btn.absolute {
    top: 14px;
  }

  .chapter-nav-label-full {
    display: none;
  }

  .chapter-nav-label-short {
    display: inline;
  }

  .chapter-bar {
    grid-template-columns: minmax(0, 1fr) minmax(82px, 96px) minmax(0, 1fr);
    gap: 8px;
    margin: 0 18px 12px;
  }

  .chapter-bar .small-btn,
  .chapter-footer-nav .small-btn,
  .hino-nav .small-btn {
    min-height: 46px;
    padding: 10px 8px;
    font-size: 12px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .chapter-bar select {
    min-width: 0;
    width: 100%;
    padding: 10px 6px;
    font-size: 13px;
  }

  .read-actions,
  .hino-nav {
    margin-left: 18px;
    margin-right: 18px;
    gap: 8px;
  }

  .action-btn {
    min-height: 46px;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.2;
    border-radius: 15px;
  }

  .text-card,
  .lyrics-card {
    margin-left: 18px;
    margin-right: 18px;
    padding: 16px 18px 24px;
    border-radius: 20px;
  }

  .verse {
    grid-template-columns: 30px 1fr;
    gap: 8px;
    padding: 8px 0;
  }

  .verse-number {
    font-size: 15px;
    line-height: 1.55;
  }

  .verse-text {
    line-height: 1.52;
  }

  .hino-stanza {
    margin-bottom: 22px;
    padding-left: 38px;
    line-height: 1.38;
  }

  .hino-stanza-number {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }

  .hino-chorus {
    margin: 0 0 22px 38px;
    padding: 12px 14px;
    line-height: 1.38;
  }

  .quick-read-panel {
    width: 280px;
    right: max(14px, calc((100vw - 760px) / 2 + 66px));
    padding: 12px;
  }

  .quick-read-title {
    font-size: 12px;
  }

  .quick-read-option,
  .quick-read-action,
  .quick-read-font .small-btn {
    min-height: 40px;
    font-size: 13px;
  }

  .bottom-nav {
    padding-top: 6px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }

  .bottom-nav-inner {
    gap: 4px;
  }

  .nav-btn {
    min-height: 62px;
    padding: 7px 2px 6px;
    border-radius: 18px;
    font-size: 10px;
  }

  .nav-btn .nav-icon {
    font-size: 20px;
  }

  body {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .page {
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  .toast {
    bottom: calc(98px + env(safe-area-inset-bottom));
  }
}

/* O modal de imagem precisa ficar acima do menu inferior também em tablets. */
.image-share-backdrop {
  z-index: 220;
}

.image-share-sheet {
  z-index: 230;
}

@media (min-width: 600px) and (max-width: 1024px) {
  .image-share-sheet {
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    width: min(560px, calc(100vw - 36px));
    max-height: calc(100vh - 56px);
    border-radius: 28px;
    padding: 18px;
    transform: translate(-50%, calc(-50% + 22px)) scale(.98);
    opacity: 0;
  }

  .image-share-sheet.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  .image-share-head strong {
    font-size: 22px;
  }

  .image-share-help {
    font-size: 14px;
  }

  .image-theme-list {
    gap: 8px;
    margin-bottom: 14px;
  }

  .image-theme-btn {
    padding: 9px 13px;
    font-size: 14px;
  }

  .image-share-preview {
    width: min(100%, 270px);
    padding: 8px;
    border-radius: 22px;
  }

  .image-share-preview canvas {
    border-radius: 16px;
  }

  .image-share-actions button {
    min-height: 44px;
    font-size: 14px;
  }
}
