/* Copy Passage, AutoStudy, Go to (studydlg.js), and the Study tab's page:
   as pyBibleLibrary's dialogs (QFormLayout, QGroupBox) and its AutoStudy
   result (gui/autostudy_tab.py). */
.stdlg { display: flex; flex-direction: column; gap: 8px; }
.stform { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; }
.stform select, .stform input[type=search], .stform input[type=text], .stform input[type=date] { width: 100%; min-width: 0; }
.stlabel { white-space: nowrap; }
.stform > .stlabel { text-align: right; }
.stgroup { border: 1px solid var(--surface1); border-radius: 4px; margin: 0; padding: 4px 10px 8px; }
.stgroup legend { font-weight: 600; padding: 0 4px; }
.strow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.strow input[type=search] { flex: 1; min-width: 120px; }
.stcheck { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.stkinds { display: flex; flex-direction: column; gap: 2px; }
.stbooks { max-height: 180px; overflow: auto; border: 1px solid var(--surface1); background: var(--base); padding: 4px; margin-top: 6px;
  display: flex; flex-direction: column; gap: 1px; }
.stbook[hidden] { display: none; }
.sterror { color: var(--red); margin: 0; white-space: pre-wrap; }
.stpreview { min-height: 1.4em; }
.sthint { font-size: 11px; white-space: pre-wrap; margin: 0; }
.sttoc { min-height: 0; }
.dlgbody.sttoc { display: flex; flex-direction: column; }
.sttoclist { flex: 1; min-height: 200px; overflow: auto; border: 1px solid var(--surface1); background: var(--base); outline: none; }
.sttocrow { padding: 2px 6px; cursor: default; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sttocrow:hover { background: var(--surface0); }
.sttocrow.sel { background: var(--surface1); }
html:not([data-layout=desktop]) .sttocrow { padding: 8px 6px; }
/* The Study tab (autostudy_tab.py): a bold title 1.2 times the text, the
   sources' names as links, counts, a rule and the bibliography. */
.text .study-title { font-size: 1.2em; color: var(--text); margin: 4px 0 8px; }
.text .study-head { font-size: 1em; margin: 10px 0 2px; }
.text .study-head a { color: var(--link); text-decoration: none; }
.text .study-count { padding-left: 4px; white-space: pre-wrap; font-family: inherit; }
.text .study-sep { color: var(--verse-num); margin: 6px 0; overflow: hidden; white-space: nowrap; }
.text .study-bib-title { font-size: .9em; color: var(--text); margin: 10px 0 2px; }
.text .study-bib { font-size: .85em; color: var(--verse-num); }
.text .study-error { color: #FF6666; margin-top: 8px; }
.text .study-none, .text .study-wait { color: var(--verse-num); margin-top: 8px; }
/* Go to Reference on a phone or tablet: no room kept for the preview line
   until there is something in it, and the book tiles get the height. */
html:not([data-layout="desktop"]) .stdlg .stpreview:empty { display: none; }
html:not([data-layout="desktop"]) .stdlg .stgrid { max-height: 68vh; max-height: 74dvh; }
/* The field with ← → (the pane's history) and ✕ on its line. */
.stgorow { display: flex; align-items: center; gap: 6px; }
.stgorow input[type=search] { flex: 1; min-width: 0; width: auto; }
.btn.sthist { flex: none; margin: 0; padding: 0; min-width: 44px; min-height: 44px; font-size: 1.25rem; line-height: 1; }
.btn.sthist:disabled { opacity: .35; }
.btn.stx { font-size: 1.1rem; }
