/* ===========================================================
   Life Stream 101 — styles for the enrolment banner, modal and
   the progress/admin pages. Pairs with course-api.js.
   Tints assume the course's teal accent; tweak --ls-accent to match
   the rebuilt site's palette.
   =========================================================== */
:root { --ls-accent: #0e7c86; --ls-accent-dark: #0a5b63; --ls-ink: #1c2b33; --ls-line: #e4eaed; }

/* enrol banner pinned to the bottom */
.ls-enrol-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 60;
  display: flex; align-items: center; gap: 14px;
  background: #0e2a2d; color: #eafdff; padding: 12px 14px 12px 20px;
  border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.28);
  max-width: calc(100% - 28px); font-size: 14.5px;
}
.ls-enrol-bar span { line-height: 1.35; }
.ls-enrol-bar .ls-enrol-open {
  background: var(--ls-accent); color: #fff; border: 0; border-radius: 9px;
  padding: 9px 16px; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.ls-enrol-bar .ls-enrol-open:hover { background: #14939f; }
.ls-enrol-bar .ls-enrol-dismiss {
  background: transparent; color: #9fdfe5; border: 0; font-size: 22px; line-height: 1;
  cursor: pointer; padding: 0 4px;
}

/* modal */
.ls-modal {
  position: fixed; inset: 0; z-index: 70; background: rgba(8,22,25,.55);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  backdrop-filter: blur(2px); animation: ls-fade .18s ease;
}
@keyframes ls-fade { from { opacity: 0; } to { opacity: 1; } }
.ls-card {
  background: #fff; width: 100%; max-width: 420px; border-radius: 18px;
  padding: 26px 26px 22px; box-shadow: 0 30px 80px rgba(0,0,0,.32); color: var(--ls-ink);
}
.ls-card h3 { margin: 0 0 8px; font-size: 22px; }
.ls-card > p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.55; color: #4a5a62; }
.ls-card label { display: block; font-size: 13px; font-weight: 700; margin: 0 0 12px; color: #33454d; }
.ls-card label span { font-weight: 500; color: #8a99a0; }
.ls-card input {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px; font-size: 15px;
  border: 1.5px solid var(--ls-line); border-radius: 10px; box-sizing: border-box;
}
.ls-card input:focus { outline: none; border-color: var(--ls-accent); }
.ls-err { color: #c0392b; font-size: 13.5px; margin: 4px 0 0; }
.ls-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.ls-actions button { border-radius: 10px; padding: 11px 18px; font-weight: 700; font-size: 14px; cursor: pointer; border: 0; }
.ls-later { background: #eef2f4; color: #4a5a62; }
.ls-save { background: var(--ls-accent); color: #fff; }
.ls-save:hover { background: #14939f; }
.ls-save:disabled { opacity: .6; cursor: default; }

/* toast (reused name from course.css; harmless if duplicated) */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px);
  background: #11343a; color: #eafdff; padding: 12px 18px; border-radius: 12px;
  font-size: 14.5px; font-weight: 600; opacity: 0; transition: all .35s ease; z-index: 80;
  box-shadow: 0 12px 36px rgba(0,0,0,.3);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- progress + admin pages ---- */
.ls-page { max-width: 880px; margin: 0 auto; padding: 40px 20px 80px; }
.ls-page h1 { font-size: 30px; margin: 0 0 6px; }
.ls-page .sub { color: #5a6a72; margin: 0 0 28px; }
.ls-prog-grid { display: grid; gap: 14px; }
.ls-ep {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  border: 1.5px solid var(--ls-line); border-radius: 14px; padding: 16px 18px; background: #fff;
}
.ls-ep .num { width: 38px; height: 38px; border-radius: 10px; background: #eef6f7; color: var(--ls-accent);
  display: flex; align-items: center; justify-content: center; font-weight: 800; }
.ls-ep.done .num { background: var(--ls-accent); color: #fff; }
.ls-ep h3 { margin: 0 0 8px; font-size: 16px; }
.ls-ep .track { height: 8px; background: #eef2f4; border-radius: 999px; overflow: hidden; }
.ls-ep .track i { display: block; height: 100%; background: var(--ls-accent); border-radius: 999px; transition: width .5s ease; }
.ls-ep .pc { font-weight: 800; color: var(--ls-accent); min-width: 48px; text-align: right; }
.ls-answers { margin-top: 10px; font-size: 13.5px; color: #54646c; }
.ls-answers details summary { cursor: pointer; color: var(--ls-accent); font-weight: 600; }
.ls-answers li { margin: 6px 0; }

table.ls-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.ls-table th, table.ls-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ls-line); }
table.ls-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #7a8a92; }
table.ls-table .mini { display: inline-block; width: 90px; height: 7px; background: #eef2f4; border-radius: 999px; vertical-align: middle; overflow: hidden; }
table.ls-table .mini i { display: block; height: 100%; background: var(--ls-accent); }
.ls-btn { background: var(--ls-accent); color: #fff; border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 700; cursor: pointer; }
.ls-input { padding: 10px 12px; border: 1.5px solid var(--ls-line); border-radius: 10px; font-size: 14px; }
