/* status.khiyal.ir's own layout. Every colour is a dina-ui token (vendor/tokens.css), and the
   light and dark looks are dina-ui's own: theme.js sets html[data-theme] from the device, and the
   dark theme redefines the paper surfaces and their text, so nothing here names a second palette.
   Directions are logical: the page is RTL. */

@font-face {
  font-family: 'Estedad';
  src: url('/assets/Estedad-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

body.st {
  margin: 0;
  background: var(--paper-1);
  color: var(--l-fg);
  font-family: var(--ui);
  line-height: 1.8;
}
.st a {
  color: inherit;
}
.st-mut {
  color: var(--l-mut);
}
.st-small {
  font-size: 13px;
}
.st-strong {
  font-weight: 800;
  color: var(--l-fg);
}

.st-top {
  position: sticky;
  inset-block-start: 0;
  z-index: 5;
  background: color-mix(in oklch, var(--paper-0) 88%, transparent);
  backdrop-filter: blur(12px);
  border-block-end: 1px solid var(--paper-line);
}
.st-top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.st-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
}
.st-brand img {
  border-radius: 10px;
}
/* «ظاهر», «ورود» and «شروع رایگان», as on khiyal.ir's own header; «ورود» leaves under 520px,
   where «شروع رایگان» goes to the same sign-in. The page's one gradient button is «شروع رایگان». */
.st-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.st-top-actions .dina-btn {
  min-height: 44px;
}
@media (max-width: 519px) {
  .st-wide-only {
    display: none;
  }
}

.st-main {
  padding-block: 40px 24px;
}
.st-h1 {
  margin: 0 0 20px;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 900;
  line-height: 1.3;
}
.st h2 {
  margin: 44px 0 12px;
  font-size: 22px;
  font-weight: 900;
  /* The header is sticky: a page of incidents (`#incidents`) lands below it, not under it. */
  scroll-margin-block-start: 88px;
}
.st-lead {
  margin: 0 0 14px;
  color: var(--l-mut);
  font-size: 15px;
}

.st-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-xl);
}
.st-hero-ok {
  background: var(--ok-bg);
  border-color: color-mix(in oklch, var(--ok) 30%, transparent);
}
.st-hero-degraded {
  background: var(--warn-bg);
  border-color: var(--warn-bd);
}
.st-hero-down {
  background: var(--err-bg);
  border-color: var(--err-bd);
}
.st-hero-off {
  background: var(--paper-2);
  border-color: var(--paper-line);
}
.st-hero-line {
  display: flex;
  align-items: center;
  gap: 12px;
}
.st-hero-line p {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 900;
}
.st-hero-ok .st-hero-line {
  color: var(--ok);
}
.st-hero-degraded .st-hero-line {
  color: var(--warn);
}
.st-hero-down .st-hero-line {
  color: var(--err);
}
.st-hero-off .st-hero-line {
  color: var(--l-mut);
}
.st-hero-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: color-mix(in oklch, currentColor 14%, transparent);
}
.st-hero-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.st-hero-side p {
  margin: 0;
  font-size: 14px;
}
.st-refresh[aria-busy='true'] svg {
  animation: st-spin 0.9s linear infinite;
}
@keyframes st-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .st-refresh[aria-busy='true'] svg {
    animation: none;
  }
}

.st-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--l-mut);
  font-size: 13px;
}
.st-legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.st-swatch {
  display: inline-block;
  width: 8px;
  height: 14px;
  border-radius: 2px;
}

.st-card {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  background: var(--paper-0);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-xl);
}
.st-row {
  padding: 20px 24px;
}
.st-row + .st-row {
  border-block-start: 1px solid var(--paper-line-row);
}
.st-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.st-row-text {
  min-width: 0;
}
.st-row-text h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}
.st-row-text p {
  margin: 2px 0 0;
  font-size: 14px;
}
.st-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  color: var(--l-mut);
  font-size: 13px;
}
.st-note {
  margin: 8px 0 0;
  font-size: 14px;
}
.st-note-ok {
  color: var(--l-mut);
}
.st-note-degraded {
  color: var(--warn);
}
.st-note-down {
  color: var(--err);
}
.st-chip {
  flex-shrink: 0;
}

.st-bars {
  display: flex;
  gap: 2px;
  height: 32px;
  margin-block-start: 12px;
}
.st-bar {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 3px;
}
.st-bar-ok {
  background: color-mix(in oklch, var(--ok) 82%, transparent);
}
.st-bar-degraded {
  background: var(--warn);
}
/* Down is a fill and a pattern, so a reader who cannot tell the colours apart still sees it. */
.st-bar-down {
  background-color: var(--err);
  background-image: repeating-linear-gradient(135deg, transparent 0 3px, rgb(0 0 0 / 0.28) 3px 5px);
}
.st-bar-none,
.st-bar-off {
  background: var(--paper-3);
}
.st-axis {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-block-start: 6px;
  color: var(--l-faint);
  font-size: 12px;
}
@media (max-width: 639px) {
  .st-old,
  .st-wide {
    display: none;
  }
  .st-row,
  .st-hero {
    padding-inline: 16px;
  }
}
@media (min-width: 640px) {
  .st-phone {
    display: none;
  }
}

.st-groups {
  display: grid;
  gap: 12px;
}
.st-group {
  overflow: hidden;
  background: var(--paper-0);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
}
.st-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 10px 20px;
  cursor: pointer;
  list-style: none;
}
.st-group summary::-webkit-details-marker {
  display: none;
}
.st-sum {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.st-sum svg {
  color: var(--l-faint);
  transition: transform var(--t-fast, 0.15s) var(--ease, ease);
}
.st-group[open] .st-sum svg {
  transform: rotate(180deg);
}
.st-models {
  margin: 0;
  padding: 0;
  list-style: none;
  border-block-start: 1px solid var(--paper-line-row);
}
.st-model {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 20px;
}
.st-model + .st-model {
  border-block-start: 1px solid var(--paper-line-row);
}
.st-model-name {
  font-weight: 800;
}
.st-model-name a {
  text-decoration: none;
}
.st-model-name a:hover {
  text-decoration: underline;
}
.st-conns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.st-conn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border: 1px solid var(--paper-line);
  border-radius: var(--r-pill);
  background: var(--paper-1);
  color: var(--l-mut);
  font-size: 12px;
}
.st-conn-ok svg {
  color: var(--ok);
}
.st-conn-degraded svg {
  color: var(--warn);
}
.st-conn-down svg {
  color: var(--err);
}

.st-incident {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.st-incident p {
  margin: 0;
}

/* «قبلی · صفحهٔ ۲ از ۳ · بعدی» under the incidents. An end that has no page stays in place, dimmed. */
.st-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-start: 16px;
}
.st-pager-btn {
  min-height: 44px;
  gap: 6px;
}
.st-pager-btn[aria-disabled='true'] {
  opacity: 0.4;
  pointer-events: none;
}
.st-pager-at {
  font-size: 14px;
}
.st-pager[aria-busy='true'] .st-pager-btn,
[data-support][aria-busy='true'] {
  cursor: progress;
  opacity: 0.7;
}

.st-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-block-start: 44px;
  padding: 20px 24px;
}
.st-help p {
  margin: 0;
}
.st-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.st-foot {
  padding-block: 8px 48px;
  color: var(--l-mut);
  font-size: 14px;
}
.st-foot p {
  margin: 0;
}
