/* Operational section: four-clock timeline and the forecast-cycle diagram. Colours follow the
   Material theme so both work in light and dark mode. */
.ops-fig {
  --fg: var(--md-default-fg-color);
  --muted: var(--md-default-fg-color--light);
  --rule: var(--md-default-fg-color--lightest);
  --surface: var(--md-default-bg-color);
  --body: var(--md-text-font-family, Roboto), sans-serif;
  --mono: var(--md-code-font-family, "Roboto Mono"), monospace;
  --ok: #2e7d4f;
  --s3: #0d7a6a;
  --run: #8c99a3;
  --run-soft: #e6ebee;
  --plan: #6c5aa8;
  --plan-soft: #e9e5f5;
  --ice: #2f6f9f;
  --fc: #b5651d;
  --due: #b23b3b;
  overflow-x: auto;
  margin: 1em 0;
}
[data-md-color-scheme="slate"] .ops-fig {
  --ok: #6cc08f;
  --s3: #5fd0bd;
  --run: #7d8b95;
  --run-soft: #24313a;
  --plan: #a99ae0;
  --plan-soft: #2b2644;
  --ice: #7fb6de;
  --fc: #e3a067;
  --due: #e07a7a;
}
.ops-fig svg { display: block; width: 100%; height: auto; min-width: 760px; }
.ops-fig svg.ops-chain { min-width: 600px; max-width: 900px; }
.ops-fig svg text { font-family: var(--body); }

.ops-legend { display: flex; flex-wrap: wrap; gap: .3em 1.2em; font-size: .72rem; color: var(--md-default-fg-color--light); }
.ops-legend span { display: inline-flex; align-items: center; gap: .4em; }
.ops-legend i { display: inline-block; width: 1.4em; height: .7em; border-radius: 2px; }
.ops-legend .ifs { width: .7em; border-radius: 50%; background: var(--md-default-fg-color); }
.ops-legend .plan { background: repeating-linear-gradient(45deg, #6c5aa8 0 3px, #e9e5f5 3px 6px); }
.ops-legend .was { border: 1.2px dashed var(--md-default-fg-color--light); }
.ops-legend .s3 { background: #0d7a6a; }
.ops-legend .run { background: #8c99a3; }
.ops-legend .work { background: #2e7d4f; opacity: .3; }
.ops-legend .dep { background: #8c99a3; opacity: .45; }
.ops-legend .due { width: 3px; height: 1em; border-radius: 0; background: #b23b3b; }

/* Live status page */
.ops-badge { display: inline-block; padding: .1em .6em; border-radius: 1em; font-size: .7rem; font-weight: 600; white-space: nowrap; }
.ops-ok { background: #dff2e6; color: #1f6b3d; }
.ops-running { background: #dbe9f3; color: #2f6f9f; }
.ops-late, .ops-stale { background: #f6e6d6; color: #8a4b12; }
.ops-failed { background: #f6dada; color: #9b2c2c; }
.ops-unknown { background: #e6ebee; color: #5b6b77; }
[data-md-color-scheme="slate"] .ops-ok { background: #1c3a2a; color: #6cc08f; }
[data-md-color-scheme="slate"] .ops-running { background: #1d3446; color: #7fb6de; }
[data-md-color-scheme="slate"] .ops-late, [data-md-color-scheme="slate"] .ops-stale { background: #3b2a1c; color: #e3a067; }
[data-md-color-scheme="slate"] .ops-failed { background: #3e2020; color: #e07a7a; }
[data-md-color-scheme="slate"] .ops-unknown { background: #24313a; color: #93a3ae; }
.ops-ago { color: var(--md-default-fg-color--light); font-size: .85em; }
.ops-gen { color: var(--md-default-fg-color--light); font-size: .75rem; }
