/* The public status page (Phase 11). avilo brand: Roboto headings, Open Sans text, Royal Blue #102863, Black Olive #313628. */
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/open-sans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/open-sans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/roboto-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/roboto-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --page: #F5F7F8; --card: #FFFFFF; --line: #E7EBEE; --line2: #EEF1F3; --text: #313628; --text2: #505448; --muted: #65685E;
  --head: #102863; --link: #2259C6; --shadow: 0 1px 2px rgba(16, 40, 99, .05);
  --ok: #137A3A; --ok-bg: #E3F5E9; --ok-line: #BFE5CB; --ok-dot: #1FA83A;
  --warn: #8A5A00; --warn-bg: #FFF4D6; --warn-line: #F2DD9E; --warn-dot: #D9A300;
  --bad: #B42318; --bad-bg: #FDECEA; --bad-line: #F4C3BE; --bad-dot: #D42A33;
  --info: #1D4FB5; --info-bg: #E8EEFB; --info-line: #CBD8F4; --info-dot: #5C8DF0;
  --unk: #65685E; --unk-bg: #EEF1F3; --unk-line: #DDE3E7; --unk-dot: #8792AA; --none: #E7EBEE;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0E0E0E; --card: #181818; --line: #2A2A2A; --line2: #222222; --text: #E8E8E4; --text2: #C4C4BE; --muted: #9A9A94;
    --head: #DCE4F7; --link: #9DB8F2; --shadow: none;
    --ok: #7FD69A; --ok-bg: #11301B; --ok-line: #1E4A2B;
    --warn: #F2CE6B; --warn-bg: #332A0E; --warn-line: #4D3F14;
    --bad: #F59A91; --bad-bg: #3A1512; --bad-line: #57201B;
    --info: #9DB8F2; --info-bg: #14213F; --info-line: #223566;
    --unk: #B8B8B2; --unk-bg: #232323; --unk-line: #333333; --none: #262626;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text); font: 15px/1.5 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; }
h1, h2, h3 { font-family: Roboto, 'Open Sans', system-ui, sans-serif; color: var(--head); margin: 0; line-height: 1.25; }
a { color: var(--link); }
img { display: block; }
.wrap { width: min(880px, 100% - 32px); margin: 0 auto; }

.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--head); font-family: Roboto, sans-serif; font-weight: 700; font-size: 17px; }
.brand img { height: 36px; width: auto; }
.brand span { padding-left: 12px; border-left: 1px solid var(--line); line-height: 1; }
.top nav { display: flex; gap: 4px; }
.top nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--text2); font-weight: 600; font-size: 14px; }
.top nav a:hover { background: var(--line2); }
.top nav a[aria-current] { color: var(--head); background: var(--info-bg); }

main { padding: 24px 0 40px; }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.banner h1 { font-size: 22px; flex: 1 1 auto; }
.banner .upd { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.banner .stale-note { display: none; flex-basis: 100%; font-size: 14px; color: var(--warn); }
body.stale .banner .stale-note { display: block; }
body.stale .dot { background: var(--unk-dot) !important; animation: none !important; }
body.stale .banner { border-color: var(--warn-line); }

.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--unk-dot); flex: none; }
.banner .dot { width: 16px; height: 16px; }
.st-up { --c: var(--ok); --c-bg: var(--ok-bg); --c-line: var(--ok-line); --c-dot: var(--ok-dot); }
.st-degraded { --c: var(--warn); --c-bg: var(--warn-bg); --c-line: var(--warn-line); --c-dot: var(--warn-dot); }
.st-down { --c: var(--bad); --c-bg: var(--bad-bg); --c-line: var(--bad-line); --c-dot: var(--bad-dot); }
.st-maintenance { --c: var(--info); --c-bg: var(--info-bg); --c-line: var(--info-line); --c-dot: var(--info-dot); }
.st-unknown { --c: var(--unk); --c-bg: var(--unk-bg); --c-line: var(--unk-line); --c-dot: var(--unk-dot); }
.banner.st-up, .banner.st-degraded, .banner.st-down, .banner.st-maintenance, .banner.st-unknown { background: var(--c-bg); border-color: var(--c-line); }
.banner .dot, .sys .dot { background: var(--c-dot); }
.banner h1 { color: var(--c); }
.banner.st-down .dot, .banner.st-degraded .dot { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

.group { margin-top: 26px; }
.group h2 { font-size: 15px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px 4px; }
.systems { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.sys { padding: 14px 20px; border-top: 1px solid var(--line2); }
.sys:first-child { border-top: 0; }
.sys-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sys-name { font-weight: 600; font-size: 16px; }
.state { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--c); white-space: nowrap; }
.state small { font-weight: 400; color: var(--muted); font-size: 13px; }
.sys-bar { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.bar { display: flex; gap: 2px; flex: 1 1 auto; height: 22px; }
.bar i { flex: 1 1 0; border-radius: 2px; background: var(--ok-dot); min-width: 0; }
.bar i.degraded { background: var(--warn-dot); }
.bar i.down { background: var(--bad-dot); }
.bar i.planned { background: var(--info-dot); }
.bar i.unknown { background: var(--unk-dot); }
.bar i.none { background: var(--none); }
.bar i:hover { outline: 2px solid var(--head); outline-offset: 1px; }
.pct { flex: none; width: 64px; text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); }

.inc { padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); margin-bottom: 12px; }
.inc.open { border-left: 4px solid var(--bad-dot); }
.inc.ext { border-left: 4px solid var(--warn-dot); }
.inc.maint { border-left: 4px solid var(--info-dot); }
.inc-meta b { color: var(--text2); font-weight: 600; }
.inc.closed { border-left: 4px solid var(--ok-dot); opacity: .92; }
.inc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.inc-head h3 { font-size: 17px; flex: 1 1 auto; }
.kind { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; }
.phase { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); white-space: nowrap; }
.phase.ph-identified { background: var(--bad-bg); color: var(--bad); }
.phase.ph-monitoring, .phase.ph-in_progress, .phase.ph-scheduled { background: var(--info-bg); color: var(--info); }
.phase.ph-resolved, .phase.ph-completed { background: var(--ok-bg); color: var(--ok); }
.inc-meta { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.updates { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line2); }
.updates li { display: grid; grid-template-columns: 92px 1fr; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line2); font-size: 14px; }
.updates li:last-child { border-bottom: 0; }
.updates time { color: var(--muted); font-variant-numeric: tabular-nums; grid-row: span 2; }
.updates b { color: var(--head); }
.updates span { color: var(--text2); }
.empty { margin: 0; padding: 16px 20px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); background: var(--card); }
.more { margin: 12px 4px 0; font-size: 14px; }
h1.plain { font-size: 24px; margin-bottom: 18px; }
main h2 + .inc { margin-top: 0; }

.foot { border-top: 1px solid var(--line); background: var(--card); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 16px 0; font-size: 13px; color: var(--muted); }

@media (max-width: 600px) {
  .sys-top { flex-wrap: wrap; }
  .bar { height: 16px; gap: 1px; }
  .pct { width: 56px; }
  .updates li { grid-template-columns: 1fr; }
  .updates time { grid-row: auto; }
  .brand span { display: none; }
}
@media print { .top nav, .more { display: none; } }
