/* Enrolment journey tracker (etk.js): sticky local tracker, stage summary, staff operations lane, staff case review. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.etk { position: sticky; top: 0; z-index: 30; margin: 0 0 20px; padding: 10px 12px 10px; background: rgba(255, 255, 255, 0.97); border: 1px solid #e3dded; border-radius: 18px; box-shadow: 0 6px 18px rgba(40, 10, 80, .08); }
.etk-cap { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 0 4px 8px; font-size: 12px; color: #5c566a; }
.etk-cap > span:first-child { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #5d0282; }
.etk-who { font-weight: 700; color: #190038; }
.etk-capx { margin-left: auto; }
.etk-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.etk-st { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; height: 100%; min-height: 56px; display: flex; flex-direction: column; gap: 3px; padding: 7px 9px 8px; border-radius: 12px; border-top: 4px solid #d9d3e3; background: #faf8fc; }
.etk-st:hover { background: #f2ecf9; }
.etk-st:focus-visible { outline: 3px solid #5d0282; outline-offset: 2px; }
.etk-l { font-size: 13px; font-weight: 600; line-height: 1.2; color: #190038; }
.etk-s { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 700; }
.etk-s i, .etk-chip i { font-style: normal; width: 16px; height: 16px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10px; color: #fff; background: currentColor; flex: none; }
.etk-s i { color: inherit; } .etk-s i { background: none; border: 1.5px solid currentColor; }
.etk-st.is-ok { border-top-color: #1f7a4d; } .etk-st.is-ok .etk-s { color: #14573a; }
.etk-st.is-info { border-top-color: #3a4bfb; } .etk-st.is-info .etk-s { color: #2a33b0; }
.etk-st.is-warn { border-top-color: #c27100; } .etk-st.is-warn .etk-s { color: #8a4f00; }
.etk-st.is-bad { border-top-color: #b42318; } .etk-st.is-bad .etk-s { color: #9b1c12; }
.etk-st.is-mute .etk-s { color: #5c566a; }
.etk-st.is-view { background: #5d0282; } .etk-st.is-view .etk-l, .etk-st.is-view .etk-s { color: #fff; }
.etk-st.is-view:focus-visible { outline-color: #190038; }
.etk-st.has-ops { box-shadow: inset 0 -3px 0 #e07b00; }

/* staff operations lane: under the stages, pointing at the affected stage */
.etk-ops { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 10px; padding: 7px 10px; border-radius: 10px; background: #f3f4f8; font-size: 13px; color: #3a4360; }
.etk-ops.is-on { background: #fff6e8; border: 1px dashed #e0a64a; }
.etk-ops.is-on::before { content: ''; position: absolute; top: -11px; left: calc((100% + 6px) / 6 * var(--col, 3) + (100% + 6px) / 12 - 6px); border: 6px solid transparent; border-bottom-color: #e0a64a; }
.etk-ops-l { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 11px; color: #5d6680; }
.etk-ops-t { flex: 1; min-width: 180px; }
.etk-ops-b { font-size: 13px; min-height: 32px; }
.etk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.etk-chip.is-ok { color: #14573a; background: #dff3e8; } .etk-chip.is-info { color: #2a33b0; background: #e6ecff; }
.etk-chip.is-warn { color: #8a4f00; background: #fdf0d9; } .etk-chip.is-bad { color: #9b1c12; background: #fde7e5; } .etk-chip.is-mute { color: #4a4458; background: #eceaf0; }
.etk-chip.is-ok i { background: #1f7a4d; } .etk-chip.is-info i { background: #3a4bfb; } .etk-chip.is-warn i { background: #c27100; } .etk-chip.is-bad i { background: #b42318; } .etk-chip.is-mute i { background: #79747e; }

/* small screens: one-line summary, expandable list */
.etk-m { display: none; }
@media (max-width: 700px) {
  .etk { padding: 8px; border-radius: 14px; }
  .etk-cap { display: none; }
  .etk-m { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; padding: 4px 6px; min-height: 48px; }
  .etk-m:focus-visible { outline: 3px solid #5d0282; border-radius: 10px; }
  .etk-m-k { grid-column: 1 / -1; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #5d0282; }
  .etk-m > b { font-size: 15px; color: #190038; }
  .etk-m-n { grid-column: 1 / -1; font-size: 13px; color: #3a3446; line-height: 1.35; }
  .etk-m-x { grid-column: 1 / -1; font-size: 13px; font-weight: 700; color: #5d0282; text-decoration: underline; text-underline-offset: 3px; }
  .etk-list { display: none; max-height: 60vh; overflow-y: auto; margin-top: 8px; }
  .etk.is-open .etk-list { display: block; }
  .etk-stages { grid-template-columns: 1fr; }
  .etk-st { flex-direction: row; justify-content: space-between; align-items: center; min-height: 48px; border-top: 0; border-left: 4px solid #d9d3e3; }
  .etk-st.is-ok { border-left-color: #1f7a4d; } .etk-st.is-info { border-left-color: #3a4bfb; } .etk-st.is-warn { border-left-color: #c27100; } .etk-st.is-bad { border-left-color: #b42318; }
  .etk-ops.is-on::before { display: none; }
}

/* selected stage summary */
.etk-sum { scroll-margin-top: 150px; background: #fff; border: 1px solid #e3dded; border-radius: 22px; padding: 18px 20px; margin: 0 0 28px; outline: none; }
.etk-sum-h { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.etk-sum-h h3 { margin: 0; font-size: 20px; text-transform: none; letter-spacing: 0; }
.etk-k { width: 100%; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #5d0282; }
.etk-d { color: #4a4458; font-size: 14px; }
.etk-lbl { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5c566a; margin-bottom: 6px; }
.etk-nx { margin: 14px 0; padding: 12px 14px; border-radius: 14px; background: #f6f2fb; }
.etk-next { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.etk-next b { color: #190038; } .etk-next em { color: #5c566a; font-style: normal; font-size: 14px; }
.etk-sep { margin: 0 6px; color: #8a8494; }
.etk-none { margin: 0; color: #4a4458; }
.etk-nx .actions { margin-top: 10px; }
.etk-rows { margin: 0; display: grid; gap: 0; }
.etk-rows div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid #efeaf4; }
.etk-rows dt { font-weight: 600; color: #4a4458; } .etk-rows dd { margin: 0; }
.etk-note { font-size: 14px; color: #4a4458; margin: 12px 0 0; }
.etk-block { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: #fff4e5; color: #7a4a00; font-weight: 600; }
.etk-block.is-ok { background: #e8f6ee; color: #14573a; }
.etk-ready { padding: 14px 16px; border-radius: 14px; background: #fde7e5; border: 1px solid #f3b9b3; }
.etk-ready b { font-size: 18px; color: #9b1c12; } .etk-ready p { margin: 4px 0 0; }
.etk-ready.is-ok { background: #e8f6ee; border-color: #b7e0c6; } .etk-ready.is-ok b { color: #14573a; }
.etk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.etk-ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; } .etk-ul.ok li::marker { content: '✓  '; color: #1f7a4d; }
.etk-docs { margin: 14px 0 6px; }
.etk-exc { border-radius: 16px; padding: 14px 16px; margin: 0 0 12px; border: 1px solid; }
.etk-exc h4 { margin: 2px 0 6px; font-size: 17px; } .etk-exc p { margin: 4px 0; }
.etk-exc.is-warn { background: #fff4e5; border-color: #f3cf9b; } .etk-exc.is-bad { background: #fdeeec; border-color: #f3b9b3; }
.etk-exc.is-info { background: #eef1ff; border-color: #c5cdfb; } .etk-exc.is-ok { background: #e8f6ee; border-color: #b7e0c6; }
.etk-exc blockquote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid #b42318; background: #fff; border-radius: 0 10px 10px 0; }
.etk-by { font-size: 14px; color: #4a4458; }
.etk-notice { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; margin-top: 12px; padding: 10px 14px; border-radius: 12px; font-weight: 600; }
.etk-notice.is-ok { background: #dff3e8; color: #14573a; } .etk-notice.is-warn { background: #fdf0d9; color: #7a4a00; }
.doc.pending { border-color: #c5cdfb; background: #f7f8ff; }
.doc-eff { margin: 8px 0 0; font-size: 14px; color: #7a4a00; }
@media (max-width: 700px) { .etk-two { grid-template-columns: 1fr; } .etk-rows div { grid-template-columns: 1fr; gap: 2px; } .etk-sum { padding: 14px; } }

/* staff case review */
.etc-id { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-bottom: 14px; padding: 12px 16px; border-radius: 14px; background: #eef1fb; }
.etc-id b { font-size: 20px; } .etc-id .tw-lbl { width: 100%; margin: 0; } .etc-id span { color: #3a4360; font-size: 14px; }
.etc .etk { top: 0; }
.etc .etk-sum { margin-bottom: 16px; }
.etc-case { background: #fff; border: 1px solid #dfe3ee; border-radius: 16px; padding: 16px 18px; }
.etc-h { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; } .etc-h h3 { margin: 0 0 6px; text-transform: none; letter-spacing: 0; font-size: 18px; }
.etc-p { margin: 6px 0; }
.etc-lab { display: block; font-weight: 600; margin: 8px 0 6px; }
.etc-ta { width: 100%; box-sizing: border-box; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid #c3c9da; }
.etc-q { margin: 8px 0; padding: 8px 12px; border-left: 3px solid #2448c8; background: #f5f7ff; }
.etc-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.etc-log li { display: grid; grid-template-columns: 110px 1fr; gap: 0 10px; } .etc-log li span:last-child { grid-column: 2; color: #5d6680; }
.etc-none { padding: 14px 16px; border-radius: 14px; background: #f3f4f8; } .etc-none p { margin: 4px 0 0; }
.etc-dl { margin-top: 20px; }
.etc-docs { display: grid; gap: 6px; }
.etc-doc { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 12px; border: 1px solid #e3e6f0; border-radius: 10px; background: #fff; }
.etc-hub { margin: 0 0 18px; padding: 14px 16px; background: #fff; border: 1px solid #dfe3ee; border-radius: 16px; display: grid; gap: 8px; }
.etc-hrow { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; } .etc-hrow b { min-width: 90px; } .etc-hrow > span:nth-child(2) { flex: 1; min-width: 160px; }
@media (max-width: 700px) { .etc-log li { grid-template-columns: 1fr; } .etc-log li span:last-child { grid-column: 1; } }
html:has(.etk) { scroll-padding-top: 200px; }
@media (max-width: 700px) { html:has(.etk) { scroll-padding-top: 150px; } }
@media (max-width: 700px) { .etk-ops { margin-top: 6px; padding: 6px 8px; font-size: 12px; } .etk-ops-t { min-width: 0; flex-basis: 100%; } .etk-ops .etk-chip { font-size: 11px; } }
/* the staff page is hue-rotated (staff.css): counter-rotate so status colours read the same on both sides */
body.staff :is(.etk, .etk-sum, .etc-id, .etc-none, .etc-doc, .etc-hub .etk-chip) { filter: hue-rotate(65deg); }
