/* Flow Standards: the reading site (standards.flow.globatics.com) and Flow Admin > Standards.
   Built on app.css and frame.css; the Flow palette and the organisation's own colours carry through. */

/* ---------- shared pieces */
.modal { border: 0; border-radius: var(--r-lg); padding: 0; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: 0 30px 80px -20px oklch(15% 0.05 225 / 0.55); color: var(--ink); }
.modal::backdrop { background: oklch(20% 0.04 225 / 0.45); }
.modal form { display: grid; gap: 16px; padding: 22px; }
.modal h2 { font-size: 1.2rem; font-weight: 600; }
.modal .sub { color: var(--muted); font-size: 0.86rem; margin-top: 2px; }
.modal .actions { justify-content: flex-end; flex-wrap: wrap; }

.std-cat { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.std-cat::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
.std-kind { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.std-back { margin: 0 0 10px; font-size: 0.88rem; }
.std-back a { color: var(--ink-2); text-decoration: none; }
.std-back a:hover { color: var(--ink); text-decoration: underline; }
.std-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.std-three { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.std-ext { flex: none; width: 40px; height: 46px; border-radius: 6px; display: grid; place-items: center; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.04em; color: #fff; background: var(--ink-2); }
.std-ext--pdf { background: oklch(55% 0.19 27); }
.std-ext--doc, .std-ext--docx, .std-ext--rtf, .std-ext--odt { background: oklch(50% 0.15 255); }
.std-ext--xls, .std-ext--xlsx, .std-ext--csv { background: oklch(52% 0.13 150); }
.std-ext--ppt, .std-ext--pptx { background: oklch(60% 0.16 45); }
.std-ext--text { background: var(--sunk); color: var(--ink-2); }
.std-file__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.std-file__row b { display: block; word-break: break-word; }
.std-file__row small { color: var(--muted); }

/* Text written in Flow Standards (mdlite.js) */
.std-prose { font-size: 1rem; line-height: 1.65; color: var(--ink); max-width: 72ch; }
.std-prose > * + * { margin-top: 0.85em; }
.std-prose h2 { font-size: 1.3rem; line-height: 1.25; margin-top: 1.6em; scroll-margin-top: 80px; }
.std-prose h3 { font-size: 1.1rem; margin-top: 1.4em; scroll-margin-top: 80px; }
.std-prose h4 { font-size: 1rem; margin-top: 1.2em; scroll-margin-top: 80px; }
.std-prose ul, .std-prose ol { padding-left: 1.4em; }
.std-prose li + li { margin-top: 0.3em; }
.std-prose blockquote { margin-left: 0; padding: 10px 14px; border-left: 3px solid var(--pink-line); background: var(--pink-soft); border-radius: 0 var(--r) var(--r) 0; }
.std-prose code { background: var(--sunk); padding: 1px 5px; border-radius: 4px; font-size: 0.9em; }
.std-prose a { color: var(--medium); }
.std-prose hr { border: 0; border-top: 1px solid var(--rule); margin: 1.6em 0; }

/* ---------- the reading site */
.std-hero { margin: -16px -20px 0; background: var(--burgundy); color: var(--on-burgundy); padding: 44px 20px 52px; }
.std-hero__in { max-width: 760px; margin: 0 auto; display: grid; gap: 18px; }
.std-hero h1 { font: 800 clamp(1.6rem, 3.2vw, 2.3rem)/1.1 var(--font-display); letter-spacing: -0.01em; text-align: center; text-wrap: balance; }
.std-search { position: relative; display: flex; align-items: center; }
.std-search svg { position: absolute; left: 18px; color: var(--muted); pointer-events: none; }
.std-search input { width: 100%; height: 58px; border: 0; border-radius: 4px; padding: 0 22px 0 50px; font-size: 1.05rem; background: var(--card); color: var(--ink); box-shadow: 0 14px 40px -18px oklch(10% 0.05 225 / 0.7); }
.std-search input:focus { outline: none; box-shadow: 0 0 0 4px color-mix(in oklch, var(--pink) 55%, transparent), 0 14px 40px -18px oklch(10% 0.05 225 / 0.7); }
.std-home { padding-top: 8px !important; }

.std-must { display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; margin-top: 22px; padding: 14px 18px; border: 1px solid var(--note-line); background: var(--note-bg); border-radius: var(--r-lg); }
.std-must b { display: block; }
.std-must span { color: var(--ink-2); font-size: 0.88rem; }
.std-must--top { margin: 0 0 20px; }

.std-list { display: grid; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; }
.std-row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; text-decoration: none; color: inherit; border-top: 1px solid var(--rule); transition: background-color 120ms var(--ease); }
.std-row:first-child { border-top: 0; }
.std-row:hover { background: var(--paper); }
.std-row .std-ext { width: 34px; height: 40px; font-size: 0.6rem; }
.std-row__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.std-row__main b { font-weight: 600; }
.std-row__main span { color: var(--muted); font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.std-row__main .std-snip { font-style: italic; }
.std-row__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.std-row__meta small { color: var(--muted); font-size: 0.76rem; }

.std-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.std-catcard { display: grid; gap: 4px; align-content: start; padding: 16px 18px 14px; background: var(--card); border: 1px solid var(--rule); border-top: 4px solid var(--c); border-radius: var(--r-lg); text-decoration: none; color: inherit; transition: border-color 140ms var(--ease), transform 140ms var(--ease), box-shadow 140ms var(--ease); }
.std-catcard:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px oklch(20% 0.05 225 / 0.45); }
.std-catcard b { font-size: 1rem; }
.std-catcard span { color: var(--muted); font-size: 0.86rem; }
.std-catcard small { color: var(--ink-2); font-size: 0.78rem; font-weight: 600; margin-top: 6px; }
.std-cathead { border-left: 4px solid var(--c); padding-left: 14px; }
.std-cathead h1 { display: block !important; font-size: 1.6rem !important; }

.std-doc { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 28px 32px 32px; }
.std-doc__head { display: grid; gap: 10px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--rule); }
.std-doc__tags { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.std-doc .head { margin: 0; }
.std-doc .head h1 { display: block; font: 700 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--font-display); text-transform: none; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.std-doc__summary { font-size: 1.05rem; color: var(--ink-2); max-width: 70ch; }
.std-doc__meta { display: flex; gap: 28px; flex-wrap: wrap; margin: 4px 0 0; }
.std-doc__meta dt { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.std-doc__meta dd { margin: 0; font-size: 0.9rem; }
.std-doc__grid.has-toc { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
.std-toc { position: sticky; top: 80px; align-self: start; display: grid; gap: 2px; font-size: 0.85rem; }
.std-toc b { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 6px; }
.std-toc a { color: var(--ink-2); text-decoration: none; padding: 4px 8px; border-radius: 6px; border-left: 2px solid var(--rule); }
.std-toc a:hover { background: var(--sunk); color: var(--ink); }
.std-toc a.l3 { padding-left: 18px; }
.std-toc a.l4 { padding-left: 28px; }
.std-attach { margin-top: 24px; border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 14px; display: grid; gap: 14px; background: var(--paper); }
.std-attach__frame { width: 100%; height: min(80vh, 900px); border: 1px solid var(--rule); border-radius: var(--r); background: #fff; }
.std-attach__frame.is-text { height: 420px; }
.std-attach__img { max-width: 100%; border-radius: var(--r); border: 1px solid var(--rule); }
.std-ack { margin-top: 28px; display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--note-line); background: var(--note-bg); }
.std-ack b { display: block; }
.std-ack span { color: var(--ink-2); font-size: 0.88rem; }
.std-ack.is-done { justify-content: flex-start; border-color: color-mix(in oklch, var(--ok) 35%, white); background: var(--ok-bg); color: var(--ok); }
.std-ack.is-done b { color: var(--ink); }
.std-done { color: var(--ok); }
.std-contact { text-align: center; color: var(--muted); font-size: 0.88rem; padding: 0 20px 24px; max-width: 70ch; margin: 0 auto; }

/* ---------- Flow Admin > Standards */
.std-setup { display: grid; grid-template-columns: auto 1fr; gap: 16px 20px; align-items: start; }
.std-setup h2 { font-size: 1.2rem; margin-bottom: 6px; }
.std-setup .actions { grid-column: 2; }
.std-setup__ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--pink-soft); color: var(--burgundy); }
.std-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.std-stats div { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 14px 16px; display: grid; }
.std-stats b { font-size: 1.5rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.std-stats span { color: var(--muted); font-size: 0.82rem; }
.std-stats .is-warn { border-color: var(--note-line); background: var(--note-bg); }
.std-edit { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.std-side { display: grid; gap: 14px; position: sticky; top: 76px; }
.std-side h2 { font-size: 1rem; margin-bottom: 10px; }
.std-side .panel { padding: 18px; }
.std-bodyhead { display: flex !important; align-items: center; justify-content: space-between; }
.std-body { min-height: 320px; font-family: ui-monospace, "Cascadia Mono", Menlo, monospace; font-size: 0.88rem; }
.std-preview { border: 1px solid var(--rule-strong); border-radius: var(--r); padding: 14px 18px; min-height: 320px; background: var(--card); }
.std-file { display: grid; gap: 12px; }
.std-file h2 { margin: 0; }
.std-file .actions { flex-wrap: wrap; gap: 6px; }
.std-drop { display: grid; gap: 4px; text-align: center; padding: 18px 14px; border: 1.5px dashed var(--rule-strong); border-radius: var(--r-lg); cursor: pointer; transition: border-color 140ms var(--ease), background-color 140ms var(--ease); }
.std-drop:hover, .std-drop.is-over { border-color: var(--burgundy); background: var(--pink-soft); }
.std-drop small { color: var(--muted); font-size: 0.78rem; }
.std-progress, .std-meter { height: 6px; border-radius: 4px; background: var(--sunk); overflow: hidden; }
.std-progress span, .std-meter span { display: block; height: 100%; width: 0; background: var(--ok); transition: width 200ms var(--ease); }
.std-progress span { background: var(--burgundy); }
.std-reads details { margin-top: 12px; }
.std-reads summary { cursor: pointer; font-size: 0.86rem; font-weight: 600; color: var(--ink-2); }
.std-reads ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; max-height: 320px; overflow: auto; }
.std-reads li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--rule); font-size: 0.85rem; }
.std-reads li small { color: var(--muted); white-space: nowrap; }
.std-reads li.is-read small { color: var(--ok); }
.std-meta dl { margin: 0; display: grid; gap: 10px; }
.std-meta dt { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.std-meta dd { margin: 0; font-size: 0.9rem; }
.std-catlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.std-catlist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 16px; }
.std-catlist li small { display: block; color: var(--muted); font-size: 0.84rem; }
.std-catlist__acts { display: flex; gap: 6px; }
.std-dot { width: 14px; height: 14px; border-radius: 4px; background: var(--c); }
.std-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.std-swatches input { position: absolute; opacity: 0; pointer-events: none; }
.std-swatches span { display: block; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; box-shadow: inset 0 0 0 2px transparent; outline: 2px solid transparent; outline-offset: 2px; }
.std-swatches input:checked + span { outline-color: var(--ink); }
.std-swatches input:focus-visible + span { outline-color: var(--focus); }
.std-mock { padding: 0 !important; overflow: hidden; font-size: 0.8rem; }
.std-mock__bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.std-mock__bar img { height: 18px; }
.std-mock__bar small { color: var(--muted); }
.std-mock__hero { background: var(--burgundy); color: var(--on-burgundy); padding: 20px 14px; display: grid; gap: 10px; text-align: center; }
.std-mock__hero b { font-size: 1rem; }
.std-mock__search { background: var(--card); color: var(--muted); border-radius: 4px; padding: 7px 12px; text-align: left; }
.std-mock__cats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px; }
.std-mock__cats span { border: 1px solid var(--rule); border-top: 3px solid var(--c); border-radius: 6px; padding: 6px 8px; font-weight: 600; }
.std-mock__foot { color: var(--muted); padding: 0 12px 12px; text-align: center; }
.std-mock__foot:empty { display: none; }

@media (max-width: 900px) {
  .std-edit { grid-template-columns: 1fr; }
  .std-side { position: static; }
  .std-doc__grid.has-toc { grid-template-columns: 1fr; }
  .std-toc { position: static; }
}
@media (max-width: 640px) {
  .std-hero { margin: -16px -12px 0; padding: 30px 14px 36px; }
  .std-stats { grid-template-columns: 1fr 1fr; }
  .std-two, .std-three { grid-template-columns: 1fr; }
  .std-doc { padding: 20px 18px; }
  .std-row__meta { display: none; }
  .std-catlist li { grid-template-columns: auto minmax(0, 1fr); }
  .std-catlist li > .muted, .std-catlist__acts { grid-column: 2; }
  .std-setup { grid-template-columns: 1fr; }
  .std-setup .actions { grid-column: 1; }
}
.std-admin .badge:not([class*="badge--"]) { background: var(--sunk); color: var(--ink-2); }

/* ---------- Learning Zone (standards/standards.js): a training portal. Cards with cover images, rows that
   scroll sideways, image tiles for roles and categories, and a full-screen module player. */
.lz { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding: 24px 28px 48px; }
.lz-page { padding-top: 18px; }
.lz-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.lz-top--home { margin-bottom: 6px; }
.lz-crumbs { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; background: #f0f0f0; border-radius: 999px; padding: 8px 16px; font-size: 0.9rem; }
.lz-crumbs a { color: #242424; text-decoration: none; }
.lz-crumbs a:hover { text-decoration: underline; }
.lz-crumbs span { color: #8a8a8a; }
.lz-search { display: flex; align-items: center; border: 1px solid #c8c8c8; border-radius: 999px; padding: 2px 2px 2px 16px; width: min(320px, 100%); background: #fff; }
.lz-search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 0.95rem; min-width: 0; background: none; }
.lz-search button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: #242424; color: #fff; display: grid; place-items: center; cursor: pointer; }
.lz-h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.01em; margin: 4px 0 10px; }
.lz-h2 { font-size: 1.2rem; font-weight: 600; margin: 28px 0 12px; }
.lz-h2--sm { font-size: 0.95rem; }
.lz-lead { font-style: italic; color: #424242; margin: 0 0 14px; }
.lz-more { display: inline-block; border-left: 3px solid #242424; padding-left: 10px; color: #242424; text-decoration: none; margin: 10px 0 18px; font-size: 0.95rem; }
.lz-more:hover { text-decoration: underline; }
/* home: the banner and rows */
.lz-row, .lz-promo { margin-top: 18px; }
.lz-row__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.lz-row__head h2 { font-size: 1.25rem; font-weight: 600; margin: 0; }
.lz-row__head a { color: #0f6cbd; text-decoration: none; font-size: 0.92rem; }
.lz-dots { display: flex; gap: 6px; }
.lz-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: #d1d1d1; padding: 0; cursor: pointer; }
.lz-dots button[aria-current] { background: #242424; }
.lz-promo__win { overflow: hidden; border-radius: 18px; }
.lz-promo__track { display: flex; transition: transform 0.5s ease; }
.lz-banner { flex: 0 0 100%; position: relative; aspect-ratio: 16 / 6.5; min-height: 220px; display: flex; align-items: flex-end; color: #fff; text-decoration: none;
  background: linear-gradient(120deg, #3a3a3a, #0f2b38); }
.lz-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lz-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / 0.65), rgb(0 0 0 / 0.1) 70%); }
.lz-banner__text { position: relative; z-index: 1; padding: 28px; max-width: 640px; display: grid; gap: 8px; }
.lz-banner__text b { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 600; line-height: 1.1; }
.lz-banner__text span { font-size: 0.98rem; line-height: 1.45; opacity: 0.92; }
.lz-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 220px); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.lz-strip > * { scroll-snap-align: start; }
.lz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
/* a card */
.lz-card { display: flex; flex-direction: column; gap: 6px; color: #242424; text-decoration: none; min-width: 0; }
.lz-card__img { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #e8e8e8; }
.lz-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.lz-card:hover .lz-card__img img { transform: scale(1.04); }
.lz-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #5b6b73, #0f2b38); }
.lz-flag { position: absolute; top: 10px; right: 10px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; color: #fff; }
.lz-flag--ok { background: #3aa53a; } .lz-flag--bad { background: #c50f1f; } .lz-flag--warn { background: #b86e00; }
.lz-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.lz-card__meta small { color: #424242; font-size: 0.82rem; }
.lz-card__title { font-size: 1.12rem; font-weight: 700; line-height: 1.25; }
.lz-card__sum { font-size: 0.88rem; color: #424242; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lz-tags { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.lz-tags i { font-style: normal; font-size: 0.8rem; font-weight: 600; color: #c50f1f; }
.lz-due { color: #b86e00; font-weight: 600; }
.lz-fav { border: 0; background: none; color: #c50f1f; padding: 2px; cursor: pointer; display: grid; }
/* image tiles (roles, programmes, categories) */
.lz-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.lz-tiles--4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.lz-tile { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; display: grid; place-items: center; text-decoration: none; background: #3a3a3a; }
.lz-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35); }
.lz-tile::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / 0.38); transition: background 0.2s; }
.lz-tile:hover::after { background: rgb(0 0 0 / 0.2); }
.lz-tile .lz-ph { font-size: 0; }
.lz-tile__name { position: relative; z-index: 1; color: #fff; font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 700; text-align: center; padding: 10px; text-shadow: 0 1px 6px rgb(0 0 0 / 0.4); display: grid; gap: 4px; }
.lz-tile__name small { font-size: 0.85rem; font-weight: 600; opacity: 0.9; }
/* progress bars */
.lz-bar { display: grid; gap: 6px; max-width: 160px; margin: 6px 0 14px; }
.lz-bar span { display: flex; justify-content: space-between; font-size: 0.82rem; }
.lz-bar i { display: block; height: 3px; background: linear-gradient(90deg, #c50f1f var(--p), #d1d1d1 var(--p)); }
.lz-bar--main { max-width: 160px; }
.lz-group { margin-top: 22px; }
/* the right-hand column */
.lz-side h2 { font-size: 1.15rem; font-weight: 600; margin: 8px 0 12px; }
.lz-role { display: grid; place-items: center; width: 180px; aspect-ratio: 1; border-radius: 16px; background: var(--c); color: #3d8a5b; box-shadow: 0 4px 14px rgb(0 0 0 / 0.12); overflow: hidden; margin-bottom: 22px; }
.lz-role img { width: 100%; height: 100%; object-fit: cover; }
.lz-roles { display: grid; gap: 12px; margin-bottom: 18px; }
.lz-roles a { display: flex; gap: 14px; align-items: center; color: #242424; text-decoration: none; }
.lz-role__ic { width: 58px; height: 58px; flex: none; border-radius: 10px; display: grid; place-items: center; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / 0.12); overflow: hidden; }
.lz-role__ic img { width: 100%; height: 100%; object-fit: cover; }
.lz-roles b { display: block; } .lz-roles small { color: #616161; }
/* an article (Standards Library) */
.lz-art { max-width: 1100px; }
.lz-art__head { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; background: #ececec; border-radius: 22px; padding: 22px 26px; }
.lz-art__pic { position: relative; width: 120px; height: 120px; border-radius: 50%; overflow: hidden; display: block; background: #d6d6d6; }
.lz-art__pic img { width: 100%; height: 100%; object-fit: cover; }
.lz-art__head h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; margin: 6px 0 4px; }
.lz-art__head p { margin: 0; }
.lz-art__head .lz-fav { align-self: start; }
.lz-chip { display: inline-block; background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 0.82rem; font-weight: 600; }
.lz-art__bar { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 12px 4px 16px; border-bottom: 1px solid #e0e0e0; margin-bottom: 18px; }
.lz-hash { display: flex; flex-wrap: wrap; gap: 6px; }
.lz-hash a { border: 1px solid #d1d1d1; border-radius: 999px; padding: 2px 10px; font-size: 0.82rem; color: #c50f1f; text-decoration: none; font-weight: 600; }
.lz-link { border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; padding: 2px 6px; }
.std-prose img, .std-prose video { max-width: 100%; height: auto; border-radius: 6px; margin: 8px 0; }
.md-table { overflow-x: auto; margin: 12px 0; }
.md-table table { border-collapse: collapse; min-width: 50%; }
.md-table th, .md-table td { border: 1px solid #d1d1d1; padding: 8px 12px; text-align: left; vertical-align: top; }
.md-table th { background: #f0f0f0; }
/* the module player */
.lz-player { position: fixed; inset: 0; z-index: 60; background: #111; color: #fff; display: grid; grid-template-rows: auto 1fr auto; }
.lz-player__head { display: flex; align-items: center; gap: 18px; padding: 12px 18px; background: #1b1b1b; }
.lz-player__head b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.lz-steps { flex: 1; display: flex; gap: 4px; }
.lz-steps i { flex: 1; height: 4px; border-radius: 2px; background: #3d3d3d; }
.lz-steps i.on { background: #fff; }
.lz-x { border: 0; background: none; color: #fff; font-size: 1.2rem; cursor: pointer; padding: 4px 8px; }
.lz-cover { grid-row: 2 / 4; display: grid; place-items: center; text-align: center; background: #2b2b2b center / cover no-repeat; position: relative; }
.lz-cover::before { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / 0.45); }
.lz-cover > div { position: relative; max-width: 760px; padding: 24px; }
.lz-cover h1 { font-size: clamp(2.4rem, 7vw, 5.4rem); line-height: 0.95; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; margin: 0 0 14px; color: #fff; }
.lz-cover p { font-size: 1.1rem; margin: 0 0 20px; }
.lz-start { background: #c50f1f; color: #fff; border: 0; font: inherit; font-weight: 800; font-size: 1.15rem; text-transform: uppercase; padding: 12px 22px; cursor: pointer; border-radius: 2px; }
.lz-start:hover { background: #a50d1a; }
.lz-cover__done { margin-top: 14px !important; font-weight: 600; }
.lz-pagebody { overflow-y: auto; background: #fff; color: #242424; padding: 32px 20px 60px; }
.lz-pagebody > * { max-width: 820px; margin: 0 auto; }
.lz-pagebody h1 { font-size: 1.9rem; margin: 0 0 14px; }
.lz-media { display: block; width: 100%; max-height: 60vh; object-fit: contain; background: #000; border-radius: 8px; margin: 0 0 18px; }
.lz-media--pdf { height: 70vh; background: #fff; border: 1px solid #e0e0e0; }
.lz-player__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: #fff; color: #424242; border-top: 1px solid #e0e0e0; }
.lz-quiz { display: grid; gap: 16px; }
.lz-q { border: 1px solid #e0e0e0; border-radius: 8px; padding: 14px 16px; display: grid; gap: 8px; }
.lz-q legend { font-weight: 600; padding: 0 4px; }
.lz-q.is-wrong { border-color: #c50f1f; background: #fdf3f4; }
.lz-q.is-right { border-color: #3aa53a; }
.lz-opt { display: flex; gap: 10px; align-items: center; cursor: pointer; padding: 4px 0; }
.lz-result { border-radius: 8px; padding: 12px 16px; display: grid; gap: 2px; }
.lz-result--ok { background: #e7f5e7; color: #1b5e20; } .lz-result--bad { background: #fdf3f4; color: #8a0d18; }
@media (max-width: 980px) { .lz { grid-template-columns: 1fr; padding: 16px; } .lz-side { order: -1; } .lz-role { width: 120px; } }
@media (max-width: 640px) { .lz-top { flex-direction: column; align-items: stretch; } .lz-art__head { grid-template-columns: 1fr; } .lz-art__pic { width: 80px; height: 80px; } }
@media print { .rl-side, .rl-top, .lz-top, .lz-fav, .lz-art__bar span { display: none !important; } .lz-art__head { background: none; padding: 0; } }

/* Flow Admin > Learning Zone (learn-admin.js) */
.lz-admin .lza-tabs { display: flex; gap: 4px; border-bottom: 1px solid #e6e6e6; margin: 0 0 18px; }
.lz-admin .lza-tabs a { padding: 8px 14px; color: #424242; text-decoration: none; border-bottom: 2px solid transparent; }
.lz-admin .lza-tabs a.is-on { border-bottom-color: #0f6cbd; color: #0f6cbd; font-weight: 600; }
.lz-admin .lza-tabs .push { margin-left: auto; }
.lz-admin tr.is-link { cursor: pointer; }
.lz-admin tr.is-link:hover { background: #f5f5f5; }
.lz-admin .tag--ok { background: #dff6dd; color: #107c10; }
.lz-admin .tag--bad { background: #fde7e9; color: #c50f1f; }
.lz-admin .lza-role { margin-bottom: 14px; }
.lz-admin .lza-role__head { display: flex; align-items: center; gap: 10px; }
.lz-admin .lza-role__head h2 { margin: 0; font-size: 1.1rem; }
.lz-admin .lza-role__head .push { flex: 1; }
.lz-admin .lza-dot { width: 12px; height: 12px; border-radius: 50%; }
.lz-admin .lza-prog { margin: 12px 0 6px 22px; }
.lz-admin .lza-prog ul { margin: 6px 0; padding-left: 18px; }
.lz-admin .lza-form { display: grid; gap: 14px; margin-bottom: 22px; }
.lz-admin .lza-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lz-admin .lza-row > .input, .lz-admin .lza-row > .field { flex: 1; min-width: 160px; }
.lz-admin .lza-coverpick img { max-height: 120px; border-radius: 6px; vertical-align: middle; }
.lz-admin .lza-page, .lz-admin .lza-q { display: grid; gap: 10px; margin-bottom: 12px; padding: 16px; }
.lz-admin .lza-opt { margin-left: 22px; }
.lz-admin h2 { margin-top: 26px; }
