/* ============================================================
   Product pages: the overview (/product) and one page per group, starting
   with Admissions (/admissions). Hand-written HTML, unlike the integrations
   section. The page shell, .sec bands, crumb and CTA come from
   integrations.css, which these pages load first.

   Two things are new here. The group cards on the overview, which fold the
   product's many modules into six jobs. And the "mock": a small drawing of a
   KeelOS screen, built in HTML so it stays sharp and themeable. A mock is an
   ILLUSTRATION with invented data, and says so in its caption. Swap one for a
   real screenshot when there is one worth showing; do not dress a mock up to
   pass as one.
   ============================================================ */
.pd-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pd a { text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- overview: six groups ---------- */
.pd-groups { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.pd-group, .pd-group-a {
  position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%;
}
.pd-group { background: #fff; border: 3px solid var(--black); border-radius: 16px; box-shadow: var(--cube-shadow-l, 6px 6px 0 0 #000); padding: 24px 24px 22px; }
.pd-group.is-link { padding: 0; transition: transform .12s ease, box-shadow .12s ease; }
.pd-group.is-link:hover { background: var(--yellow); }
.pd-group.is-link:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 0 #000; }
.pd-group-a { padding: 24px 24px 22px; text-decoration: none; border-radius: 13px; }
.pd-num { font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: .12em; color: var(--pink); }
.pd-group h3 { font-size: var(--t-h3); }
.pd-group p { font-size: var(--t-body); line-height: var(--lh-body); }
.pd-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.pd-chips li { padding: 5px 10px; border: 2px solid var(--black); border-radius: 999px; background: #fff; font-family: var(--mono); font-size: 13px; font-weight: 700; line-height: 1.2; }
.pd-more { margin-top: auto; padding-top: 12px; font-family: var(--mono); font-weight: 700; font-size: 15px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- plain cards: "under all six", "who it is for" ---------- */
.pd-across { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.pd-across li { background: #fff; border: 3px solid var(--black); border-radius: 14px; box-shadow: var(--cube-shadow-m, 4px 4px 0 0 #000); padding: 20px 20px 18px; }
.pd-across h3 { font-size: 19px; margin-bottom: 8px; }
.pd-across p { font-size: 15.5px; line-height: 1.55; }

/* ---------- product page hero ---------- */
.pd-hero { padding-block: clamp(32px, 5vh, 56px) clamp(48px, 7vh, 80px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
/* a column that hugs its children, or the CTA (replaced by the PressButton
   island at load) stretches to the full width of the copy */
.pd-hero > div { display: flex; flex-direction: column; align-items: flex-start; }
.pd-hero h1 { font-size: var(--t-hero); letter-spacing: var(--trk-hero); line-height: var(--lh-hero); }
.pd-hero .sub { margin-top: var(--sp-head-lead); max-width: 46ch; font-size: var(--t-lead); line-height: var(--lh-lead); }
/* the PressButton island replaces the link at load and drops its margin, so
   the spacing lives on a wrapper */
.pd-hero-cta { margin-top: clamp(24px, 4vh, 36px); }

/* ---------- the stages strip ---------- */
.pd-stages-sec { padding-block: 0 clamp(48px, 7vh, 80px); }
.pd-stages { list-style: none; display: flex; justify-content: center; }
.pd-stages li {
  display: flex; align-items: center; gap: 8px; padding: 9px 16px 9px 11px; margin-right: -3px;
  border: 3px solid var(--black); background: #fff; font-weight: 600; font-size: 14.5px; white-space: nowrap;
}
.pd-stages li:first-child { border-radius: 999px 0 0 999px; }
.pd-stages li:last-child { border-radius: 0 999px 999px 0; margin-right: 0; }
.pd-stages li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--black); color: #fff; font-family: var(--mono); font-size: 13px; font-weight: 700; }
.pd-stages li.end { background: var(--green); }
.pd-stages-note { margin: 16px auto 0; max-width: 56ch; text-align: center; font-size: 15px; line-height: 1.5; color: var(--cube-gray-600, #5b5b5b); }

/* ---------- chapters: copy beside a mock ---------- */
.pd-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.pd-row.flip .pd-copy { order: 2; }
.pd-copy h2 { font-size: var(--t-h2); max-width: 18ch; }
.pd-copy > p { margin-top: var(--sp-head-lead); font-size: var(--t-lead); line-height: var(--lh-lead); max-width: 44ch; }
.pd-ticks { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.pd-ticks li { position: relative; padding-left: 30px; font-size: var(--t-body); line-height: var(--lh-body); }
.pd-ticks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 15px; height: 15px; background: var(--green); border: 2.5px solid var(--black); }
.pd-ticks b { font-weight: 700; }

/* ---------- the full list ---------- */
.pd-all { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 26px 28px; }
.pd-all h3 { font-size: 17px; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 3px solid var(--black); }
.pd-all ul { list-style: none; display: grid; gap: 7px; }
.pd-all ul li { font-size: 15px; line-height: 1.45; }
.pd-also { margin-top: clamp(32px, 5vh, 48px); text-align: center; font-size: var(--t-body); }

/* ---------- the way on: the next module, by name ----------
   The site's own white PressButton, under a small label. It is the secondary
   action on the page (Book a demo is the primary, in pink, just above), so it
   is the secondary button and no bigger. A full-width black slab was tried
   and out-shouted the demo button. Padded and lifted clear of the skewed grey
   band that can sit above it. */
.pd-next { position: relative; z-index: 1; padding-block: clamp(40px, 6vh, 64px) clamp(48px, 7vh, 80px); text-align: center; }
.pd-next .wrap { border-top: 2px dashed rgba(0,0,0,.22); padding-top: clamp(32px, 5vh, 48px); }
.pd-next .k { font-family: var(--mono); font-weight: 700; font-size: var(--t-label); letter-spacing: var(--trk-label); text-transform: uppercase; color: var(--pink); }
.pd-next .b { margin-top: 18px; }
/* Sized between the site's two buttons. The PressButton comes in a small
   (16px text, 47px tall) and a large (34px, 88px, used by Book a demo); the
   small one got lost under that and the large one would compete with it. The
   island sets its sizes with utility classes, hence the !important. */
.pd-next .b a, .pd-next .b a * { font-size: clamp(19px, 2.2vw, 24px) !important; line-height: 1.15 !important; }
.pd-next .b a { padding: 15px 24px !important; }
.pd-next .all { margin-top: 20px; font-family: var(--mono); font-weight: 700; font-size: 14px; }

/* ============================================================
   The mock: a drawing of a KeelOS screen. Sample data only.
   ============================================================ */
.mock { background: #fff; border: 3px solid var(--black); border-radius: 16px; box-shadow: var(--cube-shadow-xl, 10px 10px 0 0 #000); overflow: hidden; font-size: 14px; line-height: 1.35; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 3px solid var(--black); background: var(--cube-secondary-1100, #f4f4f4); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.mock-bar i:nth-child(2) { background: #febc2e; }
.mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar span { margin-left: 8px; font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.mock-body { padding: 16px; display: grid; gap: 14px; }
.mock figcaption { padding: 8px 14px; border-top: 2px dashed #cfcfcf; font-family: var(--mono); font-size: 12px; color: var(--cube-gray-600, #5b5b5b); }
.mock ul { list-style: none; }
.mock em { font-style: normal; font-family: var(--mono); font-weight: 700; font-size: 12px; padding: 4px 8px; border: 2px solid var(--black); border-radius: 999px; background: #fff; white-space: nowrap; }
.mock em.g { background: var(--green); }
.mock em.y { background: var(--yellow); }
.av { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--black); background: var(--cube-gray, #e5e5e5); font-family: var(--mono); font-weight: 700; font-size: 12px; }
.av.lg { width: 46px; height: 46px; font-size: 15px; background: var(--yellow); }

.m-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.m-stats li { padding: 9px 6px; border: 2px solid var(--black); border-radius: 10px; text-align: center; }
.m-stats li.on { background: var(--green); }
.m-stats b { display: block; font-size: 21px; font-weight: 800; line-height: 1.1; }
.m-stats span { font-size: 11px; }
.m-chart { border: 2px solid var(--black); border-radius: 10px; padding: 10px 12px 8px; }
.m-chart svg { display: block; width: 100%; height: 96px; }
.m-lbl { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-family: var(--mono); font-weight: 700; font-size: 12px; margin-bottom: 4px; }
.m-lbl span { font-weight: 400; display: inline-flex; align-items: center; gap: 5px; }
.m-lbl i { display: inline-block; width: 14px; height: 4px; background: var(--pink); margin-left: 6px; }
.m-lbl i.k2 { background: #b9b9b9; }
.m-rows { display: grid; gap: 8px; }
.m-rows li, .m-head { display: flex; align-items: center; gap: 10px; }
.m-rows li > span:nth-child(2), .m-head > div { flex: 1; min-width: 0; }
.m-rows b, .m-head b, .m-visits b, .m-move b { display: block; font-weight: 700; }
.m-head span, .m-visits div span, .m-move div > span:last-child { color: var(--cube-gray-600, #5b5b5b); font-size: 13px; }

.m-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-form label { display: grid; gap: 4px; font-family: var(--mono); font-size: 12px; font-weight: 700; }
.m-form label span { padding: 8px 10px; border: 2px solid var(--black); border-radius: 8px; font-family: var(--font); font-size: 14px; font-weight: 500; }
.m-warn { display: grid; gap: 3px; padding: 11px 12px; border: 2px solid var(--black); border-radius: 10px; background: var(--yellow); }
.m-warn b { font-weight: 700; }
.m-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; border-top: 2px dashed #cfcfcf; }
.m-tabs li, .m-pills li { padding: 5px 9px; border: 2px solid var(--black); border-radius: 8px; font-family: var(--mono); font-size: 12px; font-weight: 700; }
.m-tabs li.on, .m-pills li.on { background: var(--black); color: #fff; }
.m-tabs li b { margin-left: 4px; padding: 0 5px; border-radius: 999px; background: var(--pink); color: #fff; }
.m-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.m-log { display: grid; gap: 0; border: 2px solid var(--black); border-radius: 10px; }
.m-log li { display: grid; grid-template-columns: 58px 1fr; gap: 10px; padding: 9px 12px; }
.m-log li + li { border-top: 2px dashed #cfcfcf; }
.m-log span { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--cube-gray-600, #5b5b5b); }

.m-visits { display: grid; gap: 10px; }
.m-visits li { display: flex; align-items: center; gap: 12px; padding: 10px; border: 2px solid var(--black); border-radius: 10px; }
.m-visits .d { flex: none; width: 46px; text-align: center; font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.m-visits .d b { font-family: var(--font); font-size: 20px; font-weight: 800; line-height: 1; }
.m-visits div { flex: 1; min-width: 0; }

.m-move { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.m-move > div { padding: 12px; border: 2px solid var(--black); border-radius: 10px; display: grid; gap: 3px; }
.m-move > div.to { background: var(--green); }
.m-move .to > span:last-child { color: var(--ink); }
.m-move .arrow { font-family: var(--mono); font-weight: 700; font-size: 22px; color: var(--pink); }
.m-tag { font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.m-check { display: grid; gap: 7px; }
.m-check li { position: relative; padding-left: 24px; }
.m-check li::before { content: "\2713"; position: absolute; left: 0; font-weight: 800; color: #0a8f47; }

.m-funnel { display: grid; gap: 8px; }
.m-funnel li { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border: 2px solid var(--black); border-radius: 8px; overflow: hidden; isolation: isolate; }
.m-funnel li::before { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 0; width: var(--w); background: #ffd9ec; }
.m-funnel li.on::before { background: var(--green); }
.m-funnel b { font-weight: 800; }

/* Today: tiles, then a worklist of who needs what */
.m-stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.m-stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.m-stats li.r { background: #ffe1e1; }
.m-stats li.y { background: var(--yellow); }
.m-stats b { overflow-wrap: anywhere; }
.m-work { display: grid; gap: 8px; }
.m-work li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 2px solid var(--black); border-radius: 10px; }
.m-work li > span:not(.av) { flex: 1; min-width: 0; }
.m-work b { display: block; font-weight: 700; }
.m-work small { display: block; margin-top: 2px; font-size: 12px; color: var(--cube-gray-600, #5b5b5b); }
.m-work em { flex: none; min-width: 78px; text-align: center; }
.mock em.r { background: #ffe1e1; }
.m-work .btn { flex: none; font-style: normal; font-family: var(--mono); font-weight: 700; font-size: 12px; padding: 6px 9px; border: 2px solid var(--black); border-radius: 8px; background: var(--black); color: #fff; white-space: nowrap; }
.m-work .btn.ghost { background: #fff; color: var(--ink); }

/* the record: stage track and the likelihood card */
.m-track { display: flex; flex-wrap: wrap; gap: 5px; }
.m-track li { padding: 4px 8px; border: 2px solid var(--black); border-radius: 7px; font-family: var(--mono); font-size: 11.5px; font-weight: 700; }
.m-track li.d { background: var(--cube-gray, #e5e5e5); }
.m-track li.on { background: var(--black); color: #fff; }
.m-score { border: 2px solid var(--black); border-radius: 10px; padding: 12px; }
.m-score p { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.m-score p b { font-weight: 700; }
.m-score ul { display: grid; gap: 6px; }
.m-score li { display: grid; grid-template-columns: 42px 1fr; gap: 8px; }
.m-score i { font-style: normal; font-family: var(--mono); font-weight: 700; }
.m-score i.p { color: #0a8f47; }

/* events: a card each, with a capacity bar */
.m-events { display: grid; gap: 10px; }
.m-events li { display: grid; gap: 4px; padding: 11px 12px; border: 2px solid var(--black); border-radius: 10px; }
.m-events b { font-weight: 700; }
.m-events li > span { font-size: 13px; color: var(--cube-gray-600, #5b5b5b); }
.m-events .bar { display: block; height: 8px; margin: 5px 0 3px; border: 2px solid var(--black); border-radius: 999px; background: linear-gradient(90deg, var(--pink) var(--w), #fff var(--w)); }
.m-events p { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }

/* Blocks that mirror the real screens: the module's tab bar, a titled panel of
   label and value rows, a plain table, on/off feature rows, a side menu.
   Most of KeelOS outside Admissions is made of exactly these. */
.m-tabsbar { display: flex; flex-wrap: wrap; gap: 4px 14px; padding-bottom: 8px; border-bottom: 2px solid var(--black); font-size: 13px; font-weight: 600; }
.m-tabsbar li { color: var(--cube-gray-600, #5b5b5b); }
.m-tabsbar li.on { color: var(--ink); box-shadow: 0 10px 0 -7px var(--pink); }
.m-tabsbar i { font-style: normal; margin-left: 3px; padding: 0 6px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 11px; }
.m-kv { display: grid; gap: 8px; }
.m-kv > b, .m-table > b, .m-cols b, .m-menu b { font-weight: 700; font-size: 13.5px; }
.m-kv dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; padding: 10px 12px; border: 2px solid var(--black); border-radius: 10px; }
.m-kv dt { color: var(--cube-gray-600, #5b5b5b); font-size: 13px; }
.m-kv dd { font-weight: 600; text-align: right; }
.m-table { display: grid; gap: 8px; }
.m-table table { width: 100%; border-collapse: separate; border-spacing: 0; border: 2px solid var(--black); border-radius: 10px; overflow: hidden; font-size: 13.5px; }
.m-table th { text-align: left; padding: 7px 10px; background: var(--cube-secondary-1100, #f4f4f4); font-family: var(--mono); font-size: 11.5px; font-weight: 700; border-bottom: 2px solid var(--black); }
.m-table td { padding: 8px 10px; border-top: 2px dashed #dcdcdc; vertical-align: middle; }
.m-table tr:first-child td { border-top: 0; }
.m-table td b { font-weight: 700; }
.m-table .mut { font-style: normal; color: var(--cube-gray-600, #5b5b5b); }
.m-sw { display: grid; gap: 0; border: 2px solid var(--black); border-radius: 10px; }
.m-sw li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.m-sw li + li { border-top: 2px dashed #dcdcdc; }
.m-sw li span { flex: 1; }
.m-sw i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--black); background: #ff6b6b; }
.m-sw i.on { background: var(--green); }
.m-note { font-size: 12.5px; line-height: 1.45; color: var(--cube-gray-600, #5b5b5b); }
.m-ryg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 12px; border: 2px solid var(--black); border-radius: 10px; font-size: 13.5px; }
.m-ryg li { display: flex; align-items: center; gap: 6px; }
.m-ryg li.r::before, .m-ryg li.y::before, .m-ryg li.g::before { content: ""; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--black); background: #ff6b6b; }
.m-ryg li.y::before { background: var(--yellow); }
.m-ryg li.g::before { background: var(--green); }
.m-ryg b { font-weight: 800; }
.m-ryg .go { margin-left: auto; }
.mock .btn { font-style: normal; font-family: var(--mono); font-weight: 700; font-size: 12px; padding: 6px 9px; border: 2px solid var(--black); border-radius: 8px; background: var(--black); color: #fff; white-space: nowrap; }
.m-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.m-cols.one { grid-template-columns: 1fr; }
.m-cols > div { display: grid; gap: 6px; align-content: start; }
.ck { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.ck::before { content: ""; width: 13px; height: 13px; border: 2px solid var(--black); border-radius: 3px; background: #fff; }
.ck.on::before { background: var(--pink); box-shadow: inset 0 0 0 2px #fff; }
.m-menu { display: grid; gap: 12px; }
.m-menu > div { display: grid; gap: 0; border: 2px solid var(--black); border-radius: 10px; overflow: hidden; }
.m-menu b { padding: 7px 12px; background: var(--cube-secondary-1100, #f4f4f4); font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; border-bottom: 2px solid var(--black); }
.m-menu span { padding: 8px 12px; }
.m-menu span + span { border-top: 2px dashed #dcdcdc; }
.m-ask { padding: 14px; border: 2px solid var(--black); border-radius: 10px; background: #fff; font-size: 15px; box-shadow: 3px 3px 0 0 var(--pink); }

/* buttons inside a mock, anywhere */
.mock .btn.ghost { background: #fff; color: var(--ink); }
.m-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.m-table td .btn { display: inline-block; }

/* A timetable: days across, periods down, as the product draws it. Each
   cell is a subject over its teacher's initials and the room. */
.m-ttg table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; border: 2px solid var(--black); border-radius: 10px; overflow: hidden; }
.m-ttg th, .m-ttg td { padding: 6px 3px; text-align: center; vertical-align: middle; border-left: 2px solid #e2e2e2; border-top: 2px solid #e2e2e2; }
.m-ttg thead th { border-top: 0; background: var(--cube-secondary-1100, #f4f4f4); font-family: var(--mono); font-size: 11.5px; font-weight: 700; border-bottom: 2px solid var(--black); }
.m-ttg tr > :first-child { border-left: 0; width: 40px; }
.m-ttg tbody th { font-family: var(--mono); font-size: 12px; font-weight: 700; background: var(--cube-secondary-1100, #f4f4f4); }
.m-ttg tbody th small { display: block; font-weight: 400; font-size: 10px; color: var(--cube-gray-600, #5b5b5b); }
.m-ttg td b { display: block; font-size: 11.5px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
.m-ttg td span { display: block; margin-top: 2px; font-size: 10px; line-height: 1.25; color: var(--cube-gray-600, #5b5b5b); }
.m-ttg .now { background: #fff6cc; }
.m-ttg thead .now { background: var(--yellow); }
.m-ttg td.free { font-size: 11px; color: var(--cube-gray-600, #5b5b5b); font-style: italic; }

/* one teacher's day, as on the KeelOS dashboard */
.m-day { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.m-day li { display: grid; gap: 2px; padding: 9px 10px; border: 2px solid var(--black); border-radius: 10px; }
.m-day b { font-family: var(--mono); font-size: 12px; color: var(--pink); }
.m-day span { font-weight: 700; font-size: 13.5px; line-height: 1.25; }
.m-day small { font-size: 11.5px; color: var(--cube-gray-600, #5b5b5b); }
.m-day li.free { border-style: dashed; }
.m-day li.free span { font-weight: 500; color: var(--cube-gray-600, #5b5b5b); }

/* a labelled bar: attendance and the like */
.m-bar p { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 4px; }
.m-bar p b { font-weight: 800; }
.m-bar i { display: block; height: 12px; border: 2px solid var(--black); border-radius: 999px; background: linear-gradient(90deg, var(--green) var(--w), #fff var(--w)); }

/* a list of checks: passed or needing attention, as on Invoicing and on a
   member of staff's recruitment checks */
.m-checks { display: grid; gap: 7px; }
.m-checks li { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 2px solid var(--black); border-radius: 10px; border-left-width: 8px; }
.m-checks li.ok { border-left-color: var(--green); }
.m-checks li.warn { border-left-color: var(--yellow); background: #fffbe6; }
.m-checks li > span { flex: 1; min-width: 0; font-size: 12.5px; color: var(--cube-gray-600, #5b5b5b); line-height: 1.35; }
.m-checks li > span b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }

/* numbered steps with one current */
.m-steps { list-style: none; counter-reset: st; display: grid; gap: 6px; }
.m-steps li { counter-increment: st; display: flex; align-items: center; gap: 10px; padding: 8px 11px; border: 2px solid var(--black); border-radius: 10px; font-weight: 600; }
.m-steps li::before { content: counter(st); display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--black); font-family: var(--mono); font-size: 12px; }
.m-steps li.done { background: var(--cube-secondary-1100, #f4f4f4); color: var(--cube-gray-600, #5b5b5b); }
.m-steps li.done::before { content: "\2713"; background: var(--green); }
.m-steps li.on { background: var(--yellow); }

/* buildings and their rooms */
.m-tree { display: grid; gap: 8px; }
.m-tree > li { padding: 9px 11px; border: 2px solid var(--black); border-radius: 10px; }
.m-tree b { font-weight: 700; }
.m-tree ul { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 5px; }
.m-tree ul li { padding: 3px 8px; border: 2px solid var(--black); border-radius: 7px; font-family: var(--mono); font-size: 11.5px; font-weight: 700; }

/* A phone, for the School Run app: the same black frame and hard shadow as
   the other mocks, taller and narrower, with a speaker slot where they have a
   title bar. Drawn, like the rest; the app's own store artwork was tried here
   and its soft photo style sat badly beside the others. */
.mock.phone { max-width: 330px; margin-inline: auto; border-radius: 38px; border-width: 4px; }
.pd-row .mock.phone { width: 100%; }
.ph-top { display: grid; place-items: center; padding: 12px 0 2px; }
.ph-top span { width: 84px; height: 20px; border-radius: 999px; background: var(--black); }
.mock.phone .mock-body { padding: 12px 16px 16px; gap: 12px; }
.mock.phone figcaption { text-align: center; padding-bottom: 14px; }
.ph-title { display: flex; align-items: baseline; justify-content: space-between; }
.ph-title b { font-size: 20px; font-weight: 800; }
.ph-title span { font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); }
.ph-week { display: flex; justify-content: space-between; align-items: center; padding: 7px 12px; border: 2px solid var(--black); border-radius: 999px; font-weight: 600; font-size: 13px; }
.ph-week span { font-weight: 800; }
.ph-events { display: grid; gap: 7px; }
.ph-events .day { margin-top: 3px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cube-gray-600, #5b5b5b); }
.ph-events li:not(.day) { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 2px solid var(--black); border-radius: 12px; box-shadow: 3px 3px 0 0 #000; background: #fff; }
.ph-events li > span:not(.av) { flex: 1; min-width: 0; font-size: 12px; color: var(--cube-gray-600, #5b5b5b); }
.ph-events li b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.ph-events .ic { flex: none; width: 26px; height: 26px; border: 2px solid var(--black); border-radius: 8px; background: var(--pink); }
.ph-events .ic.g { background: var(--green); }
.ph-events .ic.y { background: var(--yellow); }
.ph-events .av { width: 26px; height: 26px; font-size: 11px; }
.ph-events .av.a { background: var(--yellow); }
.ph-events .av.t { background: var(--green); margin-left: -4px; }
.ph-events .av.a + .av.t { margin-left: -14px; }
.ph-remind { padding: 10px 12px; border: 2px solid var(--black); border-radius: 12px; background: var(--black); color: #fff; font-size: 13px; line-height: 1.35; }
.ph-remind b { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }

/* School Run: a stack of notifications, and the systems it reads */
.m-notif { display: grid; gap: 10px; }
.m-notif li { display: flex; align-items: flex-start; gap: 11px; padding: 11px 12px; border: 2px solid var(--black); border-radius: 12px; box-shadow: 3px 3px 0 0 #000; background: #fff; }
.m-notif .sr { flex: none; width: 30px; height: 30px; border: 2px solid var(--black); border-radius: 9px; background: var(--pink); }
.m-notif li > span { flex: 1; min-width: 0; font-size: 13px; line-height: 1.4; }
.m-notif b { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 700; }
.m-notif small { flex: none; font-family: var(--mono); font-size: 11.5px; font-weight: 400; color: var(--cube-gray-600, #5b5b5b); }
.m-flow { gap: 0 !important; }
.m-flow .hub { justify-self: center; display: grid; gap: 2px; padding: 14px 26px; text-align: center; background: var(--black); color: #fff; border-radius: 14px; box-shadow: 4px 4px 0 0 var(--pink); }
.m-flow .hub b { font-size: 22px; font-weight: 800; line-height: 1.1; }
.m-flow .hub small { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.m-flow svg { display: block; width: 100%; height: 76px; margin-top: 6px; }
.m-flow svg path { fill: none; stroke: #000; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.m-flow .src { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.m-flow .src li { display: grid; place-items: center; min-height: 46px; padding: 6px 3px; text-align: center; border: 2px solid var(--black); border-radius: 9px; font-family: var(--mono); font-size: 11px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.m-flow .src li:nth-child(1) { background: #ffd9ec; }
.m-flow .src li:nth-child(2) { background: var(--yellow); }
.m-flow .src li:nth-child(3) { background: #fff; }
.m-flow .src li:nth-child(4) { background: var(--green); }
.m-flow .src li:nth-child(5) { background: #d9ecff; }
.m-flow .m-note { margin-top: 14px; text-align: center; }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .pd-hero, .pd-row { grid-template-columns: minmax(0, 1fr); }
  .pd-row.flip .pd-copy { order: 0; }
  .pd-copy h2 { max-width: none; }
  .m-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .m-stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-day { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-ttg th, .m-ttg td { padding: 5px 3px; }
  .m-ttg td span { font-size: 9.5px; }
  .m-work li { flex-wrap: wrap; }
  .m-work em { min-width: 0; }
  .m-move { grid-template-columns: minmax(0, 1fr); }
  .m-move .arrow { justify-self: center; transform: rotate(90deg); }
}

/* The stages run as one joined bar only where all seven fit on a line. Below
   that they become separate pills that wrap; a joined bar that wraps leaves
   square ends hanging mid-row. */
@media (max-width: 1180px) {
  .pd-stages { flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
  .pd-stages li, .pd-stages li:first-child, .pd-stages li:last-child { border-radius: 999px; margin-right: 0; }
  .pd-stages-note { text-align: left; margin-inline: 0; }
}

/* On a phone the timetable keeps four days: five columns leave no room for a
   subject name. */
@media (max-width: 480px) {
  .m-ttg th:nth-child(6), .m-ttg td:nth-child(6) { display: none; }
}

/* The longest module name ("Parents and communication") is wider than a phone
   at the desktop size, so it steps down and may wrap. */
@media (max-width: 520px) {
  .pd-next .b a, .pd-next .b a * { font-size: 17px !important; }
  .pd-next .b a { padding: 13px 18px !important; max-width: 100%; white-space: normal !important; text-align: center; }
  .pd-next .b, .pd-next .b > span { max-width: 100%; }
}
