/* Status, the page before the company (front/status.js writes the state, when it was checked, and the systems; the frame is index.html's own). Navy,
   white for what the feed says, softer white for what explains it. The state is the page's headline, in Cooper, with its light: green, amber or red, and
   a hollow ring while it is not known; the rest in Inter, figures in tabular numerals. A desktop has two columns, the state, its sentence and the button
   to the left, the six systems with their 90 days to the right; a phone one column, the systems under the button, their last 30 days. The page's
   colour is front.css'. */
.sec-status .st { --soft: rgba(255, 255, 255, .72); --dim: rgba(255, 255, 255, .52); --rule: rgba(255, 255, 255, .14); --ok: #3DDC84; --amber: #FFC53D; --red: #FF8473;
  --hs: clamp(44px, min(4.6vw, 7.6vh), 68px); --nd: 18px;
  /* (clear of the rail of dots at the right edge) */
  width: min(1120px, 100% - 112px); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: clamp(40px, 6vw, 88px); align-items: center;
  font: 500 14px/1.4 "Inter", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.sec-status .st-main { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }

/* the state: the headline and its light. The light is the system's state as the feed last said it, in colour and in shape, four shapes, so the colour
   is never alone: a green dot that breathes; an amber dot inside a ring of its colour; a red diamond; and a hollow ring until it is known and whenever it
   cannot be confirmed. It sits on the middle of the headline's first line */
.sec-status .st-state { display: flex; align-items: flex-start; gap: calc(var(--hs) * .3); }
.sec-status .st-h { margin: 0; font: 500 var(--hs)/1.03 "CooperMed", Georgia, serif; letter-spacing: -.018em; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
.sec-status .nd { flex: none; box-sizing: border-box; width: var(--nd); height: var(--nd); margin-top: calc(var(--hs) * .52 - var(--nd) / 2); border-radius: 50%;
  background: #0A1A4F; box-shadow: inset 0 0 0 2px var(--soft); }
.sec-status .nd[data-state="operational"] { background: var(--ok); box-shadow: none; animation: st-breathe 2.8s ease-out infinite; }
.sec-status .nd[data-state="degraded"] { width: calc(var(--nd) + 4px); height: calc(var(--nd) + 4px); margin-left: -2px; margin-right: -2px; translate: 0 -2px; padding: 2px;
  border: 2px solid #FFB020; background: #FFB020; background-clip: content-box; box-shadow: none; }
/* (a diamond: a square turned 45 degrees, on the dot's centre, so that it is another shape at a glance, not a dot with corners) */
.sec-status .nd[data-state="outage"] { width: calc(var(--nd) - 4px); height: calc(var(--nd) - 4px); margin-left: 2px; margin-right: 2px; translate: 0 2px; border-radius: 2px;
  background: #FF5A4F; box-shadow: none; rotate: 45deg; }
@keyframes st-breathe { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } 70%, 100% { box-shadow: 0 0 0 calc(var(--nd) * .7) rgba(61, 220, 132, 0); } }
/* (when it was checked, quieter, under the headline, in line with its words) */
.sec-status .st-sum { margin: 16px 0 0; margin-left: calc(var(--nd) + var(--hs) * .3); font-size: 17px; line-height: 1.45; color: var(--soft); }
.sec-status .st-sum:empty { display: none; }

/* the button to status.olict.com, its address beside its words */
.sec-status .st-link { display: inline-flex; align-items: center; gap: 10px; height: 48px; margin-top: 30px; padding: 0 20px 0 22px; border-radius: 24px; background: #fff; color: #0A1A4F;
  font: 600 15px/1 "Inter", system-ui, sans-serif; text-decoration: none; white-space: nowrap; }
.sec-status .st-link small { font-size: 12.5px; font-weight: 500; color: rgba(10, 26, 79, .6); }
.sec-status .st-link svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s cubic-bezier(.2, .9, .2, 1); }
.sec-status .st-link:hover svg { transform: translateX(3px); }
.sec-status .st-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* the systems: a row each, its name, its days as bars (white: every check passed; amber: some failed; red: down; faint: no checks), its uptime over the
   90 days; the days' axis under them */
.sec-status .st-sys { min-width: 0; }
.sec-status .st-sys[hidden] { display: none; }
.sec-status .st-rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.sec-status .st-row { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) 5.2em; align-items: center; gap: 16px; padding: 13px 0; border-top: 1px solid var(--rule); }
.sec-status .st-name { font: 500 14.5px/1.25 "Inter", system-ui, sans-serif; min-width: 0; overflow-wrap: anywhere; }
.sec-status .st-up { font: 500 13px/1 "Inter", system-ui, sans-serif; color: var(--soft); text-align: right; white-space: nowrap; }
.sec-status .bars { display: flex; gap: 2px; height: 30px; }
.sec-status .bars i { flex: 1; min-width: 0; border-radius: 1.5px; background: rgba(255, 255, 255, .86); }
.sec-status .bars i.m { background: var(--amber); } .sec-status .bars i.d { background: var(--red); } .sec-status .bars i.s { background: rgba(255, 255, 255, .18); }
.sec-status .st-axis { display: flex; justify-content: space-between; margin: 8px 0 0; padding: 0 calc(5.2em + 16px) 0 calc(9.5em + 16px); font-size: 12px; color: var(--dim); }
.sec-status .st-axis .a30 { display: none; }
/* (the desktop page: its two columns in the middle of the screen, under the bar) */
@media (min-width: 821px) {
  html.js .sec-status { justify-content: center; padding-bottom: clamp(40px, 7vh, 80px); }
}

/* a phone: one column, the page's height exactly, from under the head bar to the pixel edge (front/edges.js) that hangs from its foot into the company */
@media (max-width: 820px) {
  .sec-status .st { --hs: 38px; --nd: 14px; width: 100%; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 26px; font-size: 13.5px; }
  /* (#status, not .sec-status: the lock wins over front.css' "html.js #sc > .sec { overflow-y: auto }" by its own weight, not by load order) */
  html.js #sc > #status { display: flex; flex-direction: column; padding: var(--clear) 20px calc(34px + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
  html.js #sc > #status > .st { flex: 1 1 auto; min-height: 0; }
  /* (the last resort, status.js: a screen too short for the page scrolls inside it, from its top) */
  html.js #sc > #status.st-scrolls { overflow-y: auto; justify-content: flex-start; } html.js #sc > #status.st-scrolls > .st { flex: none; justify-content: flex-start; }
  .sec-status .st-sum { margin-top: 8px; font-size: 14.5px; }
  .sec-status .st-link { height: 46px; margin-top: 20px; font-size: 14.5px; } .sec-status .st-link small { display: none; }
  .sec-status .st-row { grid-template-columns: 94px minmax(0, 1fr) 4.6em; gap: 10px; padding: 11px 0; }
  .sec-status .st-name { font-size: 13px; } .sec-status .st-up { font-size: 12px; }
  .sec-status .bars { height: 22px; gap: 1.5px; } .sec-status .bars i:nth-child(-n+60) { display: none; }
  .sec-status .st-axis { padding: 0 calc(4.6em + 10px) 0 104px; font-size: 11px; } .sec-status .st-axis .a90 { display: none; } .sec-status .st-axis .a30 { display: inline; }
}
/* (short phones: the headline and the rows set tighter) */
@media (max-width: 820px) and (max-height: 700px) {
  .sec-status .st { --hs: 32px; --nd: 12px; gap: 18px; } .sec-status .st-row { padding: 8px 0; } .sec-status .bars { height: 18px; } .sec-status .st-link { margin-top: 14px; }
}
/* (where the column still does not fit, status.js sets it tighter again before it lets the page scroll: a short phone with a long headline) */
@media (max-width: 820px) {
  #status.st-tight .st { --hs: 28px; --nd: 11px; gap: 12px; }
  #status.st-tight .st-sum { margin-top: 4px; font-size: 13.5px; }
  #status.st-tight .st-link { height: 40px; margin-top: 10px; font-size: 14px; }
  #status.st-tight .st-row { padding: 5px 0; } #status.st-tight .bars { height: 14px; } #status.st-tight .st-axis { margin-top: 5px; }
}
@media (prefers-reduced-motion: reduce) { .sec-status .nd[data-state="operational"] { animation: none; } }

/* the passage to status.olict.com (status.js, wayOut): over everything, the status page's blue drawn a pixel at a time, then the status page's top row,
   "Olict® | Status", where that page draws it (its sizes copied from it: a row min(1120 px, the width less 32 px) wide, 22 px from the top) */
.st-out { position: fixed; inset: 0; z-index: 1000; cursor: progress; }
.st-out canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.st-out-top { position: absolute; left: 0; right: 0; top: max(22px, env(safe-area-inset-top, 0px)); width: min(1120px, calc(100% - 32px)); margin: 0 auto;
  display: flex; align-items: baseline; gap: .85rem; color: #fff; line-height: 1.5; opacity: 0; transform: translateY(12px); transition: opacity .28s ease, transform .5s cubic-bezier(.2, .9, .2, 1); }
.st-out.top .st-out-top { opacity: 1; transform: none; }
.st-out-brand { font: 500 clamp(1.75rem, 4vw, 2.25rem)/1 "CooperMed", Georgia, serif; }
.st-out-brand sup { position: relative; top: -1.9em; margin-left: .03em; font: 500 .28em/0 "Inter", sans-serif; vertical-align: baseline; }
.st-out-label { padding-left: .85rem; border-left: 1px solid rgba(255, 255, 255, .35); font: 500 15px/1.5 "Inter", sans-serif; }
