/* ══════════════════════════════════════════════════════════════════════════
   Operations OS — the maintenance example page · layer v0.1 (2026-10-05)

   Loads after ops.css and uses its tokens and its drawing alphabet; everything specific to this page is
   prefixed `oxe-`.

   THE ONE DRAWING. Four circles in a row (the four people of the example), and one square (the request).
   The square sits INSIDE the circle of whoever owns the request at that station: ownership is the square
   with exactly one circle. Around it:
   - a dashed circle has not confirmed receipt yet;
   - a heavy circle is carrying out the current step;
   - a double circle holds the authority to approve;
   - CORAL appears at one station only, where the wait passes its agreed time: the request becomes a
     coral-EDGED square (the exception) and the approver's circle turns coral (the human decision now due).
   verify.py's R-CORAL rule reads this file: coral may be painted only by a `halt` or `human` selector.

   NO MOTION of its own: the shared entrance only. The drawings are the end state, in the markup.
   ══════════════════════════════════════════════════════════════════════════ */

.oxe-page { --oxe-solid: var(--v4-on-ink); }
.oxe-page .ros-sec--cream { --oxe-solid: var(--v4-on-light); }

/* ── the question, the label, the request ───────────────────────────────── */

.oxe-hero { padding-block: clamp(18px, 2.6vw, 40px) clamp(48px, 6vw, 96px); }
.oxe-hero__in { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 981px) { .oxe-hero__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }

.oxe-flag { margin: 0 0 16px; }
.oxe-flag .ox-tag { color: var(--v4-on-ink); font-weight: 700; }

/* 1.4, not 1.32: at 1.32 the tanween of «واضحاً» stood 1.6px from the line above (check-line-collisions.mjs,
   2026-10-09). Not touching, and under the 2px floor the system page's headings now keep. */
.oxe-h1 {
  font-size: clamp(27px, 3.3vw, 46px); line-height: 1.4; font-weight: 900;
  margin: 0 0 18px; max-width: 22ch; text-wrap: balance;
}
/* the status line. Dashed, as the truth tag is: dashed means illustrative. */
.oxe-status {
  margin: 0 0 clamp(20px, 2.6vw, 30px); padding: 12px 16px; max-width: 48ch;
  font-size: var(--v4-fs-4); line-height: 1.75; font-weight: 700;
  border: 1px dashed var(--ox-line-strong); border-radius: 6px;
}
.oxe-lead { font-size: var(--v4-fs-5); line-height: 1.85; color: rgba(253, 246, 242, .86); margin: 0 0 14px; max-width: 50ch; }
.oxe-lead--turn { color: var(--v4-on-ink); font-weight: 700; margin-bottom: 0; }

.oxe-open {
  background: linear-gradient(160deg, #161d31 0%, #10162a 100%);
  border: 1px solid var(--ox-line-strong); border-radius: 6px;
  padding: clamp(18px, 2.4vw, 30px) clamp(12px, 2vw, 26px);
}
/* the request: a square, then what it is */
.oxe-open__req {
  display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 14px; align-items: start;
  margin: 0 0 clamp(20px, 2.6vw, 30px); padding: 0 6px clamp(18px, 2.4vw, 26px);
  border-bottom: 1px solid var(--v4-line);
  font-size: var(--v4-fs-5); line-height: 1.7; font-weight: 800;
}
.oxe-open__req::before { content: ""; width: 16px; height: 16px; margin-top: .42em; background: var(--oxe-solid); }

/* ── the cast: four circles, one square ─────────────────────────────────── */

.oxe-cast { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.oxe-node { display: grid; justify-items: center; align-content: start; gap: 7px; text-align: center; min-width: 0; }
.oxe-node__ico { position: relative; width: 48px; height: 48px; display: grid; place-items: center; }
.oxe-node__who { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ox-line-strong); }
.oxe-node__req { position: relative; display: none; width: 16px; height: 16px; box-sizing: border-box; }
.oxe-node__name { font-size: var(--v4-fs-2); line-height: 1.45; font-weight: 500; color: var(--ox-label); }
.oxe-node__tag { font-size: 13px; line-height: 1.4; font-weight: 700; color: var(--ox-label); }

/* whoever has a part at this station reads in full; the others stay as scaffolding */
.oxe-node.is-owner .oxe-node__name, .oxe-node.is-doing .oxe-node__name,
.oxe-node.is-approver .oxe-node__name, .oxe-node.is-pending .oxe-node__name { color: var(--oxe-solid); font-weight: 800; }
.oxe-cast--idle .oxe-node__name { color: var(--v4-on-ink); font-weight: 700; }

/* the owner: the square inside the circle, and the circle in sage (ownership held) */
.oxe-node.is-owner .oxe-node__who { border: 2.5px solid var(--ox-sage); }
.oxe-node.is-owner .oxe-node__req { display: block; background: var(--oxe-solid); }
/* has not confirmed receipt yet */
.oxe-node.is-pending .oxe-node__who { border: 2px dashed var(--oxe-solid); }
/* carries out the current step */
.oxe-node.is-doing .oxe-node__who { border: 3.5px solid var(--oxe-solid); }
/* holds the authority to approve: a double circle */
.oxe-node.is-approver .oxe-node__who { border: 2px solid var(--oxe-solid); box-shadow: 0 0 0 3px var(--ox-face), 0 0 0 5px var(--ox-line-strong); }
/* the wait has passed its agreed time: the request is an exception, the decision is a person's */
.oxe-node.is-halt .oxe-node__req { background: transparent; border: 3.5px solid var(--ox-coral); }
.oxe-node.is-human .oxe-node__who { border: 2.5px solid var(--ox-coral); box-shadow: 0 0 0 3px var(--ox-face), 0 0 0 5px var(--ox-coral); }

/* ── the six stations ───────────────────────────────────────────────────── */

.oxe-stations { list-style: none; margin: 0; padding: 0; }
.oxe-station {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 0;
  padding-block: clamp(28px, 3.6vw, 48px); padding-inline-start: 38px;
}
.oxe-station:first-child { padding-top: 0; }
.oxe-station:last-child { padding-bottom: 0; }
/* the rail */
.oxe-station::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 7px; width: 2px; background: var(--ox-line); }
.oxe-station:first-child::before { inset-block-start: 14px; }
.oxe-station:last-child::before { inset-block-end: auto; height: clamp(40px, 5vw, 62px); }
.oxe-station:only-child::before { display: none; }
@media (min-width: 981px) {
  .oxe-station { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: clamp(32px, 4.5vw, 72px); align-items: start; }
  .oxe-station__title { grid-column: 1 / -1; }
}

.oxe-station__title {
  position: relative; margin: 0;
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; font-weight: 900;
}
/* the request, at this station */
.oxe-station__title::before {
  content: ""; position: absolute; inset-inline-start: -38px; top: .5em;
  width: 16px; height: 16px; box-sizing: border-box; background: var(--oxe-solid);
}
.oxe-station--halt .oxe-station__title::before { background: var(--v4-cream); border: 3.5px solid var(--ox-coral); }

.oxe-p { font-size: var(--v4-fs-5); line-height: 1.9; margin: 0 0 14px; max-width: 54ch; }
.oxe-station__text > :last-child { margin-bottom: 0; }

/* what the request carries while it waits for approval */
.oxe-terms {
  list-style: none; margin: 4px 0 16px; padding: 0; max-width: 54ch;
  background: var(--ox-face); border: 1px solid var(--ox-line); border-radius: 6px;
}
.oxe-terms li { padding: 11px 16px; border-top: 1px solid var(--ox-line); font-size: var(--v4-fs-4); line-height: 1.75; }
.oxe-terms li:first-child { border-top: 0; }
.oxe-terms b { font-weight: 800; }

.oxe-fig {
  background: var(--ox-face); border: 1px solid var(--ox-line); border-radius: 6px;
  padding: clamp(16px, 2vw, 24px) clamp(8px, 1.6vw, 22px);
}
/* the state the request shows, where the example names one */
.oxe-state {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  margin: clamp(14px, 2vw, 20px) clamp(4px, .8vw, 8px) 0; padding-top: clamp(12px, 1.6vw, 16px);
  border-top: 1px dashed var(--ox-line-strong);
  font-size: var(--v4-fs-3); line-height: 1.6; font-weight: 700;
}
.oxe-state__sq { flex: none; width: 11px; height: 11px; box-sizing: border-box; background: var(--oxe-solid); }
.oxe-state--halt .oxe-state__sq { background: transparent; border: 2.5px solid var(--ox-coral); }
.oxe-halt-tag { color: var(--ox-coral); font-weight: 800; }

/* the ending, drawn: the request closed, and what its record holds. Sage is resolution. A reader's tool, not
   decoration: it is not hidden from screen readers. */
.oxe-record {
  background: var(--ox-face); border: 1.5px solid var(--ox-sage); border-radius: 6px;
  padding: clamp(14px, 1.8vw, 20px) clamp(14px, 1.8vw, 22px);
}
.oxe-record__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 0 10px; }
.oxe-record__head b { font-size: var(--v4-fs-4); font-weight: 800; }
.oxe-record .oxe-state { margin: 0 0 12px; padding-top: 0; border-top: 0; }
.oxe-state--closed .oxe-state__sq { background: var(--ox-sage); }
.oxe-record__rows { margin: 0; }
.oxe-record__rows div {
  display: grid; grid-template-columns: minmax(0, 7.2em) minmax(0, 1fr); gap: 2px 14px;
  padding: 9px 0; border-top: 1px solid var(--ox-line); font-size: var(--v4-fs-3); line-height: 1.7;
}
.oxe-record__rows dt { color: var(--ox-label); }
.oxe-record__rows dd { margin: 0; font-weight: 700; }
/* desktop: the record sits under the drawing, in its column; the text runs beside both */
@media (min-width: 981px) {
  .oxe-station--closes .oxe-station__text { grid-row: 2 / span 2; }
  .oxe-station--closes .oxe-fig { grid-column: 2; grid-row: 2; }
  .oxe-station--closes .oxe-record { grid-column: 2; grid-row: 3; }
}

/* ── what management sees ───────────────────────────────────────────────── */

.oxe-mgmt__in { display: grid; gap: clamp(24px, 4vw, 64px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 981px) { .oxe-mgmt__in { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.oxe-mgmt .ros-lede { margin-bottom: 0; }
.oxe-mgmt .ox-board__below p { margin: 0; }

/* ── how we would know ──────────────────────────────────────────────────── */

.oxe-value {
  font-size: clamp(19px, 2vw, 23px); line-height: 1.8; font-weight: 800;
  margin: clamp(22px, 3vw, 36px) 0 0; max-width: 46ch;
  padding-inline-start: 18px; border-inline-start: 3px solid var(--ox-line-strong);
}

/* ── the label again, where the system stands, the one ask ──────────────── */

/* phone, top to bottom: what this was, where the system stands, then the ask. Desktop: the statement and the ask in
   one column, the standing beside them. */
.oxe-close__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(26px, 4vw, 44px) clamp(32px, 5vw, 80px); align-items: start; }
@media (min-width: 981px) {
  .oxe-close__in { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: "say where" "ask where"; }
  .oxe-close__say { grid-area: say; }
  .oxe-where { grid-area: where; }
  .oxe-close__ask { grid-area: ask; }
}
.oxe-closing {
  font-size: clamp(22px, 2.6vw, 34px); line-height: 1.5; font-weight: 900;
  margin: 0; max-width: 28ch; text-wrap: balance;
}
.oxe-where {
  background: linear-gradient(160deg, #161d31 0%, #10162a 100%);
  border: 1px solid var(--ox-line-strong); border-radius: 6px;
  padding: clamp(18px, 2.4vw, 30px);
}
.oxe-where .ox-eyebrow { margin-bottom: 14px; }
.oxe-where .ox-disclose p { color: rgba(253, 246, 242, .92); font-size: var(--v4-fs-4); }
.oxe-close .ox-cta { display: grid; justify-items: start; gap: 10px; margin-top: 0; }

/* ── phone ──────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .oxe-station { padding-inline-start: 28px; }
  .oxe-station__title::before { inset-inline-start: -28px; width: 14px; height: 14px; }
  .oxe-station::before { inset-inline-start: 6px; }
  .oxe-node__ico { width: 42px; height: 42px; }
  .oxe-fig { padding-inline: 6px; }
  .oxe-open { padding-inline: 8px; }
}
@media (max-width: 359px) {
  .oxe-h1 { font-size: 25px; }
  .oxe-node__ico { width: 38px; height: 38px; }
  .oxe-node__name { font-size: 13px; }
  .oxe-node__tag { font-size: 12px; }
}

@media (forced-colors: active) {
  .oxe-node__req, .oxe-state__sq, .oxe-station__title::before, .oxe-open__req::before { forced-color-adjust: none; background: CanvasText; }
  .oxe-node.is-halt .oxe-node__req, .oxe-state--halt .oxe-state__sq, .oxe-station--halt .oxe-station__title::before { background: Canvas; border-color: Highlight; }
}
