/* Study sheet on phones and small tablets (TOT website, 2026-11-20).
   The whole sheet scrolls as one surface (touch scrolling, positions preserved); only the compact tool row stays
   pinned at the top, so the reading area is no longer squeezed into the space left under a fixed header block.
   Desktop side panel (wider than 899px) is unchanged. */
@media (max-width: 899px) {
  .study-workspace .inline-study,
  dialog.study-sheet .inline-study {
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    max-height: 100%;
    scroll-padding-top: 56px;
  }
  .study-workspace .study-body,
  dialog.study-sheet .study-body {
    overflow: visible;
    flex: none;
    min-height: 0;
    padding: 12px 16px calc(28px + env(safe-area-inset-bottom));
  }
  .study-workspace .study-workspace-header,
  dialog.study-sheet .study-workspace-header {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--surface, #fffdf8);
    padding: 6px 10px 4px 14px;
    gap: 6px;
    border-bottom: 1px solid var(--line);
  }
  .study-workspace .study-workspace-header select { font-size: 16px; padding: 6px 0; }
  .study-workspace .study-workspace-header .icon-button { width: 40px; height: 40px; }
  .study-workspace .study-pin { padding: 6px 8px; font-size: 13px; }
  .study-workspace .study-context,
  dialog.study-sheet .study-context { padding: 8px 16px 6px; border-bottom: 0; font-size: 13px; }
  .study-workspace .inline-study > .edition-notice,
  dialog.study-sheet .inline-study > .edition-notice { margin: 0 16px 6px; padding: 6px 10px; font-size: 12.5px; line-height: 1.45; }
  .study-workspace .study-resource-shortcuts,
  dialog.study-sheet .study-resource-shortcuts { padding: 0 12px; min-height: 0; }
  .study-workspace .study-resource-shortcuts button { min-height: 40px; }
  .study-workspace .study-text-size { padding: 0 14px; }
  .study-workspace .study-passage-card { margin-bottom: 14px; padding: 12px 14px; }
  .study-workspace .study-body .study-passage-card p { font-size: 19px; line-height: 1.55; }
  /* Taller sheet so the reading area is meaningful; expanded keeps the full height. */
  .study-workspace { height: 62dvh; padding-bottom: 0; }
}
@media (max-width: 899px) and (orientation: landscape) and (max-height: 500px) {
  .study-workspace { height: calc(100dvh - 8px); }
}
/* Passage card: the selected edition's verse plus the English TOT that word study is aligned to. */
.study-passage-card .study-passage-base { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.study-passage-card .study-passage-base summary { cursor: pointer; min-height: 32px; }
.study-passage-card .study-passage-base p { font: 15px/1.55 Georgia, serif; margin: 6px 0 0; color: var(--ink); }
/* Bilingual static footer (index.html): the language chosen in Settings selects which text is shown. */
html:not([data-site-lang="es"]) #tot-public-privacy-footer [data-l="es"],
html[data-site-lang="es"] #tot-public-privacy-footer [data-l="en"] { display: none; }
