/* EverLMS guide layout. Bootstrap 5 tiers: sm576 / md768 / lg992 / xl1200 / xxl1400. */
:root {
  --bar-h: 113px;
  --guide-sticky-header: 0px;
  --guide-stepbar: 49px;
  --guide-context-h: 0px;
  --guide-gutter: 1.5rem;
}
:root:has(.v5-context) { --guide-context-h: 56px; }
:root.is-scrolled:has(.v5-context) { --guide-context-h: 44px; }
:root:has(.v5-role) { --guide-stepbar: 0px; }
html { scroll-padding-top: calc(var(--guide-sticky-header) + var(--guide-stepbar) + var(--guide-context-h) + 1rem); }
body { background: var(--paper); }
.v2-container { --bs-gutter-x: 1.5rem; padding-inline: calc(var(--bs-gutter-x) * .5); }
main.v5-role { padding-bottom: 4rem; }
main.o6-flow { padding-bottom: 0; }

/* The role menu aligns to the right edge of the Bootstrap content area. */
.v2-bar { position: static; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.v2-bar__in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 56px 36px;
  align-items: center;
  gap: 4px 12px;
  height: 112px;
  min-height: 0;
  padding-block: 8px;
  overflow: visible;
}
.v2-bar .v2-brand { grid-column: 1; grid-row: 1; min-width: 0; }
.v2-brand-logo { width: 144px; max-width: 100%; max-height: 56px; }
.v2-bar .v2-nav {
  grid-column: 1 / -1;
  grid-row: 2;
  order: 0;
  min-width: 0;
  justify-self: end;
  width: max-content;
  max-width: 100%;
  margin: 0 0 0 auto;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.v2-nav::-webkit-scrollbar { display: none; }
.v2-nav a { color: var(--ink2); }
.v2-nav a:hover { background: var(--wash2); color: var(--brand-d); }
.v2-nav a.on { background: var(--brand); color: white; }
.v5-role-menu { display: flex; align-items: center; flex: none; border-radius: 8px; }
.v2-nav .v5-role-home { padding-right: 4px; font-size: 15px; }
.v5-sub-toggle { display: grid; place-items: center; width: 22px; min-height: 34px; padding: 0 4px 0 2px; border: 0; border-radius: 0 8px 8px 0; background: transparent; color: var(--ink2); cursor: pointer; }
.v5-sub-toggle svg { transition: transform .15s ease; }
.v5-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.v5-role-menu[data-open], .v5-role-menu:hover { background: var(--wash2); }
.v5-role-menu.is-current { background: var(--brand); }
.v5-role-menu.is-current .v5-role-home { background: transparent; color: white; }
.v5-role-menu.is-current .v5-sub-toggle { color: white; }
.v5-role-menu.is-current[data-open] { background: var(--brand-d); }
.v5-submenu { position: absolute; z-index: 45; top: calc(100% - 4px); left: var(--menu-left, 12px); width: min(360px, calc(100% - 24px)); max-height: min(480px, calc(100dvh - var(--bar-h) - 24px)); overflow-y: auto; margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: 0 8px 24px rgb(var(--shadow) / .12); list-style: none; }
.v5-submenu[hidden] { display: none; }
.v5-submenu a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--ink2); text-decoration: none; font: 450 14px/1.5 var(--font-body); }
.v5-submenu a:hover, .v5-submenu a:focus-visible { background: var(--wash2); color: var(--brand-d); }
.v5-submenu a[aria-current] { background: var(--brand-w); color: var(--brand-d); font-weight: 650; }
/* Appearance is an independent left-edge panel, opened by hover, focus or tap. */
.v2-bar :focus-visible, .v2-foot :focus-visible { outline-color: var(--focus); }
.settingsbar {
  position: fixed;
  inset: 50% auto auto 0;
  z-index: 60;
  width: 32px;
  height: 44px;
  transform: translateY(-50%);
  --panel-w: min(500px, calc(100vw - 24px));
}
.settingsbar .settings__toggle,
.settingsbar:not([data-open]):is(:hover, :focus-within) .settings__toggle {
  position: static;
  width: 32px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line2);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: var(--paper);
  color: var(--brand-d);
  box-shadow: 0 3px 12px rgb(var(--shadow) / .1);
}
.settingsbar .settings__toggle svg { width: 20px; height: 20px; transform: none; }
.settingsbar .settings__panel,
.settingsbar:not([data-open]):is(:hover, :focus-within) .settings__panel {
  inset: 50% auto auto 0;
  width: var(--panel-w);
  max-height: calc(100dvh - 24px);
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  translate: -100% -50%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.settingsbar[data-open] .settings__panel { translate: 0 -50%; opacity: 1; visibility: visible; pointer-events: auto; }
.settingsbar[data-open] .settings__toggle {
  position: absolute;
  z-index: 1;
  top: calc(50% - var(--panel-h, 560px) / 2 + 12px);
  left: calc(var(--panel-w) - 46px);
  width: 34px;
  height: 34px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: var(--paper);
  color: var(--brand-d);
  box-shadow: none;
}
.settingsbar[data-open] .settings__toggle svg { width: 20px; height: 20px; transform: rotate(90deg); }
.settings__title { padding-right: 42px; }
.settingsbar :focus-visible { outline-color: var(--focus); }
html.dk-present .settingsbar, html.image-open .settingsbar { display: none; }
.v2-foot { background: var(--paper); color: var(--ink3); border-top: 1px solid var(--line); }
.v2-foot__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; }
.v2-foot__logo { width: 128px; margin: 0; }
.v5-credit { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--ink3); text-decoration: none; font: 400 13px/1.4 var(--font-body); }
.v5-credit img { width: 110px; height: auto; }
.v5-credit:hover { color: var(--brand-d); }

/* Breadcrumbs name destinations; the left rail contains only this task's steps. */
.v5-context { position: sticky; top: var(--guide-sticky-header); z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 56px; margin-bottom: 24px; padding-block: 4px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.is-scrolled .v5-context { min-height: 44px; padding-bottom: 4px; }
.o6-flow > .v5-context { top: calc(var(--guide-sticky-header) + var(--guide-stepbar)); }
.v5-breadcrumb { min-width: 0; margin: 0; color: var(--ink2); font-size: 14px; line-height: 1.5; }
.v5-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; padding: 0; list-style: none; }
.v5-breadcrumb li { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.v5-breadcrumb li + li::before { content: ''; flex: none; width: 6px; height: 6px; border-top: 1.5px solid var(--ink3); border-right: 1.5px solid var(--ink3); transform: rotate(45deg); }
.v5-breadcrumb a { display: inline-flex; align-items: center; gap: 7px; color: var(--ink2); text-decoration: none; }
.v5-breadcrumb a:hover { color: var(--brand-d); text-decoration: underline; text-underline-offset: 3px; }
.v5-breadcrumb svg { flex: none; }
.v5-breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* Full-width surfaces group the overview; objects keep their own colours. */
.v5-home { padding: 0; }
.v5-intro {
  padding-block: 32px;
  background: var(--wash);
  background: linear-gradient(120deg, var(--wash) 30%, color-mix(in srgb, var(--brand-w) 45%, var(--wash)));
}
.v5-hero { padding-bottom: 28px; }
.v5-hero h1, .v5-role h1 { margin: 0; color: var(--ink); font: 600 30px/1.15 var(--font-display); letter-spacing: -.025em; }
.v5-section { margin-top: 32px; background: transparent; }
.v5-home .v5-section { margin: 0; }
.v5-band { padding-block: 36px; border-top: 1px solid var(--line); }
.v5-band--organisation { background: var(--paper); }
.v5-band--roles { background: var(--wash); }
.v5-section__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 24px; }
.v5-section h2 { margin: 0; font: 650 19px/1.35 var(--font-body); letter-spacing: -.02em; color: var(--ink); }
.v5-keywords { display: block; color: var(--ink2); font: 450 14px/1.55 var(--font-body); }
.v5-item { display: flex; align-items: center; gap: 8px; min-width: 0; color: inherit; font: 650 17px/1.4 var(--font-body); }
.v5-item > span:not([class]) { min-width: 0; }
.v5-item > .role-icon { width: 18px; height: 18px; flex: none; }
.v5-item__n { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: white; color: var(--brand-d); font-size: 11px; font-weight: 750; }
.v5-item__arrow { flex: none; margin-left: auto; font-size: 18px; font-weight: 400; line-height: 1; }
.v5-home a, .v5-role .v5-task-link { text-decoration: none; }
.v5-flow, .v5-roles, .v5-tasks { margin: 0; padding: 0; list-style: none; }
.v5-stop > a, .v5-role-card, .v5-task-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  height: 100%;
  padding: 16px;
  border-radius: 10px;
  background: var(--brand);
  color: white;
  text-decoration: none;
}
.v5-stop > a:hover, .v5-role-card:hover, .v5-task-link:hover { background: var(--brand-d); }
[data-v5-object] .v5-keywords { color: white; }
.v5-flow { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 360px; margin-inline: auto; gap: var(--guide-gutter); background: transparent; }
.v5-stop { position: relative; min-width: 0; }
.v5-stop > a { min-height: 72px; padding: 13px 16px; }
.v5-stop .v5-item { font-size: 16px; }
.v5-stop .v5-item__n { width: 20px; height: 20px; font-size: 10px; }
.v5-stop .v5-item__arrow { display: none; }
.v5-stop .v5-keywords { font-size: 14px; }
.v5-stop:not(:last-child)::after { content: '↓'; position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); color: var(--ink3); font: 400 20px/1 var(--font-body); }
.v5-learning { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.v5-learning .v5-section__head { margin: 0; }
.v5-learning > nav { min-width: 0; }
.v5-record { border-top: 1px solid var(--line2); padding-top: 20px; }
.v5-record > a { display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; padding: 4px; border-radius: 6px; color: var(--brand-d); }
.v5-record > a:hover { background: var(--brand-w); }
.v5-record__icon { flex: none; width: 28px; height: 28px; }
.v5-record__label { min-width: 0; }
.v5-record .v5-item { font-size: 15px; }
.v5-record .v5-item__arrow { margin-left: 12px; }
.v5-record .v5-keywords { color: var(--ink2); font-size: 13px; margin-top: 3px; }

/* Three contributors remain siblings when the diagram stacks below md. */
.v5-org-chart { max-width: 390px; margin: 0 auto; background: transparent; }
.v5-org-tier { position: relative; background: transparent; }
.v5-org-tier--team, .v5-org-tier--learners { display: flex; justify-content: center; }
.v5-org-node { position: relative; min-width: 0; padding: 16px; border-radius: 10px; background: var(--brand-d); color: white; }
.v5-org-node h3 { display: flex; align-items: center; gap: 8px; margin: 0; font: 650 17px/1.35 var(--font-body); color: white; }
.v5-org-node h3 .role-icon { width: 19px; height: 19px; }
.v5-org-node a { color: white; text-decoration: none; }
.v5-org-node a:hover { text-decoration: underline; text-underline-offset: 3px; }
.v5-org-node h3 a { font: inherit; }
.v5-org-keywords { margin: 8px 0 0; color: white; font: 450 14px/1.55 var(--font-body); }
.v5-org-node small { display: block; margin-top: 8px; color: white; font: 400 13px/1.5 var(--font-body); }
.v5-org-node--team { width: 390px; max-width: 100%; background: var(--brand-dd); }
.v5-org-node--learners { width: 390px; max-width: 100%; background: var(--brand); }
.v5-org-roles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.v5-org-roles a { display: inline-block; padding: 3px 8px; border-radius: 5px; background: rgb(0 0 0 / .15); font: 600 12px/1.5 var(--font-body); }
.v5-org-bridge { position: relative; width: 1px; height: 32px; margin-left: 8px; background: var(--line2); }
.v5-org-bridge--down::after { content: ''; position: absolute; bottom: 0; left: -3px; width: 7px; height: 7px; border-right: 1px solid var(--ink3); border-bottom: 1px solid var(--ink3); transform: rotate(45deg); }
.v5-org-tier--contributors { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-left: 8px; padding-left: 20px; border-left: 1px solid var(--line2); }
.v5-org-tier--contributors > .v5-org-node::before { content: ''; position: absolute; top: 24px; left: -21px; width: 20px; height: 1px; background: var(--line2); }

/* Cards use Bootstrap-style 12/6/4/3 column spans with a 24px gutter. */
.v5-roles { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--guide-gutter); background: transparent; }
.v5-roles > li { flex: 0 0 100%; min-width: 0; }
.v5-role-card { min-height: 88px; background: var(--brand-d); }
.v5-role-card .v5-keywords { font-size: 14px; }
.v5-role-card:hover { background: var(--brand-dd); }
.v5-role-head { margin: 0; }
.v5-scope { margin: 12px 0 0; color: var(--ink2); font-size: 15px; }
.v5-tasks { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--guide-gutter); background: transparent; }
.v5-tasks > li { min-width: 0; background: transparent; border: 0; box-shadow: none; }
.v5-task-link { min-height: 104px; }
.v5-task-link .v5-keywords { font-size: 14px; }
.o6-cards { gap: var(--guide-gutter); }
.o6-cards .o6-card { box-shadow: none; }

/* Reading text has a comfortable minimum size independent of screenshot scale. */
html:not(.dk-present) .sl__do li { font-size: max(15px, 1.4cqw); line-height: 1.55; }
html:not(.dk-present) .sl__side .sl__note { font-size: 14px; line-height: 1.55; }
html:not(.dk-present) .sl__open { font-size: 14px; line-height: 1.55; }
html:not(.dk-present) .sl__hint { font-size: 13px; line-height: 1.5; }
html:not(.dk-present) .sl__tip { font-size: 14px; line-height: 1.55; }
html:not(.dk-present) .sl__who b { font-size: max(14px, 1.5cqw); }
html:not(.dk-present) .sl__k { font-size: 12px; line-height: 1.5; }
html:not(.dk-present) .sl__ft span:first-child { font-size: 11px; letter-spacing: .08em; }
html:not(.dk-present) .sl__ft span:last-child { font-size: 12px; }
.n5-steps a { font-size: 15px; line-height: 1.5; }
.settings__item { font-size: 15px; line-height: 1.45; }

/* Reading uses the same container; its rail occupies three of twelve columns. */
.n5-stepsbar { top: var(--guide-sticky-header); }
.n5-stepsbar__in { min-height: 48px; padding-block: 8px; }
.n5-rail__hd { background: var(--paper); margin-bottom: 8px; padding-bottom: 12px; }
.n5-rail__hd b { color: var(--ink2); font-size: 13px; font-weight: 650; }
.n5-who { margin-left: 8px; font-size: 12px; letter-spacing: 0; text-transform: none; }
.n5-t { display: block; overflow: visible; -webkit-line-clamp: unset; }
.n5-layout { gap: var(--guide-gutter); }
.sl { box-shadow: none; border-color: var(--line); border-radius: 10px; }
.sl--cover { background: var(--paper); color: var(--ink); border-color: transparent; }
.sl--cover h1, .sl--cover h1 em { color: var(--ink); }
.cv-sub p, .cv-sub ul, .cv-sub b, .cv-foot { color: var(--ink2); }
.cv-ph { background: var(--paper); gap: 8px; }
.cv-ph::after { display: none; }
.cv-ph img { border: 1px solid var(--line); border-radius: 6px; }
.cv-bars { display: none; }
.cv-foot { border-color: var(--line); }
.cv-brand__logo { width: max(130px, 20cqw); }
.cv-main { max-width: none; width: 100%; }
html:not(.dk-present) .sl--cover { border: 0; border-radius: 0; overflow: visible; }
html:not(.dk-present) .sl--cover .sl__in { aspect-ratio: auto; min-height: 0; padding: 0; gap: 0; }
html:not(.dk-present) .cv-brand, html:not(.dk-present) .cv-foot, html:not(.dk-present) .cv-ph { display: none; }
html:not(.dk-present) .cv-main { max-width: none; width: 100%; }
.v5-title-row { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; }
html:not(.dk-present) .sl--cover h1 { flex: 1 1 260px; margin: 0; font: 700 clamp(26px, 3.3cqw, 34px)/1.2 var(--font-display); }
html:not(.dk-present) .cv-sub p { margin: 12px 0 0; font: 400 15px/1.6 var(--font-body); }
html:not(.dk-present) .cv-sub ul { margin: 12px 0 0; padding-left: 20px; font: 400 14px/1.6 var(--font-body); }
html:not(.dk-present) .cv-sub li { margin: 4px 0; }
.dk-present { background: var(--brand); }
.dk-present:hover { background: var(--brand-d); }
.v5-context .dk-present, .v5-page-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; padding: 6px 12px; border: 1px solid var(--line2); border-radius: 6px; background: var(--paper); color: var(--brand-d); text-decoration: none; font: 600 14px/1.4 var(--font-body); }
.v5-context .dk-present:hover, .v5-page-link:hover { background: var(--wash2); border-color: var(--brand-d); }
html.dk-present .v5-context { visibility: hidden; }
.n5-after.v5-pager { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; margin: 0; padding-block: 4px; border-top: 1px solid var(--line); }
.v5-page-link--next { margin-left: auto; }
.v5-page-link svg { flex: none; }

@container (min-width: 768px) {
  .cv-main { max-width: 58cqw; width: auto; }
}

@media (min-width: 576px) {
  .v5-roles > li { flex-basis: calc((100% - var(--guide-gutter)) / 2); }
  .v5-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-foot__logo { width: 148px; }
  .v5-credit img { width: 128px; }
}

@media (min-width: 768px) {
  :root { --guide-sticky-header: 113px; }
  :root.is-scrolled { --bar-h: 89px; --guide-sticky-header: 89px; }
  .v2-bar { position: sticky; }
  .is-scrolled .v2-bar__in { grid-template-rows: 38px 34px; height: 88px; padding-block: 6px; }
  .is-scrolled .v2-brand-logo { width: 128px; max-height: 38px; object-fit: contain; }
  .v5-intro { padding-block: 48px 40px; }
  .v5-hero { padding-bottom: 32px; }
  .v5-hero h1, .v5-role h1 { font-size: clamp(30px, 3vw, 42px); }
  .v5-section { margin-top: 40px; }
  .v5-band { padding-block: 48px; }
  .v5-section h2 { font-size: 20px; }
  .v5-learning { grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
  .v5-learning > .v5-section__head { grid-column: 1; grid-row: 1; }
  .v5-learning > nav { grid-column: 1 / -1; grid-row: 2; }
  .v5-record { grid-column: 2; grid-row: 1; border: 0; padding: 0; }
  .v5-org-chart { max-width: 960px; }
  .v5-org-bridge { margin-inline: auto; }
  .v5-org-tier--contributors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--guide-gutter); margin: 0; padding: 0; border: 0; }
  .v5-org-tier--contributors::before, .v5-org-tier--contributors::after { content: ''; position: absolute; left: calc((100% - 48px) / 6); right: calc((100% - 48px) / 6); height: 1px; background: var(--line2); }
  .v5-org-tier--contributors::before { top: -16px; }
  .v5-org-tier--contributors::after { bottom: -16px; }
  .v5-org-tier--contributors > .v5-org-node::before, .v5-org-tier--contributors > .v5-org-node::after { content: ''; position: absolute; left: 50%; top: auto; width: 1px; height: 16px; background: var(--line2); }
  .v5-org-tier--contributors > .v5-org-node::before { top: -16px; }
  .v5-org-tier--contributors > .v5-org-node::after { bottom: -16px; }
  .v5-org-node { padding: 16px; }
}

@media (min-width: 992px) {
  :root { --bar-h: 73px; --guide-sticky-header: 73px; --guide-stepbar: 0px; }
  :root.is-scrolled { --bar-h: 53px; --guide-sticky-header: 53px; }
  .v2-bar__in { display: flex; flex-wrap: nowrap; gap: 16px; height: 72px; padding-block: 7px; }
  .is-scrolled .v2-bar__in { height: 52px; padding-block: 6px; }
  .is-scrolled .v2-brand-logo { width: 136px; max-height: 40px; }
  .v2-brand-logo { width: 164px; max-height: 58px; }
  .v2-bar .v2-nav { flex: 0 1 auto; width: max-content; max-width: calc(100% - 180px); margin-left: auto; }
  .v5-flow { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: none; }
  .v5-stop > a { min-height: 94px; padding: 12px; }
  .v5-stop .v5-item { font-size: 15px; }
  .v5-stop:not(:last-child)::after { content: '→'; left: auto; right: -20px; top: 35px; bottom: auto; transform: none; font-size: 18px; }
  .v5-roles > li { flex-basis: calc((100% - 2 * var(--guide-gutter)) / 3); }
  .v5-tasks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .n5-layout { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .n5-rail { grid-column: span 3; }
  .dk { grid-column: span 9; }
  .o6-flow .n5-rail { top: calc(var(--guide-sticky-header) + var(--guide-context-h) + 16px); max-height: calc(100dvh - var(--guide-sticky-header) - var(--guide-context-h) - 32px); }
}

@media (min-width: 1200px) {
  .v5-roles > li { flex-basis: calc((100% - 3 * var(--guide-gutter)) / 4); }
  .v5-tasks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .v5-stop > a { padding: 14px; }
  .v5-stop .v5-item { font-size: 16px; }
}

@media (min-width: 1400px) {
  .v2-bar .v2-nav { overflow-x: visible; }
}

@media print {
  .v5-context { position: static; }
  .v5-context .dk-present { display: none; }
  .v2-bar, .v2-foot { background: white; color: black; }
  .v5-section { break-inside: avoid; }
  [data-v5-object] { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
