/* Certify Learning Portal — brand palette matches certify.consulting and the
   proposal PDFs: navy #0a2e4a / #10456e, steel #2b7bb9, amber #f59e0b. */

:root {
  --navy-deep: #0a2e4a;
  --navy: #10456e;
  --steel: #2b7bb9;
  --amber: #f59e0b;
  --ink: #1f2933;
  --slate: #5b6b7b;
  --hairline: #e3e8ee;
  --wash: #f6f9fc;
  --ok: #1a7f4b;
  --warn: #b45309;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--wash);
  line-height: 1.55;
}

h1, h2, h3, .wordmark, .btn, th {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: var(--steel); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- shell ---------- */
header.bar {
  background: var(--navy-deep);
  color: #fff;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.wordmark { font-weight: 800; letter-spacing: .28em; font-size: 15px; }
.wordmark .dot { color: var(--amber); }
header.bar nav { margin-left: auto; display: flex; gap: 18px; align-items: center; }
header.bar a { color: #c9d6e6; font-size: 14px; }
header.bar a:hover, header.bar a.on { color: #fff; }

main { max-width: 1060px; margin: 0 auto; padding: 26px 22px 70px; }

.card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 18px;
}

h1 { font-size: 24px; margin: 0 0 6px; color: var(--navy); }
h2 { font-size: 17px; margin: 0 0 12px; color: var(--navy); }
.sub { color: var(--slate); margin: 0 0 20px; }

/* ---------- controls ---------- */
.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { background: var(--steel); text-decoration: none; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--hairline); }
.btn.small { padding: 6px 12px; font-size: 13px; }

label { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 5px; color: var(--navy); }
input, select, textarea {
  width: 100%; padding: 10px 12px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--hairline); border-radius: 6px; background: #fff; color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--steel); outline-offset: -1px; }

.msg { padding: 11px 14px; border-radius: 6px; font-size: 14px; margin: 14px 0; }
.msg.err { background: #fdf1f1; color: #92211d; border: 1px solid #f3d0cf; }
.msg.ok  { background: #eef7f1; color: var(--ok); border: 1px solid #cfe8da; }
.msg.info{ background: var(--wash); color: var(--slate); border: 1px solid var(--hairline); }

/* ---------- progress ---------- */
.meter { height: 8px; background: var(--hairline); border-radius: 99px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--steel); }
.meter.done > i { background: var(--ok); }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.course-card { display: flex; flex-direction: column; gap: 10px; }
.course-card .title { font-weight: 700; color: var(--navy); font-family: "Inter", sans-serif; }
.meta { font-size: 13px; color: var(--slate); }

.pill {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 99px;
}
.pill.done { background: #e6f4ec; color: var(--ok); }
.pill.live { background: #fdf3e3; color: var(--warn); }
.pill.wait { background: var(--wash); color: var(--slate); border: 1px solid var(--hairline); }

/* ---------- lists & tables ---------- */
ul.lessons { list-style: none; margin: 0; padding: 0; }
ul.lessons li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--hairline);
}
ul.lessons li:last-child { border-bottom: 0; }
ul.lessons .num {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 99px; background: var(--wash);
  color: var(--slate); font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
ul.lessons li.done .num { background: var(--ok); color: #fff; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: #fff; background: var(--navy); padding: 9px 11px; font-weight: 700;
}
td { padding: 9px 11px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
tbody tr:nth-child(even) { background: var(--wash); }

/* ---------- video + transcript ---------- */
.player { position: relative; padding-top: 56.25%; background: #000; border-radius: 8px; overflow: hidden; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

details.transcript { margin-top: 14px; border: 1px solid var(--hairline); border-radius: 8px; background: #fff; }
details.transcript > summary {
  cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--navy);
  font-family: "Inter", sans-serif; font-size: 14px;
}
details.transcript .body { padding: 0 16px 16px; white-space: pre-wrap; color: var(--ink); }

.live-card { background: #fffdf6; border: 1px solid #f0dcae; border-radius: 8px; padding: 20px 22px; }

.cert-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.cert-row:last-child { border-bottom: 0; }
.serial { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 12px; color: var(--slate); }

.center-wrap { max-width: 420px; margin: 8vh auto; }
.hide { display: none !important; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
