/* /incident-response/ (owner, 24 Nov 2026: "dont stray so far from the contact page"). The page is /contact/'s layout
   and components: the compact hero with "What happens next" beside the copy (assets/css/company.css, contact.css .ct-next),
   then the form on a lit light ground with the cards beside it (.form-wrap, .ct-form, .ct-aside, .ct-card).
   This file adds only the urgency layer and the column balance:
   - the status bar (2 px alert-red rule, live dot) and the alert eyebrow;
   - the evidence note as a contact card with one accent (the alert-red warning icon);
   - the form's heading inside the card;
   - the form and the cards end on one line from 1024 px;
   - the full recovery as a stage track with drawn records.
   One urgency accent (alert red: status bar rule, live dot, eyebrow, evidence icon); teal is the action. Tokens only. */

/* ------------------------------------------------------------ the status bar, at the top of the contact hero */
.ir-alert { border-top: 2px solid var(--red-500); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--navy-850), color-mix(in srgb, var(--navy-850) 40%, transparent)); }
.ir-alert .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 40px; }
.ir-live { display: inline-flex; align-items: center; gap: 10px; margin: 0; font: 500 var(--fs-xs)/1.2 var(--mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--ink-50); }
.ir-pulse { flex: none; width: 8px; height: 8px; border-radius: var(--r-full); background: var(--red-500); animation: ir-pulse 2s var(--ease-standard) infinite; }
@keyframes ir-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--red-500) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }

/* The alert eyebrow (the contact eyebrow is teal). */
.co-hero-copy .ir-eb { display: inline-flex; align-items: center; gap: 10px; color: var(--red-300); }
.co-hero-copy .ir-eb::before { content: ''; width: 18px; height: 2px; background: var(--red-500); }

/* "Report an incident" jumps to the form where the form is below the first screen (one column, below 1024 px). */
@media (min-width: 1024px) { .co-hero-copy .ir-jump { display: none; } }

/* The hero columns: the copy and "What happens next" start and end together (contact centres them). */
@media (min-width: 1024px) {
  .ir-hero .co-hero-grid { align-items: stretch; padding-top: var(--sp-5); }   /* clear of the status bar */
  .ir-hero .co-hero-copy .breadcrumbs { padding-top: 0; }
  .ir-hero .co-hero-copy { display: flex; flex-direction: column; justify-content: center; }
  .ir-hero .ct-next { display: flex; flex-direction: column; justify-content: center; }
}

/* ------------------------------------------------------------ the form card and the cards beside it */
/* The form's heading, inside the contact form card. */
.ir-form-head { padding-bottom: var(--sp-4); border-bottom: 1px solid var(--paper-line); }
.ir-form-head .h3 { margin: 0; color: var(--paper-ink); }
.ir-form-head p { margin: var(--sp-1) 0 0; font-size: var(--fs-sm); color: var(--paper-ink-2); }

/* The evidence note: a contact card; its one accent is the alert-red warning icon. */
.ir-keep .ct-card-k { color: var(--paper-ink); }
.ir-keep .ct-card-k svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--red-500); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Balance from 1024 px: the form and the cards end on one line. The cards share the column's height (each grows by the
   same amount from its own content, its link kept at its foot); if the cards are the taller column, the message box takes up the difference instead. */
@media (min-width: 1024px) {
  .ir-wrap { align-items: stretch; }
  .ir-wrap .ct-aside { display: flex; flex-direction: column; }
  .ir-wrap .ct-card { flex: 1 0 auto; align-content: start; }
  .ir-wrap .ct-card .lnk { align-self: end; }
  .ir-wrap .ir-form { grid-template-rows: auto auto auto minmax(0, 1fr) auto auto auto; row-gap: 0; }
  .ir-form > .ir-form-head { grid-row: 1; margin-bottom: var(--sp-4); }
  .ir-form > .err-summary { grid-row: 2; margin-bottom: var(--sp-4); }
  .ir-form > .field.half { grid-row: 3; margin-bottom: var(--sp-4); }
  .ir-form > .field:has(> textarea) { grid-row: 4; grid-template-rows: auto minmax(110px, 1fr) auto; margin-bottom: var(--sp-4); }
  .ir-form > .check { grid-row: 5; margin-bottom: var(--sp-4); }
  .ir-form > .actions { grid-row: 6; }
  .ir-form > .form-status { grid-row: 7; margin-top: var(--sp-4); }
}

/* ------------------------------------------------------------ the full recovery: a stage track */
/* Owner, 25 Nov 2026: "full recovery process needs a redesign". Five stages on a numbered track (horizontal from
   1280 px, vertical below). Each stage is a .card with a drawn well (.ir-art: the platform's record style, as the
   Records cards on /platform/management/: a soft teal glow over deeper navy, the drawing rising from the well's bottom
   edge), then the approved title and line. Numbers on the track in contact's step style (navy disc, teal ring). The
   product UI primitives (.ui, .ui-bar, .chip, .sev) are copied from the platform kit, scoped to this section. */
.ir-track { --node: 32px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-4); margin: 0; padding: 0; list-style: none; }
.ir-stage { position: relative; display: flex; flex-direction: column; min-width: 0; padding-top: calc(var(--node) + var(--sp-4)); }
.ir-stage::before { content: ''; position: absolute; top: calc(var(--node) / 2 - 1px); left: var(--node); right: calc(-1 * var(--sp-4)); height: 2px;
  background: linear-gradient(90deg, var(--teal-400), var(--teal-a24)); }
.ir-stage:last-child::before { content: none; }
.ir-node { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: var(--node); height: var(--node); border-radius: var(--r-full);
  background: var(--navy-950); border: 2px solid var(--teal-400); font: 600 var(--fs-sm)/1 var(--mono); color: var(--teal-300); }
.ir-stage:first-child .ir-node { background: var(--teal-400); color: var(--navy-950); box-shadow: 0 0 0 6px var(--teal-a12); }

.ir-card { flex: 1 1 auto; align-items: stretch; padding: 0; overflow: hidden; }
.ir-art { position: relative; isolation: isolate; display: flex; justify-content: center; align-items: flex-end; height: 200px; padding: var(--sp-6) var(--sp-3) 0; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(70% 85% at 50% 0%, var(--teal-a12), transparent 72%),
    linear-gradient(180deg, color-mix(in srgb, var(--navy-950) 55%, transparent), color-mix(in srgb, var(--navy-950) 25%, transparent)); }
.ir-art > * { flex: 1 1 auto; max-width: 260px; min-width: 0; }
.ir-txt { padding: var(--sp-5); }
.ir-txt .h3 { margin: 0 0 var(--sp-2); }
.ir-txt p { margin: 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-200); }

/* the platform kit, scoped */
.ir-rec .ui { position: relative; background: linear-gradient(180deg, var(--navy-850), var(--navy-900)); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  color: var(--ink-200); font: 400 var(--fs-sm)/1.4 var(--display); text-align: left; }
.ir-rec .ui-bar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--navy-950) 55%, transparent); white-space: nowrap; }
.ir-rec .ui-bar .t { flex: none; font: 600 var(--fs-xs)/1 var(--display); color: var(--ink-50); }
.ir-rec .chip { display: inline-flex; align-items: center; flex: none; padding: 3px 7px; border-radius: var(--r-xs); border: 1px solid var(--line); font: 500 var(--fs-xs)/1.2 var(--mono); letter-spacing: 0.02em; color: var(--ink-200); white-space: nowrap; }
.ir-rec .chip.ok { color: var(--teal-300); border-color: var(--teal-a40); background: var(--teal-a06); }
.ir-rec .sev { width: 8px; height: 8px; border-radius: var(--r-xs); flex: none; background: var(--ink-400); }
.ir-rec .sev.ok { background: var(--teal-400); }
/* a window rising from the bottom edge of the well */
.ir-ui { border-bottom: 0; border-radius: var(--r-md) var(--r-md) 0 0; box-shadow: var(--e2), 0 0 0 1px var(--teal-a12); }
.ir-rows { margin: 0; padding: 4px 10px 6px; list-style: none; }
.ir-rows li { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-width: 0; padding: 7px 0; }
.ir-rows li + li { border-top: 1px solid var(--line); }
.ir-rows li > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-xs); color: var(--ink-50); }
/* the incident report: a cover page on a stacked sheet */
.ir-doc { position: relative; display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3); border: 1px solid var(--line-strong); border-bottom: 0;
  border-radius: var(--r-sm) var(--r-sm) 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--teal-400) 6%, var(--navy-800)), var(--navy-850));
  box-shadow: var(--e2), 0 0 0 1px var(--teal-a12); text-align: left; }
.ir-doc::before { content: ''; position: absolute; z-index: -1; top: -9px; left: var(--sp-3); right: var(--sp-3); height: 40px;
  border: 1px solid var(--line); border-radius: var(--r-sm) var(--r-sm) 0 0; background: var(--navy-850); }
.ir-doc-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.ir-doc-k { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 var(--fs-xs)/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal-300); }
.ir-doc-s { font: 400 var(--fs-xs)/1.2 var(--mono); color: var(--ink-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ir-doc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ir-doc-lines { display: grid; gap: 6px; padding-bottom: var(--sp-2); }
.ir-doc-lines i { display: block; height: 6px; border-radius: var(--r-xs); background: var(--line); }
.ir-doc-lines i:nth-child(2) { width: 86%; }
.ir-doc-lines i:nth-child(3) { width: 62%; }

/* Below 1280 px: a vertical track; the line runs down the left, each card lies on its side (drawing left, words right). */
@media (max-width: 1279px) {
  .ir-track { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
  .ir-stage { padding: 0 0 0 calc(var(--node) + var(--sp-5)); }
  .ir-stage::before { top: var(--node); bottom: calc(-1 * var(--sp-5)); left: calc(var(--node) / 2 - 1px); right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--teal-400), var(--teal-a24)); }
  .ir-card { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: stretch; }
  .ir-art { height: auto; min-height: 200px; border-bottom: 0; border-right: 1px solid var(--line); }
  .ir-txt { align-self: center; padding: var(--sp-5) var(--sp-6); }
}
/* Phones: each card stacks (drawing on top). */
@media (max-width: 639px) {
  .ir-track { --node: 28px; gap: var(--sp-4); }
  .ir-stage { padding-left: calc(var(--node) + var(--sp-3)); }
  .ir-stage::before { bottom: calc(-1 * var(--sp-4)); }
  .ir-node { font-size: var(--fs-xs); }
  .ir-card { display: flex; }
  .ir-art { min-height: 0; height: 196px; padding-inline: var(--sp-3); border-right: 0; border-bottom: 1px solid var(--line); }
  .ir-txt { padding: var(--sp-4) var(--sp-5) var(--sp-5); }
}

@media (prefers-reduced-motion: reduce) { .ir-pulse { animation: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--red-500) 30%, transparent); } }
