/* quran-tools.css - Quick-Jump tools for the 15 Line Quran index page.
   Every class starts with "qsr-" so it can never clash with the site's style.css. */

.qsr-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid #cfe3e1;
  border-radius: 6px;
  background: #f4f9f9;
}
.qsr-tools[hidden] { display: none; }

.qsr-field { display: flex; flex-direction: column; flex: 0 1 210px; }
.qsr-field-search { flex: 1 1 280px; }

.qsr-label {
  display: block;
  margin: 0 0 4px;
  padding: 0;
  line-height: 18px;
  height: 18px;
  font-size: 13px;
  font-weight: bold;
  color: #077770;           /* same teal as the page heading */
}

.qsr-input,
.qsr-select {
  width: 100%;
  height: 44px;             /* comfortable tap size on phones */
  min-height: 44px;
  box-sizing: border-box;
  margin: 0 !important;     /* the site theme may add margins to inputs/selects - this keeps all boxes level */
  padding: 8px 12px;
  line-height: normal;
  vertical-align: top;
  float: none;
  font-size: 16px;          /* 16px stops iPhones zooming in on focus */
  color: #222;
  background: #fff;
  border: 1px solid #9cc5c1;
  border-radius: 4px;
}
.qsr-input:focus,
.qsr-select:focus {
  outline: 2px solid #077770;
  outline-offset: 1px;
}

.qsr-status {
  flex: 1 1 100%;
  min-height: 1.2em;
  margin: 0;
  font-size: 14px;
  color: #555;
}

.qsr-empty {
  padding: 14px;
  font-weight: bold;
  color: #b91c1c;
  text-align: center;
}

/* Used by the script to hide rows - !important so the site's table CSS cannot undo it */
.qsr-hide { display: none !important; }

@media (max-width: 600px) {
  .qsr-field,
  .qsr-field-search { flex: 1 1 100%; }
}

/* ---- Continue Reading banner + highlighted row ---- */
.qsr-resume {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 12px;
  padding: 12px 14px;
  color: #5c4300;
  background: #fff8e1;
  border: 1px solid #f0d58a;
  border-radius: 6px;
}
.qsr-resume[hidden] { display: none; }
.qsr-resume-text { flex: 1 1 220px; font-size: 15px; }
.qsr-resume-btn {
  display: inline-block;
  padding: 10px 18px;
  font-weight: bold;
  text-decoration: none;
  color: #fff !important;
  background: #077770;
  border-radius: 4px;
}
.qsr-resume-btn:hover { background: #05605a; }
.qsr-resume-clear {
  padding: 6px;
  font-size: 13px;
  color: #5c4300;
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}
#custom tr.qsr-last td { background: #fff8e1 !important; }

/* Banner as shown on the reader pages (under the qhead.html header) */
.qsr-resume-page {
  max-width: 760px;
  margin: 10px auto;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* ---- Teacher links + FAQ at the bottom of the index page ---- */
.qsr-links, .qsr-faq {
  margin: 24px 0 0;
  padding: 16px 18px;
  background: #f4f9f9;
  border: 1px solid #cfe3e1;
  border-radius: 6px;
}
.qsr-links h2, .qsr-faq h2 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #077770;
}
.qsr-links p { margin: 0 0 8px; }
.qsr-links ul { margin: 0; padding-left: 20px; }
.qsr-links li { margin: 4px 0; }
.qsr-faq-item { margin: 0 0 14px; padding: 0 0 12px; border-bottom: 1px solid #dcebe9; }
.qsr-faq-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.qsr-faq-item h3 { margin: 0 0 4px; font-size: 16px; color: #222; }
.qsr-faq-item p { margin: 0; }
