/* The incident clock. Linked only by /incident-clock/. All colours come from tokens.css. */

.ic-aware-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ic-input {
  font: 500 17px var(--mono); color: var(--ink); background: var(--paper); color-scheme: light dark;
  border: 1px solid var(--ink); border-radius: var(--radius); min-height: var(--tap-primary); padding: 0 12px; max-width: 100%;
}

.ic-summary { border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.ic-next { display: flex; flex-direction: column; gap: 4px; font-size: 16px; line-height: 1.5; }
.ic-next-title { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 27px); line-height: 1.2; }
.ic-next-left { font: 500 clamp(28px, 3.4vw, 40px) var(--mono); line-height: 1.15; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.ic-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 1000px) {
  .ic-tool { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr); gap: 40px; align-items: start; }
  .ic-summary { position: sticky; top: calc(var(--header-h, 0px) + 24px); }
}

.ic-timeline { gap: 48px; }
.ic-regime { display: flex; flex-direction: column; gap: 14px; }
.ic-regime-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; border-bottom: 1px solid var(--rule-strong); padding-bottom: 10px; }
.ic-applies { font-weight: 500; }
.ic-trigger { background: var(--raised); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }

.ic-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ic-step { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px 0 22px 28px; border-left: 2px solid var(--ink); font-size: 16px; line-height: 1.55; }
/* A dot on the line marks each step; a hollow dot marks steps with no fixed time. */
.ic-step::before { content: ''; position: absolute; left: -8px; top: 26px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 2px solid var(--ink); box-sizing: border-box; }
.ic-step:not([data-kind="deadline"])::before { background: var(--paper); }
.ic-step:not([data-kind="deadline"]) { border-left-style: dashed; }
.ic-step-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.ic-step-title { font-family: var(--serif); font-size: 23px; line-height: 1.25; font-weight: 400; }
.ic-when { display: flex; flex-direction: column; gap: 2px; }
.ic-when-text { font: 500 15px var(--mono); }
.ic-due { font-size: 15px; }
.ic-left { font: 500 15px var(--mono); font-variant-numeric: tabular-nums; margin-left: 6px; white-space: nowrap; }
/* Overdue is marked by words and an underline, not by colour alone. */
.ic-left[data-state="overdue"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Steps that do not apply on the answers given: a lighter line, plus the words above. */
.ic-regime[data-applies="no"] .ic-step { border-left-color: var(--rule); }

.ic-first li { padding-left: 4px; }
.ic-first a { white-space: nowrap; }

.ic-aware-print { display: block; }

@media print {
  .ic-form, .ic-actions, .ic-page .ov-notice { display: none !important; }
  .ic-tool { display: block; }
  .ic-summary { position: static; border-width: 1px; padding: 4mm 5mm; break-inside: avoid; }
  .ic-next-left { font-size: 16pt; }
  .ic-page .ov-section { display: block; padding-top: 6mm; }
  .ic-page .ov-section-label { display: none; }
  .ic-page .ov-h1 { font-size: 20pt; }
  .ic-page .ov-h2 { font-size: 15pt; }
  .ic-page .ov-lead { font-size: 10pt; }
  .ic-step { break-inside: avoid; padding: 3mm 0 3mm 6mm; font-size: 9.5pt; }
  .ic-step-title { font-size: 12pt; }
  .ic-first { padding-left: 1.8em; }
  .ic-regime { break-before: auto; }
  .ic-page .ov-quote blockquote { font-size: 9pt; }
  /* Print the full address of each source, so the paper copy can be checked. */
  .ic-page .ov-quote a::after { content: ' · ' attr(href); word-break: break-all; }
}
