/* Lubrigard On-Demand Training portal.
   Same tokens as the rest of the modernised site (navy #0a2540, orange #e87722,
   Poppins) but laid out for one job: find the next video and watch it. */

:root{
	--navy:#0a2540; --navy-2:#13375c; --orange:#e87722; --orange-dk:#c8620f;
	--ink:#1b2733; --mut:#6b7a89; --line:#e2e8ee; --bg:#f4f6f9;
	--ok:#1e9e5a; --ok-bg:#e7f6ed; --bad:#c0392b;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);
     font:16px/1.6 Poppins,Helvetica,Arial,sans-serif}
h1,h2,h3{font-weight:600;letter-spacing:-.015em;margin:0}
a{color:var(--orange-dk)}
img{max-width:100%}

.wrap{max-width:900px;margin:0 auto;padding:0 20px}

/* For text that only a screen reader needs - the state of a lesson's tick is
   colour and a shape, which says nothing out loud on its own. */
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
    clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---- chrome ---------------------------------------------------------- */
.lg-top{background:var(--navy);border-bottom:3px solid var(--orange)}
.lg-top .wrap{display:flex;align-items:center;height:64px}
.lg-logo{display:flex;align-items:center}
.lg-logo img{height:30px;width:auto;filter:brightness(0) invert(1)}
.lg-out{margin-left:auto;color:#fff;opacity:.8;text-decoration:none;font-size:14px}
.lg-out:hover{opacity:1;color:#fff;text-decoration:underline}

main{min-height:60vh;padding:36px 0 72px}

.lg-foot{border-top:1px solid var(--line);background:#fff;padding:26px 0 34px}
.lg-foot p{margin:0 0 6px;font-size:13.5px;color:var(--mut);max-width:70ch}
.lg-foot .c{color:#9aa7b4;font-size:12.5px}

/* ---- page headings --------------------------------------------------- */
.lg-eyebrow{display:block;font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;
            color:var(--orange);font-weight:600;margin:0 0 10px}
h1{font-size:30px;line-height:1.2;color:var(--navy)}
.lg-lede{color:var(--mut);font-size:15.5px;margin:10px 0 0;max-width:62ch}
.lg-back{display:inline-block;font-size:13.5px;text-decoration:none;margin:0 0 18px}
.lg-back:hover{text-decoration:underline}

/* ---- notices --------------------------------------------------------- */
.lg-note{background:#fff;border:1px solid var(--line);border-left:3px solid var(--ok);
         border-radius:8px;padding:14px 18px;margin:0 0 24px;font-size:14.5px}
.lg-note.bad{border-left-color:var(--bad)}
.lg-note p{margin:0}

/* ---- sign in --------------------------------------------------------- */
.lg-signin{background:#fff;border:1px solid var(--line);border-radius:12px;
           padding:38px 34px;max-width:520px;margin:10px auto 0;
           box-shadow:0 10px 30px rgba(10,37,64,.07)}
.lg-signin h1{font-size:25px}
.lg-signin p{color:var(--mut);font-size:15px;margin:12px 0 22px;max-width:46ch}
.lg-signin label{display:block;font-size:12.5px;font-weight:600;color:var(--mut);
                 letter-spacing:.03em;margin:0 0 6px}
.lg-signin input[type=email]{width:100%;border:1px solid #ccd4dc;border-radius:7px;
       padding:13px 14px;font:inherit;font-size:16px;background:#fff;color:var(--ink)}
.lg-signin input[type=email]:focus{outline:2px solid var(--orange);outline-offset:-1px;
       border-color:var(--orange)}
.lg-signin .btn{width:100%;margin-top:16px;padding:14px;font-size:15px}
.lg-signin .fine{font-size:13px;color:var(--mut);margin:18px 0 0}

.lg-sent{text-align:center;padding:48px 34px}
.lg-sent .mark{width:54px;height:54px;border-radius:50%;background:var(--ok-bg);color:var(--ok);
      display:flex;align-items:center;justify-content:center;margin:0 auto 20px;font-size:26px}
.lg-sent h1{font-size:24px}
.lg-sent p{margin:14px auto 0;max-width:42ch}
/* .lg-signin .fine sets "margin:18px 0 0" and outweighs ".lg-sent p", which
   kills the auto side margins - the block then sits hard left while its text
   centres inside it. Same specificity, later in the file, so this wins. */
.lg-sent .fine{margin:18px auto 0}

/* ---- buttons --------------------------------------------------------- */
.btn{display:inline-block;border:0;font:inherit;font-size:14.5px;font-weight:600;
     padding:12px 22px;border-radius:7px;cursor:pointer;text-decoration:none;
     line-height:1.3;text-align:center}
.btn.pri{background:var(--orange);color:#fff}
.btn.pri:hover{background:var(--orange-dk);color:#fff}
.btn.sec{background:#fff;color:var(--navy);border:1px solid #ccd4dc}
.btn.sec:hover{border-color:var(--navy);color:var(--navy)}
.btn.done{background:var(--ok-bg);color:var(--ok);cursor:default}
.btn[disabled]{opacity:.55;cursor:not-allowed}

/* ---- course cards (portal home) -------------------------------------- */
.lg-courses{display:grid;gap:18px;margin:26px 0 0}
.lg-course{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;
           box-shadow:0 8px 24px rgba(10,37,64,.06)}
.lg-course-h{display:flex;align-items:flex-start;gap:16px;padding:22px 24px 0}
.lg-code{flex:none;background:var(--navy);color:#fff;font-size:11.5px;font-weight:600;
         letter-spacing:.06em;padding:5px 10px;border-radius:5px;margin-top:3px}
.lg-course h2{font-size:19px;color:var(--navy);line-height:1.3}
.lg-course .sub{color:var(--mut);font-size:14px;margin:5px 0 0;max-width:60ch}
.lg-course-b{padding:18px 24px 24px}
.lg-meta{display:flex;flex-wrap:wrap;gap:10px 26px;margin:0 0 16px;font-size:13px;color:var(--mut)}
.lg-meta b{display:block;font-size:11px;letter-spacing:.1em;text-transform:uppercase;
           color:#9aa7b4;font-weight:600;margin:0 0 2px}
.lg-course-f{display:flex;align-items:center;gap:16px;flex-wrap:wrap}

/* progress */
.lg-prog{flex:1 1 220px;min-width:200px}
.lg-prog-bar{height:8px;border-radius:4px;background:#e9eef4;overflow:hidden}
.lg-prog-bar i{display:block;height:100%;background:var(--orange);border-radius:4px}
.lg-prog-bar.full i{background:var(--ok)}
.lg-prog-txt{font-size:12.5px;color:var(--mut);margin:7px 0 0}

/* locked */
.lg-course.locked{opacity:.92}
.lg-course.locked .lg-course-h{padding-bottom:0}
.lg-locked{background:#fbfcfd;border-top:1px solid var(--line);padding:16px 24px;
           font-size:14px;color:var(--mut)}
.lg-locked b{color:var(--ink);font-weight:600}

/* ---- lesson list ------------------------------------------------------ */
.lg-module{margin:30px 0 0}
.lg-module h2{font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:var(--mut);
              font-weight:600;margin:0 0 10px;padding:0 4px}
.lg-list{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.lg-row{display:flex;align-items:center;gap:16px;padding:15px 20px;
        border-bottom:1px solid var(--line);text-decoration:none;color:inherit}
.lg-row:last-child{border-bottom:0}
.lg-row:hover{background:#fafbfd}
.lg-row .tick{flex:none;width:26px;height:26px;border-radius:50%;background:#eef1f4;
      border:1px solid #dde3ea;display:flex;align-items:center;justify-content:center}
/* An unfinished lesson gets an empty ring. A greyed-out tick reads as "done,
   but dimmed", which is the opposite of what it means. */
.lg-row .tick svg{display:none;width:14px;height:14px;stroke:#fff;stroke-width:2.6;fill:none;
      stroke-linecap:round;stroke-linejoin:round}
.lg-row.done .tick{background:var(--ok);border-color:var(--ok)}
.lg-row.done .tick svg{display:block}
.lg-row .nm{flex:1;font-size:15px;color:var(--navy);font-weight:500}
.lg-row.done .nm{color:var(--mut);font-weight:400}
.lg-row .dur{flex:none;font-size:12.5px;color:var(--mut);font-variant-numeric:tabular-nums}
.lg-row .go{flex:none;font-size:18px;color:#c3ccd6}
.lg-row:hover .go{color:var(--orange)}
.lg-row.current{background:#fff7f1}
.lg-row.current .nm{color:var(--orange-dk);font-weight:600}

/* ---- video page ------------------------------------------------------- */
.lg-video{background:#000;border-radius:12px;overflow:hidden;position:relative;
          padding-top:56.25%;box-shadow:0 14px 40px rgba(10,37,64,.18)}
.lg-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.lg-lesson-h{margin:0 0 20px}
.lg-lesson-h h1{font-size:25px}
.lg-lesson-h .where{font-size:13px;color:var(--mut);margin:8px 0 0}
.lg-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:26px 0 0;
            padding:22px 0 0;border-top:1px solid var(--line)}
.lg-actions .spacer{flex:1}
.lg-done-note{display:flex;align-items:center;gap:9px;color:var(--ok);font-size:14px;font-weight:500}
.lg-done-note svg{width:18px;height:18px;stroke:var(--ok);stroke-width:2.6;fill:none;
                  stroke-linecap:round;stroke-linejoin:round}
.lg-nav{display:flex;gap:10px}

/* ---- certificate ------------------------------------------------------ */
.lg-cert{background:#fff;border:1px solid var(--line);border-top:3px solid var(--ok);
         border-radius:12px;padding:26px 28px;margin:26px 0 0;
         box-shadow:0 8px 24px rgba(10,37,64,.06)}
.lg-cert h2{font-size:19px;color:var(--navy)}
.lg-cert p{color:var(--mut);font-size:14.5px;margin:9px 0 18px;max-width:58ch}

.lg-empty{background:#fff;border:1px solid var(--line);border-radius:12px;
          padding:46px 28px;text-align:center;color:var(--mut)}
.lg-empty h2{font-size:19px;color:var(--navy);margin:0 0 10px}
.lg-empty p{margin:0 auto;max-width:46ch;font-size:14.5px}

@media(max-width:620px){
	h1{font-size:25px}
	main{padding:26px 0 56px}
	.lg-signin{padding:30px 22px}
	.lg-course-h{flex-wrap:wrap;gap:10px}
	.lg-row{padding:14px 15px;gap:12px}
	.lg-row .dur{display:none}
	.lg-actions{flex-direction:column;align-items:stretch}
	.lg-actions .spacer{display:none}
	.lg-nav{display:grid;grid-template-columns:1fr 1fr}
}
