/* EcpPro Status. Tokens copied from the www.ecppro.com 2026 design system (EcpPro.Web src/styles/site.css),
   so the page reads as part of the same site. Bar colours are the status scale, not brand colours. */
:root {
  color-scheme: light;
  --orange: #F5871F; --orange-d: #DC6E0C; --orange-l: #FFF3E6;
  --blue: #179BD7; --blue-d: #0E7BAE;
  --ink: #1F262D; --ink-2: #2C3742; --ink-3: #47535F;
  --grey: #66727E; --grey-2: #8B96A1; --line: #E4E9ED; --bg: #F7F9FB; --white: #fff;
  --green: #1E9E6A; --red: #D64545; --amber: #E17709;
  --r: 14px; --r-s: 8px; --pill: 100px;
  --sh-s: 0 1px 2px rgba(31,38,45,.06), 0 2px 8px rgba(31,38,45,.05);
  --max: 1180px;
  --F: 'Open Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --H: Lato, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--F); color: var(--ink-3); background: var(--bg); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--H); color: var(--ink); line-height: 1.2; letter-spacing: -.01em; margin: 0; }
a { color: var(--blue-d); }
.muted { color: var(--grey); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header: the site's sticky white nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.95); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { max-width: var(--max); margin: 0 auto; padding: 0 24px; height: 78px; display: flex; align-items: center; gap: 16px; }
.nav-logo img { height: 46px; width: auto; display: block; }
.nav-title { font-family: var(--H); font-weight: 900; font-size: 1.15rem; color: var(--ink); padding-left: 16px; border-left: 1px solid var(--line); }
.nav-links { margin-left: auto; display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; }
.btn { display: inline-flex; align-items: center; font-weight: 700; border-radius: var(--pill); border: 2px solid var(--orange); }
.btn-s { padding: 8px 18px; font-size: .88rem; }
.nav-links a.btn { background: var(--orange); color: var(--white); }
.nav-links a.btn:hover { background: var(--orange-d); border-color: var(--orange-d); }

main.wrap { padding-top: 36px; padding-bottom: 56px; }

/* Overall banner */
.banner { display: flex; gap: 16px; align-items: center; border-radius: var(--r); padding: 22px 26px; margin-bottom: 28px; color: var(--white); box-shadow: var(--sh-s); }
.banner h1 { color: var(--white); font-size: 1.5rem; font-weight: 900; }
.banner p { margin: 4px 0 0; opacity: .9; font-size: .9rem; }
.banner-ok { background: var(--green); }
.banner-partial { background: var(--amber); }
.banner-major { background: var(--red); }
.banner-stale { background: var(--ink-3); }
.banner-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--white); flex: none; box-shadow: 0 0 0 5px rgba(255,255,255,.25); }

/* Groups and components: a two-column grid inside each group's card, like githubstatus.com */
.group { margin-bottom: 30px; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 2px 12px; }
.group-h { font-size: 1.25rem; font-weight: 900; }
.group-note { font-size: .82rem; color: var(--grey); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-s); }
.comp-grid { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.comp { padding: 18px 22px 14px; border-top: 1px solid var(--line); min-width: 0; }
.comp:nth-child(-n+2) { border-top: 0; }
.comp:nth-child(odd) { border-right: 1px solid var(--line); }
.comp:last-child:nth-child(odd) { border-right: 0; }
.comp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.comp-title { min-width: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.comp-name { font-size: 1rem; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.comp-desc { font-size: .8rem; color: var(--grey); overflow-wrap: anywhere; }
.status-icon { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.status-icon svg { width: 14px; height: 14px; fill: none; stroke: var(--white); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.status-ok { background: var(--green); }
.status-degraded, .status-partial { background: var(--amber); }
.status-major { background: var(--red); }
.status-maintenance { background: var(--blue); }
.status-nodata { background: var(--grey-2); }
.status-stale { opacity: .55; }
/* The status line is the accessible status (the icon is decorative): ink text for AA contrast at this size,
   with the state's colour carried by a small marker instead of the text itself. */
.comp-status { margin-top: 6px; font-size: .82rem; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.comp-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grey-2); flex: none; }
.comp-status-ok::before { background: var(--green); }
.comp-status-partial::before, .comp-status-degraded::before { background: var(--amber); }
.comp-status-major::before { background: var(--red); }
.comp-status-maintenance::before { background: var(--blue); }
.comp-status-major, .comp-status-partial, .comp-status-degraded { font-weight: 700; }

.card-h { font-size: 1.05rem; font-weight: 900; padding: 16px 0 6px; }
.card.incidents-card { padding: 8px 22px 4px; }

.bars { display: block; width: 100%; height: 34px; }
.bars rect.day { cursor: pointer; outline: none; }
.bars rect.day:hover, .bars rect.day:focus { opacity: .7; }
.bars-legend { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: .78rem; color: var(--grey); }
.legend-rule { flex: 1; height: 1px; background: var(--line); }

.incidents { list-style: none; margin: 0; padding: 0 0 14px; }
.incidents li { padding: 10px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; }

/* Tooltip */
.tip { position: absolute; z-index: 20; max-width: 300px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-s);
       box-shadow: 0 12px 28px rgba(31,38,45,.14); padding: 12px 14px; font-size: .85rem; pointer-events: none; }
.tip-date { font-family: var(--H); font-weight: 900; color: var(--ink); }
.tip-uptime { color: var(--grey); }
.tip-summary { margin-top: 6px; color: var(--ink-2); }
.tip-notes { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); white-space: pre-line; color: var(--ink-2); }

/* Footer: the site's dark ink footer */
.foot { background: var(--ink); color: rgba(255,255,255,.6); padding: 40px 0 26px; font-size: .88rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }
.foot-in img { height: 44px; width: auto; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: rgba(255,255,255,.8); text-decoration: none; }
.foot-links a:hover { color: var(--white); }
.foot-b { flex-basis: 100%; margin: 12px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; }

a:focus-visible, rect.day:focus-visible { outline: 3px solid var(--orange-d); outline-offset: 3px; }

/* One column until two columns are wide enough for every bar to show the full 90 days. */
@media (max-width: 950px) {
  .comp-grid { grid-template-columns: 1fr; }
  .comp, .comp:nth-child(odd) { border-right: 0; }
  .comp:nth-child(2) { border-top: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .wrap, .nav-in { padding: 0 16px; }
  .nav-links a:not(.btn) { display: none; }
  .comp { padding: 16px 16px 12px; }
  .banner h1 { font-size: 1.2rem; }
}
