/* Resource Hub LMS design system (static design site, Oct 2026).
   Brand: navy ink, one blue accent, cyan only inside the brand gradient.
   Type: Outfit (display) and Geist (body). Radius 10 / 18 / 28. Light only.
   Status is a dot plus text, never a pill. */

:root {
  --navy: #0b1640;
  --navy-2: #141f52;
  --blue: #1560f5;
  --blue-deep: #0d47c4;
  --blue-soft: #e8efff;
  --cyan: #12c3f0;
  --brand-gradient: linear-gradient(100deg, #1560f5 0%, #12c3f0 100%);
  --canvas: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #dfe5ee;
  --line-strong: #c5cfdc;
  --ink: #16202c;
  --body: #2b3645;
  --muted: #5c6b7d;
  --faint: #8b98a8;
  --green: #178a55;
  --green-soft: #e4f5ec;
  --amber: #b25d09;
  --amber-soft: #fff1df;
  --red: #d33b35;
  --red-soft: #fde9e8;
  --purple: #6a4ee0;
  --purple-soft: #efeaff;
  --teal: #0f8f9a;
  --teal-soft: #e2f6f8;
  --r-btn: 0;
  --r-input: 4px;
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 16px;
  --shadow-1: 0 1px 2px rgba(11, 22, 64, 0.06), 0 6px 18px rgba(11, 22, 64, 0.06);
  --shadow-2: 0 10px 30px rgba(11, 22, 64, 0.12);
  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --sans: "Geist", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --sidebar-w: 236px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  background: var(--canvas);
  padding-bottom: 30px;
}
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
h4 { font-size: 14px; }
p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.ink { color: var(--ink); }
.strong { font-weight: 600; color: var(--ink); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.hide { display: none !important; }

/* ---------- Icons (Phosphor web) ---------- */
i.ph { font-size: 1.2em; line-height: 1; vertical-align: -0.2em; }

/* ---------- App shell: ink sidebar + content ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  background: var(--navy);
  color: #d7dcea;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; }
.sidebar .brand .mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--brand-gradient);
  display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 700; font-size: 14px; flex: 0 0 auto;
}
.sidebar .brand .name { font-family: var(--display); font-weight: 600; color: #fff; font-size: 15px; line-height: 1.1; }
.sidebar .brand .tenant { font-size: 11.5px; color: #93a0c4; }
.sidebar nav { padding: 6px 10px; flex: 1; overflow: auto; }
.sidebar .group { font-size: 11px; letter-spacing: 0.02em; color: #7d89b0; padding: 14px 10px 6px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px;
  color: #cbd3ea; padding: 8px 10px; border-radius: var(--r-sm); font-size: 13.5px;
}
.sidebar nav a:hover { background: rgba(255,255,255,0.07); color: #fff; text-decoration: none; }
.sidebar nav a.active { background: rgba(255,255,255,0.12); color: #fff; }
.sidebar nav a i { font-size: 17px; opacity: 0.9; }
.sidebar nav a .count { margin-left: auto; font-size: 11.5px; color: #93a0c4; }
.sidebar .foot { padding: 12px 14px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.sidebar .foot .avatar { background: #2c3a78; color: #fff; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--blue-soft); color: var(--navy); display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: 0 0 auto; }
.avatar.sm { width: 24px; height: 24px; font-size: 10.5px; }

.main { min-width: 0; }
.topbar {
  height: 56px; display: flex; align-items: center; gap: 14px; padding: 0 28px;
  background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.topbar .crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.topbar .crumbs b { color: var(--ink); font-weight: 600; }
.topbar .spacer { flex: 1; }
.search { display: flex; align-items: center; gap: 8px; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 10px; width: 280px; color: var(--muted); font-size: 13px; }
.search kbd { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--faint); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }

.page { padding: 36px 40px 80px; max-width: 1320px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.page-head p { margin-top: 4px; color: var(--muted); max-width: 64ch; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  padding: 9px 14px; border-radius: var(--r-btn); font-weight: 500; font-size: 13.5px; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-deep); }
.btn.ink { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { background: rgba(11,22,64,0.05); color: var(--ink); }
.btn.sm { padding: 5px 9px; font-size: 12.5px; }
.btn.lg { padding: 11px 18px; font-size: 15px; }
.btn.danger { color: var(--red); border-color: #f1c3c0; }
.btn.ai { border-color: #cfc4ff; color: var(--purple); background: #fbfaff; }
.btn.ai:hover { background: var(--purple-soft); }
.btn i { font-size: 16px; }

/* ---------- Cards and panels ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.card.pad { padding: 24px; }
.card .card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.card .card-head h3 { font-size: 15px; }
.card .card-body { padding: 24px; }
.grid { display: grid; gap: 24px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid.side { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.span2 { grid-column: span 2; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.gap-sm { gap: 6px; }
.mt { margin-top: 16px; } .mt-lg { margin-top: 28px; } .mb { margin-bottom: 16px; } .mb-sm { margin-bottom: 8px; }

/* Stat tiles: big number, small label */
.stat { padding: 18px 20px; }
.stat .label { font-size: 12.5px; color: var(--muted); }
.stat .value { font-family: var(--display); font-size: 30px; font-weight: 600; color: var(--ink); line-height: 1.1; margin-top: 4px; letter-spacing: -0.02em; }
.stat .delta { font-size: 12.5px; margin-top: 6px; color: var(--muted); }
.stat .delta.up { color: var(--green); } .stat .delta.down { color: var(--red); }

/* ---------- Status: a dot and a word ---------- */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--body); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: 0 0 auto; }
.status.ok::before, .status.published::before, .status.approved::before, .status.passed::before, .status.complete::before { background: var(--green); }
.status.warn::before, .status.review::before, .status.due::before, .status.in-progress::before { background: var(--amber); }
.status.bad::before, .status.failed::before, .status.expired::before, .status.blocked::before { background: var(--red); }
.status.ai::before, .status.draft-ai::before { background: var(--purple); }
.status.info::before, .status.running::before { background: var(--blue); }
.status.draft::before { background: var(--faint); }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fbfcfe; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .who { display: flex; align-items: center; gap: 10px; }
.table .who .avatar { width: 28px; height: 28px; font-size: 11px; }
.table .who small { display: block; color: var(--muted); font-size: 12px; }
.card > .table th:first-child, .card > .table td:first-child { padding-left: 20px; }
.card > .table th:last-child, .card > .table td:last-child { padding-right: 20px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink); }
.field .help { font-size: 12.5px; color: var(--muted); }
.input, select.input, textarea.input {
  font: inherit; font-size: 13.5px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-input); padding: 9px 12px; width: 100%;
}
.input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(21,96,245,0.15); }
textarea.input { min-height: 90px; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; }
.check input { margin-top: 3px; accent-color: var(--blue); }
.switch { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; cursor: pointer; }
.switch .track { width: 34px; height: 20px; border-radius: 10px; background: var(--line-strong); position: relative; transition: background .15s; flex: 0 0 auto; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch.on .track { background: var(--blue); }
.switch.on .track::after { left: 17px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-btn); overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 6px 12px; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--navy); color: #fff; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); }
.tabs button, .tabs a {
  border: 0; background: none; padding: 10px 14px; font-size: 13.5px; color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none;
}
.tabs button.on, .tabs a.on { color: var(--ink); border-bottom-color: var(--blue); font-weight: 500; }
.tab-panel { display: none; }
.tab-panel.on { display: block; }

/* ---------- Progress ---------- */
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--blue); border-radius: 3px; }
.bar.green > span { background: var(--green); }
.bar.amber > span { background: var(--amber); }
.bar.thick { height: 10px; border-radius: 5px; }

/* ---------- Lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .icon { width: 34px; height: 34px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: 17px; flex: 0 0 auto; }
.list .icon.purple { background: var(--purple-soft); color: var(--purple); }
.list .icon.green { background: var(--green-soft); color: var(--green); }
.list .icon.amber { background: var(--amber-soft); color: var(--amber); }
.list .icon.teal { background: var(--teal-soft); color: var(--teal); }
.list .icon.red { background: var(--red-soft); color: var(--red); }
.list .icon.navy { background: var(--navy); color: #fff; }
.list .text { flex: 1; min-width: 0; }
.list .text small { display: block; color: var(--muted); font-size: 12.5px; }

/* ---------- Callouts ---------- */
.note { border-left: 3px solid var(--blue); background: var(--blue-soft); padding: 10px 14px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 13.5px; }
.note.ai { border-color: var(--purple); background: var(--purple-soft); }
.note.warn { border-color: var(--amber); background: var(--amber-soft); }
.note.ok { border-color: var(--green); background: var(--green-soft); }
.note.bad { border-color: var(--red); background: var(--red-soft); }
.note b { color: var(--ink); }

/* Token estimate line, shown before any AI action runs */
.tokens { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.tokens i { color: var(--purple); }
.tokens b { color: var(--ink); font-weight: 600; }

/* ---------- Drawer and modal ---------- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 30px; width: 440px; background: var(--surface);
  border-left: 1px solid var(--line); box-shadow: var(--shadow-2); z-index: 40;
  transform: translateX(100%); transition: transform .2s ease; display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer .drawer-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer .drawer-body { padding: 20px; overflow: auto; flex: 1; }
.drawer .drawer-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
.scrim { position: fixed; inset: 0; background: rgba(11,22,64,0.25); z-index: 39; display: none; }
.scrim.open { display: block; }

/* ---------- Design site bar (dev only, not part of the product) ---------- */
.ds-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #16202c; color: #c9d2de; font-size: 12px; padding: 6px 14px;
  display: flex; align-items: center; gap: 14px; opacity: 0.95;
}
.ds-bar a { color: #fff; }
.ds-bar .ds-tag { background: var(--purple); color: #fff; padding: 1px 7px; border-radius: 4px; font-weight: 600; }
.ds-bar .sp { flex: 1; }
.ds-bar select { background: #22303f; color: #fff; border: 1px solid #3a4a5e; border-radius: 6px; padding: 3px 6px; font: inherit; }

/* ---------- Misc ---------- */
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; color: var(--ink); }
.tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; background: var(--surface-2); }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.thumb { border-radius: var(--r-sm); background: linear-gradient(135deg, #e6ecf6, #cfd9ea); aspect-ratio: 16/9; display: grid; place-items: center; color: var(--navy); font-family: var(--display); font-weight: 600; }
.thumb.video { background: #0f1b3d; color: #fff; }
.thumb.gradient { background: var(--brand-gradient); color: #fff; }
.lang { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }
.lang .l { font-family: var(--mono); font-size: 11px; color: var(--ink); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }
.lang .l.ok { border-color: #bfe3cf; color: var(--green); }
.lang .l.stale { border-color: #f3d4ad; color: var(--amber); }
.lang .l.draft { border-color: #d7cdfb; color: var(--purple); }

.diff { font-family: var(--mono); font-size: 12.5px; line-height: 1.5; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.diff div { padding: 3px 12px; white-space: pre-wrap; }
.diff .del { background: #fde9e8; color: #8d2b26; }
.diff .add { background: #e4f5ec; color: #145a3a; }
.diff .ctx { color: var(--muted); }

.code { font-family: var(--mono); font-size: 12px; line-height: 1.55; background: #0f1b3d; color: #dbe4ff; padding: 14px 16px; border-radius: var(--r-sm); overflow: auto; white-space: pre; }

/* ---------- Studio path: the steps from content to course, on every studio screen ---------- */
.studio-path { display: flex; gap: 0; border: 1px solid var(--line); background: var(--surface); margin-bottom: 32px; }
.studio-path a { flex: 1; display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: var(--muted); border-right: 1px solid var(--line); min-width: 0; }
.studio-path a:last-child { border-right: 0; }
.studio-path a:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.studio-path .n { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line-strong); font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--muted); flex: 0 0 auto; }
.studio-path a.done .n { background: var(--green); border-color: var(--green); color: #fff; }
.studio-path a.now { color: var(--ink); background: var(--blue-soft); }
.studio-path a.now .n { background: var(--blue); border-color: var(--blue); color: #fff; }
.studio-path .t { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.studio-path .t b { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio-path .t span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb .studio-path { margin: 0; border-left: 0; border-right: 0; border-top: 0; }
.cb .studio-path a { padding: 10px 18px; }

.studio-nav { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.studio-nav .crumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); flex: 1; min-width: 0; flex-wrap: wrap; }
.studio-nav .crumb a { color: var(--muted); }
.studio-nav .crumb a:hover { color: var(--ink); }
.studio-nav .crumb b { color: var(--ink); font-weight: 600; }
.studio-nav .crumb i { color: var(--faint); font-size: 12px; }
.studio-nav .pager { display: flex; gap: 8px; }

@media (max-width: 1000px) {
  .studio-path { flex-direction: column; }
  .studio-path a { border-right: 0; border-bottom: 1px solid var(--line); }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .grid.c3, .grid.c4, .grid.c5, .grid.c2, .grid.side { grid-template-columns: 1fr; }
  .span2 { grid-column: span 1; }
  .page { padding: 18px 16px 60px; }
  .drawer { width: 100%; }
  .search { display: none; }
  .ds-bar { padding: 5px 10px; gap: 8px; }
  .ds-bar .ds-desc, .ds-bar .ds-label { display: none; }
  .ds-bar select { max-width: 60vw; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* The shelf and card icon class "page" must not pick up the page layout rule. */
.ic.page { padding: 0; max-width: none; }
