/* study.christianreligion.ws - layout (look comes from cr-shared.css) */
body { margin: 0; }
.cr-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-left: max(20px, calc((100% - var(--cr-page-max)) / 2)); padding-right: max(20px, calc((100% - var(--cr-page-max)) / 2)); }
#menuBtn { display: none; }
.page { max-width: var(--cr-page-max); margin: 0 auto; padding: 20px; display: grid; gap: 24px; }
main, aside { min-width: 0; }
aside ul { list-style: none; margin: 0; padding: 0; }

/* Lesson list */
.lessons { list-style: none; margin: 1.2em 0; padding: 0; }
.lessons li a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--cr-box-line); border-radius: 6px;
  margin-bottom: 8px; text-decoration: none; color: var(--cr-ink); background: var(--cr-page); }
.lessons li a:hover { border-color: var(--cr-accent); }
.lessons .num { font-family: "ITC Blair", Calibri, Carlito, sans-serif; color: var(--cr-text); background: var(--cr-bar); border-radius: 50%;
  width: 1.8em; height: 1.8em; line-height: 1.8em; text-align: center; font-size: 0.9em; flex: 0 0 auto; }
.lessons .t { flex: 1 1 auto; }
.lessons .tick { color: #3c7a3f; font-weight: bold; opacity: 0; }
.lessons li.done .tick { opacity: 1; }
.note { color: #6f6f6f; font-size: 0.9em; }

/* Lesson page */
.crumb { font-size: 0.85em; color: #6f6f6f; margin: 0 0 0.4em; }
.crumb a { color: var(--cr-accent); text-decoration: none; }
.purpose { font-style: italic; color: #4a4a4a; margin-top: 0; }
.passage { border: 1px solid var(--cr-box-line); border-radius: 8px; background: var(--cr-page); padding: 14px 18px; margin: 1.2em 0; }
.passage .ref { font-family: "ITC Blair", Calibri, Carlito, sans-serif; font-size: 0.8em; letter-spacing: 0.04em; color: var(--cr-accent); margin-bottom: 0.4em; }
.passage .tr { color: #a8a8a8; margin-left: 6px; }
.passage .verses { margin: 0 0 0.8em; }
.passage .verses sup { font-size: 0.6em; color: #a8a8a8; margin-right: 2px; }
.passage .q { font-weight: bold; margin: 0 0 0.4em; }
.passage details { font-size: 0.95em; }
.passage summary { cursor: pointer; color: var(--cr-accent); }
.passage details p { margin: 0.5em 0 0; background: #f1eee5; border-radius: 6px; padding: 8px 12px; }
.summary { margin-top: 1.6em; }
.summary h2 { font-size: 1.1em; margin-bottom: 0.3em; }
.deeper { border-top: 1px solid var(--cr-box-line); padding-top: 0.8em; }
.nav { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 1.6em 0 0.5em; }
.donebtn { font-family: "ITC Blair", Calibri, Carlito, sans-serif; font-size: 0.85em; letter-spacing: 0.02em; background: var(--cr-bar); color: var(--cr-text);
  border: 0; border-radius: 6px; padding: 9px 16px; cursor: pointer; }
.donebtn.done { background: #3c7a3f; }
.prevnext { color: var(--cr-accent); text-decoration: none; }
.prevnext.next { margin-left: auto; }

@media (min-width: 768px) {
  .page { grid-template-columns: minmax(0, 1fr) 300px; }
  aside { position: sticky; top: calc(var(--cr-head-h) + 10px); align-self: start; max-height: calc(100vh - var(--cr-head-h) - 20px); overflow-y: auto; }
}
@media (max-width: 767.98px) {
  #menuBtn { display: inline-block; }
  aside { display: none; position: fixed; top: var(--cr-head-now, var(--cr-head-h)); left: 0; right: 0; z-index: 40; max-height: 70vh; overflow: hidden;
          background: var(--cr-page); border-bottom: 1px solid #ccc; box-shadow: 0 8px 24px #0004; padding: 0; margin: 0; }
  body.menu-open aside { display: flex; flex-direction: column; }
  aside .cr-box:first-child { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0; border: 0; }
  aside .cr-box:last-child { flex: 0 0 auto; margin: 0; border: 0; border-top: 1px solid var(--cr-box-line); }
  .nav .prevnext.next { margin-left: 0; }
}

/* Sidebar lesson list */
aside .cr-box-body li a { display: flex; gap: 6px; align-items: baseline; }
aside .cr-box-body .ln { color: #a8a8a8; flex: 0 0 auto; }
aside .cr-box-body .tick { margin-left: auto; color: #3c7a3f; font-weight: bold; opacity: 0; }
aside .cr-box-body li.done .tick { opacity: 1; }
aside .cr-box-body li { display: block; width: 100%; }
