/* Learning Core: "the study desk": tokens that replace the notice-board palette in identity.css (loaded before this file); a bookmark for a mark.
   Loaded after the suite kit and app.css; it replaces the notice-board look this app started from. */
:root {
  --ink: #14223a; --ink-soft: #2a3b57; --muted: #4a5a73;
  --paper: #eef2f8; --surface: #ffffff; --rule: #cdd7e6; --rule-soft: #e2e9f3; --field-border: #6b7d99;
  --brand: #1f4f94; --brand-deep: #14376b; --brand-tint: #e0eaf8;
  --saffron: #d98a04; --saffron-tint: #fcefd0; --saffron-deep: #7d4f00;
}
.logo::before { width: 1.05rem; height: 1.55rem; border-radius: 3px 3px 0 0; background: var(--brand); box-shadow: none; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%); }
header { border-top-color: var(--saffron); }
.nav-menu a[aria-current="page"] { background: var(--brand-tint); box-shadow: inset 0 -3px 0 var(--brand); }
.page-head::after { background: var(--brand); }

/* States are words first. Colour only helps. */
.st { border: 1px solid var(--rule); background: #fff; color: var(--ink); font-weight: 600; }
.st-valid { background: #e1f1e6; border-color: #8fc2a0; color: #0e3a28; }
.st-soon { background: var(--saffron-tint); border-color: #e1c26a; color: #4a3200; }
.st-expired, .st-overdue { background: #fbe9e6; border-color: #e0a99e; color: #6a1d12; }
.st-due { background: var(--brand-tint); border-color: #a8c0e4; color: var(--brand-deep); }
.st-waiting { background: #efe9f7; border-color: #c9b9e4; color: #3d2766; }
.st-none { background: #f3f5f9; color: var(--muted); }

.matrix { border-collapse: collapse; font-size: .88rem; }
.matrix th, .matrix td { border: 1px solid var(--rule); padding: .35rem .5rem; text-align: center; vertical-align: middle; }
.matrix th:first-child, .matrix td:first-child { text-align: left; position: sticky; left: 0; background: #fff; white-space: nowrap; }
.matrix thead th { background: var(--brand-tint); font-size: .8rem; }
.matrix td .badge { font-size: .72rem; padding: .1rem .45rem; }

.lesson { max-width: 70ch; font-size: 1.05rem; line-height: 1.65; }
.lesson h2 { margin-top: 1.4rem; }
.steps-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1rem; padding: 0; list-style: none; }
.steps-row li { border: 1.5px solid var(--rule); border-radius: 999px; padding: .2rem .75rem; font-size: .85rem; background: #fff; }
.steps-row li.on { border-color: var(--brand); background: var(--brand-tint); font-weight: 600; }
.quiz .q { border: 1px solid var(--rule); border-radius: 12px; padding: 1rem 1.1rem; background: #fff; margin-bottom: .9rem; }
.quiz legend { font-weight: 600; padding: 0 .3rem; }
.quiz label.opt { display: flex; gap: .6rem; align-items: flex-start; padding: .4rem .2rem; cursor: pointer; }
.stats .stat strong { font-family: var(--font-display); }

.certificate { background: #fff; border: 2px solid var(--brand-deep); outline: 6px double var(--saffron); outline-offset: -14px; padding: 3rem 2.5rem; text-align: center; max-width: 46rem; margin: 1rem auto; }
.certificate h1 { font-size: 2.2rem; margin: .2rem 0 1rem; }
.certificate .who-name { font-family: var(--font-display); font-size: 2rem; margin: .4rem 0; }
.certificate .ref { font-family: ui-monospace, monospace; letter-spacing: .05em; }
@media print { header, footer, .no-print, .demo-bar { display: none !important; } body { background: #fff; } .certificate { border-color: #000; outline-color: #000; } }
