/* The status pages (status/_web.html, status.raidcall.sk) in the new public
 * web's look. css/web.css is loaded first and owns the shared parts (tokens,
 * nav, state pill, popovers, footer); this file only adds what the status
 * page needs, under .stp with stp- class names so the two never collide.
 * Light and dark follow web.css: dark by default (html[data-web-theme]),
 * prefers-color-scheme only when the visitor picked Auto. */

.rce.stp {
  --maint-bg: #E3ECFB; --maint-ink: #1D4FA3; --maint-dot: #3B82F6;
  --nodata: #DCE1E8; --card: #FFFFFF; --card-shadow: 0 1px 2px rgba(15,27,45,.06);
}
@media (prefers-color-scheme: dark) {
  html:not([data-web-theme="light"]) .rce.stp {
    --maint-bg: #12213A; --maint-ink: #9EC3FF; --maint-dot: #60A5FA;
    --nodata: #253041; --card: #111A26; --card-shadow: none;
  }
}
html[data-web-theme="dark"] .rce.stp {
  --maint-bg: #12213A; --maint-ink: #9EC3FF; --maint-dot: #60A5FA;
  --nodata: #253041; --card: #111A26; --card-shadow: none;
}

/* the brand mark is the web's own .rc-siren (web.css): one markup, one CSS */

/* nav: logo + state pill + language + theme, at every width */
.stp .stp-nav .nav-in { gap: 16px; }
.stp .stp-nav .nav-end { gap: 8px; }
.stp .stp-nav .stp-lang, .stp .stp-nav .stp-theme { display: block; }
.stp .stp-pill-plain { background: var(--soft); color: var(--ink); }
.stp .stp-pill-plain .st-dot { background: var(--muted); }
.stp .stp-pill-plain .st-dot::after { display: none; }
.stp .stp-nav.stp-fit-1 .stp-lang { display: none; }
.stp .stp-nav.stp-fit-2 .stp-pill .st-label { display: none; }
.stp .stp-nav.stp-fit-2 .stp-pill { width: 40px; padding: 0; justify-content: center; }

/* page */
.stp .stp-main { max-width: 960px; padding-top: 48px; padding-bottom: 96px; }
.stp .stp-col { max-width: 640px; margin: 0 auto; }
.stp .stp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 24px; }
.stp .stp-head h1 { font-size: 56px; line-height: 1.02; }
.stp .stp-updated { font-size: 15px; color: var(--muted); }
.stp .stp-arrow { width: 14px; height: 14px; vertical-align: -2px; }

/* the verdict */
.stp .stp-overall {
  display: flex; align-items: center; gap: 14px; padding: 22px 26px; border-radius: 28px;
  font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2;
  background: var(--ok-bg); color: var(--ok-ink); margin-bottom: 20px;
}
.stp .stp-overall-ic { width: 44px; height: 44px; border-radius: 22px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--ok-dot); color: #FFFFFF; }
.stp .stp-overall-ic .ic { width: 24px; height: 24px; }
.stp .stp-overall-warn { background: var(--warn-bg); color: var(--warn-ink); }
.stp .stp-overall-warn .stp-overall-ic { background: var(--warn-dot); }
.stp .stp-overall-down { background: var(--down-bg); color: var(--down-ink); }
.stp .stp-overall-down .stp-overall-ic { background: var(--down-dot); }

/* what is happening now */
.stp .stp-now { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.stp .stp-card {
  background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--line);
  border-radius: 22px; padding: 18px 22px; box-shadow: var(--card-shadow);
}
.stp .stp-card-down { border-left-color: var(--down-dot); }
.stp .stp-card-warn { border-left-color: var(--warn-dot); }
.stp .stp-card-ok { border-left-color: var(--ok-dot); }
.stp .stp-card-maint { border-left-color: var(--maint-dot); }
.stp .stp-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.stp .stp-card h2 { font-size: 19px; line-height: 1.3; letter-spacing: -.015em; display: flex; align-items: center; gap: 8px; }
.stp .stp-card-ic { color: var(--muted); width: 18px; height: 18px; }
.stp .stp-when { font-size: 14px; color: var(--muted); margin-top: 6px; }
.stp .stp-desc { font-size: 16px; margin-top: 8px; }
.stp .stp-pre { white-space: pre-line; }

/* chips */
.stp .stp-chip {
  flex: none; display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 13px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.stp .stp-chip-ok { background: var(--ok-bg); color: var(--ok-ink); }
.stp .stp-chip-warn { background: var(--warn-bg); color: var(--warn-ink); }
.stp .stp-chip-down { background: var(--down-bg); color: var(--down-ink); }
.stp .stp-chip-maint { background: var(--maint-bg); color: var(--maint-ink); }
.stp .stp-chip-down-solid { background: var(--red); color: #FFFFFF; }
.stp .stp-chip-warn-solid { background: var(--warn-dot); color: #2B1A00; }

/* components with their 90-day bars */
.stp .stp-comps { background: var(--soft); border-radius: 28px; padding: 6px 26px; margin-bottom: 18px; }
.stp .stp-comp { padding: 22px 0; }
.stp .stp-comp + .stp-comp { border-top: 1px solid var(--line); }
.stp .stp-comp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.stp .stp-comp h2 { font-size: 19px; letter-spacing: -.015em; }
.stp .stp-state { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.stp .stp-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--ok-dot); }
.stp .stp-state-ok { color: var(--ok-ink); }
.stp .stp-state-warn { color: var(--warn-ink); }
.stp .stp-state-warn .stp-dot, .stp .stp-dot-warn { background: var(--warn-dot); }
.stp .stp-state-down { color: var(--down-ink); }
.stp .stp-state-down .stp-dot, .stp .stp-dot-down { background: var(--down-dot); }
.stp .stp-state-maint { color: var(--maint-ink); }
.stp .stp-state-maint .stp-dot { background: var(--maint-dot); }
.stp .stp-state-nodata { color: var(--muted); }
.stp .stp-state-nodata .stp-dot { background: var(--nodata); }
.stp .stp-bars { display: flex; align-items: stretch; gap: 2px; height: 36px; }
.stp .stp-bars .stp-bar { flex: 1 1 0; min-width: 0; border-radius: 3px; }
.stp .stp-bars .stp-bar:hover { filter: brightness(.85); }
.stp .stp-bar { display: block; background: var(--nodata); }
.stp .stp-bar-ok { background: var(--ok-dot); }
.stp .stp-bar-warn { background: var(--warn-dot); }
.stp .stp-bar-down { background: var(--down-dot); }
.stp .stp-bar-maint { background: var(--maint-dot); }
.stp .stp-bar-nodata { background: var(--nodata); }
.stp .stp-axis { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.stp .stp-axis b { color: var(--ink); font-weight: 700; }
.stp .stp-narrow { display: none; }

.stp .stp-legend { list-style: none; margin: 0 0 10px; padding: 0 4px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.stp .stp-legend li { display: inline-flex; align-items: center; gap: 8px; }
.stp .stp-legend .stp-bar { width: 12px; height: 12px; border-radius: 3px; }
.stp .stp-note { font-size: 14px; color: var(--muted); padding: 0 4px; margin-bottom: 56px; max-width: 72ch; }

/* history */
.stp .stp-h2 { font-size: 34px; line-height: 1.1; margin-bottom: 24px; }
.stp .stp-day + .stp-day { margin-top: 28px; }
.stp .stp-day-date { font-size: 16px; font-weight: 800; letter-spacing: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.stp .stp-day-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.stp .stp-inc-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.stp .stp-inc-title { font-weight: 700; font-size: 17px; }
.stp .stp-inc .stp-desc, .stp .stp-inc .stp-when { padding-left: 20px; }
.stp .stp-empty { color: var(--muted); font-size: 16px; display: flex; align-items: center; gap: 8px; }

/* incident detail (publish link from the monitoring e-mail) */
.stp .stp-detail { margin-bottom: 20px; }
.stp .stp-lead { font-size: 16px; color: var(--muted); margin-bottom: 14px; }
.stp .stp-btn-block { width: 100%; height: 56px; font-size: 17px; }
.stp .stp-done { font-size: 18px; align-items: flex-start; }
.stp .stp-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* footer: the web's, without the link columns */
.stp .stp-foot-in { padding-block: 56px 36px; gap: 36px; }

@media (max-width: 820px) {
  .stp .stp-main { padding-top: 28px; padding-bottom: 64px; }
  .stp .stp-head h1 { font-size: 40px; }
  .stp .stp-overall { font-size: 20px; padding: 18px; border-radius: 22px; gap: 12px; }
  .stp .stp-overall-ic { width: 38px; height: 38px; }
  .stp .stp-comps { padding: 2px 16px; border-radius: 22px; }
  .stp .stp-comp { padding: 18px 0; }
  .stp .stp-comp h2, .stp .stp-card h2 { font-size: 17px; }
  .stp .stp-state { font-size: 14px; }
  .stp .stp-bars { height: 32px; }
  .stp .stp-bars .stp-old { display: none; }
  .stp .stp-wide { display: none; }
  .stp .stp-narrow { display: inline; }
  .stp .stp-card { padding: 16px 16px 16px 18px; border-radius: 18px; }
  .stp .stp-h2 { font-size: 28px; }
}
@media (max-width: 420px) {
  .stp .logo.stp-logo { font-size: 20px; gap: 6px; }
  .stp .stp-nav .stp-pill { padding: 0 12px 0 10px; font-size: 13px; }
  .stp .theme-btn { padding-left: 9px; }
  .stp .stp-axis { font-size: 12px; }
}
